@libsql/hrana-client
Advanced tools
Comparing version 0.3.6 to 0.3.7
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WebSocketUnsupportedError = exports.ClosedError = exports.ResponseError = exports.ProtoError = exports.ClientError = void 0; | ||
exports.LibsqlUrlParseError = exports.WebSocketUnsupportedError = exports.ClosedError = exports.ResponseError = exports.ProtoError = exports.ClientError = void 0; | ||
/** Generic error produced by the Hrana client. */ | ||
@@ -55,1 +55,10 @@ class ClientError extends Error { | ||
exports.WebSocketUnsupportedError = WebSocketUnsupportedError; | ||
/** Error thrown when a libsql URL is not valid. */ | ||
class LibsqlUrlParseError extends ClientError { | ||
/** @private */ | ||
constructor(message) { | ||
super(message); | ||
this.name = "LibsqlUrlParseError"; | ||
} | ||
} | ||
exports.LibsqlUrlParseError = LibsqlUrlParseError; |
@@ -29,3 +29,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.open = exports.Stream = exports.Stmt = exports.raw = exports.BatchCond = exports.BatchStep = exports.Batch = exports.Client = void 0; | ||
exports.open = exports.Stream = exports.Stmt = exports.raw = exports.parseLibsqlUrl = exports.BatchCond = exports.BatchStep = exports.Batch = exports.Client = void 0; | ||
const isomorphic_ws_1 = require("@libsql/isomorphic-ws"); | ||
@@ -41,2 +41,4 @@ const client_js_1 = require("./client.js"); | ||
Object.defineProperty(exports, "BatchCond", { enumerable: true, get: function () { return batch_js_1.BatchCond; } }); | ||
var libsql_url_js_1 = require("./libsql_url.js"); | ||
Object.defineProperty(exports, "parseLibsqlUrl", { enumerable: true, get: function () { return libsql_url_js_1.parseLibsqlUrl; } }); | ||
/** @internal */ | ||
@@ -43,0 +45,0 @@ exports.raw = __importStar(require("./raw.js")); |
@@ -30,1 +30,6 @@ import type * as proto from "./proto.js"; | ||
} | ||
/** Error thrown when a libsql URL is not valid. */ | ||
export declare class LibsqlUrlParseError extends ClientError { | ||
/** @private */ | ||
constructor(message: string); | ||
} |
@@ -47,1 +47,9 @@ /** Generic error produced by the Hrana client. */ | ||
} | ||
/** Error thrown when a libsql URL is not valid. */ | ||
export class LibsqlUrlParseError extends ClientError { | ||
/** @private */ | ||
constructor(message) { | ||
super(message); | ||
this.name = "LibsqlUrlParseError"; | ||
} | ||
} |
@@ -7,2 +7,4 @@ /// <reference types="node" /> | ||
export { Batch, BatchStep, BatchCond } from "./batch.js"; | ||
export type { ParsedLibsqlUrl } from "./libsql_url.js"; | ||
export { parseLibsqlUrl } from "./libsql_url.js"; | ||
/** @internal */ | ||
@@ -9,0 +11,0 @@ export * as raw from "./raw.js"; |
@@ -7,2 +7,3 @@ import { WebSocket } from "@libsql/isomorphic-ws"; | ||
export { Batch, BatchStep, BatchCond } from "./batch.js"; | ||
export { parseLibsqlUrl } from "./libsql_url.js"; | ||
/** @internal */ | ||
@@ -9,0 +10,0 @@ export * as raw from "./raw.js"; |
{ | ||
"name": "@libsql/hrana-client", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"keywords": [ | ||
@@ -38,3 +38,3 @@ "hrana", | ||
"clean": "rm -rf ./lib ./*.tsbuildinfo", | ||
"prepublishOnly": "npm run build", | ||
"prepublishOnly": "npm run clean-build", | ||
"prebuild": "rm -rf ./lib-cjs ./lib-esm", | ||
@@ -41,0 +41,0 @@ "build": "npm run build:cjs && npm run build:esm", |
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
83374
40
2092