pico-engine 1.3.0 → 1.5.0
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 +147 -0
- package/dist/RulesetRegistryLoaderFs.js +4 -7
- package/dist/auth/AuthService.js +537 -0
- package/dist/auth/index.js +8 -0
- package/dist/auth/webauthn.js +97 -0
- package/dist/cli.js +11 -0
- package/dist/index.js +83 -46
- package/dist/logging.js +36 -27
- package/dist/oauth/OAuthService.js +356 -0
- package/dist/oauth/acg.js +495 -0
- package/dist/oauth/channelEligibility.js +26 -0
- package/dist/oauth/errors.js +12 -0
- package/dist/oauth/index.js +21 -0
- package/dist/oauth/krlModule.js +27 -0
- package/dist/oauth/meshOAuth.js +43 -0
- package/dist/provisionRoot.js +80 -0
- package/dist/server.js +565 -17
- package/dist/utils/toFileUrl.js +1 -2
- package/krl/io.picolabs.did-o.krl +25 -5
- package/krl/io.picolabs.oauth.krl +48 -0
- package/krl/io.picolabs.pds.krl +344 -0
- package/krl/io.picolabs.pico-engine-ui.krl +43 -10
- package/krl/io.picolabs.wrangler.krl +21 -20
- package/package.json +29 -29
- package/public/pico-engine-ui.css +4 -4
- package/public/pico-engine-ui.js +50 -16
- package/public/pico-labs-logo.png +0 -0
- package/src/RulesetRegistryLoaderFs.ts +6 -10
- package/src/auth/AuthService.ts +755 -0
- package/src/auth/index.ts +17 -0
- package/src/auth/webauthn.ts +182 -0
- package/src/cli.ts +11 -0
- package/src/index.ts +123 -56
- package/src/logging.ts +36 -47
- package/src/oauth/OAuthService.ts +474 -0
- package/src/oauth/acg.ts +666 -0
- package/src/oauth/channelEligibility.ts +26 -0
- package/src/oauth/errors.ts +10 -0
- package/src/oauth/index.ts +14 -0
- package/src/oauth/krlModule.ts +31 -0
- package/src/oauth/meshOAuth.ts +50 -0
- package/src/provisionRoot.ts +97 -0
- package/src/server.ts +647 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pico-engine",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "An implementation of the pico-engine targeting node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,64 +30,64 @@
|
|
|
30
30
|
"pico-engine": "bin/pico-engine"
|
|
31
31
|
},
|
|
32
32
|
"engines": {
|
|
33
|
-
"node": ">=
|
|
33
|
+
"node": ">=20.0.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
|
-
"
|
|
36
|
+
"prepare": "npm run build",
|
|
37
37
|
"build": "rm -rf dist && tsc",
|
|
38
38
|
"start": "npm run dev -s",
|
|
39
39
|
"dev": "scriptsp -r dev:tsc dev:api",
|
|
40
40
|
"dev:tsc": "tsc -w --preserveWatchOutput",
|
|
41
41
|
"dev:api": "onchange -i -k dist/ -- node dist/cli.js",
|
|
42
|
-
"test": "ava"
|
|
42
|
+
"test": "ava reset-cache && ava",
|
|
43
|
+
"test:auth": "ava reset-cache && ava --serial ./test/auth.ts --timeout=2m",
|
|
44
|
+
"test:oauth": "ava reset-cache && ava --serial ./test/oauth.ts --timeout=2m",
|
|
45
|
+
"test:acg": "ava reset-cache && ava --serial ./test/acg.ts --timeout=2m",
|
|
46
|
+
"test:http": "ava reset-cache && ava --serial ./test/httpSurface.ts --timeout=2m"
|
|
43
47
|
},
|
|
44
48
|
"dependencies": {
|
|
49
|
+
"@simplewebauthn/server": "^13.2.2",
|
|
45
50
|
"body-parser": "^1.18.3",
|
|
46
51
|
"charwise": "^3.0.1",
|
|
47
|
-
"
|
|
52
|
+
"classic-level": "^1.3.0",
|
|
53
|
+
"cross-fetch": "^4.0.0",
|
|
48
54
|
"cuid": "^2.1.8",
|
|
49
|
-
"encoding-down": "^6.0.2",
|
|
50
55
|
"express": "^4.16.4",
|
|
51
|
-
"helmet": "^
|
|
56
|
+
"helmet": "^7.1.0",
|
|
52
57
|
"home-dir": "^1.0.0",
|
|
53
|
-
"krl-compiler": "^1.
|
|
54
|
-
"krl-stdlib": "^1.
|
|
58
|
+
"krl-compiler": "^1.5.0",
|
|
59
|
+
"krl-stdlib": "^1.5.0",
|
|
55
60
|
"level-json-coerce-null": "^1.0.1",
|
|
56
|
-
"leveldown": "^5.0.2",
|
|
57
|
-
"levelup": "^4.0.1",
|
|
58
61
|
"lodash": "^4.17.11",
|
|
59
|
-
"make-dir": "^
|
|
60
|
-
"memdown": "^5.1.0",
|
|
62
|
+
"make-dir": "^4.0.0",
|
|
61
63
|
"minimist": "^1.2.5",
|
|
62
|
-
"pico-engine-core": "^1.
|
|
63
|
-
"pico-framework": "^0.
|
|
64
|
-
"rotating-file-stream": "^1.4.1"
|
|
65
|
-
"split": "^1.0.1",
|
|
66
|
-
"through2": "^3.0.1"
|
|
64
|
+
"pico-engine-core": "^1.5.0",
|
|
65
|
+
"pico-framework": "^0.8.0",
|
|
66
|
+
"rotating-file-stream": "^1.4.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/body-parser": "^1.17.0",
|
|
70
70
|
"@types/express": "^4.16.1",
|
|
71
|
-
"@types/helmet": "0.0.43",
|
|
72
|
-
"@types/leveldown": "^4.0.0",
|
|
73
|
-
"@types/levelup": "^3.1.0",
|
|
74
71
|
"@types/lodash": "^4.14.123",
|
|
75
|
-
"@types/node": "^
|
|
76
|
-
"ava": "^
|
|
77
|
-
"onchange": "^
|
|
72
|
+
"@types/node": "^20.8.10",
|
|
73
|
+
"ava": "^5.3.1",
|
|
74
|
+
"onchange": "^7.1.0",
|
|
78
75
|
"scriptsp": "^1.1.1",
|
|
79
|
-
"temp-dir": "^2.0.0",
|
|
80
76
|
"ts-node": "^10.4.0",
|
|
81
|
-
"typescript": "^
|
|
77
|
+
"typescript": "^5.2.2"
|
|
82
78
|
},
|
|
83
79
|
"ava": {
|
|
84
|
-
"compileEnhancements": false,
|
|
85
80
|
"extensions": [
|
|
86
81
|
"ts"
|
|
87
82
|
],
|
|
88
83
|
"require": [
|
|
89
|
-
"ts-node/register"
|
|
84
|
+
"ts-node/register",
|
|
85
|
+
"./test/helpers/testEnv.ts"
|
|
86
|
+
],
|
|
87
|
+
"files": [
|
|
88
|
+
"test/**/*",
|
|
89
|
+
"!test/helpers/**/*"
|
|
90
90
|
]
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "38f550eb9a0de399e9f1c4554176d4a7cc84d8c8"
|
|
93
93
|
}
|