@fluent.xyz/connect 0.7.2 → 0.8.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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/polyfills/buffer.ts"],"names":[],"mappings":";;;AAeA,IAAM,gBAAA,GAAmB,UAAA;AAIzB,IAAI,gBAAA,CAAiB,WAAW,MAAA,EAAW;AACzC,EAAA,gBAAA,CAAiB,MAAA,GAAS,MAAA;AAC5B","file":"buffer.js","sourcesContent":["import { Buffer } from \"buffer\";\n\n/**\n * Privy's embedded wallet calls `Buffer.from(...)` while signing, and a browser has no\n * `Buffer`: without this module the first signature fails with Privy's\n * `BUFFER_NOT_DEFINED`. The SDK provides the global so host apps need no polyfill of\n * their own.\n *\n * An existing `Buffer` is never replaced. The host app may have polyfilled it already,\n * and two implementations in one page are worse than either one.\n *\n * The assignment below is this module's whole purpose, so the module must survive a\n * consumer's production tree-shaking: it is listed in the package's `sideEffects` and\n * `tsup.config.ts` keeps it a live `import` in `dist/index.js` rather than inlining it.\n */\nconst globalWithBuffer = globalThis as typeof globalThis & {\n Buffer?: typeof Buffer;\n};\n\nif (globalWithBuffer.Buffer === undefined) {\n globalWithBuffer.Buffer = Buffer;\n}\n"]}
1
+ {"version":3,"sources":["../../src/polyfills/buffer.ts"],"names":[],"mappings":";;;AAgBA,IAAM,gBAAA,GAAmB,UAAA;AAIzB,IAAI,gBAAA,CAAiB,WAAW,MAAA,EAAW;AACzC,EAAA,gBAAA,CAAiB,MAAA,GAAS,MAAA;AAC5B","file":"buffer.js","sourcesContent":["import { Buffer } from \"buffer\";\n\n/**\n * Installs the `buffer` package's `Buffer` as the global when the page has none. Privy's\n * embedded wallet calls `Buffer.from(...)` while signing, and a browser has no `Buffer`: without\n * this module the first signature fails with Privy's `BUFFER_NOT_DEFINED`. It must run before\n * any Privy or ZeroDev module does, so it is the first import of `src/index.ts`, and an App\n * needs no polyfill of its own.\n *\n * An existing `Buffer` is never replaced: the App may have polyfilled it already, and two\n * implementations in one page are worse than either one.\n *\n * The assignment below is this module's whole purpose, so the module must survive a\n * consumer's production tree-shaking: it is listed in the package's `sideEffects` and\n * `tsup.config.ts` keeps it a live `import` in `dist/index.js` rather than inlining it.\n */\nconst globalWithBuffer = globalThis as typeof globalThis & {\n Buffer?: typeof Buffer;\n};\n\nif (globalWithBuffer.Buffer === undefined) {\n globalWithBuffer.Buffer = Buffer;\n}\n"]}