vue-async-computed
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "vue-async-computed", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Async computed properties for Vue", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -48,2 +48,7 @@ <big><h1 align="center">vue-async-computed</h1></big> | ||
return Vue.http.get('/get-username-by-id', { id: this.userId }) | ||
// Assuming the endpoint return JSON along the lines of | ||
// { | ||
// "username": "username-goes-here" | ||
// } | ||
.then(response => response.data.username) | ||
} | ||
@@ -64,2 +69,3 @@ } | ||
return Vue.http.get('/get-username-by-id', { id: this.userId }) | ||
.then(response => response.data.username) | ||
} | ||
@@ -66,0 +72,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
9960
174