worldstate-emitter 1.0.7 → 1.0.8

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Worldstate Emitter [![Build Status](https://travis-ci.com/WFCD/worldstate-emitter.svg?branch=master)](https://travis-ci.com/WFCD/worldstate-emitter)
1
+ # Worldstate Emitter
2
2
 
3
3
  Suuuper simple emitter for worldstate events.
4
4
 
@@ -6,11 +6,11 @@ Very opinionated decisions on what events and event names, as well as
6
6
 
7
7
  ## Emitter Events
8
8
 
9
- Emitter Event | Emit key | description
10
- :-- | --- | --
11
- RSS | `rss` | New forum post from DE
12
- Worldstate | `ws:update` | New Worldstate event
13
- Tweet | `tweet` | New tweet from one of the selected accounts
9
+ | Emitter Event | Emit key | description |
10
+ |:--------------|-------------|---------------------------------------------|
11
+ | RSS | `rss` | New forum post from DE |
12
+ | Worldstate | `ws:update` | New Worldstate event |
13
+ | Tweet | `tweet` | New tweet from one of the selected accounts |
14
14
 
15
15
 
16
16
  <details>
package/SECURITY.md ADDED
@@ -0,0 +1,17 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ All versions are supported, but it's recommended to stay on the always current version.
6
+ There may be known vulnerabilities in development dependencies that are avoidable.
7
+
8
+ | Version | Supported |
9
+ | ------- | ------------------ |
10
+ | 1.x+ | :white_check_mark: |
11
+ | < 1.0 | :x:
12
+
13
+ ## Reporting a Vulnerability
14
+
15
+ Vulnerabilities from version updates should have automated PRs from dependabot.
16
+
17
+ If there is a vulnerability in the code itself, please submit an issue (or also a PR if you have the solution), mentioning the vulnerability.
@@ -123,7 +123,7 @@ class TwitterCache {
123
123
 
124
124
  /**
125
125
  * Get data able to be parsed from twitter.
126
- * @returns {Promise.<Array.<Object>>} Twieets
126
+ * @returns {Promise.<Array.<Object>>} Tweets
127
127
  */
128
128
  async getParseableData() {
129
129
  logger.silly('Starting Twitter update...');
@@ -151,7 +151,7 @@ class TwitterCache {
151
151
 
152
152
  /**
153
153
  * Handle errors that arise while fetching data from twitter
154
- * @param {[type]} error twitter error
154
+ * @param {Error} error twitter error
155
155
  */
156
156
  onError(error) {
157
157
  if (error[0] && error[0].code === 32) {
@@ -22,6 +22,6 @@ module.exports = (cycleData, deps) => {
22
22
  ...packet,
23
23
  id: `${packet.id}.${Math.round(fromNow(deps.data.expiry) / 60000)}`,
24
24
  };
25
- // packets.push(timePacket);
25
+ packets.push(timePacket);
26
26
  return packets;
27
27
  };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const { between, lastUpdated, logger } = require('../../utilities');
3
+ const { between, lastUpdated } = require('../../utilities');
4
4
 
5
5
  module.exports = (data, deps) => {
6
6
  if (!data) return undefined;
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "worldstate-emitter",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Event emitter for worldstate & other warframe events",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "test": "nyc mocha test/specs --exit",
7
+ "test": "nyc --reporter=lcov mocha test/specs --exit",
8
8
  "lint": "eslint index.js handlers/**.js utilities/**.js",
9
9
  "lint:fix": "eslint index.js handlers/**.js utilities/**.js --fix",
10
- "coverage": "npm test && nyc report --reporter=text-lcov | npx coveralls",
11
- "build-docs": "npx jsdoc -c jsdoc-config.json -d docs",
12
- "dev": "npx nodemon test/tester.js",
13
- "snyk-protect": "npx snyk protect",
14
- "prepare": "npm run snyk-protect"
10
+ "coverage": "npm test && nyc report --reporter=text-lcov | coveralls",
11
+ "build-docs": "jsdoc -c jsdoc-config.json -d docs",
12
+ "dev": "nodemon test/tester.js"
15
13
  },
16
14
  "directories": {
17
15
  "test": "test/specs"
@@ -33,27 +31,34 @@
33
31
  },
34
32
  "homepage": "https://github.com/wfcd/worldstate-emitter#readme",
35
33
  "dependencies": {
36
- "@sentry/node": "^5.22.3",
34
+ "@sentry/node": "^6.9.0",
37
35
  "colors": "^1.4.0",
38
36
  "json-fetch-cache": "^1.2.6",
39
37
  "rss-feed-emitter": "^3.2.2",
40
38
  "twitter": "^1.7.1",
41
- "warframe-worldstate-data": "^1.9.1",
42
- "warframe-worldstate-parser": "^2.15.1",
39
+ "warframe-worldstate-data": "^1.18.15",
40
+ "warframe-worldstate-parser": "^2.19.0",
43
41
  "winston": "^3.3.3"
44
42
  },
45
43
  "devDependencies": {
46
- "chai": "^4.2.0",
47
- "eslint": "^6.8.0",
48
- "eslint-config-airbnb-base": "^14.2.0",
49
- "eslint-plugin-import": "^2.22.0",
50
- "ink-docstrap": "^1.3.2",
51
- "mocha": "^7.2.0",
52
- "nyc": "^14.1.1"
44
+ "chai": "^4.3.4",
45
+ "coveralls": "^3.1.0",
46
+ "eslint": "^8.2.0",
47
+ "eslint-config-airbnb-base": "^15.0.0",
48
+ "eslint-plugin-import": "^2.22.1",
49
+ "mocha": "^9.0.2",
50
+ "nodemon": "^2.0.7",
51
+ "nyc": "^15.1.0"
53
52
  },
54
53
  "engines": {
55
54
  "node": ">=10.19.0"
56
55
  },
56
+ "eslintIgnore": [
57
+ ".github/**",
58
+ "docs/**",
59
+ "resources/**",
60
+ "types/**"
61
+ ],
57
62
  "eslintConfig": {
58
63
  "extends": "airbnb-base",
59
64
  "parserOptions": {
@@ -100,6 +105,5 @@
100
105
  "CACHE_TIMEOUT": 60000,
101
106
  "SEMLAR_TIMEOUT": 300000
102
107
  }
103
- },
104
- "snyk": true
108
+ }
105
109
  }
@@ -1,7 +1,7 @@
1
1
  [
2
2
  { "acc_name": "@playwarframe", "plain": "warframe" },
3
3
  { "acc_name": "@digitalextremes", "plain": "digitalextremes" },
4
- { "acc_name": "@PabloPoon", "plain": "pablo" },
4
+ { "acc_name": "@PabloMakes", "plain": "pablo" },
5
5
  { "acc_name": "@Cam_Rogers", "plain": "cameron" },
6
6
  { "acc_name": "@rebbford", "plain": "rebecca" },
7
7
  { "acc_name": "@sj_sinclair", "plain": "steve" },
@@ -10,8 +10,8 @@
10
10
  { "acc_name": "@GameSoundDesign", "plain": "george" },
11
11
  { "acc_name": "@msinilo", "plain": "maciej" },
12
12
  { "acc_name": "@sheldoncarter", "plain": "sheldon" },
13
- { "acc_name": "@narcbag", "plain": "narc" },
13
+ { "acc_name": "@MarcusKretz", "plain": "marcus" },
14
14
  { "acc_name": "@Helen_Heikkila", "plain": "helen" },
15
15
  { "acc_name": "@tobitenno", "plain": "tobiah" },
16
16
  { "acc_name": "@wfdiscord", "plain": "wfdiscord" }
17
- ]
17
+ ]