@blocklet/launcher-workflow 2.6.45 → 2.6.47

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/es/util.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { WELLKNOWN_PATH_PREFIX, WELLKNOWN_PING_PREFIX } from '@abtnode/constant';
2
- import axios from '@abtnode/util/lib/axios';
2
+ import { createAxios } from '@blocklet/js-sdk';
3
3
  import normalizePathPrefix from '@abtnode/util/lib/normalize-path-prefix';
4
4
  import tryWithTimeout from '@abtnode/util/lib/try-with-timeout';
5
5
  import { evaluateURLs } from '@abtnode/util/lib/url-evaluation';
@@ -178,7 +178,7 @@ export const checkBlockletAccessible = async (url, timeout = 5000, controller =
178
178
  try {
179
179
  const urlObj = new URL(url);
180
180
  urlObj.protocol = 'https';
181
- const res = await axios.get(joinURL(urlObj.toString(), '/api/__blocklet__.js?type=json&owner=1&force=1&nocache=1'), {
181
+ const res = await createAxios().get(joinURL(urlObj.toString(), '/api/__blocklet__.js?type=json&owner=1&force=1&nocache=1'), {
182
182
  timeout,
183
183
  signal: controller?.signal,
184
184
  validateStatus: status => {
package/lib/util.js CHANGED
@@ -13,7 +13,7 @@ exports.loadURL = exports.launchSession = exports.isUrlAccessible = exports.getP
13
13
  exports.sleep = sleep;
14
14
  exports.waitingForRaceAccessible = exports.sortUrls = void 0;
15
15
  var _constant = require("@abtnode/constant");
16
- var _axios = _interopRequireDefault(require("@abtnode/util/lib/axios"));
16
+ var _jsSdk = require("@blocklet/js-sdk");
17
17
  var _normalizePathPrefix = _interopRequireDefault(require("@abtnode/util/lib/normalize-path-prefix"));
18
18
  var _tryWithTimeout = _interopRequireDefault(require("@abtnode/util/lib/try-with-timeout"));
19
19
  var _urlEvaluation = require("@abtnode/util/lib/url-evaluation");
@@ -189,7 +189,7 @@ const checkBlockletAccessible = exports.checkBlockletAccessible = async function
189
189
  try {
190
190
  const urlObj = new URL(url);
191
191
  urlObj.protocol = 'https';
192
- const res = await _axios.default.get((0, _ufo.joinURL)(urlObj.toString(), '/api/__blocklet__.js?type=json&owner=1&force=1&nocache=1'), {
192
+ const res = await (0, _jsSdk.createAxios)().get((0, _ufo.joinURL)(urlObj.toString(), '/api/__blocklet__.js?type=json&owner=1&force=1&nocache=1'), {
193
193
  timeout,
194
194
  signal: controller === null || controller === void 0 ? void 0 : controller.signal,
195
195
  validateStatus: status => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/launcher-workflow",
3
- "version": "2.6.45",
3
+ "version": "2.6.47",
4
4
  "description": "Purchase components for Launcher UI",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -48,9 +48,10 @@
48
48
  "@arcblock/license": "^3.3.10",
49
49
  "@arcblock/react-hooks": "^3.3.10",
50
50
  "@arcblock/ux": "^3.3.10",
51
+ "@blocklet/js-sdk": "^1.17.8-beta-20260104-120132-cb5b1914",
51
52
  "@blocklet/launcher-layout": "^3.3.10",
52
- "@blocklet/launcher-util": "2.6.45",
53
- "@blocklet/launcher-ux": "2.6.45",
53
+ "@blocklet/launcher-util": "2.6.47",
54
+ "@blocklet/launcher-ux": "2.6.47",
54
55
  "@blocklet/payment": "^1.14.8",
55
56
  "@blocklet/payment-react": "^1.23.8",
56
57
  "@emotion/react": "^11.14.0",
@@ -109,5 +110,5 @@
109
110
  "require": "./lib/locales/index.js"
110
111
  }
111
112
  },
112
- "gitHead": "68f8f3e6c25c900ec83da530443f989c62892f3b"
113
+ "gitHead": "397f01ecf5e649763fccd03af7e06364fec76db7"
113
114
  }