@juice789/tf2items 1.0.39 → 2.0.1

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/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "@juice789/tf2items",
3
- "version": "1.0.39",
3
+ "version": "2.0.1",
4
4
  "description": "tf2 item schema thingys",
5
5
  "main": "app.js",
6
+ "type": "module",
7
+ "exports": {
8
+ "browser": "./browser.js",
9
+ "default": "./app.js"
10
+ },
6
11
  "scripts": {
7
- "test": "jest"
12
+ "test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest"
13
+ },
14
+ "jest": {
15
+ "transform": {}
8
16
  },
9
17
  "keywords": [
10
18
  "tf2",
@@ -20,6 +28,7 @@
20
28
  "url": "https://github.com/juice789/tf2items/issues"
21
29
  },
22
30
  "devDependencies": {
31
+ "cross-env": "^10.1.0",
23
32
  "jest": "^30.0.5",
24
33
  "redux-saga-test-plan": "^4.0.6"
25
34
  },
@@ -28,10 +37,9 @@
28
37
  },
29
38
  "sideEffects": false,
30
39
  "dependencies": {
31
- "remove-accents": "^0.5.0",
32
40
  "axios": "^1.11.0",
33
- "ramda": "^0.31.3",
34
41
  "redux-saga": "^1.3.0",
42
+ "remove-accents": "^0.5.0",
35
43
  "vdf": "^0.0.2"
36
44
  }
37
45
  }
package/sagaHelpers.js CHANGED
@@ -1,9 +1,3 @@
1
- const { getCollections } = require('./getCollections.js')
2
- const { getItems } = require('./getItems.js')
3
- const { transformItems } = require('./transformItems.js')
4
-
5
- module.exports = {
6
- getCollections,
7
- getItems,
8
- transformItems
9
- }
1
+ export { getCollections } from './getCollections.js'
2
+ export { getItems } from './getItems.js'
3
+ export { transformItems } from './transformItems.js'
package/sagas.js CHANGED
@@ -1,15 +1,6 @@
1
- const { fetchItemsApi } = require('./fetchItemsApi.js')
2
- const { fetchItemsGame } = require('./fetchItemsGame.js')
3
- const { fetchParticleEffects } = require('./fetchParticleEffects.js')
4
- const { fetchTextures } = require('./fetchTextures.js')
5
- const { fetchTfEnglish } = require('./fetchTfEnglish.js')
6
- const { fetchAppDataInventory } = require('./fetchAppDataInventory.js')
7
-
8
- module.exports = {
9
- fetchItemsApi,
10
- fetchItemsGame,
11
- fetchParticleEffects,
12
- fetchTextures,
13
- fetchTfEnglish,
14
- fetchAppDataInventory
15
- }
1
+ export { fetchItemsApi } from './fetchItemsApi.js'
2
+ export { fetchItemsGame } from './fetchItemsGame.js'
3
+ export { fetchParticleEffects } from './fetchParticleEffects.js'
4
+ export { fetchTextures } from './fetchTextures.js'
5
+ export { fetchTfEnglish } from './fetchTfEnglish.js'
6
+ export { fetchAppDataInventory } from './fetchAppDataInventory.js'
package/saveSchema.js CHANGED
@@ -1,20 +1,8 @@
1
- const { call } = require('redux-saga/effects')
1
+ import { call } from 'redux-saga/effects'
2
+ import { fetchItemsApi, fetchItemsGame, fetchParticleEffects, fetchTextures, fetchTfEnglish } from './sagas.js'
3
+ import { getCollections, getItems, transformItems } from './sagaHelpers.js'
2
4
 
3
- const {
4
- fetchItemsApi,
5
- fetchItemsGame,
6
- fetchParticleEffects,
7
- fetchTextures,
8
- fetchTfEnglish
9
- } = require('./sagas.js')
10
-
11
- const {
12
- getCollections,
13
- getItems,
14
- transformItems
15
- } = require('./sagaHelpers')
16
-
17
- function* saveSchema() {
5
+ export function* saveSchema() {
18
6
  try {
19
7
 
20
8
  const itemsApi = yield call(fetchItemsApi)
@@ -38,5 +26,3 @@ function* saveSchema() {
38
26
  console.log('error saving schema', err)
39
27
  }
40
28
  }
41
-
42
- module.exports = { saveSchema }