@bitmagic/asset-core 0.1.3 → 0.2.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/publish-source.d.ts +20 -10
- package/dist/publish-source.d.ts.map +1 -1
- package/dist/publish-source.js +20 -11
- package/dist/publish-source.js.map +1 -1
- package/package.json +2 -10
package/dist/publish-source.d.ts
CHANGED
|
@@ -220,20 +220,30 @@ export declare function tarballPathToProjectPath(tarballPath: string): string |
|
|
|
220
220
|
* Bytes every genuine published bundle carries, used to refuse a publish that is not an engine
|
|
221
221
|
* build at all.
|
|
222
222
|
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
223
|
+
* The scaffold's `index.html` emits a `<script type="importmap">` whose body Vite only RELOCATES —
|
|
224
|
+
* its import-map hook lifts the tag out and reinserts the matched text unchanged before the first
|
|
225
|
+
* module script — so these land byte for byte near the top of the single-file bundle, inside the
|
|
226
|
+
* head range `complete` already reads for the meta block.
|
|
227
|
+
*
|
|
228
|
+
* **Position is the constraint, not just survival, and it is why `id="game-container"` is not on
|
|
229
|
+
* this list.** `vite-plugin-singlefile` hoists the inlined script into `<head>`, so in a real
|
|
230
|
+
* 8.4MB bundle `</head>` sits at byte 8,471,158 and `<body>` — with the container div — begins
|
|
231
|
+
* eight megabytes past the head window. The div is present and unchanged; it is simply
|
|
232
|
+
* unreachable without reading the whole object, which is exactly what this design refuses to do.
|
|
233
|
+
* That cost a live refusal of a genuine publish in dev: a first spike validated the markers
|
|
234
|
+
* against a 1.29KB bundle, where "end of file" and "first 64KB" are the same place. Any marker
|
|
235
|
+
* added here must be checked for its OFFSET in a multi-megabyte bundle, not merely its presence.
|
|
236
|
+
*
|
|
237
|
+
* The import map is structurally safe in a way the body is not: a browser requires an import map
|
|
238
|
+
* to precede the first module script, so it cannot migrate below the inlined bundle no matter how
|
|
239
|
+
* large that bundle grows.
|
|
230
240
|
*
|
|
231
241
|
* Why a SUBSET of the alias entries rather than all of them. A creator's installed CLI is an older
|
|
232
242
|
* npm release than the running server, so the server must only require markers that both agree on.
|
|
233
243
|
* The CDN entries are disqualified outright — they embed the pinned three.js version, which moves
|
|
234
|
-
* whenever the CLI bumps it.
|
|
235
|
-
*
|
|
236
|
-
*
|
|
244
|
+
* whenever the CLI bumps it. These two are the ones that have to exist for a project to resolve
|
|
245
|
+
* its entry module at all, so requiring more would buy nothing and would turn any future alias
|
|
246
|
+
* change into a spurious refusal for every not-yet-upgraded project.
|
|
237
247
|
*
|
|
238
248
|
* What this is worth: it stops bitmagic.ai being used to host arbitrary HTML by someone who has an
|
|
239
249
|
* account and a game id. It is trivially copy-pasteable by anyone who looks, and is not claimed to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-source.d.ts","sourceRoot":"","sources":["../src/publish-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAQH;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,OAAO,CAAC;AAEtC;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,MAAM,CAM5C,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,MAAM,CAI7C,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B,EAAE,WAAW,CAAC,MAAM,CAG7D,CAAC;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EASjD,CAAC;AAEF,qFAAqF;AACrF,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,GAAE,MAAY,GAAG,MAAM,CAE3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AAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAEhD;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAW3E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAGjD,CAAC;AAEF,6EAA6E;AAC7E,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAMhE"}
|
package/dist/publish-source.js
CHANGED
|
@@ -206,27 +206,36 @@ export function tarballPathToProjectPath(tarballPath) {
|
|
|
206
206
|
* Bytes every genuine published bundle carries, used to refuse a publish that is not an engine
|
|
207
207
|
* build at all.
|
|
208
208
|
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
209
|
+
* The scaffold's `index.html` emits a `<script type="importmap">` whose body Vite only RELOCATES —
|
|
210
|
+
* its import-map hook lifts the tag out and reinserts the matched text unchanged before the first
|
|
211
|
+
* module script — so these land byte for byte near the top of the single-file bundle, inside the
|
|
212
|
+
* head range `complete` already reads for the meta block.
|
|
213
|
+
*
|
|
214
|
+
* **Position is the constraint, not just survival, and it is why `id="game-container"` is not on
|
|
215
|
+
* this list.** `vite-plugin-singlefile` hoists the inlined script into `<head>`, so in a real
|
|
216
|
+
* 8.4MB bundle `</head>` sits at byte 8,471,158 and `<body>` — with the container div — begins
|
|
217
|
+
* eight megabytes past the head window. The div is present and unchanged; it is simply
|
|
218
|
+
* unreachable without reading the whole object, which is exactly what this design refuses to do.
|
|
219
|
+
* That cost a live refusal of a genuine publish in dev: a first spike validated the markers
|
|
220
|
+
* against a 1.29KB bundle, where "end of file" and "first 64KB" are the same place. Any marker
|
|
221
|
+
* added here must be checked for its OFFSET in a multi-megabyte bundle, not merely its presence.
|
|
222
|
+
*
|
|
223
|
+
* The import map is structurally safe in a way the body is not: a browser requires an import map
|
|
224
|
+
* to precede the first module script, so it cannot migrate below the inlined bundle no matter how
|
|
225
|
+
* large that bundle grows.
|
|
216
226
|
*
|
|
217
227
|
* Why a SUBSET of the alias entries rather than all of them. A creator's installed CLI is an older
|
|
218
228
|
* npm release than the running server, so the server must only require markers that both agree on.
|
|
219
229
|
* The CDN entries are disqualified outright — they embed the pinned three.js version, which moves
|
|
220
|
-
* whenever the CLI bumps it.
|
|
221
|
-
*
|
|
222
|
-
*
|
|
230
|
+
* whenever the CLI bumps it. These two are the ones that have to exist for a project to resolve
|
|
231
|
+
* its entry module at all, so requiring more would buy nothing and would turn any future alias
|
|
232
|
+
* change into a spurious refusal for every not-yet-upgraded project.
|
|
223
233
|
*
|
|
224
234
|
* What this is worth: it stops bitmagic.ai being used to host arbitrary HTML by someone who has an
|
|
225
235
|
* account and a game id. It is trivially copy-pasteable by anyone who looks, and is not claimed to
|
|
226
236
|
* be more than that.
|
|
227
237
|
*/
|
|
228
238
|
export const ENGINE_BUILD_MARKERS = [
|
|
229
|
-
'id="game-container"',
|
|
230
239
|
'"engine/": "/dist/engine/engine/"',
|
|
231
240
|
'"types/": "/dist/engine/types/"',
|
|
232
241
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
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AC7E,CAAC;IACD,IAAI,WAAW,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAE,CAAC;QAC/C,OAAO,GAAG,sBAAsB,cAAc,WAAW,CAAC,KAAK,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC;IAC/F,CAAC;IACD,IAAI,WAAW,KAAK,yBAAyB,EAAE,CAAC;QAC9C,OAAO,oBAAoB,CAAC;IAC9B,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAsB;IACrD,mCAAmC;IACnC,iCAAiC;CAClC,CAAC;AAEF,6EAA6E;AAC7E,MAAM,UAAU,qBAAqB,CAAC,IAAY;IAChD,OAAO,oBAAoB,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;AACvE,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAmB;IACtD,gGAAgG;IAChG,uFAAuF;IACvF,gEAAgE;IAChE,MAAM,IAAI,GAAG,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACtD,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACxF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitmagic/asset-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,13 +20,6 @@
|
|
|
20
20
|
"./publish-source": {
|
|
21
21
|
"types": "./dist/publish-source.d.ts",
|
|
22
22
|
"default": "./dist/publish-source.js"
|
|
23
|
-
},
|
|
24
|
-
"./animation/*": {
|
|
25
|
-
"default": "./src/animation/*"
|
|
26
|
-
},
|
|
27
|
-
"./animation/authored.mjs": {
|
|
28
|
-
"types": "./src/animation/authored.d.mts",
|
|
29
|
-
"default": "./src/animation/authored.mjs"
|
|
30
23
|
}
|
|
31
24
|
},
|
|
32
25
|
"files": [
|
|
@@ -36,8 +29,7 @@
|
|
|
36
29
|
"access": "public"
|
|
37
30
|
},
|
|
38
31
|
"dependencies": {
|
|
39
|
-
"zod": "^3.25.76"
|
|
40
|
-
"three": "^0.185.1"
|
|
32
|
+
"zod": "^3.25.76"
|
|
41
33
|
},
|
|
42
34
|
"devDependencies": {
|
|
43
35
|
"@eslint/js": "^9.38.0",
|