Comparing version 0.4.2 to 0.4.3
@@ -1,2 +0,2 @@ | ||
import { type BooleanValidator } from './types'; | ||
import { type BooleanValidator } from './types.js'; | ||
export interface BooleanOptions { | ||
@@ -3,0 +3,0 @@ required?: boolean; |
@@ -1,4 +0,4 @@ | ||
import { ValidationError } from './internal/ValidationError'; | ||
import { validateType } from './internal/validateType'; | ||
import { ValidatorType, } from './types'; | ||
import { ValidationError } from './internal/ValidationError.js'; | ||
import { validateType } from './internal/validateType.js'; | ||
import { ValidatorType, } from './types.js'; | ||
export const boolean = (options = {}) => { | ||
@@ -5,0 +5,0 @@ const validate = (value, path, key) => { |
@@ -1,5 +0,5 @@ | ||
export * from './boolean'; | ||
export * from './number'; | ||
export * from './object'; | ||
export * from './string'; | ||
export type * from './types'; | ||
export * from './boolean.js'; | ||
export * from './number.js'; | ||
export * from './object.js'; | ||
export * from './string.js'; | ||
export type * from './types.js'; |
@@ -1,4 +0,4 @@ | ||
export * from './boolean'; | ||
export * from './number'; | ||
export * from './object'; | ||
export * from './string'; | ||
export * from './boolean.js'; | ||
export * from './number.js'; | ||
export * from './object.js'; | ||
export * from './string.js'; |
@@ -1,2 +0,2 @@ | ||
import { ValidationError } from './ValidationError'; | ||
import { ValidationError } from './ValidationError.js'; | ||
export const validateAlphabet = (alphabet, value, path, key) => { | ||
@@ -3,0 +3,0 @@ for (const char of value) { |
@@ -1,2 +0,2 @@ | ||
import { ValidationError } from './ValidationError'; | ||
import { ValidationError } from './ValidationError.js'; | ||
export const validateType = (type, value, path, key) => { | ||
@@ -3,0 +3,0 @@ if (typeof value !== type && typeof value !== 'undefined') { |
@@ -1,2 +0,2 @@ | ||
import { NumberValidator } from './types'; | ||
import { NumberValidator } from './types.js'; | ||
export interface NumberOptions { | ||
@@ -3,0 +3,0 @@ min?: number; |
@@ -1,4 +0,4 @@ | ||
import { ValidationError } from './internal/ValidationError'; | ||
import { validateType } from './internal/validateType'; | ||
import { ValidatorType } from './types'; | ||
import { ValidationError } from './internal/ValidationError.js'; | ||
import { validateType } from './internal/validateType.js'; | ||
import { ValidatorType } from './types.js'; | ||
export const number = (options = {}) => { | ||
@@ -5,0 +5,0 @@ const validate = (value, path, key) => { |
@@ -1,2 +0,2 @@ | ||
import { Schema, TestFunction, type ObjectValidator } from './types'; | ||
import { Schema, TestFunction, type ObjectValidator } from './types.js'; | ||
export interface ObjectOptions<T> { | ||
@@ -3,0 +3,0 @@ test?: TestFunction<T>; |
@@ -1,4 +0,4 @@ | ||
import { ValidationError } from './internal/ValidationError'; | ||
import { validateType } from './internal/validateType'; | ||
import { ValidatorType, } from './types'; | ||
import { ValidationError } from './internal/ValidationError.js'; | ||
import { validateType } from './internal/validateType.js'; | ||
import { ValidatorType, } from './types.js'; | ||
export const object = (schema, options = {}) => { | ||
@@ -5,0 +5,0 @@ const validate = (value, path, key) => { |
@@ -1,2 +0,2 @@ | ||
import { StringValidator } from './types'; | ||
import { StringValidator } from './types.js'; | ||
export interface StringOptionsBase { | ||
@@ -3,0 +3,0 @@ minLength?: number; |
@@ -1,5 +0,5 @@ | ||
import { ValidationError } from './internal/ValidationError'; | ||
import { validateAlphabet } from './internal/validateAlphabet'; | ||
import { validateType } from './internal/validateType'; | ||
import { ValidatorType } from './types'; | ||
import { ValidationError } from './internal/ValidationError.js'; | ||
import { validateAlphabet } from './internal/validateAlphabet.js'; | ||
import { validateType } from './internal/validateType.js'; | ||
import { ValidatorType } from './types.js'; | ||
export const string = (options = {}) => { | ||
@@ -6,0 +6,0 @@ const validate = (value, path, key) => { |
{ | ||
"name": "betterbe", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "exports": { |
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
12799