@peculiar/x509
Advanced tools
+26
-37
@@ -88,5 +88,3 @@ /*! | ||
| */ | ||
| constructor(raw: BufferSource, type: { | ||
| new (): T; | ||
| }); | ||
| constructor(raw: BufferSource, type: new () => T); | ||
| /** | ||
@@ -162,3 +160,4 @@ * ASN.1 object | ||
| * | ||
| * This class doesn't support no standard string format is defined for otherName, X.400 name, EDI party name, or any other type of names. | ||
| * This class doesn't support no standard string format is | ||
| * defined for otherName, X.400 name, EDI party name, or any other type of names. | ||
| */ | ||
@@ -181,3 +180,4 @@ declare class GeneralName extends AsnData<asn1X509.GeneralName> { | ||
| * | ||
| * @throws Throws error if ASN.1 GeneralName contains unsupported value (eg otherName, X400 address, EDI party name) | ||
| * @throws Throws error if ASN.1 GeneralName contains | ||
| * unsupported value (eg otherName, X400 address, EDI party name) | ||
| */ | ||
@@ -191,3 +191,3 @@ protected onInit(asn: asn1X509.GeneralName): void; | ||
| static NAME: string; | ||
| items: ReadonlyArray<GeneralName>; | ||
| items: readonly GeneralName[]; | ||
| constructor(json: JsonGeneralNames); | ||
@@ -219,5 +219,3 @@ constructor(asn: asn1X509.GeneralNames | asn1X509.GeneralName[]); | ||
| */ | ||
| constructor(raw: AsnEncodedType, type: { | ||
| new (): T; | ||
| }); | ||
| constructor(raw: AsnEncodedType, type: new () => T); | ||
| /** | ||
@@ -525,3 +523,3 @@ * Creates a new instance | ||
| */ | ||
| readonly policies: ReadonlyArray<string>; | ||
| readonly policies: readonly string[]; | ||
| /** | ||
@@ -638,3 +636,6 @@ * Creates a new instance from DER encoded buffer | ||
| * ```js | ||
| * ExtensionFactory.register(asnX509.id_ce_basicConstraints, extensions.BasicConstraintsExtension); | ||
| * ExtensionFactory.register( | ||
| * asnX509.id_ce_basicConstraints, | ||
| * extensions.BasicConstraintsExtension, | ||
| * ); | ||
| * ``` | ||
@@ -875,5 +876,3 @@ */ | ||
| interface IdOrName { | ||
| [idOrName: string]: string; | ||
| } | ||
| type IdOrName = Record<string, string>; | ||
| declare class NameIdentifier { | ||
@@ -889,5 +888,3 @@ private items; | ||
| */ | ||
| interface JsonAttributeAndStringValue { | ||
| [type: string]: string[]; | ||
| } | ||
| type JsonAttributeAndStringValue = Record<string, string[]>; | ||
| interface JsonAttributeObject { | ||
@@ -900,5 +897,3 @@ ia5String?: string; | ||
| } | ||
| interface JsonAttributeAndObjectValue { | ||
| [type: string]: JsonAttributeObject[]; | ||
| } | ||
| type JsonAttributeAndObjectValue = Record<string, JsonAttributeObject[]>; | ||
| type JsonAttributeAndValue = JsonAttributeAndStringValue | JsonAttributeAndObjectValue; | ||
@@ -908,4 +903,4 @@ /** | ||
| */ | ||
| type JsonName = Array<JsonAttributeAndStringValue>; | ||
| type JsonNameParams = Array<JsonAttributeAndValue>; | ||
| type JsonName = JsonAttributeAndStringValue[]; | ||
| type JsonNameParams = JsonAttributeAndValue[]; | ||
| /** | ||
@@ -952,3 +947,4 @@ * UTF-8 String Representation of Distinguished Names | ||
| * @param idOrName ObjectIdentifier or string name | ||
| * @returns Returns a list of strings. Returns an empty list if there are not any values for specified id/name. | ||
| * @returns Returns a list of strings. Returns an empty list if there are not any | ||
| * values for specified id/name. | ||
| */ | ||
@@ -1344,5 +1340,3 @@ getField(idOrName: string): string[]; | ||
| */ | ||
| getExtension<T extends Extension>(type: { | ||
| new (raw: BufferSource): T; | ||
| }): T | null; | ||
| getExtension<T extends Extension>(type: new (raw: BufferSource) => T): T | null; | ||
| /** | ||
@@ -1357,5 +1351,3 @@ * Returns a list of extensions of specified type | ||
| */ | ||
| getExtensions<T extends Extension>(type: { | ||
| new (raw: BufferSource): T; | ||
| }): T[]; | ||
| getExtensions<T extends Extension>(type: new (raw: BufferSource) => T): T[]; | ||
| /** | ||
@@ -1421,3 +1413,4 @@ * Validates a certificate signature | ||
| /** | ||
| * Import certificates from encoded PKCS7 data. Supported formats are HEX, DER, Base64, Base64Url, PEM | ||
| * Import certificates from encoded PKCS7 data. Supported formats are HEX, DER, | ||
| * Base64, Base64Url, PEM | ||
| * @param data | ||
@@ -1649,3 +1642,3 @@ */ | ||
| */ | ||
| get entries(): ReadonlyArray<X509CrlEntry>; | ||
| get entries(): readonly X509CrlEntry[]; | ||
| /** | ||
@@ -1689,5 +1682,3 @@ * Gets a list of crl extensions | ||
| */ | ||
| getExtension<T extends Extension>(type: { | ||
| new (raw: BufferSource): T; | ||
| }): T | null; | ||
| getExtension<T extends Extension>(type: new (raw: BufferSource) => T): T | null; | ||
| /** | ||
@@ -1702,5 +1693,3 @@ * Returns a list of extensions of specified type | ||
| */ | ||
| getExtensions<T extends Extension>(type: { | ||
| new (raw: BufferSource): T; | ||
| }): T[]; | ||
| getExtensions<T extends Extension>(type: new (raw: BufferSource) => T): T[]; | ||
| /** | ||
@@ -1707,0 +1696,0 @@ * Validates a crl signature |
+32
-24
| { | ||
| "name": "@peculiar/x509", | ||
| "version": "1.14.0", | ||
| "version": "1.14.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", | ||
@@ -12,4 +12,4 @@ "main": "build/x509.cjs.js", | ||
| "test:watch": "vitest", | ||
| "lint": "eslint --ext .ts src/ test/", | ||
| "lint:fix": "eslint --fix --ext .ts src/ test/", | ||
| "lint": "eslint", | ||
| "lint:fix": "eslint --fix", | ||
| "build": "npm run build:module", | ||
@@ -55,29 +55,27 @@ "build:module": "rollup -c", | ||
| "devDependencies": { | ||
| "@babel/core": "^7.28.4", | ||
| "@babel/preset-env": "^7.28.3", | ||
| "@eslint/js": "^9.35.0", | ||
| "@babel/core": "^7.28.5", | ||
| "@babel/preset-env": "^7.28.5", | ||
| "@peculiar/eslint-config-base": "^0.2.8", | ||
| "@peculiar/webcrypto": "^1.5.0", | ||
| "@rollup/plugin-babel": "^6.0.4", | ||
| "@rollup/plugin-commonjs": "^28.0.6", | ||
| "@rollup/plugin-node-resolve": "^16.0.1", | ||
| "@rollup/plugin-babel": "^6.1.0", | ||
| "@rollup/plugin-commonjs": "^29.0.0", | ||
| "@rollup/plugin-node-resolve": "^16.0.3", | ||
| "@rollup/plugin-terser": "^0.4.4", | ||
| "@types/node": "^24.3.1", | ||
| "@vitest/coverage-v8": "^3.2.4", | ||
| "eslint": "^9.35.0", | ||
| "rimraf": "^6.0.1", | ||
| "rollup": "^4.50.1", | ||
| "@types/node": "^24.10.1", | ||
| "@vitest/coverage-v8": "^4.0.9", | ||
| "rimraf": "^6.1.0", | ||
| "rollup": "^4.53.2", | ||
| "rollup-plugin-dts": "^6.2.3", | ||
| "rollup-plugin-typescript2": "^0.36.0", | ||
| "typescript": "^5.9.2", | ||
| "typescript-eslint": "^8.42.0", | ||
| "vitest": "^3.2.4" | ||
| "typescript": "^5.9.3", | ||
| "vitest": "^4.0.9" | ||
| }, | ||
| "dependencies": { | ||
| "@peculiar/asn1-cms": "^2.5.0", | ||
| "@peculiar/asn1-csr": "^2.5.0", | ||
| "@peculiar/asn1-ecc": "^2.5.0", | ||
| "@peculiar/asn1-pkcs9": "^2.5.0", | ||
| "@peculiar/asn1-rsa": "^2.5.0", | ||
| "@peculiar/asn1-schema": "^2.5.0", | ||
| "@peculiar/asn1-x509": "^2.5.0", | ||
| "@peculiar/asn1-cms": "^2.6.0", | ||
| "@peculiar/asn1-csr": "^2.6.0", | ||
| "@peculiar/asn1-ecc": "^2.6.0", | ||
| "@peculiar/asn1-pkcs9": "^2.6.0", | ||
| "@peculiar/asn1-rsa": "^2.6.0", | ||
| "@peculiar/asn1-schema": "^2.6.0", | ||
| "@peculiar/asn1-x509": "^2.6.0", | ||
| "pvtsutils": "^1.3.6", | ||
@@ -87,3 +85,13 @@ "reflect-metadata": "^0.2.2", | ||
| "tsyringe": "^4.10.0" | ||
| }, | ||
| "engines": { | ||
| "node": ">=22.0.0" | ||
| }, | ||
| "devEngines": { | ||
| "packageManager": { | ||
| "name": "npm", | ||
| "version": ">=10", | ||
| "onFail": "error" | ||
| } | ||
| } | ||
| } |
+12
-5
@@ -1,8 +0,15 @@ | ||
| # @peculiar/x509 | ||
| <h1 align="center"> | ||
| @peculiar/x509 | ||
| </h1> | ||
| [](https://raw.githubusercontent.com/PeculiarVentures/webcrypto/master/LICENSE.md) | ||
|  | ||
| [](https://coveralls.io/github/PeculiarVentures/x509?branch=master) | ||
| [](https://badge.fury.io/js/%40peculiar%2Fx509) | ||
| <div align="center"> | ||
|  | ||
|  | ||
| [](https://www.npmjs.com/package/@peculiar/x509) | ||
|  | ||
| [](https://www.npmjs.com/package/@peculiar/x509) | ||
| </div> | ||
| - [About](#about) | ||
@@ -9,0 +16,0 @@ - [Installation](#installation) |
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
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
551093
0.74%16
-11.11%9279
2.36%221
3.27%Updated
Updated
Updated
Updated
Updated
Updated
Updated