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

@chainsafe/as-sha256

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/as-sha256 - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

7

CHANGELOG.md

@@ -6,2 +6,9 @@ # Change Log

## [0.4.0](https://github.com/ChainSafe/ssz/compare/as-sha256-v0.3.1...as-sha256-v0.4.0) (2023-04-05)
### Features
* add swappable hasher, default to noble-hashes ([#314](https://github.com/ChainSafe/ssz/issues/314)) ([4b44614](https://github.com/ChainSafe/ssz/commit/4b44614003619b2c5477363a3c85287e2f2987bd))
## [0.3.1](https://github.com/chainsafe/as-sha256/compare/@chainsafe/as-sha256@0.3.0...@chainsafe/as-sha256@0.3.1) (2022-04-14)

@@ -8,0 +15,0 @@

31

package.json
{
"name": "@chainsafe/as-sha256",
"version": "0.3.1",
"version": "0.4.0",
"description": "An AssemblyScript implementation of SHA256",

@@ -16,2 +16,15 @@ "author": "ChainSafe Systems",

"main": "lib/index.js",
"exports": {
".": "./lib/index.js",
"./hashObject": "./lib/hashObject.js"
},
"typesVersions": {
"*": {
"*": [
"*",
"lib/*",
"lib/*/index"
]
}
},
"types": "lib/index.d.ts",

@@ -23,13 +36,12 @@ "files": [

"scripts": {
"prebuild": "rm -rf ./dist && node -r ts-node/register ./scripts/codegen.ts",
"prepublish": "yarn build",
"clean": "rm -rf ./dist && node -r ts-node/register ./scripts/codegen.ts",
"build": "yarn asbuild:untouched && yarn asbuild:optimized && yarn build:lib",
"asbuild:untouched": "asc assembly/index.ts -b build/untouched.wasm -t build/untouched.wat --runtime none --validate --debug",
"asbuild:optimized": "asc assembly/index.ts -b build/optimized.wasm -t build/optimized.wat --runtime none --validate -O3z --noAssert",
"build:lib": "tsc -p tsconfig.build.json",
"build:web": "webpack --mode production --entry ./index.js --output ./dist/as-sha256.min.js",
"build:lib": "run -T tsc -p tsconfig.build.json",
"build:web": "run -T webpack --mode production --entry ./index.js --output ./dist/as-sha256.min.js",
"test": "yarn run test:as-ci && yarn run test:unit",
"test:unit": "yarn run test:unit:node && yarn run test:unit:browser",
"test:unit:node": "mocha -r ts-node/register test/unit/*.test.ts",
"test:unit:browser": "karma start --single-run --browsers ChromeHeadless,FirefoxHeadless karma.config.js",
"test:unit:node": "run -T mocha -r ts-node/register test/unit/*.test.ts",
"test:unit:browser": "run -T karma start --single-run --browsers ChromeHeadless,FirefoxHeadless karma.config.js",
"benchmark": "node -r ts-node/register ./node_modules/.bin/benchmark 'test/perf/index.test.ts'",

@@ -48,4 +60,3 @@ "benchmark:local": "yarn benchmark --local",

"benchmark": "^2.1.4"
},
"gitHead": "42c30c4c797ef1ec06ef0139d4967c4725dca4e7"
}
}
}
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