flash-notifications 0.0.28 → 0.0.30

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/.eslintrc.js CHANGED
@@ -6,6 +6,7 @@ module.exports = {
6
6
  "eqeqeq": "off",
7
7
  "no-return-assign": "off",
8
8
  "prettier/prettier": "off",
9
- "react-hooks/rules-of-hooks": "off"
9
+ "react-hooks/rules-of-hooks": "off",
10
+ "import/order": "off"
10
11
  }
11
12
  }
package/build/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import EventEmitter from "events";
1
+ import { EventEmitter } from "eventemitter3";
2
2
  if (!globalThis.flashNotificationsEvents) {
3
3
  globalThis.flashNotificationsEvents = new EventEmitter();
4
4
  }
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"/src/","sources":["events.js"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,QAAQ,CAAA;AAEjC,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC;IACzC,UAAU,CAAC,wBAAwB,GAAG,IAAI,YAAY,EAAE,CAAA;AAC1D,CAAC;AAED,eAAe,UAAU,CAAC,wBAAwB,CAAA","sourcesContent":["import EventEmitter from \"events\"\n\nif (!globalThis.flashNotificationsEvents) {\n globalThis.flashNotificationsEvents = new EventEmitter()\n}\n\nexport default globalThis.flashNotificationsEvents\n"]}
1
+ {"version":3,"file":"events.js","sourceRoot":"/src/","sources":["events.js"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAA;AAE1C,IAAI,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC;IACzC,UAAU,CAAC,wBAAwB,GAAG,IAAI,YAAY,EAAE,CAAA;AAC1D,CAAC;AAED,eAAe,UAAU,CAAC,wBAAwB,CAAA","sourcesContent":["import {EventEmitter} from \"eventemitter3\"\n\nif (!globalThis.flashNotificationsEvents) {\n globalThis.flashNotificationsEvents = new EventEmitter()\n}\n\nexport default globalThis.flashNotificationsEvents\n"]}
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "flash-notifications",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "description": "My new module",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
7
7
  "scripts": {
8
8
  "build": "expo-module build",
9
9
  "clean": "expo-module clean",
10
- "lint": "expo-module lint",
10
+ "lint": "expo-module lint -- --max-warnings 0",
11
11
  "test": "jest --detectOpenHandles",
12
12
  "test-expo": "expo-module test",
13
13
  "prepare": "expo-module prepare",
@@ -39,6 +39,7 @@
39
39
  "classnames": "^2.5.1",
40
40
  "diggerize": "^1.0.9",
41
41
  "env-sense": "^1.0.1",
42
+ "eventemitter3": "^5.0.1",
42
43
  "fetching-object": "^1.0.3",
43
44
  "prop-types-exact": "*",
44
45
  "set-state-compare": "^1.0.61"
package/src/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import EventEmitter from "events"
1
+ import {EventEmitter} from "eventemitter3"
2
2
 
3
3
  if (!globalThis.flashNotificationsEvents) {
4
4
  globalThis.flashNotificationsEvents = new EventEmitter()
package/tsconfig.json CHANGED
@@ -5,7 +5,8 @@
5
5
  "jsx": "react",
6
6
  "outDir": "./build",
7
7
  "sourceMap": true,
8
- "sourceRoot": "/src"
8
+ "sourceRoot": "/src",
9
+ "target": "ES2024"
9
10
  },
10
11
  "include": ["./src"],
11
12
  "exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__rsc_tests__/*"]