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.0 to 1.4.1

1

build/types/name.d.ts

@@ -16,2 +16,3 @@ import { Name as AsnName } from "@peculiar/asn1-x509";

private extraNames;
static isASCII(text: string): boolean;
private asn;

@@ -18,0 +19,0 @@ constructor(data: BufferSource | AsnName | string | JsonName, extraNames?: IdOrName);

@@ -392,2 +392,11 @@ /*!

}
static isASCII(text) {
for (let i = 0; i < text.length; i++) {
const code = text.charCodeAt(i);
if (code > 0xFF) {
return false;
}
}
return true;
}
getName(idOrName) {

@@ -458,3 +467,8 @@ return this.extraNames.get(idOrName) || names.get(idOrName);

else {
attr.value.printableString = value;
if (Name.isASCII(value)) {
attr.value.printableString = value;
}
else {
attr.value.utf8String = value;
}
}

@@ -461,0 +475,0 @@ }

2

package.json
{
"name": "@peculiar/x509",
"version": "1.4.0",
"version": "1.4.1",
"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",

@@ -5,0 +5,0 @@ "main": "build/x509.cjs.js",

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