@anvil-works/anvil-cli 0.3.11 → 0.4.0
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 +829 -31
- package/dist/index.js +908 -89
- package/dist/keyring.darwin-arm64.node +0 -0
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -90,6 +90,704 @@ var __webpack_modules__ = {
|
|
|
90
90
|
exports1.deferred = deferred;
|
|
91
91
|
exports1.createDeferred = deferred;
|
|
92
92
|
},
|
|
93
|
+
"./node_modules/.pnpm/@napi-rs+keyring@1.2.0/node_modules/@napi-rs/keyring/index.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
94
|
+
var require1;
|
|
95
|
+
const { createRequire } = __webpack_require__("node:module");
|
|
96
|
+
require1 = createRequire(__filename);
|
|
97
|
+
const { readFileSync } = __webpack_require__("node:fs");
|
|
98
|
+
let nativeBinding = null;
|
|
99
|
+
const loadErrors = [];
|
|
100
|
+
const isMusl = ()=>{
|
|
101
|
+
let musl = false;
|
|
102
|
+
if ('linux' === process.platform) {
|
|
103
|
+
musl = isMuslFromFilesystem();
|
|
104
|
+
if (null === musl) musl = isMuslFromReport();
|
|
105
|
+
if (null === musl) musl = isMuslFromChildProcess();
|
|
106
|
+
}
|
|
107
|
+
return musl;
|
|
108
|
+
};
|
|
109
|
+
const isFileMusl = (f)=>f.includes('libc.musl-') || f.includes('ld-musl-');
|
|
110
|
+
const isMuslFromFilesystem = ()=>{
|
|
111
|
+
try {
|
|
112
|
+
return readFileSync('/usr/bin/ldd', 'utf-8').includes('musl');
|
|
113
|
+
} catch {
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const isMuslFromReport = ()=>{
|
|
118
|
+
let report = null;
|
|
119
|
+
if ('function' == typeof process.report?.getReport) {
|
|
120
|
+
process.report.excludeNetwork = true;
|
|
121
|
+
report = process.report.getReport();
|
|
122
|
+
}
|
|
123
|
+
if (!report) return null;
|
|
124
|
+
if (report.header && report.header.glibcVersionRuntime) return false;
|
|
125
|
+
if (Array.isArray(report.sharedObjects)) {
|
|
126
|
+
if (report.sharedObjects.some(isFileMusl)) return true;
|
|
127
|
+
}
|
|
128
|
+
return false;
|
|
129
|
+
};
|
|
130
|
+
const isMuslFromChildProcess = ()=>{
|
|
131
|
+
try {
|
|
132
|
+
return __webpack_require__("child_process").execSync('ldd --version', {
|
|
133
|
+
encoding: 'utf8'
|
|
134
|
+
}).includes('musl');
|
|
135
|
+
} catch (e) {
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
function requireNative() {
|
|
140
|
+
if (process.env.NAPI_RS_NATIVE_LIBRARY_PATH) try {
|
|
141
|
+
nativeBinding = require1(process.env.NAPI_RS_NATIVE_LIBRARY_PATH);
|
|
142
|
+
} catch (err) {
|
|
143
|
+
loadErrors.push(err);
|
|
144
|
+
}
|
|
145
|
+
else if ('android' === process.platform) if ('arm64' === process.arch) {
|
|
146
|
+
try {
|
|
147
|
+
return __webpack_require__(Object(function() {
|
|
148
|
+
var e = new Error("Cannot find module './keyring.android-arm64.node'");
|
|
149
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
150
|
+
throw e;
|
|
151
|
+
}()));
|
|
152
|
+
} catch (e) {
|
|
153
|
+
loadErrors.push(e);
|
|
154
|
+
}
|
|
155
|
+
try {
|
|
156
|
+
const binding = __webpack_require__(Object(function() {
|
|
157
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-android-arm64'");
|
|
158
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
159
|
+
throw e;
|
|
160
|
+
}()));
|
|
161
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
162
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-android-arm64/package.json'");
|
|
163
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
164
|
+
throw e;
|
|
165
|
+
}()));
|
|
166
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
167
|
+
return binding;
|
|
168
|
+
} catch (e) {
|
|
169
|
+
loadErrors.push(e);
|
|
170
|
+
}
|
|
171
|
+
} else if ('arm' === process.arch) {
|
|
172
|
+
try {
|
|
173
|
+
return __webpack_require__(Object(function() {
|
|
174
|
+
var e = new Error("Cannot find module './keyring.android-arm-eabi.node'");
|
|
175
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
176
|
+
throw e;
|
|
177
|
+
}()));
|
|
178
|
+
} catch (e) {
|
|
179
|
+
loadErrors.push(e);
|
|
180
|
+
}
|
|
181
|
+
try {
|
|
182
|
+
const binding = __webpack_require__(Object(function() {
|
|
183
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-android-arm-eabi'");
|
|
184
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
185
|
+
throw e;
|
|
186
|
+
}()));
|
|
187
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
188
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-android-arm-eabi/package.json'");
|
|
189
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
190
|
+
throw e;
|
|
191
|
+
}()));
|
|
192
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
193
|
+
return binding;
|
|
194
|
+
} catch (e) {
|
|
195
|
+
loadErrors.push(e);
|
|
196
|
+
}
|
|
197
|
+
} else loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
198
|
+
else if ('win32' === process.platform) if ('x64' === process.arch) {
|
|
199
|
+
try {
|
|
200
|
+
return __webpack_require__(Object(function() {
|
|
201
|
+
var e = new Error("Cannot find module './keyring.win32-x64-msvc.node'");
|
|
202
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
203
|
+
throw e;
|
|
204
|
+
}()));
|
|
205
|
+
} catch (e) {
|
|
206
|
+
loadErrors.push(e);
|
|
207
|
+
}
|
|
208
|
+
try {
|
|
209
|
+
const binding = __webpack_require__(Object(function() {
|
|
210
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-win32-x64-msvc'");
|
|
211
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
212
|
+
throw e;
|
|
213
|
+
}()));
|
|
214
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
215
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-win32-x64-msvc/package.json'");
|
|
216
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
217
|
+
throw e;
|
|
218
|
+
}()));
|
|
219
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
220
|
+
return binding;
|
|
221
|
+
} catch (e) {
|
|
222
|
+
loadErrors.push(e);
|
|
223
|
+
}
|
|
224
|
+
} else if ('ia32' === process.arch) {
|
|
225
|
+
try {
|
|
226
|
+
return __webpack_require__(Object(function() {
|
|
227
|
+
var e = new Error("Cannot find module './keyring.win32-ia32-msvc.node'");
|
|
228
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
229
|
+
throw e;
|
|
230
|
+
}()));
|
|
231
|
+
} catch (e) {
|
|
232
|
+
loadErrors.push(e);
|
|
233
|
+
}
|
|
234
|
+
try {
|
|
235
|
+
const binding = __webpack_require__(Object(function() {
|
|
236
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-win32-ia32-msvc'");
|
|
237
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
238
|
+
throw e;
|
|
239
|
+
}()));
|
|
240
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
241
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-win32-ia32-msvc/package.json'");
|
|
242
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
243
|
+
throw e;
|
|
244
|
+
}()));
|
|
245
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
246
|
+
return binding;
|
|
247
|
+
} catch (e) {
|
|
248
|
+
loadErrors.push(e);
|
|
249
|
+
}
|
|
250
|
+
} else if ('arm64' === process.arch) {
|
|
251
|
+
try {
|
|
252
|
+
return __webpack_require__(Object(function() {
|
|
253
|
+
var e = new Error("Cannot find module './keyring.win32-arm64-msvc.node'");
|
|
254
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
255
|
+
throw e;
|
|
256
|
+
}()));
|
|
257
|
+
} catch (e) {
|
|
258
|
+
loadErrors.push(e);
|
|
259
|
+
}
|
|
260
|
+
try {
|
|
261
|
+
const binding = __webpack_require__(Object(function() {
|
|
262
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-win32-arm64-msvc'");
|
|
263
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
264
|
+
throw e;
|
|
265
|
+
}()));
|
|
266
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
267
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-win32-arm64-msvc/package.json'");
|
|
268
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
269
|
+
throw e;
|
|
270
|
+
}()));
|
|
271
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
272
|
+
return binding;
|
|
273
|
+
} catch (e) {
|
|
274
|
+
loadErrors.push(e);
|
|
275
|
+
}
|
|
276
|
+
} else loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));
|
|
277
|
+
else if ('darwin' === process.platform) {
|
|
278
|
+
try {
|
|
279
|
+
return __webpack_require__(Object(function() {
|
|
280
|
+
var e = new Error("Cannot find module './keyring.darwin-universal.node'");
|
|
281
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
282
|
+
throw e;
|
|
283
|
+
}()));
|
|
284
|
+
} catch (e) {
|
|
285
|
+
loadErrors.push(e);
|
|
286
|
+
}
|
|
287
|
+
try {
|
|
288
|
+
const binding = __webpack_require__(Object(function() {
|
|
289
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-darwin-universal'");
|
|
290
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
291
|
+
throw e;
|
|
292
|
+
}()));
|
|
293
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
294
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-darwin-universal/package.json'");
|
|
295
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
296
|
+
throw e;
|
|
297
|
+
}()));
|
|
298
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
299
|
+
return binding;
|
|
300
|
+
} catch (e) {
|
|
301
|
+
loadErrors.push(e);
|
|
302
|
+
}
|
|
303
|
+
if ('x64' === process.arch) {
|
|
304
|
+
try {
|
|
305
|
+
return __webpack_require__(Object(function() {
|
|
306
|
+
var e = new Error("Cannot find module './keyring.darwin-x64.node'");
|
|
307
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
308
|
+
throw e;
|
|
309
|
+
}()));
|
|
310
|
+
} catch (e) {
|
|
311
|
+
loadErrors.push(e);
|
|
312
|
+
}
|
|
313
|
+
try {
|
|
314
|
+
const binding = __webpack_require__(Object(function() {
|
|
315
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-darwin-x64'");
|
|
316
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
317
|
+
throw e;
|
|
318
|
+
}()));
|
|
319
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
320
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-darwin-x64/package.json'");
|
|
321
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
322
|
+
throw e;
|
|
323
|
+
}()));
|
|
324
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
325
|
+
return binding;
|
|
326
|
+
} catch (e) {
|
|
327
|
+
loadErrors.push(e);
|
|
328
|
+
}
|
|
329
|
+
} else if ('arm64' === process.arch) {
|
|
330
|
+
try {
|
|
331
|
+
return __webpack_require__(Object(function() {
|
|
332
|
+
var e = new Error("Cannot find module './keyring.darwin-arm64.node'");
|
|
333
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
334
|
+
throw e;
|
|
335
|
+
}()));
|
|
336
|
+
} catch (e) {
|
|
337
|
+
loadErrors.push(e);
|
|
338
|
+
}
|
|
339
|
+
try {
|
|
340
|
+
const binding = __webpack_require__("./node_modules/.pnpm/@napi-rs+keyring-darwin-arm64@1.2.0/node_modules/@napi-rs/keyring-darwin-arm64/keyring.darwin-arm64.node");
|
|
341
|
+
const bindingPackageVersion = __webpack_require__("./node_modules/.pnpm/@napi-rs+keyring-darwin-arm64@1.2.0/node_modules/@napi-rs/keyring-darwin-arm64/package.json").rE;
|
|
342
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
343
|
+
return binding;
|
|
344
|
+
} catch (e) {
|
|
345
|
+
loadErrors.push(e);
|
|
346
|
+
}
|
|
347
|
+
} else loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`));
|
|
348
|
+
} else if ('freebsd' === process.platform) if ('x64' === process.arch) {
|
|
349
|
+
try {
|
|
350
|
+
return __webpack_require__(Object(function() {
|
|
351
|
+
var e = new Error("Cannot find module './keyring.freebsd-x64.node'");
|
|
352
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
353
|
+
throw e;
|
|
354
|
+
}()));
|
|
355
|
+
} catch (e) {
|
|
356
|
+
loadErrors.push(e);
|
|
357
|
+
}
|
|
358
|
+
try {
|
|
359
|
+
const binding = __webpack_require__(Object(function() {
|
|
360
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-freebsd-x64'");
|
|
361
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
362
|
+
throw e;
|
|
363
|
+
}()));
|
|
364
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
365
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-freebsd-x64/package.json'");
|
|
366
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
367
|
+
throw e;
|
|
368
|
+
}()));
|
|
369
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
370
|
+
return binding;
|
|
371
|
+
} catch (e) {
|
|
372
|
+
loadErrors.push(e);
|
|
373
|
+
}
|
|
374
|
+
} else if ('arm64' === process.arch) {
|
|
375
|
+
try {
|
|
376
|
+
return __webpack_require__(Object(function() {
|
|
377
|
+
var e = new Error("Cannot find module './keyring.freebsd-arm64.node'");
|
|
378
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
379
|
+
throw e;
|
|
380
|
+
}()));
|
|
381
|
+
} catch (e) {
|
|
382
|
+
loadErrors.push(e);
|
|
383
|
+
}
|
|
384
|
+
try {
|
|
385
|
+
const binding = __webpack_require__(Object(function() {
|
|
386
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-freebsd-arm64'");
|
|
387
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
388
|
+
throw e;
|
|
389
|
+
}()));
|
|
390
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
391
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-freebsd-arm64/package.json'");
|
|
392
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
393
|
+
throw e;
|
|
394
|
+
}()));
|
|
395
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
396
|
+
return binding;
|
|
397
|
+
} catch (e) {
|
|
398
|
+
loadErrors.push(e);
|
|
399
|
+
}
|
|
400
|
+
} else loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
|
|
401
|
+
else if ('linux' === process.platform) if ('x64' === process.arch) if (isMusl()) {
|
|
402
|
+
try {
|
|
403
|
+
return __webpack_require__(Object(function() {
|
|
404
|
+
var e = new Error("Cannot find module './keyring.linux-x64-musl.node'");
|
|
405
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
406
|
+
throw e;
|
|
407
|
+
}()));
|
|
408
|
+
} catch (e) {
|
|
409
|
+
loadErrors.push(e);
|
|
410
|
+
}
|
|
411
|
+
try {
|
|
412
|
+
const binding = __webpack_require__(Object(function() {
|
|
413
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-x64-musl'");
|
|
414
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
415
|
+
throw e;
|
|
416
|
+
}()));
|
|
417
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
418
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-x64-musl/package.json'");
|
|
419
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
420
|
+
throw e;
|
|
421
|
+
}()));
|
|
422
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
423
|
+
return binding;
|
|
424
|
+
} catch (e) {
|
|
425
|
+
loadErrors.push(e);
|
|
426
|
+
}
|
|
427
|
+
} else {
|
|
428
|
+
try {
|
|
429
|
+
return __webpack_require__(Object(function() {
|
|
430
|
+
var e = new Error("Cannot find module './keyring.linux-x64-gnu.node'");
|
|
431
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
432
|
+
throw e;
|
|
433
|
+
}()));
|
|
434
|
+
} catch (e) {
|
|
435
|
+
loadErrors.push(e);
|
|
436
|
+
}
|
|
437
|
+
try {
|
|
438
|
+
const binding = __webpack_require__(Object(function() {
|
|
439
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-x64-gnu'");
|
|
440
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
441
|
+
throw e;
|
|
442
|
+
}()));
|
|
443
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
444
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-x64-gnu/package.json'");
|
|
445
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
446
|
+
throw e;
|
|
447
|
+
}()));
|
|
448
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
449
|
+
return binding;
|
|
450
|
+
} catch (e) {
|
|
451
|
+
loadErrors.push(e);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
else if ('arm64' === process.arch) if (isMusl()) {
|
|
455
|
+
try {
|
|
456
|
+
return __webpack_require__(Object(function() {
|
|
457
|
+
var e = new Error("Cannot find module './keyring.linux-arm64-musl.node'");
|
|
458
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
459
|
+
throw e;
|
|
460
|
+
}()));
|
|
461
|
+
} catch (e) {
|
|
462
|
+
loadErrors.push(e);
|
|
463
|
+
}
|
|
464
|
+
try {
|
|
465
|
+
const binding = __webpack_require__(Object(function() {
|
|
466
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-arm64-musl'");
|
|
467
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
468
|
+
throw e;
|
|
469
|
+
}()));
|
|
470
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
471
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-arm64-musl/package.json'");
|
|
472
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
473
|
+
throw e;
|
|
474
|
+
}()));
|
|
475
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
476
|
+
return binding;
|
|
477
|
+
} catch (e) {
|
|
478
|
+
loadErrors.push(e);
|
|
479
|
+
}
|
|
480
|
+
} else {
|
|
481
|
+
try {
|
|
482
|
+
return __webpack_require__(Object(function() {
|
|
483
|
+
var e = new Error("Cannot find module './keyring.linux-arm64-gnu.node'");
|
|
484
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
485
|
+
throw e;
|
|
486
|
+
}()));
|
|
487
|
+
} catch (e) {
|
|
488
|
+
loadErrors.push(e);
|
|
489
|
+
}
|
|
490
|
+
try {
|
|
491
|
+
const binding = __webpack_require__(Object(function() {
|
|
492
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-arm64-gnu'");
|
|
493
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
494
|
+
throw e;
|
|
495
|
+
}()));
|
|
496
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
497
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-arm64-gnu/package.json'");
|
|
498
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
499
|
+
throw e;
|
|
500
|
+
}()));
|
|
501
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
502
|
+
return binding;
|
|
503
|
+
} catch (e) {
|
|
504
|
+
loadErrors.push(e);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
else if ('arm' === process.arch) if (isMusl()) {
|
|
508
|
+
try {
|
|
509
|
+
return __webpack_require__(Object(function() {
|
|
510
|
+
var e = new Error("Cannot find module './keyring.linux-arm-musleabihf.node'");
|
|
511
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
512
|
+
throw e;
|
|
513
|
+
}()));
|
|
514
|
+
} catch (e) {
|
|
515
|
+
loadErrors.push(e);
|
|
516
|
+
}
|
|
517
|
+
try {
|
|
518
|
+
const binding = __webpack_require__(Object(function() {
|
|
519
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-arm-musleabihf'");
|
|
520
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
521
|
+
throw e;
|
|
522
|
+
}()));
|
|
523
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
524
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-arm-musleabihf/package.json'");
|
|
525
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
526
|
+
throw e;
|
|
527
|
+
}()));
|
|
528
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
529
|
+
return binding;
|
|
530
|
+
} catch (e) {
|
|
531
|
+
loadErrors.push(e);
|
|
532
|
+
}
|
|
533
|
+
} else {
|
|
534
|
+
try {
|
|
535
|
+
return __webpack_require__(Object(function() {
|
|
536
|
+
var e = new Error("Cannot find module './keyring.linux-arm-gnueabihf.node'");
|
|
537
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
538
|
+
throw e;
|
|
539
|
+
}()));
|
|
540
|
+
} catch (e) {
|
|
541
|
+
loadErrors.push(e);
|
|
542
|
+
}
|
|
543
|
+
try {
|
|
544
|
+
const binding = __webpack_require__(Object(function() {
|
|
545
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-arm-gnueabihf'");
|
|
546
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
547
|
+
throw e;
|
|
548
|
+
}()));
|
|
549
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
550
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-arm-gnueabihf/package.json'");
|
|
551
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
552
|
+
throw e;
|
|
553
|
+
}()));
|
|
554
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
555
|
+
return binding;
|
|
556
|
+
} catch (e) {
|
|
557
|
+
loadErrors.push(e);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
else if ('riscv64' === process.arch) if (isMusl()) {
|
|
561
|
+
try {
|
|
562
|
+
return __webpack_require__(Object(function() {
|
|
563
|
+
var e = new Error("Cannot find module './keyring.linux-riscv64-musl.node'");
|
|
564
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
565
|
+
throw e;
|
|
566
|
+
}()));
|
|
567
|
+
} catch (e) {
|
|
568
|
+
loadErrors.push(e);
|
|
569
|
+
}
|
|
570
|
+
try {
|
|
571
|
+
const binding = __webpack_require__(Object(function() {
|
|
572
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-riscv64-musl'");
|
|
573
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
574
|
+
throw e;
|
|
575
|
+
}()));
|
|
576
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
577
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-riscv64-musl/package.json'");
|
|
578
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
579
|
+
throw e;
|
|
580
|
+
}()));
|
|
581
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
582
|
+
return binding;
|
|
583
|
+
} catch (e) {
|
|
584
|
+
loadErrors.push(e);
|
|
585
|
+
}
|
|
586
|
+
} else {
|
|
587
|
+
try {
|
|
588
|
+
return __webpack_require__(Object(function() {
|
|
589
|
+
var e = new Error("Cannot find module './keyring.linux-riscv64-gnu.node'");
|
|
590
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
591
|
+
throw e;
|
|
592
|
+
}()));
|
|
593
|
+
} catch (e) {
|
|
594
|
+
loadErrors.push(e);
|
|
595
|
+
}
|
|
596
|
+
try {
|
|
597
|
+
const binding = __webpack_require__(Object(function() {
|
|
598
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-riscv64-gnu'");
|
|
599
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
600
|
+
throw e;
|
|
601
|
+
}()));
|
|
602
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
603
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-riscv64-gnu/package.json'");
|
|
604
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
605
|
+
throw e;
|
|
606
|
+
}()));
|
|
607
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
608
|
+
return binding;
|
|
609
|
+
} catch (e) {
|
|
610
|
+
loadErrors.push(e);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
else if ('ppc64' === process.arch) {
|
|
614
|
+
try {
|
|
615
|
+
return __webpack_require__(Object(function() {
|
|
616
|
+
var e = new Error("Cannot find module './keyring.linux-ppc64-gnu.node'");
|
|
617
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
618
|
+
throw e;
|
|
619
|
+
}()));
|
|
620
|
+
} catch (e) {
|
|
621
|
+
loadErrors.push(e);
|
|
622
|
+
}
|
|
623
|
+
try {
|
|
624
|
+
const binding = __webpack_require__(Object(function() {
|
|
625
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-ppc64-gnu'");
|
|
626
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
627
|
+
throw e;
|
|
628
|
+
}()));
|
|
629
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
630
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-ppc64-gnu/package.json'");
|
|
631
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
632
|
+
throw e;
|
|
633
|
+
}()));
|
|
634
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
635
|
+
return binding;
|
|
636
|
+
} catch (e) {
|
|
637
|
+
loadErrors.push(e);
|
|
638
|
+
}
|
|
639
|
+
} else if ('s390x' === process.arch) {
|
|
640
|
+
try {
|
|
641
|
+
return __webpack_require__(Object(function() {
|
|
642
|
+
var e = new Error("Cannot find module './keyring.linux-s390x-gnu.node'");
|
|
643
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
644
|
+
throw e;
|
|
645
|
+
}()));
|
|
646
|
+
} catch (e) {
|
|
647
|
+
loadErrors.push(e);
|
|
648
|
+
}
|
|
649
|
+
try {
|
|
650
|
+
const binding = __webpack_require__(Object(function() {
|
|
651
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-s390x-gnu'");
|
|
652
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
653
|
+
throw e;
|
|
654
|
+
}()));
|
|
655
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
656
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-linux-s390x-gnu/package.json'");
|
|
657
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
658
|
+
throw e;
|
|
659
|
+
}()));
|
|
660
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
661
|
+
return binding;
|
|
662
|
+
} catch (e) {
|
|
663
|
+
loadErrors.push(e);
|
|
664
|
+
}
|
|
665
|
+
} else loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));
|
|
666
|
+
else if ('openharmony' === process.platform) if ('arm64' === process.arch) {
|
|
667
|
+
try {
|
|
668
|
+
return __webpack_require__(Object(function() {
|
|
669
|
+
var e = new Error("Cannot find module './keyring.openharmony-arm64.node'");
|
|
670
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
671
|
+
throw e;
|
|
672
|
+
}()));
|
|
673
|
+
} catch (e) {
|
|
674
|
+
loadErrors.push(e);
|
|
675
|
+
}
|
|
676
|
+
try {
|
|
677
|
+
const binding = __webpack_require__(Object(function() {
|
|
678
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-openharmony-arm64'");
|
|
679
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
680
|
+
throw e;
|
|
681
|
+
}()));
|
|
682
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
683
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-openharmony-arm64/package.json'");
|
|
684
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
685
|
+
throw e;
|
|
686
|
+
}()));
|
|
687
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
688
|
+
return binding;
|
|
689
|
+
} catch (e) {
|
|
690
|
+
loadErrors.push(e);
|
|
691
|
+
}
|
|
692
|
+
} else if ('x64' === process.arch) {
|
|
693
|
+
try {
|
|
694
|
+
return __webpack_require__(Object(function() {
|
|
695
|
+
var e = new Error("Cannot find module './keyring.openharmony-x64.node'");
|
|
696
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
697
|
+
throw e;
|
|
698
|
+
}()));
|
|
699
|
+
} catch (e) {
|
|
700
|
+
loadErrors.push(e);
|
|
701
|
+
}
|
|
702
|
+
try {
|
|
703
|
+
const binding = __webpack_require__(Object(function() {
|
|
704
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-openharmony-x64'");
|
|
705
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
706
|
+
throw e;
|
|
707
|
+
}()));
|
|
708
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
709
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-openharmony-x64/package.json'");
|
|
710
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
711
|
+
throw e;
|
|
712
|
+
}()));
|
|
713
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
714
|
+
return binding;
|
|
715
|
+
} catch (e) {
|
|
716
|
+
loadErrors.push(e);
|
|
717
|
+
}
|
|
718
|
+
} else if ('arm' === process.arch) {
|
|
719
|
+
try {
|
|
720
|
+
return __webpack_require__(Object(function() {
|
|
721
|
+
var e = new Error("Cannot find module './keyring.openharmony-arm.node'");
|
|
722
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
723
|
+
throw e;
|
|
724
|
+
}()));
|
|
725
|
+
} catch (e) {
|
|
726
|
+
loadErrors.push(e);
|
|
727
|
+
}
|
|
728
|
+
try {
|
|
729
|
+
const binding = __webpack_require__(Object(function() {
|
|
730
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-openharmony-arm'");
|
|
731
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
732
|
+
throw e;
|
|
733
|
+
}()));
|
|
734
|
+
const bindingPackageVersion = __webpack_require__(Object(function() {
|
|
735
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-openharmony-arm/package.json'");
|
|
736
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
737
|
+
throw e;
|
|
738
|
+
}()));
|
|
739
|
+
if ('1.2.0' !== bindingPackageVersion && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && '0' !== process.env.NAPI_RS_ENFORCE_VERSION_CHECK) throw new Error(`Native binding package version mismatch, expected 1.2.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
740
|
+
return binding;
|
|
741
|
+
} catch (e) {
|
|
742
|
+
loadErrors.push(e);
|
|
743
|
+
}
|
|
744
|
+
} else loadErrors.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));
|
|
745
|
+
else loadErrors.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
|
|
746
|
+
}
|
|
747
|
+
nativeBinding = requireNative();
|
|
748
|
+
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
749
|
+
try {
|
|
750
|
+
nativeBinding = __webpack_require__(Object(function() {
|
|
751
|
+
var e = new Error("Cannot find module './keyring.wasi.cjs'");
|
|
752
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
753
|
+
throw e;
|
|
754
|
+
}()));
|
|
755
|
+
} catch (err) {
|
|
756
|
+
if (process.env.NAPI_RS_FORCE_WASI) loadErrors.push(err);
|
|
757
|
+
}
|
|
758
|
+
if (!nativeBinding) try {
|
|
759
|
+
nativeBinding = __webpack_require__(Object(function() {
|
|
760
|
+
var e = new Error("Cannot find module '@napi-rs/keyring-wasm32-wasi'");
|
|
761
|
+
e.code = 'MODULE_NOT_FOUND';
|
|
762
|
+
throw e;
|
|
763
|
+
}()));
|
|
764
|
+
} catch (err) {
|
|
765
|
+
if (process.env.NAPI_RS_FORCE_WASI) loadErrors.push(err);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
if (!nativeBinding) {
|
|
769
|
+
if (loadErrors.length > 0) throw new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.", {
|
|
770
|
+
cause: loadErrors
|
|
771
|
+
});
|
|
772
|
+
throw new Error("Failed to load native binding");
|
|
773
|
+
}
|
|
774
|
+
module.exports = nativeBinding;
|
|
775
|
+
module.exports.AsyncEntry = nativeBinding.AsyncEntry;
|
|
776
|
+
module.exports.Entry = nativeBinding.Entry;
|
|
777
|
+
module.exports.findCredentials = nativeBinding.findCredentials;
|
|
778
|
+
module.exports.findCredentialsAsync = nativeBinding.findCredentialsAsync;
|
|
779
|
+
},
|
|
780
|
+
"./node_modules/.pnpm/@napi-rs+keyring-darwin-arm64@1.2.0/node_modules/@napi-rs/keyring-darwin-arm64/keyring.darwin-arm64.node" (module, __unused_rspack_exports, __webpack_require__) {
|
|
781
|
+
module = __webpack_require__.nmd(module);
|
|
782
|
+
try {
|
|
783
|
+
const path = __webpack_require__("node:path");
|
|
784
|
+
process.dlopen(module, path.join(__dirname, "keyring.darwin-arm64.node"));
|
|
785
|
+
} catch (error) {
|
|
786
|
+
throw new Error('Failed to load Node.js addon: "keyring.darwin-arm64.node"', {
|
|
787
|
+
cause: error
|
|
788
|
+
});
|
|
789
|
+
}
|
|
790
|
+
},
|
|
93
791
|
"./node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.17.1/node_modules/ajv-formats/dist/formats.js" (__unused_rspack_module, exports1) {
|
|
94
792
|
"use strict";
|
|
95
793
|
Object.defineProperty(exports1, "__esModule", {
|
|
@@ -10547,6 +11245,10 @@ var __webpack_modules__ = {
|
|
|
10547
11245
|
"use strict";
|
|
10548
11246
|
module.exports = require("buffer");
|
|
10549
11247
|
},
|
|
11248
|
+
child_process (module) {
|
|
11249
|
+
"use strict";
|
|
11250
|
+
module.exports = require("child_process");
|
|
11251
|
+
},
|
|
10550
11252
|
crypto (module) {
|
|
10551
11253
|
"use strict";
|
|
10552
11254
|
module.exports = require("crypto");
|
|
@@ -10571,6 +11273,18 @@ var __webpack_modules__ = {
|
|
|
10571
11273
|
"use strict";
|
|
10572
11274
|
module.exports = require("net");
|
|
10573
11275
|
},
|
|
11276
|
+
"node:fs" (module) {
|
|
11277
|
+
"use strict";
|
|
11278
|
+
module.exports = require("node:fs");
|
|
11279
|
+
},
|
|
11280
|
+
"node:module" (module) {
|
|
11281
|
+
"use strict";
|
|
11282
|
+
module.exports = require("node:module");
|
|
11283
|
+
},
|
|
11284
|
+
"node:path" (module) {
|
|
11285
|
+
"use strict";
|
|
11286
|
+
module.exports = require("node:path");
|
|
11287
|
+
},
|
|
10574
11288
|
os (module) {
|
|
10575
11289
|
"use strict";
|
|
10576
11290
|
module.exports = require("os");
|
|
@@ -11164,6 +11878,12 @@ var __webpack_modules__ = {
|
|
|
11164
11878
|
stringArrayToHexStripped
|
|
11165
11879
|
};
|
|
11166
11880
|
},
|
|
11881
|
+
"./node_modules/.pnpm/@napi-rs+keyring-darwin-arm64@1.2.0/node_modules/@napi-rs/keyring-darwin-arm64/package.json" (module) {
|
|
11882
|
+
"use strict";
|
|
11883
|
+
module.exports = {
|
|
11884
|
+
rE: "1.2.0"
|
|
11885
|
+
};
|
|
11886
|
+
},
|
|
11167
11887
|
"./node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json" (module) {
|
|
11168
11888
|
"use strict";
|
|
11169
11889
|
module.exports = JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}');
|
|
@@ -11210,9 +11930,12 @@ function __webpack_require__(moduleId) {
|
|
|
11210
11930
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
11211
11931
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
11212
11932
|
var module = __webpack_module_cache__[moduleId] = {
|
|
11933
|
+
id: moduleId,
|
|
11934
|
+
loaded: false,
|
|
11213
11935
|
exports: {}
|
|
11214
11936
|
};
|
|
11215
11937
|
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
11938
|
+
module.loaded = true;
|
|
11216
11939
|
return module.exports;
|
|
11217
11940
|
}
|
|
11218
11941
|
(()=>{
|
|
@@ -11245,6 +11968,13 @@ function __webpack_require__(moduleId) {
|
|
|
11245
11968
|
});
|
|
11246
11969
|
};
|
|
11247
11970
|
})();
|
|
11971
|
+
(()=>{
|
|
11972
|
+
__webpack_require__.nmd = (module)=>{
|
|
11973
|
+
module.paths = [];
|
|
11974
|
+
if (!module.children) module.children = [];
|
|
11975
|
+
return module;
|
|
11976
|
+
};
|
|
11977
|
+
})();
|
|
11248
11978
|
var __webpack_exports__ = {};
|
|
11249
11979
|
(()=>{
|
|
11250
11980
|
"use strict";
|
|
@@ -11846,9 +12576,9 @@ var __webpack_exports__ = {};
|
|
|
11846
12576
|
const external_node_buffer_namespaceObject = require("node:buffer");
|
|
11847
12577
|
var dist = __webpack_require__("./node_modules/.pnpm/@kwsites+file-exists@1.1.1/node_modules/@kwsites/file-exists/dist/index.js");
|
|
11848
12578
|
var src = __webpack_require__("./node_modules/.pnpm/debug@4.4.3_supports-color@5.5.0/node_modules/debug/src/index.js");
|
|
11849
|
-
|
|
12579
|
+
var external_child_process_ = __webpack_require__("child_process");
|
|
11850
12580
|
var promise_deferred_dist = __webpack_require__("./node_modules/.pnpm/@kwsites+promise-deferred@1.1.1/node_modules/@kwsites/promise-deferred/dist/index.js");
|
|
11851
|
-
|
|
12581
|
+
var external_node_path_ = __webpack_require__("node:path");
|
|
11852
12582
|
const external_node_events_namespaceObject = require("node:events");
|
|
11853
12583
|
var __defProp = Object.defineProperty;
|
|
11854
12584
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -13084,7 +13814,7 @@ var __webpack_exports__ = {};
|
|
|
13084
13814
|
rejection = reason || rejection;
|
|
13085
13815
|
}
|
|
13086
13816
|
});
|
|
13087
|
-
const spawned = (0,
|
|
13817
|
+
const spawned = (0, external_child_process_.spawn)(command, args, spawnOptions);
|
|
13088
13818
|
spawned.stdout.on("data", onDataReceived(stdOut, "stdOut", logger, outputLogger.step("stdOut")));
|
|
13089
13819
|
spawned.stderr.on("data", onDataReceived(stdErr, "stdErr", logger, outputLogger.step("stdErr")));
|
|
13090
13820
|
spawned.on("error", onErrorReceived(stdErr, logger));
|
|
@@ -14767,7 +15497,7 @@ var __webpack_exports__ = {};
|
|
|
14767
15497
|
});
|
|
14768
15498
|
function esm_toPath(input) {
|
|
14769
15499
|
const path = input.trim().replace(/^["']|["']$/g, "");
|
|
14770
|
-
return path && (0,
|
|
15500
|
+
return path && (0, external_node_path_.normalize)(path);
|
|
14771
15501
|
}
|
|
14772
15502
|
var parseCheckIgnore;
|
|
14773
15503
|
var init_CheckIgnore = __esm({
|
|
@@ -18035,7 +18765,7 @@ var __webpack_exports__ = {};
|
|
|
18035
18765
|
}
|
|
18036
18766
|
}
|
|
18037
18767
|
const external_node_util_namespaceObject = require("node:util");
|
|
18038
|
-
|
|
18768
|
+
var external_node_fs_ = __webpack_require__("node:fs");
|
|
18039
18769
|
const external_node_crypto_namespaceObject = require("node:crypto");
|
|
18040
18770
|
const external_node_assert_namespaceObject = require("node:assert");
|
|
18041
18771
|
const dot_prop_isObject = (value)=>{
|
|
@@ -18222,34 +18952,34 @@ var __webpack_exports__ = {};
|
|
|
18222
18952
|
const tmpdir = external_node_os_namespaceObject.tmpdir();
|
|
18223
18953
|
const { env: env_paths_env } = external_node_process_namespaceObject;
|
|
18224
18954
|
const macos = (name)=>{
|
|
18225
|
-
const library =
|
|
18955
|
+
const library = external_node_path_.join(homedir, 'Library');
|
|
18226
18956
|
return {
|
|
18227
|
-
data:
|
|
18228
|
-
config:
|
|
18229
|
-
cache:
|
|
18230
|
-
log:
|
|
18231
|
-
temp:
|
|
18957
|
+
data: external_node_path_.join(library, 'Application Support', name),
|
|
18958
|
+
config: external_node_path_.join(library, 'Preferences', name),
|
|
18959
|
+
cache: external_node_path_.join(library, 'Caches', name),
|
|
18960
|
+
log: external_node_path_.join(library, 'Logs', name),
|
|
18961
|
+
temp: external_node_path_.join(tmpdir, name)
|
|
18232
18962
|
};
|
|
18233
18963
|
};
|
|
18234
18964
|
const windows = (name)=>{
|
|
18235
|
-
const appData = env_paths_env.APPDATA ||
|
|
18236
|
-
const localAppData = env_paths_env.LOCALAPPDATA ||
|
|
18965
|
+
const appData = env_paths_env.APPDATA || external_node_path_.join(homedir, 'AppData', 'Roaming');
|
|
18966
|
+
const localAppData = env_paths_env.LOCALAPPDATA || external_node_path_.join(homedir, 'AppData', 'Local');
|
|
18237
18967
|
return {
|
|
18238
|
-
data:
|
|
18239
|
-
config:
|
|
18240
|
-
cache:
|
|
18241
|
-
log:
|
|
18242
|
-
temp:
|
|
18968
|
+
data: external_node_path_.join(localAppData, name, 'Data'),
|
|
18969
|
+
config: external_node_path_.join(appData, name, 'Config'),
|
|
18970
|
+
cache: external_node_path_.join(localAppData, name, 'Cache'),
|
|
18971
|
+
log: external_node_path_.join(localAppData, name, 'Log'),
|
|
18972
|
+
temp: external_node_path_.join(tmpdir, name)
|
|
18243
18973
|
};
|
|
18244
18974
|
};
|
|
18245
18975
|
const linux = (name)=>{
|
|
18246
|
-
const username =
|
|
18976
|
+
const username = external_node_path_.basename(homedir);
|
|
18247
18977
|
return {
|
|
18248
|
-
data:
|
|
18249
|
-
config:
|
|
18250
|
-
cache:
|
|
18251
|
-
log:
|
|
18252
|
-
temp:
|
|
18978
|
+
data: external_node_path_.join(env_paths_env.XDG_DATA_HOME || external_node_path_.join(homedir, '.local', 'share'), name),
|
|
18979
|
+
config: external_node_path_.join(env_paths_env.XDG_CONFIG_HOME || external_node_path_.join(homedir, '.config'), name),
|
|
18980
|
+
cache: external_node_path_.join(env_paths_env.XDG_CACHE_HOME || external_node_path_.join(homedir, '.cache'), name),
|
|
18981
|
+
log: external_node_path_.join(env_paths_env.XDG_STATE_HOME || external_node_path_.join(homedir, '.local', 'state'), name),
|
|
18982
|
+
temp: external_node_path_.join(tmpdir, username, name)
|
|
18253
18983
|
};
|
|
18254
18984
|
};
|
|
18255
18985
|
function envPaths(name, { suffix = 'nodejs' } = {}) {
|
|
@@ -18350,41 +19080,41 @@ var __webpack_exports__ = {};
|
|
|
18350
19080
|
};
|
|
18351
19081
|
const FS = {
|
|
18352
19082
|
attempt: {
|
|
18353
|
-
chmod: attemptify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18354
|
-
chown: attemptify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18355
|
-
close: attemptify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18356
|
-
fsync: attemptify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18357
|
-
mkdir: attemptify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18358
|
-
realpath: attemptify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18359
|
-
stat: attemptify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18360
|
-
unlink: attemptify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18361
|
-
chmodSync: attemptify_sync(
|
|
18362
|
-
chownSync: attemptify_sync(
|
|
18363
|
-
closeSync: attemptify_sync(
|
|
18364
|
-
existsSync: attemptify_sync(
|
|
18365
|
-
fsyncSync: attemptify_sync(
|
|
18366
|
-
mkdirSync: attemptify_sync(
|
|
18367
|
-
realpathSync: attemptify_sync(
|
|
18368
|
-
statSync: attemptify_sync(
|
|
18369
|
-
unlinkSync: attemptify_sync(
|
|
19083
|
+
chmod: attemptify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.chmod), ATTEMPTIFY_CHANGE_ERROR_OPTIONS),
|
|
19084
|
+
chown: attemptify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.chown), ATTEMPTIFY_CHANGE_ERROR_OPTIONS),
|
|
19085
|
+
close: attemptify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.close), ATTEMPTIFY_NOOP_OPTIONS),
|
|
19086
|
+
fsync: attemptify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.fsync), ATTEMPTIFY_NOOP_OPTIONS),
|
|
19087
|
+
mkdir: attemptify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.mkdir), ATTEMPTIFY_NOOP_OPTIONS),
|
|
19088
|
+
realpath: attemptify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.realpath), ATTEMPTIFY_NOOP_OPTIONS),
|
|
19089
|
+
stat: attemptify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.stat), ATTEMPTIFY_NOOP_OPTIONS),
|
|
19090
|
+
unlink: attemptify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.unlink), ATTEMPTIFY_NOOP_OPTIONS),
|
|
19091
|
+
chmodSync: attemptify_sync(external_node_fs_.chmodSync, ATTEMPTIFY_CHANGE_ERROR_OPTIONS),
|
|
19092
|
+
chownSync: attemptify_sync(external_node_fs_.chownSync, ATTEMPTIFY_CHANGE_ERROR_OPTIONS),
|
|
19093
|
+
closeSync: attemptify_sync(external_node_fs_.closeSync, ATTEMPTIFY_NOOP_OPTIONS),
|
|
19094
|
+
existsSync: attemptify_sync(external_node_fs_.existsSync, ATTEMPTIFY_NOOP_OPTIONS),
|
|
19095
|
+
fsyncSync: attemptify_sync(external_node_fs_.fsync, ATTEMPTIFY_NOOP_OPTIONS),
|
|
19096
|
+
mkdirSync: attemptify_sync(external_node_fs_.mkdirSync, ATTEMPTIFY_NOOP_OPTIONS),
|
|
19097
|
+
realpathSync: attemptify_sync(external_node_fs_.realpathSync, ATTEMPTIFY_NOOP_OPTIONS),
|
|
19098
|
+
statSync: attemptify_sync(external_node_fs_.statSync, ATTEMPTIFY_NOOP_OPTIONS),
|
|
19099
|
+
unlinkSync: attemptify_sync(external_node_fs_.unlinkSync, ATTEMPTIFY_NOOP_OPTIONS)
|
|
18370
19100
|
},
|
|
18371
19101
|
retry: {
|
|
18372
|
-
close: retryify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18373
|
-
fsync: retryify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18374
|
-
open: retryify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18375
|
-
readFile: retryify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18376
|
-
rename: retryify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18377
|
-
stat: retryify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18378
|
-
write: retryify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18379
|
-
writeFile: retryify_async((0, external_node_util_namespaceObject.promisify)(
|
|
18380
|
-
closeSync: retryify_sync(
|
|
18381
|
-
fsyncSync: retryify_sync(
|
|
18382
|
-
openSync: retryify_sync(
|
|
18383
|
-
readFileSync: retryify_sync(
|
|
18384
|
-
renameSync: retryify_sync(
|
|
18385
|
-
statSync: retryify_sync(
|
|
18386
|
-
writeSync: retryify_sync(
|
|
18387
|
-
writeFileSync: retryify_sync(
|
|
19102
|
+
close: retryify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.close), RETRYIFY_OPTIONS),
|
|
19103
|
+
fsync: retryify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.fsync), RETRYIFY_OPTIONS),
|
|
19104
|
+
open: retryify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.open), RETRYIFY_OPTIONS),
|
|
19105
|
+
readFile: retryify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.readFile), RETRYIFY_OPTIONS),
|
|
19106
|
+
rename: retryify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.rename), RETRYIFY_OPTIONS),
|
|
19107
|
+
stat: retryify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.stat), RETRYIFY_OPTIONS),
|
|
19108
|
+
write: retryify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.write), RETRYIFY_OPTIONS),
|
|
19109
|
+
writeFile: retryify_async((0, external_node_util_namespaceObject.promisify)(external_node_fs_.writeFile), RETRYIFY_OPTIONS),
|
|
19110
|
+
closeSync: retryify_sync(external_node_fs_.closeSync, RETRYIFY_OPTIONS),
|
|
19111
|
+
fsyncSync: retryify_sync(external_node_fs_.fsyncSync, RETRYIFY_OPTIONS),
|
|
19112
|
+
openSync: retryify_sync(external_node_fs_.openSync, RETRYIFY_OPTIONS),
|
|
19113
|
+
readFileSync: retryify_sync(external_node_fs_.readFileSync, RETRYIFY_OPTIONS),
|
|
19114
|
+
renameSync: retryify_sync(external_node_fs_.renameSync, RETRYIFY_OPTIONS),
|
|
19115
|
+
statSync: retryify_sync(external_node_fs_.statSync, RETRYIFY_OPTIONS),
|
|
19116
|
+
writeSync: retryify_sync(external_node_fs_.writeSync, RETRYIFY_OPTIONS),
|
|
19117
|
+
writeFileSync: retryify_sync(external_node_fs_.writeFileSync, RETRYIFY_OPTIONS)
|
|
18388
19118
|
}
|
|
18389
19119
|
};
|
|
18390
19120
|
const stubborn_fs_dist = FS;
|
|
@@ -18474,7 +19204,7 @@ var __webpack_exports__ = {};
|
|
|
18474
19204
|
for(const filePath in temp_Temp.store)temp_Temp.purgeSync(filePath);
|
|
18475
19205
|
},
|
|
18476
19206
|
truncate: (filePath)=>{
|
|
18477
|
-
const basename =
|
|
19207
|
+
const basename = external_node_path_.basename(filePath);
|
|
18478
19208
|
if (basename.length <= LIMIT_BASENAME_LENGTH) return filePath;
|
|
18479
19209
|
const truncable = /^(\.?)(.*?)((?:\.[^.]+)?(?:\.tmp-\d{10}[a-f0-9]{6})?)$/.exec(basename);
|
|
18480
19210
|
if (!truncable) return filePath;
|
|
@@ -18516,7 +19246,7 @@ var __webpack_exports__ = {};
|
|
|
18516
19246
|
}
|
|
18517
19247
|
}
|
|
18518
19248
|
if (!filePathExists) {
|
|
18519
|
-
const parentPath =
|
|
19249
|
+
const parentPath = external_node_path_.dirname(filePath);
|
|
18520
19250
|
stubborn_fs_dist.attempt.mkdirSync(parentPath, {
|
|
18521
19251
|
mode: constants_DEFAULT_FOLDER_MODE,
|
|
18522
19252
|
recursive: true
|
|
@@ -18795,7 +19525,7 @@ var __webpack_exports__ = {};
|
|
|
18795
19525
|
}
|
|
18796
19526
|
get store() {
|
|
18797
19527
|
try {
|
|
18798
|
-
const data =
|
|
19528
|
+
const data = external_node_fs_.readFileSync(this.path, this.#encryptionKey ? null : 'utf8');
|
|
18799
19529
|
const dataString = this._decryptData(data);
|
|
18800
19530
|
const deserializedData = this._deserialize(dataString);
|
|
18801
19531
|
if (!this.#isInMigration) this._validate(deserializedData);
|
|
@@ -18816,7 +19546,7 @@ var __webpack_exports__ = {};
|
|
|
18816
19546
|
set store(value) {
|
|
18817
19547
|
this._ensureDirectory();
|
|
18818
19548
|
if (!hasProperty(value, INTERNAL_KEY)) try {
|
|
18819
|
-
const data =
|
|
19549
|
+
const data = external_node_fs_.readFileSync(this.path, this.#encryptionKey ? null : 'utf8');
|
|
18820
19550
|
const dataString = this._decryptData(data);
|
|
18821
19551
|
const currentStore = this._deserialize(dataString);
|
|
18822
19552
|
if (hasProperty(currentStore, INTERNAL_KEY)) dot_prop_setProperty(value, INTERNAL_KEY, getProperty(currentStore, INTERNAL_KEY));
|
|
@@ -18837,7 +19567,7 @@ var __webpack_exports__ = {};
|
|
|
18837
19567
|
this.#watcher = void 0;
|
|
18838
19568
|
}
|
|
18839
19569
|
if (this.#watchFile) {
|
|
18840
|
-
|
|
19570
|
+
external_node_fs_.unwatchFile(this.path);
|
|
18841
19571
|
this.#watchFile = false;
|
|
18842
19572
|
}
|
|
18843
19573
|
this.#debouncedChangeHandler = void 0;
|
|
@@ -18907,7 +19637,7 @@ var __webpack_exports__ = {};
|
|
|
18907
19637
|
throw new Error('Config schema violation: ' + errors.join('; '));
|
|
18908
19638
|
}
|
|
18909
19639
|
_ensureDirectory() {
|
|
18910
|
-
|
|
19640
|
+
external_node_fs_.mkdirSync(external_node_path_.dirname(this.path), {
|
|
18911
19641
|
recursive: true
|
|
18912
19642
|
});
|
|
18913
19643
|
}
|
|
@@ -18924,7 +19654,7 @@ var __webpack_exports__ = {};
|
|
|
18924
19654
|
cipher.final()
|
|
18925
19655
|
]);
|
|
18926
19656
|
}
|
|
18927
|
-
if (external_node_process_namespaceObject.env.SNAP)
|
|
19657
|
+
if (external_node_process_namespaceObject.env.SNAP) external_node_fs_.writeFileSync(this.path, data, {
|
|
18928
19658
|
mode: this.#options.configFileMode
|
|
18929
19659
|
});
|
|
18930
19660
|
else try {
|
|
@@ -18932,7 +19662,7 @@ var __webpack_exports__ = {};
|
|
|
18932
19662
|
mode: this.#options.configFileMode
|
|
18933
19663
|
});
|
|
18934
19664
|
} catch (error) {
|
|
18935
|
-
if (error?.code === 'EXDEV') return void
|
|
19665
|
+
if (error?.code === 'EXDEV') return void external_node_fs_.writeFileSync(this.path, data, {
|
|
18936
19666
|
mode: this.#options.configFileMode
|
|
18937
19667
|
});
|
|
18938
19668
|
throw error;
|
|
@@ -18940,16 +19670,16 @@ var __webpack_exports__ = {};
|
|
|
18940
19670
|
}
|
|
18941
19671
|
_watch() {
|
|
18942
19672
|
this._ensureDirectory();
|
|
18943
|
-
if (!
|
|
19673
|
+
if (!external_node_fs_.existsSync(this.path)) this._write(createPlainObject());
|
|
18944
19674
|
if ('win32' === external_node_process_namespaceObject.platform || 'darwin' === external_node_process_namespaceObject.platform) {
|
|
18945
19675
|
this.#debouncedChangeHandler ??= debounce_fn(()=>{
|
|
18946
19676
|
this.events.dispatchEvent(new Event('change'));
|
|
18947
19677
|
}, {
|
|
18948
19678
|
wait: 100
|
|
18949
19679
|
});
|
|
18950
|
-
const directory =
|
|
18951
|
-
const basename =
|
|
18952
|
-
this.#watcher =
|
|
19680
|
+
const directory = external_node_path_.dirname(this.path);
|
|
19681
|
+
const basename = external_node_path_.basename(this.path);
|
|
19682
|
+
this.#watcher = external_node_fs_.watch(directory, {
|
|
18953
19683
|
persistent: false,
|
|
18954
19684
|
encoding: 'utf8'
|
|
18955
19685
|
}, (_eventType, filename)=>{
|
|
@@ -18962,7 +19692,7 @@ var __webpack_exports__ = {};
|
|
|
18962
19692
|
}, {
|
|
18963
19693
|
wait: 1000
|
|
18964
19694
|
});
|
|
18965
|
-
|
|
19695
|
+
external_node_fs_.watchFile(this.path, {
|
|
18966
19696
|
persistent: false
|
|
18967
19697
|
}, (_current, _previous)=>{
|
|
18968
19698
|
if ('function' == typeof this.#debouncedChangeHandler) this.#debouncedChangeHandler();
|
|
@@ -19088,7 +19818,7 @@ var __webpack_exports__ = {};
|
|
|
19088
19818
|
#resolvePath(options) {
|
|
19089
19819
|
const normalizedFileExtension = 'string' == typeof options.fileExtension ? options.fileExtension : void 0;
|
|
19090
19820
|
const fileExtension = normalizedFileExtension ? `.${normalizedFileExtension}` : '';
|
|
19091
|
-
return
|
|
19821
|
+
return external_node_path_.resolve(options.cwd, `${options.configName ?? 'config'}${fileExtension}`);
|
|
19092
19822
|
}
|
|
19093
19823
|
#initializeStore(options) {
|
|
19094
19824
|
if (options.migrations) {
|
|
@@ -19124,6 +19854,57 @@ var __webpack_exports__ = {};
|
|
|
19124
19854
|
}
|
|
19125
19855
|
}
|
|
19126
19856
|
}
|
|
19857
|
+
let Entry = null;
|
|
19858
|
+
let loadAttempted = false;
|
|
19859
|
+
function loadKeyring() {
|
|
19860
|
+
if (loadAttempted) return Entry;
|
|
19861
|
+
loadAttempted = true;
|
|
19862
|
+
try {
|
|
19863
|
+
const mod = __webpack_require__("./node_modules/.pnpm/@napi-rs+keyring@1.2.0/node_modules/@napi-rs/keyring/index.js");
|
|
19864
|
+
Entry = mod.Entry;
|
|
19865
|
+
} catch {}
|
|
19866
|
+
return Entry;
|
|
19867
|
+
}
|
|
19868
|
+
function getServiceName(url) {
|
|
19869
|
+
return `anvil-cli:${url}`;
|
|
19870
|
+
}
|
|
19871
|
+
function keychain_keychainGet(url, username) {
|
|
19872
|
+
if (isTestMode()) return null;
|
|
19873
|
+
const Ctor = loadKeyring();
|
|
19874
|
+
if (!Ctor) return null;
|
|
19875
|
+
try {
|
|
19876
|
+
const entry = new Ctor(getServiceName(url), username);
|
|
19877
|
+
const raw = entry.getPassword();
|
|
19878
|
+
const parsed = JSON.parse(raw);
|
|
19879
|
+
return {
|
|
19880
|
+
authToken: parsed.authToken ?? null,
|
|
19881
|
+
refreshToken: parsed.refreshToken ?? null
|
|
19882
|
+
};
|
|
19883
|
+
} catch {
|
|
19884
|
+
return null;
|
|
19885
|
+
}
|
|
19886
|
+
}
|
|
19887
|
+
function keychainSet(url, username, secrets) {
|
|
19888
|
+
if (isTestMode()) return false;
|
|
19889
|
+
const Ctor = loadKeyring();
|
|
19890
|
+
if (!Ctor) return false;
|
|
19891
|
+
try {
|
|
19892
|
+
const entry = new Ctor(getServiceName(url), username);
|
|
19893
|
+
entry.setPassword(JSON.stringify(secrets));
|
|
19894
|
+
return true;
|
|
19895
|
+
} catch {
|
|
19896
|
+
return false;
|
|
19897
|
+
}
|
|
19898
|
+
}
|
|
19899
|
+
function keychainDelete(url, username) {
|
|
19900
|
+
if (isTestMode()) return;
|
|
19901
|
+
const Ctor = loadKeyring();
|
|
19902
|
+
if (!Ctor) return;
|
|
19903
|
+
try {
|
|
19904
|
+
const entry = new Ctor(getServiceName(url), username);
|
|
19905
|
+
entry.deletePassword();
|
|
19906
|
+
} catch {}
|
|
19907
|
+
}
|
|
19127
19908
|
const EMPTY_TOKENS = {
|
|
19128
19909
|
authToken: null,
|
|
19129
19910
|
refreshToken: null,
|
|
@@ -19157,17 +19938,30 @@ var __webpack_exports__ = {};
|
|
|
19157
19938
|
const normalized = config_normalizeAnvilUrl(url);
|
|
19158
19939
|
return store[normalized];
|
|
19159
19940
|
}
|
|
19941
|
+
function token_store_getAccountTokens(url, username) {
|
|
19942
|
+
const urlTokens = getUrlTokens(url);
|
|
19943
|
+
if (!urlTokens || !urlTokens[username]) return {
|
|
19944
|
+
...EMPTY_TOKENS
|
|
19945
|
+
};
|
|
19946
|
+
const configTokens = urlTokens[username];
|
|
19947
|
+
if (!configTokens.authToken && !configTokens.refreshToken) {
|
|
19948
|
+
const secrets = keychain_keychainGet(config_normalizeAnvilUrl(url), username);
|
|
19949
|
+
if (secrets) return {
|
|
19950
|
+
...configTokens,
|
|
19951
|
+
...secrets
|
|
19952
|
+
};
|
|
19953
|
+
}
|
|
19954
|
+
return configTokens;
|
|
19955
|
+
}
|
|
19160
19956
|
function token_store_getTokensAutoSelect(url, username) {
|
|
19161
19957
|
const normalized = config_normalizeAnvilUrl(url);
|
|
19958
|
+
if (username) return token_store_getAccountTokens(normalized, username);
|
|
19162
19959
|
const urlTokens = getUrlTokens(normalized);
|
|
19163
19960
|
if (!urlTokens) return {
|
|
19164
19961
|
...EMPTY_TOKENS
|
|
19165
19962
|
};
|
|
19166
|
-
if (username) return urlTokens[username] ?? {
|
|
19167
|
-
...EMPTY_TOKENS
|
|
19168
|
-
};
|
|
19169
19963
|
const accounts = Object.keys(urlTokens);
|
|
19170
|
-
if (1 === accounts.length) return
|
|
19964
|
+
if (1 === accounts.length) return token_store_getAccountTokens(normalized, accounts[0]);
|
|
19171
19965
|
return {
|
|
19172
19966
|
...EMPTY_TOKENS
|
|
19173
19967
|
};
|
|
@@ -19176,11 +19970,21 @@ var __webpack_exports__ = {};
|
|
|
19176
19970
|
const normalized = config_normalizeAnvilUrl(url);
|
|
19177
19971
|
const store = getTokenStore();
|
|
19178
19972
|
if (!store[normalized]) store[normalized] = {};
|
|
19179
|
-
|
|
19973
|
+
const keychainOk = keychainSet(normalized, username, {
|
|
19974
|
+
authToken: tokens.authToken,
|
|
19975
|
+
refreshToken: tokens.refreshToken
|
|
19976
|
+
});
|
|
19977
|
+
if (keychainOk) store[normalized][username] = {
|
|
19978
|
+
authToken: null,
|
|
19979
|
+
refreshToken: null,
|
|
19980
|
+
authTokenExpiresAt: tokens.authTokenExpiresAt
|
|
19981
|
+
};
|
|
19982
|
+
else store[normalized][username] = tokens;
|
|
19180
19983
|
setTokenStore(store);
|
|
19181
19984
|
}
|
|
19182
19985
|
function deleteAccountTokens(url, username) {
|
|
19183
19986
|
const normalized = config_normalizeAnvilUrl(url);
|
|
19987
|
+
keychainDelete(normalized, username);
|
|
19184
19988
|
const store = getTokenStore();
|
|
19185
19989
|
if (!store[normalized] || !store[normalized][username]) return false;
|
|
19186
19990
|
delete store[normalized][username];
|
|
@@ -19192,14 +19996,22 @@ var __webpack_exports__ = {};
|
|
|
19192
19996
|
const normalized = config_normalizeAnvilUrl(url);
|
|
19193
19997
|
const store = getTokenStore();
|
|
19194
19998
|
if (!store[normalized]) return false;
|
|
19999
|
+
for (const username of Object.keys(store[normalized]))keychainDelete(normalized, username);
|
|
19195
20000
|
delete store[normalized];
|
|
19196
20001
|
setTokenStore(store);
|
|
19197
20002
|
return true;
|
|
19198
20003
|
}
|
|
19199
20004
|
function findAccountByRefreshToken(url, refreshToken) {
|
|
19200
|
-
const
|
|
20005
|
+
const normalized = config_normalizeAnvilUrl(url);
|
|
20006
|
+
const urlTokens = getUrlTokens(normalized);
|
|
19201
20007
|
if (!urlTokens) return;
|
|
19202
|
-
for (const [username, tokens] of Object.entries(urlTokens))
|
|
20008
|
+
for (const [username, tokens] of Object.entries(urlTokens)){
|
|
20009
|
+
if (tokens.refreshToken === refreshToken) return username;
|
|
20010
|
+
if (!tokens.refreshToken) {
|
|
20011
|
+
const secrets = keychain_keychainGet(normalized, username);
|
|
20012
|
+
if (secrets?.refreshToken === refreshToken) return username;
|
|
20013
|
+
}
|
|
20014
|
+
}
|
|
19203
20015
|
}
|
|
19204
20016
|
function token_store_hasTokens(url, username) {
|
|
19205
20017
|
const normalized = config_normalizeAnvilUrl(url);
|
|
@@ -19207,11 +20019,18 @@ var __webpack_exports__ = {};
|
|
|
19207
20019
|
if (!urlTokens) return false;
|
|
19208
20020
|
if (username) {
|
|
19209
20021
|
const tokens = urlTokens[username];
|
|
19210
|
-
|
|
20022
|
+
if (!tokens) return false;
|
|
20023
|
+
if (tokens.authToken || tokens.refreshToken) return true;
|
|
20024
|
+
return null !== keychain_keychainGet(normalized, username);
|
|
19211
20025
|
}
|
|
19212
|
-
return Object.
|
|
20026
|
+
return Object.entries(urlTokens).some(([uname, tokens])=>{
|
|
20027
|
+
if (tokens.authToken || tokens.refreshToken) return true;
|
|
20028
|
+
return null !== keychain_keychainGet(normalized, uname);
|
|
20029
|
+
});
|
|
19213
20030
|
}
|
|
19214
20031
|
function clearAllTokens() {
|
|
20032
|
+
const store = getTokenStore();
|
|
20033
|
+
for (const [url, urlTokens] of Object.entries(store))for (const username of Object.keys(urlTokens))keychainDelete(url, username);
|
|
19215
20034
|
setTokenStore({});
|
|
19216
20035
|
}
|
|
19217
20036
|
const configDefaults = {
|
|
@@ -20081,7 +20900,7 @@ var __webpack_exports__ = {};
|
|
|
20081
20900
|
this._wantsDir = type ? DIR_TYPES.has(type) : false;
|
|
20082
20901
|
this._wantsFile = type ? FILE_TYPES.has(type) : false;
|
|
20083
20902
|
this._wantsEverything = type === EntryTypes.EVERYTHING_TYPE;
|
|
20084
|
-
this._root = (0,
|
|
20903
|
+
this._root = (0, external_node_path_.resolve)(root);
|
|
20085
20904
|
this._isDirent = !opts.alwaysStat;
|
|
20086
20905
|
this._statsProp = this._isDirent ? 'dirent' : 'stats';
|
|
20087
20906
|
this._rdOptions = {
|
|
@@ -20155,9 +20974,9 @@ var __webpack_exports__ = {};
|
|
|
20155
20974
|
let entry;
|
|
20156
20975
|
const basename = this._isDirent ? dirent.name : dirent;
|
|
20157
20976
|
try {
|
|
20158
|
-
const fullPath = (0,
|
|
20977
|
+
const fullPath = (0, external_node_path_.resolve)((0, external_node_path_.join)(path, basename));
|
|
20159
20978
|
entry = {
|
|
20160
|
-
path: (0,
|
|
20979
|
+
path: (0, external_node_path_.relative)(this._root, fullPath),
|
|
20161
20980
|
fullPath,
|
|
20162
20981
|
basename
|
|
20163
20982
|
};
|
|
@@ -20185,7 +21004,7 @@ var __webpack_exports__ = {};
|
|
|
20185
21004
|
if (entryRealPathStats.isFile()) return 'file';
|
|
20186
21005
|
if (entryRealPathStats.isDirectory()) {
|
|
20187
21006
|
const len = entryRealPath.length;
|
|
20188
|
-
if (full.startsWith(entryRealPath) && full.substr(len, 1) ===
|
|
21007
|
+
if (full.startsWith(entryRealPath) && full.substr(len, 1) === external_node_path_.sep) {
|
|
20189
21008
|
const recursiveError = new Error(`Circular symlink detected: "${full}" points to "${entryRealPath}"`);
|
|
20190
21009
|
recursiveError.code = RECURSIVE_ERROR_CODE;
|
|
20191
21010
|
return this._onError(recursiveError);
|
|
@@ -21876,8 +22695,8 @@ var __webpack_exports__ = {};
|
|
|
21876
22695
|
logger_logger.debug(`[WebSocket ${this.sessionId}]`, `Closed: code=${code}, reason=${reason.toString()}`);
|
|
21877
22696
|
this.ws = null;
|
|
21878
22697
|
if (1008 === code || reason.toString().includes("unauthenticated")) {
|
|
21879
|
-
logger_logger.warn(chalk_source.yellow(" WebSocket authentication failed -
|
|
21880
|
-
logger_logger.verbose(chalk_source.gray("
|
|
22698
|
+
logger_logger.warn(chalk_source.yellow(" WebSocket authentication failed - changes from the Anvil Editor won't be detected"));
|
|
22699
|
+
logger_logger.verbose(chalk_source.gray(" Local changes will still sync to Anvil, but editor changes won't appear locally"));
|
|
21881
22700
|
this.emit("auth-failed", void 0);
|
|
21882
22701
|
return;
|
|
21883
22702
|
}
|
|
@@ -21895,7 +22714,7 @@ var __webpack_exports__ = {};
|
|
|
21895
22714
|
});
|
|
21896
22715
|
});
|
|
21897
22716
|
}, this.RECONNECT_DELAY);
|
|
21898
|
-
} else logger_logger.warn(chalk_source.yellow(` WebSocket reconnection failed after ${this.MAX_RECONNECT_ATTEMPTS} attempts
|
|
22717
|
+
} else logger_logger.warn(chalk_source.yellow(` WebSocket reconnection failed after ${this.MAX_RECONNECT_ATTEMPTS} attempts - changes from the Anvil Editor won't be detected`));
|
|
21899
22718
|
});
|
|
21900
22719
|
this.ws.on("error", (error)=>{
|
|
21901
22720
|
logger_logger.debug(`[WebSocket ${this.sessionId}]`, `Error: ${error.message}`);
|
|
@@ -24219,8 +25038,8 @@ var __webpack_exports__ = {};
|
|
|
24219
25038
|
try {
|
|
24220
25039
|
await this.connectWebSocket();
|
|
24221
25040
|
} catch (error) {
|
|
24222
|
-
logger_logger.warn(chalk_source.yellow(" WebSocket connection unavailable -
|
|
24223
|
-
logger_logger.verbose(chalk_source.gray("
|
|
25041
|
+
logger_logger.warn(chalk_source.yellow(" WebSocket connection unavailable - changes from the Anvil Editor won't be detected"));
|
|
25042
|
+
logger_logger.verbose(chalk_source.gray(" Local changes will still sync to Anvil, but editor changes won't appear locally"));
|
|
24224
25043
|
logger_logger.debug("WebSocket init error:", error.message);
|
|
24225
25044
|
}
|
|
24226
25045
|
}
|