@spinajs/configuration
Advanced tools
Comparing version 2.0.299 to 2.0.300
@@ -32,2 +32,3 @@ "use strict"; | ||
/* eslint-disable @typescript-eslint/unbound-method */ | ||
const configuration_common_1 = require("@spinajs/configuration-common"); | ||
const fs = __importStar(require("fs")); | ||
@@ -117,7 +118,6 @@ const lodash_1 = __importDefault(require("lodash")); | ||
if (Array.isArray(value)) { | ||
acc[key] = value.map((x) => mapObject(x, fn)); | ||
acc[key] = value.map((x) => fn(mapObject(x, fn))); | ||
} | ||
else if (typeof value === 'object' && value !== null) { | ||
mapObject(value, fn); | ||
acc[key] = fn(value); | ||
else if (typeof value === 'object' && value !== null && !(value instanceof configuration_common_1.ConfigVar)) { | ||
acc[key] = fn(mapObject(value, fn)); | ||
} | ||
@@ -124,0 +124,0 @@ else { |
/* eslint-disable @typescript-eslint/no-unsafe-return */ | ||
/* eslint-disable @typescript-eslint/unbound-method */ | ||
import { ConfigVar } from '@spinajs/configuration-common'; | ||
import * as fs from 'fs'; | ||
@@ -79,7 +80,6 @@ import _ from 'lodash'; | ||
if (Array.isArray(value)) { | ||
acc[key] = value.map((x) => mapObject(x, fn)); | ||
acc[key] = value.map((x) => fn(mapObject(x, fn))); | ||
} | ||
else if (typeof value === 'object' && value !== null) { | ||
mapObject(value, fn); | ||
acc[key] = fn(value); | ||
else if (typeof value === 'object' && value !== null && !(value instanceof ConfigVar)) { | ||
acc[key] = fn(mapObject(value, fn)); | ||
} | ||
@@ -86,0 +86,0 @@ else { |
{ | ||
"name": "@spinajs/configuration", | ||
"version": "2.0.299", | ||
"version": "2.0.300", | ||
"description": "framework configuration module", | ||
@@ -55,7 +55,7 @@ "main": "lib/cjs/index.js", | ||
"dependencies": { | ||
"@spinajs/configuration-common": "^2.0.299", | ||
"@spinajs/di": "^2.0.299", | ||
"@spinajs/exceptions": "^2.0.299", | ||
"@spinajs/internal-logger": "^2.0.299", | ||
"@spinajs/util": "2.0.299", | ||
"@spinajs/configuration-common": "^2.0.300", | ||
"@spinajs/di": "^2.0.300", | ||
"@spinajs/exceptions": "^2.0.300", | ||
"@spinajs/internal-logger": "^2.0.300", | ||
"@spinajs/util": "2.0.300", | ||
"ajv": "^8.12.0", | ||
@@ -62,0 +62,0 @@ "ajv-formats": "^2.1.1", |
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
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
275503
+ Added@spinajs/util@2.0.300(transitive)
- Removed@spinajs/util@2.0.299(transitive)
Updated@spinajs/di@^2.0.300
Updated@spinajs/exceptions@^2.0.300
Updated@spinajs/util@2.0.300