@saberhq/solana-contrib
Advanced tools
Comparing version 1.12.9 to 1.12.12
@@ -50,3 +50,9 @@ "use strict"; | ||
if (callStack) { | ||
const expectIndex = callStack.findIndex((l) => l.includes(`at ${printAccountOwners.name}`)); | ||
let expectIndex = callStack.findIndex((l) => l.includes(`at ${printAccountOwners.name}`)); | ||
// debugAccountOwners in chai-solana wraps printAccountOwners | ||
// We need to get the caller of debugAccountOwners instead | ||
const debugAccountOwnersIndex = callStack.findIndex((l) => l.includes(`at debugAccountOwners`)); | ||
if (debugAccountOwnersIndex > expectIndex) { | ||
expectIndex = debugAccountOwnersIndex; | ||
} | ||
// Only log the line number in Node.js | ||
@@ -53,0 +59,0 @@ if (expectIndex > 0 && |
@@ -47,3 +47,9 @@ import { __awaiter } from "tslib"; | ||
if (callStack) { | ||
const expectIndex = callStack.findIndex((l) => l.includes(`at ${printAccountOwners.name}`)); | ||
let expectIndex = callStack.findIndex((l) => l.includes(`at ${printAccountOwners.name}`)); | ||
// debugAccountOwners in chai-solana wraps printAccountOwners | ||
// We need to get the caller of debugAccountOwners instead | ||
const debugAccountOwnersIndex = callStack.findIndex((l) => l.includes(`at debugAccountOwners`)); | ||
if (debugAccountOwnersIndex > expectIndex) { | ||
expectIndex = debugAccountOwnersIndex; | ||
} | ||
// Only log the line number in Node.js | ||
@@ -50,0 +56,0 @@ if (expectIndex > 0 && |
{ | ||
"name": "@saberhq/solana-contrib", | ||
"version": "1.12.9", | ||
"version": "1.12.12", | ||
"description": "Common types and libraries for Solana", | ||
@@ -41,3 +41,3 @@ "author": "Ian Macalinao <ian@saber.so>", | ||
}, | ||
"gitHead": "80b2e700ac0e7e4f6ebf2e9ff96b981b6452a0bb", | ||
"gitHead": "b185a52d182d8b8e391006d5ee5e4f7d01bed443", | ||
"publishConfig": { | ||
@@ -44,0 +44,0 @@ "access": "public" |
@@ -49,5 +49,15 @@ // import { Provider as AnchorProvider } from "@project-serum/anchor"; | ||
if (callStack) { | ||
const expectIndex = callStack.findIndex((l) => | ||
let expectIndex = callStack.findIndex((l) => | ||
l.includes(`at ${printAccountOwners.name}`) | ||
); | ||
// debugAccountOwners in chai-solana wraps printAccountOwners | ||
// We need to get the caller of debugAccountOwners instead | ||
const debugAccountOwnersIndex = callStack.findIndex((l) => | ||
l.includes(`at debugAccountOwners`) | ||
); | ||
if (debugAccountOwnersIndex > expectIndex) { | ||
expectIndex = debugAccountOwnersIndex; | ||
} | ||
// Only log the line number in Node.js | ||
@@ -54,0 +64,0 @@ if ( |
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
392878
5549