New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@app-config/node

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@app-config/node - npm Package Compare versions

Comparing version 2.5.2 to 2.6.0

3

dist/es/environment.js

@@ -25,2 +25,3 @@ import { logger } from '@app-config/logging';

export function currentEnvironment(...args) {
var _a;
let environmentSourceNames = defaultEnvVarNames;

@@ -65,3 +66,3 @@ let environmentAliases = defaultAliases;

for (const name of environmentSourceNames) {
if (process.env[name]?.length) {
if ((_a = process.env[name]) === null || _a === void 0 ? void 0 : _a.length) {
value = process.env[name];

@@ -68,0 +69,0 @@ break;

@@ -11,3 +11,3 @@ import { isAbsolute, join, dirname, resolve } from 'path';

this.filePath = resolve(filePath);
this.fileType = fileType ?? filePathAssumedType(this.filePath);
this.fileType = fileType !== null && fileType !== void 0 ? fileType : filePathAssumedType(this.filePath);
}

@@ -31,2 +31,3 @@ async readContents() {

constructor(filePath, environmentOverrideOrFileExtensions, environmentAliasesOrEnvironmentOptions, fileExtensions, environmentSourceNames) {
var _a;
super();

@@ -43,9 +44,9 @@ this.filePath = filePath;

environmentSourceNames === undefined) {
this.fileExtensions = environmentOverrideOrFileExtensions ?? defaultFileExtensions;
this.fileExtensions = environmentOverrideOrFileExtensions !== null && environmentOverrideOrFileExtensions !== void 0 ? environmentOverrideOrFileExtensions : defaultFileExtensions;
this.environmentOptions =
environmentAliasesOrEnvironmentOptions ?? defaultEnvOptions;
(_a = environmentAliasesOrEnvironmentOptions) !== null && _a !== void 0 ? _a : defaultEnvOptions;
}
else {
logger.warn(`Detected deprecated usage of FlexibleFileSource constructor loading ${filePath}`);
this.fileExtensions = fileExtensions ?? defaultFileExtensions;
this.fileExtensions = fileExtensions !== null && fileExtensions !== void 0 ? fileExtensions : defaultFileExtensions;
this.environmentOptions = asEnvOptions(environmentOverrideOrFileExtensions, environmentAliasesOrEnvironmentOptions, environmentSourceNames);

@@ -56,3 +57,3 @@ }

async resolveSource(context) {
const environment = currentEnvFromContext(context ?? {}, this.environmentOptions);
const environment = currentEnvFromContext(context !== null && context !== void 0 ? context : {}, this.environmentOptions);
const aliasesForCurrentEnv = environment

@@ -59,0 +60,0 @@ ? aliasesFor(environment, this.environmentOptions.aliases)

{
"name": "@app-config/node",
"description": "Node.js API for @app-config",
"version": "2.5.2",
"version": "2.6.0",
"license": "MPL-2.0",

@@ -33,4 +33,4 @@ "author": {

"dependencies": {
"@app-config/core": "^2.5.2",
"@app-config/logging": "^2.5.2",
"@app-config/core": "^2.6.0",
"@app-config/logging": "^2.6.0",
"@types/prompts": "2",

@@ -41,3 +41,3 @@ "fs-extra": "9",

"devDependencies": {
"@app-config/test-utils": "^2.5.2",
"@app-config/test-utils": "^2.6.0",
"@types/fs-extra": "9"

@@ -44,0 +44,0 @@ },

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc