validation.ts
Advanced tools
Comparing version 0.0.28 to 0.0.29
@@ -347,7 +347,7 @@ "use strict"; | ||
function recursion(definition) { | ||
var Self = __assign(__assign({}, validatorMethods), { validate: function (v, config, c) { | ||
var Self = __assign({ validate: function (v, config, c) { | ||
if (config === void 0) { config = defaultConfig; } | ||
if (c === void 0) { c = rootContext; } | ||
return Result.validate(v, config, c); | ||
} }); | ||
} }, validatorMethods); | ||
var Result = definition(Self); | ||
@@ -354,0 +354,0 @@ return Result; |
@@ -252,3 +252,3 @@ //-------------------------------------- | ||
export function recursion(definition) { | ||
const Self = Object.assign(Object.assign({}, validatorMethods), { validate: (v, config = defaultConfig, c = rootContext) => Result.validate(v, config, c) }); | ||
const Self = Object.assign({ validate: (v, config = defaultConfig, c = rootContext) => Result.validate(v, config, c) }, validatorMethods); | ||
const Result = definition(Self); | ||
@@ -255,0 +255,0 @@ return Result; |
{ | ||
"name": "validation.ts", | ||
"version": "0.0.28", | ||
"version": "0.0.29", | ||
"sideEffects": false, | ||
"description": "Validation for TypeScript", | ||
@@ -5,0 +6,0 @@ "license": "MIT", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
53833