Comparing version 1.4.7 to 1.4.8
/** | ||
* vxe-ajax.js v1.4.6 | ||
* vxe-ajax.js v1.4.8 | ||
* (c) 2017-2018 Xu Liangzhan | ||
@@ -8,13 +8,13 @@ * ISC License. | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() | ||
: typeof define === 'function' && define.amd ? define(factory) | ||
: (global.VXEAjax = factory()) | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||
typeof define === 'function' && define.amd ? define(factory) : | ||
(global.VXEAjax = factory()); | ||
}(this, function () { | ||
'use strict' | ||
function bindPromiseContext (callback, context) { | ||
function bindPromiseContext(callback, context) { | ||
return typeof callback === 'function' ? callback.bind(context) : callback | ||
} | ||
function XEPromise (executor, context) { | ||
function XEPromise(executor, context) { | ||
this.promise = executor instanceof Promise ? executor : new Promise(executor.bind(context)) | ||
@@ -48,3 +48,3 @@ this.context = context | ||
function VXEAjax (Vue, XEAjax, options) { | ||
function VXEAjax(Vue, XEAjax, options) { | ||
if (options && (options === true || options.context === true)) { | ||
@@ -63,3 +63,4 @@ Object.defineProperty(Vue.prototype, '$ajax', { | ||
return VXEAjax | ||
})) |
/** | ||
* vxe-ajax.js v1.4.6 | ||
* vxe-ajax.js v1.4.8 | ||
* (c) 2017-2018 Xu Liangzhan | ||
@@ -4,0 +4,0 @@ * ISC License. |
{ | ||
"name": "vxe-ajax", | ||
"version": "1.4.7", | ||
"version": "1.4.8", | ||
"description": "A small wrapper for integrating xe-ajax to Vuejs.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,4 +19,4 @@ # vxe-ajax | ||
<script src="https://cdn.jsdelivr.net/npm/vue"></script> | ||
<script src="https://unpkg.com/xe-ajax/dist/xe-ajax.min.js"></script> | ||
<script src="https://unpkg.com/vxe-ajax/dist/vxe-ajax.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/xe-ajax"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/vxe-ajax"></script> | ||
``` | ||
@@ -23,0 +23,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
8701