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

vxe-ajax

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vxe-ajax - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

12

index.js

@@ -1,12 +0,2 @@

import * as ajax from 'xe-ajax'
/**
* Install VxeAjax
*/
function plugin (Vue, methods) {
ajax.mixin(methods)
var XEAjax = ajax.constructor
Object.defineProperty(Vue, 'ajax', function () {
XEAjax.context = window
return XEAjax
})
function plugin (Vue, XEAjax) {
Object.defineProperties(Vue.prototype, {

@@ -13,0 +3,0 @@ $ajax: {

2

package.json
{
"name": "vxe-ajax",
"version": "1.0.7",
"version": "1.0.8",
"description": "vxe-ajax 用于Vue全局安装xe-ajax",

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

@@ -12,5 +12,6 @@ # vxe-ajax 用于Vue全局安装xe-ajax

import Vue from 'vue'
import XEAjax from 'xe-ajax'
import VXEAjax from 'vxe-ajax'
Vue.use(VXEAjax)
Vue.use(VXEAjax, XEAjax)

@@ -28,6 +29,8 @@ // 在Vue实例中使用

import Vue from 'vue'
import XEAjax from 'xe-ajax'
import VXEAjax from 'vxe-ajax'
import customs from './customs' // ./customs.js export function custom1 () {}
Vue.use(VXEAjax, customs)
XEAjax.mixin(customs)
Vue.use(VXEAjax, XEAjax)

@@ -34,0 +37,0 @@ // 调用自定义扩展函数

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