@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.
Files changed (64) hide show
  1. package/README.md +20 -0
  2. package/dist/skiplang-json/binding.d.ts +37 -0
  3. package/dist/skiplang-json/binding.d.ts.map +1 -0
  4. package/dist/skiplang-json/binding.js +13 -0
  5. package/dist/skiplang-json/binding.js.map +1 -0
  6. package/dist/skiplang-json/index.d.ts +165 -0
  7. package/dist/skiplang-json/index.d.ts.map +1 -0
  8. package/dist/skiplang-json/index.js +322 -0
  9. package/dist/skiplang-json/index.js.map +1 -0
  10. package/dist/skiplang-json/internal.d.ts +24 -0
  11. package/dist/skiplang-json/internal.d.ts.map +1 -0
  12. package/dist/skiplang-json/internal.js.map +1 -0
  13. package/dist/skiplang-std/index.d.ts +21 -0
  14. package/dist/skiplang-std/index.d.ts.map +1 -0
  15. package/dist/skiplang-std/index.js +14 -0
  16. package/dist/skiplang-std/index.js.map +1 -0
  17. package/dist/skiplang-std/internal.d.ts +52 -0
  18. package/dist/skiplang-std/internal.d.ts.map +1 -0
  19. package/dist/skiplang-std/internal.js +3 -0
  20. package/dist/skiplang-std/internal.js.map +1 -0
  21. package/dist/{api.d.ts → src/api.d.ts} +14 -97
  22. package/dist/src/api.d.ts.map +1 -0
  23. package/dist/src/api.js +8 -0
  24. package/dist/src/api.js.map +1 -0
  25. package/dist/{binding.d.ts → src/binding.d.ts} +2 -2
  26. package/dist/src/binding.d.ts.map +1 -0
  27. package/dist/src/binding.js.map +1 -0
  28. package/dist/src/errors.d.ts +57 -0
  29. package/dist/src/errors.d.ts.map +1 -0
  30. package/dist/src/errors.js +57 -0
  31. package/dist/src/errors.js.map +1 -0
  32. package/dist/{index.d.ts → src/index.d.ts} +13 -13
  33. package/dist/src/index.d.ts.map +1 -0
  34. package/dist/{index.js → src/index.js} +71 -50
  35. package/dist/src/index.js.map +1 -0
  36. package/dist/{internal.d.ts → src/internal.d.ts} +3 -2
  37. package/dist/src/internal.d.ts.map +1 -0
  38. package/dist/src/internal.js +2 -0
  39. package/dist/{internal.js.map → src/internal.js.map} +1 -1
  40. package/package.json +10 -9
  41. package/src/api.ts +20 -127
  42. package/src/binding.ts +2 -2
  43. package/src/errors.ts +55 -1
  44. package/src/index.ts +97 -58
  45. package/src/internal.ts +3 -2
  46. package/dist/api.d.ts.map +0 -1
  47. package/dist/api.js +0 -83
  48. package/dist/api.js.map +0 -1
  49. package/dist/binding.d.ts.map +0 -1
  50. package/dist/binding.js.map +0 -1
  51. package/dist/errors.d.ts +0 -3
  52. package/dist/errors.d.ts.map +0 -1
  53. package/dist/errors.js +0 -3
  54. package/dist/errors.js.map +0 -1
  55. package/dist/index.d.ts.map +0 -1
  56. package/dist/index.js.map +0 -1
  57. package/dist/internal.d.ts.map +0 -1
  58. package/dist/utils.d.ts +0 -47
  59. package/dist/utils.d.ts.map +0 -1
  60. package/dist/utils.js +0 -47
  61. package/dist/utils.js.map +0 -1
  62. package/src/utils.ts +0 -62
  63. /package/dist/{internal.js → skiplang-json/internal.js} +0 -0
  64. /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