🚀 DAY 3 OF LAUNCH WEEK:Announcing Bun and vlt Support in Socket.Learn more
Socket
Book a DemoInstallSign in
Socket

@prisma/query-engine-wasm

Package Overview
Dependencies
Maintainers
10
Versions
990
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma/query-engine-wasm

**INTERNAL PACKAGE, DO NOT USE**

Source
npmnpm
Version
5.8.0-7.8a6f85f9d27c5a1af1bef9bcb2bff5bd82e2b48f
Version published
Weekly downloads
1.7K
-78.2%
Maintainers
10
Weekly downloads
 
Created
Source

@prisma/query-engine-wasm

INTERNAL PACKAGE, DO NOT USE

This is a Wasm-compatible version of the Query Engine library (libquery). Currently, it just contains a skeleton of the public API, as some internal crates are still not Wasm-compatible.

The published npm package is internal to Prisma. Its API will break without prior warning.

Setup

# Install the latest Rust version with `rustup`
# or update the latest Rust version with `rustup`
rustup update
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen
cargo install wasm-pack

How to Build

From the current folder:

  • ./build.sh $OUT_NPM_VERSION

where e.g. OUT_NPM_VERSION="0.0.1" is the version you want to publish this package on npm with.

How to Publish

From the current folder:

  • wasm-pack publish --access public

How to Test

To try importing the , you can run:

  • nvm use
  • node --experimental-wasm-modules example/example.js

FAQs

Package last updated on 12 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts