@kitten-science/kitten-scientists 2.0.0-beta.10-dev-ffc5b31 → 2.0.0-beta.10-dev-13446e1
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/lib/devcontainer/inject-scripts.d.ts +3 -0
- package/lib/devcontainer/inject-scripts.d.ts.map +1 -0
- package/lib/devcontainer/{inject-scripts.cjs → inject-scripts.js} +4 -5
- package/lib/devcontainer/inject-scripts.js.map +1 -0
- package/lib/devcontainer/rewrite-index.d.ts +2 -0
- package/lib/devcontainer/rewrite-index.d.ts.map +1 -0
- package/lib/devcontainer/{rewrite-index.mjs → rewrite-index.js} +1 -1
- package/lib/devcontainer/rewrite-index.js.map +1 -0
- package/output/devcontainer/inject-scripts.mjs +12 -44
- package/output/devcontainer/rewrite-index.mjs +14 -37506
- package/package.json +1 -1
- package/lib/devcontainer/inject-scripts.cjs.map +0 -1
- package/lib/devcontainer/inject-scripts.d.cts +0 -3
- package/lib/devcontainer/inject-scripts.d.cts.map +0 -1
- package/lib/devcontainer/rewrite-index.d.mts +0 -2
- package/lib/devcontainer/rewrite-index.d.mts.map +0 -1
- package/lib/devcontainer/rewrite-index.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject-scripts.d.ts","sourceRoot":"","sources":["../../source/devcontainer/inject-scripts.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
const indexHtml = fs.readFileSync("index.html", "utf8");
|
|
2
|
+
import { readFileSync, writeFileSync } from "node:fs";
|
|
3
|
+
const indexHtml = readFileSync("index.html", "utf8");
|
|
5
4
|
let injectedHtml = indexHtml.replace("</body>", `<script>
|
|
6
5
|
const scripts = [ "overlay/kitten-scientists.inject.js" ];
|
|
7
6
|
|
|
@@ -12,5 +11,5 @@ let injectedHtml = indexHtml.replace("</body>", `<script>
|
|
|
12
11
|
}
|
|
13
12
|
</script></body>`);
|
|
14
13
|
injectedHtml = injectedHtml.replace(/<title>.+<\/title>/, "<title>☣ Kitten Scientists Development Environment</title>");
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=inject-scripts.
|
|
14
|
+
writeFileSync("index.html", injectedHtml);
|
|
15
|
+
//# sourceMappingURL=inject-scripts.js.map
|
|
@@ -0,0 +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;;;;;;;;mBAQiB,CAClB,CAAC;AACF,YAAY,GAAG,YAAY,CAAC,OAAO,CACjC,oBAAoB,EACpB,4DAA4D,CAC7D,CAAC;AACF,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rewrite-index.d.ts","sourceRoot":"","sources":["../../source/devcontainer/rewrite-index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rewrite-index.js","sourceRoot":"","sources":["../../source/devcontainer/rewrite-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;IACtB,MAAM,SAAS,GAAG,MAAM,QAAQ,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IACrE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAElC,iCAAiC;IACjC,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC,MAAM,EAAE,CAAC;IAE7B,eAAe;IACf,CAAC,CAAC,iFAAiF,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9F,CAAC,CAAC,wEAAwE,CAAC,CAAC,MAAM,EAAE,CAAC;IAErF,kBAAkB;IAClB,CAAC,CAAC,2DAA2D,CAAC,CAAC,MAAM,EAAE,CAAC;IACxE,CAAC,CAAC,qBAAqB,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,CAAC,CAAC,4BAA4B,CAAC,CAAC,MAAM,EAAE,CAAC;IAEzC,gCAAgC;IAChC,MAAM,OAAO,GAAG,CAAC,CAAC,mBAAmB,CAAC;SACnC,IAAI,EAAE;SACN,UAAU,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IACvC,MAAM,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC,CAAC,mBAAmB,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,yDAAyD,CAAC,CAAC;IAE5E,6BAA6B;IAC7B,MAAM,SAAS,CAAC,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAC1C,CAAC,CAAC;AAEF,IAAI,EAAE,CAAC,KAAK,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -1,40 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
4
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
5
|
-
}) : x)(function(x) {
|
|
6
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
8
|
-
});
|
|
9
|
-
var __esm = (fn, res) => function __init() {
|
|
10
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
|
-
};
|
|
12
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
13
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
|
-
};
|
|
15
2
|
|
|
16
|
-
// source/devcontainer/
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"use strict";
|
|
23
|
-
globalThis.require = createRequire(import.meta.url);
|
|
24
|
-
globalThis.__filename = url.fileURLToPath(import.meta.url);
|
|
25
|
-
globalThis.__dirname = path.dirname(__filename);
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
// source/devcontainer/inject-scripts.cjs
|
|
30
|
-
var require_inject_scripts = __commonJS({
|
|
31
|
-
"source/devcontainer/inject-scripts.cjs"() {
|
|
32
|
-
init_cjs_shim();
|
|
33
|
-
var fs = __require("node:fs");
|
|
34
|
-
var indexHtml = fs.readFileSync("index.html", "utf8");
|
|
35
|
-
var injectedHtml = indexHtml.replace(
|
|
36
|
-
"</body>",
|
|
37
|
-
`<script>
|
|
3
|
+
// source/devcontainer/inject-scripts.ts
|
|
4
|
+
import { readFileSync, writeFileSync } from "node:fs";
|
|
5
|
+
var indexHtml = readFileSync("index.html", "utf8");
|
|
6
|
+
var injectedHtml = indexHtml.replace(
|
|
7
|
+
"</body>",
|
|
8
|
+
`<script>
|
|
38
9
|
const scripts = [ "overlay/kitten-scientists.inject.js" ];
|
|
39
10
|
|
|
40
11
|
for (const subject of scripts) {
|
|
@@ -43,12 +14,9 @@ var require_inject_scripts = __commonJS({
|
|
|
43
14
|
document.body.appendChild(script);
|
|
44
15
|
}
|
|
45
16
|
</script></body>`
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
export default require_inject_scripts();
|
|
17
|
+
);
|
|
18
|
+
injectedHtml = injectedHtml.replace(
|
|
19
|
+
/<title>.+<\/title>/,
|
|
20
|
+
"<title>\u2623 Kitten Scientists Development Environment</title>"
|
|
21
|
+
);
|
|
22
|
+
writeFileSync("index.html", injectedHtml);
|