@iwsdk/cli 0.4.0 → 0.4.2
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/dist/cli.js +5 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/dev.d.ts.map +1 -1
- package/dist/hzdb-telemetry.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AAqYzB,wBAAsB,WAAW,CAC/B,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACV,aAAa,EACd,MAAM,iBAAiB,CAAC;AAqYzB,wBAAsB,WAAW,CAC/B,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,GAAG,IAAI,CAAC,CAmMlD;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAQ9B;AAED,wBAAsB,gBAAgB,CACpC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,GAAG,IAAI,CAAC,CAUlD;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAyB9B;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAqB9B;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,UAAU,EACnB,EAAE,EAAE,aAAa,GAChB,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAE9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hzdb-telemetry.d.ts","sourceRoot":"","sources":["../src/hzdb-telemetry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"hzdb-telemetry.d.ts","sourceRoot":"","sources":["../src/hzdb-telemetry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkBH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,EAClB,aAAa,CAAC,EAAE,MAAM,GACrB,IAAI,CAkBN"}
|
package/dist/index.js
CHANGED
|
@@ -5845,7 +5845,7 @@ function inferRuntimeIssueCause(message, browser, explicitCause) {
|
|
|
5845
5845
|
async function trySendRuntimeCommand(protocol, port, method, params, timeoutMs, browser) {
|
|
5846
5846
|
return new Promise((resolve, reject) => {
|
|
5847
5847
|
const requestId = `${Date.now()}-${Math.random().toString(16).slice(2)}`;
|
|
5848
|
-
const wsUrl = `${protocol}://
|
|
5848
|
+
const wsUrl = `${protocol}://127.0.0.1:${port}/__iwer_mcp`;
|
|
5849
5849
|
const ws = new WebSocket$1(wsUrl, {
|
|
5850
5850
|
rejectUnauthorized: false,
|
|
5851
5851
|
});
|
|
@@ -6435,6 +6435,8 @@ async function handleDevUp(options, io) {
|
|
|
6435
6435
|
detached: !foreground,
|
|
6436
6436
|
stdio: foreground ? 'inherit' : ['ignore', stdoutFd, stdoutFd],
|
|
6437
6437
|
env: process.env,
|
|
6438
|
+
// npm/pnpm/yarn are .cmd shims on Windows; Node cannot spawn them without a shell.
|
|
6439
|
+
shell: process.platform === 'win32',
|
|
6438
6440
|
});
|
|
6439
6441
|
const childExitPromise = waitForChildExit(child);
|
|
6440
6442
|
let childExit = null;
|
|
@@ -22702,6 +22704,8 @@ function hzdbTelemetry(args, clientVersion) {
|
|
|
22702
22704
|
}
|
|
22703
22705
|
const child = spawn('npx', [...globalArgs, ...args], {
|
|
22704
22706
|
stdio: 'ignore',
|
|
22707
|
+
// npx is a .cmd shim on Windows; Node cannot spawn it without a shell.
|
|
22708
|
+
shell: process.platform === 'win32',
|
|
22705
22709
|
});
|
|
22706
22710
|
child.on('error', () => { });
|
|
22707
22711
|
child.unref();
|