Socket
Socket
Sign inDemoInstall

@stellar/stellar-base

Package Overview
Dependencies
Maintainers
8
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stellar/stellar-base - npm Package Compare versions

Comparing version 12.1.0 to 12.1.1

2

lib/asset.js

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

key: "native",
value: function native() {
value: function _native() {
return new Asset('XLM');

@@ -252,0 +252,0 @@ }

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

*
* @note If using the `SigningCallback` variation, the signer is assumed to be
* the entry's credential address. If you need a different key to sign the
* entry, you will need to use different method (e.g., fork this code).
*
* @see authorizeInvocation

@@ -151,3 +155,3 @@ * @example

function _authorizeEntry() {
_authorizeEntry = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(entry, signer, validUntilLedgerSeq) {
_authorizeEntry = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(entry, signer, validUntilLedgerSeq) {
var networkPassphrase,

@@ -186,3 +190,3 @@ clone,

if (!(typeof signer === 'function')) {
_context.next = 17;
_context.next = 18;
break;

@@ -196,14 +200,15 @@ }

signature = _context.t0.from.call(_context.t0, _context.t1);
_context.next = 18;
publicKey = _address.Address.fromScAddress(addrAuth.address()).toString();
_context.next = 20;
break;
case 17:
case 18:
signature = Buffer.from(signer.sign(payload));
case 18:
publicKey = _address.Address.fromScAddress(addrAuth.address()).toString();
publicKey = signer.publicKey();
case 20:
if (_keypair.Keypair.fromPublicKey(publicKey).verify(payload, signature)) {
_context.next = 21;
_context.next = 22;
break;
}
throw new Error("signature doesn't match payload");
case 21:
case 22:
// This structure is defined here:

@@ -225,3 +230,3 @@ // https://soroban.stellar.org/docs/fundamentals-and-concepts/invoking-contracts-with-transactions#stellar-account-signatures

return _context.abrupt("return", clone);
case 24:
case 25:
case "end":

@@ -228,0 +233,0 @@ return _context.stop();

@@ -171,3 +171,4 @@ "use strict";

*
* @returns {boolean?} returning `false` is a hint to stop exploring
* @returns {boolean|null|void} returning exactly `false` is a hint to stop
* exploring, other values are ignored
*/

@@ -174,0 +175,0 @@

{
"name": "@stellar/stellar-base",
"version": "12.1.0",
"version": "12.1.1",
"description": "Low-level support library for the Stellar network.",

@@ -73,7 +73,7 @@ "main": "./lib/index.js",

"devDependencies": {
"@babel/cli": "^7.24.8",
"@babel/core": "^7.24.9",
"@babel/eslint-parser": "^7.24.8",
"@babel/eslint-plugin": "^7.24.7",
"@babel/preset-env": "^7.24.8",
"@babel/cli": "^7.25.6",
"@babel/core": "^7.25.2",
"@babel/eslint-parser": "^7.25.1",
"@babel/eslint-plugin": "^7.25.1",
"@babel/preset-env": "^7.25.4",
"@babel/register": "^7.24.6",

@@ -92,3 +92,3 @@ "@definitelytyped/dtslint": "^0.0.182",

"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-node": "^11.1.0",

@@ -101,3 +101,3 @@ "eslint-plugin-prefer-import": "^0.0.1",

"jsdoc": "^4.0.3",
"karma": "^6.4.3",
"karma": "^6.4.4",
"karma-chrome-launcher": "^3.1.0",

@@ -109,5 +109,5 @@ "karma-coverage": "^2.2.1",

"karma-webpack": "^5.0.1",
"lint-staged": "^15.2.7",
"lint-staged": "^15.2.10",
"minami": "^1.1.1",
"mocha": "^10.6.0",
"mocha": "^10.7.3",
"node-polyfill-webpack-plugin": "^3.0.0",

@@ -122,3 +122,3 @@ "nyc": "^15.1.0",

"ts-node": "^10.9.2",
"typescript": "^5.5.3",
"typescript": "^5.6.2",
"webpack": "^5.93.0",

@@ -125,0 +125,0 @@ "webpack-cli": "^5.1.1"

@@ -1022,2 +1022,3 @@ // TypeScript Version: 2.9

innerTransaction: Transaction;
get operations(): Operation[];
}

@@ -1062,3 +1063,5 @@

addOperation(operation: xdr.Operation): this;
addOperationAt(op: xdr.Operation, i: number): this;
clearOperations(): this;
clearOperationAt(i: number): this;
addMemo(memo: Memo): this;

@@ -1090,2 +1093,3 @@ setTimeout(timeoutInSeconds: number): this;

): Transaction | FeeBumpTransaction;
}

@@ -1264,3 +1268,3 @@

parent?: any
) => boolean|null;
) => boolean|null|void;

@@ -1267,0 +1271,0 @@ export function walkInvocationTree(

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

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

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

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