New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

encore-helpers

Package Overview
Dependencies
Maintainers
6
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

encore-helpers - npm Package Compare versions

Comparing version 1.14.0 to 1.15.0

10

dist/services/data-attributes-validator/data-attributes-validator.d.ts

@@ -1,7 +0,7 @@

import { DateSettings, ArraySettings, NumberSettings, TimeSettings } from '../../typings';
import { DateSettings, ArraySettings, NumberSettings, TimeSettings, SharedSettings } from '../../typings';
export declare const dataAttributesValidator: {
validateUrl: (key: string, value: string, isRequired: boolean) => void;
validateString: (key: string, value: string, isRequired: boolean) => void;
validateJson: (key: string, value: string, isRequired: boolean) => void;
validateBoolean: (key: string, value: string, isRequired: boolean) => void;
validateUrl: (key: string, value: string, isRequired: boolean, settings?: SharedSettings) => void;
validateString: (key: string, value: string, isRequired: boolean, settings?: SharedSettings) => void;
validateBoolean: (key: string, value: string, isRequired: boolean, settings?: SharedSettings) => void;
validateJson: (key: string, value: string, isRequired: boolean, settings?: SharedSettings) => void;
validateDate: (key: string, value: string, isRequired: boolean, settings?: DateSettings) => void;

@@ -8,0 +8,0 @@ validateTime: (key: string, value: string, isRequired: boolean, settings?: TimeSettings) => void;

@@ -1,12 +0,12 @@

import { Settings, DateSettings, ArraySettings, NumberSettings, TimeSettings } from '../../../typings';
import { Settings, DateSettings, ArraySettings, NumberSettings, TimeSettings, SharedSettings } from '../../../typings';
declare type CustomField = (key: string, value: string, settings?: Settings) => void;
export declare const validateRequire: (validateCustomField: CustomField, key: any, value: any, isRequired: any, settings?: Settings) => void;
export declare const validateDate: (key: string, value: string, settings?: DateSettings) => void;
export declare const validateTime: (key: string, value: string, settings?: TimeSettings) => void;
export declare const validateUrl: (key: string, value: string) => void;
export declare const validateString: (key: string, value: string) => void;
export declare const validateEnum: (key: string, value: string, settings: ArraySettings) => void;
export declare const validateJson: (key: string, value: string) => void;
export declare const validateNumber: (key: string, value: string, settings?: NumberSettings) => void;
export declare const validateBoolean: (key: string, value: string) => void;
export declare const validateDate: (key: string, value: string, settings?: DateSettings) => Error;
export declare const validateTime: (key: string, value: string, settings?: TimeSettings) => Error;
export declare const validateUrl: (key: string, value: string, settings?: SharedSettings) => Error;
export declare const validateString: (key: string, value: string, settings?: SharedSettings) => Error;
export declare const validateEnum: (key: string, value: string, settings: ArraySettings) => Error;
export declare const validateJson: (key: string, value: string, settings?: SharedSettings) => Error;
export declare const validateNumber: (key: string, value: string, settings?: NumberSettings) => Error;
export declare const validateBoolean: (key: string, value: string, settings?: SharedSettings) => Error;
export {};
export interface StringDictionary {
[key: string]: string;
}
export declare type Settings = ArraySettings | DateSettings | TimeSettings | NumberSettings;
export interface ArraySettings {
export declare type Settings = ArraySettings | DateSettings | TimeSettings | NumberSettings | SharedSettings;
export interface SharedSettings {
validationCallback?: (value: string, options?: string[]) => Error;
}
export interface ArraySettings extends SharedSettings {
availableOptions: string[];
}
export interface DateSettings {
export interface DateSettings extends SharedSettings {
expectedDateFormat?: string;
}
export interface TimeSettings {
export interface TimeSettings extends SharedSettings {
expectedTimeFormat?: string;
}
export interface NumberSettings {
numberRangeStart?: number;
numberRangeEnd?: number;
export interface NumberSettings extends SharedSettings {
min?: number;
max?: number;
}
{
"name": "encore-helpers",
"version": "1.14.0",
"version": "1.15.0",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

Sorry, the diff of this file is too big to display

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