Sha256: 5c311b4f45e49230ebcdfec3da6f32527021d62aba1db2be66c481fcd1d0ddf2
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var FIELDS = ['amount', 'matcherFee', 'price', 'minSponsoredAssetFee', 'fee', 'quantity', 'sellMatcherFee', 'buyMatcherFee']; function default_1(data) { return JSON.stringify(data, function (key, value) { if (FIELDS.includes(key) && value) { return "!" + value + "!"; } else if (key === 'value' && this['type'] === 'integer') { return "!" + value + "!"; } else if (key === 'minSponsoredAssetFee' && value == null) { return null; } else { return value; } }, 0).replace(/"\!(-?\d+)\!"/g, '$1'); } exports.default = default_1; //# sourceMappingURL=stringify.js.map
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
waves_lib-0.1.0 | js/node_modules/@waves/node-api-js/cjs/tools/stringify.js |