@clevercloud/client
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -12,2 +12,6 @@ "use strict"; | ||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
async function getSubtleCrypto() { | ||
@@ -19,3 +23,3 @@ // Browser environment | ||
else { | ||
const cryptoModule = await import('node:crypto'); | ||
const cryptoModule = await Promise.resolve().then(() => _interopRequireWildcard(require('node:crypto'))); | ||
return cryptoModule.subtle; | ||
@@ -22,0 +26,0 @@ } |
{ | ||
"name": "@clevercloud/client", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "JavaScript REST client and utils for Clever Cloud's API", | ||
@@ -50,2 +50,3 @@ "homepage": "https://github.com/CleverCloud/clever-client.js", | ||
"@web/test-runner": "^0.12.15", | ||
"babel-plugin-dynamic-import-node": "^2.3.3", | ||
"del": "^6.0.0", | ||
@@ -52,0 +53,0 @@ "eslint": "^8.50.0", |
588814
18215
13