@xylabs/typeof 5.0.17 → 5.0.19

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/typeof",
3
- "version": "5.0.17",
3
+ "version": "5.0.19",
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.1.8",
46
- "@xylabs/tsconfig": "~7.1.8",
45
+ "@xylabs/ts-scripts-yarn3": "~7.2.4",
46
+ "@xylabs/tsconfig": "~7.2.4",
47
47
  "typescript": "~5.9.3",
48
- "vitest": "~3.2.4"
48
+ "vitest": "~4.0.8"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=18"
@@ -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)