create-forgeon 0.3.26 → 0.3.27
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/package.json
CHANGED
|
@@ -346,14 +346,14 @@ export class AuthCoreService {
|
|
|
346
346
|
return new Date(Date.now() + 1000 * 60 * 60 * 24 * 7);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
const amount = Number(matched[1]);
|
|
350
|
-
const unit = matched[2];
|
|
351
349
|
const multipliers = {
|
|
352
350
|
s: 1000,
|
|
353
351
|
m: 1000 * 60,
|
|
354
352
|
h: 1000 * 60 * 60,
|
|
355
353
|
d: 1000 * 60 * 60 * 24,
|
|
356
354
|
} as const;
|
|
355
|
+
const amount = Number(matched[1]);
|
|
356
|
+
const unit = matched[2] as keyof typeof multipliers;
|
|
357
357
|
return new Date(Date.now() + amount * multipliers[unit]);
|
|
358
358
|
}
|
|
359
359
|
}
|