passwd-sso-cli 0.4.29 → 0.4.30

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/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -189,12 +189,12 @@ async function interactiveMode() {
189
189
  const idx = lengthIdx !== -1 ? lengthIdx : lengthIdx2;
190
190
  const rawLength = idx !== -1 ? args[idx + 1] : undefined;
191
191
  const parsedLength = rawLength && !rawLength.startsWith("-") ? parseInt(rawLength, 10) : NaN;
192
- if (idx !== -1 && (isNaN(parsedLength) || parsedLength <= 0)) {
192
+ if (idx !== -1 && (Number.isNaN(parsedLength) || parsedLength <= 0)) {
193
193
  output.error("Usage: generate [-l <number>] [--copy]");
194
194
  break;
195
195
  }
196
196
  await generateCommand({
197
- length: isNaN(parsedLength) ? 20 : parsedLength,
197
+ length: Number.isNaN(parsedLength) ? 20 : parsedLength,
198
198
  copy: args.includes("--copy") || args.includes("-c"),
199
199
  json: args.includes("--json"),
200
200
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "passwd-sso-cli",
3
- "version": "0.4.29",
3
+ "version": "0.4.30",
4
4
  "description": "CLI for passwd-sso password manager",
5
5
  "type": "module",
6
6
  "license": "MIT",