@weborigami/origami 0.0.66 → 0.0.67-beta.1

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.
@@ -56,6 +56,7 @@ export { default as log } from "../src/builtins/@log.js";
56
56
  export { default as map } from "../src/builtins/@map.js";
57
57
  export { default as mapFn } from "../src/builtins/@mapFn.js";
58
58
  export { default as match } from "../src/builtins/@match.js";
59
+ export * from "../src/builtins/@math.js";
59
60
  export { default as mdHtml } from "../src/builtins/@mdHtml.js";
60
61
  export { default as mdTree } from "../src/builtins/@mdTree.js";
61
62
  export { default as merge } from "../src/builtins/@merge.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weborigami/origami",
3
- "version": "0.0.66",
3
+ "version": "0.0.67-beta.1",
4
4
  "description": "Web Origami language, CLI, framework, and server",
5
5
  "type": "module",
6
6
  "repository": {
@@ -17,9 +17,9 @@
17
17
  "typescript": "5.6.2"
18
18
  },
19
19
  "dependencies": {
20
- "@weborigami/async-tree": "0.0.66",
21
- "@weborigami/language": "0.0.66",
22
- "@weborigami/types": "0.0.66",
20
+ "@weborigami/async-tree": "0.0.67-beta.1",
21
+ "@weborigami/language": "0.0.67-beta.1",
22
+ "@weborigami/types": "0.0.67-beta.1",
23
23
  "exif-parser": "0.1.12",
24
24
  "graphviz-wasm": "3.0.2",
25
25
  "highlight.js": "11.10.0",
@@ -0,0 +1,15 @@
1
+ export function add(...args) {
2
+ return args.reduce((acc, val) => acc + val, 0);
3
+ }
4
+
5
+ export function subtract(a, b) {
6
+ return a - b;
7
+ }
8
+
9
+ export function multiply(...args) {
10
+ return args.reduce((acc, val) => acc * val, 1);
11
+ }
12
+
13
+ export function divide(a, b) {
14
+ return a / b;
15
+ }