@modern-js/plugin-polyfill 2.47.1 → 2.48.1
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/dist/cjs/libs/cache.js
CHANGED
@@ -32,7 +32,6 @@ __export(cache_exports, {
|
|
32
32
|
generateCacheKey: () => generateCacheKey
|
33
33
|
});
|
34
34
|
module.exports = __toCommonJS(cache_exports);
|
35
|
-
var import_define_property = require("@swc/helpers/_/_define_property");
|
36
35
|
var import_crypto = __toESM(require("crypto"));
|
37
36
|
var import_lru_cache = __toESM(require("lru-cache"));
|
38
37
|
const KB = 1024;
|
@@ -57,7 +56,6 @@ class Cache {
|
|
57
56
|
this.caches.set(hash, content);
|
58
57
|
}
|
59
58
|
constructor() {
|
60
|
-
(0, import_define_property._)(this, "caches", void 0);
|
61
59
|
this.caches = new import_lru_cache.default({
|
62
60
|
max: 200 * MB,
|
63
61
|
length: (v) => v.length
|
package/dist/esm/libs/cache.js
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
|
2
|
-
import { _ as _create_class } from "@swc/helpers/_/_create_class";
|
3
|
-
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
4
2
|
import crypto from "crypto";
|
5
3
|
import LRUCache from "lru-cache";
|
6
4
|
var KB = 1024;
|
@@ -21,7 +19,6 @@ var Cache = /* @__PURE__ */ function() {
|
|
21
19
|
"use strict";
|
22
20
|
function Cache2() {
|
23
21
|
_class_call_check(this, Cache2);
|
24
|
-
_define_property(this, "caches", void 0);
|
25
22
|
this.caches = new LRUCache({
|
26
23
|
max: 200 * MB,
|
27
24
|
length: function(v) {
|
@@ -29,20 +26,13 @@ var Cache = /* @__PURE__ */ function() {
|
|
29
26
|
}
|
30
27
|
});
|
31
28
|
}
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
{
|
40
|
-
key: "set",
|
41
|
-
value: function set(hash, content) {
|
42
|
-
this.caches.set(hash, content);
|
43
|
-
}
|
44
|
-
}
|
45
|
-
]);
|
29
|
+
var _proto = Cache2.prototype;
|
30
|
+
_proto.get = function get(hash) {
|
31
|
+
return this.caches.get(hash);
|
32
|
+
};
|
33
|
+
_proto.set = function set(hash, content) {
|
34
|
+
this.caches.set(hash, content);
|
35
|
+
};
|
46
36
|
return Cache2;
|
47
37
|
}();
|
48
38
|
export {
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { _ as _define_property } from "@swc/helpers/_/_define_property";
|
2
1
|
import crypto from "crypto";
|
3
2
|
import LRUCache from "lru-cache";
|
4
3
|
const KB = 1024;
|
@@ -23,7 +22,6 @@ class Cache {
|
|
23
22
|
this.caches.set(hash, content);
|
24
23
|
}
|
25
24
|
constructor() {
|
26
|
-
_define_property(this, "caches", void 0);
|
27
25
|
this.caches = new LRUCache({
|
28
26
|
max: 200 * MB,
|
29
27
|
length: (v) => v.length
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.48.1",
|
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.
|
54
|
+
"@modern-js/utils": "2.48.1"
|
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/
|
64
|
-
"@modern-js/
|
65
|
-
"@modern-js/
|
66
|
-
"@scripts/build": "2.
|
67
|
-
"@modern-js/
|
68
|
-
"@scripts/jest-config": "2.
|
63
|
+
"@modern-js/server-core": "2.48.1",
|
64
|
+
"@modern-js/types": "2.48.1",
|
65
|
+
"@modern-js/core": "2.48.1",
|
66
|
+
"@scripts/build": "2.48.1",
|
67
|
+
"@modern-js/app-tools": "2.48.1",
|
68
|
+
"@scripts/jest-config": "2.48.1"
|
69
69
|
},
|
70
70
|
"sideEffects": false,
|
71
71
|
"publishConfig": {
|