@civitai/client 0.1.9-beta.6 → 0.1.9-beta.7

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.
@@ -46,10 +46,10 @@ class TimeSpan {
46
46
  const str = arguments[0];
47
47
  let match;
48
48
  if ((match = str.match(timeSpanWithDays))) {
49
- [days, hours, minutes, seconds, ticks] = match.splice(1, 6).map(Number);
49
+ [days, hours, minutes, seconds, ticks] = match.splice(1, 6).map((x) => (x ? Number(x) : 0));
50
50
  }
51
51
  else if ((match = str.match(timeSpanNoDays))) {
52
- [hours, minutes, seconds, ticks] = match.splice(1, 4).map(Number);
52
+ [hours, minutes, seconds, ticks] = match.splice(1, 4).map((x) => (x ? Number(x) : 0));
53
53
  }
54
54
  }
55
55
  else if (arguments.length === 1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civitai/client",
3
- "version": "0.1.9-beta.6",
3
+ "version": "0.1.9-beta.7",
4
4
  "description": "Civitai's javascript client for generating ai content",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",