@juice789/tf2items 1.0.37 → 1.0.38

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.
Files changed (2) hide show
  1. package/fromEconItem.js +1 -1
  2. package/package.json +1 -1
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.38",
4
4
  "description": "tf2 item schema thingys",
5
5
  "main": "app.js",
6
6
  "scripts": {