diff --git a/README.md b/README.md index 0b02596..1ba4f01 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ Shardus Crypto Utils is a tool providing a set of cryptographic utility function You can install Shardus Crypto Utils via npm: ```bash -npm install @shardus/crypto-utils +npm install @shardeum-foundation/lib-crypto-utils ``` ## Usage ```JavaScript -const crypto = require('shardus-crypto-utils') +const crypto = require('@shardeum-foundation/lib-crypto-utils') // Module has a constructor that takes in a 32-byte hex key as required by node-sodium for generic hashing crypto.init('64f152869ca2d473e4ba64ab53f49ccdb2edae22da192c126850970e788af347') diff --git a/package-lock.json b/package-lock.json index b94d0dd..052a0f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { - "name": "@shardus/crypto-utils", - "version": "4.1.5", + "name": "@shardeum-foundation/lib-crypto-utils", + "version": "4.1.6-prerelease.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@shardus/crypto-utils", - "version": "4.1.5", + "name": "@shardeum-foundation/lib-crypto-utils", + "version": "4.1.6-prerelease.0", "license": "ISC", "dependencies": { - "@shardus/types": "git+https://github.com/shardeum/lib-types#dev", + "@shardeum-foundation/lib-types": "1.2.22-prerelease.0", "buffer-xor": "2.0.2", "fast-stable-stringify": "1.0.0", "sodium-native": "3.3.0" @@ -404,10 +404,10 @@ "node": ">=6" } }, - "node_modules/@shardus/types": { - "version": "1.2.21", - "resolved": "git+ssh://git@github.com/shardeum/lib-types.git#23e69d2d3e17f82cafeb279667dc1bb3c86140ae", - "license": "ISC" + "node_modules/@shardeum-foundation/lib-types": { + "version": "1.2.22-prerelease.0", + "resolved": "https://registry.npmjs.org/@shardeum-foundation/lib-types/-/lib-types-1.2.22-prerelease.0.tgz", + "integrity": "sha512-z64hEj8D7ZlhNjZn0fIUWYaLipINkQZo56ilTVnVexkH46ipIB02X7CQlyYiVna7N+tODXdf09Xg5cuC0Bkt9g==" }, "node_modules/@sindresorhus/is": { "version": "4.6.0", diff --git a/package.json b/package.json index 0f0b110..5a25d78 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "@shardus/crypto-utils", - "version": "4.1.5", + "name": "@shardeum-foundation/lib-crypto-utils", + "version": "4.1.6-prerelease.0", "description": "Provides simple crypto functions, as used by the ULC Project.", "main": "./build/src/index.js", "types": "./build/src/index.d.ts", @@ -9,7 +9,6 @@ "src/**/*" ], "scripts": { - "release": "np --no-tests --no-yarn --any-branch", "test": "echo \"Error: no test specified\" && exit 1", "check": "gts check", "lint": "eslint './src/**/*.ts'", @@ -19,7 +18,11 @@ "fix": "gts fix", "prepare": "npm run compile", "pretest": "npm run compile", - "posttest": "npm run check" + "posttest": "npm run check", + "release:prerelease": "npm run prepare && npm version prerelease --preid=prerelease && git push --follow-tags && npm publish --tag prerelease", + "release:patch": "npm run prepare && npm version patch && git push --follow-tags && npm publish", + "release:minor": "npm run prepare && npm version minor && git push --follow-tags && npm publish", + "release:major": "npm run prepare && npm version major && git push --follow-tags && npm publish" }, "repository": { "type": "git", @@ -38,7 +41,7 @@ }, "homepage": "https://github.com/shardeum/lib-crypto-utils#readme", "dependencies": { - "@shardus/types": "git+https://github.com/shardeum/lib-types#dev", + "@shardeum-foundation/lib-types": "1.2.22-prerelease.0", "buffer-xor": "2.0.2", "fast-stable-stringify": "1.0.0", "sodium-native": "3.3.0" @@ -61,4 +64,4 @@ "engines": { "node": "18.19.1" } -} \ No newline at end of file +}