@mondaycom/apps-sdk
Advanced tools
Comparing version 3.0.5-beta.1 to 3.0.5-beta.2
@@ -26,3 +26,3 @@ "use strict"; | ||
var dataFileName = process.env.SECRET_NAME; | ||
_this = _super.call(this, 'EnvironmentVariablesManager', dataFileName, '/Users/maorba/secrets') || this; // FIXME: revert | ||
_this = _super.call(this, 'EnvironmentVariablesManager', dataFileName, '/secrets') || this; | ||
_this.shouldUpdateProcessEnv = Boolean(options === null || options === void 0 ? void 0 : options.updateProcessEnv); | ||
@@ -29,0 +29,0 @@ _this.initData(); |
@@ -33,2 +33,3 @@ "use strict"; | ||
var guards_1 = require("../types/guards.js"); | ||
var env_1 = require("../utils/env.js"); | ||
var logger_1 = require("../utils/logger.js"); | ||
@@ -69,6 +70,6 @@ var KeyValueManager = /** @class */ (function () { | ||
KeyValueManager.prototype.initData = function () { | ||
// if (isLocalEnvironment()) { // FIXME: revert | ||
// this.cachedData = process.env as KeyValueData; | ||
// return; | ||
// } | ||
if ((0, env_1.isLocalEnvironment)()) { | ||
this.cachedData = process.env; | ||
return; | ||
} | ||
this.cachedData = this.readData(); | ||
@@ -94,3 +95,3 @@ if (!(0, guards_1.isDefined)(this.cachedData)) { | ||
} | ||
return this.cachedData[key] || process.env[key]; | ||
return this.cachedData[key] !== undefined ? this.cachedData[key] : process.env[key]; | ||
}; | ||
@@ -97,0 +98,0 @@ return KeyValueManager; |
"use strict"; | ||
exports.__esModule = true; | ||
exports["default"] = { name: '@mondaycom/apps-sdk', version: '3.0.5-beta.1' }; | ||
exports["default"] = { name: '@mondaycom/apps-sdk', version: '3.0.5-beta.2' }; | ||
//# sourceMappingURL=minimal-package.js.map |
{ | ||
"name": "@mondaycom/apps-sdk", | ||
"version": "3.0.5-beta.1", | ||
"version": "3.0.5-beta.2", | ||
"description": "monday apps SDK for NodeJS", | ||
@@ -10,2 +10,3 @@ "main": "./dist/cjs/index.js", | ||
".": { | ||
"types": "./dist/types/index.d.ts", | ||
"import": "./dist/esm/index.js", | ||
@@ -12,0 +13,0 @@ "require": "./dist/cjs/index.js", |
@@ -25,3 +25,3 @@ "use strict"; | ||
var dataFileName = process.env.SECRET_NAME; | ||
_this = _super.call(this, 'SecretsManager', dataFileName, '/Users/maorba/secrets-v2') || this; // FIXME: revert | ||
_this = _super.call(this, 'SecretsManager', dataFileName, '/secrets-v2') || this; | ||
_this.initData(); | ||
@@ -28,0 +28,0 @@ return _this; |
@@ -23,3 +23,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var dataFileName = process.env.SECRET_NAME; | ||
_this = _super.call(this, 'EnvironmentVariablesManager', dataFileName, '/Users/maorba/secrets') || this; // FIXME: revert | ||
_this = _super.call(this, 'EnvironmentVariablesManager', dataFileName, '/secrets') || this; | ||
_this.shouldUpdateProcessEnv = Boolean(options === null || options === void 0 ? void 0 : options.updateProcessEnv); | ||
@@ -26,0 +26,0 @@ _this.initData(); |
import fs from 'fs'; | ||
import * as process from 'process'; | ||
import { isDefined } from '../types/guards.js'; | ||
import { isLocalEnvironment } from '../utils/env.js'; | ||
import { Logger } from '../utils/logger.js'; | ||
@@ -39,6 +40,6 @@ var KeyValueManager = /** @class */ (function () { | ||
KeyValueManager.prototype.initData = function () { | ||
// if (isLocalEnvironment()) { // FIXME: revert | ||
// this.cachedData = process.env as KeyValueData; | ||
// return; | ||
// } | ||
if (isLocalEnvironment()) { | ||
this.cachedData = process.env; | ||
return; | ||
} | ||
this.cachedData = this.readData(); | ||
@@ -64,3 +65,3 @@ if (!isDefined(this.cachedData)) { | ||
} | ||
return this.cachedData[key] || process.env[key]; | ||
return this.cachedData[key] !== undefined ? this.cachedData[key] : process.env[key]; | ||
}; | ||
@@ -67,0 +68,0 @@ return KeyValueManager; |
@@ -1,2 +0,2 @@ | ||
export default { name: '@mondaycom/apps-sdk', version: '3.0.5-beta.1' }; | ||
export default { name: '@mondaycom/apps-sdk', version: '3.0.5-beta.2' }; | ||
//# sourceMappingURL=minimal-package.js.map |
{ | ||
"name": "@mondaycom/apps-sdk", | ||
"version": "3.0.5-beta.1", | ||
"version": "3.0.5-beta.2", | ||
"description": "monday apps SDK for NodeJS", | ||
@@ -10,2 +10,3 @@ "main": "./dist/cjs/index.js", | ||
".": { | ||
"types": "./dist/types/index.d.ts", | ||
"import": "./dist/esm/index.js", | ||
@@ -12,0 +13,0 @@ "require": "./dist/cjs/index.js", |
@@ -22,3 +22,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var dataFileName = process.env.SECRET_NAME; | ||
_this = _super.call(this, 'SecretsManager', dataFileName, '/Users/maorba/secrets-v2') || this; // FIXME: revert | ||
_this = _super.call(this, 'SecretsManager', dataFileName, '/secrets-v2') || this; | ||
_this.initData(); | ||
@@ -25,0 +25,0 @@ return _this; |
@@ -14,3 +14,3 @@ import { JsonValue } from '../types/general'; | ||
getKeys(options?: GetOptions): Array<string>; | ||
get(key: string, options?: GetOptions): JsonValue; | ||
get(key: string, options?: GetOptions): JsonValue | undefined; | ||
} |
@@ -11,3 +11,3 @@ import { JsonValue } from './general'; | ||
getKeys(_options?: GetOptions): Array<string>; | ||
get(_key: string, _options?: GetOptions): JsonValue; | ||
get(_key: string, _options?: GetOptions): JsonValue | undefined; | ||
}; |
{ | ||
"name": "@mondaycom/apps-sdk", | ||
"version": "3.0.5-beta.1", | ||
"version": "3.0.5-beta.2", | ||
"description": "monday apps SDK for NodeJS", | ||
@@ -10,2 +10,3 @@ "main": "./dist/cjs/index.js", | ||
".": { | ||
"types": "./dist/types/index.d.ts", | ||
"import": "./dist/esm/index.js", | ||
@@ -12,0 +13,0 @@ "require": "./dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
297716
4072
32