Huge News!Announcing our $40M Series B led by Abstract Ventures.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.13.0 to 1.14.0

dist/services/data-attributes-validator/constants/error-messages.d.ts

2

dist/index.d.ts
import './typings';
export { mapDataConfig } from './mappers';
export { BEMClassGenerator, DeviceDetector, Logger, LoggerOutputType, PublisherSubscriber, } from './services';
export { BEMClassGenerator, DeviceDetector, Logger, LoggerOutputType, PublisherSubscriber, dataAttributesValidator, } from './services';
export { truncate, withDeferredRendering, renderWidget, getLabels, loadCSS, loadJS, Labels, LabelsConfig, } from './utils';
export { getProductPriceDetails, getCurrencySymbol, getFormattedPrice } from './utils';
export * from './typings';

@@ -6,1 +6,2 @@ import 'custom-event-polyfill';

export { PublisherSubscriber } from './publisher-subscriber';
export { dataAttributesValidator } from './data-attributes-validator';
export interface StringDictionary {
[key: string]: string;
}
export declare type Settings = ArraySettings | DateSettings | TimeSettings | NumberSettings;
export interface ArraySettings {
availableOptions: string[];
}
export interface DateSettings {
expectedDateFormat?: string;
}
export interface TimeSettings {
expectedTimeFormat?: string;
}
export interface NumberSettings {
numberRangeStart?: number;
numberRangeEnd?: number;
}
{
"name": "encore-helpers",
"version": "1.13.0",
"version": "1.14.0",
"main": "dist/index.js",

@@ -14,3 +14,3 @@ "types": "dist/index.d.ts",

"scripts": {
"build": "npm-run-all build-ts",
"build": "npm-run-all test-coverage build-ts",
"build-ts": "webpack --config webpack/webpack.build.js --progress",

@@ -32,2 +32,3 @@ "build-info": "webpack --config webpack/webpack.info.js",

"mobile-detect": "1.4.4",
"moment": "2.27.0",
"raven-js": "3.27.2",

@@ -34,0 +35,0 @@ "shave": "2.5.4"

@@ -38,1 +38,12 @@ # Encore Helpers

___
### DataAttributesValidator
#### Methods
**validateUrl** - throws error with *key* if *value* is not valid url
**validateString** - throws error with *key* if *value* is not valid string
**validateJson** - throws error with *key* if *value* is not valid JSON
**validateBoolean** - throws error with *key* if *value* is not valid stringified boolean
**validateDate** - throws error with *key* if *value* is not valid stringified date
**validateTime** - throws error with *key* if *value* is not valid time
**validateEnum** - throws error with *key* if *value* is not excected in provided Enum values available
**validateNumber** - throws error with *key* if *value* is not valid stringified number

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