@depup/vitest__utils 4.1.2-depup.0 → 4.1.4-depup.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.
- package/README.md +2 -2
- package/changes.json +1 -1
- package/dist/helpers.d.ts +5 -1
- package/dist/helpers.js +8 -1
- package/dist/source-map.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/vitest__utils
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [@vitest/utils](https://www.npmjs.com/package/@vitest/utils) @ 4.1.
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [@vitest/utils](https://www.npmjs.com/package/@vitest/utils) @ 4.1.4 |
|
|
17
|
+
| Processed | 2026-04-09 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 0 |
|
|
20
20
|
|
package/changes.json
CHANGED
package/dist/helpers.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ declare function assertTypes(value: unknown, name: string, types: string[]): voi
|
|
|
23
23
|
declare function isPrimitive(value: unknown): boolean;
|
|
24
24
|
declare function slash(path: string): string;
|
|
25
25
|
declare function cleanUrl(url: string): string;
|
|
26
|
+
declare function splitFileAndPostfix(path: string): {
|
|
27
|
+
file: string;
|
|
28
|
+
postfix: string;
|
|
29
|
+
};
|
|
26
30
|
declare const isExternalUrl: (url: string) => boolean;
|
|
27
31
|
/**
|
|
28
32
|
* Prepend `/@id/` and replace null byte so the id is URL-safe.
|
|
@@ -72,5 +76,5 @@ declare function ordinal(i: number): string;
|
|
|
72
76
|
declare function deepMerge<T extends object = object>(target: T, ...sources: any[]): T;
|
|
73
77
|
declare function unique<T>(array: T[]): T[];
|
|
74
78
|
|
|
75
|
-
export { assertTypes, cleanUrl, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, filterOutComments, getCallLastIndex, getOwnProperties, getType, isBareImport, isExternalUrl, isNegativeNaN, isObject, isPrimitive, nanoid, noop, notNullish, objectAttr, ordinal, shuffle, slash, toArray, unique, unwrapId, withTrailingSlash, wrapId };
|
|
79
|
+
export { assertTypes, cleanUrl, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, filterOutComments, getCallLastIndex, getOwnProperties, getType, isBareImport, isExternalUrl, isNegativeNaN, isObject, isPrimitive, nanoid, noop, notNullish, objectAttr, ordinal, shuffle, slash, splitFileAndPostfix, toArray, unique, unwrapId, withTrailingSlash, wrapId };
|
|
76
80
|
export type { DeferPromise };
|
package/dist/helpers.js
CHANGED
|
@@ -66,6 +66,13 @@ const postfixRE = /[?#].*$/;
|
|
|
66
66
|
function cleanUrl(url) {
|
|
67
67
|
return url.replace(postfixRE, "");
|
|
68
68
|
}
|
|
69
|
+
function splitFileAndPostfix(path) {
|
|
70
|
+
const file = cleanUrl(path);
|
|
71
|
+
return {
|
|
72
|
+
file,
|
|
73
|
+
postfix: path.slice(file.length)
|
|
74
|
+
};
|
|
75
|
+
}
|
|
69
76
|
const externalRE = /^(?:[a-z]+:)?\/\//;
|
|
70
77
|
const isExternalUrl = (url) => externalRE.test(url);
|
|
71
78
|
/**
|
|
@@ -334,4 +341,4 @@ function unique(array) {
|
|
|
334
341
|
return Array.from(new Set(array));
|
|
335
342
|
}
|
|
336
343
|
|
|
337
|
-
export { assertTypes, cleanUrl, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, filterOutComments, getCallLastIndex, getOwnProperties, getType, isBareImport, isExternalUrl, isNegativeNaN, isObject, isPrimitive, nanoid, noop, notNullish, objectAttr, ordinal, shuffle, slash, toArray, unique, unwrapId, withTrailingSlash, wrapId };
|
|
344
|
+
export { assertTypes, cleanUrl, clone, createDefer, createSimpleStackTrace, deepClone, deepMerge, filterOutComments, getCallLastIndex, getOwnProperties, getType, isBareImport, isExternalUrl, isNegativeNaN, isObject, isPrimitive, nanoid, noop, notNullish, objectAttr, ordinal, shuffle, slash, splitFileAndPostfix, toArray, unique, unwrapId, withTrailingSlash, wrapId };
|
package/dist/source-map.js
CHANGED
|
@@ -380,7 +380,7 @@ function parseStacktrace(stack, options = {}) {
|
|
|
380
380
|
const { ignoreStackEntries = stackIgnorePatterns } = options;
|
|
381
381
|
let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
|
|
382
382
|
// remove assertion helper's internal stacks
|
|
383
|
-
const helperIndex = stacks.findLastIndex((s) => s.method === "__VITEST_HELPER__" || s.method === "async*__VITEST_HELPER__");
|
|
383
|
+
const helperIndex = stacks.findLastIndex((s) => s.method === "__VITEST_HELPER__" || s.method === "async*__VITEST_HELPER__" || s.method === "async __VITEST_HELPER__");
|
|
384
384
|
if (helperIndex >= 0) {
|
|
385
385
|
stacks = stacks.slice(helperIndex + 1);
|
|
386
386
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depup/vitest__utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.4-depup.0",
|
|
5
5
|
"description": "Shared Vitest utility functions (with updated dependencies)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://opencollective.com/vitest",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"convert-source-map": "^2.0.0",
|
|
90
90
|
"tinyrainbow": "^3.1.0",
|
|
91
|
-
"@vitest/pretty-format": "4.1.
|
|
91
|
+
"@vitest/pretty-format": "4.1.4"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
@@ -113,8 +113,8 @@
|
|
|
113
113
|
"changes": {},
|
|
114
114
|
"depsUpdated": 0,
|
|
115
115
|
"originalPackage": "@vitest/utils",
|
|
116
|
-
"originalVersion": "4.1.
|
|
117
|
-
"processedAt": "2026-
|
|
116
|
+
"originalVersion": "4.1.4",
|
|
117
|
+
"processedAt": "2026-04-09T08:38:22.976Z",
|
|
118
118
|
"smokeTest": "passed"
|
|
119
119
|
}
|
|
120
120
|
}
|