@abtnode/core 1.16.27-beta-595ed831 → 1.16.27-beta-74c4e335

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.
@@ -98,7 +98,8 @@ const installComponentFromUrl = async ({
98
98
  if (index >= 0) {
99
99
  // if upgrade, do not update mountPoint and title
100
100
  newChild.mountPoint = blocklet.children[index].mountPoint;
101
- newChild.meta.title = blocklet.children[index].meta.title;
101
+ // 更新版本时, title 应该更新
102
+ // newChild.meta.title = blocklet.children[index].meta.title;
102
103
  newChild.installedAt = blocklet.children[index].installedAt;
103
104
  blocklet.children.splice(index, 1, newChild);
104
105
  } else {
@@ -36,7 +36,6 @@ const check = async ({ did, states }) => {
36
36
  {
37
37
  source: bundleSource,
38
38
  name: child.meta.name,
39
- title: child.meta.title,
40
39
  mountPoint: child.mountPoint,
41
40
  },
42
41
  ],
@@ -99,6 +98,7 @@ const upgrade = async ({ updateId, componentDids, context, states, manager }) =>
99
98
  }
100
99
  return oldComponent;
101
100
  });
101
+
102
102
  dynamicComponents = filterDuplicateComponents(dynamicComponents, children);
103
103
  children.push(...dynamicComponents);
104
104
 
@@ -210,6 +210,11 @@ class RouterManager extends EventEmitter {
210
210
  domainTld = tempArray.slice(tempArray.length - 2).join('.');
211
211
  }
212
212
 
213
+ if (process.env.ABT_NODE_TEST_DNS_SERVER) {
214
+ dns.setServers([process.env.ABT_NODE_TEST_DNS_SERVER]);
215
+ logger.info('use test dns server', { server: process.env.ABT_NODE_TEST_DNS_SERVER });
216
+ }
217
+
213
218
  const results = await dns.promises.resolveTxt(domainTld).catch(() => []);
214
219
 
215
220
  return !!results.find(
package/lib/util/index.js CHANGED
@@ -328,7 +328,9 @@ const getSafeEnv = (inputEnv, processEnv = process.env) => {
328
328
  // For performance sake, we only support 1 param here, and the cache is flushed every minute
329
329
  const memoizeAsync = (fn, flushInterval = 60000) => {
330
330
  const cache = new Map();
331
- setInterval(() => cache.clear(), flushInterval);
331
+ if (process.env.NODE_ENV !== 'test') {
332
+ setInterval(() => cache.clear(), flushInterval);
333
+ }
332
334
 
333
335
  return (arg) => {
334
336
  if (cache.has(arg)) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.27-beta-595ed831",
6
+ "version": "1.16.27-beta-74c4e335",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -19,19 +19,19 @@
19
19
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@abtnode/analytics": "1.16.27-beta-595ed831",
23
- "@abtnode/auth": "1.16.27-beta-595ed831",
24
- "@abtnode/certificate-manager": "1.16.27-beta-595ed831",
25
- "@abtnode/constant": "1.16.27-beta-595ed831",
26
- "@abtnode/cron": "1.16.27-beta-595ed831",
27
- "@abtnode/logger": "1.16.27-beta-595ed831",
28
- "@abtnode/models": "1.16.27-beta-595ed831",
29
- "@abtnode/queue": "1.16.27-beta-595ed831",
30
- "@abtnode/rbac": "1.16.27-beta-595ed831",
31
- "@abtnode/router-provider": "1.16.27-beta-595ed831",
32
- "@abtnode/static-server": "1.16.27-beta-595ed831",
33
- "@abtnode/timemachine": "1.16.27-beta-595ed831",
34
- "@abtnode/util": "1.16.27-beta-595ed831",
22
+ "@abtnode/analytics": "1.16.27-beta-74c4e335",
23
+ "@abtnode/auth": "1.16.27-beta-74c4e335",
24
+ "@abtnode/certificate-manager": "1.16.27-beta-74c4e335",
25
+ "@abtnode/constant": "1.16.27-beta-74c4e335",
26
+ "@abtnode/cron": "1.16.27-beta-74c4e335",
27
+ "@abtnode/logger": "1.16.27-beta-74c4e335",
28
+ "@abtnode/models": "1.16.27-beta-74c4e335",
29
+ "@abtnode/queue": "1.16.27-beta-74c4e335",
30
+ "@abtnode/rbac": "1.16.27-beta-74c4e335",
31
+ "@abtnode/router-provider": "1.16.27-beta-74c4e335",
32
+ "@abtnode/static-server": "1.16.27-beta-74c4e335",
33
+ "@abtnode/timemachine": "1.16.27-beta-74c4e335",
34
+ "@abtnode/util": "1.16.27-beta-74c4e335",
35
35
  "@arcblock/did": "1.18.121",
36
36
  "@arcblock/did-auth": "1.18.121",
37
37
  "@arcblock/did-ext": "^1.18.121",
@@ -42,12 +42,12 @@
42
42
  "@arcblock/pm2-events": "^0.0.5",
43
43
  "@arcblock/validator": "^1.18.121",
44
44
  "@arcblock/vc": "1.18.121",
45
- "@blocklet/constant": "1.16.27-beta-595ed831",
46
- "@blocklet/env": "1.16.27-beta-595ed831",
47
- "@blocklet/meta": "1.16.27-beta-595ed831",
48
- "@blocklet/resolver": "1.16.27-beta-595ed831",
49
- "@blocklet/sdk": "1.16.27-beta-595ed831",
50
- "@blocklet/store": "1.16.27-beta-595ed831",
45
+ "@blocklet/constant": "1.16.27-beta-74c4e335",
46
+ "@blocklet/env": "1.16.27-beta-74c4e335",
47
+ "@blocklet/meta": "1.16.27-beta-74c4e335",
48
+ "@blocklet/resolver": "1.16.27-beta-74c4e335",
49
+ "@blocklet/sdk": "1.16.27-beta-74c4e335",
50
+ "@blocklet/store": "1.16.27-beta-74c4e335",
51
51
  "@did-space/client": "^0.4.19",
52
52
  "@fidm/x509": "^1.2.1",
53
53
  "@ocap/mcrypto": "1.18.121",
@@ -103,5 +103,5 @@
103
103
  "jest": "^29.7.0",
104
104
  "unzipper": "^0.10.11"
105
105
  },
106
- "gitHead": "828e0c9511d3c1f69d07afa65fc2c965e568ec81"
106
+ "gitHead": "67ac72a88d7ae2d18f0db2b9b439d78e4112e082"
107
107
  }