New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

xrpl

Package Overview
Dependencies
Maintainers
8
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xrpl - npm Package Compare versions

Comparing version 2.3.1 to 2.4.0

3

dist/npm/client/connection.d.ts

@@ -15,2 +15,5 @@ /// <reference types="node" />

connectionTimeout: number;
headers?: {
[key: string]: string;
};
}

@@ -17,0 +20,0 @@ export declare type ConnectionUserOptions = Partial<ConnectionOptions>;

5

dist/npm/client/connection.js

@@ -65,5 +65,8 @@ "use strict";

options.agent = getAgent(url, config);
if (config.headers) {
options.headers = config.headers;
}
if (config.authorization != null) {
const base64 = Buffer.from(config.authorization).toString('base64');
options.headers = { Authorization: `Basic ${base64}` };
options.headers = Object.assign(Object.assign({}, options.headers), { Authorization: `Basic ${base64}` });
}

@@ -70,0 +73,0 @@ const optionsOverrides = lodash_1.default.omitBy({

@@ -79,3 +79,3 @@ "use strict";

}
throw new Error(`${message} \n Preliminary result: ${submissionResult}.`);
throw new Error(`${message} \n Preliminary result: ${submissionResult}.\nFull error details: ${String(error)}`);
}));

@@ -82,0 +82,0 @@ if (txResponse.result.validated) {

import { classicAddressToXAddress, decodeAccountID, decodeAccountPublic, decodeNodePublic, decodeSeed, decodeXAddress, encodeAccountID, encodeAccountPublic, encodeNodePublic, encodeSeed, encodeXAddress, isValidClassicAddress, isValidXAddress, xAddressToClassicAddress } from 'ripple-address-codec';
import { verify as verifyKeypairSignature } from 'ripple-keypairs';
import { LedgerEntry } from '../models/ledger';

@@ -39,3 +40,3 @@ import { Response } from '../models/methods';

};
export { getBalanceChanges, dropsToXrp, xrpToDrops, hasNextPage, rippleTimeToISOTime, isoTimeToRippleTime, rippleTimeToUnixTime, unixTimeToRippleTime, percentToQuality, decimalToQuality, percentToTransferRate, decimalToTransferRate, transferRateToDecimal, qualityToDecimal, isValidSecret, isValidAddress, hashes, deriveKeypair, deriveAddress, deriveXAddress, signPaymentChannelClaim, verifyPaymentChannelClaim, convertStringToHex, convertHexToString, classicAddressToXAddress, xAddressToClassicAddress, isValidXAddress, isValidClassicAddress, encodeSeed, decodeSeed, encodeAccountID, decodeAccountID, encodeNodePublic, decodeNodePublic, encodeAccountPublic, decodeAccountPublic, encodeXAddress, decodeXAddress, encode, decode, encodeForMultiSigning, encodeForSigning, encodeForSigningClaim, createCrossChainPayment, parseNFTokenID, };
export { getBalanceChanges, dropsToXrp, xrpToDrops, hasNextPage, rippleTimeToISOTime, isoTimeToRippleTime, rippleTimeToUnixTime, unixTimeToRippleTime, percentToQuality, decimalToQuality, percentToTransferRate, decimalToTransferRate, transferRateToDecimal, qualityToDecimal, isValidSecret, isValidAddress, hashes, deriveKeypair, deriveAddress, deriveXAddress, signPaymentChannelClaim, verifyKeypairSignature, verifyPaymentChannelClaim, convertStringToHex, convertHexToString, classicAddressToXAddress, xAddressToClassicAddress, isValidXAddress, isValidClassicAddress, encodeSeed, decodeSeed, encodeAccountID, decodeAccountID, encodeNodePublic, decodeNodePublic, encodeAccountPublic, decodeAccountPublic, encodeXAddress, decodeXAddress, encode, decode, encodeForMultiSigning, encodeForSigning, encodeForSigningClaim, createCrossChainPayment, parseNFTokenID, };
//# sourceMappingURL=index.d.ts.map

