Socket
Socket
Sign inDemoInstall

validation.ts

Package Overview
Dependencies
0
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.28 to 0.0.29

4

commonjs/validation.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc