piral-cli 0.15.0-beta.4630 → 0.15.0-beta.4670

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.
Files changed (56) hide show
  1. package/README.md +17 -0
  2. package/lib/apps/build-pilet.js +6 -5
  3. package/lib/apps/build-pilet.js.map +1 -1
  4. package/lib/apps/build-piral.js +7 -6
  5. package/lib/apps/build-piral.js.map +1 -1
  6. package/lib/apps/debug-pilet.js +130 -109
  7. package/lib/apps/debug-pilet.js.map +1 -1
  8. package/lib/apps/debug-piral.js +58 -52
  9. package/lib/apps/debug-piral.js.map +1 -1
  10. package/lib/apps/publish-pilet.js +3 -3
  11. package/lib/apps/publish-pilet.js.map +1 -1
  12. package/lib/apps/upgrade-pilet.js +5 -8
  13. package/lib/apps/upgrade-pilet.js.map +1 -1
  14. package/lib/build/run-build-pilet.js +4 -4
  15. package/lib/build/run-build-pilet.js.map +1 -1
  16. package/lib/build/run-build-piral.js +3 -3
  17. package/lib/build/run-build-piral.js.map +1 -1
  18. package/lib/build/run-debug-mono-piral.js +3 -3
  19. package/lib/build/run-debug-mono-piral.js.map +1 -1
  20. package/lib/build/run-debug-pilet.js +4 -4
  21. package/lib/build/run-debug-pilet.js.map +1 -1
  22. package/lib/build/run-debug-piral.js +3 -3
  23. package/lib/build/run-debug-piral.js.map +1 -1
  24. package/lib/common/declaration.js +2 -0
  25. package/lib/common/declaration.js.map +1 -1
  26. package/lib/common/envs.js +7 -4
  27. package/lib/common/envs.js.map +1 -1
  28. package/lib/common/index.d.ts +2 -0
  29. package/lib/common/index.js +2 -0
  30. package/lib/common/index.js.map +1 -1
  31. package/lib/common/package.d.ts +0 -4
  32. package/lib/common/package.js +5 -7
  33. package/lib/common/package.js.map +1 -1
  34. package/lib/common/watcher.d.ts +5 -0
  35. package/lib/common/watcher.js +21 -0
  36. package/lib/common/watcher.js.map +1 -0
  37. package/lib/external/index.js +274 -274
  38. package/lib/types/public.d.ts +7 -7
  39. package/package.json +3 -3
  40. package/src/apps/build-pilet.ts +7 -5
  41. package/src/apps/build-piral.ts +7 -6
  42. package/src/apps/debug-pilet.ts +179 -146
  43. package/src/apps/debug-piral.ts +69 -61
  44. package/src/apps/publish-pilet.ts +3 -3
  45. package/src/apps/upgrade-pilet.ts +7 -9
  46. package/src/build/run-build-pilet.ts +4 -4
  47. package/src/build/run-build-piral.ts +3 -3
  48. package/src/build/run-debug-mono-piral.ts +3 -3
  49. package/src/build/run-debug-pilet.ts +5 -4
  50. package/src/build/run-debug-piral.ts +3 -3
  51. package/src/common/declaration.ts +2 -0
  52. package/src/common/envs.ts +6 -4
  53. package/src/common/index.ts +2 -0
  54. package/src/common/package.ts +5 -5
  55. package/src/common/watcher.ts +24 -0
  56. package/src/types/public.ts +7 -7
@@ -817,7 +817,36 @@ module.exports = {
817
817
 
818
818
  /***/ }),
819
819
  /* 10 */,
820
- /* 11 */,
820
+ /* 11 */
821
+ /***/ (function(module, __unusedexports, __webpack_require__) {
822
+
823
+ // unix absolute paths are also absolute on win32, so we use this for both
824
+ const { isAbsolute, parse } = __webpack_require__(622).win32
825
+
826
+ // returns [root, stripped]
827
+ // Note that windows will think that //x/y/z/a has a "root" of //x/y, and in
828
+ // those cases, we want to sanitize it to x/y/z/a, not z/a, so we strip /
829
+ // explicitly if it's the first character.
830
+ // drive-specific relative paths on Windows get their root stripped off even
831
+ // though they are not absolute, so `c:../foo` becomes ['c:', '../foo']
832
+ module.exports = path => {
833
+ let r = ''
834
+
835
+ let parsed = parse(path)
836
+ while (isAbsolute(path) || parsed.root) {
837
+ // windows will think that //x/y/z has a "root" of //x/y/
838
+ // but strip the //?/C:/ off of //?/C:/path
839
+ const root = path.charAt(0) === '/' && path.slice(0, 4) !== '//?/' ? '/'
840
+ : parsed.root
841
+ path = path.substr(root.length)
842
+ r += root
843
+ parsed = parse(path)
844
+ }
845
+ return [r, path]
846
+ }
847
+
848
+
849
+ /***/ }),
821
850
  /* 12 */,
822
851
  /* 13 */,
823
852
  /* 14 */
@@ -1030,7 +1059,7 @@ const PREFIX = Symbol('prefix')
1030
1059
  const HAD_ERROR = Symbol('hadError')
1031
1060
  const warner = __webpack_require__(458)
1032
1061
  const winchars = __webpack_require__(855)
1033
- const stripAbsolutePath = __webpack_require__(481)
1062
+ const stripAbsolutePath = __webpack_require__(11)
1034
1063
 
1035
1064
  const modeFix = __webpack_require__(397)
1036
1065
 
@@ -20260,7 +20289,7 @@ module.exports = ConfirmPrompt;
20260
20289
  "use strict";
20261
20290
 
20262
20291
  var chalk = __webpack_require__(393);
20263
- var figures = __webpack_require__(331);
20292
+ var figures = __webpack_require__(481);
20264
20293
 
20265
20294
  /**
20266
20295
  * Separator object
@@ -24750,7 +24779,7 @@ if (typeof realZlib.BrotliCompress === 'function') {
24750
24779
 
24751
24780
  var _ = __webpack_require__(53);
24752
24781
  var chalk = __webpack_require__(393);
24753
- var figures = __webpack_require__(331);
24782
+ var figures = __webpack_require__(481);
24754
24783
  var cliCursor = __webpack_require__(806);
24755
24784
  var runAsync = __webpack_require__(995);
24756
24785
  var { flatMap, map, take, takeUntil } = __webpack_require__(925);
@@ -31429,152 +31458,110 @@ exports.AsyncScheduler = AsyncScheduler;
31429
31458
 
31430
31459
  "use strict";
31431
31460
 
31432
- const escapeStringRegexp = __webpack_require__(190);
31433
31461
 
31434
- const platform = process.platform;
31462
+ var pkg = __webpack_require__(639);
31435
31463
 
31436
- const main = {
31437
- tick: '✔',
31438
- cross: '✖',
31439
- star: '★',
31440
- square: '▇',
31441
- squareSmall: '◻',
31442
- squareSmallFilled: '◼',
31443
- play: '▶',
31444
- circle: '◯',
31445
- circleFilled: '◉',
31446
- circleDotted: '◌',
31447
- circleDouble: '◎',
31448
- circleCircle: 'ⓞ',
31449
- circleCross: 'ⓧ',
31450
- circlePipe: 'Ⓘ',
31451
- circleQuestionMark: '?⃝',
31452
- bullet: '●',
31453
- dot: '․',
31454
- line: '─',
31455
- ellipsis: '…',
31456
- pointer: '❯',
31457
- pointerSmall: '›',
31458
- info: 'ℹ',
31459
- warning: '⚠',
31460
- hamburger: '☰',
31461
- smiley: '㋡',
31462
- mustache: '෴',
31463
- heart: '♥',
31464
- arrowUp: '↑',
31465
- arrowDown: '↓',
31466
- arrowLeft: '←',
31467
- arrowRight: '→',
31468
- radioOn: '◉',
31469
- radioOff: '◯',
31470
- checkboxOn: '☒',
31471
- checkboxOff: '☐',
31472
- checkboxCircleOn: 'ⓧ',
31473
- checkboxCircleOff: 'Ⓘ',
31474
- questionMarkPrefix: '?⃝',
31475
- oneHalf: '½',
31476
- oneThird: '⅓',
31477
- oneQuarter: '¼',
31478
- oneFifth: '⅕',
31479
- oneSixth: '⅙',
31480
- oneSeventh: '⅐',
31481
- oneEighth: '⅛',
31482
- oneNinth: '⅑',
31483
- oneTenth: '⅒',
31484
- twoThirds: '⅔',
31485
- twoFifths: '⅖',
31486
- threeQuarters: '¾',
31487
- threeFifths: '⅗',
31488
- threeEighths: '⅜',
31489
- fourFifths: '⅘',
31490
- fiveSixths: '⅚',
31491
- fiveEighths: '⅝',
31492
- sevenEighths: '⅞'
31493
- };
31464
+ var validators = {};
31494
31465
 
31495
- const win = {
31496
- tick: '',
31497
- cross: '×',
31498
- star: '*',
31499
- square: '█',
31500
- squareSmall: '[ ]',
31501
- squareSmallFilled: '[█]',
31502
- play: '►',
31503
- circle: '( )',
31504
- circleFilled: '(*)',
31505
- circleDotted: '( )',
31506
- circleDouble: '( )',
31507
- circleCircle: '(○)',
31508
- circleCross: '(×)',
31509
- circlePipe: '(│)',
31510
- circleQuestionMark: '(?)',
31511
- bullet: '*',
31512
- dot: '.',
31513
- line: '─',
31514
- ellipsis: '...',
31515
- pointer: '>',
31516
- pointerSmall: '»',
31517
- info: 'i',
31518
- warning: '‼',
31519
- hamburger: '≡',
31520
- smiley: '☺',
31521
- mustache: '┌─┐',
31522
- heart: main.heart,
31523
- arrowUp: main.arrowUp,
31524
- arrowDown: main.arrowDown,
31525
- arrowLeft: main.arrowLeft,
31526
- arrowRight: main.arrowRight,
31527
- radioOn: '(*)',
31528
- radioOff: '( )',
31529
- checkboxOn: '[×]',
31530
- checkboxOff: '[ ]',
31531
- checkboxCircleOn: '(×)',
31532
- checkboxCircleOff: '( )',
31533
- questionMarkPrefix: '?',
31534
- oneHalf: '1/2',
31535
- oneThird: '1/3',
31536
- oneQuarter: '1/4',
31537
- oneFifth: '1/5',
31538
- oneSixth: '1/6',
31539
- oneSeventh: '1/7',
31540
- oneEighth: '1/8',
31541
- oneNinth: '1/9',
31542
- oneTenth: '1/10',
31543
- twoThirds: '2/3',
31544
- twoFifths: '2/5',
31545
- threeQuarters: '3/4',
31546
- threeFifths: '3/5',
31547
- threeEighths: '3/8',
31548
- fourFifths: '4/5',
31549
- fiveSixths: '5/6',
31550
- fiveEighths: '5/8',
31551
- sevenEighths: '7/8'
31552
- };
31466
+ // eslint-disable-next-line func-names
31467
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
31468
+ validators[type] = function validator(thing) {
31469
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
31470
+ };
31471
+ });
31553
31472
 
31554
- if (platform === 'linux') {
31555
- // the main one doesn't look that good on Ubuntu
31556
- main.questionMarkPrefix = '?';
31473
+ var deprecatedWarnings = {};
31474
+ var currentVerArr = pkg.version.split('.');
31475
+
31476
+ /**
31477
+ * Compare package versions
31478
+ * @param {string} version
31479
+ * @param {string?} thanVersion
31480
+ * @returns {boolean}
31481
+ */
31482
+ function isOlderVersion(version, thanVersion) {
31483
+ var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;
31484
+ var destVer = version.split('.');
31485
+ for (var i = 0; i < 3; i++) {
31486
+ if (pkgVersionArr[i] > destVer[i]) {
31487
+ return true;
31488
+ } else if (pkgVersionArr[i] < destVer[i]) {
31489
+ return false;
31490
+ }
31491
+ }
31492
+ return false;
31557
31493
  }
