@xylabs/typeof 5.0.16 → 5.0.18
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/package.json +4 -4
- package/src/spec/is.spec.ts +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylabs/typeof",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.18",
|
|
4
4
|
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typeof",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"src"
|
|
43
43
|
],
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@xylabs/ts-scripts-yarn3": "~7.
|
|
46
|
-
"@xylabs/tsconfig": "~7.
|
|
45
|
+
"@xylabs/ts-scripts-yarn3": "~7.2.2",
|
|
46
|
+
"@xylabs/tsconfig": "~7.2.2",
|
|
47
47
|
"typescript": "~5.9.3",
|
|
48
|
-
"vitest": "~
|
|
48
|
+
"vitest": "~4.0.7"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=18"
|
package/src/spec/is.spec.ts
CHANGED
|
@@ -532,8 +532,7 @@ describe('is.ts type guards', () => {
|
|
|
532
532
|
expect(isWeakMap(new WeakMap())).toBe(true)
|
|
533
533
|
|
|
534
534
|
const obj = {}
|
|
535
|
-
const wm = new WeakMap()
|
|
536
|
-
wm.set(obj, 'value')
|
|
535
|
+
const wm = new WeakMap([[obj, 'value']])
|
|
537
536
|
expect(isWeakMap(wm)).toBe(true)
|
|
538
537
|
|
|
539
538
|
expect(isWeakMap(new Map())).toBe(false)
|
|
@@ -548,8 +547,7 @@ describe('is.ts type guards', () => {
|
|
|
548
547
|
expect(isWeakSet(new WeakSet())).toBe(true)
|
|
549
548
|
|
|
550
549
|
const obj = {}
|
|
551
|
-
const ws = new WeakSet()
|
|
552
|
-
ws.add(obj)
|
|
550
|
+
const ws = new WeakSet([obj])
|
|
553
551
|
expect(isWeakSet(ws)).toBe(true)
|
|
554
552
|
|
|
555
553
|
expect(isWeakSet(new Set())).toBe(false)
|