@arcblock/did-connect-js 1.29.22 → 1.29.23

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.
@@ -14,7 +14,6 @@ import cloneDeep from "lodash/cloneDeep.js";
14
14
  import get from "lodash/get.js";
15
15
  import isPlainObject from "lodash/isPlainObject.js";
16
16
  import set from "lodash/set.js";
17
- import semver from "semver";
18
17
  import SealedBox from "tweetnacl-sealedbox-js";
19
18
 
20
19
  //#region src/handlers/util.ts
@@ -109,7 +108,8 @@ const parseWalletUA = (userAgent) => {
109
108
  const match = ua.split(/\s+/).find((x) => x.startsWith("arcwallet/") || x.startsWith("abtwallet/"));
110
109
  if (match) {
111
110
  const tmp = match.split("/");
112
- if (tmp.length > 1 && semver.coerce(tmp[1])) version = semver.coerce(tmp[1]).version;
111
+ const coerced = tmp.length > 1 ? (tmp[1].match(/(\d+\.\d+\.\d+)/) || [])[1] : void 0;
112
+ if (coerced) version = coerced;
113
113
  }
114
114
  return {
115
115
  os,
package/esm/package.mjs CHANGED
@@ -30,7 +30,6 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
30
30
  "debug": "^4.4.3",
31
31
  "json-stable-stringify": "^1.0.1",
32
32
  "lodash": "^4.17.23",
33
- "semver": "^7.6.3",
34
33
  "tweetnacl-sealedbox-js": "^1.2.0"
35
34
  },
36
35
  "devDependencies": {
@@ -42,7 +41,6 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
42
41
  "@types/json-stable-stringify": "^1.0.36",
43
42
  "@types/lodash": "^4.17.13",
44
43
  "@types/node": "^22.7.5",
45
- "@types/semver": "^7.5.8",
46
44
  "axios": "^1.13.4",
47
45
  "remark-cli": "^10.0.1",
48
46
  "remark-preset-github": "^4.0.4",
@@ -26,8 +26,6 @@ let lodash_isPlainObject = require("lodash/isPlainObject");
26
26
  lodash_isPlainObject = require_rolldown_runtime.__toESM(lodash_isPlainObject);
27
27
  let lodash_set = require("lodash/set");
28
28
  lodash_set = require_rolldown_runtime.__toESM(lodash_set);
29
- let semver = require("semver");
30
- semver = require_rolldown_runtime.__toESM(semver);
31
29
  let tweetnacl_sealedbox_js = require("tweetnacl-sealedbox-js");
32
30
  tweetnacl_sealedbox_js = require_rolldown_runtime.__toESM(tweetnacl_sealedbox_js);
33
31
 
@@ -123,7 +121,8 @@ const parseWalletUA = (userAgent) => {
123
121
  const match = ua.split(/\s+/).find((x) => x.startsWith("arcwallet/") || x.startsWith("abtwallet/"));
124
122
  if (match) {
125
123
  const tmp = match.split("/");
126
- if (tmp.length > 1 && semver.default.coerce(tmp[1])) version = semver.default.coerce(tmp[1]).version;
124
+ const coerced = tmp.length > 1 ? (tmp[1].match(/(\d+\.\d+\.\d+)/) || [])[1] : void 0;
125
+ if (coerced) version = coerced;
127
126
  }
128
127
  return {
129
128
  os,
package/lib/package.cjs CHANGED
@@ -30,7 +30,6 @@ var require_package = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((e
30
30
  "debug": "^4.4.3",
31
31
  "json-stable-stringify": "^1.0.1",
32
32
  "lodash": "^4.17.23",
33
- "semver": "^7.6.3",
34
33
  "tweetnacl-sealedbox-js": "^1.2.0"
35
34
  },
36
35
  "devDependencies": {
@@ -42,7 +41,6 @@ var require_package = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((e
42
41
  "@types/json-stable-stringify": "^1.0.36",
43
42
  "@types/lodash": "^4.17.13",
44
43
  "@types/node": "^22.7.5",
45
- "@types/semver": "^7.5.8",
46
44
  "axios": "^1.13.4",
47
45
  "remark-cli": "^10.0.1",
48
46
  "remark-preset-github": "^4.0.4",
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.29.22",
5
+ "version": "1.29.23",
6
6
  "author": {
7
7
  "name": "wangshijun",
8
8
  "email": "shijun@arcblock.io",
@@ -19,30 +19,28 @@
19
19
  "access": "public"
20
20
  },
21
21
  "dependencies": {
22
- "@arcblock/did": "1.29.22",
23
- "@arcblock/jwt": "1.29.22",
24
- "@arcblock/validator": "1.29.22",
25
- "@ocap/client": "1.29.22",
26
- "@ocap/mcrypto": "1.29.22",
27
- "@ocap/util": "1.29.22",
28
- "@ocap/wallet": "1.29.22",
22
+ "@arcblock/did": "1.29.23",
23
+ "@arcblock/jwt": "1.29.23",
24
+ "@arcblock/validator": "1.29.23",
25
+ "@ocap/client": "1.29.23",
26
+ "@ocap/mcrypto": "1.29.23",
27
+ "@ocap/util": "1.29.23",
28
+ "@ocap/wallet": "1.29.23",
29
29
  "cors": "^2.8.5",
30
30
  "debug": "^4.4.3",
31
31
  "json-stable-stringify": "^1.0.1",
32
32
  "lodash": "^4.17.23",
33
- "semver": "^7.6.3",
34
33
  "tweetnacl-sealedbox-js": "^1.2.0"
35
34
  },
36
35
  "devDependencies": {
37
36
  "@arcblock/did-agent-storage-memory": "^1.8.0",
38
37
  "@arcblock/did-connect-storage-memory": "^1.8.0",
39
- "@ocap/e2e-test": "1.29.22",
38
+ "@ocap/e2e-test": "1.29.23",
40
39
  "@types/cors": "^2.8.17",
41
40
  "@types/debug": "^4.1.12",
42
41
  "@types/json-stable-stringify": "^1.0.36",
43
42
  "@types/lodash": "^4.17.13",
44
43
  "@types/node": "^22.7.5",
45
- "@types/semver": "^7.5.8",
46
44
  "axios": "^1.13.4",
47
45
  "remark-cli": "^10.0.1",
48
46
  "remark-preset-github": "^4.0.4",