Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hyapp-utils

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyapp-utils - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

5

index.js

@@ -5,8 +5,7 @@ import Tools from './src/tools'

class Utils {
constructor ({url, baseurl}) {
this.url = url
constructor ({baseurl}) {
this.baseurl = baseurl
}
install(Vue) {
Vue.use(new Http(this.url, this.baseurl))
Vue.use(new Http(this.baseurl))
}

@@ -13,0 +12,0 @@ }

2

package.json
{
"name": "hyapp-utils",
"version": "1.0.7",
"version": "1.0.8",
"description": "'hyapp utils'",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -23,4 +23,4 @@ import axios from 'axios'

export default class Http {
constructor({url, baseUrl = ''}){
this._url = baseUrl+ url
constructor({baseUrl = ''}){
this.baseUrl = baseUrl
return this

@@ -33,3 +33,3 @@ }

return new Promise((resolve, reject) => {
axios.get(self._url, options.config = {}).then(rst => {
axios.get(this.baseUrl+options.url, options.config = {}).then(rst => {
errorTipHandle(rst)

@@ -43,5 +43,5 @@ resolve(rst)

Vue.prototype.$post = options => {
const {data, config} = options
const {url, data, config} = options
return new Promise((resolve, reject) => {
axios.post(this.url, data, config).then(rst => {
axios.post(this.baseUrl+url, data, config).then(rst => {
errorTipHandle(rst)

@@ -48,0 +48,0 @@ resolve(rst)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc