@furystack/utils
Advanced tools
Comparing version 4.0.9 to 4.0.10
@@ -12,3 +12,3 @@ declare global { | ||
} | ||
export declare const compareBy: <T, K extends keyof T>(entity1: T, entity2: T, field: K, direction: 'asc' | 'desc') => 0 | 1 | -1; | ||
export declare const compareBy: <T, K extends keyof T>(entity1: T, entity2: T, field: K, direction: 'asc' | 'desc') => 1 | 0 | -1; | ||
//# sourceMappingURL=sort-by.d.ts.map |
{ | ||
"name": "@furystack/utils", | ||
"version": "4.0.9", | ||
"version": "4.0.10", | ||
"description": "General utilities", | ||
@@ -38,4 +38,4 @@ "type": "module", | ||
"typescript": "^5.2.2", | ||
"vitest": "^0.34.3" | ||
"vitest": "^0.34.6" | ||
} | ||
} |
import { describe, it, expect, vi } from 'vitest' | ||
import { debounce } from './debounce' | ||
import { sleepAsync } from './sleep-async' | ||
import { debounce } from './debounce.js' | ||
import { sleepAsync } from './sleep-async.js' | ||
@@ -5,0 +5,0 @@ /** |
import { describe, it, expect } from 'vitest' | ||
import { deepMerge } from './deep-merge' | ||
import { deepMerge } from './deep-merge.js' | ||
@@ -27,3 +27,3 @@ describe('DeepMerge tests', () => { | ||
it('Should respect falsy but defined values (false)', () => { | ||
expect(deepMerge({ a: true }, { a: false })).toEqual({ a: false }) | ||
expect(deepMerge<{ a: boolean }>({ a: true }, { a: false })).toEqual({ a: false }) | ||
}) | ||
@@ -30,0 +30,0 @@ |
import { describe, it, expect, vi } from 'vitest' | ||
import type { Disposable } from './disposable' | ||
import { using, usingAsync } from './disposable' | ||
import type { Disposable } from './disposable.js' | ||
import { using, usingAsync } from './disposable.js' | ||
@@ -5,0 +5,0 @@ export class MockDisposable implements Disposable { |
import { describe, it, expect, vi } from 'vitest' | ||
import { ObservableValue } from './observable-value' | ||
import { ObservableValue } from './observable-value.js' | ||
@@ -4,0 +4,0 @@ /** |
import { describe, it, expect } from 'vitest' | ||
import { PathHelper } from './path-helper' | ||
import { PathHelper } from './path-helper.js' | ||
@@ -4,0 +4,0 @@ /** |
import { describe, it, expect } from 'vitest' | ||
import { sleepAsync } from './sleep-async' | ||
import { sleepAsync } from './sleep-async.js' | ||
@@ -4,0 +4,0 @@ /** |
import { describe, it, expect, vi } from 'vitest' | ||
import { Trace } from './trace' | ||
import { Trace } from './trace.js' | ||
@@ -4,0 +4,0 @@ class MockClass { |
@@ -1,2 +0,2 @@ | ||
import { tuple } from './tuple' | ||
import { tuple } from './tuple.js' | ||
import { describe, it, expect } from 'vitest' | ||
@@ -3,0 +3,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158050
104
2683