@aplazame/browser
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -60,2 +60,11 @@ var __defProp = Object.defineProperty; | ||
} | ||
emitSync(event, details) { | ||
if (isArray(event)) { | ||
event.forEach((_event) => this.emit(_event, details)); | ||
return this; | ||
} | ||
this.#listenersAny.forEach((listener) => listener(new this.#Event(event, { details }))); | ||
this.#listeners[event]?.forEach((listener) => listener(new this.#Event(event, { details }))); | ||
this.#listenersOnce[event]?.splice(0).forEach((listener) => listener(new this.#Event(event, { details }))); | ||
} | ||
on(event, listener) { | ||
@@ -62,0 +71,0 @@ if (isArray(event)) { |
@@ -24,3 +24,3 @@ var __defProp = Object.defineProperty; | ||
module.exports = __toCommonJS(lib_exports); | ||
var import_EventEmitter = require("./EventEmitter"); | ||
var import_AplazameIFrame = require("./AplazameIFrame"); | ||
var import_EventEmitter = require("./EventEmitter.mjs"); | ||
var import_AplazameIFrame = require("./AplazameIFrame.mjs"); |
{ | ||
"name": "@aplazame/browser", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Aplazame SDK for browser", | ||
"main": "dist/index.js", | ||
"module": "lib/index.mjs", | ||
"main": "./dist/index.js", | ||
"module": "./lib/index.mjs", | ||
"directories": { | ||
@@ -8,0 +8,0 @@ "lib": "lib" |
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
13114
340