New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

asn1-ts

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asn1-ts - npm Package Compare versions

Comparing version 3.4.0 to 4.0.0

dist/node/classes/index.d.ts

12

dist/node/asn1.d.ts
import { ASN1Construction, ASN1TagClass } from "./values";
import Byteable from "./interfaces/Byteable";
import Named from "./interfaces/Named";
import Long from "./interfaces/Long";
import CharacterString from "./types/CharacterString";
import Elementable from "./interfaces/Elementable";
import { BOOLEAN, INTEGER, BIT_STRING, OCTET_STRING, OBJECT_IDENTIFIER, ObjectDescriptor, EXTERNAL, REAL, ENUMERATED, EMBEDDED_PDV, UTF8String, RELATIVE_OID, SEQUENCE, SET, GraphicString, NumericString, VisibleString, PrintableString, TeletexString, GeneralString, UniversalString, VideotexString, BMPString, IA5String, UTCTime, GeneralizedTime, TIME, DATE, TIME_OF_DAY, DATE_TIME, DURATION, OID_IRI, RELATIVE_OID_IRI } from "./macros";
import type Byteable from "./interfaces/Byteable";
import type Named from "./interfaces/Named";
import type Long from "./interfaces/Long";
import type CharacterString from "./types/CharacterString";
import type Elementable from "./interfaces/Elementable";
import type { BOOLEAN, INTEGER, BIT_STRING, OCTET_STRING, OBJECT_IDENTIFIER, ObjectDescriptor, EXTERNAL, REAL, ENUMERATED, EMBEDDED_PDV, UTF8String, RELATIVE_OID, SEQUENCE, SET, GraphicString, NumericString, VisibleString, PrintableString, TeletexString, GeneralString, UniversalString, VideotexString, BMPString, IA5String, UTCTime, GeneralizedTime, TIME, DATE, TIME_OF_DAY, DATE_TIME, DURATION, OID_IRI, RELATIVE_OID_IRI } from "./macros";
export default abstract class ASN1Element implements Byteable, Elementable, Named, Long {

@@ -9,0 +9,0 @@ recursionCount: number;

@@ -1,2 +0,2 @@

import ASN1Element from "./asn1";
import type ASN1Element from "./asn1";
import { ASN1TagClass, ASN1Construction, ASN1UniversalType } from "./values";

@@ -3,0 +3,0 @@ export default interface ConstructedElementSpecification {

@@ -1,2 +0,2 @@

import ASN1Element from "./asn1";
import type ASN1Element from "./asn1";
export declare class ASN1Error extends Error {

@@ -3,0 +3,0 @@ readonly m: string;

@@ -9,2 +9,3 @@ export { default as ASN1Element } from "./asn1";

export { default as ConstructedElementSpecification } from "./ConstructedElementSpecification";
export * from "./classes";
export * from "./errors";

@@ -11,0 +12,0 @@ export * from "./interfaces";

@@ -19,2 +19,3 @@ "use strict";

Object.defineProperty(exports, "compareSetOfElementsCanonically", { enumerable: true, get: function () { return tslib_1.__importDefault(compareSetOfElementsCanonically_1).default; } });
tslib_1.__exportStar(require("./classes"), exports);
tslib_1.__exportStar(require("./errors"), exports);

@@ -21,0 +22,0 @@ tslib_1.__exportStar(require("./interfaces"), exports);

@@ -1,5 +0,5 @@

import Enbyteable from "./Enbyteable";
import Debyteable from "./Debyteable";
import type Enbyteable from "./Enbyteable";
import type Debyteable from "./Debyteable";
export default interface Byteable extends Enbyteable, Debyteable {
}
//# sourceMappingURL=Byteable.d.ts.map

@@ -1,2 +0,2 @@

import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
export default interface Deelementable {

@@ -3,0 +3,0 @@ fromElement(el: ASN1Element): void;

@@ -1,5 +0,5 @@

import Deelementable from "./Deelementable";
import Enelementable from "./Enelementable";
import type Deelementable from "./Deelementable";
import type Enelementable from "./Enelementable";
export default interface Elementable extends Deelementable, Enelementable {
}
//# sourceMappingURL=Elementable.d.ts.map

@@ -1,2 +0,2 @@

import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
export default interface Enelementable {

@@ -3,0 +3,0 @@ toElement(): ASN1Element;

@@ -1,5 +0,5 @@

import ObjectIdentifier from "../types/ObjectIdentifier";
import type { OBJECT_IDENTIFIER } from "../macros";
export default interface Identified {
oid: ObjectIdentifier;
oid: OBJECT_IDENTIFIER;
}
//# sourceMappingURL=Identified.d.ts.map

@@ -1,5 +0,5 @@

import Enstringable from "./Enstringable";
import Destringable from "./Destringable";
import type Enstringable from "./Enstringable";
import type Destringable from "./Destringable";
export default interface Stringable<T> extends Enstringable, Destringable<T> {
}
//# sourceMappingURL=Stringable.d.ts.map

@@ -1,6 +0,5 @@

import ObjectIdentifier from "./types/ObjectIdentifier";
import EmbeddedPDV from "./types/EmbeddedPDV";
import External from "./types/External";
import TypeIdentifier from "./types/TypeIdentifier";
import DURATION_EQUIVALENT from "./types/time/DURATION-EQUIVALENT";
import type ObjectIdentifier from "./types/ObjectIdentifier";
import type EmbeddedPDV from "./types/EmbeddedPDV";
import type External from "./types/External";
import type DURATION_EQUIVALENT from "./types/time/DURATION-EQUIVALENT";
export declare type COMPONENTS_OF<T> = T;

@@ -55,3 +54,2 @@ export declare type OPTIONAL<T> = T | undefined;

export declare const NOT_A_NUMBER: number;
export declare const TYPE_IDENTIFIER: typeof TypeIdentifier;
export declare const itu_t = 0;

@@ -58,0 +56,0 @@ export declare const ccitt = 0;

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.joint_iso_ccitt = exports.joint_iso_itu_t = exports.iso = exports.itu_r = exports.ccitt = exports.itu_t = exports.TYPE_IDENTIFIER = exports.NOT_A_NUMBER = exports.MINUS_INFINITY = exports.PLUS_INFINITY = exports.FALSE_BIT = exports.TRUE_BIT = exports.FALSE = exports.TRUE = exports.CharacterString = void 0;
const tslib_1 = require("tslib");
const TypeIdentifier_1 = tslib_1.__importDefault(require("./types/TypeIdentifier"));
exports.joint_iso_ccitt = exports.joint_iso_itu_t = exports.iso = exports.itu_r = exports.ccitt = exports.itu_t = exports.NOT_A_NUMBER = exports.MINUS_INFINITY = exports.PLUS_INFINITY = exports.FALSE_BIT = exports.TRUE_BIT = exports.FALSE = exports.TRUE = exports.CharacterString = void 0;
var CharacterString_1 = require("./types/CharacterString");
Object.defineProperty(exports, "CharacterString", { enumerable: true, get: function () { return tslib_1.__importDefault(CharacterString_1).default; } });
Object.defineProperty(exports, "CharacterString", { enumerable: true, get: function () { return __importDefault(CharacterString_1).default; } });
exports.TRUE = true;

@@ -15,3 +16,2 @@ exports.FALSE = false;

exports.NOT_A_NUMBER = NaN;
exports.TYPE_IDENTIFIER = TypeIdentifier_1.default;
exports.itu_t = 0;

@@ -18,0 +18,0 @@ exports.ccitt = 0;

@@ -1,2 +0,2 @@

import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
export default class CharacterString {

@@ -3,0 +3,0 @@ readonly identification: ASN1Element;

@@ -1,2 +0,2 @@

import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
export default class EmbeddedPDV {

@@ -3,0 +3,0 @@ readonly identification: ASN1Element;

import { BIT_STRING, INTEGER, OBJECT_IDENTIFIER, OCTET_STRING, ObjectDescriptor } from "../macros";
import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
export default class External {

@@ -4,0 +4,0 @@ readonly directReference: OBJECT_IDENTIFIER | undefined;

@@ -1,2 +0,2 @@

import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
import ObjectIdentifier from "./ObjectIdentifier";

@@ -3,0 +3,0 @@ export default class TypeIdentifier<Element extends ASN1Element> {

@@ -1,3 +0,3 @@

import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
export default function compareSetOfElementsCanonically(a: ASN1Element, b: ASN1Element): number;
//# sourceMappingURL=compareSetOfElementsCanonically.d.ts.map

@@ -1,3 +0,3 @@

import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
export default function isInCanonicalOrder(elements: ASN1Element[]): boolean;
//# sourceMappingURL=isInCanonicalOrder.d.ts.map

@@ -1,3 +0,3 @@

import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
export default function isUniquelyTagged(elements: ASN1Element[]): boolean;
//# sourceMappingURL=isUniquelyTagged.d.ts.map

@@ -1,3 +0,3 @@

import ASN1Element from "../asn1";
import type ASN1Element from "../asn1";
export default function sortCanonically(elements: ASN1Element[]): void;
//# sourceMappingURL=sortCanonically.d.ts.map

@@ -1,4 +0,4 @@

import ASN1Element from "../asn1";
import ConstructedElementSpecification from "../ConstructedElementSpecification";
import type ASN1Element from "../asn1";
import type ConstructedElementSpecification from "../ConstructedElementSpecification";
export default function validateConstruction(elements: ASN1Element[], specification: ConstructedElementSpecification[]): void;
//# sourceMappingURL=validateConstruction.d.ts.map
import ASN1Element from "./asn1";
import { INTEGER, OBJECT_IDENTIFIER, ENUMERATED, RELATIVE_OID, TIME, DATE, TIME_OF_DAY, DATE_TIME, OID_IRI, RELATIVE_OID_IRI } from "./macros";
import type { INTEGER, OBJECT_IDENTIFIER, ENUMERATED, RELATIVE_OID, TIME, DATE, TIME_OF_DAY, DATE_TIME, OID_IRI, RELATIVE_OID_IRI } from "./macros";
export default abstract class X690Element extends ASN1Element {

@@ -4,0 +4,0 @@ set integer(value: INTEGER);

@@ -66,3 +66,3 @@ {

"types": "./dist/node/index.d.ts",
"version": "3.4.0"
"version": "4.0.0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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