You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@settlemint/sdk-utils

Package Overview
Dependencies
Maintainers
2
Versions
3096
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
0.5.14-main21ed5a5

53

dist/environment.d.ts
import { z } from 'zod';
import { DotenvParseOutput } from 'dotenv';

@@ -57,2 +56,52 @@ /**

type DotEnv = z.infer<typeof DotEnvSchema>;
declare const DotEnvSchemaPartial: z.ZodObject<{
SETTLEMINT_ENVIRONMENT: z.ZodOptional<z.ZodString>;
SETTLEMINT_INSTANCE: z.ZodOptional<z.ZodString>;
SETTLEMINT_ACCESS_TOKEN: z.ZodOptional<z.ZodString>;
SETTLEMINT_WORKSPACE: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
SETTLEMINT_APPLICATION: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
SETTLEMINT_HASURA: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
SETTLEMINT_HASURA_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
SETTLEMINT_ENVIRONMENT?: string | undefined;
SETTLEMINT_INSTANCE?: string | undefined;
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
SETTLEMINT_WORKSPACE?: string | undefined;
SETTLEMINT_APPLICATION?: string | undefined;
SETTLEMINT_HASURA?: string | undefined;
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
SETTLEMINT_THEGRAPH?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined;
SETTLEMINT_PORTAL?: string | undefined;
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
}, {
SETTLEMINT_ENVIRONMENT?: string | undefined;
SETTLEMINT_INSTANCE?: string | undefined;
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
SETTLEMINT_WORKSPACE?: string | undefined;
SETTLEMINT_APPLICATION?: string | undefined;
SETTLEMINT_HASURA?: string | undefined;
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
SETTLEMINT_THEGRAPH?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined;
SETTLEMINT_PORTAL?: string | undefined;
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
}>;
type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>;

@@ -70,3 +119,3 @@ /**

*/
declare function loadEnv<T extends boolean = true>(validateEnv?: T): Promise<T extends true ? DotEnv : DotenvParseOutput>;
declare function loadEnv<T extends boolean = true>(validateEnv?: T): Promise<T extends true ? DotEnv : DotEnvPartial>;

@@ -73,0 +122,0 @@ declare function writeEnv(env: Partial<DotEnv>, secrets: boolean): Promise<void>;

import { z, ZodSchema } from 'zod';
import { DotenvParseOutput } from 'dotenv';

@@ -63,2 +62,52 @@ /**

type DotEnv = z.infer<typeof DotEnvSchema>;
declare const DotEnvSchemaPartial: z.ZodObject<{
SETTLEMINT_ENVIRONMENT: z.ZodOptional<z.ZodString>;
SETTLEMINT_INSTANCE: z.ZodOptional<z.ZodString>;
SETTLEMINT_ACCESS_TOKEN: z.ZodOptional<z.ZodString>;
SETTLEMINT_WORKSPACE: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
SETTLEMINT_APPLICATION: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
SETTLEMINT_HASURA: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
SETTLEMINT_HASURA_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
SETTLEMINT_ENVIRONMENT?: string | undefined;
SETTLEMINT_INSTANCE?: string | undefined;
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
SETTLEMINT_WORKSPACE?: string | undefined;
SETTLEMINT_APPLICATION?: string | undefined;
SETTLEMINT_HASURA?: string | undefined;
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
SETTLEMINT_THEGRAPH?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined;
SETTLEMINT_PORTAL?: string | undefined;
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
}, {
SETTLEMINT_ENVIRONMENT?: string | undefined;
SETTLEMINT_INSTANCE?: string | undefined;
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
SETTLEMINT_WORKSPACE?: string | undefined;
SETTLEMINT_APPLICATION?: string | undefined;
SETTLEMINT_HASURA?: string | undefined;
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
SETTLEMINT_THEGRAPH?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined;
SETTLEMINT_PORTAL?: string | undefined;
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
}>;
type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>;

@@ -104,3 +153,3 @@ /**

*/
declare function loadEnv<T extends boolean = true>(validateEnv?: T): Promise<T extends true ? DotEnv : DotenvParseOutput>;
declare function loadEnv<T extends boolean = true>(validateEnv?: T): Promise<T extends true ? DotEnv : DotEnvPartial>;

@@ -117,2 +166,2 @@ declare function writeEnv(env: Partial<DotEnv>, secrets: boolean): Promise<void>;

export { type AccessToken, AccessTokenSchema, type DotEnv, DotEnvSchema, type Id, IdSchema, type Url, UrlSchema, ensureFolder, ensureServer, getPackageManager, loadEnv, projectRoot, validate, writeEnv };
export { type AccessToken, AccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type Url, UrlSchema, ensureFolder, ensureServer, getPackageManager, loadEnv, projectRoot, validate, writeEnv };

@@ -62,2 +62,52 @@ import { z, ZodSchema } from 'zod';

type DotEnv = z.infer<typeof DotEnvSchema>;
declare const DotEnvSchemaPartial: z.ZodObject<{
SETTLEMINT_ENVIRONMENT: z.ZodOptional<z.ZodString>;
SETTLEMINT_INSTANCE: z.ZodOptional<z.ZodString>;
SETTLEMINT_ACCESS_TOKEN: z.ZodOptional<z.ZodString>;
SETTLEMINT_WORKSPACE: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
SETTLEMINT_APPLICATION: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
SETTLEMINT_HASURA: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
SETTLEMINT_HASURA_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HASURA_ADMIN_SECRET: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_PORTAL_REST_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>;
SETTLEMINT_HD_PRIVATE_KEY: z.ZodOptional<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
SETTLEMINT_ENVIRONMENT?: string | undefined;
SETTLEMINT_INSTANCE?: string | undefined;
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
SETTLEMINT_WORKSPACE?: string | undefined;
SETTLEMINT_APPLICATION?: string | undefined;
SETTLEMINT_HASURA?: string | undefined;
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
SETTLEMINT_THEGRAPH?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined;
SETTLEMINT_PORTAL?: string | undefined;
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
}, {
SETTLEMINT_ENVIRONMENT?: string | undefined;
SETTLEMINT_INSTANCE?: string | undefined;
SETTLEMINT_ACCESS_TOKEN?: string | undefined;
SETTLEMINT_WORKSPACE?: string | undefined;
SETTLEMINT_APPLICATION?: string | undefined;
SETTLEMINT_HASURA?: string | undefined;
SETTLEMINT_HASURA_ENDPOINT?: string | undefined;
SETTLEMINT_HASURA_ADMIN_SECRET?: string | undefined;
SETTLEMINT_THEGRAPH?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined;
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT_FALLBACK?: string | undefined;
SETTLEMINT_PORTAL?: string | undefined;
SETTLEMINT_PORTAL_GRAPHQL_ENDPOINT?: string | undefined;
SETTLEMINT_PORTAL_REST_ENDPOINT?: string | undefined;
SETTLEMINT_HD_PRIVATE_KEY?: string | undefined;
}>;
type DotEnvPartial = z.infer<typeof DotEnvSchemaPartial>;

@@ -92,2 +142,2 @@ /**

export { type AccessToken, AccessTokenSchema, type DotEnv, DotEnvSchema, type Id, IdSchema, type Url, UrlSchema, validate };
export { type AccessToken, AccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type Url, UrlSchema, validate };

2

package.json
{
"name": "@settlemint/sdk-utils",
"description": "SettleMint SDK, integrate SettleMint into your application with ease.",
"version": "0.5.13",
"version": "0.5.14-main21ed5a5",
"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