Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@spinajs/configuration

Package Overview
Dependencies
Maintainers
0
Versions
316
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@spinajs/configuration - npm Package Compare versions

Comparing version 2.0.299 to 2.0.300

8

lib/cjs/util.js

@@ -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

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