diff --git a/apps/idos-enclave/package.json b/apps/idos-enclave/package.json index cb092a70b6..e340ab0465 100644 --- a/apps/idos-enclave/package.json +++ b/apps/idos-enclave/package.json @@ -19,25 +19,26 @@ "@types/dompurify": "3.0.5", "@types/lodash-es": "^4.17.12", "autoprefixer": "^10.4.16", + "ethers": "5.7.1", "postcss": "^8.4.31", "tailwindcss": "^3.4.1", "typescript": "^5.2.2", "vite": "^5.2.0", "vite-plugin-html": "^3.2.0", - "vite-plugin-mkcert": "^1.16.0", - "ethers": "5.7.1" + "vite-plugin-mkcert": "^1.16.0" }, "dependencies": { + "@headlessui/react": "^2.1.8", + "@idos-network/idos-store": "workspace:*", "@lit-protocol/auth-helpers": "^6.4.10", "@lit-protocol/constants": "^6.5.0", "@lit-protocol/lit-node-client": "^6.4.10", "@lit-protocol/types": "^6.5.0", - "@headlessui/react": "^2.1.8", - "@idos-network/idos-store": "workspace:*", "@preact/signals": "^1.3.0", "@react-oauth/google": "^0.12.1", "@stablelib/base64": "^1.0.1", "@stablelib/utf8": "^1.0.1", + "buffer": "^6.0.3", "dompurify": "^3.0.6", "lodash-es": "^4.17.21", "preact": "^10.19.6", diff --git a/apps/idos-enclave/src/main.ts b/apps/idos-enclave/src/main.ts index 06cca7d906..8bcb5441f6 100644 --- a/apps/idos-enclave/src/main.ts +++ b/apps/idos-enclave/src/main.ts @@ -1,7 +1,9 @@ +import { Buffer } from "buffer"; // @ts-expect-error Not typed yet import { Enclave } from "./lib/enclave"; import "./styles.css"; +globalThis.Buffer = Buffer; const enclaveWindow = window.self; const hasParentWindow = enclaveWindow !== window.top; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8a7154a726..336300518b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -175,6 +175,9 @@ importers: '@stablelib/utf8': specifier: ^1.0.1 version: 1.0.1 + buffer: + specifier: ^6.0.3 + version: 6.0.3 dompurify: specifier: ^3.0.6 version: 3.0.6 @@ -265,7 +268,7 @@ importers: version: 8.7.0(near-api-js@3.0.4) axios: specifier: ^1.6.8 - version: 1.6.8(debug@4.3.4) + version: 1.6.8 ethers: specifier: ^6.12 version: 6.12.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -14177,6 +14180,15 @@ snapshots: near-api-js: 3.0.4 query-string: 7.1.3 + '@microsoft/api-extractor-model@7.28.2': + dependencies: + '@microsoft/tsdoc': 0.14.2 + '@microsoft/tsdoc-config': 0.16.2 + '@rushstack/node-core-library': 3.61.0(@types/node@22.7.9) + transitivePeerDependencies: + - '@types/node' + optional: true + '@microsoft/api-extractor-model@7.28.2(@types/node@20.10.5)': dependencies: '@microsoft/tsdoc': 0.14.2 @@ -14206,7 +14218,7 @@ snapshots: '@microsoft/api-extractor@7.38.3': dependencies: - '@microsoft/api-extractor-model': 7.28.2(@types/node@22.7.9) + '@microsoft/api-extractor-model': 7.28.2 '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 '@rushstack/node-core-library': 3.61.0(@types/node@22.7.9) @@ -17142,14 +17154,22 @@ snapshots: axios@0.27.2: dependencies: - follow-redirects: 1.15.6(debug@4.3.4) + follow-redirects: 1.15.6(debug@4.3.5) form-data: 4.0.0 transitivePeerDependencies: - debug axios@1.6.7: dependencies: - follow-redirects: 1.15.6(debug@4.3.4) + follow-redirects: 1.15.6(debug@4.3.5) + form-data: 4.0.0 + proxy-from-env: 1.1.0 + transitivePeerDependencies: + - debug + + axios@1.6.8: + dependencies: + follow-redirects: 1.15.6(debug@4.3.5) form-data: 4.0.0 proxy-from-env: 1.1.0 transitivePeerDependencies: @@ -19396,7 +19416,7 @@ snapshots: http-proxy@1.18.1: dependencies: eventemitter3: 4.0.7 - follow-redirects: 1.15.6(debug@4.3.4) + follow-redirects: 1.15.6(debug@4.3.5) requires-port: 1.0.0 transitivePeerDependencies: - debug @@ -22540,8 +22560,8 @@ snapshots: '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 '@types/node': 22.7.9 - acorn: 8.11.2 - acorn-walk: 8.3.2 + acorn: 8.12.1 + acorn-walk: 8.3.3 arg: 4.1.3 create-require: 1.1.1 diff: 4.0.2