@strictly/base 0.0.30 → 0.0.31
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/.out/index.d.ts +16 -16
- package/.out/index.js +16 -16
- package/.out/tsconfig.tsbuildinfo +1 -1
- package/.out/types/{exhaustive_array_of_union.d.ts → ExhaustiveArrayOfUnion.d.ts} +2 -2
- package/.out/util/{cache.d.ts → Cache.d.ts} +1 -1
- package/.out/util/poll.d.ts +1 -1
- package/.out/util/specs/cache.tests.js +1 -1
- package/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-check-types.log +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.js +5 -5
- package/index.ts +16 -16
- package/package.json +1 -1
- package/types/{exhaustive_array_of_union.ts → ExhaustiveArrayOfUnion.ts} +2 -2
- package/types/specs/{element_of_array.tests.ts → ElementOfArray.tests.ts} +1 -1
- package/types/specs/{exhaustive_array_of_union.tests.ts → ExhaustiveArrayOfUnion.tests.ts} +1 -1
- package/types/specs/{is_field_readonly.tests.ts → IsFieldReadonly.tests.ts} +1 -1
- package/types/specs/{printable_of.tests.ts → PrintableOf.tests.ts} +1 -1
- package/types/specs/{required_of_record.tests.ts → RequiredOfRecord.tests.ts} +1 -1
- package/types/specs/{string_concat_of.tests.ts → StringConcatOf.tests.ts} +1 -1
- package/types/specs/{string_key_of.tests.ts → StringKeyOf.tests.ts} +1 -1
- package/types/specs/reverse.tests.ts +1 -1
- package/util/{cache.ts → Cache.ts} +1 -1
- package/util/poll.ts +1 -1
- package/util/specs/cache.tests.ts +1 -1
- package/util/specs/poll.tests.ts +1 -1
- /package/.out/errors/{not_implemented.d.ts → NotImplemented.d.ts} +0 -0
- /package/.out/errors/{not_implemented.js → NotImplemented.js} +0 -0
- /package/.out/errors/{unexpected_implementation.d.ts → UnexpectedImplementation.d.ts} +0 -0
- /package/.out/errors/{unexpected_implementation.js → UnexpectedImplementation.js} +0 -0
- /package/.out/errors/{unreachable.d.ts → Unreachable.d.ts} +0 -0
- /package/.out/errors/{unreachable.js → Unreachable.js} +0 -0
- /package/.out/types/{element_of_array.d.ts → ElementOfArray.d.ts} +0 -0
- /package/.out/types/{element_of_array.js → ElementOfArray.js} +0 -0
- /package/.out/types/{exhaustive_array_of_union.js → ExhaustiveArrayOfUnion.js} +0 -0
- /package/.out/types/{extract_generics.d.ts → ExtractGenerics.d.ts} +0 -0
- /package/.out/types/{extract_generics.js → ExtractGenerics.js} +0 -0
- /package/.out/types/{is_field_optional.d.ts → IsFieldOptional.d.ts} +0 -0
- /package/.out/types/{is_field_optional.js → IsFieldOptional.js} +0 -0
- /package/.out/types/{is_field_readonly.d.ts → IsFieldReadonly.d.ts} +0 -0
- /package/.out/types/{is_field_readonly.js → IsFieldReadonly.js} +0 -0
- /package/.out/types/{maybe.d.ts → Maybe.d.ts} +0 -0
- /package/.out/types/{maybe.js → Maybe.js} +0 -0
- /package/.out/types/{printable_of.d.ts → PrintableOf.d.ts} +0 -0
- /package/.out/types/{printable_of.js → PrintableOf.js} +0 -0
- /package/.out/types/{required_of_record.d.ts → RequiredOfRecord.d.ts} +0 -0
- /package/.out/types/{required_of_record.js → RequiredOfRecord.js} +0 -0
- /package/.out/types/{reverse.d.ts → Reverse.d.ts} +0 -0
- /package/.out/types/{reverse.js → Reverse.js} +0 -0
- /package/.out/types/{string_concat_of.d.ts → StringConcatOf.d.ts} +0 -0
- /package/.out/types/{specs/element_of_array.tests.d.ts → StringConcatOf.js} +0 -0
- /package/.out/types/{string_key_of.d.ts → StringKeyOf.d.ts} +0 -0
- /package/.out/types/{specs/exhaustive_array_of_union.tests.d.ts → StringKeyOf.js} +0 -0
- /package/.out/types/specs/{is_field_readonly.tests.d.ts → ElementOfArray.tests.d.ts} +0 -0
- /package/.out/types/specs/{element_of_array.tests.js → ElementOfArray.tests.js} +0 -0
- /package/.out/types/specs/{printable_of.tests.d.ts → ExhaustiveArrayOfUnion.tests.d.ts} +0 -0
- /package/.out/types/specs/{exhaustive_array_of_union.tests.js → ExhaustiveArrayOfUnion.tests.js} +0 -0
- /package/.out/types/specs/{required_of_record.tests.d.ts → IsFieldReadonly.tests.d.ts} +0 -0
- /package/.out/types/specs/{is_field_readonly.tests.js → IsFieldReadonly.tests.js} +0 -0
- /package/.out/types/specs/{string_concat_of.tests.d.ts → PrintableOf.tests.d.ts} +0 -0
- /package/.out/types/specs/{printable_of.tests.js → PrintableOf.tests.js} +0 -0
- /package/.out/types/specs/{string_key_of.tests.d.ts → RequiredOfRecord.tests.d.ts} +0 -0
- /package/.out/types/specs/{required_of_record.tests.js → RequiredOfRecord.tests.js} +0 -0
- /package/.out/types/{string_concat_of.js → specs/StringConcatOf.tests.d.ts} +0 -0
- /package/.out/types/specs/{string_concat_of.tests.js → StringConcatOf.tests.js} +0 -0
- /package/.out/types/{string_key_of.js → specs/StringKeyOf.tests.d.ts} +0 -0
- /package/.out/types/specs/{string_key_of.tests.js → StringKeyOf.tests.js} +0 -0
- /package/.out/util/{cache.js → Cache.js} +0 -0
- /package/.out/util/{is_defined.d.ts → isDefined.d.ts} +0 -0
- /package/.out/util/{is_defined.js → isDefined.js} +0 -0
- /package/errors/{not_implemented.ts → NotImplemented.ts} +0 -0
- /package/errors/{unexpected_implementation.ts → UnexpectedImplementation.ts} +0 -0
- /package/errors/{unreachable.ts → Unreachable.ts} +0 -0
- /package/types/{element_of_array.ts → ElementOfArray.ts} +0 -0
- /package/types/{extract_generics.ts → ExtractGenerics.ts} +0 -0
- /package/types/{is_field_optional.ts → IsFieldOptional.ts} +0 -0
- /package/types/{is_field_readonly.ts → IsFieldReadonly.ts} +0 -0
- /package/types/{maybe.ts → Maybe.ts} +0 -0
- /package/types/{printable_of.ts → PrintableOf.ts} +0 -0
- /package/types/{required_of_record.ts → RequiredOfRecord.ts} +0 -0
- /package/types/{reverse.ts → Reverse.ts} +0 -0
- /package/types/{string_concat_of.ts → StringConcatOf.ts} +0 -0
- /package/types/{string_key_of.ts → StringKeyOf.ts} +0 -0
- /package/util/{is_defined.ts → isDefined.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ElementOfArray } from './
|
|
2
|
-
import { type PrintableOf } from './
|
|
1
|
+
import { type ElementOfArray } from './ElementOfArray';
|
|
2
|
+
import { type PrintableOf } from './PrintableOf';
|
|
3
3
|
export type ExhaustiveArrayOfUnion<UnionType, Tuple extends readonly UnionType[]> = Exclude<UnionType, ElementOfArray<Tuple>> extends never ? Tuple : never;
|
|
4
4
|
export type FriendlyExhaustiveArrayOfUnion<UnionType, Tuple extends readonly UnionType[]> = Exclude<UnionType, ElementOfArray<Tuple>> extends never ? Tuple : `${PrintableOf<Exclude<UnionType, ElementOfArray<Tuple>>>} missing from array`;
|
package/.out/util/poll.d.ts
CHANGED
package/.turbo/turbo-build.log
CHANGED
|
@@ -7,12 +7,12 @@ $ tsup
|
|
|
7
7
|
[34mCLI[39m Target: es6
|
|
8
8
|
[34mCJS[39m Build start
|
|
9
9
|
[34mESM[39m Build start
|
|
10
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m10.
|
|
11
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
-
[32mESM[39m [1mdist/index.js [22m[32m8.
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
10
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m10.69 KB[39m
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 67ms
|
|
12
|
+
[32mESM[39m [1mdist/index.js [22m[32m8.55 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 66ms
|
|
14
14
|
[34mDTS[39m Build start
|
|
15
|
-
[32mDTS[39m ⚡️ Build success in
|
|
15
|
+
[32mDTS[39m ⚡️ Build success in 4659ms
|
|
16
16
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m6.83 KB[39m
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m6.83 KB[39m
|
|
18
|
-
Done in 6.
|
|
18
|
+
Done in 6.60s.
|
package/dist/index.cjs
CHANGED
|
@@ -93,14 +93,14 @@ __export(index_exports, {
|
|
|
93
93
|
});
|
|
94
94
|
module.exports = __toCommonJS(index_exports);
|
|
95
95
|
|
|
96
|
-
// errors/
|
|
96
|
+
// errors/NotImplemented.ts
|
|
97
97
|
var NotImplementedError = class extends Error {
|
|
98
98
|
constructor(name) {
|
|
99
99
|
super(`${name} not implemented`);
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
102
|
|
|
103
|
-
// errors/
|
|
103
|
+
// errors/UnexpectedImplementation.ts
|
|
104
104
|
var UnexpectedImplementationError = class extends Error {
|
|
105
105
|
constructor(impl) {
|
|
106
106
|
super(impl);
|
|
@@ -125,7 +125,7 @@ function errorHandlingJsonStringify(v, errorHandler) {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
// errors/
|
|
128
|
+
// errors/Unreachable.ts
|
|
129
129
|
var UnreachableError = class extends Error {
|
|
130
130
|
constructor(v) {
|
|
131
131
|
super(`Unreachable value received: ${errorHandlingJsonStringify(v)}`);
|
|
@@ -160,7 +160,7 @@ function asyncReduce(arr, reducer, initial) {
|
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
// util/
|
|
163
|
+
// util/Cache.ts
|
|
164
164
|
var Cache = class {
|
|
165
165
|
constructor(valueFactory) {
|
|
166
166
|
this.valueFactory = valueFactory;
|
|
@@ -241,7 +241,7 @@ function format(message, ...args) {
|
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
// util/
|
|
244
|
+
// util/isDefined.ts
|
|
245
245
|
function isDefined(t) {
|
|
246
246
|
return t != null;
|
|
247
247
|
}
|
package/dist/index.js
CHANGED
|
@@ -36,14 +36,14 @@ var __async = (__this, __arguments, generator) => {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
// errors/
|
|
39
|
+
// errors/NotImplemented.ts
|
|
40
40
|
var NotImplementedError = class extends Error {
|
|
41
41
|
constructor(name) {
|
|
42
42
|
super(`${name} not implemented`);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
// errors/
|
|
46
|
+
// errors/UnexpectedImplementation.ts
|
|
47
47
|
var UnexpectedImplementationError = class extends Error {
|
|
48
48
|
constructor(impl) {
|
|
49
49
|
super(impl);
|
|
@@ -68,7 +68,7 @@ function errorHandlingJsonStringify(v, errorHandler) {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
// errors/
|
|
71
|
+
// errors/Unreachable.ts
|
|
72
72
|
var UnreachableError = class extends Error {
|
|
73
73
|
constructor(v) {
|
|
74
74
|
super(`Unreachable value received: ${errorHandlingJsonStringify(v)}`);
|
|
@@ -103,7 +103,7 @@ function asyncReduce(arr, reducer, initial) {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// util/
|
|
106
|
+
// util/Cache.ts
|
|
107
107
|
var Cache = class {
|
|
108
108
|
constructor(valueFactory) {
|
|
109
109
|
this.valueFactory = valueFactory;
|
|
@@ -184,7 +184,7 @@ function format(message, ...args) {
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
-
// util/
|
|
187
|
+
// util/isDefined.ts
|
|
188
188
|
function isDefined(t) {
|
|
189
189
|
return t != null;
|
|
190
190
|
}
|
package/index.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export * from './errors/
|
|
2
|
-
export * from './errors/
|
|
3
|
-
export * from './errors/
|
|
1
|
+
export * from './errors/NotImplemented'
|
|
2
|
+
export * from './errors/UnexpectedImplementation'
|
|
3
|
+
export * from './errors/Unreachable'
|
|
4
4
|
export * from './test'
|
|
5
|
-
export * from './types/
|
|
6
|
-
export * from './types/
|
|
7
|
-
export * from './types/
|
|
8
|
-
export * from './types/
|
|
9
|
-
export * from './types/
|
|
10
|
-
export * from './types/
|
|
11
|
-
export * from './types/
|
|
12
|
-
export * from './types/
|
|
13
|
-
export * from './types/
|
|
14
|
-
export * from './types/
|
|
15
|
-
export * from './types/
|
|
5
|
+
export * from './types/ElementOfArray'
|
|
6
|
+
export * from './types/ExhaustiveArrayOfUnion'
|
|
7
|
+
export * from './types/ExhaustiveArrayOfUnion'
|
|
8
|
+
export * from './types/ExtractGenerics'
|
|
9
|
+
export * from './types/IsFieldReadonly'
|
|
10
|
+
export * from './types/Maybe'
|
|
11
|
+
export * from './types/PrintableOf'
|
|
12
|
+
export * from './types/RequiredOfRecord'
|
|
13
|
+
export * from './types/Reverse'
|
|
14
|
+
export * from './types/StringConcatOf'
|
|
15
|
+
export * from './types/StringKeyOf'
|
|
16
16
|
export * from './util/array'
|
|
17
|
-
export * from './util/
|
|
17
|
+
export * from './util/Cache'
|
|
18
18
|
export * from './util/delay'
|
|
19
19
|
export * from './util/format'
|
|
20
|
-
export * from './util/
|
|
20
|
+
export * from './util/isDefined'
|
|
21
21
|
export * from './util/json'
|
|
22
22
|
export * from './util/poll'
|
|
23
23
|
export * from './util/preconditions'
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ElementOfArray } from './
|
|
2
|
-
import { type PrintableOf } from './
|
|
1
|
+
import { type ElementOfArray } from './ElementOfArray'
|
|
2
|
+
import { type PrintableOf } from './PrintableOf'
|
|
3
3
|
|
|
4
4
|
export type ExhaustiveArrayOfUnion<UnionType, Tuple extends readonly UnionType[]> =
|
|
5
5
|
Exclude<UnionType, ElementOfArray<Tuple>> extends never ? Tuple
|
package/util/poll.ts
CHANGED
package/util/specs/poll.tests.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/.out/types/specs/{exhaustive_array_of_union.tests.js → ExhaustiveArrayOfUnion.tests.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|