@idlebox/common 1.5.3 → 1.5.5
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/lib/array/diff.d.ts.map +1 -1
- package/lib/array/diff.js +1 -0
- package/lib/array/diff.js.map +1 -1
- package/lib/autoindex.d.ts +13 -2
- package/lib/autoindex.d.ts.map +1 -1
- package/lib/autoindex.js +14 -4
- package/lib/autoindex.js.map +1 -1
- package/lib/date/to-string.js +3 -3
- package/lib/date/to-string.js.map +1 -1
- package/lib/debugging/inspect.d.ts.map +1 -1
- package/lib/debugging/inspect.js +8 -2
- package/lib/debugging/inspect.js.map +1 -1
- package/lib/debugging/object-with-name.js +1 -1
- package/lib/debugging/object-with-name.js.map +1 -1
- package/lib/debugging/serializable.d.ts.map +1 -1
- package/lib/debugging/serializable.js +7 -1
- package/lib/debugging/serializable.js.map +1 -1
- package/lib/error/pretty.nodejs.d.ts.map +1 -1
- package/lib/error/pretty.nodejs.js +7 -5
- package/lib/error/pretty.nodejs.js.map +1 -1
- package/lib/function/callback-list.async.d.ts.map +1 -1
- package/lib/function/callback-list.async.js +1 -0
- package/lib/function/callback-list.async.js.map +1 -1
- package/lib/function/callback-list.d.ts.map +1 -1
- package/lib/function/callback-list.js +1 -0
- package/lib/function/callback-list.js.map +1 -1
- package/lib/iterate/merge-iterable.d.ts +9 -0
- package/lib/iterate/merge-iterable.d.ts.map +1 -0
- package/lib/iterate/merge-iterable.js +51 -0
- package/lib/iterate/merge-iterable.js.map +1 -0
- package/lib/lifecycle/dispose/disposedError.d.ts.map +1 -1
- package/lib/lifecycle/dispose/disposedError.js +1 -1
- package/lib/lifecycle/dispose/disposedError.js.map +1 -1
- package/lib/map-and-set/required-map.d.ts.map +1 -1
- package/lib/map-and-set/required-map.js +4 -0
- package/lib/map-and-set/required-map.js.map +1 -1
- package/lib/misc/assertNotNull.d.ts +1 -7
- package/lib/misc/assertNotNull.d.ts.map +1 -1
- package/lib/misc/assertNotNull.js +4 -11
- package/lib/misc/assertNotNull.js.map +1 -1
- package/lib/object/objectPath.d.ts.map +1 -1
- package/lib/object/objectPath.js +6 -1
- package/lib/object/objectPath.js.map +1 -1
- package/lib/path/isAbsolute.d.ts.map +1 -1
- package/lib/path/isAbsolute.js +2 -1
- package/lib/path/isAbsolute.js.map +1 -1
- package/lib/path/normalizePath.d.ts.map +1 -1
- package/lib/path/normalizePath.js +6 -4
- package/lib/path/normalizePath.js.map +1 -1
- package/lib/platform/compile.d.ts +0 -5
- package/lib/platform/compile.d.ts.map +1 -1
- package/lib/platform/compile.js +1 -0
- package/lib/platform/compile.js.map +1 -1
- package/lib/platform/globalSingleton.d.ts +0 -1
- package/lib/platform/globalSingleton.d.ts.map +1 -1
- package/lib/platform/globalSingleton.js +0 -1
- package/lib/platform/globalSingleton.js.map +1 -1
- package/lib/platform/globalSymbol.d.ts.map +1 -1
- package/lib/platform/globalSymbol.js +3 -2
- package/lib/platform/globalSymbol.js.map +1 -1
- package/lib/promise/deferred-promise.d.ts.map +1 -1
- package/lib/reflection/classes/singleton.js +1 -1
- package/lib/reflection/classes/singleton.js.map +1 -1
- package/lib/reflection/methods/bind.js +1 -1
- package/lib/reflection/methods/bind.js.map +1 -1
- package/lib/reflection/methods/memorize.d.ts.map +1 -1
- package/lib/reflection/methods/memorize.js +2 -1
- package/lib/reflection/methods/memorize.js.map +1 -1
- package/lib/schedule/interval.js +1 -1
- package/lib/schedule/interval.js.map +1 -1
- package/lib/schedule/timeout.d.ts +1 -1
- package/lib/schedule/timeout.d.ts.map +1 -1
- package/lib/schedule/timeout.js +5 -5
- package/lib/schedule/timeout.js.map +1 -1
- package/lib/state/simple-state-machine.d.ts +3 -3
- package/lib/state/simple-state-machine.d.ts.map +1 -1
- package/lib/state/simple-state-machine.js +2 -0
- package/lib/state/simple-state-machine.js.map +1 -1
- package/lib/string/concatType.generated.d.ts.map +1 -1
- package/lib/string/concatType.generated.js +3 -11
- package/lib/string/concatType.generated.js.map +1 -1
- package/lib/typing-helper/deep.partial.d.ts.map +1 -1
- package/lib/typing-helper/deep.readonly.d.ts.map +1 -1
- package/lib/typing-helper/deep.required.d.ts +1 -1
- package/lib/typing-helper/deep.required.d.ts.map +1 -1
- package/lib/typing-helper/deep.writable.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/array/diff.ts +1 -0
- package/src/autoindex.ts +20 -4
- package/src/date/to-string.ts +3 -3
- package/src/debugging/inspect.ts +8 -2
- package/src/debugging/object-with-name.ts +1 -1
- package/src/debugging/serializable.ts +9 -1
- package/src/error/pretty.nodejs.ts +12 -6
- package/src/function/callback-list.async.ts +1 -0
- package/src/function/callback-list.ts +1 -0
- package/src/iterate/merge-iterable.ts +59 -0
- package/src/lifecycle/dispose/disposedError.ts +1 -1
- package/src/map-and-set/required-map.ts +4 -0
- package/src/misc/assertNotNull.ts +5 -14
- package/src/object/objectPath.ts +6 -1
- package/src/path/isAbsolute.ts +2 -1
- package/src/path/normalizePath.ts +7 -4
- package/src/platform/compile.ts +2 -5
- package/src/platform/globalSingleton.ts +0 -2
- package/src/platform/globalSymbol.ts +5 -4
- package/src/promise/deferred-promise.ts +1 -1
- package/src/reflection/classes/singleton.ts +1 -1
- package/src/reflection/methods/bind.ts +1 -1
- package/src/reflection/methods/memorize.ts +2 -1
- package/src/schedule/interval.ts +1 -1
- package/src/schedule/timeout.ts +5 -5
- package/src/state/simple-state-machine.ts +5 -4
- package/src/string/concatType.generated.ts +4 -3
- package/src/typing-helper/deep.partial.ts +9 -1
- package/src/typing-helper/deep.readonly.ts +9 -1
- package/src/typing-helper/deep.required.ts +2 -2
- package/src/typing-helper/deep.writable.ts +9 -1
- package/src/global.d.ts +0 -12
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { Primitive } from './literal.js';
|
|
2
2
|
|
|
3
|
-
export type DeepPartial<T> = T extends Primitive
|
|
3
|
+
export type DeepPartial<T> = T extends Primitive
|
|
4
|
+
? T
|
|
5
|
+
: T extends ReadonlyArray<infer U>
|
|
6
|
+
? DeepPartialArray<U>
|
|
7
|
+
: T extends ReadonlyMap<infer K, infer V>
|
|
8
|
+
? DeepPartialMap<K, V>
|
|
9
|
+
: T extends ReadonlySet<infer M>
|
|
10
|
+
? DeepPartialSet<M>
|
|
11
|
+
: DeepPartialObject<T>;
|
|
4
12
|
|
|
5
13
|
type DeepPartialArray<T> = Array<DeepPartial<T>>;
|
|
6
14
|
type DeepPartialMap<K, V> = Map<DeepPartial<K>, DeepPartial<V>>;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { Primitive } from './literal.js';
|
|
2
2
|
|
|
3
|
-
export type DeepReadonly<T> = T extends Primitive
|
|
3
|
+
export type DeepReadonly<T> = T extends Primitive
|
|
4
|
+
? T
|
|
5
|
+
: T extends Array<infer U>
|
|
6
|
+
? DeepReadonlyArray<U>
|
|
7
|
+
: T extends Map<infer K, infer V>
|
|
8
|
+
? DeepReadonlyMap<K, V>
|
|
9
|
+
: T extends Set<infer M>
|
|
10
|
+
? DeepReadonlySet<M>
|
|
11
|
+
: DeepReadonlyObject<T>;
|
|
4
12
|
|
|
5
13
|
type DeepReadonlyArray<T> = ReadonlyArray<DeepReadonly<T>>;
|
|
6
14
|
type DeepReadonlyMap<K, V> = ReadonlyMap<DeepReadonly<K>, DeepReadonly<V>>;
|
|
@@ -2,9 +2,9 @@ import type { Primitive } from './literal.js';
|
|
|
2
2
|
|
|
3
3
|
export type DeepNonNullable<T> = T extends Primitive
|
|
4
4
|
? T
|
|
5
|
-
: T extends ReadonlyArray<infer U>
|
|
5
|
+
: T extends ReadonlyArray<infer U>
|
|
6
6
|
? DeepNonNullableArray<U>
|
|
7
|
-
: T extends ReadonlyMap<infer K, infer V>
|
|
7
|
+
: T extends ReadonlyMap<infer K, infer V>
|
|
8
8
|
? DeepNonNullableMap<K, V>
|
|
9
9
|
: T extends ReadonlySet<infer M>
|
|
10
10
|
? DeepNonNullableSet<M>
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { Primitive } from './literal.js';
|
|
2
2
|
|
|
3
|
-
export type DeepWriteable<T> = T extends Primitive
|
|
3
|
+
export type DeepWriteable<T> = T extends Primitive
|
|
4
|
+
? T
|
|
5
|
+
: T extends ReadonlyArray<infer U>
|
|
6
|
+
? DeepWriteableArray<U>
|
|
7
|
+
: T extends ReadonlyMap<infer K, infer V>
|
|
8
|
+
? DeepWriteableMap<K, V>
|
|
9
|
+
: T extends ReadonlySet<infer M>
|
|
10
|
+
? DeepWriteableSet<M>
|
|
11
|
+
: DeepWriteableObject<T>;
|
|
4
12
|
|
|
5
13
|
type DeepWriteableArray<T> = Array<DeepWriteable<T>>;
|
|
6
14
|
type DeepWriteableMap<K, V> = Map<DeepWriteable<K>, DeepWriteable<V>>;
|
package/src/global.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="@idlebox/itypes" />
|
|
2
|
-
/// <reference types="debug" />
|
|
3
|
-
|
|
4
|
-
declare interface ErrorConstructor {
|
|
5
|
-
captureStackTrace: any;
|
|
6
|
-
stackTraceLimit: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
declare namespace NodeJS {
|
|
10
|
-
type Signals = string;
|
|
11
|
-
interface ErrnoException extends Error {}
|
|
12
|
-
}
|