@modern-js/plugin-polyfill 2.42.2 → 2.44.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.
@@ -49,8 +49,7 @@ const generateCacheKey = (options) => {
49
49
  keyCache.set(str, hash);
50
50
  return hash;
51
51
  };
52
- var Cache;
53
- Cache = class Cache2 {
52
+ class Cache {
54
53
  get(hash) {
55
54
  return this.caches.get(hash);
56
55
  }
@@ -64,7 +63,7 @@ Cache = class Cache2 {
64
63
  length: (v) => v.length
65
64
  });
66
65
  }
67
- };
66
+ }
68
67
  // Annotate the CommonJS export names for ESM import in node:
69
68
  0 && (module.exports = {
70
69
  generateCacheKey
@@ -17,8 +17,7 @@ var generateCacheKey = function(options) {
17
17
  keyCache.set(str, hash);
18
18
  return hash;
19
19
  };
20
- var Cache;
21
- Cache = /* @__PURE__ */ function() {
20
+ var Cache = /* @__PURE__ */ function() {
22
21
  "use strict";
23
22
  function Cache2() {
24
23
  _class_call_check(this, Cache2);
@@ -15,8 +15,7 @@ const generateCacheKey = (options) => {
15
15
  keyCache.set(str, hash);
16
16
  return hash;
17
17
  };
18
- var Cache;
19
- Cache = class Cache2 {
18
+ class Cache {
20
19
  get(hash) {
21
20
  return this.caches.get(hash);
22
21
  }
@@ -30,7 +29,7 @@ Cache = class Cache2 {
30
29
  length: (v) => v.length
31
30
  });
32
31
  }
33
- };
32
+ }
34
33
  export {
35
34
  Cache as default,
36
35
  generateCacheKey
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.42.2",
18
+ "version": "2.44.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
  "lru-cache": "^6.0.0",
52
52
  "ua-parser-js": "^0.7.33",
53
53
  "@swc/helpers": "0.5.3",
54
- "@modern-js/utils": "2.42.2"
54
+ "@modern-js/utils": "2.44.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": "^5",
62
62
  "jest": "^29",
63
- "@modern-js/types": "2.42.2",
64
- "@modern-js/core": "2.42.2",
65
- "@scripts/build": "2.42.2",
66
- "@modern-js/server-core": "2.42.2",
67
- "@scripts/jest-config": "2.42.2",
68
- "@modern-js/app-tools": "2.42.2"
63
+ "@modern-js/server-core": "2.44.0",
64
+ "@modern-js/app-tools": "2.44.0",
65
+ "@modern-js/core": "2.44.0",
66
+ "@modern-js/types": "2.44.0",
67
+ "@scripts/jest-config": "2.44.0",
68
+ "@scripts/build": "2.44.0"
69
69
  },
70
70
  "sideEffects": false,
71
71
  "publishConfig": {