@modern-js/plugin-polyfill 2.17.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/esm/cli.js +3 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/libs/cache.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
package/dist/esm/cli.js
CHANGED
|
@@ -11,8 +11,8 @@ export default function() {
|
|
|
11
11
|
partials.top.push('<script src="'.concat(defaultPolyfill, '" crossorigin></script>'));
|
|
12
12
|
}
|
|
13
13
|
return {
|
|
14
|
-
partials,
|
|
15
|
-
entrypoint
|
|
14
|
+
partials: partials,
|
|
15
|
+
entrypoint: entrypoint
|
|
16
16
|
};
|
|
17
17
|
},
|
|
18
18
|
collectServerPlugins: function collectServerPlugins(param) {
|
|
@@ -21,7 +21,7 @@ export default function() {
|
|
|
21
21
|
"@modern-js/plugin-polyfill": "@modern-js/plugin-polyfill/server"
|
|
22
22
|
});
|
|
23
23
|
return {
|
|
24
|
-
plugins
|
|
24
|
+
plugins: plugins
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -166,10 +166,10 @@ export default function() {
|
|
|
166
166
|
parsedUA = Parser(context.headers["user-agent"]);
|
|
167
167
|
_parsedUA_browser = parsedUA.browser, _parsedUA_browser_name = _parsedUA_browser.name, name = _parsedUA_browser_name === void 0 ? "" : _parsedUA_browser_name, _parsedUA_browser_version = _parsedUA_browser.version, version = _parsedUA_browser_version === void 0 ? "" : _parsedUA_browser_version;
|
|
168
168
|
cacheKey = generateCacheKey({
|
|
169
|
-
name,
|
|
170
|
-
version,
|
|
169
|
+
name: name,
|
|
170
|
+
version: version,
|
|
171
171
|
features: featureDig,
|
|
172
|
-
minify
|
|
172
|
+
minify: minify
|
|
173
173
|
});
|
|
174
174
|
matched = cache.get(cacheKey);
|
|
175
175
|
if (matched) {
|
|
@@ -183,8 +183,8 @@ export default function() {
|
|
|
183
183
|
4,
|
|
184
184
|
getPolyfillString({
|
|
185
185
|
uaString: context.headers["user-agent"],
|
|
186
|
-
minify,
|
|
187
|
-
features
|
|
186
|
+
minify: minify,
|
|
187
|
+
features: features
|
|
188
188
|
})
|
|
189
189
|
];
|
|
190
190
|
case 1:
|
package/dist/esm/libs/cache.js
CHANGED
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.18.0",
|
|
19
19
|
"jsnext:source": "./src/cli.ts",
|
|
20
20
|
"types": "./dist/types/cli.d.ts",
|
|
21
21
|
"main": "./dist/cjs/cli.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@modern-js/polyfill-lib": "^1.0.0",
|
|
52
52
|
"lru-cache": "^6.0.0",
|
|
53
53
|
"ua-parser-js": "^0.7.28",
|
|
54
|
-
"@modern-js/utils": "2.
|
|
54
|
+
"@modern-js/utils": "2.18.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/jest": "^29",
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
"@types/ua-parser-js": "^0.7.36",
|
|
61
61
|
"typescript": "^4",
|
|
62
62
|
"jest": "^29",
|
|
63
|
-
"@modern-js/server-core": "2.
|
|
64
|
-
"@modern-js/app-tools": "2.
|
|
65
|
-
"@modern-js/types": "2.
|
|
66
|
-
"@modern-js/core": "2.
|
|
67
|
-
"@scripts/build": "2.
|
|
68
|
-
"@scripts/jest-config": "2.
|
|
63
|
+
"@modern-js/server-core": "2.18.0",
|
|
64
|
+
"@modern-js/app-tools": "2.18.0",
|
|
65
|
+
"@modern-js/types": "2.18.0",
|
|
66
|
+
"@modern-js/core": "2.18.0",
|
|
67
|
+
"@scripts/build": "2.18.0",
|
|
68
|
+
"@scripts/jest-config": "2.18.0"
|
|
69
69
|
},
|
|
70
70
|
"sideEffects": false,
|
|
71
71
|
"publishConfig": {
|