@juice789/tf2items 1.0.0 → 1.0.1

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/app.js CHANGED
@@ -14,6 +14,12 @@ const createApi = require('./api.js')
14
14
  const sagas = require('./sagas.js')
15
15
  const { saveSchemaSaga } = require('./saveSchema.js')
16
16
 
17
+ const { fromEconItem } = require('./fromEconItem.js')
18
+ const { fromListingV1 } = require('./fromListingV1.js')
19
+ const { fromListingV2 } = require('./fromListingV2.js')
20
+ const { blanketify } = require('./blanket.js')
21
+ const { toSearchParams } = require('./toSearchParams.js')
22
+
17
23
  const getInstance = (options) => {
18
24
  const api = createApi(options)
19
25
  return compose(
@@ -38,5 +44,11 @@ module.exports = {
38
44
  ...sagas,
39
45
  ...sagaHelpers,
40
46
  saveSchemaSaga,
41
- getInstance
47
+ getInstance,
48
+ createApi,
49
+ fromEconItem,
50
+ fromListingV1,
51
+ fromListingV2,
52
+ blanketify,
53
+ toSearchParams
42
54
  }
@@ -32,7 +32,7 @@ const mergeAssetClasses = uncurryN(2, (assetClasses) => compose(
32
32
  groupBy(props(['classid', 'instanceid']))
33
33
  ))
34
34
 
35
- function* fetchAppDataInventory(inventory, d = 1000) {
35
+ function* fetchAppDataInventorySaga(inventory, d = 1000) {
36
36
 
37
37
  let p = 0, assetClasses = {}
38
38
  const { getAssetClassInfo } = yield getContext('api')
@@ -50,5 +50,5 @@ function* fetchAppDataInventory(inventory, d = 1000) {
50
50
  }
51
51
 
52
52
  module.exports = {
53
- fetchAppDataInventory
53
+ fetchAppDataInventorySaga
54
54
  }
package/options.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "steamApiKey": "1E55C647593C029A0C9BE22F97F03F03"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juice789/tf2items",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "tf2 item schema thingys",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -34,4 +34,4 @@
34
34
  "access": "public"
35
35
  },
36
36
  "sideEffects": false
37
- }
37
+ }
package/sagas.js CHANGED
@@ -3,11 +3,13 @@ const { fetchItemsGameSaga } = require('./fetchItemsGame.js')
3
3
  const { fetchParticleEffectsSaga } = require('./fetchParticleEffects.js')
4
4
  const { fetchTexturesSaga } = require('./fetchTextures.js')
5
5
  const { fetchTfEnglishSaga } = require('./fetchTfEnglish.js')
6
+ const { fetchAppDataInventorySaga } = require('./fetchAppDataInventory.js')
6
7
 
7
8
  module.exports = {
8
9
  fetchItemsApiSaga,
9
10
  fetchItemsGameSaga,
10
11
  fetchParticleEffectsSaga,
11
12
  fetchTexturesSaga,
12
- fetchTfEnglishSaga
13
+ fetchTfEnglishSaga,
14
+ fetchAppDataInventorySaga
13
15
  }
package/schemaItems.js CHANGED
@@ -12,4 +12,5 @@ const safeItems = new Proxy(schema.items, {
12
12
  module.exports = {
13
13
  ...schema,
14
14
  safeItems,
15
+ items: schema.items
15
16
  }