hyapp-utils
Advanced tools
Comparing version 1.0.3 to 1.0.4
11
index.js
import Http from './src/http' | ||
let instance = null | ||
export default class Utils { | ||
constructor ({url, baseurl}) { | ||
if (!instance) { | ||
Vue.use(new Http(url, baseurl)) | ||
instance = this | ||
} | ||
return instance | ||
this.url = url | ||
this.baseurl = baseurl | ||
} | ||
install(Vue) { | ||
Vue.use(new Http(this.url, this.baseurl)) | ||
} | ||
} | ||
{ | ||
"name": "hyapp-utils", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "'hyapp utils'", | ||
@@ -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
7406
199