@hazae41/x509
Version:
Zero-copy X.509 certificates in pure modern TypeScript
22 lines (19 loc) • 478 B
JavaScript
;
var _a;
class ResolveError extends Error {
#class = _a;
name = this.#class.name;
constructor(options) {
super(`Could not resolve`, options);
}
static from(cause) {
return new _a({ cause });
}
}
_a = ResolveError;
function resolveOrThrow(resolvable, cursor) {
return resolvable.resolveOrThrow(cursor);
}
exports.ResolveError = ResolveError;
exports.resolveOrThrow = resolveOrThrow;
//# sourceMappingURL=resolve.cjs.map