🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@settlemint/sdk-utils

Package Overview
Dependencies
Maintainers
0
Versions
2975
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@settlemint/sdk-utils - npm Package Compare versions

Comparing version

to
1.0.6-main852ea9eb

20

dist/environment.d.ts

@@ -316,10 +316,18 @@ import { z } from 'zod';

* // Write development environment variables
* await writeEnv(false, {
* SETTLEMINT_INSTANCE: 'https://dev.example.com'
* }, false);
* await writeEnv({
* prod: false,
* env: {
* SETTLEMINT_INSTANCE: 'https://dev.example.com'
* },
* secrets: false
* });
*
* // Write production secrets
* await writeEnv(true, {
* SETTLEMINT_ACCESS_TOKEN: 'secret-token'
* }, true);
* await writeEnv({
* prod: true,
* env: {
* SETTLEMINT_ACCESS_TOKEN: 'secret-token'
* },
* secrets: true
* });
*/

@@ -326,0 +334,0 @@ declare function writeEnv({ prod, env, secrets, cwd, }: {

@@ -53,3 +53,29 @@ /**

declare function capitalizeFirstLetter(val: string): string;
/**
* Converts a camelCase string to a human-readable string.
*
* @param s - The camelCase string to convert
* @returns The human-readable string
*
* @example
* import { camelCaseToWords } from "@settlemint/sdk-utils";
*
* const words = camelCaseToWords("camelCaseString");
* // Returns: "Camel Case String"
*/
declare function camelCaseToWords(s: string): string;
/**
* Replaces underscores and hyphens with spaces.
*
* @param s - The string to replace underscores and hyphens with spaces
* @returns The input string with underscores and hyphens replaced with spaces
*
* @example
* import { replaceUnderscoresAndHyphensWithSpaces } from "@settlemint/sdk-utils";
*
* const result = replaceUnderscoresAndHyphensWithSpaces("Already_Spaced-Second");
* // Returns: "Already Spaced Second"
*/
declare function replaceUnderscoresAndHyphensWithSpaces(s: string): string;
export { capitalizeFirstLetter, retryWhenFailed, tryParseJson };
export { camelCaseToWords, capitalizeFirstLetter, replaceUnderscoresAndHyphensWithSpaces, retryWhenFailed, tryParseJson };

@@ -173,2 +173,20 @@ import { SpawnOptionsWithoutStdio } from 'node:child_process';

export { type ExecuteCommandOptions, type SpinnerOptions, ascii, cancel, executeCommand, intro, list, maskTokens, note, outro, spinner };
/**
* Displays data in a formatted table in the terminal.
*
* @param title - Title to display above the table
* @param data - Array of objects to display in table format
* @param compact - Whether to display the table in compact mode
* @example
* import { table } from "@settlemint/sdk-utils/terminal";
*
* const data = [
* { name: "Item 1", value: 100 },
* { name: "Item 2", value: 200 }
* ];
*
* table("My Table", data);
*/
declare function table(title: string, data: unknown[], compact?: boolean): void;
export { type ExecuteCommandOptions, type SpinnerOptions, ascii, cancel, executeCommand, intro, list, maskTokens, note, outro, spinner, table };
{
"name": "@settlemint/sdk-utils",
"description": "Shared utilities and helper functions for SettleMint SDK modules",
"version": "1.0.6-main6fd8fb70",
"version": "1.0.6-main852ea9eb",
"type": "module",

@@ -6,0 +6,0 @@ "private": false,

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

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 too big to display