upgrades copycat

This commit is contained in:
zomars committed 2024-02-08 14:11:24 -07:00
1 parent 2082a4f4ed
commit 0c74a98721
3 files changed
+50 -33

No files matched your search

+5 -4
View File
@@ -1,7 +1,7 @@
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path=".snaplet/snaplet.d.ts" />
// This config was generated by Snaplet make sure to check it over before using it.
import { copycat as c, faker } from "@snaplet/copycat";
import { copycat as c } from "@snaplet/copycat";
import { defineConfig } from "snaplet";
// c.setHashKey(REPLACE_ME_WITH_YOUR_HASH_KEY);
@@ -81,12 +81,12 @@ export default defineConfig({
}),
Availability({ row }) {
return {
startTime: copycat
startTime: c
.dateString(row.startTime, {
minYear: 2020,
})
.slice(11, 19),
endTime: copycat
endTime: c
.dateString(row.endTime, {
minYear: 2020,
})
@@ -185,7 +185,7 @@ export default defineConfig({
},
VerificationToken({ row }) {
return {
id: copycat
id: c
.int(row.id, {
min: 1,
max: Math.pow(4, 8) - 1,
@@ -205,6 +205,7 @@ export default defineConfig({
},
Webhook({ row }) {
return {
subscriberUrl: c.url(row.subscriberUrl),
secret: c.streetAddress(row.secret),
};
},