Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libsql/hrana-client

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libsql/hrana-client - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

7

lib-cjs/client.js
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc