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

@ephox/boulder

Package Overview
Dependencies
Maintainers
2
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ephox/boulder - npm Package Compare versions

Comparing version 7.1.5 to 7.1.6

2

lib/main/ts/ephox/boulder/alien/SimpleResult.d.ts
import { Result } from '@ephox/katamari';
export declare type SimpleResult<E, A> = SimpleError<E> | SimpleValue<A>;
export type SimpleResult<E, A> = SimpleError<E> | SimpleValue<A>;
export declare enum SimpleResultType {

@@ -4,0 +4,0 @@ Error = 0,

@@ -8,3 +8,3 @@ export declare const enum FieldPresenceTag {

}
declare type Callback = (...rest: any[]) => any;
type Callback = (...rest: any[]) => any;
interface FieldPresenceData<D extends FieldPresenceTag, T> {

@@ -14,8 +14,8 @@ readonly tag: D;

}
declare type RequiredData = FieldPresenceData<FieldPresenceTag.Required, {}>;
declare type DefaultedThunkData = FieldPresenceData<FieldPresenceTag.DefaultedThunk, Callback>;
declare type OptionData = FieldPresenceData<FieldPresenceTag.Option, {}>;
declare type DefaultedOptionThunkData = FieldPresenceData<FieldPresenceTag.DefaultedOptionThunk, Callback>;
declare type MergeWithThunkData = FieldPresenceData<FieldPresenceTag.MergeWithThunk, Callback>;
export declare type FieldPresence = RequiredData | DefaultedThunkData | OptionData | DefaultedOptionThunkData | MergeWithThunkData;
type RequiredData = FieldPresenceData<FieldPresenceTag.Required, {}>;
type DefaultedThunkData = FieldPresenceData<FieldPresenceTag.DefaultedThunk, Callback>;
type OptionData = FieldPresenceData<FieldPresenceTag.Option, {}>;
type DefaultedOptionThunkData = FieldPresenceData<FieldPresenceTag.DefaultedOptionThunk, Callback>;
type MergeWithThunkData = FieldPresenceData<FieldPresenceTag.MergeWithThunk, Callback>;
export type FieldPresence = RequiredData | DefaultedThunkData | OptionData | DefaultedOptionThunkData | MergeWithThunkData;
declare const required: () => RequiredData;

@@ -22,0 +22,0 @@ declare const defaultedThunk: (fallbackThunk: Callback) => DefaultedThunkData;

import * as FieldProcessor from '../core/FieldProcessor';
import { StructureProcessor } from '../core/StructureProcessor';
import * as FieldPresence from './FieldPresence';
declare type FieldProcessor = FieldProcessor.FieldProcessor;
type FieldProcessor = FieldProcessor.FieldProcessor;
declare const field: (key: string, newKey: string, presence: FieldPresence.FieldPresence, prop: StructureProcessor) => FieldProcessor.Field;

@@ -6,0 +6,0 @@ declare const customField: (newKey: string, instantiator: (obj: any) => any) => FieldProcessor.CustomField;

@@ -19,5 +19,5 @@ import { FieldPresence } from '../api/FieldPresence';

}
export declare type FieldProcessor = Field | CustomField;
export declare type FieldValueProcessor<T> = (key: string, newKey: string, presence: FieldPresence, prop: StructureProcessor) => T;
export declare type CustomFieldValueProcessor<T> = (newKey: string, instantiator: (obj: any) => any) => T;
export type FieldProcessor = Field | CustomField;
export type FieldValueProcessor<T> = (key: string, newKey: string, presence: FieldPresence, prop: StructureProcessor) => T;
export type CustomFieldValueProcessor<T> = (newKey: string, instantiator: (obj: any) => any) => T;
declare const field: (key: string, newKey: string, presence: FieldPresence, prop: StructureProcessor) => Field;

@@ -24,0 +24,0 @@ declare const customField: (newKey: string, instantiator: (obj: any) => any) => CustomField;

import { SimpleResult } from '../alien/SimpleResult';
import * as FieldProcessor from './FieldProcessor';
import * as SchemaError from './SchemaError';
declare type FieldProcessor = FieldProcessor.FieldProcessor;
declare type SchemaError = SchemaError.SchemaError;
export declare type ValueValidator = (a: any) => SimpleResult<string, any>;
export declare type PropExtractor = (path: string[], val: any) => SimpleResult<SchemaError[], any>;
type FieldProcessor = FieldProcessor.FieldProcessor;
type SchemaError = SchemaError.SchemaError;
export type ValueValidator = (a: any) => SimpleResult<string, any>;
export type PropExtractor = (path: string[], val: any) => SimpleResult<SchemaError[], any>;
export interface StructureProcessor {

@@ -9,0 +9,0 @@ readonly extract: PropExtractor;

{
"name": "@ephox/boulder",
"version": "7.1.5",
"version": "7.1.6",
"description": "Basic javascript object validation",
"dependencies": {
"@ephox/katamari": "^9.1.5"
"@ephox/katamari": "^9.1.6"
},
"devDependencies": {
"@ephox/katamari-assertions": "^4.0.9"
"@ephox/agar": "^8.0.1",
"@ephox/katamari-assertions": "^4.0.10"
},

@@ -15,3 +16,4 @@ "scripts": {

"lint": "eslint --config ../../.eslintrc.json src/**/*.ts",
"prepublishOnly": "tsc -b"
"prepublishOnly": "tsc -b",
"build": "tsc"
},

@@ -42,3 +44,3 @@ "repository": {

"types": "./lib/main/ts/ephox/boulder/api/Main.d.ts",
"gitHead": "d0a354c4921b1ce815cfb36cc72ea3a309932fee"
"gitHead": "8a7b799033af4058818ea17e27ad36c58e2402f9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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