@skipruntime/core 0.0.6 → 0.0.11
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/README.md +20 -0
- package/dist/skiplang-json/binding.d.ts +37 -0
- package/dist/skiplang-json/binding.d.ts.map +1 -0
- package/dist/skiplang-json/binding.js +13 -0
- package/dist/skiplang-json/binding.js.map +1 -0
- package/dist/skiplang-json/index.d.ts +165 -0
- package/dist/skiplang-json/index.d.ts.map +1 -0
- package/dist/skiplang-json/index.js +322 -0
- package/dist/skiplang-json/index.js.map +1 -0
- package/dist/skiplang-json/internal.d.ts +24 -0
- package/dist/skiplang-json/internal.d.ts.map +1 -0
- package/dist/skiplang-json/internal.js.map +1 -0
- package/dist/skiplang-std/index.d.ts +21 -0
- package/dist/skiplang-std/index.d.ts.map +1 -0
- package/dist/skiplang-std/index.js +14 -0
- package/dist/skiplang-std/index.js.map +1 -0
- package/dist/skiplang-std/internal.d.ts +52 -0
- package/dist/skiplang-std/internal.d.ts.map +1 -0
- package/dist/skiplang-std/internal.js +3 -0
- package/dist/skiplang-std/internal.js.map +1 -0
- package/dist/{api.d.ts → src/api.d.ts} +14 -97
- package/dist/src/api.d.ts.map +1 -0
- package/dist/src/api.js +8 -0
- package/dist/src/api.js.map +1 -0
- package/dist/{binding.d.ts → src/binding.d.ts} +2 -2
- package/dist/src/binding.d.ts.map +1 -0
- package/dist/src/binding.js.map +1 -0
- package/dist/src/errors.d.ts +57 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/errors.js +57 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/{index.d.ts → src/index.d.ts} +13 -13
- package/dist/src/index.d.ts.map +1 -0
- package/dist/{index.js → src/index.js} +71 -50
- package/dist/src/index.js.map +1 -0
- package/dist/{internal.d.ts → src/internal.d.ts} +3 -2
- package/dist/src/internal.d.ts.map +1 -0
- package/dist/src/internal.js +2 -0
- package/dist/{internal.js.map → src/internal.js.map} +1 -1
- package/package.json +10 -9
- package/src/api.ts +20 -127
- package/src/binding.ts +2 -2
- package/src/errors.ts +55 -1
- package/src/index.ts +97 -58
- package/src/internal.ts +3 -2
- package/dist/api.d.ts.map +0 -1
- package/dist/api.js +0 -83
- package/dist/api.js.map +0 -1
- package/dist/binding.d.ts.map +0 -1
- package/dist/binding.js.map +0 -1
- package/dist/errors.d.ts +0 -3
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -3
- package/dist/errors.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/internal.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -47
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -47
- package/dist/utils.js.map +0 -1
- package/src/utils.ts +0 -62
- /package/dist/{internal.js → skiplang-json/internal.js} +0 -0
- /package/dist/{binding.js → src/binding.js} +0 -0
package/dist/utils.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
var _a, _b, _c, _d;
|
|
2
|
-
import { sknative } from "@skiplang/std";
|
|
3
|
-
/**
|
|
4
|
-
* `Reducer` to maintain the sum of input values.
|
|
5
|
-
*
|
|
6
|
-
* A `Reducer` that maintains the sum of values as they are added and removed from a collection.
|
|
7
|
-
*/
|
|
8
|
-
export class Sum {
|
|
9
|
-
constructor() {
|
|
10
|
-
this[_a] = "sum";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
_a = sknative;
|
|
14
|
-
/**
|
|
15
|
-
* `Reducer` to maintain the minimum of input values.
|
|
16
|
-
*
|
|
17
|
-
* A `Reducer` that maintains the minimum of values as they are added and removed from a collection.
|
|
18
|
-
*/
|
|
19
|
-
export class Min {
|
|
20
|
-
constructor() {
|
|
21
|
-
this[_b] = "min";
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
_b = sknative;
|
|
25
|
-
/**
|
|
26
|
-
* `Reducer` to maintain the maximum of input values.
|
|
27
|
-
*
|
|
28
|
-
* A `Reducer` that maintains the maximum of values as they are added and removed from a collection.
|
|
29
|
-
*/
|
|
30
|
-
export class Max {
|
|
31
|
-
constructor() {
|
|
32
|
-
this[_c] = "max";
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
_c = sknative;
|
|
36
|
-
/**
|
|
37
|
-
* `Reducer` to maintain the count of input values.
|
|
38
|
-
*
|
|
39
|
-
* A `Reducer` that maintains the number of values as they are added and removed from a collection.
|
|
40
|
-
*/
|
|
41
|
-
export class Count {
|
|
42
|
-
constructor() {
|
|
43
|
-
this[_d] = "count";
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
_d = sknative;
|
|
47
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA,OAAO,EAAkC,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzE;;;;GAIG;AACH,MAAM,OAAO,GAAG;IAAhB;QACE,QAAU,GAAG,KAAK,CAAC;IAOrB,CAAC;CAAA;KAPE,QAAQ;AASX;;;;GAIG;AACH,MAAM,OAAO,GAAG;IAAhB;QACE,QAAU,GAAG,KAAK,CAAC;IAOrB,CAAC;CAAA;KAPE,QAAQ;AASX;;;;GAIG;AACH,MAAM,OAAO,GAAG;IAAhB;QACE,QAAU,GAAG,KAAK,CAAC;IAOrB,CAAC;CAAA;KAPE,QAAQ;AASX;;;;GAIG;AACH,MAAM,OAAO,KAAK;IAAlB;QACE,QAAU,GAAG,OAAO,CAAC;IAOvB,CAAC;CAAA;KAPE,QAAQ"}
|
package/src/utils.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { type NativeStub, type Nullable, sknative } from "@skiplang/std";
|
|
2
|
-
import type { Reducer, Json } from "./api.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* `Reducer` to maintain the sum of input values.
|
|
6
|
-
*
|
|
7
|
-
* A `Reducer` that maintains the sum of values as they are added and removed from a collection.
|
|
8
|
-
*/
|
|
9
|
-
export class Sum implements NativeStub, Reducer<number, number> {
|
|
10
|
-
[sknative] = "sum";
|
|
11
|
-
|
|
12
|
-
// Lie to TypeScript that this implements Reducer, but leave out any implementations
|
|
13
|
-
// since we provide a native implementation.
|
|
14
|
-
initial!: number;
|
|
15
|
-
add!: (accum: number) => number;
|
|
16
|
-
remove!: (accum: number) => Nullable<number>;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* `Reducer` to maintain the minimum of input values.
|
|
21
|
-
*
|
|
22
|
-
* A `Reducer` that maintains the minimum of values as they are added and removed from a collection.
|
|
23
|
-
*/
|
|
24
|
-
export class Min implements NativeStub, Reducer<number, number> {
|
|
25
|
-
[sknative] = "min";
|
|
26
|
-
|
|
27
|
-
// Lie to TypeScript that this implements Reducer, but leave out any implementations
|
|
28
|
-
// since we provide a native implementation.
|
|
29
|
-
initial!: number;
|
|
30
|
-
add!: (accum: number) => number;
|
|
31
|
-
remove!: (accum: number) => Nullable<number>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* `Reducer` to maintain the maximum of input values.
|
|
36
|
-
*
|
|
37
|
-
* A `Reducer` that maintains the maximum of values as they are added and removed from a collection.
|
|
38
|
-
*/
|
|
39
|
-
export class Max implements NativeStub, Reducer<number, number> {
|
|
40
|
-
[sknative] = "max";
|
|
41
|
-
|
|
42
|
-
// Lie to TypeScript that this implements Reducer, but leave out any implementations
|
|
43
|
-
// since we provide a native implementation.
|
|
44
|
-
initial!: number;
|
|
45
|
-
add!: (accum: number) => number;
|
|
46
|
-
remove!: (accum: number) => Nullable<number>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* `Reducer` to maintain the count of input values.
|
|
51
|
-
*
|
|
52
|
-
* A `Reducer` that maintains the number of values as they are added and removed from a collection.
|
|
53
|
-
*/
|
|
54
|
-
export class Count<T extends Json> implements Reducer<T, number>, NativeStub {
|
|
55
|
-
[sknative] = "count";
|
|
56
|
-
|
|
57
|
-
// Lie to TypeScript that this implements Reducer, but leave out any implementations
|
|
58
|
-
// since we provide a native implementation.
|
|
59
|
-
initial!: number;
|
|
60
|
-
add!: (accum: number) => number;
|
|
61
|
-
remove!: (accum: number) => Nullable<number>;
|
|
62
|
-
}
|
|
File without changes
|
|
File without changes
|