Socket
Socket
Sign inDemoInstall

oas-kit-common

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7

4

index.js
'use strict';
const yaml = require('js-yaml');
const sjs = require('safe-json-stringify');

@@ -23,3 +23,3 @@ const colour = process.env.NODE_DISABLE_COLORS ?

function _equals(obj1, obj2) {
return yaml.dump(obj1) === yaml.dump(Object.assign({}, obj1, obj2));
return sjs.stringify(obj1) === sjs.stringify(Object.assign({}, obj1, obj2));
}

@@ -26,0 +26,0 @@ return _equals(obj1, obj2) && _equals(obj2, obj1);

{
"name": "oas-kit-common",
"version": "1.0.6",
"version": "1.0.7",
"description": "Common utility functions for oas-kit",

@@ -17,3 +17,3 @@ "main": "index.js",

"dependencies": {
"js-yaml": "^3.12.0"
"safe-json-stringify": "^1.2.0"
},

@@ -28,3 +28,3 @@ "license": "BSD-3-Clause",

},
"gitHead": "50a250ff1e68b735925e06e59ba9aed12207216c"
"gitHead": "92ab5dd327dca2f6c64c86606a86e62962c66663"
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc