worldstate-emitter 2.0.1 → 2.1.0
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/.jshintignore +1 -0
- package/.jshintrc +10 -0
- package/index.js +1 -1
- package/package.json +9 -33
package/.jshintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
node_modules
|
package/.jshintrc
ADDED
package/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export default class WorldstateEmitter extends EventEmitter {
|
|
|
12
12
|
#twitter;
|
|
13
13
|
#rss;
|
|
14
14
|
|
|
15
|
-
static async make({ locale
|
|
15
|
+
static async make({ locale } = { locale: undefined }) {
|
|
16
16
|
const emitter = new WorldstateEmitter({ locale });
|
|
17
17
|
await emitter.#init();
|
|
18
18
|
return emitter;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worldstate-emitter",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Event emitter for worldstate & other warframe events",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
"lint": "eslint .",
|
|
9
9
|
"lint:fix": "eslint . --fix",
|
|
10
10
|
"coverage": "npm test && npm run report | coveralls",
|
|
11
|
-
"build
|
|
11
|
+
"build:docs": "jsdoc -c jsdoc-config.json -d docs",
|
|
12
12
|
"dev": "nodemon test/tester.js",
|
|
13
13
|
"postinstall": "install-peerdeps @wfcd/eslint-config@^1.3.3 -S",
|
|
14
|
-
"report": "c8 report --reporter=text-lcov"
|
|
14
|
+
"report": "c8 report --reporter=text-lcov",
|
|
15
|
+
"validate": "npm ls"
|
|
15
16
|
},
|
|
16
17
|
"directories": {
|
|
17
18
|
"test": "test/specs"
|
|
@@ -47,8 +48,8 @@
|
|
|
47
48
|
"nodemon": "^3.0.3"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
|
-
"warframe-worldstate-data": "^
|
|
51
|
-
"warframe-worldstate-parser": "^
|
|
51
|
+
"warframe-worldstate-data": "^2.x",
|
|
52
|
+
"warframe-worldstate-parser": "^3.x"
|
|
52
53
|
},
|
|
53
54
|
"optionalDependencies": {
|
|
54
55
|
"colors": "^1.4.0",
|
|
@@ -74,32 +75,7 @@
|
|
|
74
75
|
}
|
|
75
76
|
},
|
|
76
77
|
"rules": {
|
|
77
|
-
"
|
|
78
|
-
"error",
|
|
79
|
-
{
|
|
80
|
-
"requireReturn": false,
|
|
81
|
-
"requireReturnDescription": false,
|
|
82
|
-
"preferType": {
|
|
83
|
-
"String": "string",
|
|
84
|
-
"Number": "number",
|
|
85
|
-
"Boolean": "boolean",
|
|
86
|
-
"Function": "function",
|
|
87
|
-
"object": "Object",
|
|
88
|
-
"date": "Date",
|
|
89
|
-
"error": "Error"
|
|
90
|
-
},
|
|
91
|
-
"prefer": {
|
|
92
|
-
"return": "returns"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"no-underscore-dangle": "off",
|
|
97
|
-
"import/no-extraneous-dependencies": [
|
|
98
|
-
"error",
|
|
99
|
-
{
|
|
100
|
-
"peerDependencies": true
|
|
101
|
-
}
|
|
102
|
-
]
|
|
78
|
+
"no-underscore-dangle": "off"
|
|
103
79
|
}
|
|
104
80
|
},
|
|
105
81
|
"babel": {
|
|
@@ -107,8 +83,8 @@
|
|
|
107
83
|
"@babel/preset-env"
|
|
108
84
|
],
|
|
109
85
|
"plugins": [
|
|
110
|
-
"@babel/plugin-
|
|
111
|
-
"@babel/plugin-
|
|
86
|
+
"@babel/plugin-transform-class-properties",
|
|
87
|
+
"@babel/plugin-transform-private-methods"
|
|
112
88
|
]
|
|
113
89
|
},
|
|
114
90
|
"pre-commit": [
|