@strkfarm/sdk 2.0.0-dev.43 → 2.0.0-dev.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/index.browser.global.js +26403 -25512
- package/dist/index.browser.mjs +853 -558
- package/dist/index.d.ts +51 -6
- package/dist/index.js +888 -590
- package/dist/index.mjs +858 -561
- package/package.json +72 -14
- package/src/global.ts +219 -230
- package/src/interfaces/common.tsx +10 -0
- package/src/modules/ekubo-pricer.ts +2 -1
- package/src/modules/pricer.ts +27 -15
- package/src/modules/zkLend.ts +3 -2
- package/src/strategies/universal-lst-muliplier-strategy.tsx +294 -20
- package/src/strategies/yoloVault.ts +2 -0
package/dist/cli.js
CHANGED
|
@@ -179,7 +179,7 @@ var getStackFromMeta = (stack, meta) => {
|
|
|
179
179
|
if (typeof stack === "string" && stack.length > 0) {
|
|
180
180
|
return stack;
|
|
181
181
|
}
|
|
182
|
-
const splat = meta[
|
|
182
|
+
const splat = meta[Symbol.for("splat")];
|
|
183
183
|
if (Array.isArray(splat)) {
|
|
184
184
|
for (const item of splat) {
|
|
185
185
|
if (item instanceof Error && item.stack) {
|
|
@@ -253,7 +253,7 @@ function configureLogger(config = {}) {
|
|
|
253
253
|
out += ` stack="${escapeValue(stripAnsi(derivedStack))}"`;
|
|
254
254
|
}
|
|
255
255
|
const metaCopy = { ...meta };
|
|
256
|
-
delete metaCopy[
|
|
256
|
+
delete metaCopy[Symbol.for("splat")];
|
|
257
257
|
if (Object.keys(metaCopy).length > 0) {
|
|
258
258
|
out += ` meta=${escapeValue(stringifyUnknown(metaCopy))}`;
|
|
259
259
|
}
|
package/dist/cli.mjs
CHANGED
|
@@ -156,7 +156,7 @@ var getStackFromMeta = (stack, meta) => {
|
|
|
156
156
|
if (typeof stack === "string" && stack.length > 0) {
|
|
157
157
|
return stack;
|
|
158
158
|
}
|
|
159
|
-
const splat = meta[
|
|
159
|
+
const splat = meta[Symbol.for("splat")];
|
|
160
160
|
if (Array.isArray(splat)) {
|
|
161
161
|
for (const item of splat) {
|
|
162
162
|
if (item instanceof Error && item.stack) {
|
|
@@ -230,7 +230,7 @@ function configureLogger(config = {}) {
|
|
|
230
230
|
out += ` stack="${escapeValue(stripAnsi(derivedStack))}"`;
|
|
231
231
|
}
|
|
232
232
|
const metaCopy = { ...meta };
|
|
233
|
-
delete metaCopy[
|
|
233
|
+
delete metaCopy[Symbol.for("splat")];
|
|
234
234
|
if (Object.keys(metaCopy).length > 0) {
|
|
235
235
|
out += ` meta=${escapeValue(stringifyUnknown(metaCopy))}`;
|
|
236
236
|
}
|