@ethersphere/bee-js
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -33,2 +33,3 @@ "use strict"; | ||
const bytes_1 = require("../utils/bytes"); | ||
const error_1 = require("../utils/error"); | ||
const eth_1 = require("../utils/eth"); | ||
@@ -49,3 +50,3 @@ const hash_1 = require("../utils/hash"); | ||
catch (e) { | ||
if (e?.response?.status === 404) { | ||
if (e instanceof error_1.BeeResponseError) { | ||
return (0, hex_1.bytesToHex)((0, bytes_1.makeBytes)(8)); | ||
@@ -52,0 +53,0 @@ } |
@@ -7,2 +7,3 @@ import { Binary } from 'cafe-utility'; | ||
import { bytesAtOffset, makeBytes } from "../utils/bytes.js"; | ||
import { BeeResponseError } from "../utils/error.js"; | ||
import { makeHexEthAddress } from "../utils/eth.js"; | ||
@@ -22,3 +23,3 @@ import { keccak256Hash } from "../utils/hash.js"; | ||
} catch (e) { | ||
if (e?.response?.status === 404) { | ||
if (e instanceof BeeResponseError) { | ||
return bytesToHex(makeBytes(8)); | ||
@@ -25,0 +26,0 @@ } |
{ | ||
"name": "@ethersphere/bee-js", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "Javascript client for Bee", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1915249
14514