@arcblock/did-connect-js 1.30.0 → 1.30.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.
|
@@ -28,7 +28,7 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
28
28
|
"@ocap/wallet": "workspace:*",
|
|
29
29
|
"cors": "^2.8.5",
|
|
30
30
|
"debug": "^4.4.3",
|
|
31
|
-
"json-stable-stringify": "^1.0
|
|
31
|
+
"fast-json-stable-stringify": "^2.1.0",
|
|
32
32
|
"lodash": "^4.17.23",
|
|
33
33
|
"tweetnacl-sealedbox-js": "^1.2.0"
|
|
34
34
|
},
|
|
@@ -38,7 +38,6 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
38
38
|
"@ocap/e2e-test": "workspace:*",
|
|
39
39
|
"@types/cors": "^2.8.17",
|
|
40
40
|
"@types/debug": "^4.1.12",
|
|
41
|
-
"@types/json-stable-stringify": "^1.0.36",
|
|
42
41
|
"@types/lodash": "^4.17.13",
|
|
43
42
|
"@types/node": "^22.7.5",
|
|
44
43
|
"axios": "^1.13.4",
|
package/esm/handlers/util.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import random from "lodash/random.js";
|
|
|
9
9
|
import * as Mcrypto from "@ocap/mcrypto";
|
|
10
10
|
import omit from "lodash/omit.js";
|
|
11
11
|
import url from "url";
|
|
12
|
-
import stringify from "json-stable-stringify";
|
|
12
|
+
import stringify from "fast-json-stable-stringify";
|
|
13
13
|
import cloneDeep from "lodash/cloneDeep.js";
|
|
14
14
|
import get from "lodash/get.js";
|
|
15
15
|
import isPlainObject from "lodash/isPlainObject.js";
|
|
@@ -28,7 +28,7 @@ var require_package = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((e
|
|
|
28
28
|
"@ocap/wallet": "workspace:*",
|
|
29
29
|
"cors": "^2.8.5",
|
|
30
30
|
"debug": "^4.4.3",
|
|
31
|
-
"json-stable-stringify": "^1.0
|
|
31
|
+
"fast-json-stable-stringify": "^2.1.0",
|
|
32
32
|
"lodash": "^4.17.23",
|
|
33
33
|
"tweetnacl-sealedbox-js": "^1.2.0"
|
|
34
34
|
},
|
|
@@ -38,7 +38,6 @@ var require_package = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((e
|
|
|
38
38
|
"@ocap/e2e-test": "workspace:*",
|
|
39
39
|
"@types/cors": "^2.8.17",
|
|
40
40
|
"@types/debug": "^4.1.12",
|
|
41
|
-
"@types/json-stable-stringify": "^1.0.36",
|
|
42
41
|
"@types/lodash": "^4.17.13",
|
|
43
42
|
"@types/node": "^22.7.5",
|
|
44
43
|
"axios": "^1.13.4",
|
package/lib/handlers/util.cjs
CHANGED
|
@@ -16,8 +16,8 @@ let lodash_omit = require("lodash/omit");
|
|
|
16
16
|
lodash_omit = require_rolldown_runtime.__toESM(lodash_omit);
|
|
17
17
|
let url = require("url");
|
|
18
18
|
url = require_rolldown_runtime.__toESM(url);
|
|
19
|
-
let
|
|
20
|
-
|
|
19
|
+
let fast_json_stable_stringify = require("fast-json-stable-stringify");
|
|
20
|
+
fast_json_stable_stringify = require_rolldown_runtime.__toESM(fast_json_stable_stringify);
|
|
21
21
|
let lodash_cloneDeep = require("lodash/cloneDeep");
|
|
22
22
|
lodash_cloneDeep = require_rolldown_runtime.__toESM(lodash_cloneDeep);
|
|
23
23
|
let lodash_get = require("lodash/get");
|
|
@@ -202,7 +202,7 @@ function createHandlers({ action, pathname, claims, onStart, onConnect, onAuth,
|
|
|
202
202
|
const createSessionUpdater = (token, params) => async (key, value, secure = false) => {
|
|
203
203
|
const getUpdate = (k, v) => {
|
|
204
204
|
if (secure && params[encKey]) {
|
|
205
|
-
const encrypted = tweetnacl_sealedbox_js.default.seal(Buffer.from((0,
|
|
205
|
+
const encrypted = tweetnacl_sealedbox_js.default.seal(Buffer.from((0, fast_json_stable_stringify.default)(v)), decodeEncKey(params[encKey]));
|
|
206
206
|
return { [k]: Buffer.from(encrypted).toString("base64") };
|
|
207
207
|
}
|
|
208
208
|
return { [k]: v };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@arcblock/did-connect-js",
|
|
3
3
|
"description": "Helper function to setup DID Connect support on a node.js web server",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "1.30.
|
|
5
|
+
"version": "1.30.1",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "wangshijun",
|
|
8
8
|
"email": "shijun@arcblock.io",
|
|
@@ -19,26 +19,25 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@arcblock/did": "1.30.
|
|
23
|
-
"@arcblock/jwt": "1.30.
|
|
24
|
-
"@arcblock/validator": "1.30.
|
|
25
|
-
"@ocap/client": "1.30.
|
|
26
|
-
"@ocap/mcrypto": "1.30.
|
|
27
|
-
"@ocap/util": "1.30.
|
|
28
|
-
"@ocap/wallet": "1.30.
|
|
22
|
+
"@arcblock/did": "1.30.1",
|
|
23
|
+
"@arcblock/jwt": "1.30.1",
|
|
24
|
+
"@arcblock/validator": "1.30.1",
|
|
25
|
+
"@ocap/client": "1.30.1",
|
|
26
|
+
"@ocap/mcrypto": "1.30.1",
|
|
27
|
+
"@ocap/util": "1.30.1",
|
|
28
|
+
"@ocap/wallet": "1.30.1",
|
|
29
29
|
"cors": "^2.8.5",
|
|
30
30
|
"debug": "^4.4.3",
|
|
31
|
-
"json-stable-stringify": "^1.0
|
|
31
|
+
"fast-json-stable-stringify": "^2.1.0",
|
|
32
32
|
"lodash": "^4.17.23",
|
|
33
33
|
"tweetnacl-sealedbox-js": "^1.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@arcblock/did-agent-storage-memory": "^1.8.0",
|
|
37
37
|
"@arcblock/did-connect-storage-memory": "^1.8.0",
|
|
38
|
-
"@ocap/e2e-test": "1.30.
|
|
38
|
+
"@ocap/e2e-test": "1.30.1",
|
|
39
39
|
"@types/cors": "^2.8.17",
|
|
40
40
|
"@types/debug": "^4.1.12",
|
|
41
|
-
"@types/json-stable-stringify": "^1.0.36",
|
|
42
41
|
"@types/lodash": "^4.17.13",
|
|
43
42
|
"@types/node": "^22.7.5",
|
|
44
43
|
"axios": "^1.13.4",
|