iron-webcrypto
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -138,3 +138,3 @@ // node_modules/.pnpm/@aws-sdk+util-base64@3.310.0/node_modules/@aws-sdk/util-base64/dist-es/constants.browser.js | ||
var generateKey = async (_crypto, password, options) => { | ||
if (password == null || !password.length) | ||
if (!password?.length) | ||
throw new Error("Empty password"); | ||
@@ -141,0 +141,0 @@ if (options == null || typeof options !== "object") |
{ | ||
"$schema": "https://json.schemastore.org/package.json", | ||
"name": "iron-webcrypto", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "a cryptographic utility for sealing-unsealing a JSON object using symmetric key encryption with message integrity verification", | ||
@@ -39,5 +39,4 @@ "keywords": [ | ||
"lint": "pnpm build && pnpm lint:only", | ||
"lint:only": "lefthook run pre-commit && publint", | ||
"prerelease": "pnpm lint && pnpm test:node", | ||
"release": "pnpm prerelease && release-it", | ||
"lint:only": "lefthook run pre-commit && publint && attw --pack", | ||
"prepublishOnly": "pnpm lint && pnpm test:node", | ||
"test:bun": "bun --cwd=tests/bun test", | ||
@@ -48,14 +47,15 @@ "test:deno": "deno test tests/deno/index.test.ts --parallel --no-check", | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "^0.7.0", | ||
"@aws-sdk/util-base64": "^3.310.0", | ||
"@commitlint/cli": "^17.6.6", | ||
"@commitlint/config-conventional": "^17.6.6", | ||
"@release-it/conventional-changelog": "^5.1.1", | ||
"@types/node": "^20.3.1", | ||
"@release-it/conventional-changelog": "^7.0.0", | ||
"@types/node": "^20.4.2", | ||
"@types/semver": "^7.5.0", | ||
"@typescript-eslint/eslint-plugin": "^5.60.0", | ||
"@typescript-eslint/parser": "^5.60.0", | ||
"bun-types": "^0.6.9", | ||
"eslint": "^8.43.0", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"bun-types": "^0.6.14", | ||
"eslint": "^8.45.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-airbnb-typescript": "^17.0.0", | ||
"eslint-config-airbnb-typescript": "^17.1.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
@@ -65,9 +65,9 @@ "eslint-import-resolver-node": "^0.3.7", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-security": "^1.7.1", | ||
"lefthook": "^1.4.3", | ||
"prettier": "^2.8.8", | ||
"prettier-plugin-packagejson": "^2.4.3", | ||
"publint": "^0.1.12", | ||
"release-it": "^15.11.0", | ||
"lefthook": "^1.4.5", | ||
"prettier": "^3.0.0", | ||
"prettier-plugin-packagejson": "^2.4.5", | ||
"publint": "^0.1.16", | ||
"release-it": "^16.1.2", | ||
"replace": "^1.2.2", | ||
@@ -77,8 +77,5 @@ "test": "^3.3.0", | ||
"tsx": "^3.12.7", | ||
"typescript": "^5.1.3" | ||
"typescript": "^5.1.6" | ||
}, | ||
"packageManager": "pnpm@8.6.5", | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org" | ||
} | ||
"packageManager": "pnpm@8.6.8" | ||
} |
@@ -1,2 +0,2 @@ | ||
# iron-webcrypto (beta) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue?style=flat-square)](https://www.jsdocs.io/package/iron-webcrypto) [![npm](https://img.shields.io/npm/dm/iron-webcrypto?style=flat-square)](https://www.npmjs.com/package/iron-webcrypto) | ||
# iron-webcrypto (beta) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue?style=flat-square)](https://www.jsdocs.io/package/iron-webcrypto) [![downloads](https://img.shields.io/npm/dm/iron-webcrypto?style=flat-square)](https://www.npmjs.com/package/iron-webcrypto) [![npm](https://img.shields.io/npm/v/iron-webcrypto?style=flat-square)](https://www.npmjs.com/package/iron-webcrypto) | ||
@@ -27,3 +27,3 @@ This module is a replacement for [`@hapi/iron`](https://hapi.dev/module/iron/), | ||
```ts | ||
import * as Iron from 'https://esm.sh/iron-webcrypto@0.7.0' | ||
import * as Iron from 'https://esm.sh/iron-webcrypto@0.7.1' | ||
``` | ||
@@ -53,3 +53,3 @@ | ||
[`uncrypto`](https://github.com/unjs/uncrypto) for this too. Also, you might | ||
need to polyfill this for older Node.js versions. We recommend using | ||
need to polyfill this for older Node.js versions. I recommend using | ||
[`@peculiar/webcrypto`](https://github.com/PeculiarVentures/webcrypto) for that. | ||
@@ -96,1 +96,9 @@ | ||
``` | ||
## Sponsors | ||
<p align="center"> | ||
<a href="https://cdn.jsdelivr.net/gh/brc-dd/static/sponsors.svg"> | ||
<img src='https://cdn.jsdelivr.net/gh/brc-dd/static/sponsors.svg'/> | ||
</a> | ||
</p> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44673
102
29