oas-kit-common
Advanced tools
Comparing version 1.0.6 to 1.0.7
'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" | ||
} |
5205
+ Addedsafe-json-stringify@^1.2.0
+ Addedsafe-json-stringify@1.2.0(transitive)
- Removedjs-yaml@^3.12.0
- Removedargparse@1.0.10(transitive)
- Removedesprima@4.0.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedsprintf-js@1.0.3(transitive)