@streamflow/common 11.1.0-alpha.p335.b571df3 → 11.1.0

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.
@@ -2164,6 +2164,11 @@ var unwrapExecutionParams = ({ computeLimit, ...rest }, connection) => {
2164
2164
  return { ...rest, computeLimit: consumeLimitFn, skipSimulation: computeLimit === "autoSimulate" };
2165
2165
  };
2166
2166
 
2167
+ // lib/env.ts
2168
+ var isDev = process.env?.NODE_ENV === "development" || // @ts-expect-error - import.meta.env is not defined in the type definitions
2169
+ undefined?.NODE_ENV === "development" || // @ts-expect-error - import.meta.env is not defined in the type definitions
2170
+ (undefined?.DEV ?? false);
2171
+
2167
2172
  // lib/fetch-token-price.ts
2168
2173
  var fetchTokenPrice = async (mintId, cluster = "mainnet" /* Mainnet */, options) => {
2169
2174
  const url = `https://token-api.streamflow.finance/price?ids=${encodeURIComponent(mintId)}&cluster=${encodeURIComponent(cluster)}`;
@@ -2215,6 +2220,7 @@ exports.getNumberFromBN = getNumberFromBN;
2215
2220
  exports.getProgramAccounts = getProgramAccounts;
2216
2221
  exports.handleContractError = handleContractError;
2217
2222
  exports.invariant = invariant;
2223
+ exports.isDev = isDev;
2218
2224
  exports.isSignerKeypair = isSignerKeypair;
2219
2225
  exports.isSignerWallet = isSignerWallet;
2220
2226
  exports.isTransactionVersioned = isTransactionVersioned;