@juice789/tf2items 1.0.37 → 1.0.39

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.
@@ -35,10 +35,10 @@ function* fetchAppDataInventory(inventory, d = 1000, cache = []) {
35
35
  const ids = without(cache.map(props(['classid', 'instanceid'])), getAssetClassIds(inventory))
36
36
  while (ids.length > 0 && p < ids.length) {
37
37
  yield delay(d)
38
- const query = getAssetClassQuery(ids.slice(p, p + 150))
38
+ const query = getAssetClassQuery(ids.slice(p, p + 125))
39
39
  const { result } = yield call(getAssetClassInfo, query)
40
40
  assetClasses = mergeRight(assetClasses, transformAssetClasses(result))
41
- p += 150
41
+ p += 125
42
42
  }
43
43
  return mergeAssetClasses(assetClasses, inventory)
44
44
  }
package/fromEconItem.js CHANGED
@@ -332,7 +332,7 @@ const props753 = {
332
332
  market_hash_name: prop('market_hash_name'),
333
333
  border: compose(last, defaultTo(''), findTag('Card Border', 'internal_name')),
334
334
  game: compose(nth(1), split('_'), findTag('Game', 'internal_name')),
335
- type: compose(last, findTag('Item Type', 'internal_name')),
335
+ type: ({ tags = [] }) => last(tags.find(tag => tag.category === 'item_class')?.internal_name || 'x'),
336
336
  id,
337
337
  old_id,
338
338
  contextid,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juice789/tf2items",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "description": "tf2 item schema thingys",
5
5
  "main": "app.js",
6
6
  "scripts": {