chiisai-event-emitter 2.1.1 → 2.1.2

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.
Files changed (2) hide show
  1. package/lib/EventEmitter.js +2 -0
  2. package/package.json +14 -19
@@ -31,7 +31,9 @@ class EventEmitter {
31
31
  * @param {Array<any>} args
32
32
  * @returns void
33
33
  */
34
+ // biome-ignore lint/suspicious/noExplicitAny: temp until safe event map is implemented
34
35
  emit(eventName, ...args) {
36
+ // biome-ignore lint/complexity/noForEach:
35
37
  this.subscriptions
36
38
  .get(eventName)
37
39
  .forEach(({ callback }) => callback(...args));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chiisai-event-emitter",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "A minimal event emitter.",
5
5
  "main": "./lib/index.js",
6
6
  "files": [
@@ -12,7 +12,7 @@
12
12
  "build": "npm run tsc && npm run minify",
13
13
  "clean": "rm -rf ./lib/",
14
14
  "cm": "cz",
15
- "lint": "eslint ./src/ --fix",
15
+ "lint": "npx @biomejs/biome check --write ./src",
16
16
  "prepare": "husky install",
17
17
  "semantic-release": "semantic-release",
18
18
  "test:watch": "jest --watch",
@@ -44,26 +44,21 @@
44
44
  },
45
45
  "homepage": "https://github.com/bencelaszlo/chiisai-event-emitter#readme",
46
46
  "devDependencies": {
47
+ "@biomejs/biome": "1.9.4",
47
48
  "@ryansonshine/commitizen": "^4.2.8",
48
49
  "@ryansonshine/cz-conventional-changelog": "^3.3.4",
49
- "@types/jest": "^27.5.2",
50
- "@types/node": "^12.20.11",
51
- "@typescript-eslint/eslint-plugin": "^4.22.0",
52
- "@typescript-eslint/parser": "^4.22.0",
53
- "conventional-changelog-conventionalcommits": "^5.0.0",
54
- "eslint": "^7.25.0",
55
- "eslint-config-prettier": "^8.3.0",
56
- "eslint-plugin-node": "^11.1.0",
57
- "eslint-plugin-prettier": "^3.4.0",
58
- "husky": "^6.0.0",
59
- "jest": "^27.2.0",
60
- "lint-staged": "^13.2.1",
61
- "prettier": "^2.2.1",
62
- "semantic-release": "^21.0.1",
50
+ "@types/jest": "^29.5.14",
51
+ "@types/node": "^22.15.17",
52
+ "conventional-changelog-conventionalcommits": "^8.0.0",
53
+ "globals": "^16.1.0",
54
+ "husky": "^9.1.7",
55
+ "jest": "^29.7.0",
56
+ "lint-staged": "^16.0.0",
57
+ "semantic-release": "^24.2.3",
63
58
  "terser": "^5.34.1",
64
- "ts-jest": "^27.0.5",
59
+ "ts-jest": "^29.3.2",
65
60
  "ts-node": "^10.2.1",
66
- "typescript": "^4.9.5"
61
+ "typescript": "^5.8.3"
67
62
  },
68
63
  "config": {
69
64
  "commitizen": {
@@ -71,7 +66,7 @@
71
66
  }
72
67
  },
73
68
  "lint-staged": {
74
- "*.ts": "eslint --cache --cache-location .eslintcache --fix"
69
+ "*.ts": "npx @biomejs/biome check --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}"
75
70
  },
76
71
  "release": {
77
72
  "branches": [