Comparing version 1.6.0-canary.20240724T153729 to 1.6.0-canary.20240724T160428
import type { CryptoUtils } from "./utils"; | ||
declare let cryptoUtils: CryptoUtils; | ||
export default cryptoUtils; | ||
declare const _default: CryptoUtils; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
let cryptoUtils; | ||
if (typeof crypto === "undefined") { | ||
cryptoUtils = require("./nodeCrypto").cryptoUtils; | ||
function loadCrypto() { | ||
try { | ||
require("node:crypto"); | ||
cryptoUtils = require("./nodeCrypto").cryptoUtils; | ||
} | ||
catch (_) { | ||
if (typeof globalThis.crypto !== "undefined") { | ||
cryptoUtils = require("./browserCrypto").cryptoUtils; | ||
} | ||
else { | ||
throw new Error("No crypto implementation found"); | ||
} | ||
} | ||
} | ||
else { | ||
cryptoUtils = require("./browserCrypto").cryptoUtils; | ||
} | ||
loadCrypto(); | ||
exports.default = cryptoUtils; |
{ | ||
"name": "edgedb", | ||
"version": "1.6.0-canary.20240724T153729", | ||
"version": "1.6.0-canary.20240724T160428", | ||
"description": "The official Node.js client library for EdgeDB", | ||
@@ -5,0 +5,0 @@ "homepage": "https://edgedb.com/docs", |
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
546664
14237