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

pkijs

Package Overview
Dependencies
Maintainers
2
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkijs - npm Package Compare versions

Comparing version 2.1.24 to 2.1.25

16

build/SignedData.js

@@ -392,3 +392,7 @@ "use strict";

_ref$extendedMode = _ref.extendedMode,
extendedMode = _ref$extendedMode === undefined ? false : _ref$extendedMode;
extendedMode = _ref$extendedMode === undefined ? false : _ref$extendedMode,
_ref$findOrigin = _ref.findOrigin,
findOrigin = _ref$findOrigin === undefined ? null : _ref$findOrigin,
_ref$findIssuer = _ref.findIssuer,
findIssuer = _ref$findIssuer === undefined ? null : _ref$findIssuer;

@@ -677,3 +681,3 @@ //region Global variables

var certificateChainEngine = new _CertificateChainValidationEngine2.default({
var certificateChainValidationEngineParameters = {
checkDate: checkDate,

@@ -684,4 +688,10 @@ certs: Array.from(promiseResults.filter(function (_result) {

trustedCerts: trustedCerts
});
};
if (findIssuer !== null) certificateChainValidationEngineParameters.findIssuer = findIssuer;
if (findOrigin !== null) certificateChainValidationEngineParameters.findOrigin = findOrigin;
var certificateChainEngine = new _CertificateChainValidationEngine2.default(certificateChainValidationEngineParameters);
certificateChainEngine.certs.push(signerCertificate);

@@ -688,0 +698,0 @@

5

package.json

@@ -24,2 +24,5 @@ {

"rollup-plugin-node-resolve": "^1.7.1",
"rollup-plugin-node-builtins": "latest",
"emailjs-mime-builder": "latest",
"emailjs-mime-parser": "latest",
"babel-cli": "latest",

@@ -75,4 +78,4 @@ "babel-preset-env": "latest"

"name": "pkijs",
"version": "2.1.24",
"version": "2.1.25",
"license": "MIT"
}
# PKIjs
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/PeculiarVentures/pki.js/master/LICENSE) [![NPM version](https://badge.fury.io/js/pkijs.svg)](http://badge.fury.io/js/pkijs) [![CircleCI](https://circleci.com/gh/PeculiarVentures/PKI.js.svg?style=svg)](https://circleci.com/gh/PeculiarVentures/PKI.js)
[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/PeculiarVentures/pki.js/master/LICENSE) [![NPM version](https://badge.fury.io/js/pkijs.svg)](http://badge.fury.io/js/pkijs) [![CircleCI](https://circleci.com/gh/PeculiarVentures/PKI.js.svg?style=svg)](https://circleci.com/gh/PeculiarVentures/PKI.js) [![Known Vulnerabilities](https://snyk.io/test/github/PeculiarVentures/PKI.js/badge.svg)](https://snyk.io/test/github/PeculiarVentures/PKI.js)

@@ -5,0 +5,0 @@ [![NPM](https://nodei.co/npm-dl/pkijs.png?months=3&height=2)](https://nodei.co/npm/pkijs/)

@@ -68,3 +68,3 @@ import { getParametersValue, isEqualBuffer } from "pvutils";

//region Search in Intermediate Certificates
for(const localCert of this.certs)
for(const localCert of validationEngine.certs)
{

@@ -82,3 +82,3 @@ //region Firstly encode TBS for certificate

//region Search in Trusted Certificates
for(const trustedCert of this.trustedCerts)
for(const trustedCert of validationEngine.trustedCerts)
{

@@ -85,0 +85,0 @@ //region Firstly encode TBS for certificate

@@ -434,3 +434,5 @@ import * as asn1js from "asn1js";

includeSignerCertificate = false,
extendedMode = false
extendedMode = false,
findOrigin = null,
findIssuer = null
} = {})

@@ -682,8 +684,16 @@ {

const certificateChainEngine = new CertificateChainValidationEngine({
const certificateChainValidationEngineParameters = {
checkDate,
certs: Array.from(promiseResults.filter(_result => (_result !== null))),
trustedCerts
});
};
if(findIssuer !== null)
certificateChainValidationEngineParameters.findIssuer = findIssuer;
if(findOrigin !== null)
certificateChainValidationEngineParameters.findOrigin = findOrigin;
const certificateChainEngine = new CertificateChainValidationEngine(certificateChainValidationEngineParameters);
certificateChainEngine.certs.push(signerCertificate);

@@ -690,0 +700,0 @@

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

Sorry, the diff of this file is not supported yet

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