Comparing version 2.0.2-alpha.1 to 2.0.2
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=function(){function r(){this.__map={}}return r.prototype.beforeEach=function(t){this.__interceptor=t},r.prototype.on=function(r,e){var i,n,o=Array.isArray(r)?r:[r];try{for(var _=t.__values(o),a=_.next();!a.done;a=_.next()){var s=a.value;this.__map[s]=this.__map[s]||[];var p=this.__map[s];p&&p.push(e)}}catch(t){i={error:t}}finally{try{a&&!a.done&&(n=_.return)&&n.call(_)}finally{if(i)throw i.error}}return this},r.prototype.emit=function(t,r,e){var i=this;void 0!==this.__interceptor?this.__interceptor(t,(function(){i.__emit(t,r),e&&e()})):(this.__emit(t,r),e&&e())},r.prototype.__emit=function(r,e){var i,n,o=this.__map[r];if(Array.isArray(o)&&(null==o?void 0:o.length))try{for(var _=t.__values(o),a=_.next();!a.done;a=_.next()){(0,a.value)(e)}}catch(t){i={error:t}}finally{try{a&&!a.done&&(n=_.return)&&n.call(_)}finally{if(i)throw i.error}}this.event=t.__assign(t.__assign({},e),{__type:r})},r.prototype.off=function(t,r){var e=this.__map[t];if(void 0!==e)if(void 0===r)delete this.__map[t];else{var i=e.findIndex((function(t){return t===r}));e.splice(i,1)}},r.prototype.destroy=function(){this.__map={}},r}();exports.default=r; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "any-event", | ||
"version": "2.0.2-alpha.1", | ||
"version": "2.0.2", | ||
"description": "小巧的事件模型", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
"sideEffects": false, | ||
"gitHead": "6448e271ecbc59ba49d220264ff4f5ab19950b87" | ||
"gitHead": "7df4617ecb8b89c720ce9747cdd77554c4966a88" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10791
8
60
2