@kitten-science/kitten-scientists 2.0.0-beta.10-dev-0e00eb8 → 2.0.0-beta.10-20250317-13d12af
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.
|
@@ -7,7 +7,7 @@ let injectedHtml = indexHtml.replace("</body>", `<script>
|
|
|
7
7
|
|
|
8
8
|
for (const subject of scripts) {
|
|
9
9
|
const script = document.createElement("script");
|
|
10
|
-
script.src = subject;
|
|
10
|
+
script.src = subject + "?_=" + new Date().getTime();
|
|
11
11
|
document.body.appendChild(script);
|
|
12
12
|
}
|
|
13
13
|
</script></body>`);
|
|
@@ -39,7 +39,7 @@ var require_inject_scripts = __commonJS({
|
|
|
39
39
|
|
|
40
40
|
for (const subject of scripts) {
|
|
41
41
|
const script = document.createElement("script");
|
|
42
|
-
script.src = subject;
|
|
42
|
+
script.src = subject + "?_=" + new Date().getTime();
|
|
43
43
|
document.body.appendChild(script);
|
|
44
44
|
}
|
|
45
45
|
</script></body>`
|
|
@@ -12419,6 +12419,14 @@ var require_pool = __commonJS({
|
|
|
12419
12419
|
this[kOptions] = { ...util.deepClone(options), connect, allowH2 };
|
|
12420
12420
|
this[kOptions].interceptors = options.interceptors ? { ...options.interceptors } : void 0;
|
|
12421
12421
|
this[kFactory] = factory;
|
|
12422
|
+
this.on("connectionError", (origin2, targets, error) => {
|
|
12423
|
+
for (const target of targets) {
|
|
12424
|
+
const idx = this[kClients].indexOf(target);
|
|
12425
|
+
if (idx !== -1) {
|
|
12426
|
+
this[kClients].splice(idx, 1);
|
|
12427
|
+
}
|
|
12428
|
+
}
|
|
12429
|
+
});
|
|
12422
12430
|
}
|
|
12423
12431
|
[kGetDispatcher]() {
|
|
12424
12432
|
for (const client of this[kClients]) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@kitten-science/kitten-scientists",
|
|
4
|
-
"version": "2.0.0-beta.10-
|
|
4
|
+
"version": "2.0.0-beta.10-20250317-13d12af",
|
|
5
5
|
"description": "Add-on for the wonderful incremental browser game: https://kittensgame.com/web/",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Oliver Salzburg <oliver.salzburg@gmail.com>",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"whoami": "echo kitten-scientists"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@oliversalzburg/js-utils": "0.2.
|
|
42
|
+
"@oliversalzburg/js-utils": "0.2.13",
|
|
43
43
|
"date-fns": "4.1.0",
|
|
44
44
|
"semver": "7.7.1",
|
|
45
45
|
"tslib": "2.8.1"
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@types/jquery": "3.5.32",
|
|
51
51
|
"@types/node": "22.13.10",
|
|
52
52
|
"@types/semver": "7.5.8",
|
|
53
|
-
"@types/web": "0.0.
|
|
53
|
+
"@types/web": "0.0.212",
|
|
54
54
|
"cheerio": "1.0.0",
|
|
55
55
|
"rollup": "4.35.0",
|
|
56
56
|
"rollup-plugin-cleanup": "3.2.1",
|
|
57
57
|
"typescript": "5.8.2",
|
|
58
|
-
"vite": "6.2.
|
|
58
|
+
"vite": "6.2.2",
|
|
59
59
|
"vite-plugin-css-injected-by-js": "3.5.2",
|
|
60
60
|
"vite-plugin-userscript": "0.1.3"
|
|
61
61
|
},
|