@settlemint/sdk-utils
Advanced tools
Comparing version 0.6.49 to 0.6.50-mainc0d67a4
@@ -20,3 +20,3 @@ import { z } from 'zod'; | ||
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME: z.ZodOptional<z.ZodString>; | ||
@@ -57,3 +57,3 @@ SETTLEMINT_PORTAL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -94,3 +94,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -133,3 +133,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
@@ -170,3 +170,3 @@ SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -207,3 +207,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -244,3 +244,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
*/ | ||
declare function loadEnv<T extends boolean = true>(validateEnv: T, prod: boolean): Promise<T extends true ? DotEnv : DotEnvPartial>; | ||
declare function loadEnv<T extends boolean = true>(validateEnv: T, prod: boolean, path?: string): Promise<T extends true ? DotEnv : DotEnvPartial>; | ||
@@ -247,0 +247,0 @@ declare function writeEnv(prod: boolean, env: Partial<DotEnv>, secrets: boolean): Promise<void>; |
@@ -22,2 +22,4 @@ import { SpawnOptionsWithoutStdio } from 'node:child_process'; | ||
declare function tryParseJson<T>(value: string, defaultValue?: T | null): T | null; | ||
/** | ||
@@ -50,3 +52,3 @@ * Schema for validating access tokens. | ||
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME: z.ZodOptional<z.ZodString>; | ||
@@ -87,3 +89,3 @@ SETTLEMINT_PORTAL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -124,3 +126,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -163,3 +165,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
@@ -200,3 +202,3 @@ SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -237,3 +239,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -315,3 +317,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
*/ | ||
declare function loadEnv<T extends boolean = true>(validateEnv: T, prod: boolean): Promise<T extends true ? DotEnv : DotEnvPartial>; | ||
declare function loadEnv<T extends boolean = true>(validateEnv: T, prod: boolean, path?: string): Promise<T extends true ? DotEnv : DotEnvPartial>; | ||
@@ -446,2 +448,2 @@ declare function writeEnv(prod: boolean, env: Partial<DotEnv>, secrets: boolean): Promise<void>; | ||
export { type AccessToken, AccessTokenSchema, type ApplicationAccessToken, ApplicationAccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type PersonalAccessToken, PersonalAccessTokenSchema, type Template, type Url, type UrlOrPath, UrlOrPathSchema, type UrlPath, UrlPathSchema, UrlSchema, capitalizeFirstLetter, emptyDir, ensureBrowser, ensureFolder, ensureServer, executeCommand, exists, formatTargetDir, getPackageManager, getPackageManagerExecutable, installDependencies, isEmpty, isPackageInstalled, isValidPackageName, loadEnv, projectRoot, runsInBrowser, runsOnServer, setName, templates, toValidPackageName, validate, writeEnv }; | ||
export { type AccessToken, AccessTokenSchema, type ApplicationAccessToken, ApplicationAccessTokenSchema, type DotEnv, type DotEnvPartial, DotEnvSchema, DotEnvSchemaPartial, type Id, IdSchema, type PersonalAccessToken, PersonalAccessTokenSchema, type Template, type Url, type UrlOrPath, UrlOrPathSchema, type UrlPath, UrlPathSchema, UrlSchema, capitalizeFirstLetter, emptyDir, ensureBrowser, ensureFolder, ensureServer, executeCommand, exists, formatTargetDir, getPackageManager, getPackageManagerExecutable, installDependencies, isEmpty, isPackageInstalled, isValidPackageName, loadEnv, projectRoot, runsInBrowser, runsOnServer, setName, templates, toValidPackageName, tryParseJson, validate, writeEnv }; |
@@ -30,3 +30,3 @@ import { ZodString, z, ZodSchema } from 'zod'; | ||
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodString>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME: z.ZodOptional<z.ZodString>; | ||
@@ -67,3 +67,3 @@ SETTLEMINT_PORTAL: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -104,3 +104,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -143,3 +143,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_THEGRAPH: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>>; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME: z.ZodOptional<z.ZodOptional<z.ZodString>>; | ||
@@ -180,3 +180,3 @@ SETTLEMINT_PORTAL: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>>; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: string[] | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -217,3 +217,3 @@ SETTLEMINT_PORTAL?: string | undefined; | ||
SETTLEMINT_THEGRAPH?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_ENDPOINT?: string | undefined; | ||
SETTLEMINT_THEGRAPH_SUBGRAPHS_ENDPOINTS?: unknown; | ||
SETTLEMINT_THEGRAPH_SUBGRAPH_NAME?: string | undefined; | ||
@@ -220,0 +220,0 @@ SETTLEMINT_PORTAL?: string | undefined; |
{ | ||
"name": "@settlemint/sdk-utils", | ||
"description": "SettleMint SDK, integrate SettleMint into your application with ease.", | ||
"version": "0.6.49", | ||
"version": "0.6.50-mainc0d67a4", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
376402
3384
3