@imedx/ics-imedx-core
Advanced tools
Comparing version 0.0.1-beta.3 to 0.0.1-beta.4
@@ -1,2 +0,2 @@ | ||
var e=function(){function e(){this.cache={}}return e.prototype.set=function(e,t,r){var n=(new Date).getTime()+1e3*r;this.cache[e]={value:t,expireAt:n}},e.prototype.get=function(e){var t=this.cache[e];return t&&t.expireAt>(new Date).getTime()?t.value:null},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e}(),t=function(){function t(){this.__cache=new e}return t.prototype.get=function(e,t){var r=this,a=this.__cache.get(e);return a?Promise.resolve(a):n.request({url:"basic/param/value/list",method:"post",data:[{code:e}]}).then((function(n){return r.__cache.set(e,n.data[0],t),Promise.resolve(n.data[0])}))},t.prototype.getTradeChannel=function(e,t){var r=this,a="__TRADE_CHANNEL",o=this.__cache.get(a);return o?Promise.resolve(o):n.request({url:"/account/trade-channel/list",method:"get",param:{tradeType:e}}).then((function(e){return r.__cache.set(a,e.data,t),Promise.resolve(e.data)}))},t}(),r=function(){this.param=new t},n=function(){function e(){}return e.use=function(e){var t=e.request;this.request=t},e.request={},e.system=new r,e}();export{n as default}; | ||
var e=function(){function e(){this.cache={}}return e.prototype.set=function(e,t,n){var r=(new Date).getTime()+1e3*n;this.cache[e]={value:t,expireAt:r}},e.prototype.get=function(e){var t=this.cache[e];return t&&t.expireAt>(new Date).getTime()?t.value:null},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e}(),t=function(){function t(){this.__cache=new e}return t.prototype.get=function(e,t){var n=this,a=this.__cache.get(e);return a?Promise.resolve(a):r.request({url:"basic/param/value/list",method:"post",data:[{code:e}]}).then((function(r){return n.__cache.set(e,r.data[0],t),Promise.resolve(r.data[0])}))},t.prototype.getTradeChannel=function(e,t){var n=this,a="__TRADE_CHANNEL",o=this.__cache.get(a);return o?Promise.resolve(o):r.request({url:"/account/trade-channel/list?tradeType=".concat(e),method:"post"}).then((function(e){return n.__cache.set(a,e.data,t),Promise.resolve(e.data)}))},t}(),n=function(){this.param=new t},r=function(){function e(){}return e.use=function(e){var t=e.request;this.request=t},e.request={},e.system=new n,e}();export{r as default}; | ||
//# sourceMappingURL=ics-imedx-core.es5.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).icsImedxCore=t()}(this,(function(){"use strict";var e=function(){function e(){this.cache={}}return e.prototype.set=function(e,t,n){var r=(new Date).getTime()+1e3*n;this.cache[e]={value:t,expireAt:r}},e.prototype.get=function(e){var t=this.cache[e];return t&&t.expireAt>(new Date).getTime()?t.value:null},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e}(),t=function(){function t(){this.__cache=new e}return t.prototype.get=function(e,t){var n=this,o=this.__cache.get(e);return o?Promise.resolve(o):r.request({url:"basic/param/value/list",method:"post",data:[{code:e}]}).then((function(r){return n.__cache.set(e,r.data[0],t),Promise.resolve(r.data[0])}))},t.prototype.getTradeChannel=function(e,t){var n=this,o="__TRADE_CHANNEL",i=this.__cache.get(o);return i?Promise.resolve(i):r.request({url:"/account/trade-channel/list",method:"get",param:{tradeType:e}}).then((function(e){return n.__cache.set(o,e.data,t),Promise.resolve(e.data)}))},t}(),n=function(){this.param=new t},r=function(){function e(){}return e.use=function(e){var t=e.request;this.request=t},e.request={},e.system=new n,e}();return r})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).icsImedxCore=t()}(this,(function(){"use strict";var e=function(){function e(){this.cache={}}return e.prototype.set=function(e,t,n){var o=(new Date).getTime()+1e3*n;this.cache[e]={value:t,expireAt:o}},e.prototype.get=function(e){var t=this.cache[e];return t&&t.expireAt>(new Date).getTime()?t.value:null},e.prototype.remove=function(e){delete this.cache[e]},e.prototype.clear=function(){this.cache={}},e}(),t=function(){function t(){this.__cache=new e}return t.prototype.get=function(e,t){var n=this,r=this.__cache.get(e);return r?Promise.resolve(r):o.request({url:"basic/param/value/list",method:"post",data:[{code:e}]}).then((function(o){return n.__cache.set(e,o.data[0],t),Promise.resolve(o.data[0])}))},t.prototype.getTradeChannel=function(e,t){var n=this,r="__TRADE_CHANNEL",i=this.__cache.get(r);return i?Promise.resolve(i):o.request({url:"/account/trade-channel/list?tradeType=".concat(e),method:"post"}).then((function(e){return n.__cache.set(r,e.data,t),Promise.resolve(e.data)}))},t}(),n=function(){this.param=new t},o=function(){function e(){}return e.use=function(e){var t=e.request;this.request=t},e.request={},e.system=new n,e}();return o})); | ||
//# sourceMappingURL=ics-imedx-core.umd.js.map |
@@ -46,5 +46,4 @@ "use strict"; | ||
return imedx_1.default.request({ | ||
url: '/account/trade-channel/list', | ||
method: 'get', | ||
param: { tradeType: tradeType }, | ||
url: "/account/trade-channel/list?tradeType=".concat(tradeType), | ||
method: 'post', | ||
}).then(function (res) { | ||
@@ -51,0 +50,0 @@ _this.__cache.set(key, res.data, expirationTime); |
@@ -6,3 +6,3 @@ { | ||
"title": "iMedx", | ||
"version": "0.0.1-beta.3", | ||
"version": "0.0.1-beta.4", | ||
"description": "iMedx核心功能js封装", | ||
@@ -9,0 +9,0 @@ "author": "文贝", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
22486
285