@peculiar/asn1-schema
Advanced tools
Comparing version 2.0.44 to 2.1.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./schema_validation"), exports); | ||
tslib_1.__exportStar(require("./schema_validation"), exports); |
@@ -5,4 +5,4 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./converters"), exports); | ||
(0, tslib_1.__exportStar)(require("./types/index"), exports); | ||
tslib_1.__exportStar(require("./converters"), exports); | ||
tslib_1.__exportStar(require("./types/index"), exports); | ||
var decorators_1 = require("./decorators"); | ||
@@ -18,4 +18,4 @@ Object.defineProperty(exports, "AsnProp", { enumerable: true, get: function () { return decorators_1.AsnProp; } }); | ||
Object.defineProperty(exports, "AsnSerializer", { enumerable: true, get: function () { return serializer_1.AsnSerializer; } }); | ||
(0, tslib_1.__exportStar)(require("./errors"), exports); | ||
(0, tslib_1.__exportStar)(require("./objects"), exports); | ||
(0, tslib_1.__exportStar)(require("./convert"), exports); | ||
tslib_1.__exportStar(require("./errors"), exports); | ||
tslib_1.__exportStar(require("./objects"), exports); | ||
tslib_1.__exportStar(require("./convert"), exports); |
@@ -15,6 +15,6 @@ "use strict"; | ||
get(target) { | ||
var _a, _b, _c, _d; | ||
var _a, _b, _c; | ||
const schema = this.items.get(target); | ||
if (!schema) { | ||
throw new Error(`Cannot get schema for '${(_d = (_c = (_b = (_a = target) === null || _a === void 0 ? void 0 : _a.prototype) === null || _b === void 0 ? void 0 : _b.constructor) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : target}' target`); | ||
throw new Error(`Cannot get schema for '${(_c = (_b = (_a = target === null || target === void 0 ? void 0 : target.prototype) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : target}' target`); | ||
} | ||
@@ -21,0 +21,0 @@ return schema; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./bit_string"), exports); | ||
(0, tslib_1.__exportStar)(require("./octet_string"), exports); | ||
tslib_1.__exportStar(require("./bit_string"), exports); | ||
tslib_1.__exportStar(require("./octet_string"), exports); |
@@ -12,6 +12,6 @@ import * as asn1 from "asn1js"; | ||
get(target) { | ||
var _a, _b, _c, _d; | ||
var _a, _b, _c; | ||
const schema = this.items.get(target); | ||
if (!schema) { | ||
throw new Error(`Cannot get schema for '${(_d = (_c = (_b = (_a = target) === null || _a === void 0 ? void 0 : _a.prototype) === null || _b === void 0 ? void 0 : _b.constructor) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : target}' target`); | ||
throw new Error(`Cannot get schema for '${(_c = (_b = (_a = target === null || target === void 0 ? void 0 : target.prototype) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) !== null && _c !== void 0 ? _c : target}' target`); | ||
} | ||
@@ -18,0 +18,0 @@ return schema; |
@@ -31,3 +31,3 @@ /** | ||
toASN(): T; | ||
toSchema(name: string): asn1.BaseBlock<asn1.LocalValueBlock>; | ||
toSchema(name: string): asn1.BaseBlock<any>; | ||
} |
{ | ||
"name": "@peculiar/asn1-schema", | ||
"version": "2.0.44", | ||
"version": "2.1.0", | ||
"description": "Decorators for ASN.1 schemas building", | ||
@@ -42,5 +42,5 @@ "files": [ | ||
"@types/asn1js": "^2.0.2", | ||
"asn1js": "^2.1.1", | ||
"asn1js": "^2.3.1", | ||
"pvtsutils": "^1.2.1", | ||
"tslib": "^2.3.0" | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -57,3 +57,3 @@ "contributors": [ | ||
], | ||
"gitHead": "1abd87f37a293e67c87e2db4d8b4c2d99a414773" | ||
"gitHead": "f227039fad8318348e9ebbe1643cd6d397e3f473" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146797
Updatedasn1js@^2.3.1
Updatedtslib@^2.3.1