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

iron-webcrypto

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iron-webcrypto - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

dist/index.d.cts

7

dist/index.js

@@ -260,3 +260,3 @@ // node_modules/.pnpm/@aws-sdk+util-base64@3.208.0/node_modules/@aws-sdk/util-base64/dist-es/constants.browser.js

const prefix = parts[0];
const passwordId = parts[1];
let passwordId = parts[1];
const encryptionSalt = parts[2];

@@ -281,8 +281,9 @@ const encryptionIv = parts[3];

let pass;
passwordId = passwordId || "default";
if (typeof password === "string" || password instanceof Uint8Array)
pass = password;
else if (!((passwordId || "default") in password))
else if (!(passwordId in password))
throw new Error(`Cannot find password: ${passwordId}`);
else
pass = password[passwordId || "default"];
pass = password[passwordId];
pass = normalizePassword(pass);

@@ -289,0 +290,0 @@ const macOptions = opts.integrity;

{
"$schema": "https://json.schemastore.org/package.json",
"name": "iron-webcrypto",
"version": "0.5.0",
"version": "0.6.0",
"description": "a cryptographic utility for sealing-unsealing a JSON object using symmetric key encryption with message integrity verification",

@@ -23,11 +23,12 @@ "keywords": [

"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"main": "dist/index.cjs",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/index.cjs",
"files": [

@@ -37,26 +38,26 @@ "dist/*"

"scripts": {
"build": "tsup",
"lint": "lefthook run pre-commit",
"prerelease": "pnpm i && pnpm build && pnpm lint && pnpm test:vite && publint",
"build": "pnpm i && tsup && cp dist/index.d.ts dist/index.d.cts",
"lint": "pnpm build && pnpm lint:only",
"lint:only": "lefthook run pre-commit && publint",
"prerelease": "pnpm lint && pnpm test:node",
"release": "pnpm prerelease && release-it",
"test:bun": "bun --cwd=tests/bun wiptest",
"test:bun": "bun --cwd=tests/bun test",
"test:deno": "deno test tests/deno/index.test.ts --parallel --no-check",
"test:node": "node --loader tsx --test tests/node/index.test.ts",
"test:vite": "vitest run tests/vite-node"
"test:node": "NODE_OPTIONS='--loader tsx' node--test tests/node/index.test.ts"
},
"devDependencies": {
"@aws-sdk/util-base64": "^3.208.0",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@peculiar/webcrypto": "^1.4.1",
"@release-it/conventional-changelog": "^5.1.1",
"@types/node": "^18.13.0",
"@types/node": "^18.15.3",
"@types/semver": "^7.3.13",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"bun-types": "^0.5.6",
"eslint": "^8.34.0",
"@typescript-eslint/eslint-plugin": "^5.55.0",
"@typescript-eslint/parser": "^5.55.0",
"bun-types": "^0.5.7",
"eslint": "^8.36.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-prettier": "^8.7.0",
"eslint-import-resolver-node": "^0.3.7",

@@ -67,15 +68,15 @@ "eslint-import-resolver-typescript": "^3.5.3",

"eslint-plugin-security": "^1.7.1",
"lefthook": "^1.2.8",
"lefthook": "^1.3.3",
"prettier": "^2.8.4",
"prettier-plugin-packagejson": "^2.4.3",
"publint": "^0.1.9",
"release-it": "^15.6.0",
"publint": "^0.1.10",
"release-it": "^15.8.0",
"replace": "^1.2.2",
"semver": "^7.3.8",
"tsup": "^6.6.0",
"tsx": "^3.12.3",
"typescript": "^4.9.5",
"vitest": "^0.28.4"
"test": "^3.3.0",
"tsup": "^6.6.3",
"tsx": "^3.12.5",
"typescript": "^4.9.5"
},
"packageManager": "pnpm@7.27.0",
"packageManager": "pnpm@7.29.2",
"publishConfig": {

@@ -82,0 +83,0 @@ "registry": "https://registry.npmjs.org"

Sorry, the diff of this file is not supported yet

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