diff --git a/.depcheckrc.json b/.depcheckrc.json index 302a9f8..5c775da 100644 --- a/.depcheckrc.json +++ b/.depcheckrc.json @@ -1,3 +1,3 @@ { - "ignores": ["@types/jest", "@commitlint/config-conventional"] + "ignores": ["@types/jest", "@commitlint/config-conventional", "prettier"] } diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 8812681..a66a243 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -50,24 +50,5 @@ jobs: - name: Dependency check run: npm run depcheck - - name: Update supported Bee action - uses: ethersphere/update-supported-bee-action@v1 - if: github.ref == 'refs/heads/master' - - name: Build run: npm run build - - - name: Create preview - uses: ethersphere/beeload-action@v1 - continue-on-error: true - with: - bee-url: https://unlimited.gateway.ethswarm.org - preview: 'true' - token: ${{ secrets.REPO_GHA_PAT }} - extra-params: '-H "${{ secrets.GATEWAY_AUTHORIZATION_HEADER }}"' - - - name: Upload to testnet - uses: ethersphere/beeload-action@v1 - continue-on-error: true - with: - bee-url: https://api.gateway.testnet.ethswarm.org diff --git a/src/utils/SwarmFile.ts b/src/utils/SwarmFile.ts index b324f9b..abcc1a2 100644 --- a/src/utils/SwarmFile.ts +++ b/src/utils/SwarmFile.ts @@ -21,5 +21,6 @@ export function packageFile(file: SwarmFile): FilePath { slice: file.slice, text: file.text, arrayBuffer: async () => await file.arrayBuffer(), // This is needed for successful upload and can not simply be { arrayBuffer: file.arrayBuffer } - } + bytes: async () => new Uint8Array(await file.arrayBuffer()), + } as unknown as FilePath }