@vitest/web-worker 0.30.1 → 0.31.1
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/dist/pure.js +4 -3
- package/package.json +7 -2
package/dist/pure.js
CHANGED
@@ -248,7 +248,7 @@ const serializer = (strict, json, $, _) => {
|
|
248
248
|
/**
|
249
249
|
* Returns an array of serialized Records.
|
250
250
|
* @param {any} value a serializable value.
|
251
|
-
* @param {{lossy?: boolean}?} options an object with a `lossy` property that,
|
251
|
+
* @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,
|
252
252
|
* if `true`, will not throw errors on incompatible types, and behave more
|
253
253
|
* like JSON stringify would behave. Symbol and Function will be discarded.
|
254
254
|
* @returns {Record[]}
|
@@ -265,8 +265,9 @@ const serializer = (strict, json, $, _) => {
|
|
265
265
|
/**
|
266
266
|
* Returns an array of serialized Records.
|
267
267
|
* @param {any} any a serializable value.
|
268
|
-
* @param {{transfer
|
269
|
-
*
|
268
|
+
* @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with
|
269
|
+
* a transfer option (ignored when polyfilled) and/or non standard fields that
|
270
|
+
* fallback to the polyfill if present.
|
270
271
|
* @returns {Record[]}
|
271
272
|
*/
|
272
273
|
var ponyfillStructuredClone = typeof structuredClone === "function" ?
|
package/package.json
CHANGED
@@ -1,14 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitest/web-worker",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.31.1",
|
5
5
|
"description": "Web Worker support for testing in Vitest",
|
6
6
|
"license": "MIT",
|
7
|
+
"funding": "https://opencollective.com/vitest",
|
8
|
+
"homepage": "https://github.com/vitest-dev/vitest/tree/main/packages/web-worker#readme",
|
7
9
|
"repository": {
|
8
10
|
"type": "git",
|
9
11
|
"url": "git+https://github.com/vitest-dev/vitest.git",
|
10
12
|
"directory": "packages/web-worker"
|
11
13
|
},
|
14
|
+
"bugs": {
|
15
|
+
"url": "https://github.com/vitest-dev/vitest/issues"
|
16
|
+
},
|
12
17
|
"sideEffects": false,
|
13
18
|
"exports": {
|
14
19
|
".": {
|
@@ -38,7 +43,7 @@
|
|
38
43
|
"devDependencies": {
|
39
44
|
"@types/debug": "^4.1.7",
|
40
45
|
"@types/ungap__structured-clone": "^0.3.0",
|
41
|
-
"@ungap/structured-clone": "^1.0
|
46
|
+
"@ungap/structured-clone": "^1.1.0"
|
42
47
|
},
|
43
48
|
"scripts": {
|
44
49
|
"build": "rimraf dist && rollup -c",
|