@glassly/jspolyfill 0.1.0-dev.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/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@glassly/jspolyfill",
3
+ "version": "0.1.0-dev.0",
4
+ "description": "GlasslyJS polyfill bundle \u2014 installed into each per-miniapp JSContext (iOS-JSC, Android-QuickJS) at spawn time. Provides browser-like globals (console, timers, fetch, WebSocket, localStorage, crypto.subtle) over a single __dispatch native bridge, plus the __deliver / signalReady plumbing the host runtime relies on.",
5
+ "main": "src/index.ts",
6
+ "types": "src/index.ts",
7
+ "scripts": {
8
+ "build": "node scripts/build.mjs",
9
+ "test": "bun test",
10
+ "clean": "rm -rf dist assets/startup.js ../crust/ios/Resources/startup.js",
11
+ "prepare": "node scripts/build.mjs"
12
+ },
13
+ "files": [
14
+ "src",
15
+ "dist",
16
+ "assets",
17
+ "!src/**/*.test.ts"
18
+ ],
19
+ "keywords": [
20
+ "glassly",
21
+ "glasslyjs",
22
+ "polyfill"
23
+ ],
24
+ "license": "MIT",
25
+ "devDependencies": {
26
+ "esbuild": "^0.23.0"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/tetramo-labs/glassly.git",
34
+ "directory": "mobile/modules/jspolyfill"
35
+ },
36
+ "homepage": "https://github.com/tetramo-labs/glassly/tree/dev/mobile/modules/jspolyfill#readme",
37
+ "bugs": {
38
+ "url": "https://github.com/tetramo-labs/glassly/issues"
39
+ }
40
+ }
package/src/index.ts ADDED
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @glassly/jspolyfill — polyfill bundle for per-miniapp JS contexts.
3
+ *
4
+ * The actual runtime JS lives in `src/startup.ts` and is built into a
5
+ * single IIFE at `dist/startup.js`. That bundled file is shipped INSIDE
6
+ * the host binary (iOS Expo Module resources / Android assets) and is
7
+ * read at JSContext spawn time. The host evaluates it as a single string
8
+ * before invoking the miniapp's `background/index.js`.
9
+ *
10
+ * The TS source here is type-only at runtime — bundling strips the
11
+ * `import type` lines and emits pure ES5 against `globalThis`.
12
+ */
13
+
14
+ export * from "./types"