script: replace JSON.stringify with json-stable-stringify

resolves issue #3133
This commit is contained in:
Oleg Utkin
2019-10-06 00:34:43 +03:00
parent bd9f88b985
commit ae112d05f3
8 changed files with 16 additions and 8 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import debug from 'debug';
import reqwest from 'reqwest';
import { defaults } from 'lodash';
import { Map as makeMap, List } from 'immutable';
import stableStringify from 'json-stable-stringify';
import {
receiveError,
@@ -226,7 +227,7 @@ export function doResizeTty(pipeId, control, cols, rows) {
+ `${encodeURIComponent(control.nodeId)}/${control.id}`;
return doRequest({
data: JSON.stringify({ height: rows.toString(), pipeID: pipeId, width: cols.toString() }),
data: stableStringify({ height: rows.toString(), pipeID: pipeId, width: cols.toString() }),
method: 'POST',
url,
})