Update to lodash 4

- Update ripple-lib-transactionparser
This commit is contained in:
Elliot Lee
2017-09-25 13:38:15 -07:00
parent ab17b19ff0
commit ecd6347859
6 changed files with 8545 additions and 105 deletions

8636
npm-shrinkwrap.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -20,12 +20,12 @@
"bignumber.js": "^2.0.3",
"https-proxy-agent": "^1.0.0",
"jsonschema": "^1.1.1",
"lodash": "^3.1.0",
"lodash": "^4.17.4",
"ripple-address-codec": "^2.0.1",
"ripple-binary-codec": "^0.1.10",
"ripple-hashes": "^0.3.0",
"ripple-keypairs": "^0.10.0",
"ripple-lib-transactionparser": "^0.6.0",
"ripple-lib-transactionparser": "^0.6.1",
"ws": "^1.0.1"
},
"devDependencies": {

View File

@@ -228,7 +228,7 @@ class Connection extends EventEmitter {
if (this._proxyURL !== undefined) {
const parsedURL = parseURL(this._url)
const parsedProxyURL = parseURL(this._proxyURL)
const proxyOverrides = _.omit({
const proxyOverrides = _.omitBy({
secureEndpoint: (parsedURL.protocol === 'wss:'),
secureProxy: (parsedProxyURL.protocol === 'https:'),
auth: this._proxyAuthorization,
@@ -250,7 +250,7 @@ class Connection extends EventEmitter {
const base64 = new Buffer(this._authorization).toString('base64')
options.headers = {Authorization: `Basic ${base64}`}
}
const optionsOverrides = _.omit({
const optionsOverrides = _.omitBy({
ca: this._trustedCertificates,
key: this._key,
passphrase: this._passphrase,

View File

@@ -53,7 +53,7 @@ function convertKeysFromSnakeCaseToCamelCase(obj: any): any {
}
function removeUndefined(obj: Object): Object {
return _.omit(obj, _.isUndefined)
return _.omitBy(obj, _.isUndefined)
}
/**

View File

@@ -67,7 +67,7 @@ function renameCounterpartyToIssuerInOrder(order: RequestBookOffersArgs) {
const taker_gets = renameCounterpartyToIssuer(order.taker_gets)
const taker_pays = renameCounterpartyToIssuer(order.taker_pays)
const changes = {taker_gets: taker_gets, taker_pays: taker_pays}
return _.assign({}, order, _.omit(changes, _.isUndefined))
return _.assign({}, order, _.omitBy(changes, _.isUndefined))
}
function signum(num) {

View File

@@ -15,7 +15,7 @@ function formatPrepareResponse(txJSON: Object): Object {
}
return {
txJSON: JSON.stringify(txJSON),
instructions: _.omit(instructions, _.isUndefined)
instructions: _.omitBy(instructions, _.isUndefined)
}
}