@abtnode/auth 1.17.6-beta-20251217-011553-818fcc8e → 1.17.6-beta-20251218-120326-5b44dadf

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/lib/auth.js CHANGED
@@ -279,7 +279,7 @@ const getApplicationInfo = async ({ node, nodeInfo = {}, teamDid, baseUrl = '' }
279
279
  logo = getServerAvatarUrl(baseUrl, nodeInfo);
280
280
  appUrl = `https://${encodeBase32(teamDid)}.${DEFAULT_DID_DOMAIN}`;
281
281
  } else {
282
- const blocklet = await node.getBlocklet({ did: teamDid });
282
+ const blocklet = await node.getBlocklet({ did: teamDid, useCache: true });
283
283
  const blockletInfo = getBlockletInfo(blocklet, nodeInfo.sk);
284
284
  name = blockletInfo.name;
285
285
  description = blockletInfo.description;
package/lib/launcher.js CHANGED
@@ -24,7 +24,10 @@ const getLauncherInfo = async (launcherUrl) => {
24
24
  const baseURL = new URL(launcherUrl).origin;
25
25
  const { data: meta } = await axios.get(joinURL(baseURL, '__blocklet__.js?type=json'));
26
26
  const component = meta.componentMountPoints?.find((x) => x.did === LAUNCHER_BLOCKLET_DID);
27
- return { ...pick(meta, ['appId', 'appPk', 'appPid', 'appUrl']), mountPoint: component?.mountPoint || '/' };
27
+ return {
28
+ ...pick(meta, ['appName', 'appDescription', 'appId', 'appPk', 'appPid', 'appUrl']),
29
+ mountPoint: component?.mountPoint || '/',
30
+ };
28
31
  };
29
32
 
30
33
  const buildLauncherUrl = async (launcherUrl, pathname) => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.6-beta-20251217-011553-818fcc8e",
6
+ "version": "1.17.6-beta-20251218-120326-5b44dadf",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,21 +18,21 @@
18
18
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.17.6-beta-20251217-011553-818fcc8e",
22
- "@abtnode/logger": "1.17.6-beta-20251217-011553-818fcc8e",
23
- "@abtnode/util": "1.17.6-beta-20251217-011553-818fcc8e",
21
+ "@abtnode/constant": "1.17.6-beta-20251218-120326-5b44dadf",
22
+ "@abtnode/logger": "1.17.6-beta-20251218-120326-5b44dadf",
23
+ "@abtnode/util": "1.17.6-beta-20251218-120326-5b44dadf",
24
24
  "@arcblock/did": "^1.27.15",
25
25
  "@arcblock/did-connect-js": "^1.27.15",
26
26
  "@arcblock/did-ext": "^1.27.15",
27
27
  "@arcblock/did-util": "^1.27.15",
28
28
  "@arcblock/jwt": "^1.27.15",
29
- "@arcblock/nft-display": "^3.2.14",
29
+ "@arcblock/nft-display": "^3.2.18",
30
30
  "@arcblock/validator": "^1.27.15",
31
31
  "@arcblock/vc": "^1.27.15",
32
- "@blocklet/constant": "1.17.6-beta-20251217-011553-818fcc8e",
32
+ "@blocklet/constant": "1.17.6-beta-20251218-120326-5b44dadf",
33
33
  "@blocklet/error": "^0.3.5",
34
- "@blocklet/meta": "1.17.6-beta-20251217-011553-818fcc8e",
35
- "@blocklet/sdk": "1.17.6-beta-20251217-011553-818fcc8e",
34
+ "@blocklet/meta": "1.17.6-beta-20251218-120326-5b44dadf",
35
+ "@blocklet/sdk": "1.17.6-beta-20251218-120326-5b44dadf",
36
36
  "@ocap/client": "^1.27.15",
37
37
  "@ocap/mcrypto": "^1.27.15",
38
38
  "@ocap/util": "^1.27.15",
@@ -55,5 +55,5 @@
55
55
  "devDependencies": {
56
56
  "axios-mock-adapter": "^2.1.0"
57
57
  },
58
- "gitHead": "e4291b92297d4b9abfdc5c1e5bbe262882fe34f2"
58
+ "gitHead": "a07b4f70aa6dddea49ed794423b47d36dc206e53"
59
59
  }