mirror of
https://github.com/danbulant/jose
synced 2026-05-25 13:01:49 +00:00
16 lines
419 B
JavaScript
16 lines
419 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const crypto_1 = require("crypto");
|
|
const util = require("util");
|
|
let impl;
|
|
if (util.types.isKeyObject) {
|
|
impl = function isKeyObject(obj) {
|
|
return util.types.isKeyObject(obj);
|
|
};
|
|
}
|
|
else {
|
|
impl = function isKeyObject(obj) {
|
|
return obj != null && obj instanceof crypto_1.KeyObject;
|
|
};
|
|
}
|
|
exports.default = impl;
|