@blocklet/pages-kit 0.5.12 → 0.5.14

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.
@@ -8,7 +8,10 @@ const axios_1 = __importDefault(require("axios"));
8
8
  const ufo_1 = require("ufo");
9
9
  const PAGES_KIT_DID = 'z8iZiDFg3vkkrPwsiba1TLXy3H9XHzFERsP8o';
10
10
  async function preloadComponents(input) {
11
- const prefix = window.blocklet?.componentMountPoints.find((i) => i.did === PAGES_KIT_DID && i.status === 'running')?.mountPoint ||
11
+ const prefix =
12
+ // @ts-ignore
13
+ window.blocklet?.componentMountPoints.find((i) => i.did === PAGES_KIT_DID && i.status === 'running')?.mountPoint ||
14
+ // @ts-ignore
12
15
  window?.blocklet?.prefix ||
13
16
  '/';
14
17
  return axios_1.default.post((0, ufo_1.joinURL)(prefix, '/api/components/preload'), input).then((res) => res.data);