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

prettier-package-json

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-package-json - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

7

package.json

@@ -11,3 +11,3 @@ {

"bugs": "https://github.com/cameronhunter/prettier-package-json/issues",
"version": "1.4.1",
"version": "1.4.2",
"main": "src/index.js",

@@ -38,3 +38,8 @@ "bin": {

"keywords": [
"cleanup",
"formatter",
"json",
"keys",
"object",
"package",
"package.json",

@@ -41,0 +46,0 @@ "prettier",

@@ -23,2 +23,14 @@ const { format } = require('../src');

test('It orders unspecified keys alphabetically at the end', () => {
const json = {
unknownPropertyB: false,
unknownPropertyA: true,
description: 'Description',
version: '0.0.0',
name: 'Test'
};
expect(format(json, { keyOrder: ['name', 'version', 'description'] })).toMatchSnapshot();
});
test('It orders keys using a custom key order function', () => {

@@ -25,0 +37,0 @@ const json = {

yarn-error.log

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