@sprucelabs/spruce-heartwood-utils 38.17.6 → 38.17.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-heartwood-utils",
3
3
  "description": "Heartwood Utilities",
4
- "version": "38.17.6",
4
+ "version": "38.17.7",
5
5
  "skill": {
6
6
  "namespace": "heartwood"
7
7
  },
@@ -86,10 +86,6 @@
86
86
  "build/components/animation/types.d.ts",
87
87
  "build/esm/components/animation/types.js",
88
88
  "build/esm/components/animation/types.d.ts",
89
- "build/components/animation/SimpleEmitter.js",
90
- "build/components/animation/SimpleEmitter.d.ts",
91
- "build/esm/components/animation/SimpleEmitter.js",
92
- "build/esm/components/animation/SimpleEmitter.d.ts",
93
89
  "build/hooks/queueShow.js",
94
90
  "build/hooks/queueShow.d.ts",
95
91
  "build/esm/hooks/queueShow.js",
@@ -1,7 +0,0 @@
1
- import { AnimationEmitter } from './types';
2
- export default class SimpleEmitter implements AnimationEmitter {
3
- private listeners;
4
- on(event: string, handler: () => void): void;
5
- off(event: string, handler: () => void): void;
6
- emit(event: string): void;
7
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class SimpleEmitter {
4
- constructor() {
5
- this.listeners = {};
6
- }
7
- on(event, handler) {
8
- var _a;
9
- ;
10
- ((_a = this.listeners)[event] ?? (_a[event] = [])).push(handler);
11
- }
12
- off(event, handler) {
13
- this.listeners[event] = (this.listeners[event] ?? []).filter((h) => h !== handler);
14
- }
15
- emit(event) {
16
- for (const h of this.listeners[event] ?? []) {
17
- h();
18
- }
19
- }
20
- }
21
- exports.default = SimpleEmitter;
22
- //# sourceMappingURL=SimpleEmitter.js.map
@@ -1,7 +0,0 @@
1
- import { AnimationEmitter } from './types';
2
- export default class SimpleEmitter implements AnimationEmitter {
3
- private listeners;
4
- on(event: string, handler: () => void): void;
5
- off(event: string, handler: () => void): void;
6
- emit(event: string): void;
7
- }
@@ -1,18 +0,0 @@
1
- export default class SimpleEmitter {
2
- constructor() {
3
- this.listeners = {};
4
- }
5
- on(event, handler) {
6
- var _a;
7
- ;
8
- ((_a = this.listeners)[event] ?? (_a[event] = [])).push(handler);
9
- }
10
- off(event, handler) {
11
- this.listeners[event] = (this.listeners[event] ?? []).filter((h) => h !== handler);
12
- }
13
- emit(event) {
14
- for (const h of this.listeners[event] ?? []) {
15
- h();
16
- }
17
- }
18
- }