Skip to content

Commit b86f4e4

Browse files
committed
【fix】升级关联插件,尝试修复运行失败的问题。leaflet兼容ie8问题待解决 review by liqian
1 parent a2dcd94 commit b86f4e4

18 files changed

+300
-297
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ module.exports = {
5252
"no-fallthrough": "warn",
5353
//禁止直接调用eval()
5454
"no-eval": ["error", {"allowIndirect": true}],
55+
"no-prototype-builtins":"off",
56+
"no-useless-catch":"off",
5557
//Ensure imports point to a file/module that can be resolved
5658
"import/no-unresolved": [2, {commonjs: true, amd: true}],
5759
//Ensure named imports correspond to a named export in the remote file

build/webpack.config.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = {
3333
test: /\.js/,
3434
loader: 'babel-loader',
3535
query: {
36-
presets: ['es2015']
36+
presets: ['@babel/preset-env']
3737
}
3838
});
3939

build/webpack.config.leaflet.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ module.exports = {
3939
exclude: /setImmediate|webgl-debug/,
4040
loader: 'babel-loader',
4141
options: {
42-
presets: ['es2015']
42+
presets: ['@babel/preset-env']
4343
}
4444
});
4545
//兼容es3相关配置
46-
moduleRules.push({
47-
test: /\.js$/,
48-
enforce: "post",
49-
loaders: ['es3ify-loader']
50-
});
46+
// moduleRules.push({
47+
// test: /\.js$/,
48+
// enforce: "post",
49+
// loaders: ['es3ify-loader']
50+
// });
5151
}
5252
moduleRules.push(configBase.module.rules.css);
5353
return moduleRules

build/webpack.config.mapboxgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = {
4343
exclude: /node_modules[\/\\]proj4|classic|webgl-debug/,
4444
loader: 'babel-loader',
4545
options: {
46-
presets: ['es2015']
46+
presets: ['@babel/preset-env']
4747
}
4848
});
4949
}

build/webpack.config.openlayers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ module.exports = {
4242
exclude: /classic | webgl-debug/,
4343
loader: 'babel-loader',
4444
options: {
45-
presets: ['env']
45+
presets: ['@babel/preset-env']
4646
}
4747
});
4848

