Socket
Socket
Sign inDemoInstall

commonly-decorators

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commonly-decorators - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

44

dist/commonly-decorators.es.js

@@ -413,23 +413,27 @@ import freezeClick from 'freeze-click';

}
return new Promise(function (resolve) {
var timer = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
var result;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, originFn.apply(this, opts)];
case 1:
result = _a.sent();
if (ReturnData.isOk(result)) {
resolve(result);
return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
var result, timer;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, originFn.apply(this, opts)];
case 1:
result = _a.sent();
if (ReturnData.isOk(result)) {
resolve(result);
return [2 /*return*/];
}
timer = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
this[pollingId] = this[pollingId].filter(function (item) { return item !== timer; });
clearTimeout(timer);
fn.apply(this, opts);
return [2 /*return*/];
}
this[pollingId] = this[pollingId].filter(function (item) { return item !== timer; });
clearTimeout(timer);
fn.apply(this, opts);
return [2 /*return*/];
}
});
}); }, intervalTime);
_this[pollingId].push(timer);
});
});
}); }, intervalTime);
this[pollingId].push(timer);
return [2 /*return*/];
}
});
}); });
};

@@ -436,0 +440,0 @@ var originOnUnload = target.onUnload;

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("freeze-click")):"function"==typeof define&&define.amd?define(["exports","freeze-click"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).commonlyDecorators={},t.freezeClick)}(this,(function(t,n){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(n),o=function(t,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},o(t,n)};function u(t,n,e,r){return new(e||(e=Promise))((function(o,u){function i(t){try{s(r.next(t))}catch(t){u(t)}}function a(t){try{s(r.throw(t))}catch(t){u(t)}}function s(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(i,a)}s((r=r.apply(t,n||[])).next())}))}function i(t,n){var e,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(t,i)}catch(t){u=[6,t],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}function a(t,n,e){if(e||2===arguments.length)for(var r,o=0,u=n.length;o<u;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function s(t){return void 0===t&&(t=1e4),function(n,e,o){var a=o.value;o.value=r.default((function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return u(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),[4,a.apply(this,n)];case 1:return[2,e.sent()];case 2:throw e.sent();case 3:return t.cancel(),[7];case 4:return[2]}}))}))}),t)}}function c(t,n,e){return function(r,o){var s=r[t];"function"==typeof s||"function"==typeof(null==s?void 0:s.then)?r[t]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return u(this,void 0,void 0,(function(){var r;return i(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),r=(t[0]?null==e?void 0:e.map((function(n){return t[0][n]})):[])||[],this[o]=new(n.bind.apply(n,a([void 0],r,!1))),[4,s.apply(this,t)];case 1:return[2,u.sent()];case 2:throw u.sent();case 3:return[2]}}))}))}:r[t]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return u(this,void 0,void 0,(function(){var r;return i(this,(function(u){try{r=(t[0]?null==e?void 0:e.map((function(n){return t[0][n]})):[])||[],this[o]=new(n.bind.apply(n,a([void 0],r,!1)))}catch(t){console.error(t)}return[2]}))}))}}}function l(t,n){return function(e,r){var o=e[t];"function"==typeof o||"function"==typeof(null==o?void 0:o.then)?e[t]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return u(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),this[r]=n,[4,o.apply(this,t)];case 1:return[2,e.sent()];case 2:throw e.sent();case 3:return[2]}}))}))}:e[t]=function(){return u(this,void 0,void 0,(function(){return i(this,(function(t){try{this[r]=n}catch(t){console.error(t)}return[2]}))}))}}}var f=function(){function t(t,n,e){void 0===n&&(n=null),void 0===e&&(e="success"),this.msg="",this.extraData=null,this.status=t,this.data=n,this.msg=e}return t.prototype.getStatus=function(){return this.status},t.prototype.getData=function(){return this.data},t.prototype.getMsg=function(){return this.msg},t.prototype.setMsg=function(t){this.msg=t},t.prototype.getExtraData=function(){return this.extraData},t.prototype.setExtraData=function(t){this.extraData=t},t.isOk=function(t){return p(t)&&"ok"===t.getStatus()},t.isFail=function(t){return p(t)&&"fail"===t.getStatus()},t.isDeny=function(t){return p(t)&&"deny"===t.getStatus()},t.hasData=function(t){if(!t||"function"!=typeof t.getData)return!1;var n=t.getData();return!(null==n)},t.isNetWorkError=function(n){return t.getStatusIsFunction(n)&&"NETWORK_ERROR"===n.getStatus()||"NETWORK_ERROR"===(null==n?void 0:n.status)},t.cover=function(n,e){t[n]=e},t.success=function(n){return new t("ok",n)},t.fail=function(n){var e=new t("fail",null);return e.setMsg(n||""),e},t.exception=function(n){return new t(n.getStatus(),n.getData(),n.getMsg())},t.deny=function(n){return new t("deny",null,n||"")},t.networkError=function(n){return new t("NETWORK_ERROR",null,n||"网络异常,请重试")},t.interrupt=function(n){return new t("INTERRUPT",null,n||"程序中断,请重试")},t.isInterrupt=function(n){return"INTERRUPT"===t.getStatusValue(n)},t.cancel=function(n){return new t("CANCEL",null,n||"网络异常,请重试")},t.isCancel=function(n){return"CANCEL"===t.getStatusValue(n)},t.error=function(t){return new this("ERROR",null,t||"程序中断,请重试")},t.isError=function(n){return"ERROR"===t.getStatusValue(n)},t.getStatusIsFunction=function(t){return t&&"function"==typeof t.getStatus},t.getStatusValue=function(n){var e;return t.getStatusIsFunction(n)?n.getStatus():null!==(e=null==n?void 0:n.status)&&void 0!==e?e:""},t}();function p(t){return t&&"function"==typeof t.getStatus}function h(t,n){return void 0===t&&(t=1e3),void 0===n&&(n="__polling__"),function(e,r,o){var a=o.value;o.value=function e(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return this[n]||(this[n]=[]),Array.isArray(this[n])||(this[n]=[this[n]]),new Promise((function(s){var c=setTimeout((function(){return u(r,void 0,void 0,(function(){var t;return i(this,(function(r){switch(r.label){case 0:return[4,a.apply(this,o)];case 1:return t=r.sent(),f.isOk(t)?(s(t),[2]):(this[n]=this[n].filter((function(t){return t!==c})),clearTimeout(c),e.apply(this,o),[2])}}))}))}),t);r[n].push(c)}))};var s=e.onUnload;e.onUnload=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return u(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return this[n].forEach((function(t){clearTimeout(t)})),this[n]=null,[4,s.apply(this,t)];case 1:return[2,e.sent()]}}))}))}}}var d=Object.freeze({__proto__:null,Polling:h,Assemble:c,AssembleValue:l});var v=function(t){function n(n){var e=t.call(this,n)||this;return e.__id="ParameterDecoratorError",e.status="PARAM_ERROR",e.data=null,e.from="CheckParamRequired",e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),n.prototype.setData=function(t){this.data=t},n.prototype.getData=function(){return this.data},n.prototype.setStatus=function(t){this.status=t},n.prototype.getStatus=function(){return this.status},n.prototype.setFrom=function(t){this.from=t},n.prototype.getFrom=function(){return this.from},n.isParameterDecoratorError=function(t){return t instanceof n||(null==t?void 0:t.__id)===new n("").__id},n}(Error);var y={Required:function(t,n){return void 0===n&&(n=""),function(e,r,o){(null==e?void 0:e.__requiredData)||(e.__requiredData=new Map),e.__requiredData.set(r,{index:o,errMsg:t,propertyPath:n})}},CheckParamRequired:function(t,n,e){var r=e.value;e.value=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return u(this,void 0,void 0,(function(){var o,u,a,s,c,l;return i(this,(function(i){switch(i.label){case 0:if(o=null==t?void 0:t.__requiredData,u=o.get(n),a=Number(null==u?void 0:u.index),s=null==u?void 0:u.propertyPath,c=(null==s?void 0:s.split("."))||[],l=c.reduce((function(t,n){return null==t||!n&&0!==n||"."===n?t:null==t?void 0:t[n]}),null==e?void 0:e[a]),!isNaN(a)&&(void 0===l||""===l||null===l))throw new v((null==u?void 0:u.errMsg)||"第".concat(a+1,"个参数必传"));return[4,r.apply(this,e)];case 1:return[2,i.sent()]}}))}))}},ParameterDecoratorError:v},g={freeze:s,miniprogram:d};t.Assemble=c,t.AssembleValue=l,t.ParamDecorator=y,t.Polling=h,t.default=g,t.freeze=s,Object.defineProperty(t,"__esModule",{value:!0})}));//# sourceMappingURL=commonly-decorators.min.js.map
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("freeze-click")):"function"==typeof define&&define.amd?define(["exports","freeze-click"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).commonlyDecorators={},t.freezeClick)}(this,(function(t,n){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=e(n),o=function(t,n){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},o(t,n)};function u(t,n,e,r){return new(e||(e=Promise))((function(o,u){function i(t){try{s(r.next(t))}catch(t){u(t)}}function a(t){try{s(r.throw(t))}catch(t){u(t)}}function s(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(i,a)}s((r=r.apply(t,n||[])).next())}))}function i(t,n){var e,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;i;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=n.call(t,i)}catch(t){u=[6,t],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}function a(t,n,e){if(e||2===arguments.length)for(var r,o=0,u=n.length;o<u;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function s(t){return void 0===t&&(t=1e4),function(n,e,o){var a=o.value;o.value=r.default((function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return u(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,3,4]),[4,a.apply(this,n)];case 1:return[2,e.sent()];case 2:throw e.sent();case 3:return t.cancel(),[7];case 4:return[2]}}))}))}),t)}}function c(t,n,e){return function(r,o){var s=r[t];"function"==typeof s||"function"==typeof(null==s?void 0:s.then)?r[t]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return u(this,void 0,void 0,(function(){var r;return i(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),r=(t[0]?null==e?void 0:e.map((function(n){return t[0][n]})):[])||[],this[o]=new(n.bind.apply(n,a([void 0],r,!1))),[4,s.apply(this,t)];case 1:return[2,u.sent()];case 2:throw u.sent();case 3:return[2]}}))}))}:r[t]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return u(this,void 0,void 0,(function(){var r;return i(this,(function(u){try{r=(t[0]?null==e?void 0:e.map((function(n){return t[0][n]})):[])||[],this[o]=new(n.bind.apply(n,a([void 0],r,!1)))}catch(t){console.error(t)}return[2]}))}))}}}function l(t,n){return function(e,r){var o=e[t];"function"==typeof o||"function"==typeof(null==o?void 0:o.then)?e[t]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return u(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),this[r]=n,[4,o.apply(this,t)];case 1:return[2,e.sent()];case 2:throw e.sent();case 3:return[2]}}))}))}:e[t]=function(){return u(this,void 0,void 0,(function(){return i(this,(function(t){try{this[r]=n}catch(t){console.error(t)}return[2]}))}))}}}var f=function(){function t(t,n,e){void 0===n&&(n=null),void 0===e&&(e="success"),this.msg="",this.extraData=null,this.status=t,this.data=n,this.msg=e}return t.prototype.getStatus=function(){return this.status},t.prototype.getData=function(){return this.data},t.prototype.getMsg=function(){return this.msg},t.prototype.setMsg=function(t){this.msg=t},t.prototype.getExtraData=function(){return this.extraData},t.prototype.setExtraData=function(t){this.extraData=t},t.isOk=function(t){return h(t)&&"ok"===t.getStatus()},t.isFail=function(t){return h(t)&&"fail"===t.getStatus()},t.isDeny=function(t){return h(t)&&"deny"===t.getStatus()},t.hasData=function(t){if(!t||"function"!=typeof t.getData)return!1;var n=t.getData();return!(null==n)},t.isNetWorkError=function(n){return t.getStatusIsFunction(n)&&"NETWORK_ERROR"===n.getStatus()||"NETWORK_ERROR"===(null==n?void 0:n.status)},t.cover=function(n,e){t[n]=e},t.success=function(n){return new t("ok",n)},t.fail=function(n){var e=new t("fail",null);return e.setMsg(n||""),e},t.exception=function(n){return new t(n.getStatus(),n.getData(),n.getMsg())},t.deny=function(n){return new t("deny",null,n||"")},t.networkError=function(n){return new t("NETWORK_ERROR",null,n||"网络异常,请重试")},t.interrupt=function(n){return new t("INTERRUPT",null,n||"程序中断,请重试")},t.isInterrupt=function(n){return"INTERRUPT"===t.getStatusValue(n)},t.cancel=function(n){return new t("CANCEL",null,n||"网络异常,请重试")},t.isCancel=function(n){return"CANCEL"===t.getStatusValue(n)},t.error=function(t){return new this("ERROR",null,t||"程序中断,请重试")},t.isError=function(n){return"ERROR"===t.getStatusValue(n)},t.getStatusIsFunction=function(t){return t&&"function"==typeof t.getStatus},t.getStatusValue=function(n){var e;return t.getStatusIsFunction(n)?n.getStatus():null!==(e=null==n?void 0:n.status)&&void 0!==e?e:""},t}();function h(t){return t&&"function"==typeof t.getStatus}function p(t,n){return void 0===t&&(t=1e3),void 0===n&&(n="__polling__"),function(e,r,o){var a=o.value;o.value=function e(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return this[n]||(this[n]=[]),Array.isArray(this[n])||(this[n]=[this[n]]),new Promise((function(s){return u(r,void 0,void 0,(function(){var r,c,l=this;return i(this,(function(h){switch(h.label){case 0:return[4,a.apply(this,o)];case 1:return r=h.sent(),f.isOk(r)?(s(r),[2]):(c=setTimeout((function(){return u(l,void 0,void 0,(function(){return i(this,(function(t){return this[n]=this[n].filter((function(t){return t!==c})),clearTimeout(c),e.apply(this,o),[2]}))}))}),t),this[n].push(c),[2])}}))}))}))};var s=e.onUnload;e.onUnload=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return u(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return this[n].forEach((function(t){clearTimeout(t)})),this[n]=null,[4,s.apply(this,t)];case 1:return[2,e.sent()]}}))}))}}}var d=Object.freeze({__proto__:null,Polling:p,Assemble:c,AssembleValue:l});var v=function(t){function n(n){var e=t.call(this,n)||this;return e.__id="ParameterDecoratorError",e.status="PARAM_ERROR",e.data=null,e.from="CheckParamRequired",e}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}o(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,t),n.prototype.setData=function(t){this.data=t},n.prototype.getData=function(){return this.data},n.prototype.setStatus=function(t){this.status=t},n.prototype.getStatus=function(){return this.status},n.prototype.setFrom=function(t){this.from=t},n.prototype.getFrom=function(){return this.from},n.isParameterDecoratorError=function(t){return t instanceof n||(null==t?void 0:t.__id)===new n("").__id},n}(Error);var y={Required:function(t,n){return void 0===n&&(n=""),function(e,r,o){(null==e?void 0:e.__requiredData)||(e.__requiredData=new Map),e.__requiredData.set(r,{index:o,errMsg:t,propertyPath:n})}},CheckParamRequired:function(t,n,e){var r=e.value;e.value=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return u(this,void 0,void 0,(function(){var o,u,a,s,c,l;return i(this,(function(i){switch(i.label){case 0:if(o=null==t?void 0:t.__requiredData,u=o.get(n),a=Number(null==u?void 0:u.index),s=null==u?void 0:u.propertyPath,c=(null==s?void 0:s.split("."))||[],l=c.reduce((function(t,n){return null==t||!n&&0!==n||"."===n?t:null==t?void 0:t[n]}),null==e?void 0:e[a]),!isNaN(a)&&(void 0===l||""===l||null===l))throw new v((null==u?void 0:u.errMsg)||"第".concat(a+1,"个参数必传"));return[4,r.apply(this,e)];case 1:return[2,i.sent()]}}))}))}},ParameterDecoratorError:v},g={freeze:s,miniprogram:d};t.Assemble=c,t.AssembleValue=l,t.ParamDecorator=y,t.Polling=p,t.default=g,t.freeze=s,Object.defineProperty(t,"__esModule",{value:!0})}));//# sourceMappingURL=commonly-decorators.min.js.map

@@ -57,23 +57,27 @@ "use strict";

}
return new Promise(function (resolve) {
var timer = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
var result;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, originFn.apply(this, opts)];
case 1:
result = _a.sent();
if (return_data_1.default.isOk(result)) {
resolve(result);
return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
var result, timer;
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, originFn.apply(this, opts)];
case 1:
result = _a.sent();
if (return_data_1.default.isOk(result)) {
resolve(result);
return [2 /*return*/];
}
timer = setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
this[pollingId] = this[pollingId].filter(function (item) { return item !== timer; });
clearTimeout(timer);
fn.apply(this, opts);
return [2 /*return*/];
}
this[pollingId] = this[pollingId].filter(function (item) { return item !== timer; });
clearTimeout(timer);
fn.apply(this, opts);
return [2 /*return*/];
}
});
}); }, intervalTime);
_this[pollingId].push(timer);
});
});
}); }, intervalTime);
this[pollingId].push(timer);
return [2 /*return*/];
}
});
}); });
};

@@ -80,0 +84,0 @@ var originOnUnload = target.onUnload;

{
"name": "commonly-decorators",
"version": "0.5.1",
"version": "0.5.2",
"description": "some commonly decorators",

@@ -5,0 +5,0 @@ "author": "yiri.zhou",

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

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