capdag 1.306.150 → 1.361.331
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/LICENSE +23 -0
- package/README.md +20 -4
- package/RULES.md +1 -1
- package/build-browser.js +90 -187
- package/cap-fab-renderer.js +26 -50
- package/capdag.js +117 -155
- package/formal/index.d.ts +74 -0
- package/formal/index.js +185 -0
- package/formal/program.wasm +0 -0
- package/machine-parser.js +8 -5
- package/package.json +14 -5
- package/planner.js +1 -3
- package/capdag.test.js +0 -8003
package/machine-parser.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
//
|
|
3
3
|
// https://peggyjs.org/
|
|
4
4
|
|
|
5
|
-
"use strict";
|
|
6
5
|
|
|
7
6
|
class peg$SyntaxError extends SyntaxError {
|
|
8
7
|
constructor(message, expected, found, location) {
|
|
@@ -1158,8 +1157,12 @@ function peg$parse(input, options) {
|
|
|
1158
1157
|
}
|
|
1159
1158
|
}
|
|
1160
1159
|
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1160
|
+
const peg$allowedStartRules = [
|
|
1161
|
+
"program"
|
|
1162
|
+
];
|
|
1163
|
+
|
|
1164
|
+
export {
|
|
1165
|
+
peg$allowedStartRules as StartRules,
|
|
1166
|
+
peg$SyntaxError as SyntaxError,
|
|
1167
|
+
peg$parse as parse
|
|
1165
1168
|
};
|
package/package.json
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Bahram Joharshamshiri",
|
|
3
3
|
"dependencies": {
|
|
4
|
+
"lungo-ts": "1.78.3254",
|
|
4
5
|
"peggy": "^5.1.0",
|
|
5
|
-
"tagged-urn": "^1.
|
|
6
|
+
"tagged-urn": "^1.66.108"
|
|
6
7
|
},
|
|
7
8
|
"description": "JavaScript implementation of Cap URN (Capability Uniform Resource Names) with strict validation and matching",
|
|
8
9
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
10
|
+
"node": ">=20"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./capdag.js",
|
|
14
|
+
"./cap-fab-renderer": "./cap-fab-renderer.js",
|
|
15
|
+
"./machine-parser": "./machine-parser.js"
|
|
10
16
|
},
|
|
11
17
|
"files": [
|
|
12
18
|
"capdag.js",
|
|
13
19
|
"cap-fab-renderer.js",
|
|
14
20
|
"build-browser.js",
|
|
15
|
-
"
|
|
21
|
+
"formal/index.js",
|
|
22
|
+
"formal/index.d.ts",
|
|
23
|
+
"formal/program.wasm",
|
|
16
24
|
"machine.pegjs",
|
|
17
25
|
"machine-parser.js",
|
|
18
26
|
"planner.js",
|
|
@@ -36,10 +44,11 @@
|
|
|
36
44
|
"url": "https://github.com/machinefabric/capdag-js.git"
|
|
37
45
|
},
|
|
38
46
|
"scripts": {
|
|
39
|
-
"build:parser": "npx peggy --format
|
|
47
|
+
"build:parser": "npx peggy --format es -o machine-parser.js machine.pegjs",
|
|
40
48
|
"build:browser": "npm run build:parser && node build-browser.js",
|
|
41
49
|
"pretest": "npm run build:parser",
|
|
42
50
|
"test": "node capdag.test.js"
|
|
43
51
|
},
|
|
44
|
-
"
|
|
52
|
+
"type": "module",
|
|
53
|
+
"version": "1.361.331"
|
|
45
54
|
}
|
package/planner.js
CHANGED
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
// Every parser fails hard on malformed input: a missing/mistyped field is a
|
|
12
12
|
// wire bug to surface, never a value to default away.
|
|
13
13
|
|
|
14
|
-
'use strict';
|
|
15
|
-
|
|
16
14
|
// ============================================================================
|
|
17
15
|
// Knob enums — string values ⇄ proto enum numbers
|
|
18
16
|
// ============================================================================
|
|
@@ -403,7 +401,7 @@ function parseConvergentTargets(raw, context = 'discoverConvergentTargets') {
|
|
|
403
401
|
);
|
|
404
402
|
}
|
|
405
403
|
|
|
406
|
-
|
|
404
|
+
export {
|
|
407
405
|
PlanStateError,
|
|
408
406
|
ConvergencePresence,
|
|
409
407
|
ConvergenceLocation,
|