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

@hirosystems/clarinet-sdk-wasm

Package Overview
Dependencies
Maintainers
4
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hirosystems/clarinet-sdk-wasm

The core lib that powers @hirosystems/clarinet-sdk

  • 2.7.0-beta3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
450
decreased by-14.77%
Maintainers
4
Weekly downloads
 
Created
Source

Clarity SDK WASM

This package is built with wasm-pack.
It powers @hirosystems/clarinet-sdk and @hirosystems/clarinet-sdk-browser.

Release

The package is built twice with wasm-pack as it can't target node and web at the same time. The following script will build for both target, it will also rename the package name for the browser build.

node build.mjs

Once built, the packages can be released by running the following commands. Note that by default we release with the beta tag.

Contributing

Build package

Install wasm-pack.

Build for node

wasm-pack build --release --scope hirosystems --out-dir pkg-node --target nodejs

Build for the browser

wasm-pack build --release --scope hirosystems --out-dir pkg-browser --target web

Use the local version of the package

NPM overrides

In 99% of the situations, your project don't directly depend on this package, but instead on @hirosystems/clarinet-sdk or @hirosystems/clarinet-sdk-browser. If you want to use a local or a different version of @hirosystems/clarinet-sdk-wasm or @hirosystems/clarinet-sdk-wasm-browser, you can use the overrides setting in your package.json:

  "overrides": {
    "@hirosystems/clarinet-sdk": {
      "@hirosystems/clarinet-sdk-wasm": "file:/<absolue-path-to>/clarinet/components/clarinet-sdk-wasm/pkg-node"
    }
  }

Or for the browser:

  "overrides": {
    "@hirosystems/clarinet-sdk-browser": {
      "@hirosystems/clarinet-sdk-wasm-browser": "file:/<absolue-path-to>/clarinet/components/clarinet-sdk-wasm/pkg-browser"
    }
  }

The command npm link can be useful to run the unit tests in the clarinet-sdk. See the contribution section of @hirosystems/clarinet-sdk (`../clarinet-sdk/README.md).

FAQs

Package last updated on 03 May 2024

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

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