Skip to content

Commit

Permalink
Replace json-stable-stringify with fast-json-stable-stringify
Browse files Browse the repository at this point in the history
fast-json-stable-stringify is being used because it does not have any dependencies and has been shown to be faster than json-stable-stringify

Bug: T210426
  • Loading branch information
clarakosi authored and d00rman committed Mar 18, 2019
1 parent cf87bd9 commit b4b5918
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/handlerTemplate.js
Expand Up @@ -7,7 +7,7 @@

const P = require('bluebird');
const Template = require('swagger-router').Template;
const stringify = require('json-stable-stringify');
const stringify = require('fast-json-stable-stringify');

/**
* Creates a JS function that verifies property equality
Expand Down
12 changes: 6 additions & 6 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "hyperswitch",
"version": "0.10.3",
"version": "0.10.4",
"description": "REST API creation framework",
"main": "index.js",
"scripts": {
Expand All @@ -25,16 +25,16 @@
},
"homepage": "https://github.com/wikimedia/hyperswitch",
"dependencies": {
"ajv": "^6.5.4",
"bluebird": "^3.5.2",
"busboy": "^0.2.14",
"js-yaml": "^3.12.0",
"cassandra-uuid": "^0.1.0",
"fast-json-stable-stringify": "^2.0.0",
"js-yaml": "^3.12.0",
"preq": "^0.5.6",
"regexp-utils": "^0.3.2",
"swagger-router": "^0.7.2",
"swagger-ui": "git+https://github.com/wikimedia/swagger-ui#master",
"json-stable-stringify": "^1.0.1",
"ajv": "^6.5.4",
"regexp-utils": "^0.3.2"
"swagger-ui": "git+https://github.com/wikimedia/swagger-ui#master"
},
"devDependencies": {
"coveralls": "^3.0.2",
Expand Down

0 comments on commit b4b5918

Please sign in to comment.