@blocklet/sdk 1.16.44-beta-20250512-155818-937e465d → 1.16.44-beta-20250516-225119-c0b5ec8d

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.
@@ -19,6 +19,7 @@ type CallComponentOptions<D = any, P = any> = {
19
19
  headers?: {
20
20
  [key: string]: any;
21
21
  };
22
+ timeout?: number;
22
23
  };
23
24
  type CallComponent = {
24
25
  (options: CallComponentOptions & {
package/lib/config.js CHANGED
@@ -268,7 +268,7 @@ const fetchBlockletJs = async () => {
268
268
  const componentDid = process.env.BLOCKLET_COMPONENT_DID;
269
269
  try {
270
270
  const { mountPoint } = componentStore.find((x) => x.did === componentDid);
271
- const res = await axios_1.default.get((0, ufo_1.joinURL)(env.appUrl, mountPoint === '/' ? '' : mountPoint, `__blocklet__.js?force=1&t=${Date.now()}`), {
271
+ const res = await axios_1.default.get((0, ufo_1.joinURL)(env.appUrl, mountPoint === '/' ? '' : mountPoint, `__blocklet__.js?nocache=1&t=${Date.now()}`), {
272
272
  timeout: 8000,
273
273
  headers: {
274
274
  'User-Agent': `BlockletSDK/${version_1.version}`,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const sitemap_1 = require("sitemap");
3
- const custom_error_1 = require("@abtnode/util/lib/custom-error");
3
+ const error_1 = require("@blocklet/error");
4
4
  const config_1 = require("../config");
5
5
  const sitemap = (generatorFn) => {
6
6
  return async (req, res) => {
@@ -14,7 +14,7 @@ const sitemap = (generatorFn) => {
14
14
  }
15
15
  catch (err) {
16
16
  console.error('Failed to generate sitemap', err);
17
- res.status((0, custom_error_1.getStatusFromError)(err)).send(err.message);
17
+ res.status((0, error_1.getStatusFromError)(err)).send(err.message);
18
18
  }
19
19
  };
20
20
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.44-beta-20250512-155818-937e465d",
6
+ "version": "1.16.44-beta-20250516-225119-c0b5ec8d",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
@@ -27,23 +27,23 @@
27
27
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@abtnode/client": "1.16.44-beta-20250512-155818-937e465d",
31
- "@abtnode/constant": "1.16.44-beta-20250512-155818-937e465d",
32
- "@abtnode/util": "1.16.44-beta-20250512-155818-937e465d",
33
- "@arcblock/did": "1.20.8",
34
- "@arcblock/did-auth": "1.20.8",
35
- "@arcblock/jwt": "1.20.8",
36
- "@arcblock/ws": "1.20.8",
37
- "@blocklet/constant": "1.16.44-beta-20250512-155818-937e465d",
38
- "@blocklet/env": "1.16.44-beta-20250512-155818-937e465d",
30
+ "@abtnode/client": "1.16.44-beta-20250516-225119-c0b5ec8d",
31
+ "@abtnode/constant": "1.16.44-beta-20250516-225119-c0b5ec8d",
32
+ "@abtnode/util": "1.16.44-beta-20250516-225119-c0b5ec8d",
33
+ "@arcblock/did": "1.20.11",
34
+ "@arcblock/did-auth": "1.20.11",
35
+ "@arcblock/jwt": "1.20.11",
36
+ "@arcblock/ws": "1.20.11",
37
+ "@blocklet/constant": "1.16.44-beta-20250516-225119-c0b5ec8d",
38
+ "@blocklet/env": "1.16.44-beta-20250516-225119-c0b5ec8d",
39
39
  "@blocklet/error": "^0.2.4",
40
- "@blocklet/meta": "1.16.44-beta-20250512-155818-937e465d",
41
- "@did-connect/authenticator": "^2.2.7",
42
- "@did-connect/handler": "^2.2.7",
40
+ "@blocklet/meta": "1.16.44-beta-20250516-225119-c0b5ec8d",
41
+ "@did-connect/authenticator": "^2.2.8",
42
+ "@did-connect/handler": "^2.2.8",
43
43
  "@nedb/core": "^2.1.5",
44
- "@ocap/mcrypto": "1.20.8",
45
- "@ocap/util": "1.20.8",
46
- "@ocap/wallet": "1.20.8",
44
+ "@ocap/mcrypto": "1.20.11",
45
+ "@ocap/util": "1.20.11",
46
+ "@ocap/wallet": "1.20.11",
47
47
  "axios": "^1.7.9",
48
48
  "cheerio": "1.0.0-rc.12",
49
49
  "debug": "^4.3.7",
@@ -83,5 +83,5 @@
83
83
  "ts-node": "^10.9.1",
84
84
  "typescript": "^5.6.3"
85
85
  },
86
- "gitHead": "562fc0ac82df09c8fc50f27811565de331bda84d"
86
+ "gitHead": "eb15dee761c0ea273981c848992e5f29b94a69dc"
87
87
  }