New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@codescouts/events

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codescouts/events - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

25

lib/DomainEvents.js

@@ -13,18 +13,2 @@ "use strict";

};
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -41,7 +25,5 @@ exports.DomainEvents = void 0;

try {
for (var _b = __values(Object.entries(this.handlersMap)), _c = _b.next(); !_c.done; _c = _b.next()) {
var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
if (value.includes(handler)) {
this.handlersMap[key] = this.handlersMap[key].filter(function (h) { return h !== handler; });
}
for (var _b = __values(Object.keys(this.handlersMap)), _c = _b.next(); !_c.done; _c = _b.next()) {
var key = _c.value;
this.handlersMap[key] = this.handlersMap[key].filter(function (h) { return h.prototype.id !== handler.prototype.id; });
}

@@ -61,2 +43,3 @@ }

}
handler.prototype.id = Math.random().toString(36).substring(7);
this.handlersMap[eventClassName].push(handler);

@@ -63,0 +46,0 @@ };

2

package.json
{
"name": "@codescouts/events",
"version": "1.0.4",
"version": "1.0.5",
"main": "./lib/index.js",

@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts",

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