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

@libsql/client

Package Overview
Dependencies
Maintainers
3
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libsql/client - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

LICENSE

48

package.json
{
"name": "@libsql/client",
"version": "0.0.5",
"version": "0.0.6",
"keywords": [

@@ -16,11 +16,18 @@ "libsql",

"type": "git",
"url": "https://github.com/libsql/sqld.git",
"directory": "packages/libsql-client"
"url": "https://github.com/libsql/libsql-client-ts"
},
"author": "Pekka Enberg <penberg@chiselstrike.com>",
"authors": [
"Jan Plhak <jp@chiselstrike.com>",
"Pekka Enberg <penberg@chiselstrike.com>"
],
"license": "MIT",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"type": "module",
"main": "lib-cjs/index.js",
"types": "lib-esm/index.d.ts",
"scripts": {
"build": "tsc",
"prebuild": "rm -rf ./lib-cjs ./lib-esm",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc -p tsconfig.build-cjs.json",
"build:esm": "tsc -p tsconfig.build-esm.json",
"postbuild": "cp package-cjs.json ./lib-cjs/package.json",
"test": "jest --config jestconfig.json",

@@ -30,3 +37,4 @@ "prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write"

"files": [
"lib/**/*"
"lib-cjs/**",
"lib-esm/**"
],

@@ -38,3 +46,3 @@ "devDependencies": {

"prettier": "^2.8.3",
"ts-jest": "^29.0.3",
"ts-jest": "^29.0.5",
"typescript": "^4.9.4"

@@ -44,4 +52,24 @@ },

"better-sqlite3": "^8.0.1",
"cross-fetch": "^3.1.5"
"cross-fetch": "^3.1.5",
"js-base64": "^3.7.5"
},
"exports": {
".": {
"types": "./lib-esm/index.d.ts",
"import": "./lib-esm/index.js",
"require": "./lib-cjs/index.js"
},
"./http": {
"types": "./lib-esm/http/index.d.ts",
"import": "./lib-esm/http/index.js",
"require": "./lib-cjs/http/index.js"
}
},
"typesVersions": {
"*": {
"http": [
"./lib-esm/http/index.d.ts"
]
}
}
}

@@ -8,3 +8,3 @@ # libSQL driver for TypeScript and JavaScript

```typescript
import { connect } from "@libsql/client"
import { createClient } from "@libsql/client"

@@ -14,3 +14,3 @@ const config = {

};
const db = connect(config);
const db = createClient(config);
const rs = await db.execute("SELECT * FROM users");

@@ -23,3 +23,3 @@ console.log(rs);

```typescript
import { connect } from "@libsql/client"
import { createClient } from "@libsql/client"

@@ -29,3 +29,3 @@ const config = {

};
const db = connect(config);
const db = createClient(config);
const rs = await db.execute("SELECT * FROM users");

@@ -32,0 +32,0 @@ console.log(rs);

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