creatium 0.1.16 → 0.1.17

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/main.cjs CHANGED
@@ -1548,9 +1548,22 @@ class CreatiumCore {
1548
1548
  this.debugMode = false;
1549
1549
  this.#style = { tick: this.utils.style.color.green(this.utils.style.color.dim("\u2713")) };
1550
1550
  }
1551
+ #_spinnerFN;
1551
1552
  /** Force debug mode */
1552
1553
  set debugMode(value) {
1553
1554
  this.#core.debugMode = value;
1555
+ if (value === true) {
1556
+ this.#_spinnerFN = this.utils.prompt.spinner;
1557
+ this.utils.prompt.spinner = (_) => {
1558
+ return {
1559
+ start: (m) => this.utils.prompt.log.message(m),
1560
+ message: (m) => this.utils.prompt.log.message(m),
1561
+ stop: (m) => this.utils.prompt.log.message(m)
1562
+ };
1563
+ };
1564
+ } else {
1565
+ if (this.#_spinnerFN) this.utils.prompt.spinner = this.#_spinnerFN;
1566
+ }
1554
1567
  }
1555
1568
  async #exec(values) {
1556
1569
  this.#data = { values };
package/dist/main.mjs CHANGED
@@ -1522,9 +1522,22 @@ class CreatiumCore {
1522
1522
  this.debugMode = false;
1523
1523
  this.#style = { tick: this.utils.style.color.green(this.utils.style.color.dim("\u2713")) };
1524
1524
  }
1525
+ #_spinnerFN;
1525
1526
  /** Force debug mode */
1526
1527
  set debugMode(value) {
1527
1528
  this.#core.debugMode = value;
1529
+ if (value === true) {
1530
+ this.#_spinnerFN = this.utils.prompt.spinner;
1531
+ this.utils.prompt.spinner = (_) => {
1532
+ return {
1533
+ start: (m) => this.utils.prompt.log.message(m),
1534
+ message: (m) => this.utils.prompt.log.message(m),
1535
+ stop: (m) => this.utils.prompt.log.message(m)
1536
+ };
1537
+ };
1538
+ } else {
1539
+ if (this.#_spinnerFN) this.utils.prompt.spinner = this.#_spinnerFN;
1540
+ }
1528
1541
  }
1529
1542
  async #exec(values) {
1530
1543
  this.#data = { values };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creatium",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Build your create-bins quickly and easily",
5
5
  "keywords": [
6
6
  "bin",
@@ -67,7 +67,7 @@
67
67
  "devDependencies": {
68
68
  "@types/columnify": "1.5.4",
69
69
  "@types/yargs": "17.0.33",
70
- "@creatium/repo-config": "0.1.16"
70
+ "@creatium/repo-config": "0.1.17"
71
71
  },
72
72
  "publishConfig": {
73
73
  "access": "public",