@juice789/tf2items 1.0.33 → 1.0.35

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/fromEconItem.js CHANGED
@@ -78,6 +78,8 @@ const old_contextid = ({ new_contextid, rollback_new_contextid, contextid }) =>
78
78
 
79
79
  const contextid = ({ new_contextid, rollback_new_contextid, contextid }) => new_contextid || rollback_new_contextid || contextid || null
80
80
 
81
+ const appid = ({ appid }) => appid
82
+
81
83
  const recipe = compose(
82
84
  find(__, ['Fabricator', 'Strangifier Chemistry Set', 'Chemistry Set']),
83
85
  flip(marketHashIncludes),
@@ -239,7 +241,8 @@ const propsTf2_1 = {
239
241
  id,
240
242
  old_id,
241
243
  contextid,
242
- old_contextid
244
+ old_contextid,
245
+ appid
243
246
  }
244
247
 
245
248
  const isTarget = either(
@@ -321,7 +324,8 @@ const propsTf2_2 = {
321
324
  const propsOtherGame = {
322
325
  sku: ({ appid, market_hash_name }) => `other;${appid};${market_hash_name}`,
323
326
  id,
324
- old_id
327
+ old_id,
328
+ appid
325
329
  }
326
330
 
327
331
  const props753 = {
@@ -332,7 +336,8 @@ const props753 = {
332
336
  id,
333
337
  old_id,
334
338
  contextid,
335
- old_contextid
339
+ old_contextid,
340
+ appid
336
341
  }
337
342
 
338
343
  const keyRemap = when(
@@ -382,7 +387,7 @@ const defaultOptions440 = {
382
387
  }
383
388
 
384
389
  const fromEconItem440 = ({ omitProps = [], uncraftRemapDefindex = [] } = defaultOptions440) => compose(
385
- pick(['sku', 'id', 'old_id', 'contextid', 'old_contextid']),
390
+ pick(['sku', 'id', 'old_id', 'contextid', 'old_contextid', 'appid']),
386
391
  chain(assoc('sku'), skuFromItem),
387
392
  uncraftRemap(uncraftRemapDefindex),
388
393
  kitRemap,
@@ -395,7 +400,7 @@ const fromEconItem440 = ({ omitProps = [], uncraftRemapDefindex = [] } = default
395
400
  )
396
401
 
397
402
  const fromEconItem753 = () => compose(
398
- pick(['sku', 'id', 'old_id', 'contextid', 'old_contextid']),
403
+ pick(['sku', 'id', 'old_id', 'contextid', 'old_contextid', 'appid']),
399
404
  chain(assoc('sku'), skuFromItem753),
400
405
  map(__, props753),
401
406
  unary(applyTo)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juice789/tf2items",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "tf2 item schema thingys",
5
5
  "main": "app.js",
6
6
  "scripts": {