Rocky_Mountain_Vending/.pnpm-store/v10/files/20/4bcf792a3cf0f89a1cb982ee95515c6122f5991c59c2626381a6b40327a8621881f1cc6c5bb72a7ff3155ee0e38bd23d0eb58eda913566b1c505bd3978855f
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

25 lines
808 B
Text

const format = /^-?\d*(\.\d+)?$/;
export class NumericValue {
string;
type;
constructor(string, type) {
this.string = string;
this.type = type;
if (!format.test(string)) {
throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`);
}
}
toString() {
return this.string;
}
static [Symbol.hasInstance](object) {
if (!object || typeof object !== "object") {
return false;
}
const _nv = object;
return NumericValue.prototype.isPrototypeOf(object) || (_nv.type === "bigDecimal" && format.test(_nv.string));
}
}
export function nv(input) {
return new NumericValue(String(input), "bigDecimal");
}