@xyo-network/module-events
Advanced tools
Comparing version 2.110.10 to 2.110.11
@@ -6,2 +6,3 @@ // src/Events/Events.ts | ||
import { Base } from "@xylabs/object"; | ||
var NO_META_EVENT_ERROR_MESSAGE = "`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`"; | ||
var resolvedPromise = Promise.resolve(); | ||
@@ -83,3 +84,3 @@ var isMetaEvent = (eventName) => eventName === "listenerAdded" || eventName === "listenerRemoved"; | ||
if (isMetaEvent(eventName) && !_Events.canEmitMetaEvents) { | ||
throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`"); | ||
throw new TypeError(NO_META_EVENT_ERROR_MESSAGE); | ||
} | ||
@@ -190,3 +191,3 @@ const filterMatch = (args, filter) => { | ||
if (isMetaEvent(eventName) && !_Events.canEmitMetaEvents) { | ||
throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`"); | ||
throw new TypeError(NO_META_EVENT_ERROR_MESSAGE); | ||
} | ||
@@ -193,0 +194,0 @@ this.logIfDebugEnabled("emit", eventName, eventArgs); |
@@ -6,2 +6,3 @@ // src/Events/Events.ts | ||
import { Base } from "@xylabs/object"; | ||
var NO_META_EVENT_ERROR_MESSAGE = "`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`"; | ||
var resolvedPromise = Promise.resolve(); | ||
@@ -83,3 +84,3 @@ var isMetaEvent = (eventName) => eventName === "listenerAdded" || eventName === "listenerRemoved"; | ||
if (isMetaEvent(eventName) && !_Events.canEmitMetaEvents) { | ||
throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`"); | ||
throw new TypeError(NO_META_EVENT_ERROR_MESSAGE); | ||
} | ||
@@ -190,3 +191,3 @@ const filterMatch = (args, filter) => { | ||
if (isMetaEvent(eventName) && !_Events.canEmitMetaEvents) { | ||
throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`"); | ||
throw new TypeError(NO_META_EVENT_ERROR_MESSAGE); | ||
} | ||
@@ -193,0 +194,0 @@ this.logIfDebugEnabled("emit", eventName, eventArgs); |
@@ -6,2 +6,3 @@ // src/Events/Events.ts | ||
import { Base } from "@xylabs/object"; | ||
var NO_META_EVENT_ERROR_MESSAGE = "`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`"; | ||
var resolvedPromise = Promise.resolve(); | ||
@@ -86,3 +87,3 @@ var isMetaEvent = (eventName) => eventName === "listenerAdded" || eventName === "listenerRemoved"; | ||
if (isMetaEvent(eventName) && !_Events.canEmitMetaEvents) { | ||
throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`"); | ||
throw new TypeError(NO_META_EVENT_ERROR_MESSAGE); | ||
} | ||
@@ -196,3 +197,3 @@ const filterMatch = (args, filter) => { | ||
if (isMetaEvent(eventName) && !_Events.canEmitMetaEvents) { | ||
throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`"); | ||
throw new TypeError(NO_META_EVENT_ERROR_MESSAGE); | ||
} | ||
@@ -199,0 +200,0 @@ this.logIfDebugEnabled("emit", eventName, eventArgs); |
@@ -13,13 +13,13 @@ { | ||
"dependencies": { | ||
"@xylabs/assert": "^3.6.4", | ||
"@xylabs/error": "^3.6.4", | ||
"@xylabs/forget": "^3.6.4", | ||
"@xylabs/object": "^3.6.4", | ||
"@xylabs/promise": "^3.6.4" | ||
"@xylabs/assert": "^3.6.5", | ||
"@xylabs/error": "^3.6.5", | ||
"@xylabs/forget": "^3.6.5", | ||
"@xylabs/object": "^3.6.5", | ||
"@xylabs/promise": "^3.6.5" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/delay": "^3.6.4", | ||
"@xylabs/ts-scripts-yarn3": "^3.12.4", | ||
"@xylabs/tsconfig": "^3.12.4", | ||
"@xylabs/tsconfig-jest": "^3.12.4", | ||
"@xylabs/delay": "^3.6.5", | ||
"@xylabs/ts-scripts-yarn3": "^3.13.3", | ||
"@xylabs/tsconfig": "^3.13.3", | ||
"@xylabs/tsconfig-jest": "^3.13.3", | ||
"typescript": "^5.5.4" | ||
@@ -66,4 +66,4 @@ }, | ||
"sideEffects": false, | ||
"version": "2.110.10", | ||
"version": "2.110.11", | ||
"type": "module" | ||
} |
@@ -22,2 +22,4 @@ import { assertEx } from '@xylabs/assert' | ||
const NO_META_EVENT_ERROR_MESSAGE = '`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`' | ||
/** | ||
@@ -143,3 +145,3 @@ Configure debug options of an instance. | ||
if (isMetaEvent(eventName) && !Events.canEmitMetaEvents) { | ||
throw new TypeError('`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`') | ||
throw new TypeError(NO_META_EVENT_ERROR_MESSAGE) | ||
} | ||
@@ -291,3 +293,3 @@ | ||
if (isMetaEvent(eventName) && !Events.canEmitMetaEvents) { | ||
throw new TypeError('`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`') | ||
throw new TypeError(NO_META_EVENT_ERROR_MESSAGE) | ||
} | ||
@@ -294,0 +296,0 @@ |
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
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
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
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
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
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
305725
2211
371
Updated@xylabs/assert@^3.6.5
Updated@xylabs/error@^3.6.5
Updated@xylabs/forget@^3.6.5
Updated@xylabs/object@^3.6.5
Updated@xylabs/promise@^3.6.5