From 699ef31995bcccf6b11a534cbc8a0e1dc726818c Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2019 16:05:47 +0000 Subject: [PATCH 1/4] Bump promise-polyfill from 6.0.2 to 8.1.3 Bumps [promise-polyfill](https://github.com/taylorhakes/promise-polyfill) from 6.0.2 to 8.1.3. - [Release notes](https://github.com/taylorhakes/promise-polyfill/releases) - [Changelog](https://github.com/taylorhakes/promise-polyfill/blob/master/CHANGELOG.md) - [Commits](https://github.com/taylorhakes/promise-polyfill/compare/6.0.2...8.1.3) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 16a2f78ccf..8db70c9a39 100644 --- a/package.json +++ b/package.json @@ -126,7 +126,7 @@ "openlayers": "4.6.5", "pbf": "3.0.2", "proj4": "2.5.0", - "promise-polyfill": "6.0.2", + "promise-polyfill": "8.1.3", "three": "0.92.0", "xlsx": "0.15.1", "xml-js": "1.6.11" From 8199efd1b5d9f09c4add67cef7746130ff25ea87 Mon Sep 17 00:00:00 2001 From: songyumeng Date: Mon, 23 Dec 2019 15:23:17 +0800 Subject: [PATCH 2/4] Delete PromisePolyfill.js --- src/common/util/PromisePolyfill.js | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 src/common/util/PromisePolyfill.js diff --git a/src/common/util/PromisePolyfill.js b/src/common/util/PromisePolyfill.js deleted file mode 100644 index d9f7c85d0b..0000000000 --- a/src/common/util/PromisePolyfill.js +++ /dev/null @@ -1,6 +0,0 @@ -/* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. - * This program are made available under the terms of the Apache License, Version 2.0 - * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ -import Promise from 'promise-polyfill'; - -window.Promise = Promise; \ No newline at end of file From 02f93859f9332878332c28670acfad1f946da03e Mon Sep 17 00:00:00 2001 From: songyumeng Date: Mon, 23 Dec 2019 15:23:58 +0800 Subject: [PATCH 3/4] Update FetchRequest.js --- src/common/util/FetchRequest.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/util/FetchRequest.js b/src/common/util/FetchRequest.js index 9687b1bb20..ded39ac5ca 100644 --- a/src/common/util/FetchRequest.js +++ b/src/common/util/FetchRequest.js @@ -1,8 +1,8 @@ /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ -import "./PromisePolyfill" -import 'fetch-ie8' +import 'promise-polyfill/dist/polyfill'; +import 'fetch-ie8'; import fetchJsonp from 'fetch-jsonp'; import { SuperMap @@ -427,4 +427,4 @@ SuperMap.Util.RequestJSONPPromise = { }); return me.issue(config); } -}; \ No newline at end of file +}; From 6f9b60a8a001a59d0145ca66999c5b6be1e8787f Mon Sep 17 00:00:00 2001 From: songyumeng Date: Mon, 23 Dec 2019 15:24:31 +0800 Subject: [PATCH 4/4] Update package.json --- src/common/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/package.json b/src/common/package.json index 2186ace4c4..864f480d77 100644 --- a/src/common/package.json +++ b/src/common/package.json @@ -16,7 +16,7 @@ "elasticsearch": "16.5.0", "fetch-ie8": "1.5.0", "fetch-jsonp": "1.0.6", - "promise-polyfill": "6.0.2", + "promise-polyfill": "8.1.3", "lodash.topairs": "4.3.0" } }