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

@peculiar/x509

Package Overview
Dependencies
Maintainers
6
Versions
50
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.6.4 to 1.7.0

build/types/x509_crl_entry.d.ts

3

build/types/extensions/subject_key_identifier.d.ts
import { Extension } from "../extension";
import { PublicKeyType } from "../public_key";
export declare class SubjectKeyIdentifierExtension extends Extension {
static create(publicKey: CryptoKey, critical?: boolean, crypto?: Crypto): Promise<SubjectKeyIdentifierExtension>;
static create(publicKey: PublicKeyType, critical?: boolean, crypto?: Crypto): Promise<SubjectKeyIdentifierExtension>;
readonly keyId: string;

@@ -5,0 +6,0 @@ constructor(raw: BufferSource);

@@ -25,1 +25,4 @@ import "reflect-metadata";

export * from "./x509_certs";
export * from "./x509_crl";
export * from "./x509_crl_entry";
export * from "./x509_crl_generator";

@@ -8,2 +8,3 @@ export declare class PemConverter {

static decode(pem: string): ArrayBuffer[];
static decodeFirst(pem: string): ArrayBuffer;
static encode(rawData: BufferSource, tag: string): string;

@@ -10,0 +11,0 @@ static encode(rawData: BufferSource[], tag: string): string;

@@ -6,5 +6,5 @@ import { CertificationRequest } from "@peculiar/asn1-csr";

import { Extension } from "./extension";
import { PublicKey } from "./public_key";
import { IPublicKeyContainer, PublicKey } from "./public_key";
import { AsnEncodedType, PemData } from "./pem_data";
export declare class Pkcs10CertificateRequest extends PemData<CertificationRequest> {
export declare class Pkcs10CertificateRequest extends PemData<CertificationRequest> implements IPublicKeyContainer {
protected readonly tag: string;

@@ -11,0 +11,0 @@ private tbs;

import { SubjectPublicKeyInfo } from "@peculiar/asn1-x509";
import { BufferSource } from "pvtsutils";
import { AsnEncodedType, PemData } from "./pem_data";
export interface IPublicKeyContainer {
publicKey: PublicKey;
}
export declare type PublicKeyType = PublicKey | CryptoKey | IPublicKeyContainer | BufferSource;
export declare class PublicKey extends PemData<SubjectPublicKeyInfo> {

@@ -4,0 +9,0 @@ protected readonly tag: string;

import { Extension } from "./extension";
import { JsonName, Name } from "./name";
import { X509Certificate } from "./x509_cert";
import { PublicKeyType } from "./public_key";
export declare type X509CertificateCreateParamsName = string | JsonName | Name;

@@ -15,3 +16,3 @@ export interface X509CertificateCreateParamsBase {

issuer?: X509CertificateCreateParamsName;
publicKey: CryptoKey;
publicKey: PublicKeyType;
signingKey: CryptoKey;

@@ -18,0 +19,0 @@ }

@@ -5,10 +5,10 @@ import { Certificate } from "@peculiar/asn1-x509";

import { Extension } from "./extension";
import { PublicKey } from "./public_key";
import { IPublicKeyContainer, PublicKey, PublicKeyType } from "./public_key";
import { AsnEncodedType, PemData } from "./pem_data";
export interface X509CertificateVerifyParams {
date?: Date;
publicKey?: CryptoKey | PublicKey | X509Certificate;
publicKey?: PublicKeyType;
signatureOnly?: boolean;
}
export declare class X509Certificate extends PemData<Certificate> {
export declare class X509Certificate extends PemData<Certificate> implements IPublicKeyContainer {
protected readonly tag: string;

@@ -15,0 +15,0 @@ private tbs;

{
"name": "@peculiar/x509",
"version": "1.6.4",
"version": "1.7.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",

@@ -74,4 +74,4 @@ "main": "build/x509.cjs.js",

"devDependencies": {
"@babel/core": "^7.17.12",
"@babel/preset-env": "^7.17.12",
"@babel/core": "^7.18.2",
"@babel/preset-env": "^7.18.2",
"@peculiar/webcrypto": "^1.4.0",

@@ -82,16 +82,16 @@ "@rollup/plugin-babel": "^5.3.1",

"@types/mocha": "^9.1.1",
"@types/node": "^17.0.34",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"@types/node": "^17.0.41",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"coveralls": "^3.1.1",
"eslint": "^8.15.0",
"eslint": "^8.17.0",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.74.0",
"rollup": "^2.75.6",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"ts-node": "^10.7.0",
"typedoc": "^0.22.15",
"typescript": "^4.6.4"
"rollup-plugin-typescript2": "^0.32.1",
"ts-node": "^10.8.1",
"typedoc": "^0.22.17",
"typescript": "^4.7.3"
},

@@ -105,8 +105,8 @@ "dependencies": {

"@peculiar/asn1-schema": "^2.1.8",
"@peculiar/asn1-x509": "^2.1.8",
"@peculiar/asn1-x509": "^2.1.3",
"pvtsutils": "^1.3.2",
"reflect-metadata": "^0.1.13",
"tslib": "^2.4.0",
"tsyringe": "^4.6.0"
"tsyringe": "^4.7.0"
}
}

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

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