indicative
Advanced tools
Comparing version 7.4.0 to 7.4.1
{ | ||
"name": "indicative", | ||
"version": "7.4.0", | ||
"version": "7.4.1", | ||
"description": "Concise data validation library for Node.js and browsers", | ||
@@ -84,7 +84,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"indicative-compiler": "^7.2.0", | ||
"indicative-formatters": "^7.2.2", | ||
"indicative-parser": "^7.1.1", | ||
"indicative-rules": "^7.2.3" | ||
"indicative-compiler": "^7.2.1", | ||
"indicative-formatters": "^7.2.3", | ||
"indicative-parser": "^7.1.2", | ||
"indicative-rules": "^7.3.0" | ||
} | ||
} |
export declare class CacheManager<T extends any> { | ||
private _cache; | ||
private cache; | ||
set(key: string, value: T): void; | ||
get(key: string): T | undefined; | ||
} |
@@ -5,11 +5,11 @@ "use strict"; | ||
constructor() { | ||
this._cache = new Map(); | ||
this.cache = new Map(); | ||
} | ||
set(key, value) { | ||
this._cache.set(key, value); | ||
this.cache.set(key, value); | ||
} | ||
get(key) { | ||
return this._cache.get(key); | ||
return this.cache.get(key); | ||
} | ||
} | ||
exports.CacheManager = CacheManager; |
@@ -1,4 +0,3 @@ | ||
import { ErrorFormatterContract } from 'indicative-compiler'; | ||
import { ErrorCollectorFn } from 'indicative-compiler/build/src/contracts'; | ||
import { Schema, Messages, TypedSchema, ParsedTypedSchema } from 'indicative-parser'; | ||
import { ErrorFormatterContract, ErrorCollectorFn } from 'indicative-compiler'; | ||
export declare type ValidatorConfig = { | ||
@@ -5,0 +4,0 @@ cacheKey?: string; |
15223
370
Updatedindicative-compiler@^7.2.1
Updatedindicative-formatters@^7.2.3
Updatedindicative-parser@^7.1.2
Updatedindicative-rules@^7.3.0