@juice789/tf2items 1.0.32 → 1.0.33

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/blanket.js CHANGED
@@ -24,9 +24,9 @@ const {
24
24
  concat,
25
25
  unnest,
26
26
  pick,
27
- mergeRight
27
+ mergeRight,
28
+ renameKeys
28
29
  } = require('ramda')
29
- const { renameKeys } = require('ramda-adjunct')
30
30
 
31
31
  const { safeItems: items } = require('./schemaItems.js')
32
32
  const { skuFromItem, itemFromSku } = require('./sku.js')
package/fetchTextures.js CHANGED
@@ -1,13 +1,12 @@
1
1
  const { call, getContext } = require('redux-saga/effects')
2
2
  const vdf = require('vdf')
3
3
 
4
- const { path, compose, pickBy, startsWith, reduce, replace, __ } = require('ramda')
5
- const { renameKeysWith } = require('ramda-adjunct')
4
+ const { path, compose, pickBy, startsWith, reduce, replace, __, mapKeys } = require('ramda')
6
5
 
7
6
  const sanitizeTexture = reduce((all, curr) => replace(curr, '', all), __, ['9_', '_field { field_number: 2 }'])
8
7
 
9
8
  const transformTextures = compose(
10
- renameKeysWith(sanitizeTexture),
9
+ mapKeys(sanitizeTexture),
11
10
  pickBy((val, key) => startsWith('9', key) && isNaN(val[0])),
12
11
  path(['lang', 'Tokens'])
13
12
  )
package/fetchTfEnglish.js CHANGED
@@ -1,13 +1,12 @@
1
1
  const { call, getContext } = require('redux-saga/effects')
2
2
  const vdf = require('vdf')
3
- const { toLower } = require('ramda')
4
- const { renameKeysWith } = require('ramda-adjunct')
3
+ const { toLower, mapKeys } = require('ramda')
5
4
 
6
5
  function* fetchTfEnglish() {
7
6
  const { fetchTfEnglish } = yield getContext('api')
8
7
  const english = yield call(fetchTfEnglish)
9
8
  const englishVdf = vdf.parse(english)
10
- return renameKeysWith(toLower, englishVdf.lang.Tokens)
9
+ return mapKeys(toLower, englishVdf.lang.Tokens)
11
10
  }
12
11
 
13
12
  module.exports = { fetchTfEnglish }
package/fromEconItem.js CHANGED
@@ -42,7 +42,8 @@ const {
42
42
  filter,
43
43
  omit,
44
44
  last,
45
- defaultTo
45
+ defaultTo,
46
+ renameKeys
46
47
  } = require('ramda')
47
48
 
48
49
  const { safeItems: items } = require('./schemaItems.js')
@@ -50,7 +51,6 @@ const { particleEffects, textures } = require('./schema.json')
50
51
  const { qualityNames, wears, paintDefindex, spellDefindex } = require('./schemaHelper.json')
51
52
  const { skuFromItem } = require('./sku.js')
52
53
  const { skuFromItem753 } = require('./sku753.js')
53
- const { renameKeys } = require('ramda-adjunct')
54
54
 
55
55
  const marketHashIncludes = curry((string, { market_hash_name }) => market_hash_name.indexOf(string) !== -1)
56
56
 
package/getCollections.js CHANGED
@@ -1,5 +1,4 @@
1
- const { prop, map, compose, toLower, mapObjIndexed, toPairs, when, has, __, chain, assoc, reduce, mergeRight, values, path, uncurryN, replace } = require('ramda')
2
- const { renameKeysWith } = require('ramda-adjunct')
1
+ const { prop, map, compose, toLower, mapObjIndexed, toPairs, when, has, __, chain, assoc, reduce, mergeRight, values, path, uncurryN, replace, mapKeys } = require('ramda')
3
2
 
4
3
  const simplifyCollections = compose(
5
4
  reduce((curr, obj) => mergeRight(curr, obj), {}),
@@ -15,7 +14,7 @@ const simplifyCollections = compose(
15
14
  prop('items')
16
15
  )
17
16
  ),
18
- (collections) => renameKeysWith((key) => replace('#', '', path([key, 'name'], collections)), collections),
17
+ (collections) => mapKeys((key) => replace('#', '', path([key, 'name'], collections)), collections),
19
18
  prop('item_collections')
20
19
  )
21
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juice789/tf2items",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "tf2 item schema thingys",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -19,15 +19,8 @@
19
19
  "bugs": {
20
20
  "url": "https://github.com/juice789/tf2items/issues"
21
21
  },
22
- "peerDependencies": {
23
- "axios": "^1.7.2",
24
- "ramda": "^0.30.1",
25
- "ramda-adjunct": "^5.0.1",
26
- "redux-saga": "^1.3.0",
27
- "vdf": "^0.0.2"
28
- },
29
22
  "devDependencies": {
30
- "jest": "^29.4.3",
23
+ "jest": "^30.0.5",
31
24
  "redux-saga-test-plan": "^4.0.6"
32
25
  },
33
26
  "publishConfig": {
@@ -35,6 +28,10 @@
35
28
  },
36
29
  "sideEffects": false,
37
30
  "dependencies": {
38
- "remove-accents": "^0.5.0"
31
+ "remove-accents": "^0.5.0",
32
+ "axios": "^1.11.0",
33
+ "ramda": "^0.31.3",
34
+ "redux-saga": "^1.3.0",
35
+ "vdf": "^0.0.2"
39
36
  }
40
37
  }