warframe-nexus-query 2.0.0 → 2.0.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.
package/basedir.js ADDED
@@ -0,0 +1,4 @@
1
+ import { dirname } from 'node:path';
2
+ import { fileURLToPath } from 'node:url';
3
+
4
+ export default dirname(fileURLToPath(import.meta.url));
@@ -5,7 +5,7 @@ import imageDownloader from 'image-downloader';
5
5
  import jsonQuery from 'json-query';
6
6
  import JSONCache from 'json-fetch-cache';
7
7
 
8
- import { baseDir } from '../../../basedir.js';
8
+ import baseDir from '../../../basedir.js';
9
9
 
10
10
  import MarketSummary from './summary.js';
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warframe-nexus-query",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Query prices form nexus-stats.com and warframe.market.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -10,11 +10,12 @@
10
10
  "build:docs": "jsdoc -c jsdoc-config.json -d docs",
11
11
  "lint": "eslint index.js lib/ test/",
12
12
  "lint:fix": "eslint index.js lib/ test/ --fix",
13
- "postinstall": "install-peerdeps @wfcd/eslint-config@^1.5.0 -S"
13
+ "postinstall": "if [ \"$NODE_ENV\" = \"dev\" ] ; then npx -p install-peerdeps@latest install-peerdeps @wfcd/eslint-config@latest -S ; fi"
14
14
  },
15
15
  "files": [
16
16
  "lib",
17
- "index.js"
17
+ "index.js",
18
+ "basedir.js"
18
19
  ],
19
20
  "directories": {
20
21
  "test": "test"
@@ -45,12 +46,11 @@
45
46
  },
46
47
  "devDependencies": {
47
48
  "@types/json-query": "^2.2.0",
48
- "@types/node-fetch": "^2.5.4",
49
- "@wfcd/eslint-config": "^1.5.0",
49
+ "@wfcd/eslint-config": "latest",
50
50
  "c8": "^9.1.0",
51
- "chai": "^4.2.0",
51
+ "chai": "^5.0.3",
52
52
  "coveralls": "^3.1.1",
53
- "install-peerdeps": "^2.0.3",
53
+ "install-peerdeps": "^3.0.3",
54
54
  "mocha": "^10.2.0"
55
55
  },
56
56
  "engines": {
@@ -85,8 +85,8 @@
85
85
  "@babel/preset-env"
86
86
  ],
87
87
  "plugins": [
88
- "@babel/plugin-proposal-class-properties",
89
- "@babel/plugin-proposal-private-methods"
88
+ "@babel/plugin-transform-class-properties",
89
+ "@babel/plugin-transform-private-methods"
90
90
  ]
91
91
  },
92
92
  "mocha": {