extension 3.9.0-next.3 → 3.9.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/dist/cli.cjs +6 -1
- package/package.json +4 -4
package/dist/cli.cjs
CHANGED
|
@@ -1117,18 +1117,23 @@ Cross-Browser Compatibility
|
|
|
1117
1117
|
if (external_node_fs_namespaceObject.existsSync(readyPath)) try {
|
|
1118
1118
|
const payload = JSON.parse(external_node_fs_namespaceObject.readFileSync(readyPath, 'utf8'));
|
|
1119
1119
|
const isLive = isProcessLikelyAlive(payload.pid);
|
|
1120
|
+
const isFresh = isFreshContractPayload(payload, options.timeoutMs);
|
|
1120
1121
|
if (payload.command !== options.command) {
|
|
1121
1122
|
await new Promise((resolve)=>setTimeout(resolve, 250));
|
|
1122
1123
|
continue;
|
|
1123
1124
|
}
|
|
1124
1125
|
if (!isLive) {
|
|
1125
|
-
if ('start' !== options.command || !
|
|
1126
|
+
if ('start' !== options.command || !isFresh) {
|
|
1126
1127
|
await new Promise((resolve)=>setTimeout(resolve, 250));
|
|
1127
1128
|
continue;
|
|
1128
1129
|
}
|
|
1129
1130
|
}
|
|
1130
1131
|
if ('ready' === payload.status) return payload;
|
|
1131
1132
|
if ('error' === payload.status) {
|
|
1133
|
+
if (!isLive && 'start' !== options.command) {
|
|
1134
|
+
await new Promise((resolve)=>setTimeout(resolve, 250));
|
|
1135
|
+
continue;
|
|
1136
|
+
}
|
|
1132
1137
|
const detail = payload.message || payload.errors?.[0] || 'unknown error';
|
|
1133
1138
|
throw new Error(String(detail));
|
|
1134
1139
|
}
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"extension": "./bin/extension.cjs"
|
|
34
34
|
},
|
|
35
35
|
"name": "extension",
|
|
36
|
-
"version": "3.9.0
|
|
36
|
+
"version": "3.9.0",
|
|
37
37
|
"description": "Create cross-browser extensions with no build configuration.",
|
|
38
38
|
"homepage": "https://extension.js.org/",
|
|
39
39
|
"bugs": {
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@types/chrome": "^0.1.33",
|
|
91
91
|
"@types/node": "^25.2.0",
|
|
92
92
|
"@types/webextension-polyfill": "0.12.4",
|
|
93
|
-
"extension-create": "3.9.0
|
|
94
|
-
"extension-develop": "3.9.0
|
|
95
|
-
"extension-install": "3.9.0
|
|
93
|
+
"extension-create": "3.9.0",
|
|
94
|
+
"extension-develop": "3.9.0",
|
|
95
|
+
"extension-install": "3.9.0",
|
|
96
96
|
"commander": "^14.0.3",
|
|
97
97
|
"pintor": "0.3.0",
|
|
98
98
|
"semver": "^7.7.3",
|