@intelligentgraphics/ig.gfx.packager 3.0.21 → 3.1.0-alpha.1
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/build/bin.mjs +1 -1
- package/build/{cli-91fabb36.mjs → cli-fec9c069.mjs} +89 -115
- package/build/cli-fec9c069.mjs.map +1 -0
- package/build/{dependencies-7711a9db.mjs → dependencies-d870016d.mjs} +2 -2
- package/build/{dependencies-7711a9db.mjs.map → dependencies-d870016d.mjs.map} +1 -1
- package/build/{generateIndex-47c082d0.mjs → generateIndex-dd0b4563.mjs} +3 -3
- package/build/{generateIndex-47c082d0.mjs.map → generateIndex-dd0b4563.mjs.map} +1 -1
- package/build/{generateParameterType-10d124a6.mjs → generateParameterType-9a671e36.mjs} +4 -4
- package/build/{generateParameterType-10d124a6.mjs.map → generateParameterType-9a671e36.mjs.map} +1 -1
- package/build/{index-e6ead55c.mjs → index-0caf1a6e.mjs} +16 -11
- package/build/index-0caf1a6e.mjs.map +1 -0
- package/build/{index-ca04836f.mjs → index-7fa42d48.mjs} +19 -18
- package/build/index-7fa42d48.mjs.map +1 -0
- package/build/{postinstall-0ea76778.mjs → postinstall-81b6f0b0.mjs} +3 -3
- package/build/{postinstall-0ea76778.mjs.map → postinstall-81b6f0b0.mjs.map} +1 -1
- package/build/{publishNpm-aadd7dc2.mjs → publishNpm-c985bd6e.mjs} +9 -5
- package/build/publishNpm-c985bd6e.mjs.map +1 -0
- package/build/scripts-7ed8dff6.mjs.map +1 -1
- package/build/swc-9ed0f3ce.mjs +60 -0
- package/build/swc-9ed0f3ce.mjs.map +1 -0
- package/build/{versionFile-ad981e93.mjs → versionFile-cbfd3f4a.mjs} +6 -10
- package/build/{versionFile-ad981e93.mjs.map → versionFile-cbfd3f4a.mjs.map} +1 -1
- package/lib/lib.mjs +18 -2520
- package/package.json +8 -8
- package/readme.md +10 -0
- package/build/cli-91fabb36.mjs.map +0 -1
- package/build/index-ca04836f.mjs.map +0 -1
- package/build/index-e6ead55c.mjs.map +0 -1
- package/build/publishNpm-aadd7dc2.mjs.map +0 -1
package/build/bin.mjs
CHANGED
|
@@ -138,7 +138,7 @@ const readPackageCreatorManifest = (location)=>{
|
|
|
138
138
|
};
|
|
139
139
|
const writePackageCreatorManifest = (location, creatorPackage)=>{
|
|
140
140
|
const packageJsonPath = path$1.join(location.manifestDir, PACKAGE_FILE);
|
|
141
|
-
fs$1.writeFileSync(packageJsonPath, JSON.stringify(creatorPackage, null, "
|
|
141
|
+
fs$1.writeFileSync(packageJsonPath, JSON.stringify(creatorPackage, null, " ") + "\n");
|
|
142
142
|
};
|
|
143
143
|
const getPackageCreatorIndexPath = (location)=>path$1.join(location.manifestDir, INDEX_FILE);
|
|
144
144
|
const readPackageCreatorIndex = (location)=>{
|
|
@@ -157,7 +157,7 @@ const readPackageCreatorIndex = (location)=>{
|
|
|
157
157
|
};
|
|
158
158
|
const writePackageCreatorIndex = (location, index)=>{
|
|
159
159
|
const indexPath = getPackageCreatorIndexPath(location);
|
|
160
|
-
fs$1.writeFileSync(indexPath, JSON.stringify(index, null, "
|
|
160
|
+
fs$1.writeFileSync(indexPath, JSON.stringify(index, null, " ") + "\n");
|
|
161
161
|
};
|
|
162
162
|
const readPackageNpmManifest = (location)=>{
|
|
163
163
|
try {
|
|
@@ -220,25 +220,11 @@ function* iterateWorkspacePackages(workspace) {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
var
|
|
224
|
-
var writeFileAtomic = {
|
|
225
|
-
get exports () {
|
|
226
|
-
return writeFileAtomicExports;
|
|
227
|
-
},
|
|
228
|
-
set exports (v){
|
|
229
|
-
writeFileAtomicExports = v;
|
|
230
|
-
}
|
|
231
|
-
};
|
|
223
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
232
224
|
|
|
233
|
-
var
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
return imurmurhashExports;
|
|
237
|
-
},
|
|
238
|
-
set exports (v){
|
|
239
|
-
imurmurhashExports = v;
|
|
240
|
-
}
|
|
241
|
-
};
|
|
225
|
+
var writeFileAtomic = {exports: {}};
|
|
226
|
+
|
|
227
|
+
var imurmurhash = {exports: {}};
|
|
242
228
|
|
|
243
229
|
(function(module) {
|
|
244
230
|
(function() {
|
|
@@ -252,7 +238,7 @@ var imurmurhash = {
|
|
|
252
238
|
function MurmurHash3(key, seed) {
|
|
253
239
|
var m = this instanceof MurmurHash3 ? this : cache;
|
|
254
240
|
m.reset(seed);
|
|
255
|
-
if (typeof key ===
|
|
241
|
+
if (typeof key === "string" && key.length > 0) {
|
|
256
242
|
m.hash(key);
|
|
257
243
|
}
|
|
258
244
|
if (m !== this) {
|
|
@@ -337,7 +323,7 @@ var imurmurhash = {
|
|
|
337
323
|
//
|
|
338
324
|
// @param {number} seed An optional positive integer
|
|
339
325
|
MurmurHash3.prototype.reset = function(seed) {
|
|
340
|
-
this.h1 = typeof seed ===
|
|
326
|
+
this.h1 = typeof seed === "number" ? seed : 0;
|
|
341
327
|
this.rem = this.k1 = this.len = 0;
|
|
342
328
|
return this;
|
|
343
329
|
};
|
|
@@ -349,32 +335,15 @@ var imurmurhash = {
|
|
|
349
335
|
}
|
|
350
336
|
})();
|
|
351
337
|
})(imurmurhash);
|
|
338
|
+
var imurmurhashExports = imurmurhash.exports;
|
|
352
339
|
|
|
353
|
-
var
|
|
340
|
+
var signalExit = {exports: {}};
|
|
354
341
|
|
|
355
|
-
var
|
|
356
|
-
var signalExit = {
|
|
357
|
-
get exports () {
|
|
358
|
-
return signalExitExports;
|
|
359
|
-
},
|
|
360
|
-
set exports (v){
|
|
361
|
-
signalExitExports = v;
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
var signalsExports = {};
|
|
366
|
-
var signals$1 = {
|
|
367
|
-
get exports () {
|
|
368
|
-
return signalsExports;
|
|
369
|
-
},
|
|
370
|
-
set exports (v){
|
|
371
|
-
signalsExports = v;
|
|
372
|
-
}
|
|
373
|
-
};
|
|
342
|
+
var signals$1 = {exports: {}};
|
|
374
343
|
|
|
375
344
|
var hasRequiredSignals;
|
|
376
345
|
function requireSignals() {
|
|
377
|
-
if (hasRequiredSignals) return
|
|
346
|
+
if (hasRequiredSignals) return signals$1.exports;
|
|
378
347
|
hasRequiredSignals = 1;
|
|
379
348
|
(function(module) {
|
|
380
349
|
// This is not the set of all possible signals.
|
|
@@ -398,20 +367,20 @@ function requireSignals() {
|
|
|
398
367
|
// state from which it is not safe to try and enter JS
|
|
399
368
|
// listeners.
|
|
400
369
|
module.exports = [
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
370
|
+
"SIGABRT",
|
|
371
|
+
"SIGALRM",
|
|
372
|
+
"SIGHUP",
|
|
373
|
+
"SIGINT",
|
|
374
|
+
"SIGTERM"
|
|
406
375
|
];
|
|
407
|
-
if (process.platform !==
|
|
408
|
-
module.exports.push(
|
|
376
|
+
if (process.platform !== "win32") {
|
|
377
|
+
module.exports.push("SIGVTALRM", "SIGXCPU", "SIGXFSZ", "SIGUSR2", "SIGTRAP", "SIGSYS", "SIGQUIT", "SIGIOT");
|
|
409
378
|
}
|
|
410
|
-
if (process.platform ===
|
|
411
|
-
module.exports.push(
|
|
379
|
+
if (process.platform === "linux") {
|
|
380
|
+
module.exports.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT", "SIGUNUSED");
|
|
412
381
|
}
|
|
413
382
|
})(signals$1);
|
|
414
|
-
return
|
|
383
|
+
return signals$1.exports;
|
|
415
384
|
}
|
|
416
385
|
|
|
417
386
|
// Note: since nyc uses this module to output coverage, any lines
|
|
@@ -420,7 +389,7 @@ function requireSignals() {
|
|
|
420
389
|
// grab a reference to node's real process object right away
|
|
421
390
|
var process$1 = commonjsGlobal.process;
|
|
422
391
|
const processOk = function(process) {
|
|
423
|
-
return process && typeof process ===
|
|
392
|
+
return process && typeof process === "object" && typeof process.removeListener === "function" && typeof process.emit === "function" && typeof process.reallyExit === "function" && typeof process.listeners === "function" && typeof process.kill === "function" && typeof process.pid === "number" && typeof process.on === "function";
|
|
424
393
|
};
|
|
425
394
|
// some kind of non-node environment, just no-op
|
|
426
395
|
/* istanbul ignore if */ if (!processOk(process$1)) {
|
|
@@ -432,7 +401,7 @@ const processOk = function(process) {
|
|
|
432
401
|
var signals = requireSignals();
|
|
433
402
|
var isWin = /^win/i.test(process$1.platform);
|
|
434
403
|
var EE = require$$2;
|
|
435
|
-
/* istanbul ignore if */ if (typeof EE !==
|
|
404
|
+
/* istanbul ignore if */ if (typeof EE !== "function") {
|
|
436
405
|
EE = EE.EventEmitter;
|
|
437
406
|
}
|
|
438
407
|
var emitter;
|
|
@@ -455,17 +424,17 @@ const processOk = function(process) {
|
|
|
455
424
|
/* istanbul ignore if */ if (!processOk(commonjsGlobal.process)) {
|
|
456
425
|
return function() {};
|
|
457
426
|
}
|
|
458
|
-
assert.equal(typeof cb,
|
|
427
|
+
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
459
428
|
if (loaded === false) {
|
|
460
429
|
load();
|
|
461
430
|
}
|
|
462
|
-
var ev =
|
|
431
|
+
var ev = "exit";
|
|
463
432
|
if (opts && opts.alwaysLast) {
|
|
464
|
-
ev =
|
|
433
|
+
ev = "afterexit";
|
|
465
434
|
}
|
|
466
435
|
var remove = function() {
|
|
467
436
|
emitter.removeListener(ev, cb);
|
|
468
|
-
if (emitter.listeners(
|
|
437
|
+
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
469
438
|
unload();
|
|
470
439
|
}
|
|
471
440
|
};
|
|
@@ -486,7 +455,7 @@ const processOk = function(process) {
|
|
|
486
455
|
process$1.reallyExit = originalProcessReallyExit;
|
|
487
456
|
emitter.count -= 1;
|
|
488
457
|
};
|
|
489
|
-
|
|
458
|
+
signalExit.exports.unload = unload;
|
|
490
459
|
var emit = function emit(event, code, signal) {
|
|
491
460
|
/* istanbul ignore if */ if (emitter.emitted[event]) {
|
|
492
461
|
return;
|
|
@@ -508,18 +477,18 @@ const processOk = function(process) {
|
|
|
508
477
|
var listeners = process$1.listeners(sig);
|
|
509
478
|
if (listeners.length === emitter.count) {
|
|
510
479
|
unload();
|
|
511
|
-
emit(
|
|
512
|
-
/* istanbul ignore next */ emit(
|
|
513
|
-
/* istanbul ignore next */ if (isWin && sig ===
|
|
480
|
+
emit("exit", null, sig);
|
|
481
|
+
/* istanbul ignore next */ emit("afterexit", null, sig);
|
|
482
|
+
/* istanbul ignore next */ if (isWin && sig === "SIGHUP") {
|
|
514
483
|
// "SIGHUP" throws an `ENOSYS` error on Windows,
|
|
515
484
|
// so use a supported signal instead
|
|
516
|
-
sig =
|
|
485
|
+
sig = "SIGINT";
|
|
517
486
|
}
|
|
518
487
|
/* istanbul ignore next */ process$1.kill(process$1.pid, sig);
|
|
519
488
|
}
|
|
520
489
|
};
|
|
521
490
|
});
|
|
522
|
-
|
|
491
|
+
signalExit.exports.signals = function() {
|
|
523
492
|
return signals;
|
|
524
493
|
};
|
|
525
494
|
var loaded = false;
|
|
@@ -544,47 +513,48 @@ const processOk = function(process) {
|
|
|
544
513
|
process$1.emit = processEmit;
|
|
545
514
|
process$1.reallyExit = processReallyExit;
|
|
546
515
|
};
|
|
547
|
-
|
|
516
|
+
signalExit.exports.load = load;
|
|
548
517
|
var originalProcessReallyExit = process$1.reallyExit;
|
|
549
518
|
var processReallyExit = function processReallyExit(code) {
|
|
550
519
|
/* istanbul ignore if */ if (!processOk(commonjsGlobal.process)) {
|
|
551
520
|
return;
|
|
552
521
|
}
|
|
553
522
|
process$1.exitCode = code || /* istanbul ignore next */ 0;
|
|
554
|
-
emit(
|
|
555
|
-
/* istanbul ignore next */ emit(
|
|
523
|
+
emit("exit", process$1.exitCode, null);
|
|
524
|
+
/* istanbul ignore next */ emit("afterexit", process$1.exitCode, null);
|
|
556
525
|
/* istanbul ignore next */ originalProcessReallyExit.call(process$1, process$1.exitCode);
|
|
557
526
|
};
|
|
558
527
|
var originalProcessEmit = process$1.emit;
|
|
559
528
|
var processEmit = function processEmit(ev, arg) {
|
|
560
|
-
if (ev ===
|
|
529
|
+
if (ev === "exit" && processOk(commonjsGlobal.process)) {
|
|
561
530
|
/* istanbul ignore else */ if (arg !== undefined) {
|
|
562
531
|
process$1.exitCode = arg;
|
|
563
532
|
}
|
|
564
533
|
var ret = originalProcessEmit.apply(this, arguments);
|
|
565
|
-
/* istanbul ignore next */ emit(
|
|
566
|
-
/* istanbul ignore next */ emit(
|
|
534
|
+
/* istanbul ignore next */ emit("exit", process$1.exitCode, null);
|
|
535
|
+
/* istanbul ignore next */ emit("afterexit", process$1.exitCode, null);
|
|
567
536
|
/* istanbul ignore next */ return ret;
|
|
568
537
|
} else {
|
|
569
538
|
return originalProcessEmit.apply(this, arguments);
|
|
570
539
|
}
|
|
571
540
|
};
|
|
572
541
|
}
|
|
542
|
+
var signalExitExports = signalExit.exports;
|
|
573
543
|
|
|
574
544
|
var isTypedarray = isTypedArray$2;
|
|
575
545
|
isTypedArray$2.strict = isStrictTypedArray;
|
|
576
546
|
isTypedArray$2.loose = isLooseTypedArray;
|
|
577
547
|
var toString = Object.prototype.toString;
|
|
578
548
|
var names = {
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
549
|
+
"[object Int8Array]": true,
|
|
550
|
+
"[object Int16Array]": true,
|
|
551
|
+
"[object Int32Array]": true,
|
|
552
|
+
"[object Uint8Array]": true,
|
|
553
|
+
"[object Uint8ClampedArray]": true,
|
|
554
|
+
"[object Uint16Array]": true,
|
|
555
|
+
"[object Uint32Array]": true,
|
|
556
|
+
"[object Float32Array]": true,
|
|
557
|
+
"[object Float64Array]": true
|
|
588
558
|
};
|
|
589
559
|
function isTypedArray$2(arr) {
|
|
590
560
|
return isStrictTypedArray(arr) || isLooseTypedArray(arr);
|
|
@@ -613,22 +583,22 @@ var typedarrayToBuffer = function typedarrayToBuffer(arr) {
|
|
|
613
583
|
};
|
|
614
584
|
|
|
615
585
|
writeFileAtomic.exports = writeFile;
|
|
616
|
-
|
|
617
|
-
|
|
586
|
+
writeFileAtomic.exports.sync = writeFileSync;
|
|
587
|
+
writeFileAtomic.exports._getTmpname = getTmpname // for testing
|
|
618
588
|
;
|
|
619
|
-
|
|
589
|
+
writeFileAtomic.exports._cleanupOnExit = cleanupOnExit;
|
|
620
590
|
const fs = fs__default;
|
|
621
591
|
const MurmurHash3 = imurmurhashExports;
|
|
622
592
|
const onExit = signalExitExports;
|
|
623
593
|
const path = path__default;
|
|
624
594
|
const isTypedArray = isTypedarray;
|
|
625
595
|
const typedArrayToBuffer = typedarrayToBuffer;
|
|
626
|
-
const { promisify
|
|
596
|
+
const { promisify } = require$$6;
|
|
627
597
|
const activeFiles = {};
|
|
628
598
|
// if we run inside of a worker_thread, `process.pid` is not unique
|
|
629
599
|
/* istanbul ignore next */ const threadId = function getId() {
|
|
630
600
|
try {
|
|
631
|
-
const workerThreads = require(
|
|
601
|
+
const workerThreads = require("worker_threads");
|
|
632
602
|
/// if we are in main thread, this is set to `0`
|
|
633
603
|
return workerThreads.threadId;
|
|
634
604
|
} catch (e) {
|
|
@@ -638,12 +608,12 @@ const activeFiles = {};
|
|
|
638
608
|
}();
|
|
639
609
|
let invocations = 0;
|
|
640
610
|
function getTmpname(filename) {
|
|
641
|
-
return filename +
|
|
611
|
+
return filename + "." + MurmurHash3(__filename).hash(String(process.pid)).hash(String(threadId)).hash(String(++invocations)).result();
|
|
642
612
|
}
|
|
643
613
|
function cleanupOnExit(tmpfile) {
|
|
644
614
|
return ()=>{
|
|
645
615
|
try {
|
|
646
|
-
fs.unlinkSync(typeof tmpfile ===
|
|
616
|
+
fs.unlinkSync(typeof tmpfile === "function" ? tmpfile() : tmpfile);
|
|
647
617
|
} catch (_) {}
|
|
648
618
|
};
|
|
649
619
|
}
|
|
@@ -659,19 +629,19 @@ function serializeActiveFile(absoluteName) {
|
|
|
659
629
|
}
|
|
660
630
|
// https://github.com/isaacs/node-graceful-fs/blob/master/polyfills.js#L315-L342
|
|
661
631
|
function isChownErrOk(err) {
|
|
662
|
-
if (err.code ===
|
|
632
|
+
if (err.code === "ENOSYS") {
|
|
663
633
|
return true;
|
|
664
634
|
}
|
|
665
635
|
const nonroot = !process.getuid || process.getuid() !== 0;
|
|
666
636
|
if (nonroot) {
|
|
667
|
-
if (err.code ===
|
|
637
|
+
if (err.code === "EINVAL" || err.code === "EPERM") {
|
|
668
638
|
return true;
|
|
669
639
|
}
|
|
670
640
|
}
|
|
671
641
|
return false;
|
|
672
642
|
}
|
|
673
643
|
async function writeFileAsync(filename, data, options = {}) {
|
|
674
|
-
if (typeof options ===
|
|
644
|
+
if (typeof options === "string") {
|
|
675
645
|
options = {
|
|
676
646
|
encoding: options
|
|
677
647
|
};
|
|
@@ -700,7 +670,7 @@ async function writeFileAsync(filename, data, options = {}) {
|
|
|
700
670
|
}
|
|
701
671
|
}
|
|
702
672
|
}
|
|
703
|
-
fd = await promisify(fs.open)(tmpfile,
|
|
673
|
+
fd = await promisify(fs.open)(tmpfile, "w", options.mode);
|
|
704
674
|
if (options.tmpfileCreated) {
|
|
705
675
|
await options.tmpfileCreated(tmpfile);
|
|
706
676
|
}
|
|
@@ -710,7 +680,7 @@ async function writeFileAsync(filename, data, options = {}) {
|
|
|
710
680
|
if (Buffer.isBuffer(data)) {
|
|
711
681
|
await promisify(fs.write)(fd, data, 0, data.length, 0);
|
|
712
682
|
} else if (data != null) {
|
|
713
|
-
await promisify(fs.write)(fd, String(data), 0, String(options.encoding ||
|
|
683
|
+
await promisify(fs.write)(fd, String(data), 0, String(options.encoding || "utf8"));
|
|
714
684
|
}
|
|
715
685
|
if (options.fsync !== false) {
|
|
716
686
|
await promisify(fs.fsync)(fd);
|
|
@@ -758,7 +728,7 @@ function writeFile(filename, data, options, callback) {
|
|
|
758
728
|
return promise;
|
|
759
729
|
}
|
|
760
730
|
function writeFileSync(filename, data, options) {
|
|
761
|
-
if (typeof options ===
|
|
731
|
+
if (typeof options === "string") options = {
|
|
762
732
|
encoding: options
|
|
763
733
|
};
|
|
764
734
|
else if (!options) options = {};
|
|
@@ -792,7 +762,7 @@ function writeFileSync(filename, data, options) {
|
|
|
792
762
|
const removeOnExitHandler = onExit(cleanup);
|
|
793
763
|
let threw = true;
|
|
794
764
|
try {
|
|
795
|
-
fd = fs.openSync(tmpfile,
|
|
765
|
+
fd = fs.openSync(tmpfile, "w", options.mode || 438);
|
|
796
766
|
if (options.tmpfileCreated) {
|
|
797
767
|
options.tmpfileCreated(tmpfile);
|
|
798
768
|
}
|
|
@@ -802,7 +772,7 @@ function writeFileSync(filename, data, options) {
|
|
|
802
772
|
if (Buffer.isBuffer(data)) {
|
|
803
773
|
fs.writeSync(fd, data, 0, data.length, 0);
|
|
804
774
|
} else if (data != null) {
|
|
805
|
-
fs.writeSync(fd, String(data), 0, String(options.encoding ||
|
|
775
|
+
fs.writeSync(fd, String(data), 0, String(options.encoding || "utf8"));
|
|
806
776
|
}
|
|
807
777
|
if (options.fsync !== false) {
|
|
808
778
|
fs.fsyncSync(fd);
|
|
@@ -850,7 +820,7 @@ const PLUGIN_ID = "0feba3a0-b6d1-11e6-9598-0800200c9a66";
|
|
|
850
820
|
*
|
|
851
821
|
* @param {SessionStartParams} params
|
|
852
822
|
* @returns
|
|
853
|
-
*/ const startSession = async ({ url
|
|
823
|
+
*/ const startSession = async ({ url, authentication, ...params })=>{
|
|
854
824
|
const payload = {
|
|
855
825
|
...params,
|
|
856
826
|
user: undefined,
|
|
@@ -864,7 +834,7 @@ const PLUGIN_ID = "0feba3a0-b6d1-11e6-9598-0800200c9a66";
|
|
|
864
834
|
} else if (authentication.type === "license") {
|
|
865
835
|
payload.license = authentication.license;
|
|
866
836
|
}
|
|
867
|
-
const { data: { session: sessionId
|
|
837
|
+
const { data: { session: sessionId, state, response } } = await axios.post(`Session/Start2`, JSON.stringify(payload), {
|
|
868
838
|
baseURL: url
|
|
869
839
|
});
|
|
870
840
|
if (state !== "SUCCESS") {
|
|
@@ -887,11 +857,11 @@ const closeSession = async (session)=>{
|
|
|
887
857
|
baseURL: session.url
|
|
888
858
|
});
|
|
889
859
|
};
|
|
890
|
-
const uploadPackageFromStream = async (session, { name
|
|
860
|
+
const uploadPackageFromStream = async (session, { name, version }, stream)=>{
|
|
891
861
|
await uploadPackageToUrl(session.url, `UploadPackage/${session.sessionId}/${name}_${version}/`, stream);
|
|
892
862
|
};
|
|
893
863
|
const uploadPackageToUrl = async (url, path, stream)=>{
|
|
894
|
-
const { data
|
|
864
|
+
const { data, status } = await axios.post(path, stream, {
|
|
895
865
|
baseURL: url
|
|
896
866
|
});
|
|
897
867
|
let objectBody;
|
|
@@ -926,7 +896,7 @@ const uploadPackageToUrl = async (url, path, stream)=>{
|
|
|
926
896
|
return data;
|
|
927
897
|
};
|
|
928
898
|
const getExistingPackages = async (session)=>{
|
|
929
|
-
const { data
|
|
899
|
+
const { data } = await axios.get(`Script/GetInformation/${session.sessionId}`, {
|
|
930
900
|
baseURL: session.url,
|
|
931
901
|
validateStatus: (status)=>status === 404 || status === 200
|
|
932
902
|
}).catch((err)=>{
|
|
@@ -938,7 +908,7 @@ const getExistingPackages = async (session)=>{
|
|
|
938
908
|
const createDefaultPrompter = ()=>{
|
|
939
909
|
return {
|
|
940
910
|
confirm: async (message)=>{
|
|
941
|
-
const { confirm
|
|
911
|
+
const { confirm } = await inquirer.prompt([
|
|
942
912
|
{
|
|
943
913
|
type: "confirm",
|
|
944
914
|
message,
|
|
@@ -948,7 +918,7 @@ const createDefaultPrompter = ()=>{
|
|
|
948
918
|
return confirm;
|
|
949
919
|
},
|
|
950
920
|
ask: async (question)=>{
|
|
951
|
-
const { answer
|
|
921
|
+
const { answer } = await inquirer.prompt([
|
|
952
922
|
{
|
|
953
923
|
type: "list",
|
|
954
924
|
message: question.message,
|
|
@@ -999,6 +969,10 @@ const buildOptions = {
|
|
|
999
969
|
docs: {
|
|
1000
970
|
type: "boolean",
|
|
1001
971
|
default: false
|
|
972
|
+
},
|
|
973
|
+
experimentalSwc: {
|
|
974
|
+
type: "boolean",
|
|
975
|
+
default: false
|
|
1002
976
|
}
|
|
1003
977
|
};
|
|
1004
978
|
const preCommandCheck = async (workspaceLocation)=>{
|
|
@@ -1060,14 +1034,14 @@ yargsInstance.command("build [directories...]", "Builds the specified directorie
|
|
|
1060
1034
|
type: "boolean",
|
|
1061
1035
|
default: false
|
|
1062
1036
|
}
|
|
1063
|
-
}), async ({ directories =[]
|
|
1037
|
+
}), async ({ directories = [], watch, ...options })=>{
|
|
1064
1038
|
const workspace = detectWorkspace(options.cwd);
|
|
1065
1039
|
const folders = resolvePackagesFromMaybePatterns(directories, workspace);
|
|
1066
1040
|
await preCommandCheck(workspace);
|
|
1067
1041
|
if (folders.length === 0) {
|
|
1068
1042
|
return console.log("No build targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.");
|
|
1069
1043
|
}
|
|
1070
|
-
const { buildFolders
|
|
1044
|
+
const { buildFolders, buildFoldersWatch } = await import('./index-0caf1a6e.mjs').then(function (n) { return n.i; });
|
|
1071
1045
|
if (watch) {
|
|
1072
1046
|
await buildFoldersWatch({
|
|
1073
1047
|
...options,
|
|
@@ -1144,7 +1118,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
|
|
|
1144
1118
|
default: false,
|
|
1145
1119
|
description: "Skip dependency checks"
|
|
1146
1120
|
}
|
|
1147
|
-
}), async ({ directory
|
|
1121
|
+
}), async ({ directory, user, password, service, license, ...options })=>{
|
|
1148
1122
|
const workspace = detectWorkspace(options.cwd);
|
|
1149
1123
|
const folder = detectPackage(workspace, directory);
|
|
1150
1124
|
await preCommandCheck(workspace);
|
|
@@ -1189,7 +1163,7 @@ yargsInstance.command("publish [directory]", "Publishes the specified directory"
|
|
|
1189
1163
|
password
|
|
1190
1164
|
};
|
|
1191
1165
|
}
|
|
1192
|
-
const { releaseFolder
|
|
1166
|
+
const { releaseFolder } = await import('./index-7fa42d48.mjs');
|
|
1193
1167
|
const prompter = createDefaultPrompter();
|
|
1194
1168
|
const fullOptions = {
|
|
1195
1169
|
...options,
|
|
@@ -1238,7 +1212,7 @@ yargsInstance.command("testConnection [directory]", "Tests connection to asset s
|
|
|
1238
1212
|
description: "Path to a license file",
|
|
1239
1213
|
default: process.env.IG_GFX_LICENSE
|
|
1240
1214
|
}
|
|
1241
|
-
}), async ({ user
|
|
1215
|
+
}), async ({ user, password, service, license, subdomain, domain, address, directory })=>{
|
|
1242
1216
|
if (!service) {
|
|
1243
1217
|
captureError(new Error('The IG.Asset.Server url has to either be provided using the option --service or through the "IG_GFX_ASSET_SERVICE" environment variable'));
|
|
1244
1218
|
return;
|
|
@@ -1317,10 +1291,10 @@ yargsInstance.command({
|
|
|
1317
1291
|
default: false,
|
|
1318
1292
|
description: "Marks non optional parameter object properties as required"
|
|
1319
1293
|
}),
|
|
1320
|
-
handler: async ({ directory
|
|
1294
|
+
handler: async ({ directory, ignore, strictOptional })=>{
|
|
1321
1295
|
const workspace = detectWorkspace(process.cwd());
|
|
1322
1296
|
await preCommandCheck(workspace);
|
|
1323
|
-
const { generateIndex
|
|
1297
|
+
const { generateIndex } = await import('./generateIndex-dd0b4563.mjs');
|
|
1324
1298
|
const location = detectPackage(workspace, directory);
|
|
1325
1299
|
generateIndex({
|
|
1326
1300
|
location,
|
|
@@ -1332,10 +1306,10 @@ yargsInstance.command({
|
|
|
1332
1306
|
});
|
|
1333
1307
|
yargsInstance.command({
|
|
1334
1308
|
command: "generateParameterType [directory] [name]",
|
|
1335
|
-
handler: async ({ directory
|
|
1309
|
+
handler: async ({ directory, name })=>{
|
|
1336
1310
|
const workspace = detectWorkspace(process.cwd());
|
|
1337
1311
|
await preCommandCheck(workspace);
|
|
1338
|
-
const { generateParameterType
|
|
1312
|
+
const { generateParameterType } = await import('./generateParameterType-9a671e36.mjs');
|
|
1339
1313
|
const location = detectPackage(workspace, directory);
|
|
1340
1314
|
generateParameterType({
|
|
1341
1315
|
location,
|
|
@@ -1348,7 +1322,7 @@ yargsInstance.command({
|
|
|
1348
1322
|
command: "postinstall",
|
|
1349
1323
|
builder: (argv)=>argv,
|
|
1350
1324
|
handler: async ()=>{
|
|
1351
|
-
const { executePostInstall
|
|
1325
|
+
const { executePostInstall } = await import('./postinstall-81b6f0b0.mjs');
|
|
1352
1326
|
executePostInstall(detectWorkspace(process.cwd()));
|
|
1353
1327
|
},
|
|
1354
1328
|
describe: "Runs postinstall tasks"
|
|
@@ -1366,9 +1340,9 @@ yargsInstance.command({
|
|
|
1366
1340
|
type: "boolean"
|
|
1367
1341
|
}
|
|
1368
1342
|
}),
|
|
1369
|
-
handler: async ({ directory
|
|
1343
|
+
handler: async ({ directory, newVersion, dryRun })=>{
|
|
1370
1344
|
const workspace = detectWorkspace(process.cwd());
|
|
1371
|
-
const { publishToNpm
|
|
1345
|
+
const { publishToNpm } = await import('./publishNpm-c985bd6e.mjs');
|
|
1372
1346
|
await publishToNpm({
|
|
1373
1347
|
workspace,
|
|
1374
1348
|
location: detectPackage(workspace, directory),
|
|
@@ -1385,4 +1359,4 @@ var cli = /*#__PURE__*/Object.freeze({
|
|
|
1385
1359
|
});
|
|
1386
1360
|
|
|
1387
1361
|
export { INDEX_FILE as I, PACKAGE_FILE as P, readPackageCreatorIndex as a, readWorkspaceNpmManifest as b, readPackageAnimationList as c, isErrorEACCES as d, isErrorEPERM as e, getPackageReleasesDirectory as f, getWorkspaceOutputPath as g, getExistingPackages as h, isErrorENOENT as i, closeSession as j, writePackageCreatorIndex as k, getCreatorIndexParameterPrimaryJSType as l, getWorkspaceLibPath as m, readNpmManifest as n, stripUtf8Bom as o, parseCreatorPackageName as p, readPackageNpmManifest as q, readPackageCreatorManifest as r, startSession as s, writePackageNpmManifest as t, uploadPackageFromStream as u, iterateWorkspacePackages as v, writePackageCreatorManifest as w, cli as x };
|
|
1388
|
-
//# sourceMappingURL=cli-
|
|
1362
|
+
//# sourceMappingURL=cli-fec9c069.mjs.map
|