Skip to content

Commit e68dddb

Browse files
committed
901->910
fix 地址匹配相关例子过滤参数无效的问题 优化npm 的 readme
1 parent a501569 commit e68dddb

38 files changed

+90758
-97529
lines changed

build/publish.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@ var destDir = path.join(__dirname, "../src/" + key + "/dist");
66
if (!fs.existsSync(destDir)) {
77
fs.mkdirSync(destDir);
88
}
9-
fs.readdir(filePath, function (err, files) {
9+
fs.readdir(path.join(filePath, key), function (err, files) {
1010
if (err) {
1111
console.log(err);
1212
return;
1313
}
1414
files.forEach(function (fileName) {
15-
1615
if (fileName.indexOf(key) >= 0 && fileName.indexOf("include") == -1) {
17-
var sourceFile = path.join(__dirname, "../dist", fileName);
16+
var sourceFile = path.join(__dirname, "../dist/" + key, fileName);
1817
var destPath = path.join(__dirname, "../src/" + key + "/dist", fileName);
1918
var readStream = fs.createReadStream(sourceFile);
2019
var writeStream = fs.createWriteStream(destPath);

dist/classic/iclient-classic-es6.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* iclient-classic.(http://iclient.supermap.io)
44
* Copyright© 2000 - 2018 SuperMap Software Co.Ltd
55
* license: Apache-2.0
6-
* version: v9.0.1
6+
* version: v9.1.0
77
*
88
*/
99
/******/ (function(modules) { // webpackBootstrap
@@ -237,7 +237,7 @@ module.exports = g;
237237
}
238238

239239
function Promise(fn) {
240-
if (!(this instanceof Promise)) throw new TypeError('Promises must be constructed via new');
240+
if (typeof this !== 'object') throw new TypeError('Promises must be constructed via new');
241241
if (typeof fn !== 'function') throw new TypeError('not a function');
242242
this._state = 0;
243243
this._handled = false;
@@ -361,9 +361,9 @@ module.exports = g;
361361
};
362362

363363
Promise.all = function (arr) {
364+
var args = Array.prototype.slice.call(arr);
365+
364366
return new Promise(function (resolve, reject) {
365-
if (!arr || typeof arr.length === 'undefined') throw new TypeError('Promise.all accepts an array');
366-
var args = Array.prototype.slice.call(arr);
367367
if (args.length === 0) return resolve([]);
368368
var remaining = args.length;
369369

dist/classic/iclient-classic-es6.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/classic/iclient-classic.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* iclient-classic.(http://iclient.supermap.io)
44
* Copyright© 2000 - 2018 SuperMap Software Co.Ltd
55
* license: Apache-2.0
6-
* version: v9.0.1
6+
* version: v9.1.0
77
*
88
*/
99
/******/ (function(modules) { // webpackBootstrap
@@ -11258,7 +11258,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1125811258
}
1125911259

1126011260
function Promise(fn) {
11261-
if (!(this instanceof Promise)) throw new TypeError('Promises must be constructed via new');
11261+
if (_typeof(this) !== 'object') throw new TypeError('Promises must be constructed via new');
1126211262
if (typeof fn !== 'function') throw new TypeError('not a function');
1126311263
this._state = 0;
1126411264
this._handled = false;
@@ -11382,9 +11382,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1138211382
};
1138311383

1138411384
Promise.all = function (arr) {
11385+
var args = Array.prototype.slice.call(arr);
11386+
1138511387
return new Promise(function (resolve, reject) {
11386-
if (!arr || typeof arr.length === 'undefined') throw new TypeError('Promise.all accepts an array');
11387-
var args = Array.prototype.slice.call(arr);
1138811388
if (args.length === 0) return resolve([]);
1138911389
var remaining = args.length;
1139011390

dist/classic/iclient-classic.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)