31558
31494
 
31559
- const figures = platform === 'win32' ? win : main;
31495
+ /**
31496
+ * Transitional option validator
31497
+ * @param {function|boolean?} validator
31498
+ * @param {string?} version
31499
+ * @param {string} message
31500
+ * @returns {function}
31501
+ */
31502
+ validators.transitional = function transitional(validator, version, message) {
31503
+ var isDeprecated = version && isOlderVersion(version);
31560
31504
 
31561
- const fn = str => {
31562
- if (figures === main) {
31563
- return str;
31564
- }
31505
+ function formatMessage(opt, desc) {
31506
+ return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
31507
+ }
31565
31508
 
31566
- Object.keys(main).forEach(key => {
31567
- if (main[key] === figures[key]) {
31568
- return;
31569
- }
31509
+ // eslint-disable-next-line func-names
31510
+ return function(value, opt, opts) {
31511
+ if (validator === false) {
31512
+ throw new Error(formatMessage(opt, ' has been removed in ' + version));
31513
+ }
31570
31514
 
31571
- str = str.replace(new RegExp(escapeStringRegexp(main[key]), 'g'), figures[key]);
31572
- });
31515
+ if (isDeprecated && !deprecatedWarnings[opt]) {
31516
+ deprecatedWarnings[opt] = true;
31517
+ // eslint-disable-next-line no-console
31518
+ console.warn(
31519
+ formatMessage(
31520
+ opt,
31521
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
31522
+ )
31523
+ );
31524
+ }
31573
31525
 
31574
- return str;
31526
+ return validator ? validator(value, opt, opts) : true;
31527
+ };
31575
31528
  };
31576
31529
 
31577
- module.exports = Object.assign(fn, figures);
31530
+ /**
31531
+ * Assert object's properties type
31532
+ * @param {object} options
31533
+ * @param {object} schema
31534
+ * @param {boolean?} allowUnknown
31535
+ */
31536
+
31537
+ function assertOptions(options, schema, allowUnknown) {
31538
+ if (typeof options !== 'object') {
31539
+ throw new TypeError('options must be an object');
31540
+ }
31541
+ var keys = Object.keys(options);
31542
+ var i = keys.length;
31543
+ while (i-- > 0) {
31544
+ var opt = keys[i];
31545
+ var validator = schema[opt];
31546
+ if (validator) {
31547
+ var value = options[opt];
31548
+ var result = value === undefined || validator(value, opt, options);
31549
+ if (result !== true) {
31550
+ throw new TypeError('option ' + opt + ' must be ' + result);
31551
+ }
31552
+ continue;
31553
+ }
31554
+ if (allowUnknown !== true) {
31555
+ throw Error('Unknown option ' + opt);
31556
+ }
31557
+ }
31558
+ }
31559
+
31560
+ module.exports = {
31561
+ isOlderVersion: isOlderVersion,
31562
+ assertOptions: assertOptions,
31563
+ validators: validators
31564
+ };
31578
31565
 
31579
31566
 
31580
31567
  /***/ }),
@@ -33353,7 +33340,7 @@ const path = __webpack_require__(622)
33353
33340
  const mkdir = __webpack_require__(593)
33354
33341
  const mkdirSync = mkdir.sync
33355
33342
  const wc = __webpack_require__(855)
33356
- const stripAbsolutePath = __webpack_require__(481)
33343
+ const stripAbsolutePath = __webpack_require__(11)
33357
33344
  const pathReservations = __webpack_require__(490)
33358
33345
  const normPath = __webpack_require__(193)
33359
33346
  const stripSlash = __webpack_require__(857)
@@ -37622,118 +37609,7 @@ exports.timer = timer;
37622
37609
  //# sourceMappingURL=timer.js.map
37623
37610
 
37624
37611
  /***/ }),
37625
- /* 465 */
37626
- /***/ (function(module, __unusedexports, __webpack_require__) {
37627
-
37628
- "use strict";
37629
-
37630
-
37631
- var pkg = __webpack_require__(639);
37632
-
37633
- var validators = {};
37634
-
37635
- // eslint-disable-next-line func-names
37636
- ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {
37637
- validators[type] = function validator(thing) {
37638
- return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
37639
- };
37640
- });
37641
-
37642
- var deprecatedWarnings = {};
37643
- var currentVerArr = pkg.version.split('.');
37644
-
37645
- /**
37646
- * Compare package versions
37647
- * @param {string} version
37648
- * @param {string?} thanVersion
37649
- * @returns {boolean}
37650
- */
37651
- function isOlderVersion(version, thanVersion) {
37652
- var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;
37653
- var destVer = version.split('.');
37654
- for (var i = 0; i < 3; i++) {
37655
- if (pkgVersionArr[i] > destVer[i]) {
37656
- return true;
37657
- } else if (pkgVersionArr[i] < destVer[i]) {
37658
- return false;
37659
- }
37660
- }
37661
- return false;
37662
- }
37663
-
37664
- /**
37665
- * Transitional option validator
37666
- * @param {function|boolean?} validator
37667
- * @param {string?} version
37668
- * @param {string} message
37669
- * @returns {function}
37670
- */
37671
- validators.transitional = function transitional(validator, version, message) {
37672
- var isDeprecated = version && isOlderVersion(version);
37673
-
37674
- function formatMessage(opt, desc) {
37675
- return '[Axios v' + pkg.version + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
37676
- }
37677
-
37678
- // eslint-disable-next-line func-names
37679
- return function(value, opt, opts) {
37680
- if (validator === false) {
37681
- throw new Error(formatMessage(opt, ' has been removed in ' + version));
37682
- }
37683
-
37684
- if (isDeprecated && !deprecatedWarnings[opt]) {
37685
- deprecatedWarnings[opt] = true;
37686
- // eslint-disable-next-line no-console
37687
- console.warn(
37688
- formatMessage(
37689
- opt,
37690
- ' has been deprecated since v' + version + ' and will be removed in the near future'
37691
- )
37692
- );
37693
- }
37694
-
37695
- return validator ? validator(value, opt, opts) : true;
37696
- };
37697
- };
37698
-
37699
- /**
37700
- * Assert object's properties type
37701
- * @param {object} options
37702
- * @param {object} schema
37703
- * @param {boolean?} allowUnknown
37704
- */
37705
-
37706
- function assertOptions(options, schema, allowUnknown) {
37707
- if (typeof options !== 'object') {
37708
- throw new TypeError('options must be an object');
37709
- }
37710
- var keys = Object.keys(options);
37711
- var i = keys.length;
37712
- while (i-- > 0) {
37713
- var opt = keys[i];
37714
- var validator = schema[opt];
37715
- if (validator) {
37716
- var value = options[opt];
37717
- var result = value === undefined || validator(value, opt, options);
37718
- if (result !== true) {
37719
- throw new TypeError('option ' + opt + ' must be ' + result);
37720
- }
37721
- continue;
37722
- }
37723
- if (allowUnknown !== true) {
37724
- throw Error('Unknown option ' + opt);
37725
- }
37726
- }
37727
- }
37728
-
37729
- module.exports = {
37730
- isOlderVersion: isOlderVersion,
37731
- assertOptions: assertOptions,
37732
- validators: validators
37733
- };
37734
-
37735
-
37736
- /***/ }),
37612
+ /* 465 */,
37737
37613
  /* 466 */
