rsformat 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/lib/format.js +1 -1
  2. package/package.json +1 -1
package/lib/format.js CHANGED
@@ -38,7 +38,7 @@ function format(str, ...params) {
38
38
  return '}';
39
39
  }
40
40
  // Process parameter number; increment param_counter if not included
41
- let param = $param_number === undefined
41
+ let param = $param_number === ''
42
42
  ? params[param_counter++]
43
43
  : params[+$param_number];
44
44
  if (param === undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsformat",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Formatting/printing library for JavaScript that takes after rust's string formatting ",
5
5
  "files": [
6
6
  "lib",