UNPKG

n8n

Version:

n8n Workflow Automation Tool

16 lines 797 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.preferGet = exports.updateIntervalTime = void 0; exports.isExternalSecretsEnabled = isExternalSecretsEnabled; const config_1 = require("@n8n/config"); const di_1 = require("@n8n/di"); const license_1 = require("../license"); const updateIntervalTime = () => di_1.Container.get(config_1.GlobalConfig).externalSecrets.updateInterval * 1000; exports.updateIntervalTime = updateIntervalTime; const preferGet = () => di_1.Container.get(config_1.GlobalConfig).externalSecrets.preferGet; exports.preferGet = preferGet; function isExternalSecretsEnabled() { const license = di_1.Container.get(license_1.License); return license.isExternalSecretsEnabled(); } //# sourceMappingURL=external-secrets-helper.ee.js.map