@live-change/framework
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -62,3 +62,4 @@ function getValidator(validation, context) { | ||
action.execute = async (...args) => { | ||
return validate(args[0], validators, { source: action, action, service, app, ...args[1] }).then(() => | ||
const context = args[1] | ||
return validate(args[0], validators, { source: action, action, service, app, ...context }).then(() => | ||
oldExec.apply(action, args) | ||
@@ -76,3 +77,4 @@ ) | ||
view.read = async (...args) => { | ||
return validate(args[0], validators, { source: view, view, service, app, ...args[1] }).then(() => | ||
const context = args[1] | ||
return validate(args[0], validators, { source: view, view, service, app, ...context }).then(() => | ||
oldRead.apply(view, args) | ||
@@ -84,3 +86,4 @@ ) | ||
view.fetch = async (...args) => { | ||
return validate(args[0], validators, { source: view, view, service, app, ...args[1] }).then(() => | ||
const context = args[1] | ||
return validate(args[0], validators, { source: view, view, service, app, ...context }).then(() => | ||
oldFetch.apply(view, args) | ||
@@ -87,0 +90,0 @@ ) |
{ | ||
"name": "@live-change/framework", | ||
"version": "0.5.4", | ||
"version": "0.5.5", | ||
"description": "Live Change Framework - ultimate solution for real time mobile/web apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158068
4291