@libsql/hrana-client
Advanced tools
Comparing version 0.3.2 to 0.3.3
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Client = void 0; | ||
const isomorphic_ws_1 = __importDefault(require("isomorphic-ws")); | ||
const isomorphic_ws_1 = require("@libsql/isomorphic-ws"); | ||
const id_alloc_js_1 = require("./id_alloc.js"); | ||
@@ -49,3 +46,3 @@ const errors_js_1 = require("./errors.js"); | ||
} | ||
if (this.#socket.readyState >= isomorphic_ws_1.default.OPEN) { | ||
if (this.#socket.readyState >= isomorphic_ws_1.WebSocket.OPEN) { | ||
this.#sendToSocket(msg); | ||
@@ -52,0 +49,0 @@ } |
@@ -28,8 +28,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.open = exports.Stream = exports.Stmt = exports.raw = exports.BatchCond = exports.BatchStep = exports.Batch = exports.Client = void 0; | ||
const isomorphic_ws_1 = __importDefault(require("isomorphic-ws")); | ||
const isomorphic_ws_1 = require("@libsql/isomorphic-ws"); | ||
const client_js_1 = require("./client.js"); | ||
@@ -51,5 +48,5 @@ var client_js_2 = require("./client.js"); | ||
function open(url, jwt) { | ||
const socket = new isomorphic_ws_1.default(url, ["hrana1"]); | ||
const socket = new isomorphic_ws_1.WebSocket(url, ["hrana1"]); | ||
return new client_js_1.Client(socket, jwt ?? null); | ||
} | ||
exports.open = open; |
/// <reference types="ws" /> | ||
import WebSocket from "isomorphic-ws"; | ||
import { WebSocket } from "@libsql/isomorphic-ws"; | ||
import type * as proto from "./proto.js"; | ||
@@ -4,0 +4,0 @@ import { Stream } from "./stream.js"; |
@@ -1,2 +0,2 @@ | ||
import WebSocket from "isomorphic-ws"; | ||
import { WebSocket } from "@libsql/isomorphic-ws"; | ||
import { IdAlloc } from "./id_alloc.js"; | ||
@@ -3,0 +3,0 @@ import { ClientError, ProtoError, ClosedError } from "./errors.js"; |
@@ -1,2 +0,2 @@ | ||
import WebSocket from "isomorphic-ws"; | ||
import { WebSocket } from "@libsql/isomorphic-ws"; | ||
import { Client } from "./client.js"; | ||
@@ -3,0 +3,0 @@ export { Client } from "./client.js"; |
{ | ||
"name": "@libsql/hrana-client", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"keywords": [ | ||
@@ -52,5 +52,4 @@ "hrana", | ||
"dependencies": { | ||
"isomorphic-ws": "^5.0.0", | ||
"js-base64": "^3.7.5", | ||
"@types/ws": "^8.5.4" | ||
"@libsql/isomorphic-ws": "^0.1.0", | ||
"js-base64": "^3.7.5" | ||
}, | ||
@@ -57,0 +56,0 @@ "devDependencies": { |
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
2
76304
1927
+ Added@libsql/isomorphic-ws@^0.1.0
+ Added@libsql/isomorphic-ws@0.1.5(transitive)
+ Added@types/node@22.10.0(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@types/ws@^8.5.4
- Removedisomorphic-ws@^5.0.0
- Removed@types/node@22.9.3(transitive)
- Removedisomorphic-ws@5.0.0(transitive)
- Removedundici-types@6.19.8(transitive)