@@ -29,3 +29,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.parseNFTokenID = exports.createCrossChainPayment = exports.encodeForSigningClaim = exports.encodeForSigning = exports.encodeForMultiSigning = exports.decode = exports.encode = exports.decodeXAddress = exports.encodeXAddress = exports.decodeAccountPublic = exports.encodeAccountPublic = exports.decodeNodePublic = exports.encodeNodePublic = exports.decodeAccountID = exports.encodeAccountID = exports.decodeSeed = exports.encodeSeed = exports.isValidClassicAddress = exports.isValidXAddress = exports.xAddressToClassicAddress = exports.classicAddressToXAddress = exports.convertHexToString = exports.convertStringToHex = exports.verifyPaymentChannelClaim = exports.signPaymentChannelClaim = exports.deriveXAddress = exports.deriveAddress = exports.deriveKeypair = exports.hashes = exports.isValidAddress = exports.isValidSecret = exports.qualityToDecimal = exports.transferRateToDecimal = exports.decimalToTransferRate = exports.percentToTransferRate = exports.decimalToQuality = exports.percentToQuality = exports.unixTimeToRippleTime = exports.rippleTimeToUnixTime = exports.isoTimeToRippleTime = exports.rippleTimeToISOTime = exports.hasNextPage = exports.xrpToDrops = exports.dropsToXrp = exports.getBalanceChanges = void 0;
exports.parseNFTokenID = exports.createCrossChainPayment = exports.encodeForSigningClaim = exports.encodeForSigning = exports.encodeForMultiSigning = exports.decode = exports.encode = exports.decodeXAddress = exports.encodeXAddress = exports.decodeAccountPublic = exports.encodeAccountPublic = exports.decodeNodePublic = exports.encodeNodePublic = exports.decodeAccountID = exports.encodeAccountID = exports.decodeSeed = exports.encodeSeed = exports.isValidClassicAddress = exports.isValidXAddress = exports.xAddressToClassicAddress = exports.classicAddressToXAddress = exports.convertHexToString = exports.convertStringToHex = exports.verifyPaymentChannelClaim = exports.verifyKeypairSignature = exports.signPaymentChannelClaim = exports.deriveXAddress = exports.deriveAddress = exports.deriveKeypair = exports.hashes = exports.isValidAddress = exports.isValidSecret = exports.qualityToDecimal = exports.transferRateToDecimal = exports.decimalToTransferRate = exports.percentToTransferRate = exports.decimalToQuality = exports.percentToQuality = exports.unixTimeToRippleTime = exports.rippleTimeToUnixTime = exports.isoTimeToRippleTime = exports.rippleTimeToISOTime = exports.hasNextPage = exports.xrpToDrops = exports.dropsToXrp = exports.getBalanceChanges = void 0;
const ripple_address_codec_1 = require("ripple-address-codec");

@@ -47,2 +47,4 @@ Object.defineProperty(exports, "classicAddressToXAddress", { enumerable: true, get: function () { return ripple_address_codec_1.classicAddressToXAddress; } });

const rbc = __importStar(require("ripple-binary-codec"));
const ripple_keypairs_1 = require("ripple-keypairs");
Object.defineProperty(exports, "verifyKeypairSignature", { enumerable: true, get: function () { return ripple_keypairs_1.verify; } });
const createCrossChainPayment_1 = __importDefault(require("./createCrossChainPayment"));

@@ -49,0 +51,0 @@ exports.createCrossChainPayment = createCrossChainPayment_1.default;

@@ -68,2 +68,5 @@ "use strict";

}
if (!(0, bip39_1.validateMnemonic)(mnemonic)) {
throw new errors_1.ValidationError('Unable to parse the given mnemonic using bip39 encoding');
}
const seed = (0, bip39_1.mnemonicToSeedSync)(mnemonic);

@@ -70,0 +73,0 @@ const masterNode = (0, bip32_1.fromSeed)(seed);

@@ -78,3 +78,7 @@ "use strict";

for (word of sublist) {
const idx = rfc1751WordList.indexOf(word);
const idx = rfc1751WordList.indexOf(word.toUpperCase());
if (idx === -1) {
throw new TypeError(`Expected an RFC1751 word, but received '${word}'. ` +
`For the full list of words in the RFC1751 encoding see https://datatracker.ietf.org/doc/html/rfc1751`);
}
const shift = (8 - ((bits + 11) % 8)) % 8;

@@ -107,7 +111,5 @@ const y = idx << shift;

function swap128(buf) {
const result = Buffer.alloc(16);
result.writeBigUInt64LE(buf.readBigUInt64BE(0), 8);
result.writeBigUInt64LE(buf.readBigUInt64BE(8), 0);
return result;
const reversedBytes = buf.swap64();
return Buffer.concat([reversedBytes.slice(8, 16), reversedBytes.slice(0, 8)], 16);
}
//# sourceMappingURL=rfc1751.js.map
{
"name": "xrpl",
"version": "2.3.1",
"version": "2.4.0",
"license": "ISC",

@@ -71,3 +71,3 @@ "description": "A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser",

},
"gitHead": "aff6988f098ecc033a0cfa7974101f91de5cf948"
"gitHead": "d8dbd44f56d85ec2e4f7965d2f8f033e8f0c959c"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc