@premai/reticle 0.4.2 → 0.4.3

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 CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@premai/reticle",
3
3
  "type": "module",
4
- "version": "0.4.2",
4
+ "version": "0.4.3",
5
5
  "files": [
6
6
  "reticle_bg.wasm",
7
7
  "reticle.js",
8
8
  "reticle_bg.js",
9
9
  "reticle.d.ts",
10
- "reticle_bg.js"
10
+ "reticle_bg.js",
11
+ "reticle_main.js",
12
+ "snippets"
11
13
  ],
12
14
  "main": "reticle_main.js",
13
15
  "types": "reticle.d.ts",
package/reticle_bg.js CHANGED
@@ -1,4 +1,4 @@
1
- import { realFetch } from './snippets/reticle-f25e928bd9723d28/src/fetchShim.js';
1
+ import { realFetch } from './snippets/reticle-a4ace3ad7c601c45/src/fetchShim.js';
2
2
 
3
3
 
4
4
  export class AttestHeaders {
@@ -1413,7 +1413,7 @@ export function __wbg_queueMicrotask_b39ea83c7f01971a(arg0) {
1413
1413
  export function __wbg_randomFillSync_ca9f178fb14c88cb() { return handleError(function (arg0, arg1) {
1414
1414
  arg0.randomFillSync(arg1);
1415
1415
  }, arguments); }
1416
- export function __wbg_realFetch_65865cb56349aabc() { return handleError(function (arg0, arg1) {
1416
+ export function __wbg_realFetch_b34721e7ad6be900() { return handleError(function (arg0, arg1) {
1417
1417
  const ret = realFetch(arg0, arg1);
1418
1418
  return ret;
1419
1419
  }, arguments); }
package/reticle_bg.wasm CHANGED
Binary file
package/reticle_main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* @ts-self-types="./reticle.d.ts" */
2
- const { realFetch } = require(String.raw`./snippets/reticle-f25e928bd9723d28/src/fetchShim.js`);
2
+ const { realFetch } = require(String.raw`./snippets/reticle-a4ace3ad7c601c45/src/fetchShim.js`);
3
3
 
4
4
  class AttestHeaders {
5
5
  static __wrap(ptr) {
@@ -1444,7 +1444,7 @@ function __wbg_get_imports() {
1444
1444
  __wbg_randomFillSync_ca9f178fb14c88cb: function() { return handleError(function (arg0, arg1) {
1445
1445
  arg0.randomFillSync(arg1);
1446
1446
  }, arguments); },
1447
- __wbg_realFetch_65865cb56349aabc: function() { return handleError(function (arg0, arg1) {
1447
+ __wbg_realFetch_b34721e7ad6be900: function() { return handleError(function (arg0, arg1) {
1448
1448
  const ret = realFetch(arg0, arg1);
1449
1449
  return ret;
1450
1450
  }, arguments); },
@@ -0,0 +1,7 @@
1
+ // This helper modules is for binding to the right fetch in case the global
2
+ // fetch gets overwritten
3
+ const baseFetch = globalThis.fetch.bind(globalThis);
4
+
5
+ export function realFetch(input, init) {
6
+ return baseFetch(input, init);
7
+ }