@blocklet/sdk 1.17.5-beta-20251208-123021-e8c53f96 → 1.17.5-beta-20251211-104355-426d7eb6

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.
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cdn = void 0;
4
- const constant_1 = require("@blocklet/constant");
4
+ const constant_1 = require("@abtnode/constant");
5
+ const constant_2 = require("@blocklet/constant");
5
6
  const config_1 = require("../config");
6
7
  const asset_host_transformer_1 = require("../util/asset-host-transformer");
7
8
  function shouldProcessRequest(req) {
@@ -15,7 +16,7 @@ function shouldProcessRequest(req) {
15
16
  if (req.path.includes('/.well-known/service/')) {
16
17
  return false;
17
18
  }
18
- if (constant_1.RESOURCE_PATTERN.test(req.path)) {
19
+ if (constant_2.RESOURCE_PATTERN.test(req.path)) {
19
20
  return false;
20
21
  }
21
22
  const accepted = req.accepts(['html', 'text/html', 'application/xhtml+xml', '*/*']);
@@ -25,7 +26,7 @@ const cdn = ({ did = config_1.env.componentDid, getAssetCdnHost } = {}) => {
25
26
  if (!did) {
26
27
  throw new Error('did is required');
27
28
  }
28
- const transformer = new asset_host_transformer_1.AssetHostTransformer(`/.blocklet/proxy/${did}/`);
29
+ const transformer = new asset_host_transformer_1.AssetHostTransformer(`${constant_1.BLOCKLET_PROXY_PATH_PREFIX}/${did}/`);
29
30
  return (req, res, next) => {
30
31
  const assetHost = getAssetCdnHost ? getAssetCdnHost() : config_1.env.assetCdnHost;
31
32
  if (!shouldProcessRequest(req) || !assetHost) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.17.5-beta-20251208-123021-e8c53f96",
6
+ "version": "1.17.5-beta-20251211-104355-426d7eb6",
7
7
  "description": "graphql client to read/write data on abt node",
8
8
  "homepage": "https://www.arcblock.io/docs/blocklet-sdk-nodejs",
9
9
  "main": "lib/index.js",
@@ -26,19 +26,19 @@
26
26
  "author": "linchen1987 <linchen.1987@foxmail.com> (http://github.com/linchen1987)",
27
27
  "license": "Apache-2.0",
28
28
  "dependencies": {
29
- "@abtnode/constant": "1.17.5-beta-20251208-123021-e8c53f96",
30
- "@abtnode/db-cache": "1.17.5-beta-20251208-123021-e8c53f96",
31
- "@abtnode/util": "1.17.5-beta-20251208-123021-e8c53f96",
29
+ "@abtnode/constant": "1.17.5-beta-20251211-104355-426d7eb6",
30
+ "@abtnode/db-cache": "1.17.5-beta-20251211-104355-426d7eb6",
31
+ "@abtnode/util": "1.17.5-beta-20251211-104355-426d7eb6",
32
32
  "@arcblock/did": "^1.27.12",
33
33
  "@arcblock/did-connect-js": "^1.27.12",
34
34
  "@arcblock/did-ext": "^1.27.12",
35
35
  "@arcblock/jwt": "^1.27.12",
36
36
  "@arcblock/ws": "^1.27.12",
37
- "@blocklet/constant": "1.17.5-beta-20251208-123021-e8c53f96",
38
- "@blocklet/env": "1.17.5-beta-20251208-123021-e8c53f96",
37
+ "@blocklet/constant": "1.17.5-beta-20251211-104355-426d7eb6",
38
+ "@blocklet/env": "1.17.5-beta-20251211-104355-426d7eb6",
39
39
  "@blocklet/error": "^0.3.3",
40
- "@blocklet/meta": "1.17.5-beta-20251208-123021-e8c53f96",
41
- "@blocklet/server-js": "1.17.5-beta-20251208-123021-e8c53f96",
40
+ "@blocklet/meta": "1.17.5-beta-20251211-104355-426d7eb6",
41
+ "@blocklet/server-js": "1.17.5-beta-20251211-104355-426d7eb6",
42
42
  "@blocklet/theme": "^3.2.11",
43
43
  "@did-connect/authenticator": "^2.2.8",
44
44
  "@did-connect/handler": "^2.2.8",
@@ -82,5 +82,5 @@
82
82
  "ts-node": "^10.9.1",
83
83
  "typescript": "^5.6.3"
84
84
  },
85
- "gitHead": "ed63bdced5fa8df09ba7fd282b38751007df2216"
85
+ "gitHead": "9ea2a8077a8edbf5021281e823719758eb9fe02c"
86
86
  }