From 7bcf21e83e70cd551ee62c65e434307708f33f6a Mon Sep 17 00:00:00 2001 From: Ebony Louis Date: Wed, 16 Oct 2024 13:52:23 -0400 Subject: [PATCH] updating polyfills import --- .../docs/web5/decentralized-web-nodes/access-data-with-drls.mdx | 2 +- .../build/decentralized-web-nodes/access-data-with-drls.test.js | 2 +- .../docs/web5/decentralized-web-nodes/access-data-with-drls.mdx | 2 +- .../build/decentralized-web-nodes/access-data-with-drls.test.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/site-new/docs/web5/decentralized-web-nodes/access-data-with-drls.mdx b/site-new/docs/web5/decentralized-web-nodes/access-data-with-drls.mdx index 2761a058c..a7973dab5 100644 --- a/site-new/docs/web5/decentralized-web-nodes/access-data-with-drls.mdx +++ b/site-new/docs/web5/decentralized-web-nodes/access-data-with-drls.mdx @@ -16,7 +16,7 @@ This guide will walk you through how to read from DWNs within your DWA via **Dec Import the following package to handle interactions with DWNs and manage offline data: ```js -import { activatePolyfills } from "@web5/api"; +import { activatePolyfills } from '@web5/browser'; ``` ## Set up a service worker diff --git a/site-new/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-web-nodes/access-data-with-drls.test.js b/site-new/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-web-nodes/access-data-with-drls.test.js index 9b246fb07..143899687 100644 --- a/site-new/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-web-nodes/access-data-with-drls.test.js +++ b/site-new/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-web-nodes/access-data-with-drls.test.js @@ -40,7 +40,7 @@ describe("Testing upgrade to PWA", () => { beforeEach(() => { originalFetch = global.fetch; - vi.mock("@web5/api", () => ({ + vi.mock("@web5/browser", () => ({ Web5: { connect: vi.fn(() => Promise.resolve({ web5, did })), }, diff --git a/site/docs/web5/decentralized-web-nodes/access-data-with-drls.mdx b/site/docs/web5/decentralized-web-nodes/access-data-with-drls.mdx index e82e30749..b122b51d8 100644 --- a/site/docs/web5/decentralized-web-nodes/access-data-with-drls.mdx +++ b/site/docs/web5/decentralized-web-nodes/access-data-with-drls.mdx @@ -15,7 +15,7 @@ This guide will walk you through how to read from DWNs within your DWA via **Dec Import the following package to handle interactions with DWNs and manage offline data: ```js -import { activatePolyfills } from '@web5/api'; +import { activatePolyfills } from '@web5/browser'; ``` ## Set up a service worker diff --git a/site/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-web-nodes/access-data-with-drls.test.js b/site/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-web-nodes/access-data-with-drls.test.js index e3cb01903..78df2bd7a 100644 --- a/site/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-web-nodes/access-data-with-drls.test.js +++ b/site/testsuites/testsuite-javascript/__tests__/web5/build/decentralized-web-nodes/access-data-with-drls.test.js @@ -18,7 +18,7 @@ describe('Testing upgrade to PWA', () => { beforeEach(() => { originalFetch = global.fetch; - vi.mock('@web5/api', () => ({ + vi.mock('@web5/browser', () => ({ Web5: { connect: vi.fn(() => Promise.resolve({ web5, did })) }