@barnum/barnum 0.0.0-main-6ea317d2 → 0.0.0-main-bf5fee51
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/artifacts/linux-arm64/barnum +0 -0
- package/artifacts/linux-x64/barnum +0 -0
- package/artifacts/macos-arm64/barnum +0 -0
- package/artifacts/macos-x64/barnum +0 -0
- package/artifacts/win-x64/barnum.exe +0 -0
- package/dist/builtins/scalar.d.ts.map +1 -1
- package/dist/builtins/scalar.js +4 -1
- package/package.json +1 -1
- package/src/builtins/scalar.ts +4 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scalar.d.ts","sourceRoot":"","sources":["../../src/builtins/scalar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAe,MAAM,WAAW,CAAC;AAM1D,wBAAgB,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"scalar.d.ts","sourceRoot":"","sources":["../../src/builtins/scalar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAe,MAAM,WAAW,CAAC;AAM1D,wBAAgB,QAAQ,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE,MAAM,CAAC,CAQxE;AAMD,wBAAgB,QAAQ,CAAC,MAAM,GAAG,GAAG,KAAK,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAKpE;AAMD,eAAO,MAAM,IAAI,EAAE,WAAW,CAAC,GAAG,EAAE,IAAI,CAGtC,CAAC;AAMH;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,EAAE,KAAK,CAAC,CAK9D"}
|
package/dist/builtins/scalar.js
CHANGED
|
@@ -5,7 +5,10 @@ import { typedAction } from "../ast.js";
|
|
|
5
5
|
export function constant(value) {
|
|
6
6
|
return typedAction({
|
|
7
7
|
kind: "Invoke",
|
|
8
|
-
handler: {
|
|
8
|
+
handler: {
|
|
9
|
+
kind: "Builtin",
|
|
10
|
+
builtin: { kind: "Constant", value: value ?? null },
|
|
11
|
+
},
|
|
9
12
|
});
|
|
10
13
|
}
|
|
11
14
|
// ---------------------------------------------------------------------------
|
package/package.json
CHANGED
package/src/builtins/scalar.ts
CHANGED
|
@@ -7,7 +7,10 @@ import { type TypedAction, typedAction } from "../ast.js";
|
|
|
7
7
|
export function constant<TValue>(value: TValue): TypedAction<any, TValue> {
|
|
8
8
|
return typedAction({
|
|
9
9
|
kind: "Invoke",
|
|
10
|
-
handler: {
|
|
10
|
+
handler: {
|
|
11
|
+
kind: "Builtin",
|
|
12
|
+
builtin: { kind: "Constant", value: value ?? null },
|
|
13
|
+
},
|
|
11
14
|
});
|
|
12
15
|
}
|
|
13
16
|
|