@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 +13 -1
- package/fetchAppDataInventory.js +2 -2
- package/options.json +3 -0
- package/package.json +2 -2
- package/sagas.js +3 -1
- package/schemaItems.js +1 -0
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
|
}
|
package/fetchAppDataInventory.js
CHANGED
|
@@ -32,7 +32,7 @@ const mergeAssetClasses = uncurryN(2, (assetClasses) => compose(
|
|
|
32
32
|
groupBy(props(['classid', 'instanceid']))
|
|
33
33
|
))
|
|
34
34
|
|
|
35
|
-
function*
|
|
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
|
-
|
|
53
|
+
fetchAppDataInventorySaga
|
|
54
54
|
}
|
package/options.json
ADDED
package/package.json
CHANGED
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
|
}
|