🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@settlemint/sdk-utils

Package Overview
Dependencies
Maintainers
3
Versions
2616
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
2.3.0-pr537f3bf0

14

dist/environment.d.ts

@@ -51,4 +51,8 @@ import { z } from 'zod';

SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodString>;
/** WebSocket endpoint URL for the Portal */
SETTLEMINT_PORTAL_WS_ENDPOINT: z.ZodOptional<z.ZodString>;
/** Unique name of the HD private key */
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodString>;
/** Address of the HD private key forwarder */
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS: z.ZodOptional<z.ZodString>;
/** Unique name of the accessible private key */

@@ -109,3 +113,5 @@ SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: z.ZodOptional<z.ZodString>;

SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;

@@ -148,3 +154,5 @@ SETTLEMINT_MINIO?: string | undefined;

SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;

@@ -197,3 +205,5 @@ SETTLEMINT_MINIO?: string | undefined;

SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_PORTAL_WS_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>;

@@ -237,3 +247,5 @@ SETTLEMINT_MINIO: z.ZodOptional<z.ZodOptional<z.ZodString>>;

SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;

@@ -277,3 +289,5 @@ SETTLEMINT_MINIO?: string | undefined;

SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;

@@ -280,0 +294,0 @@ SETTLEMINT_MINIO?: string | undefined;

15

dist/index.d.ts

@@ -39,2 +39,15 @@ /**

declare function extractJsonObject<T>(value: string): T | null;
/**
* Converts a value to a JSON stringifiable format.
*
* @param value - The value to convert
* @returns The JSON stringifiable value
*
* @example
* import { makeJsonStringifiable } from "@settlemint/sdk-utils";
*
* const json = makeJsonStringifiable<{ amount: bigint }>({ amount: BigInt(1000) });
* // Returns: '{"amount":"1000"}'
*/
declare function makeJsonStringifiable<T>(value: unknown): T;

@@ -110,2 +123,2 @@ /**

export { camelCaseToWords, capitalizeFirstLetter, extractJsonObject, replaceUnderscoresAndHyphensWithSpaces, retryWhenFailed, truncate, tryParseJson };
export { camelCaseToWords, capitalizeFirstLetter, extractJsonObject, makeJsonStringifiable, replaceUnderscoresAndHyphensWithSpaces, retryWhenFailed, truncate, tryParseJson };

@@ -85,4 +85,8 @@ import { ZodSchema, ZodString, z } from 'zod';

SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodString>;
/** WebSocket endpoint URL for the Portal */
SETTLEMINT_PORTAL_WS_ENDPOINT: z.ZodOptional<z.ZodString>;
/** Unique name of the HD private key */
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodString>;
/** Address of the HD private key forwarder */
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS: z.ZodOptional<z.ZodString>;
/** Unique name of the accessible private key */

@@ -143,3 +147,5 @@ SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: z.ZodOptional<z.ZodString>;

SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;

@@ -182,3 +188,5 @@ SETTLEMINT_MINIO?: string | undefined;

SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;

@@ -231,3 +239,5 @@ SETTLEMINT_MINIO?: string | undefined;

SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_PORTAL_WS_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>;

@@ -271,3 +281,5 @@ SETTLEMINT_MINIO: z.ZodOptional<z.ZodOptional<z.ZodString>>;

SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;

@@ -311,3 +323,5 @@ SETTLEMINT_MINIO?: string | undefined;

SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_WS_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY_FORWARDER_ADDRESS?: string | undefined;
SETTLEMINT_ACCESSIBLE_PRIVATE_KEY?: string | undefined;

@@ -314,0 +328,0 @@ SETTLEMINT_MINIO?: string | undefined;

4

package.json
{
"name": "@settlemint/sdk-utils",
"description": "Shared utilities and helper functions for SettleMint SDK modules",
"version": "2.2.3",
"version": "2.3.0-pr537f3bf0",
"type": "module",

@@ -75,3 +75,3 @@ "private": false,

"find-up": "^7",
"nano-spawn": "^0.2",
"nano-spawn": "^1.0.0",
"package-manager-detector": "^1.0.0",

@@ -78,0 +78,0 @@ "yocto-spinner": "^0.2.0",

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 not supported yet

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