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

any-event

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

any-event - npm Package Compare versions

Comparing version 2.0.2-alpha.1 to 2.0.2

dist/index.js.map

1

dist/index.js
"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

4

package.json
{
"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"
}
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