@cerebral/fluent
Advanced tools
Comparing version 1.0.0-1518548751679 to 1.0.0-1518720412235
@@ -17,3 +17,3 @@ import { extractModuleProp, isObject, BaseModel } from 'cerebral/internal'; | ||
function cleanPath(state, key, path) { | ||
const pathCopy = path.concat(key); | ||
const pathCopy = key ? path.concat(key) : path.slice(); | ||
let isValid = false; | ||
@@ -49,3 +49,3 @@ while (!isValid) { | ||
case 'size': | ||
path = cleanPath(state, key, path); | ||
path = cleanPath(state, null, path); | ||
return target[key]; | ||
@@ -64,3 +64,3 @@ case 'forEach': | ||
const value = originalFunc.apply(target, args); | ||
path = cleanPath(state, key, path); | ||
path = cleanPath(state, null, path); | ||
return value; | ||
@@ -85,3 +85,3 @@ }; | ||
}, execution, functionDetails, props); | ||
path = cleanPath(state, key, path); | ||
path = cleanPath(state, args[0], path); | ||
return originalFunction.apply(target, args); | ||
@@ -98,3 +98,3 @@ }; | ||
}, execution, functionDetails, props); | ||
path = cleanPath(state, key, path); | ||
path = cleanPath(state, null, path); | ||
return originalFunction.apply(target, args); | ||
@@ -111,3 +111,3 @@ }; | ||
}, execution, functionDetails, props); | ||
path = cleanPath(state, key, path); | ||
path = cleanPath(state, null, path); | ||
return originalFunction.apply(target, args); | ||
@@ -124,3 +124,3 @@ }; | ||
}, execution, functionDetails, props); | ||
path = cleanPath(state, key, path); | ||
path = cleanPath(state, null, path); | ||
return originalFunction.apply(target, args); | ||
@@ -136,3 +136,3 @@ }; | ||
}, execution, functionDetails, props); | ||
path = cleanPath(state, key, path); | ||
path = cleanPath(state, null, path); | ||
return originalFunction.apply(target, args); | ||
@@ -139,0 +139,0 @@ }; |
{ | ||
"name": "@cerebral/fluent", | ||
"version": "1.0.0-1518548751679", | ||
"version": "1.0.0-1518720412235", | ||
"description": "Makes Cerebral typescript friendly", | ||
@@ -27,3 +27,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"cerebral": "^4.2.0-1518548751679", | ||
"cerebral": "^4.2.0-1518720412235", | ||
"mobx": "^3.4.1" | ||
@@ -30,0 +30,0 @@ }, |
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
60450