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

@rushstack/node-core-library

Package Overview
Dependencies
Maintainers
2
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rushstack/node-core-library - npm Package Compare versions

Comparing version 3.37.0 to 3.38.0

12

CHANGELOG.json

@@ -5,2 +5,14 @@ {

{
"version": "3.38.0",
"tag": "@rushstack/node-core-library_v3.38.0",
"date": "Wed, 19 May 2021 00:11:39 GMT",
"comments": {
"minor": [
{
"comment": "Add `ignoreUndefinedValues` option to JsonFile to discard keys with undefined values during serialization; this is the standard behavior of `JSON.stringify()` and other JSON serializers."
}
]
}
},
{
"version": "3.37.0",

@@ -7,0 +19,0 @@ "tag": "@rushstack/node-core-library_v3.37.0",

9

CHANGELOG.md
# Change Log - @rushstack/node-core-library
This log was last generated on Mon, 03 May 2021 15:10:28 GMT and should not be manually modified.
This log was last generated on Wed, 19 May 2021 00:11:39 GMT and should not be manually modified.
## 3.38.0
Wed, 19 May 2021 00:11:39 GMT
### Minor changes
- Add `ignoreUndefinedValues` option to JsonFile to discard keys with undefined values during serialization; this is the standard behavior of `JSON.stringify()` and other JSON serializers.
## 3.37.0

@@ -6,0 +13,0 @@ Mon, 03 May 2021 15:10:28 GMT

@@ -119,2 +119,10 @@ /**

scripts?: IPackageJsonScriptTable;
/**
* A table of package version resolutions. This feature is only implemented by the Yarn package manager.
*
* @remarks
* See the {@link https://github.com/yarnpkg/rfcs/blob/master/implemented/0000-selective-versions-resolutions.md
* | 0000-selective-versions-resolutions.md RFC} for details.
*/
resolutions?: Record<string, string>;
}

@@ -121,0 +129,0 @@ /**

@@ -40,2 +40,7 @@ import { JsonSchema, IJsonSchemaErrorInfo, IJsonSchemaValidateOptions } from './JsonSchema';

/**
* If true, conforms to the standard behavior of JSON.stringify() when a property has the value `undefined`.
* Specifically, the key will be dropped from the emitted object.
*/
ignoreUndefinedValues?: boolean;
/**
* If true, then the "jju" library will be used to improve the text formatting.

@@ -42,0 +47,0 @@ * Note that this is slightly slower than the native JSON.stringify() implementation.

5

lib/JsonFile.js

@@ -128,3 +128,6 @@ "use strict";

}
JsonFile.validateNoUndefinedMembers(newJsonObject);
if (!options.ignoreUndefinedValues) {
// Standard handling of `undefined` in JSON stringification is to discard the key.
JsonFile.validateNoUndefinedMembers(newJsonObject);
}
let stringified;

@@ -131,0 +134,0 @@ if (previousJson !== '') {

{
"name": "@rushstack/node-core-library",
"version": "3.37.0",
"version": "3.38.0",
"description": "Core libraries that every NodeJS toolchain project should use",

@@ -11,5 +11,2 @@ "main": "lib/index.js",

},
"scripts": {
"build": "heft test --clean"
},
"dependencies": {

@@ -37,3 +34,6 @@ "@types/node": "10.17.13",

"@types/z-schema": "3.16.31"
},
"scripts": {
"build": "heft test --clean"
}
}

Sorry, the diff of this file is too big to display

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

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