abl-constants
Advanced tools
Comparing version 0.3.4 to 0.3.5
{ | ||
"name": "abl-constants", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "title": "ABL - constants", |
@@ -8,3 +8,3 @@ "use strict"; | ||
import {title, description, notes, password, confirm} from "./misc.js"; | ||
import {testTime, startTime, endTime, untilTime, timeZone} from "./date.js"; | ||
import {testTime, startTime, endTime, untilTime, timeZone, daysRunning, cutoff} from "./date.js"; | ||
import {phoneNumber} from "./twilio.js"; | ||
@@ -111,2 +111,5 @@ import {cardNumbers} from "./stripe.js"; | ||
created: testTime, | ||
startTime, | ||
title, | ||
timeZone, | ||
transaction: transactionObject(), | ||
@@ -200,2 +203,16 @@ answers: [{ | ||
prior: 30 | ||
}, | ||
widget: { | ||
display: { | ||
timeslot: { | ||
availability: true, | ||
duration: true, | ||
price: true, | ||
startTime: true | ||
}, | ||
event: { | ||
isSiteWide: true, | ||
cutoff | ||
} | ||
} | ||
} | ||
@@ -208,8 +225,2 @@ } | ||
return Object.assign({ | ||
title, | ||
description, | ||
timeZone, | ||
startTime, | ||
endTime, | ||
untilTime, | ||
charges: [ | ||
@@ -219,30 +230,14 @@ chargeArray.adult, | ||
chargeArray.child | ||
] | ||
], | ||
daysRunning, | ||
description, | ||
endTime, | ||
single: false, | ||
startTime, | ||
timeZone, | ||
title, | ||
untilTime | ||
}, data); | ||
} | ||
export function userObject(data) { | ||
return Object.assign({ | ||
password, | ||
confirm, | ||
fullName: "Full Operator Name", | ||
companyName: "Company name", | ||
domainName: "domain.com", | ||
phoneNumber, | ||
email: `${getRandomString().toLowerCase()}@gmail.com`, | ||
location: locationObject(), | ||
role: "operator", | ||
preferences: { | ||
features: { | ||
guides: true, | ||
questions: true | ||
}, | ||
customFields: { | ||
notes: "Notes", | ||
prior: 30 | ||
} | ||
} | ||
}, data); | ||
} | ||
export function transactionObject(data) { | ||
@@ -249,0 +244,0 @@ return Object.assign({ |
@@ -8,1 +8,2 @@ "use strict"; | ||
export const reEmail = /(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])/; | ||
export const reAdminEmail = /.*@adventurebucketlist.com/; |
@@ -5,2 +5,2 @@ "use strict"; | ||
export const phoneNumber = "+6281239198760"; // real number | ||
export const phoneNumber = "+380678682183"; // real number |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26871
1014