encore-helpers
Advanced tools
Comparing version 1.13.0 to 1.14.0
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
172999
38
855
49
6
+ Addedmoment@2.27.0
+ Addedmoment@2.27.0(transitive)