@glassly/jspolyfill 0.1.0-dev.98 → 0.2.8-dev.444

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/assets/startup.js CHANGED
@@ -1,4 +1,4 @@
1
- // @generated GlasslyJS polyfill bundle — see mobile/modules/jspolyfill
1
+ // @generated JSRuntime polyfill bundle — see mobile/modules/jspolyfill
2
2
  "use strict";
3
3
  (() => {
4
4
  // src/startup.ts
@@ -424,7 +424,7 @@
424
424
  if (!cryptoNs.subtle) {
425
425
  const notImplemented = () => {
426
426
  throw new Error(
427
- "crypto.subtle is not yet implemented in GlasslyJS \u2014 see agents/glasslyjs-two-layer-miniapp-architecture.md (Polyfill strategy section). Use a pure-JS hash/encrypt library for now."
427
+ "crypto.subtle is not yet implemented in JSRuntime \u2014 see notes/glasslyjs-two-layer-miniapp-architecture.md (Polyfill strategy section). Use a pure-JS hash/encrypt library for now."
428
428
  );
429
429
  };
430
430
  cryptoNs.subtle = new Proxy(
package/dist/startup.js CHANGED
@@ -1,4 +1,4 @@
1
- // @generated GlasslyJS polyfill bundle — see mobile/modules/jspolyfill
1
+ // @generated JSRuntime polyfill bundle — see mobile/modules/jspolyfill
2
2
  "use strict";
3
3
  (() => {
4
4
  // src/startup.ts
@@ -424,7 +424,7 @@
424
424
  if (!cryptoNs.subtle) {
425
425
  const notImplemented = () => {
426
426
  throw new Error(
427
- "crypto.subtle is not yet implemented in GlasslyJS \u2014 see agents/glasslyjs-two-layer-miniapp-architecture.md (Polyfill strategy section). Use a pure-JS hash/encrypt library for now."
427
+ "crypto.subtle is not yet implemented in JSRuntime \u2014 see notes/glasslyjs-two-layer-miniapp-architecture.md (Polyfill strategy section). Use a pure-JS hash/encrypt library for now."
428
428
  );
429
429
  };
430
430
  cryptoNs.subtle = new Proxy(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@glassly/jspolyfill",
3
- "version": "0.1.0-dev.98",
4
- "description": "GlasslyJS polyfill bundle — 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.",
3
+ "version": "0.2.8-dev.444",
4
+ "description": "JSRuntime polyfill bundle — 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
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
7
7
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  ],
19
19
  "keywords": [
20
20
  "glassly",
21
- "glasslyjs",
21
+ "jsruntime",
22
22
  "polyfill"
23
23
  ],
24
24
  "license": "MIT",
package/src/startup.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * GlasslyJS polyfill bundle entry point.
2
+ * JSRuntime polyfill bundle entry point.
3
3
  *
4
4
  * This file gets compiled (via scripts/build.mjs) into a single IIFE that
5
5
  * is `evaluateScript`-ed inside every per-miniapp JSContext at spawn
@@ -591,8 +591,8 @@ declare const __nativeClearTimer: (token: number) => void
591
591
  if (!cryptoNs.subtle) {
592
592
  const notImplemented = () => {
593
593
  throw new Error(
594
- "crypto.subtle is not yet implemented in GlasslyJS — see " +
595
- "agents/glasslyjs-two-layer-miniapp-architecture.md (Polyfill " +
594
+ "crypto.subtle is not yet implemented in JSRuntime — see " +
595
+ "notes/glasslyjs-two-layer-miniapp-architecture.md (Polyfill " +
596
596
  "strategy section). Use a pure-JS hash/encrypt library for now.",
597
597
  )
598
598
  }
package/src/types.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Shared envelope types for the GlasslyJS runtime — the polyfill bundle
2
+ * Shared envelope types for the JSRuntime runtime — the polyfill bundle
3
3
  * uses these to drive globalThis.__deliver and the dispatch surface.
4
4
  *
5
5
  * Native (Swift on iOS, Kotlin on Android) injects: