@builderbot/cli 1.2.1 → 1.2.2-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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/check/index.ts"],"names":[],"mappings":"AAGA,UAAU,WAAW;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,gBAAgB,QAAO,QAAQ,WAAW,CAU/C,CAAA;AAED,QAAA,MAAM,OAAO,QAAO,QAAQ,MAAM,CAQjC,CAAA;AAED,QAAA,MAAM,QAAQ,QAAO,QAAQ,WAAW,CAUvC,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/check/index.ts"],"names":[],"mappings":"AAGA,UAAU,WAAW;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,QAAA,MAAM,gBAAgB,QAAO,OAAO,CAAC,WAAW,CAU/C,CAAA;AAED,QAAA,MAAM,OAAO,QAAO,OAAO,CAAC,MAAM,CAQjC,CAAA;AAED,QAAA,MAAM,QAAQ,QAAO,OAAO,CAAC,WAAW,CAUvC,CAAA;AAED,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/create-app/index.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,QAAA,MAAM,WAAW,aAAmB,MAAM,UAAyB,MAAM,KAAmB,QAAQ,IAAI,CAIvG,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/create-app/index.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,QAAA,MAAM,WAAW,aAAmB,MAAM,UAAyB,MAAM,KAAmB,OAAO,CAAC,IAAI,CAIvG,CAAA;AAED,OAAO,EAAE,WAAW,EAAE,CAAA"}
package/dist/index.cjs CHANGED
@@ -98,17 +98,21 @@ const erase = {
98
98
 
99
99
  var src = { cursor, scroll, erase, beep };
100
100
 
101
- var picocolors = {exports: {}};
101
+ function commonjsRequire(path) {
102
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
103
+ }
102
104
 
103
- let tty = require$$0;
105
+ var picocolors = {exports: {}};
104
106
 
107
+ let argv = process.argv || [],
108
+ env = process.env;
105
109
  let isColorSupported =
106
- !("NO_COLOR" in process.env || process.argv.includes("--no-color")) &&
107
- ("FORCE_COLOR" in process.env ||
108
- process.argv.includes("--color") ||
110
+ !("NO_COLOR" in env || argv.includes("--no-color")) &&
111
+ ("FORCE_COLOR" in env ||
112
+ argv.includes("--color") ||
109
113
  process.platform === "win32" ||
110
- (tty.isatty(1) && process.env.TERM !== "dumb") ||
111
- "CI" in process.env);
114
+ (commonjsRequire != null && require$$0.isatty(1) && env.TERM !== "dumb") ||
115
+ "CI" in env);
112
116
 
113
117
  let formatter =
114
118
  (open, close, replace = open) =>
@@ -121,40 +125,47 @@ let formatter =
121
125
  };
122
126
 
123
127
  let replaceClose = (string, close, replace, index) => {
124
- let start = string.substring(0, index) + replace;
125
- let end = string.substring(index + close.length);
126
- let nextIndex = end.indexOf(close);
127
- return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end
128
+ let result = "";
129
+ let cursor = 0;
130
+ do {
131
+ result += string.substring(cursor, index) + replace;
132
+ cursor = index + close.length;
133
+ index = string.indexOf(close, cursor);
134
+ } while (~index)
135
+ return result + string.substring(cursor)
128
136
  };
129
137
 
130
- let createColors = (enabled = isColorSupported) => ({
131
- isColorSupported: enabled,
132
- reset: enabled ? s => `\x1b[0m${s}\x1b[0m` : String,
133
- bold: enabled ? formatter("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m") : String,
134
- dim: enabled ? formatter("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m") : String,
135
- italic: enabled ? formatter("\x1b[3m", "\x1b[23m") : String,
136
- underline: enabled ? formatter("\x1b[4m", "\x1b[24m") : String,
137
- inverse: enabled ? formatter("\x1b[7m", "\x1b[27m") : String,
138
- hidden: enabled ? formatter("\x1b[8m", "\x1b[28m") : String,
139
- strikethrough: enabled ? formatter("\x1b[9m", "\x1b[29m") : String,
140
- black: enabled ? formatter("\x1b[30m", "\x1b[39m") : String,
141
- red: enabled ? formatter("\x1b[31m", "\x1b[39m") : String,
142
- green: enabled ? formatter("\x1b[32m", "\x1b[39m") : String,
143
- yellow: enabled ? formatter("\x1b[33m", "\x1b[39m") : String,
144
- blue: enabled ? formatter("\x1b[34m", "\x1b[39m") : String,
145
- magenta: enabled ? formatter("\x1b[35m", "\x1b[39m") : String,
146
- cyan: enabled ? formatter("\x1b[36m", "\x1b[39m") : String,
147
- white: enabled ? formatter("\x1b[37m", "\x1b[39m") : String,
148
- gray: enabled ? formatter("\x1b[90m", "\x1b[39m") : String,
149
- bgBlack: enabled ? formatter("\x1b[40m", "\x1b[49m") : String,
150
- bgRed: enabled ? formatter("\x1b[41m", "\x1b[49m") : String,
151
- bgGreen: enabled ? formatter("\x1b[42m", "\x1b[49m") : String,
152
- bgYellow: enabled ? formatter("\x1b[43m", "\x1b[49m") : String,
153
- bgBlue: enabled ? formatter("\x1b[44m", "\x1b[49m") : String,
154
- bgMagenta: enabled ? formatter("\x1b[45m", "\x1b[49m") : String,
155
- bgCyan: enabled ? formatter("\x1b[46m", "\x1b[49m") : String,
156
- bgWhite: enabled ? formatter("\x1b[47m", "\x1b[49m") : String,
157
- });
138
+ let createColors = (enabled = isColorSupported) => {
139
+ let init = enabled ? formatter : () => String;
140
+ return {
141
+ isColorSupported: enabled,
142
+ reset: init("\x1b[0m", "\x1b[0m"),
143
+ bold: init("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
144
+ dim: init("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
145
+ italic: init("\x1b[3m", "\x1b[23m"),
146
+ underline: init("\x1b[4m", "\x1b[24m"),
147
+ inverse: init("\x1b[7m", "\x1b[27m"),
148
+ hidden: init("\x1b[8m", "\x1b[28m"),
149
+ strikethrough: init("\x1b[9m", "\x1b[29m"),
150
+ black: init("\x1b[30m", "\x1b[39m"),
151
+ red: init("\x1b[31m", "\x1b[39m"),
152
+ green: init("\x1b[32m", "\x1b[39m"),
153
+ yellow: init("\x1b[33m", "\x1b[39m"),
154
+ blue: init("\x1b[34m", "\x1b[39m"),
155
+ magenta: init("\x1b[35m", "\x1b[39m"),
156
+ cyan: init("\x1b[36m", "\x1b[39m"),
157
+ white: init("\x1b[37m", "\x1b[39m"),
158
+ gray: init("\x1b[90m", "\x1b[39m"),
159
+ bgBlack: init("\x1b[40m", "\x1b[49m"),
160
+ bgRed: init("\x1b[41m", "\x1b[49m"),
161
+ bgGreen: init("\x1b[42m", "\x1b[49m"),
162
+ bgYellow: init("\x1b[43m", "\x1b[49m"),
163
+ bgBlue: init("\x1b[44m", "\x1b[49m"),
164
+ bgMagenta: init("\x1b[45m", "\x1b[49m"),
165
+ bgCyan: init("\x1b[46m", "\x1b[49m"),
166
+ bgWhite: init("\x1b[47m", "\x1b[49m"),
167
+ }
168
+ };
158
169
 
159
170
  picocolors.exports = createColors();
160
171
  picocolors.exports.createColors = createColors;
@@ -2903,7 +2914,7 @@ function requireClear$1 () {
2903
2914
  if (hasRequiredClear$1) return clear$1;
2904
2915
  hasRequiredClear$1 = 1;
2905
2916
 
2906
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
2917
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
2907
2918
 
2908
2919
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2909
2920
 
@@ -5862,7 +5873,7 @@ function requireDist () {
5862
5873
 
5863
5874
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5864
5875
 
5865
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
5876
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
5866
5877
 
5867
5878
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5868
5879
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/install/index.ts"],"names":[],"mappings":"AA0BA,QAAA,MAAM,UAAU,QAAa,QAAQ,IAAI,CAGxC,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/install/index.ts"],"names":[],"mappings":"AA0BA,QAAA,MAAM,UAAU,QAAa,OAAO,CAAC,IAAI,CAGxC,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/install/tool.ts"],"names":[],"mappings":"AAGA,KAAK,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;AAO7C,QAAA,MAAM,YAAY,QAAa,QAAQ,cAAc,CAEpD,CAAA;AAED,QAAA,MAAM,WAAW,eAAgB,MAAM,eAAe,MAAM,GAAG,MAAM,EAAE;sBA0C5C,QAAQ,IAAI,EAAE,CAAC;CAIzC,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/install/tool.ts"],"names":[],"mappings":"AAGA,KAAK,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;AAO7C,QAAA,MAAM,YAAY,QAAa,OAAO,CAAC,cAAc,CAEpD,CAAA;AAED,QAAA,MAAM,WAAW,eAAgB,MAAM,eAAe,MAAM,GAAG,MAAM,EAAE;sBA0C5C,OAAO,CAAC,IAAI,EAAE,CAAC;CAIzC,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interactive/index.ts"],"names":[],"mappings":"AAgQA,QAAA,MAAM,KAAK,QAAa,QAAQ,IAAI,CAanC,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interactive/index.ts"],"names":[],"mappings":"AAgQA,QAAA,MAAM,KAAK,QAAa,OAAO,CAAC,IAAI,CAanC,CAAA;AAED,OAAO,EAAE,KAAK,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interactive-legacy/index.ts"],"names":[],"mappings":"AAmCA,QAAA,MAAM,sBAAsB,QAAa,QAAQ,IAAI,CAYpD,CAAA;AAyFD,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interactive-legacy/index.ts"],"names":[],"mappings":"AAmCA,QAAA,MAAM,sBAAsB,QAAa,OAAO,CAAC,IAAI,CAYpD,CAAA;AAyFD,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builderbot/cli",
3
- "version": "1.2.1",
3
+ "version": "1.2.2-alpha.1",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "types": "dist/index.d.ts",
@@ -41,5 +41,5 @@
41
41
  "type": "git",
42
42
  "url": "https://github.com/codigoencasa/bot-whatsapp/tree/main/packages/cli"
43
43
  },
44
- "gitHead": "d0149c2e6ca04b71ea5b5cf4ddc90477ab7ccf4a"
44
+ "gitHead": "5b1b2930695844b58daf642a2abbcb2bb92aba38"
45
45
  }