mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-24 11:34:21 +01:00
This rewrites the JavaScript bindings completely by exposing only primitive operations from Rust NAPI-RS code. For example, there is prepare(), bind(), and step(), but high level interfaces like all() and get() are implemented in JavaScript. We're doing this so that we can implement async interfaces in the JavaScript layer instead of having to bring in Tokio.
56 lines
1.2 KiB
JSON
56 lines
1.2 KiB
JSON
{
|
|
"name": "@tursodatabase/turso",
|
|
"version": "0.1.3",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/tursodatabase/turso"
|
|
},
|
|
"description": "The Turso database library",
|
|
"main": "promise.js",
|
|
"exports": {
|
|
".": "./promise.js",
|
|
"./sync": "./sync.js"
|
|
},
|
|
"files": [
|
|
"bindjs",
|
|
"browser.js",
|
|
"index.js",
|
|
"promise.js",
|
|
"sqlite-error.js",
|
|
"sync.js"
|
|
],
|
|
"types": "index.d.ts",
|
|
"napi": {
|
|
"binaryName": "turso",
|
|
"targets": [
|
|
"x86_64-unknown-linux-gnu",
|
|
"x86_64-pc-windows-msvc",
|
|
"universal-apple-darwin",
|
|
"wasm32-wasip1-threads"
|
|
]
|
|
},
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^3.0.4",
|
|
"@napi-rs/wasm-runtime": "^1.0.1",
|
|
"ava": "^6.0.1",
|
|
"better-sqlite3": "^11.9.1"
|
|
},
|
|
"ava": {
|
|
"timeout": "3m"
|
|
},
|
|
"engines": {
|
|
"node": ">= 10"
|
|
},
|
|
"scripts": {
|
|
"artifacts": "napi artifacts",
|
|
"build": "napi build --platform --release",
|
|
"build:debug": "napi build --platform",
|
|
"prepublishOnly": "napi prepublish -t npm",
|
|
"test": "ava -s",
|
|
"universal": "napi universalize",
|
|
"version": "napi version"
|
|
},
|
|
"packageManager": "yarn@4.9.2"
|
|
}
|