Socket
Socket
Sign inDemoInstall

@peculiar/x509

Package Overview
Dependencies
Maintainers
6
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@peculiar/x509 - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

13

build/x509.es.js

@@ -126,2 +126,3 @@ /*!

toAsnAlgorithm(alg) {
({ ...alg });
for (const algorithm of this.getAlgorithms()) {

@@ -1341,2 +1342,8 @@ const res = algorithm.toAsnAlgorithm(alg);

static async create(params, crypto = cryptoProvider.get()) {
if (!params.keys.privateKey) {
throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");
}
if (!params.keys.publicKey) {
throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");
}
const spki = await crypto.subtle.exportKey("spki", params.keys.publicKey);

@@ -1510,2 +1517,8 @@ const asnReq = new CertificationRequest({

static async createSelfSigned(params, crypto = cryptoProvider.get()) {
if (!params.keys.privateKey) {
throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");
}
if (!params.keys.publicKey) {
throw new Error("Bad field 'keys' in 'params' argument. 'privateKey' is empty");
}
return this.create({

@@ -1512,0 +1525,0 @@ serialNumber: params.serialNumber,

52

package.json
{
"name": "@peculiar/x509",
"version": "1.4.1",
"version": "1.5.0",
"description": "@peculiar/x509 is an easy to use TypeScript/Javascript library based on @peculiar/asn1-schema that makes generating X.509 Certificates and Certificate Requests as well as validating certificate chains easy",
"main": "build/x509.cjs.js",
"module": "build/x509.es.js",
"browser": "build/x509.js",
"unpkg": "build/x509.js",
"types": "build/types/index.d.ts",

@@ -86,36 +86,36 @@ "scripts": {

"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/preset-env": "^7.14.2",
"@babel/core": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"@peculiar/webcrypto": "^1.1.7",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/mocha": "^8.2.2",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.6",
"@types/mocha": "^9.0.0",
"@types/node": "^14.17.1",
"@typescript-eslint/eslint-plugin": "^4.25.0",
"@typescript-eslint/parser": "^4.25.0",
"coveralls": "^3.1.0",
"eslint": "^7.27.0",
"mocha": "^8.4.0",
"@typescript-eslint/eslint-plugin": "^5.2.0",
"@typescript-eslint/parser": "^5.2.0",
"coveralls": "^3.1.1",
"eslint": "^8.1.0",
"mocha": "^9.1.3",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.50.1",
"rollup": "^2.58.3",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"ts-node": "^10.0.0",
"typedoc": "^0.20.36",
"typescript": "^4.2.4"
"ts-node": "^10.4.0",
"typedoc": "^0.22.7",
"typescript": "^4.4.4"
},
"dependencies": {
"@peculiar/asn1-cms": "^2.0.36",
"@peculiar/asn1-csr": "^2.0.36",
"@peculiar/asn1-ecc": "^2.0.36",
"@peculiar/asn1-pkcs9": "^2.0.36",
"@peculiar/asn1-rsa": "^2.0.36",
"@peculiar/asn1-schema": "^2.0.36",
"@peculiar/asn1-x509": "^2.0.36",
"pvtsutils": "^1.1.7",
"@peculiar/asn1-cms": "^2.0.38",
"@peculiar/asn1-csr": "^2.0.38",
"@peculiar/asn1-ecc": "^2.0.38",
"@peculiar/asn1-pkcs9": "^2.0.38",
"@peculiar/asn1-rsa": "^2.0.38",
"@peculiar/asn1-schema": "^2.0.38",
"@peculiar/asn1-x509": "^2.0.38",
"pvtsutils": "^1.2.1",
"reflect-metadata": "^0.1.13",
"tslib": "^2.2.0",
"tsyringe": "^4.5.0"
"tslib": "^2.3.1",
"tsyringe": "^4.6.0"
},

@@ -122,0 +122,0 @@ "eslintConfig": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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