@libsql/hrana-client
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -51,2 +51,3 @@ "use strict"; | ||
#conditions; | ||
/** @private */ | ||
_index; | ||
@@ -53,0 +54,0 @@ /** @private */ |
@@ -6,2 +6,3 @@ "use strict"; | ||
class ClientError extends Error { | ||
/** @private */ | ||
constructor(message) { | ||
@@ -15,2 +16,3 @@ super(message); | ||
class ProtoError extends ClientError { | ||
/** @private */ | ||
constructor(message) { | ||
@@ -24,3 +26,5 @@ super(message); | ||
class ResponseError extends ClientError { | ||
/** @internal */ | ||
proto; | ||
/** @private */ | ||
constructor(message, protoError) { | ||
@@ -36,2 +40,3 @@ super(message); | ||
class ClosedError extends ClientError { | ||
/** @private */ | ||
constructor(message, cause) { | ||
@@ -38,0 +43,0 @@ super(message); |
@@ -42,2 +42,3 @@ "use strict"; | ||
Object.defineProperty(exports, "BatchCond", { enumerable: true, get: function () { return batch_js_1.BatchCond; } }); | ||
/** @internal */ | ||
exports.raw = __importStar(require("./raw.js")); | ||
@@ -44,0 +45,0 @@ var stmt_js_1 = require("./stmt.js"); |
@@ -24,2 +24,3 @@ import type { Client, StreamState } from "./client.js"; | ||
#private; | ||
/** @private */ | ||
_index: number | undefined; | ||
@@ -26,0 +27,0 @@ /** @private */ |
@@ -47,2 +47,3 @@ import { ProtoError } from "./errors.js"; | ||
#conditions; | ||
/** @private */ | ||
_index; | ||
@@ -49,0 +50,0 @@ /** @private */ |
import type * as proto from "./proto.js"; | ||
/** Generic error produced by the Hrana client. */ | ||
export declare class ClientError extends Error { | ||
/** @private */ | ||
constructor(message: string); | ||
@@ -8,2 +9,3 @@ } | ||
export declare class ProtoError extends ClientError { | ||
/** @private */ | ||
constructor(message: string); | ||
@@ -13,3 +15,5 @@ } | ||
export declare class ResponseError extends ClientError { | ||
/** @internal */ | ||
proto: proto.Error; | ||
/** @private */ | ||
constructor(message: string, protoError: proto.Error); | ||
@@ -19,3 +23,4 @@ } | ||
export declare class ClosedError extends ClientError { | ||
/** @private */ | ||
constructor(message: string, cause: Error); | ||
} |
/** Generic error produced by the Hrana client. */ | ||
export class ClientError extends Error { | ||
/** @private */ | ||
constructor(message) { | ||
@@ -10,2 +11,3 @@ super(message); | ||
export class ProtoError extends ClientError { | ||
/** @private */ | ||
constructor(message) { | ||
@@ -18,3 +20,5 @@ super(message); | ||
export class ResponseError extends ClientError { | ||
/** @internal */ | ||
proto; | ||
/** @private */ | ||
constructor(message, protoError) { | ||
@@ -29,2 +33,3 @@ super(message); | ||
export class ClosedError extends ClientError { | ||
/** @private */ | ||
constructor(message, cause) { | ||
@@ -31,0 +36,0 @@ super(message); |
@@ -7,2 +7,3 @@ /// <reference types="node" /> | ||
export { Batch, BatchStep, BatchCond } from "./batch.js"; | ||
/** @internal */ | ||
export * as raw from "./raw.js"; | ||
@@ -14,4 +15,5 @@ export type { StmtResult, RowsResult, RowResult, ValueResult, Row } from "./result.js"; | ||
export type { Value, InValue } from "./value.js"; | ||
/** @internal */ | ||
export type { proto }; | ||
/** Open a Hrana client connected to the given `url`. */ | ||
export declare function open(url: string | URL, jwt?: string): Client; |
@@ -6,2 +6,3 @@ import WebSocket from "isomorphic-ws"; | ||
export { Batch, BatchStep, BatchCond } from "./batch.js"; | ||
/** @internal */ | ||
export * as raw from "./raw.js"; | ||
@@ -8,0 +9,0 @@ export { Stmt } from "./stmt.js"; |
{ | ||
"name": "@libsql/hrana-client", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "hrana", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
76356
1927
0