New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dryvjs

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dryvjs - npm Package Compare versions

Comparing version 1.0.0-pre-62 to 1.0.0-pre-63

dist/createValidator.d.ts

9

dist/DryvObjectValidator.js

@@ -10,3 +10,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
import { createValidator } from './';
import { createValidator, isDryvArrayValidator, isDryvObjectValidator, isDryvFieldValidator } from './';
import { dryvEditingObject, dryvValidationObject, observableObjectProxy } from './internal';

@@ -39,3 +39,8 @@ import { DryvComplexValidator } from './DryvComplexValidator';

}
if (validator === undefined) {
const isObject = typeof event.newValue === 'object';
const isArray = Array.isArray(event.newValue);
if (validator === undefined ||
(isArray && !isDryvArrayValidator(validator)) ||
(isObject && !isDryvObjectValidator(validator)) ||
(!isObject && !isArray && !isDryvFieldValidator(validator))) {
validator = createValidator(this, event.newValue, proxy, event.field, this.session, this.options);

@@ -42,0 +47,0 @@ this.fields[event.field] = validator;

@@ -1,2 +0,2 @@

import { DryvValidator, DryvFieldValidator, DryvComplexValidator, DryvObjectValidator, DryvValidationArray } from './.';
import { DryvValidator, DryvFieldValidator, DryvComplexValidator, DryvObjectValidator, DryvArrayValidator } from './.';
export declare function isDryvValidator(value: any | DryvValidator): value is DryvValidator;

@@ -6,2 +6,2 @@ export declare function isDryvFieldValidator(value: any | DryvFieldValidator): value is DryvFieldValidator;

export declare function isDryvObjectValidator(value: any | DryvObjectValidator): value is DryvObjectValidator;
export declare function isDryvValidationArray(value: any | DryvValidationArray): value is DryvValidationArray;
export declare function isDryvArrayValidator(value: any | DryvArrayValidator): value is DryvArrayValidator;

@@ -13,5 +13,5 @@ export function isDryvValidator(value) {

}
export function isDryvValidationArray(value) {
return value === null || value === void 0 ? void 0 : value.$isDryvValidationArray;
export function isDryvArrayValidator(value) {
return value === null || value === void 0 ? void 0 : value.$isDryvArrayValidator;
}
//# sourceMappingURL=type-checks.js.map
{
"name": "dryvjs",
"version": "1.0.0-pre-62",
"version": "1.0.0-pre-63",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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