@kitten-science/kitten-scientists 2.0.0-beta.11-dev.20250520113819 → 2.0.0-beta.11-dev.20250520114707
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,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { readdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
3
|
const indexHtml = readFileSync("index.html", "utf8");
|
|
4
|
-
const injectables = readdirSync("overlay").
|
|
4
|
+
const injectables = readdirSync("overlay").filter(_ => _.endsWith(".inject.js"));
|
|
5
|
+
process.stderr.write(`Injecting ${injectables.join(",")}...\n`);
|
|
5
6
|
const injectedHtml = indexHtml.replace("</body>", `<script>
|
|
6
7
|
const scripts = ${JSON.stringify(injectables)};
|
|
7
8
|
for (const subject of scripts) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inject-scripts.js","sourceRoot":"","sources":["../../source/devcontainer/inject-scripts.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AACrD,MAAM,WAAW,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"inject-scripts.js","sourceRoot":"","sources":["../../source/devcontainer/inject-scripts.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,SAAS,GAAG,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AACrD,MAAM,WAAW,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;AACjF,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAChE,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO,CACpC,SAAS,EACT;sBACoB,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;;;;;;mBAM9B,CAClB,CAAC;AACF,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
// source/devcontainer/inject-scripts.ts
|
|
4
4
|
import { readdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
5
5
|
var indexHtml = readFileSync("index.html", "utf8");
|
|
6
|
-
var injectables = readdirSync("overlay").
|
|
6
|
+
var injectables = readdirSync("overlay").filter((_) => _.endsWith(".inject.js"));
|
|
7
|
+
process.stderr.write(`Injecting ${injectables.join(",")}...
|
|
8
|
+
`);
|
|
7
9
|
var injectedHtml = indexHtml.replace(
|
|
8
10
|
"</body>",
|
|
9
11
|
`<script>
|
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.11-dev.
|
|
4
|
+
"version": "2.0.0-beta.11-dev.20250520114707",
|
|
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>",
|