37738
37614
  /***/ (function(__unusedmodule, exports, __webpack_require__) {
37739
37615
 
@@ -38280,31 +38156,155 @@ module.exports = str => {
38280
38156
  /* 481 */
38281
38157
  /***/ (function(module, __unusedexports, __webpack_require__) {
38282
38158
 
38283
- // unix absolute paths are also absolute on win32, so we use this for both
38284
- const { isAbsolute, parse } = __webpack_require__(622).win32
38159
+ "use strict";
38285
38160
 
38286
- // returns [root, stripped]
38287
- // Note that windows will think that //x/y/z/a has a "root" of //x/y, and in
38288
- // those cases, we want to sanitize it to x/y/z/a, not z/a, so we strip /
38289
- // explicitly if it's the first character.
38290
- // drive-specific relative paths on Windows get their root stripped off even
38291
- // though they are not absolute, so `c:../foo` becomes ['c:', '../foo']
38292
- module.exports = path => {
38293
- let r = ''
38161
+ const escapeStringRegexp = __webpack_require__(190);
38294
38162
 
38295
- let parsed = parse(path)
38296
- while (isAbsolute(path) || parsed.root) {
38297
- // windows will think that //x/y/z has a "root" of //x/y/
38298
- // but strip the //?/C:/ off of //?/C:/path
38299
- const root = path.charAt(0) === '/' && path.slice(0, 4) !== '//?/' ? '/'
38300
- : parsed.root
38301
- path = path.substr(root.length)
38302
- r += root
38303
- parsed = parse(path)
38304
- }
38305
- return [r, path]
38163
+ const platform = process.platform;
38164
+
38165
+ const main = {
38166
+ tick: '✔',
38167
+ cross: '',
38168
+ star: '★',
38169
+ square: '▇',
38170
+ squareSmall: '◻',
38171
+ squareSmallFilled: '◼',
38172
+ play: '▶',
38173
+ circle: '◯',
38174
+ circleFilled: '◉',
38175
+ circleDotted: '◌',
38176
+ circleDouble: '◎',
38177
+ circleCircle: 'ⓞ',
38178
+ circleCross: 'ⓧ',
38179
+ circlePipe: 'Ⓘ',
38180
+ circleQuestionMark: '?⃝',
38181
+ bullet: '●',
38182
+ dot: '․',
38183
+ line: '─',
38184
+ ellipsis: '…',
38185
+ pointer: '❯',
38186
+ pointerSmall: '›',
38187
+ info: 'ℹ',
38188
+ warning: '⚠',
38189
+ hamburger: '☰',
38190
+ smiley: '㋡',
38191
+ mustache: '෴',
38192
+ heart: '♥',
38193
+ arrowUp: '↑',
38194
+ arrowDown: '↓',
38195
+ arrowLeft: '←',
38196
+ arrowRight: '→',
38197
+ radioOn: '◉',
38198
+ radioOff: '◯',
38199
+ checkboxOn: '☒',
38200
+ checkboxOff: '☐',
38201
+ checkboxCircleOn: 'ⓧ',
38202
+ checkboxCircleOff: 'Ⓘ',
38203
+ questionMarkPrefix: '?⃝',
38204
+ oneHalf: '½',
38205
+ oneThird: '⅓',
38206
+ oneQuarter: '¼',
38207
+ oneFifth: '⅕',
38208
+ oneSixth: '⅙',
38209
+ oneSeventh: '⅐',
38210
+ oneEighth: '⅛',
38211
+ oneNinth: '⅑',
38212
+ oneTenth: '⅒',
38213
+ twoThirds: '⅔',
38214
+ twoFifths: '⅖',
38215
+ threeQuarters: '¾',
38216
+ threeFifths: '⅗',
38217
+ threeEighths: '⅜',
38218
+ fourFifths: '⅘',
38219
+ fiveSixths: '⅚',
38220
+ fiveEighths: '⅝',
38221
+ sevenEighths: '⅞'
38222
+ };
38223
+
38224
+ const win = {
38225
+ tick: '√',
38226
+ cross: '×',
38227
+ star: '*',
38228
+ square: '█',
38229
+ squareSmall: '[ ]',
38230
+ squareSmallFilled: '[█]',
38231
+ play: '►',
38232
+ circle: '( )',
38233
+ circleFilled: '(*)',
38234
+ circleDotted: '( )',
38235
+ circleDouble: '( )',
38236
+ circleCircle: '(○)',
38237
+ circleCross: '(×)',
38238
+ circlePipe: '(│)',
38239
+ circleQuestionMark: '(?)',
38240
+ bullet: '*',
38241
+ dot: '.',
38242
+ line: '─',
38243
+ ellipsis: '...',
38244
+ pointer: '>',
38245
+ pointerSmall: '»',
38246
+ info: 'i',
38247
+ warning: '‼',
38248
+ hamburger: '≡',
38249
+ smiley: '☺',
38250
+ mustache: '┌─┐',
38251
+ heart: main.heart,
38252
+ arrowUp: main.arrowUp,
38253
+ arrowDown: main.arrowDown,
38254
+ arrowLeft: main.arrowLeft,
38255
+ arrowRight: main.arrowRight,
38256
+ radioOn: '(*)',
38257
+ radioOff: '( )',
38258
+ checkboxOn: '[×]',
38259
+ checkboxOff: '[ ]',
38260
+ checkboxCircleOn: '(×)',
38261
+ checkboxCircleOff: '( )',
38262
+ questionMarkPrefix: '?',
38263
+ oneHalf: '1/2',
38264
+ oneThird: '1/3',
38265
+ oneQuarter: '1/4',
38266
+ oneFifth: '1/5',
38267
+ oneSixth: '1/6',
38268
+ oneSeventh: '1/7',
38269
+ oneEighth: '1/8',
38270
+ oneNinth: '1/9',
38271
+ oneTenth: '1/10',
38272
+ twoThirds: '2/3',
38273
+ twoFifths: '2/5',
38274
+ threeQuarters: '3/4',
38275
+ threeFifths: '3/5',
38276
+ threeEighths: '3/8',
38277
+ fourFifths: '4/5',
38278
+ fiveSixths: '5/6',
38279
+ fiveEighths: '5/8',
38280
+ sevenEighths: '7/8'
38281
+ };
38282
+
38283
+ if (platform === 'linux') {
38284
+ // the main one doesn't look that good on Ubuntu
38285
+ main.questionMarkPrefix = '?';
38306
38286
  }
38307
38287
 
38288
+ const figures = platform === 'win32' ? win : main;
38289
+
38290
+ const fn = str => {
38291
+ if (figures === main) {
38292
+ return str;
38293
+ }
38294
+
38295
+ Object.keys(main).forEach(key => {
38296
+ if (main[key] === figures[key]) {
38297
+ return;
38298
+ }
38299
+
38300
+ str = str.replace(new RegExp(escapeStringRegexp(main[key]), 'g'), figures[key]);
38301
+ });
38302
+
38303
+ return str;
38304
+ };
38305
+
38306
+ module.exports = Object.assign(fn, figures);
38307
+
38308
38308
 
38309
38309
  /***/ }),
38310
38310
  /* 482 */
@@ -42436,7 +42436,7 @@ module.exports = (flag, argv) => {
42436
42436
  var _ = __webpack_require__(53);
42437
42437
  var chalk = __webpack_require__(393);
42438
42438
  var cliCursor = __webpack_require__(806);
42439
- var figures = __webpack_require__(331);
42439
+ var figures = __webpack_require__(481);
42440
42440
  var { map, takeUntil } = __webpack_require__(925);
42441
42441
  var Base = __webpack_require__(966);
42442
42442
  var observe = __webpack_require__(595);
@@ -50687,7 +50687,7 @@ var buildURL = __webpack_require__(668);
50687
50687
  var InterceptorManager = __webpack_require__(968);
50688
50688
  var dispatchRequest = __webpack_require__(25);
50689
50689
  var mergeConfig = __webpack_require__(850);
50690
- var validator = __webpack_require__(465);
50690
+ var validator = __webpack_require__(331);
50691
50691
 
50692
50692
  var validators = validator.validators;
50693
50693
  /**
@@ -55,7 +55,7 @@ export interface BaseBundleParameters {
55
55
  _: Record<string, any>;
56
56
  }
57
57
  export interface DebugPiralParameters extends BaseBundleParameters {
58
- piral: string;
58
+ piralInstances: Array<string>;
59
59
  hmr: boolean;
60
60
  externals: Array<string>;
61
61
  publicUrl: string;
@@ -65,14 +65,14 @@ export interface DebugPiralParameters extends BaseBundleParameters {
65
65
  logLevel: LogLevels;
66
66
  }
67
67
  export interface WatchPiralParameters extends BaseBundleParameters {
68
- piral: string;
68
+ piralInstances: Array<string>;
69
69
  externals: Array<string>;
70
70
  publicUrl: string;
71
71
  entryFiles: string;
72
72
  logLevel: LogLevels;
73
73
  }
74
74
  export interface BuildPiralParameters extends BaseBundleParameters {
75
- piral: string;
75
+ piralInstances: Array<string>;
76
76
  emulator: boolean;
77
77
  standalone: boolean;
78
78
  sourceMaps: boolean;
@@ -86,7 +86,7 @@ export interface BuildPiralParameters extends BaseBundleParameters {
86
86
  logLevel: LogLevels;
87
87
  }
88
88
  export interface DebugPiletParameters extends BaseBundleParameters {
89
- piral: string;
89
+ piralInstances: Array<string>;
90
90
  hmr: boolean;
91
91
  externals: Array<string>;
92
92
  importmap: Array<SharedDependency>;
@@ -98,7 +98,7 @@ export interface DebugPiletParameters extends BaseBundleParameters {
98
98
  version: PiletSchemaVersion;
99
99
  }
100
100
  export interface BuildPiletParameters extends BaseBundleParameters {
101
- piral: string;
101
+ piralInstances: Array<string>;
102
102
  sourceMaps: boolean;
103
103
  contentHash: boolean;
104
104
  minify: boolean;
@@ -153,7 +153,7 @@ export interface PiralBuildHandler {
153
153
  export interface PiletBuildHandler {
154
154
  create(config: {
155
155
  root: string;
156
- piral: string;
156
+ piralInstances: Array<string>;
157
157
  entryModule: string;
158
158
  targetDir: string;
159
159
  outDir: string;
@@ -204,6 +204,6 @@ export interface StandardEnvProps {
204
204
  debugPilet?: boolean;
205
205
  root: string;
206
206
  publicPath?: string;
207
- piral?: string;
207
+ piralInstances?: Array<string>;
208
208
  dependencies?: Array<string>;
209
209
  }