@modern-js/plugin-polyfill 2.17.1 → 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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @modern-js/plugin-polyfill
2
2
 
3
+ ## 2.18.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @modern-js/utils@2.18.0
8
+
3
9
  ## 2.17.1
4
10
 
5
11
  ### Patch Changes
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:
@@ -23,7 +23,7 @@ function _create_class(Constructor, protoProps, staticProps) {
23
23
  function _define_property(obj, key, value) {
24
24
  if (key in obj) {
25
25
  Object.defineProperty(obj, key, {
26
- value,
26
+ value: value,
27
27
  enumerable: true,
28
28
  configurable: true,
29
29
  writable: true
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.17.1",
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.17.1"
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.17.1",
64
- "@modern-js/app-tools": "2.17.1",
65
- "@modern-js/types": "2.17.1",
66
- "@modern-js/core": "2.17.1",
67
- "@scripts/build": "2.17.1",
68
- "@scripts/jest-config": "2.17.1"
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": {