Comparing version
import { dryvProxyHandler } from './dryvProxyHandler'; | ||
import { defaultDryvOptions } from './defaultDryvOptions'; | ||
import { isDryvProxy } from '../core'; | ||
import { isDryvProxy } from '@/core'; | ||
export function dryvProxy(model, field, session, options) { | ||
@@ -5,0 +5,0 @@ if (!model) { |
import { dryvProxy, isDryvProxy } from '.'; | ||
import { isDryvValidatable } from '../core'; | ||
import { isDryvValidatable } from '@/core'; | ||
import { dryvValidatableObject } from './dryvValidatableObject'; | ||
@@ -20,3 +20,3 @@ import { dryvValidatableValue } from './dryvValidatableValue'; | ||
let resultValue; | ||
if (typeof originalValue === 'object') { | ||
if (originalValue && typeof originalValue === 'object') { | ||
resultValue = ensureObjectProxy(originalValue, field, receiver, session); | ||
@@ -23,0 +23,0 @@ if (resultValue !== originalValue) { |
@@ -10,4 +10,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
import { isDryvValidatable } from '../core'; | ||
import { dryvValidatableValue } from '../core/dryvValidatableValue'; | ||
import { isDryvValidatable } from '@/core'; | ||
import { dryvValidatableValue } from '@/core/dryvValidatableValue'; | ||
export function dryvValidatableObject(field, parentOrSession, model, options) { | ||
@@ -14,0 +14,0 @@ let _parent = isDryvValidatable(parentOrSession) |
@@ -10,4 +10,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
import { isDryvProxy, isDryvValidatable } from '../core'; | ||
import { getMemberByPath } from '../core/getMemberByPath'; | ||
import { isDryvProxy, isDryvValidatable } from '@/core'; | ||
import { getMemberByPath } from '@/core/getMemberByPath'; | ||
export function dryvValidationSession(options, ruleSet) { | ||
@@ -14,0 +14,0 @@ if (!options.callServer) { |
{ | ||
"name": "dryvjs", | ||
"version": "1.0.0-pre-1", | ||
"version": "1.0.0-pre-2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
59528
0.04%