Skip to content

Commit

Permalink
chore(data-transport): upgrade data-transport to v4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
unadlib committed Nov 3, 2023
1 parent 6f46f1b commit 9abfb23
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origin-storage",
"version": "2.2.2",
"version": "2.2.3",
"description": "A same-origin storage(IndexedDB/WebSQL/localStorage) for cross-domain access",
"main": "lib/index.js",
"unpkg": "dist/index.umd.js",
Expand Down Expand Up @@ -73,12 +73,12 @@
},
"peerDependencies": {
"broadcast-channel": "^5 || ^4",
"data-transport": "^4.2.4",
"data-transport": "^4.3.1",
"localforage": "^1.10.0"
},
"dependencies": {
"broadcast-channel": "^5.3.0",
"data-transport": "^4.2.4",
"data-transport": "^4.3.1",
"localforage": "^1.10.0"
}
}
2 changes: 2 additions & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const getInstances = async ({
sender: (message) => {
mockExternalSend(JSON.parse(JSON.stringify(message)));
},
skipConnectionCheck: true,
});

const fn = jest.fn();
Expand All @@ -71,6 +72,7 @@ const getInstances = async ({
sender: (message) => {
mockInternalSend(JSON.parse(JSON.stringify(message)));
},
skipConnectionCheck: true,
});
await new Promise((r) => setTimeout(r));
expect(fn.mock.calls.length).toBe(1);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1595,10 +1595,10 @@ cz-conventional-changelog@3.3.0:
optionalDependencies:
"@commitlint/load" ">6.1.1"

data-transport@^4.2.4:
version "4.2.4"
resolved "https://registry.yarnpkg.com/data-transport/-/data-transport-4.2.4.tgz#e6221f8e2defe176f82443ded808a1a22528660b"
integrity sha512-3SbTHaJWDMOW9O21EDrg/ZcFit7ux8dzMekpmLeRUnAhm85PLO5HJzg6dnLV36wIFx4pD4iulV0Wer+NlSqnSQ==
data-transport@^4.3.1:
version "4.3.1"
resolved "https://registry.yarnpkg.com/data-transport/-/data-transport-4.3.1.tgz#3381c5339e272f8bd95d5a3a95363949f2b4526c"
integrity sha512-NWJLv5HWKXvUYZxlD7tKx4bODs+P2wy5uSXQ+mkcAQQofR3GzdxhyXjNNNQKhKZTnaKWLy/2yPeVu/0RcK9YIw==
dependencies:
uuid "^9.0.0"

Expand Down

0 comments on commit 9abfb23

Please sign in to comment.