Skip to content

Commit a1d067e

Browse files
[update] 升级fast-xml-parser版本解决插件安全漏洞,修改ol,mapboxgl,maplibregl打包配置兼容插件语法
(review by sym)
1 parent 61c2f01 commit a1d067e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

build/webpack.config.mapboxgl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ module.exports = {
6565
]
6666
}
6767
};
68-
configBase.moduleVersion === 'es6' && (babelConfig.include = /FGBLayer|flatgeobuf/);
68+
configBase.moduleVersion === 'es6' && (babelConfig.include = /FGBLayer|flatgeobuf|fast-xml-parser/);
6969
moduleRules.push(babelConfig);
7070
moduleRules.push(configBase.module.rules.css);
7171
return moduleRules;

build/webpack.config.maplibregl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports = {
6262
]
6363
}
6464
};
65-
configBase.moduleVersion === 'es6' && (babelConfig.include = /FGBLayer|flatgeobuf/);
65+
configBase.moduleVersion === 'es6' && (babelConfig.include = /FGBLayer|flatgeobuf|fast-xml-parser/);
6666
moduleRules.push(babelConfig);
6767
moduleRules.push(configBase.module.rules.css);
6868
return moduleRules;

build/webpack.config.openlayers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ module.exports = {
9292
]
9393
}
9494
}
95-
configBase.moduleVersion === "es6" && (babelConfig.include = /FGB|flatgeobuf/);
95+
configBase.moduleVersion === "es6" && (babelConfig.include = /FGB|flatgeobuf|fast-xml-parser/);
9696
moduleRules.push(babelConfig);
9797
moduleRules.push(configBase.module.rules.css);
9898
return moduleRules;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"@turf/turf": "7.2.0",
151151
"canvg": "^4.0.3",
152152
"echarts": "5.5.0",
153-
"fast-xml-parser": "5.3.5",
153+
"fast-xml-parser": "^5.4.2",
154154
"fetch-ie8": "1.5.0",
155155
"fetch-jsonp": "1.1.3",
156156
"flatgeobuf": "3.31.1",

src/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@turf/meta": "^7.2.0",
2323
"canvg": "^4.0.3",
2424
"echarts": "5.5.0",
25-
"fast-xml-parser": "5.3.5",
25+
"fast-xml-parser": "^5.4.2",
2626
"fetch-ie8": "1.5.0",
2727
"fetch-jsonp": "1.1.3",
2828
"flatgeobuf": "3.31.1",

0 commit comments

Comments
 (0)