bare-format 1.0.1 → 1.0.2

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 (2) hide show
  1. package/index.js +6 -6
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -36,7 +36,7 @@ exports.formatWithOptions = function formatWithOptions(opts, ...args) {
36
36
  tmp = value
37
37
  break
38
38
  case 'bigint':
39
- tmp = inspect(value, { ...opts, color: false })
39
+ tmp = inspect(value, { ...opts, colors: false })
40
40
  break
41
41
  default:
42
42
  tmp = String(value)
@@ -54,10 +54,10 @@ exports.formatWithOptions = function formatWithOptions(opts, ...args) {
54
54
  tmp = NaN
55
55
  break
56
56
  case 'bigint':
57
- tmp = inspect(value, { ...opts, color: false })
57
+ tmp = inspect(value, { ...opts, colors: false })
58
58
  break
59
59
  default:
60
- tmp = inspect(Number(value), { ...opts, color: false })
60
+ tmp = inspect(Number(value), { ...opts, colors: false })
61
61
  break
62
62
  }
63
63
 
@@ -72,10 +72,10 @@ exports.formatWithOptions = function formatWithOptions(opts, ...args) {
72
72
  tmp = NaN
73
73
  break
74
74
  case 'bigint':
75
- tmp = inspect(value, { ...opts, color: false })
75
+ tmp = inspect(value, { ...opts, colors: false })
76
76
  break
77
77
  default:
78
- tmp = inspect(parseInt(value, 10), { ...opts, color: false })
78
+ tmp = inspect(parseInt(value, 10), { ...opts, colors: false })
79
79
  break
80
80
  }
81
81
 
@@ -90,7 +90,7 @@ exports.formatWithOptions = function formatWithOptions(opts, ...args) {
90
90
  tmp = NaN
91
91
  break
92
92
  default:
93
- tmp = inspect(parseFloat(value), { ...opts, color: false })
93
+ tmp = inspect(parseFloat(value), { ...opts, colors: false })
94
94
  break
95
95
  }
96
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-format",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "String formatting for JavaScript",
5
5
  "exports": {
6
6
  ".": {
@@ -32,6 +32,6 @@
32
32
  "devDependencies": {
33
33
  "brittle": "^3.5.0",
34
34
  "prettier": "^3.4.2",
35
- "prettier-config-standard": "^7.0.0"
35
+ "prettier-config-holepunch": "^2.0.0"
36
36
  }
37
37
  }