@juice789/tf2items 1.0.2 → 1.0.3

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 (3) hide show
  1. package/options.json +1 -3
  2. package/package.json +1 -1
  3. package/sku.js +3 -3
package/options.json CHANGED
@@ -1,3 +1 @@
1
- {
2
- "steamApiKey": "1E55C647593C029A0C9BE22F97F03F03"
3
- }
1
+ {"steamApiKey": "1E55C647593C029A0C9BE22F97F03F03"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juice789/tf2items",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "tf2 item schema thingys",
5
5
  "main": "app.js",
6
6
  "scripts": {
package/sku.js CHANGED
@@ -113,7 +113,7 @@ const getName = ({
113
113
  craft && '#' + craft,
114
114
  uncraftable && 'Non-Craftable',
115
115
  elevated && 'Strange',
116
- quality && !['6', '15'].includes(quality.toString()) && (qualityBpStyle ? effect : true) && qualityNames[quality],
116
+ quality && !['6', '15'].includes(quality.toString()) && (qualityBpStyle ? !effect : true) && qualityNames[quality],
117
117
  oq && oq.toString() !== '6' && qualityNames[oq],
118
118
  target && killstreakTier && killstreakTiers[killstreakTier],
119
119
  target && safeItems[target].item_name,
@@ -129,9 +129,9 @@ const getName = ({
129
129
  series && '#' + series
130
130
  ].filter(Boolean).join(' ')
131
131
 
132
- const itemNameFromSku = (sku) => {
132
+ const itemNameFromSku = (sku, ...params) => {
133
133
  const item = itemFromSku(sku)
134
- return getName(item)
134
+ return getName(item, ...params)
135
135
  }
136
136
 
137
137
  module.exports = {