vue-computed-promise
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "vue-computed-promise", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Plugin for Vue.js, allows promises to be returned for computed properties", | ||
"main": "vue-computed-promise.js", | ||
"scripts": { | ||
"test": "node_modules/nightwatch/bin/nightwatch" | ||
}, | ||
@@ -23,5 +24,7 @@ "repository": { | ||
"devDependencies": { | ||
"geckodriver": "^1.4.0", | ||
"nightwatch": "^0.9.14", | ||
"selenium-server-standalone-jar": "3.3.1" | ||
}, | ||
"dependencies": { | ||
} | ||
"dependencies": {} | ||
} |
@@ -33,3 +33,9 @@ (function (global, factory) { | ||
let data = this.$data; | ||
let result = oldComputed[key].call(this); | ||
let result; | ||
// Computed property can be either object or function | ||
if (typeof oldComputed[key] === "object") { | ||
result = oldComputed[key]; | ||
} else { | ||
result = oldComputed[key].call(this); | ||
} | ||
@@ -36,0 +42,0 @@ if(result && typeof result === "function") { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
10615
8
134
3