package.json

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -55,59 +55,58 @@
5555
"author": "SuperMap_FE",
5656
"license": "Apache-2.0",
5757
"devDependencies": {
58-
"babel-core": "^6.26.0",
58+
"@babel/core": "^7.7.4",
59+
"@babel/preset-env": "^7.7.4",
5960
"babel-eslint": "^10.0.3",
60-
"babel-loader": "^7.1.4",
61+
"babel-loader": "^8.0.6",
6162
"babel-plugin-istanbul": "^5.2.0",
62-
"babel-preset-env": "^1.6.1",
63-
"babel-preset-es2015": "^6.24.1",
64-
"babelify": "^7.3.0",
65-
"browserify": "^14.3.0",
66-
"browserify-css": "^0.11.1",
63+
"babelify": "^10.0.0",
64+
"browserify": "^16.5.0",
65+
"browserify-css": "^0.15.0",
6766
"browserify-imgify": "^0.0.1",
6867
"chromedriver": "75.1.0",
69-
"clean-css-cli": "^4.1.6",
68+
"clean-css-cli": "^4.3.0",
7069
"commander": "^4.0.1",
7170
"cross-env": "^6.0.3",
7271
"css-loader": "^3.2.0",
7372
"es3ify-loader": "^0.2.0",
74-
"eslint": "^4.6.1",
75-
"eslint-loader": "^2.0.0",
76-
"eslint-plugin-import": "^2.8.0",
73+
"eslint": "^6.7.1",
74+
"eslint-loader": "^3.0.2",
75+
"eslint-plugin-import": "^2.18.2",
7776
"express": "^4.16.3",
7877
"extract-text-webpack-plugin": "^4.0.0-beta.0",
79-
"file-loader": "^4.2.0",
78+
"file-loader": "^5.0.2",
8079
"get-pixels": "^3.3.0",
81-
"image-size": "^0.8.3",
80+
"image-size": "^0.6.1",
8281
"imports-loader": "^0.8.0",
8382
"istanbul": "^0.4.5",
84-
"jasmine-core": "^2.5.2",
85-
"jsdoc": "^3.5.5",
83+
"jasmine-core": "^3.5.0",
84+
"jsdoc": "^3.6.3",
8685
"karma": "^4.4.1",
8786
"karma-browserify": "^6.1.0",
88-
"karma-chrome-launcher": "^2.0.0",
89-
"karma-cli": "^1.0.1",
87+
"karma-chrome-launcher": "^3.1.0",
88+
"karma-cli": "^2.0.0",
9089
"karma-coverage": "^2.0.1",
9190
"karma-jasmine": "^2.0.1",
92-
"karma-teamcity-reporter": "^1.0.0",
91+
"karma-teamcity-reporter": "^1.1.0",
9392
"leaflet.pm": "^0.25.0",
9493
"mock-socket": "^9.0.2",
95-
"nightwatch": "^0.9.5",
96-
"open": "^6.0.0",
97-
"pngjs": "^3.3.0",
94+
"nightwatch": "^1.3.1",
95+
"open": "^7.0.0",
96+
"pngjs": "^3.4.0",
9897
"pre-commit": "^1.2.2",
99-
"request": "^2.83.0",
98+
"request": "^2.88.0",
10099
"selenium-server": "3.141.59",
101100
"serve-index": "^1.9.1",
102-
"shelljs": "^0.7.6",
103-
"style-loader": "^0.13.1",
101+
"shelljs": "^0.8.3",
102+
"style-loader": "^1.0.0",
104103
"uglify-es": "^3.3.9",
105104
"url-loader": "^2.3.0",
106-
"watchify": "^3.9.0",
107-
"webpack": "4.41.2",
108-
"webpack-cli": "3.3.10",
109-
"webpack-dev-middleware": "^3.2.0",
110-
"webpack-node-externals": "^1.6.0"
105+
"watchify": "^3.11.1",
106+
"webpack": "^4.41.2",
107+
"webpack-cli": "^3.3.10",
108+
"webpack-dev-middleware": "^3.7.2",
109+
"webpack-node-externals": "^1.7.2"
111110
},
112111
"dependencies": {
113112
"@mapbox/vector-tile": "1.3.0",

src/common/commontypes/Events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export class Events {
414414
// bind the context to callback.obj
415415
continueChain = callback.func.apply(callback.obj, [evt]);
416416

417-
if ((continueChain != undefined) && (continueChain == false)) {
417+
if ((continueChain != undefined) && (continueChain === false)) {
418418
// if callback returns false, execute no more callbacks.
419419
break;
420420
}

src/common/format/GeoJSON.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class GeoJSON extends JSONFormat {
8383
* @returns {SuperMap.Geometry} 一个几何对象。
8484
*/
8585
"point": function (array) {
86-
if (this.ignoreExtraDims == false &&
86+
if (this.ignoreExtraDims === false &&
8787
array.length != 2) {
8888
throw "Only 2D points are supported: " + array;
8989
}

src/common/iPortal/iPortalQueryResult.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {Util} from '../commontypes/Util';
1414
*/
1515
export class IPortalQueryResult {
1616
constructor(mapUrl, params) {
17-
super(mapUrl);
1817
params = params || {};
1918
this.authorizeSetting = [];
2019
this.center = "";

src/common/iPortal/iPortalResource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,5 @@ export class IPortalResource extends IPortalServiceBase {
9595

9696
}
9797

98-
SuperMap.iPortalMap = IPortalMap;
98+
SuperMap.iPortalMap = IPortalResource;
9999

0 commit comments

Comments
 (0)