@libsql/client
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"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); |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
Yes
3858
3
3
0
2
2
+ Addedjs-base64@^3.7.5
+ Addedjs-base64@3.7.7(transitive)