@abtnode/util 1.16.45-beta-20250701-122807-92b03aba → 1.16.45-beta-20250702-072658-6f6c82be

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.
@@ -112,6 +112,10 @@ const getBlockletServices = ({ appPid, slpDid, daemonDidDomain, domain, slpDomai
112
112
 
113
113
  // eslint-disable-next-line require-await
114
114
  const updateServerDocument = async ({ ips, wallet, didRegistryUrl, domain, blockletServerVersion }) => {
115
+ if (['0', 'false', 0, false].includes(process.env.ABT_NODE_DID_DOCUMENT_UPDATE)) {
116
+ throw new Error('Did Document update is disabled');
117
+ }
118
+
115
119
  const filteredIps = (ips || []).filter(Boolean);
116
120
  if (filteredIps.length === 0) {
117
121
  throw new Error('No DID Document to update');
@@ -135,6 +139,9 @@ const updateBlockletDocument = ({
135
139
  blockletServerVersion,
136
140
  }) => {
137
141
  const { appPid } = blocklet;
142
+ if (['0', 'false', 0, false].includes(process.env.ABT_NODE_DID_DOCUMENT_UPDATE)) {
143
+ throw new Error('Did Document update is disabled');
144
+ }
138
145
 
139
146
  const services = getBlockletServices({ appPid, slpDid, daemonDidDomain, domain, slpDomain, serverDid });
140
147
  return updateWithRetry({ id: appPid, services, didRegistryUrl, alsoKnownAs, wallet, blockletServerVersion });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.45-beta-20250701-122807-92b03aba",
6
+ "version": "1.16.45-beta-20250702-072658-6f6c82be",
7
7
  "description": "ArcBlock's JavaScript utility",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,13 +18,13 @@
18
18
  "author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.16.45-beta-20250701-122807-92b03aba",
22
- "@abtnode/db-cache": "1.16.45-beta-20250701-122807-92b03aba",
21
+ "@abtnode/constant": "1.16.45-beta-20250702-072658-6f6c82be",
22
+ "@abtnode/db-cache": "1.16.45-beta-20250702-072658-6f6c82be",
23
23
  "@arcblock/did": "1.20.14",
24
24
  "@arcblock/pm2": "^5.4.0",
25
- "@blocklet/constant": "1.16.45-beta-20250701-122807-92b03aba",
25
+ "@blocklet/constant": "1.16.45-beta-20250702-072658-6f6c82be",
26
26
  "@blocklet/error": "^0.2.5",
27
- "@blocklet/meta": "1.16.45-beta-20250701-122807-92b03aba",
27
+ "@blocklet/meta": "1.16.45-beta-20250702-072658-6f6c82be",
28
28
  "@blocklet/xss": "^0.1.36",
29
29
  "@ocap/client": "1.20.14",
30
30
  "@ocap/mcrypto": "1.20.14",
@@ -89,5 +89,5 @@
89
89
  "fs-extra": "^11.2.0",
90
90
  "jest": "^29.7.0"
91
91
  },
92
- "gitHead": "f4fc6b6a7d37bd24a2e2493fbad46045cbb7ea81"
92
+ "gitHead": "e2b7203766cce76f547833530ac0eb463752162c"
93
93
  }