Skip to content

Commit

Permalink
chore: bump @dcl/catalyst-storage from 2.0.3 to 3.0.1 (#151)
Browse files Browse the repository at this point in the history
* chore: bump @dcl/catalyst-storage from 2.0.3 to 3.0.1

Bumps [@dcl/catalyst-storage](https://github.com/decentraland/catalyst-storage) from 2.0.3 to 3.0.1.
- [Release notes](https://github.com/decentraland/catalyst-storage/releases)
- [Commits](decentraland/catalyst-storage@2.0.3...3.0.1)

---
updated-dependencies:
- dependency-name: "@dcl/catalyst-storage"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mariano Goldman <[email protected]>
  • Loading branch information
dependabot[bot] and Mariano Goldman authored Jul 11, 2023
1 parent e2aa164 commit 846b8ff
Show file tree
Hide file tree
Showing 3 changed files with 1,146 additions and 140 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"tabWidth": 2
},
"dependencies": {
"@dcl/catalyst-storage": "^2.0.0",
"@dcl/catalyst-storage": "^3.0.1",
"@dcl/hashing": "^2.0.0",
"@dcl/schemas": "^7.1.0",
"@well-known-components/interfaces": "^1.4.0",
Expand Down
10 changes: 4 additions & 6 deletions test/test-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@ import * as nodeFetch from 'node-fetch'
import { readFileSync } from 'fs'
import { readdir, stat } from 'fs/promises'
import { resolve } from 'path'
import { createInMemoryStorage } from '@dcl/catalyst-storage'
import { IContentStorageComponent } from '@dcl/catalyst-storage'
import { createInMemoryStorage, IContentStorageComponent } from '@dcl/catalyst-storage'
import { IProcessedSnapshotStorageComponent } from '../src/types'
import { Readable } from "stream";
import { Readable } from 'stream'

export function createFetchComponent() {
const fetch: IFetchComponent = {
async fetch(url: nodeFetch.RequestInfo, init?: nodeFetch.RequestInit): Promise<nodeFetch.Response> {
return nodeFetch.default(url, init)
},
}
}

return fetch
}

export async function createStorageComponent(): Promise<IContentStorageComponent> {

const rootFixturesDir = 'test/fixtures'

const files = await readdir(rootFixturesDir)
Expand Down Expand Up @@ -48,7 +46,7 @@ export function createProcessedSnapshotStorageComponent(): IProcessedSnapshotSto

return {
async filterProcessedSnapshotsFrom(snapshotHashes: string[]) {
return new Set(snapshotHashes.filter(h => processedSnapshots.has(h)))
return new Set(snapshotHashes.filter((h) => processedSnapshots.has(h)))
},
async markSnapshotAsProcessed(snapshotHash: string) {
processedSnapshots.add(snapshotHash)
Expand Down
Loading

0 comments on commit 846b8ff

Please sign in to comment.