Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

betterbe

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

betterbe - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

2

dist/boolean.d.ts

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc