@heybox/hb-sdk 0.9.1-alpha.4 → 0.9.1-alpha.6
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/CHANGELOG.md +23 -2
- package/README.md +33 -0
- package/dist/card-controller.cjs.js +194 -0
- package/dist/card-controller.esm.js +159 -0
- package/dist/cli-chunks/browser-DUdEZCyq.cjs +15 -0
- package/dist/cli-chunks/{build-BZg2rHkW.cjs → build-DYYWRiaY.cjs} +22 -10
- package/dist/cli-chunks/{context-YrzmEOau.cjs → context-Bo4L-Cx_.cjs} +12 -12
- package/dist/cli-chunks/{create-fPvlqLbS.cjs → create-CKC4yp0J.cjs} +12 -5
- package/dist/cli-chunks/{dev-X8_kbp78.cjs → dev-BMX6UXUe.cjs} +58 -13
- package/dist/cli-chunks/{doctor-DdiucYs9.cjs → doctor-DqEYRo4I.cjs} +13 -6
- package/dist/cli-chunks/{index-BdbwsefW.cjs → index-DmCWB_hF.cjs} +4 -7
- package/dist/cli-chunks/{index-BGh-Izf8.cjs → index-J4uQvKT_.cjs} +8780 -4464
- package/dist/cli-chunks/{index.esm-WYIrPjkF.cjs → index.esm-eNPTDv6W.cjs} +18 -19
- package/dist/cli-chunks/{login-DWmNuhWc.cjs → login-BL2OE6r9.cjs} +32 -33
- package/dist/cli-chunks/{project-vite-BVDIeoHB.cjs → project-vite-Du1m7Y_3.cjs} +1 -1
- package/dist/cli-chunks/{remote-BHJFxXyc.cjs → remote-ZHJUtx6l.cjs} +49 -38
- package/dist/cli-chunks/runtime-gate-DedD3ynE.cjs +201950 -0
- package/dist/cli-chunks/{runtime-permission-env-eiq8vE62.cjs → runtime-permission-env-DWaPlchd.cjs} +9396 -2929
- package/dist/cli-chunks/{skill-DC3cfPj2.cjs → skill-D4z_a_BH.cjs} +14 -7
- package/dist/cli-chunks/{version-DYFkOykv.cjs → version-tzrFwpkl.cjs} +1 -1
- package/dist/cli.cjs +14 -6
- package/dist/devtools/browser-dev-host/assets/browser-dev-host-BL1URvGR.js +102 -0
- package/dist/devtools/browser-dev-host/assets/{desktop-app-launch-CZsodKbP.js → desktop-app-launch-D6QZYpUq.js} +3 -3
- package/dist/devtools/browser-dev-host/assets/{index-B9tOX3zG.js → index-Bqsp608m.js} +4 -4
- package/dist/devtools/browser-dev-host/index.html +2 -2
- package/dist/index.cjs.js +6224 -275
- package/dist/index.esm.js +6224 -276
- package/dist/miniapp-publish.cjs.js +6612 -168
- package/dist/miniapp-publish.esm.js +6612 -169
- package/dist/protocol.cjs.js +5805 -0
- package/dist/protocol.esm.js +5805 -0
- package/dist/vite.cjs.js +7475 -217
- package/dist/vite.esm.js +7474 -218
- package/dist/workspace-card-build-sandbox-worker.mjs +72 -0
- package/package.json +25 -11
- package/skill/SKILL.md +15 -0
- package/skill/skill.json +5 -5
- package/types/card-controller.d.ts +3682 -0
- package/types/index.d.ts +7532 -35
- package/types/miniapp-publish/index.d.ts +542 -64
- package/types/protocol.d.ts +2083 -9
- package/types/vite/index.d.ts +25 -12
- package/dist/cli-chunks/browser-RAy8e8cV.cjs +0 -635
- package/dist/cli-chunks/runtime-gate-CR0dRMpQ.cjs +0 -65
- package/dist/cli-chunks/session-Dz1cGg0E.cjs +0 -3403
- package/dist/devtools/browser-dev-host/assets/browser-dev-host-CO2_03W0.js +0 -102
- package/types/core/client.d.ts +0 -108
- package/types/core/csp-violation.d.ts +0 -5
- package/types/core/errors.d.ts +0 -78
- package/types/core/event-bus.d.ts +0 -11
- package/types/core/handshake-state.d.ts +0 -54
- package/types/core/history-observer.d.ts +0 -4
- package/types/core/mini-dev-console.d.ts +0 -36
- package/types/core/network-sanitize.d.ts +0 -31
- package/types/core/sdk.d.ts +0 -104
- package/types/core/singleton.d.ts +0 -372
- package/types/core/utils.d.ts +0 -10
- package/types/core/version.d.ts +0 -2
- package/types/devtools/device-logs.d.ts +0 -48
- package/types/miniapp-manifest/basic-info-browser.d.ts +0 -37
- package/types/miniapp-manifest/basic-info-image-header.d.ts +0 -6
- package/types/miniapp-manifest/basic-info-node.d.ts +0 -17
- package/types/miniapp-manifest/basic-info-placeholder.d.ts +0 -1
- package/types/miniapp-manifest/basic-info.d.ts +0 -33
- package/types/miniapp-manifest/bindings.d.ts +0 -70
- package/types/miniapp-manifest/category.d.ts +0 -11
- package/types/miniapp-manifest/companion-directory.d.ts +0 -2
- package/types/miniapp-manifest/companion-executable.d.ts +0 -4
- package/types/miniapp-manifest/companion-types.d.ts +0 -63
- package/types/miniapp-manifest/companions.d.ts +0 -17
- package/types/miniapp-manifest/index.d.ts +0 -7
- package/types/miniapp-manifest/node.d.ts +0 -22
- package/types/miniapp-manifest/permissions.d.ts +0 -48
- package/types/miniapp-manifest/runtime-gate.d.ts +0 -12
- package/types/miniapp-manifest/schema.d.ts +0 -302
- package/types/modules/auth/index.d.ts +0 -204
- package/types/modules/cloud/index.d.ts +0 -669
- package/types/modules/companion/index.d.ts +0 -1619
- package/types/modules/device/index.d.ts +0 -269
- package/types/modules/environment/index.d.ts +0 -238
- package/types/modules/files/index.d.ts +0 -5
- package/types/modules/files/registry.d.ts +0 -35
- package/types/modules/files/types.d.ts +0 -1548
- package/types/modules/navigation/app-pages/index.d.ts +0 -4
- package/types/modules/navigation/app-pages/types.d.ts +0 -135
- package/types/modules/navigation/index.d.ts +0 -312
- package/types/modules/network/index.d.ts +0 -457
- package/types/modules/network/observability.d.ts +0 -38
- package/types/modules/network/request-shape.d.ts +0 -44
- package/types/modules/share/copy-link.d.ts +0 -46
- package/types/modules/share/extra.d.ts +0 -5
- package/types/modules/share/index.d.ts +0 -294
- package/types/modules/share/screenshot.d.ts +0 -34
- package/types/modules/share/show-share-menu.d.ts +0 -29
- package/types/modules/share/types.d.ts +0 -201
- package/types/modules/storage/index.d.ts +0 -214
- package/types/modules/ui/index.d.ts +0 -315
- package/types/modules/user/get-info.d.ts +0 -44
- package/types/modules/user/index.d.ts +0 -245
- package/types/modules/user/revoke-authorization.d.ts +0 -31
- package/types/modules/user/steam-game-list.d.ts +0 -153
- package/types/modules/user/types.d.ts +0 -2
- package/types/modules/viewport/index.d.ts +0 -319
- package/types/protocol/capabilities.d.ts +0 -2
- package/types/protocol/constants.d.ts +0 -1
- package/types/protocol/dev-session.d.ts +0 -74
- package/types/protocol/guards.d.ts +0 -1
- package/types/protocol/runtime-permissions.d.ts +0 -2
- package/types/protocol/types.d.ts +0 -22
- package/types/skill-metadata.d.ts +0 -18
- package/types/vite/html-policy.d.ts +0 -6
- package/types/vite/runtime-permission-env.d.ts +0 -9
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var context = require('./context-
|
|
3
|
+
var index = require('./index-J4uQvKT_.cjs');
|
|
4
|
+
var context = require('./context-Bo4L-Cx_.cjs');
|
|
5
5
|
var node_crypto = require('node:crypto');
|
|
6
6
|
var fs = require('node:fs');
|
|
7
|
-
var runtimePermissionEnv = require('./runtime-permission-env-
|
|
7
|
+
var runtimePermissionEnv = require('./runtime-permission-env-DWaPlchd.cjs');
|
|
8
8
|
var os = require('node:os');
|
|
9
9
|
var path = require('node:path');
|
|
10
10
|
var net = require('node:net');
|
|
@@ -13,12 +13,11 @@ var node_http = require('node:http');
|
|
|
13
13
|
var node_module = require('node:module');
|
|
14
14
|
var undici = require('undici');
|
|
15
15
|
var fs$1 = require('node:fs/promises');
|
|
16
|
-
var index = require('./index-BGh-Izf8.cjs');
|
|
17
16
|
var require$$0$1 = require('crypto');
|
|
18
17
|
var require$$0 = require('buffer');
|
|
19
|
-
var browser = require('./browser-
|
|
20
|
-
var projectVite = require('./project-vite-
|
|
21
|
-
var version = require('./version-
|
|
18
|
+
var browser = require('./browser-DUdEZCyq.cjs');
|
|
19
|
+
var projectVite = require('./project-vite-Du1m7Y_3.cjs');
|
|
20
|
+
var version = require('./version-tzrFwpkl.cjs');
|
|
22
21
|
require('node:zlib');
|
|
23
22
|
|
|
24
23
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -1993,8 +1992,8 @@ const DEFAULT_CHANNEL_TRANSPORT = {
|
|
|
1993
1992
|
};
|
|
1994
1993
|
const IPV4_LOOPBACK_ADDRESSES = new net.BlockList();
|
|
1995
1994
|
IPV4_LOOPBACK_ADDRESSES.addSubnet('127.0.0.0', 8, 'ipv4');
|
|
1996
|
-
const { WebSocket, WebSocketServer } = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/dev-
|
|
1997
|
-
const { parse: parseHtml } = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/dev-
|
|
1995
|
+
const { WebSocket, WebSocketServer } = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/dev-BMX6UXUe.cjs', document.baseURI).href)))('ws');
|
|
1996
|
+
const { parse: parseHtml } = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('cli-chunks/dev-BMX6UXUe.cjs', document.baseURI).href)))('parse5');
|
|
1998
1997
|
const BROWSER_DEV_HOST_ROOT_CANDIDATES = [
|
|
1999
1998
|
path.resolve(__dirname, 'devtools/browser-dev-host'),
|
|
2000
1999
|
path.resolve(__dirname, '../devtools/browser-dev-host'),
|
|
@@ -2023,10 +2022,12 @@ async function startBrowserDevHostServer(options) {
|
|
|
2023
2022
|
csrfToken: sessionController.csrfToken,
|
|
2024
2023
|
defaultLanAddressId: options.defaultLanAddressId,
|
|
2025
2024
|
devContext: options.devContext,
|
|
2025
|
+
devSessionId: options.devSessionId,
|
|
2026
2026
|
lanAddresses: options.lanAddresses ?? [],
|
|
2027
2027
|
loginAvailable: options.loginService !== undefined,
|
|
2028
2028
|
miniProgram: options.miniProgram,
|
|
2029
2029
|
miniProgramSupportsDesktop: options.miniProgramSupportsDesktop,
|
|
2030
|
+
workspaceCardsEnabled: options.workspaceCardsEnabled === true,
|
|
2030
2031
|
mobileLaunchRedirect: initialMobileLaunchRedirect,
|
|
2031
2032
|
nativeAppLaunchUnavailableReason: options.nativeAppLaunchUnavailableReason,
|
|
2032
2033
|
miniProgramManifestAccessToken: options.miniProgramManifestAccessToken,
|
|
@@ -2118,6 +2119,8 @@ async function startBrowserDevHostServer(options) {
|
|
|
2118
2119
|
bootstrap.miniProgram = next.miniProgram;
|
|
2119
2120
|
if (next.miniProgramSupportsDesktop !== undefined)
|
|
2120
2121
|
bootstrap.miniProgramSupportsDesktop = next.miniProgramSupportsDesktop;
|
|
2122
|
+
if (next.workspaceCardsEnabled !== undefined)
|
|
2123
|
+
bootstrap.workspaceCardsEnabled = next.workspaceCardsEnabled;
|
|
2121
2124
|
bootstrapJson = serializeBrowserDevHostBootstrap(bootstrap);
|
|
2122
2125
|
},
|
|
2123
2126
|
networkUrls: createBrowserDevHostNetworkUrls({
|
|
@@ -11090,7 +11093,7 @@ function assertNodeRuntimeCapabilities(ctx, settings) {
|
|
|
11090
11093
|
function createNodeRealtimeDriverRegistry() {
|
|
11091
11094
|
const registry = createRuntimeRealtimeDriverRegistry();
|
|
11092
11095
|
registry.registerLazy('node-websocket', async () => {
|
|
11093
|
-
const mod = await Promise.resolve().then(function () { return require('./index.esm-
|
|
11096
|
+
const mod = await Promise.resolve().then(function () { return require('./index.esm-eNPTDv6W.cjs'); });
|
|
11094
11097
|
return mod.createNodeWebSocketRuntimeDriver();
|
|
11095
11098
|
});
|
|
11096
11099
|
return registry;
|
|
@@ -14901,7 +14904,7 @@ function createBrowserDevHostCliAuth(options = {}) {
|
|
|
14901
14904
|
const fetchImpl = options.fetchImpl ?? fetch;
|
|
14902
14905
|
const noRedirectFetch = (input, init) => fetchImpl(input, { ...init, redirect: 'manual' });
|
|
14903
14906
|
const store = options.store ?? { env: options.env };
|
|
14904
|
-
const readSession = options.readSession ?? (() =>
|
|
14907
|
+
const readSession = options.readSession ?? (() => index.readHeyboxAuthSession(store));
|
|
14905
14908
|
let lastKey = '';
|
|
14906
14909
|
let revision = 0;
|
|
14907
14910
|
let profileKey = '';
|
|
@@ -15402,6 +15405,9 @@ function writeResponse(response, status, body) {
|
|
|
15402
15405
|
response.end(body === undefined ? '' : JSON.stringify(body));
|
|
15403
15406
|
}
|
|
15404
15407
|
|
|
15408
|
+
const WORKSPACE_CARD_LOCAL_DEV_DESCRIPTOR_PATH = '/__hb_sdk__/mini-program/workspace-cards.json';
|
|
15409
|
+
const WORKSPACE_CARD_LOCAL_DEV_MANIFEST_TOKEN_HEADER = 'x-hb-sdk-mini-program-manifest-token';
|
|
15410
|
+
|
|
15405
15411
|
const DEFAULT_APP_PORT = 5173;
|
|
15406
15412
|
const DEFAULT_BROWSER_DEV_HOST_PORT = 5174;
|
|
15407
15413
|
const DEFAULT_DEV_CONTEXT_TIMEOUT_MS = 3000;
|
|
@@ -15575,6 +15581,7 @@ async function runDevCommand(options, runtime = {}) {
|
|
|
15575
15581
|
port: appPort,
|
|
15576
15582
|
};
|
|
15577
15583
|
const projectRoot = projectVite.findProjectRoot(runtime.cwd ?? process.cwd());
|
|
15584
|
+
const workspaceCardsDeclared = runtimePermissionEnv.readMiniappWorkspaceCardsFromPackageJson(projectRoot).declaration !== undefined;
|
|
15578
15585
|
const companionArtifactAccessToken = (runtime.randomBytes ?? node_crypto.randomBytes)(32).toString('base64url');
|
|
15579
15586
|
const miniProgramManifestAccessToken = (runtime.randomBytes ?? node_crypto.randomBytes)(32).toString('base64url');
|
|
15580
15587
|
const devSessionId = node_crypto.randomBytes(16).toString('hex');
|
|
@@ -15700,6 +15707,42 @@ async function runDevCommand(options, runtime = {}) {
|
|
|
15700
15707
|
readContextPath: () => devContextPath,
|
|
15701
15708
|
});
|
|
15702
15709
|
const launchPlugin = createMiniProgramDevLaunchVitePlugin(readLaunchSource, async (request, response) => {
|
|
15710
|
+
if (request.url === WORKSPACE_CARD_LOCAL_DEV_DESCRIPTOR_PATH) {
|
|
15711
|
+
response.setHeader('Cache-Control', 'no-store');
|
|
15712
|
+
response.setHeader('X-Content-Type-Options', 'nosniff');
|
|
15713
|
+
if (request.method !== 'GET' && request.method !== 'HEAD') {
|
|
15714
|
+
response.writeHead(405, { Allow: 'GET, HEAD' }).end();
|
|
15715
|
+
return true;
|
|
15716
|
+
}
|
|
15717
|
+
const remote = request.socket.remoteAddress;
|
|
15718
|
+
const host = request.headers.host ?? '';
|
|
15719
|
+
const token = request.headers[WORKSPACE_CARD_LOCAL_DEV_MANIFEST_TOKEN_HEADER];
|
|
15720
|
+
const candidate = Buffer.alloc(43);
|
|
15721
|
+
if (typeof token === 'string')
|
|
15722
|
+
Buffer.from(token).copy(candidate, 0, 0, candidate.length);
|
|
15723
|
+
const tokenMatches = node_crypto.timingSafeEqual(candidate, Buffer.from(miniProgramManifestAccessToken));
|
|
15724
|
+
if (!tokenMatches || typeof token !== 'string' || !/^[A-Za-z0-9_-]{43}$/.test(token) ||
|
|
15725
|
+
!['127.0.0.1', '::1', '::ffff:127.0.0.1'].includes(remote ?? '') ||
|
|
15726
|
+
!/^127\.0\.0\.1:\d{1,5}$/.test(host)) {
|
|
15727
|
+
response.writeHead(403).end();
|
|
15728
|
+
return true;
|
|
15729
|
+
}
|
|
15730
|
+
const source = readLaunchSource();
|
|
15731
|
+
if (!source.miniProgramId || !source.localDevLaunchToken || !source.devSessionId || !source.expiresAt) {
|
|
15732
|
+
response.writeHead(503).end();
|
|
15733
|
+
return true;
|
|
15734
|
+
}
|
|
15735
|
+
const body = JSON.stringify({
|
|
15736
|
+
schema_version: 1,
|
|
15737
|
+
mini_program_id: source.miniProgramId,
|
|
15738
|
+
local_dev_launch_token: source.localDevLaunchToken,
|
|
15739
|
+
dev_session_id: source.devSessionId,
|
|
15740
|
+
expires_at_ms: source.expiresAt,
|
|
15741
|
+
});
|
|
15742
|
+
response.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8', 'Content-Length': Buffer.byteLength(body) });
|
|
15743
|
+
response.end(request.method === 'HEAD' ? undefined : body);
|
|
15744
|
+
return true;
|
|
15745
|
+
}
|
|
15703
15746
|
if (await networkProxy.handle(request, response))
|
|
15704
15747
|
return true;
|
|
15705
15748
|
if (request.url !== MINI_PROGRAM_DEV_LAUNCH_PATH || request.headers[COMPANION_ARTIFACT_ACCESS_TOKEN_HEADER] === undefined)
|
|
@@ -15766,8 +15809,9 @@ async function runDevCommand(options, runtime = {}) {
|
|
|
15766
15809
|
let browserDevHost;
|
|
15767
15810
|
try {
|
|
15768
15811
|
browserDevHost = await runDevStartupTask(logger, '正在启动浏览器调试页服务', () => startBrowserDevHostServer({
|
|
15769
|
-
openPlatformBaseUrl:
|
|
15812
|
+
openPlatformBaseUrl: index.resolveHeyboxOpenPlatformBaseUrl(runtime.env),
|
|
15770
15813
|
appUrl,
|
|
15814
|
+
devSessionId,
|
|
15771
15815
|
devContext: currentDevContext,
|
|
15772
15816
|
fetchImpl,
|
|
15773
15817
|
getPort: getPortImpl,
|
|
@@ -15779,6 +15823,7 @@ async function runDevCommand(options, runtime = {}) {
|
|
|
15779
15823
|
miniProgram,
|
|
15780
15824
|
// 只在项目声明了桌面平台时向调试台暴露「在桌面端打开」入口。
|
|
15781
15825
|
miniProgramSupportsDesktop: runtimePermissionEnv.hasMiniappDesktopPlatform(miniProgramPlatforms),
|
|
15826
|
+
workspaceCardsEnabled: workspaceCardsDeclared,
|
|
15782
15827
|
cliAuth: runtime.cliAuth ?? createBrowserDevHostCliAuth({ env: runtime.env, fetchImpl }),
|
|
15783
15828
|
onMobileDevSessionCreated: ({ devContextUrl, miniUrlOrigin }) => {
|
|
15784
15829
|
mobileDevContextUrlsByOrigin.set(miniUrlOrigin, devContextUrl);
|
|
@@ -15989,7 +16034,7 @@ async function loadDevLaunchContext(options) {
|
|
|
15989
16034
|
const anonymous = (warning) => ({ context: { source: 'anonymous', warning,
|
|
15990
16035
|
declaredPermissions: localPermissions.permissions ?? {}, platforms,
|
|
15991
16036
|
runtimePermissions: runtimePermissionEnv.composeMiniappRuntimePermissions(localPermissions, undefined).runtimePermissions }, miniProgram: null });
|
|
15992
|
-
if (!(await
|
|
16037
|
+
if (!(await index.readHeyboxAuthSession({ env: options.env })))
|
|
15993
16038
|
return anonymous('尚未登录 CLI,真实手机和 PC 调试不可用');
|
|
15994
16039
|
const miniProgramId = await context.readBoundMiniProgramId(options.projectRoot);
|
|
15995
16040
|
if (!miniProgramId)
|
|
@@ -3,19 +3,26 @@
|
|
|
3
3
|
var fs = require('node:fs/promises');
|
|
4
4
|
var os = require('node:os');
|
|
5
5
|
var path = require('node:path');
|
|
6
|
-
var index = require('./index-
|
|
6
|
+
var index = require('./index-J4uQvKT_.cjs');
|
|
7
7
|
require('node:module');
|
|
8
|
-
require('node:fs');
|
|
9
8
|
require('path');
|
|
10
9
|
require('os');
|
|
11
|
-
require('
|
|
10
|
+
require('fs');
|
|
11
|
+
require('constants');
|
|
12
|
+
require('stream');
|
|
13
|
+
require('util');
|
|
14
|
+
require('assert');
|
|
12
15
|
require('readline');
|
|
13
16
|
require('tty');
|
|
14
|
-
require('assert');
|
|
15
17
|
require('events');
|
|
16
|
-
require('stream');
|
|
17
18
|
require('buffer');
|
|
18
|
-
require('
|
|
19
|
+
require('node:crypto');
|
|
20
|
+
require('node:process');
|
|
21
|
+
require('node:buffer');
|
|
22
|
+
require('node:url');
|
|
23
|
+
require('node:util');
|
|
24
|
+
require('node:child_process');
|
|
25
|
+
require('node:fs');
|
|
19
26
|
|
|
20
27
|
const CANDIDATES = [
|
|
21
28
|
path.resolve(__dirname, '..', 'package.json'),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index$2 = require('./index-
|
|
3
|
+
var index$2 = require('./index-J4uQvKT_.cjs');
|
|
4
4
|
var require$$0$3 = require('fs');
|
|
5
5
|
var require$$0$2 = require('crypto');
|
|
6
6
|
var require$$1$2 = require('path');
|
|
7
7
|
var require$$0$5 = require('assert');
|
|
8
8
|
var require$$0$4 = require('events');
|
|
9
9
|
var require$$1$1 = require('util');
|
|
10
|
-
var runtimePermissionEnv = require('./runtime-permission-env-
|
|
10
|
+
var runtimePermissionEnv = require('./runtime-permission-env-DWaPlchd.cjs');
|
|
11
11
|
var require$$0$7 = require('net');
|
|
12
12
|
var require$$0$6 = require('url');
|
|
13
13
|
var require$$2$1 = require('http');
|
|
@@ -16,6 +16,7 @@ var require$$0$8 = require('stream');
|
|
|
16
16
|
var require$$0$a = require('zlib');
|
|
17
17
|
var require$$1$3 = require('querystring');
|
|
18
18
|
var require$$0$9 = require('buffer');
|
|
19
|
+
var runtimeGate = require('./runtime-gate-DedD3ynE.cjs');
|
|
19
20
|
var require$$4$3 = require('tls');
|
|
20
21
|
|
|
21
22
|
function _mergeNamespaces(n, m) {
|
|
@@ -20756,10 +20757,6 @@ function requireEc () {
|
|
|
20756
20757
|
return ec;
|
|
20757
20758
|
}
|
|
20758
20759
|
|
|
20759
|
-
function commonjsRequire(path) {
|
|
20760
|
-
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
20761
|
-
}
|
|
20762
|
-
|
|
20763
20760
|
var naclFast = {exports: {}};
|
|
20764
20761
|
|
|
20765
20762
|
var hasRequiredNaclFast;
|
|
@@ -23141,7 +23138,7 @@ function requireNaclFast () {
|
|
|
23141
23138
|
for (i = 0; i < n; i++) x[i] = v[i];
|
|
23142
23139
|
cleanup(v);
|
|
23143
23140
|
});
|
|
23144
|
-
} else if (typeof commonjsRequire !== 'undefined') {
|
|
23141
|
+
} else if (typeof runtimeGate.commonjsRequire !== 'undefined') {
|
|
23145
23142
|
// Node.js.
|
|
23146
23143
|
crypto = require$$0$2;
|
|
23147
23144
|
if (crypto && crypto.randomBytes) {
|