Comparing version 0.0.45 to 0.0.46
import { error } from "./types.js"; | ||
declare function verifyRegistryReadResponse(resp: Response, pubkey: Uint8Array, datakey: Uint8Array): Promise<error>; | ||
export { verifyRegistryReadResponse }; | ||
declare function verifyRegistryWriteResponse(resp: Response): Promise<error>; | ||
export { verifyRegistryReadResponse, verifyRegistryWriteResponse }; |
@@ -73,2 +73,14 @@ import { hexToBuf } from "./encoding.js"; | ||
} | ||
export { verifyRegistryReadResponse }; | ||
// verifyRegistryWriteResponse will verify that the response from a | ||
// registryWrite call is valid. There's not much to verify beyond looking for | ||
// the right response code, as the portal is not providing us with data, just | ||
// confirming that a write succeeded. | ||
function verifyRegistryWriteResponse(resp) { | ||
return new Promise((resolve) => { | ||
if (resp.status === 200) { | ||
resolve(null); | ||
} | ||
resolve("expecting 200 status code for registry write, got:" + resp.status.toString()); | ||
}); | ||
} | ||
export { verifyRegistryReadResponse, verifyRegistryWriteResponse }; |
{ | ||
"name": "libskynet", | ||
"version": "0.0.45", | ||
"version": "0.0.46", | ||
"description": "helper library to interact with skynet's low level primitives", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150919
4672