@modern-js/plugin-polyfill 0.0.0-next-20221209080421 → 0.0.0-next-20221209140613

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,36 +1,37 @@
1
1
  # @modern-js/plugin-polyfill
2
2
 
3
- ## 0.0.0-next-20221209080421
3
+ ## 0.0.0-next-20221209140613
4
4
 
5
5
  ### Major Changes
6
6
 
7
- - dda38c9c3e: chore: v2
7
+ - dda38c9c3: chore: v2
8
8
 
9
9
  ### Patch Changes
10
10
 
11
- - ebbeed1ece: fix(plugin-polyfill): failed to join flags when restart CLI
11
+ - ebbeed1ec: fix(plugin-polyfill): failed to join flags when restart CLI
12
12
 
13
13
  fix(plugin-polyfill): 修复重启 CLI 时报错 join flags 失败的问题
14
14
 
15
- - Updated dependencies [6aca875011]
16
- - Updated dependencies [2e6031955e]
17
- - Updated dependencies [92f0eade39]
18
- - Updated dependencies [edd1cfb1af]
19
- - Updated dependencies [cc971eabfc]
20
- - Updated dependencies [5b9049f2e9]
21
- - Updated dependencies [92004d1906]
22
- - Updated dependencies [b8bbe036c7]
23
- - Updated dependencies [d5a31df781]
24
- - Updated dependencies [dda38c9c3e]
25
- - Updated dependencies [3bbea92b2a]
26
- - Updated dependencies [b710adb843]
27
- - Updated dependencies [ea7cf06257]
28
- - Updated dependencies [bbe4c4ab64]
29
- - Updated dependencies [e4558a0bc4]
30
- - Updated dependencies [abf3421a75]
31
- - Updated dependencies [543be9558e]
32
- - Updated dependencies [14b712da84]
33
- - @modern-js/utils@0.0.0-next-20221209080421
15
+ - Updated dependencies [7879e8f71]
16
+ - Updated dependencies [6aca87501]
17
+ - Updated dependencies [2e6031955]
18
+ - Updated dependencies [92f0eade3]
19
+ - Updated dependencies [edd1cfb1a]
20
+ - Updated dependencies [cc971eabf]
21
+ - Updated dependencies [5b9049f2e]
22
+ - Updated dependencies [92004d190]
23
+ - Updated dependencies [b8bbe036c]
24
+ - Updated dependencies [d5a31df78]
25
+ - Updated dependencies [dda38c9c3]
26
+ - Updated dependencies [3bbea92b2]
27
+ - Updated dependencies [b710adb84]
28
+ - Updated dependencies [ea7cf0625]
29
+ - Updated dependencies [bbe4c4ab6]
30
+ - Updated dependencies [e4558a0bc]
31
+ - Updated dependencies [abf3421a7]
32
+ - Updated dependencies [543be9558]
33
+ - Updated dependencies [14b712da8]
34
+ - @modern-js/utils@0.0.0-next-20221209140613
34
35
 
35
36
  ## 2.0.0-beta.3
36
37
 
@@ -1,4 +1,6 @@
1
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
3
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2
4
  import crypto from 'crypto';
3
5
  import LRUCache from 'lru-cache';
4
6
  const KB = 1024;
@@ -7,7 +7,9 @@ exports.generateCacheKey = exports.default = void 0;
7
7
  var _crypto = _interopRequireDefault(require("crypto"));
8
8
  var _lruCache = _interopRequireDefault(require("lru-cache"));
9
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
12
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
11
13
  const KB = 1024;
12
14
  const MB = 1024 * KB;
13
15
  const keyCache = new _lruCache.default(10000);
@@ -1,4 +1,4 @@
1
- declare type CacheQueryOptions = {
1
+ type CacheQueryOptions = {
2
2
  features: string;
3
3
  minify: boolean;
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- export declare type ServerPolyfill = {
1
+ export type ServerPolyfill = {
2
2
  polyfill: {
3
3
  route: string;
4
4
  features: Record<string, {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-20221209080421",
14
+ "version": "0.0.0-next-20221209140613",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -40,7 +40,7 @@
40
40
  "@modern-js/polyfill-lib": "^1.0.0",
41
41
  "lru-cache": "^6.0.0",
42
42
  "ua-parser-js": "^0.7.28",
43
- "@modern-js/utils": "0.0.0-next-20221209080421"
43
+ "@modern-js/utils": "0.0.0-next-20221209140613"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/jest": "^27",
@@ -49,11 +49,11 @@
49
49
  "@types/ua-parser-js": "^0.7.36",
50
50
  "typescript": "^4",
51
51
  "jest": "^27",
52
- "@modern-js/server-core": "0.0.0-next-20221209080421",
53
- "@modern-js/types": "0.0.0-next-20221209080421",
54
- "@modern-js/core": "0.0.0-next-20221209080421",
55
- "@scripts/build": "0.0.0-next-20221209080421",
56
- "@scripts/jest-config": "0.0.0-next-20221209080421"
52
+ "@modern-js/server-core": "0.0.0-next-20221209140613",
53
+ "@modern-js/types": "0.0.0-next-20221209140613",
54
+ "@modern-js/core": "0.0.0-next-20221209140613",
55
+ "@scripts/build": "0.0.0-next-20221209140613",
56
+ "@scripts/jest-config": "0.0.0-next-20221209140613"
57
57
  },
58
58
  "sideEffects": false,
59
59
  "modernConfig": {