@kitten-science/kitten-scientists 2.0.0-beta.10-dev-13446e1 → 2.0.0-beta.10-20250402-4e11d20
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
3
3
|
const indexHtml = readFileSync("index.html", "utf8");
|
|
4
|
+
const injectables = process.argv.slice(2);
|
|
4
5
|
let injectedHtml = indexHtml.replace("</body>", `<script>
|
|
5
|
-
const scripts =
|
|
6
|
-
|
|
6
|
+
const scripts = ${JSON.stringify(injectables)};
|
|
7
7
|
for (const subject of scripts) {
|
|
8
8
|
const script = document.createElement("script");
|
|
9
9
|
script.src = subject + "?_=" + new Date().getTime();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-scripts.js","sourceRoot":"","sources":["../../source/devcontainer/inject-scripts.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AACrD,IAAI,YAAY,GAAG,SAAS,CAAC,OAAO,CAClC,SAAS,EACT
|
|
1
|
+
{"version":3,"file":"inject-scripts.js","sourceRoot":"","sources":["../../source/devcontainer/inject-scripts.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AACrD,MAAM,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1C,IAAI,YAAY,GAAG,SAAS,CAAC,OAAO,CAClC,SAAS,EACT;sBACoB,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;;;;;;mBAM9B,CAClB,CAAC;AACF,YAAY,GAAG,YAAY,CAAC,OAAO,CACjC,oBAAoB,EACpB,4DAA4D,CAC7D,CAAC;AACF,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
// source/devcontainer/inject-scripts.ts
|
|
4
4
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
5
5
|
var indexHtml = readFileSync("index.html", "utf8");
|
|
6
|
+
var injectables = process.argv.slice(2);
|
|
6
7
|
var injectedHtml = indexHtml.replace(
|
|
7
8
|
"</body>",
|
|
8
9
|
`<script>
|
|
9
|
-
const scripts =
|
|
10
|
-
|
|
10
|
+
const scripts = ${JSON.stringify(injectables)};
|
|
11
11
|
for (const subject of scripts) {
|
|
12
12
|
const script = document.createElement("script");
|
|
13
13
|
script.src = subject + "?_=" + new Date().getTime();
|
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-20250402-4e11d20",
|
|
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>",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@biomejs/biome": "1.9.4",
|
|
49
49
|
"@types/dojo": "1.9.48",
|
|
50
50
|
"@types/jquery": "3.5.32",
|
|
51
|
-
"@types/node": "22.13.
|
|
51
|
+
"@types/node": "22.13.17",
|
|
52
52
|
"@types/semver": "7.7.0",
|
|
53
53
|
"@types/web": "0.0.216",
|
|
54
54
|
"cheerio": "1.0.0",
|