@rsbuild/plugin-assets-retry 0.2.18 → 0.3.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/README.md +1 -1
- package/dist/index.js +11 -1
- package/dist/index.mjs +11 -1
- package/package.json +4 -4
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
9
|
var __esm = (fn, res) => function __init() {
|
|
9
10
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
11
|
};
|
|
@@ -29,6 +30,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
30
|
mod
|
|
30
31
|
));
|
|
31
32
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
var __publicField = (obj, key, value) => {
|
|
34
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
35
|
+
return value;
|
|
36
|
+
};
|
|
32
37
|
var __accessCheck = (obj, member, msg) => {
|
|
33
38
|
if (!member.has(obj))
|
|
34
39
|
throw TypeError("Cannot " + msg);
|
|
@@ -62,6 +67,11 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
62
67
|
import_shared = require("@rsbuild/shared");
|
|
63
68
|
AssetsRetryPlugin = class {
|
|
64
69
|
constructor(options) {
|
|
70
|
+
__publicField(this, "name");
|
|
71
|
+
__publicField(this, "distDir");
|
|
72
|
+
__publicField(this, "inlineScript");
|
|
73
|
+
__publicField(this, "HtmlPlugin");
|
|
74
|
+
__publicField(this, "scriptPath");
|
|
65
75
|
__privateAdd(this, _retryOptions, void 0);
|
|
66
76
|
const {
|
|
67
77
|
distDir,
|
|
@@ -88,7 +98,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
88
98
|
if (!this.scriptPath) {
|
|
89
99
|
this.scriptPath = import_path.default.join(
|
|
90
100
|
this.distDir,
|
|
91
|
-
`assets-retry.${"0.
|
|
101
|
+
`assets-retry.${"0.3.1"}.js`
|
|
92
102
|
);
|
|
93
103
|
}
|
|
94
104
|
return this.scriptPath;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
4
|
var __esm = (fn, res) => function __init() {
|
|
4
5
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
5
6
|
};
|
|
@@ -7,6 +8,10 @@ var __export = (target, all) => {
|
|
|
7
8
|
for (var name in all)
|
|
8
9
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
10
|
};
|
|
11
|
+
var __publicField = (obj, key, value) => {
|
|
12
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
13
|
+
return value;
|
|
14
|
+
};
|
|
10
15
|
var __accessCheck = (obj, member, msg) => {
|
|
11
16
|
if (!member.has(obj))
|
|
12
17
|
throw TypeError("Cannot " + msg);
|
|
@@ -69,6 +74,11 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
69
74
|
init_requireShims();
|
|
70
75
|
AssetsRetryPlugin = class {
|
|
71
76
|
constructor(options) {
|
|
77
|
+
__publicField(this, "name");
|
|
78
|
+
__publicField(this, "distDir");
|
|
79
|
+
__publicField(this, "inlineScript");
|
|
80
|
+
__publicField(this, "HtmlPlugin");
|
|
81
|
+
__publicField(this, "scriptPath");
|
|
72
82
|
__privateAdd(this, _retryOptions, void 0);
|
|
73
83
|
const {
|
|
74
84
|
distDir,
|
|
@@ -95,7 +105,7 @@ var init_AssetsRetryPlugin = __esm({
|
|
|
95
105
|
if (!this.scriptPath) {
|
|
96
106
|
this.scriptPath = path2.join(
|
|
97
107
|
this.distDir,
|
|
98
|
-
`assets-retry.${"0.
|
|
108
|
+
`assets-retry.${"0.3.1"}.js`
|
|
99
109
|
);
|
|
100
110
|
}
|
|
101
111
|
return this.scriptPath;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/plugin-assets-retry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Assets retry plugin for Rsbuild",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"serialize-javascript": "^6.0.0",
|
|
27
|
-
"@rsbuild/shared": "0.
|
|
27
|
+
"@rsbuild/shared": "0.3.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@babel/core": "^7.23.2",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
|
|
35
35
|
"terser": "5.19.2",
|
|
36
36
|
"typescript": "^5.3.0",
|
|
37
|
-
"@
|
|
38
|
-
"@rsbuild/core": "0.
|
|
37
|
+
"@scripts/test-helper": "1.0.0",
|
|
38
|
+
"@rsbuild/core": "0.3.1"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public",
|