@settlemint/sdk-cli 2.4.1-mainc7da27d9 → 2.4.1-maineb561354
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.
- package/dist/cli.js +11 -24
- package/dist/cli.js.map +4 -4
- package/package.json +5 -5
package/dist/cli.js
CHANGED
@@ -265083,7 +265083,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
265083
265083
|
var package_default = {
|
265084
265084
|
name: "@settlemint/sdk-cli",
|
265085
265085
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
265086
|
-
version: "2.4.1-
|
265086
|
+
version: "2.4.1-maineb561354",
|
265087
265087
|
type: "module",
|
265088
265088
|
private: false,
|
265089
265089
|
license: "FSL-1.1-MIT",
|
@@ -265134,10 +265134,10 @@ var package_default = {
|
|
265134
265134
|
"@inquirer/input": "4.2.0",
|
265135
265135
|
"@inquirer/password": "4.0.16",
|
265136
265136
|
"@inquirer/select": "4.2.4",
|
265137
|
-
"@settlemint/sdk-hasura": "2.4.1-
|
265138
|
-
"@settlemint/sdk-js": "2.4.1-
|
265139
|
-
"@settlemint/sdk-utils": "2.4.1-
|
265140
|
-
"@settlemint/sdk-viem": "2.4.1-
|
265137
|
+
"@settlemint/sdk-hasura": "2.4.1-maineb561354",
|
265138
|
+
"@settlemint/sdk-js": "2.4.1-maineb561354",
|
265139
|
+
"@settlemint/sdk-utils": "2.4.1-maineb561354",
|
265140
|
+
"@settlemint/sdk-viem": "2.4.1-maineb561354",
|
265141
265141
|
"@types/node": "24.0.12",
|
265142
265142
|
"@types/semver": "7.7.0",
|
265143
265143
|
"@types/which": "3.0.4",
|
@@ -301868,7 +301868,7 @@ async function codegenHasura(env2) {
|
|
301868
301868
|
...accessToken ? { "x-auth-token": accessToken } : {}
|
301869
301869
|
}
|
301870
301870
|
});
|
301871
|
-
const hasuraTemplate = `import { createHasuraClient
|
301871
|
+
const hasuraTemplate = `import { createHasuraClient } from "${PACKAGE_NAME}";
|
301872
301872
|
import type { introspection } from "@schemas/hasura-env";
|
301873
301873
|
import { createLogger, requestLogger, type LogLevel } from '@settlemint/sdk-utils/logging';
|
301874
301874
|
|
@@ -326150,12 +326150,8 @@ function createCommand2() {
|
|
326150
326150
|
}
|
326151
326151
|
|
326152
326152
|
// ../hasura/dist/hasura.js
|
326153
|
-
async function trackAllTables(databaseName, client
|
326154
|
-
includeSchemas: undefined,
|
326155
|
-
excludeSchemas: undefined
|
326156
|
-
}) {
|
326153
|
+
async function trackAllTables(databaseName, client) {
|
326157
326154
|
const messages = [];
|
326158
|
-
const { includeSchemas, excludeSchemas } = tableOptions;
|
326159
326155
|
const getTablesResult = await client({
|
326160
326156
|
type: "pg_get_source_tables",
|
326161
326157
|
args: { source: databaseName }
|
@@ -326174,30 +326170,21 @@ async function trackAllTables(databaseName, client, tableOptions = {
|
|
326174
326170
|
await client({
|
326175
326171
|
type: "pg_untrack_tables",
|
326176
326172
|
args: {
|
326177
|
-
tables: tables.map((table2) => ({ table: table2 })),
|
326173
|
+
tables: tables.map((table2) => ({ table: table2.name })),
|
326178
326174
|
allow_warnings: true
|
326179
326175
|
}
|
326180
326176
|
});
|
326181
|
-
const tablesToTrack = tables.filter((table2) => {
|
326182
|
-
if (Array.isArray(includeSchemas)) {
|
326183
|
-
return includeSchemas.includes(table2.schema);
|
326184
|
-
}
|
326185
|
-
if (Array.isArray(excludeSchemas)) {
|
326186
|
-
return !excludeSchemas.includes(table2.schema);
|
326187
|
-
}
|
326188
|
-
return true;
|
326189
|
-
});
|
326190
326177
|
const trackResult = await client({
|
326191
326178
|
type: "pg_track_tables",
|
326192
326179
|
args: {
|
326193
|
-
tables:
|
326180
|
+
tables: tables.map((table2) => ({ table: table2.name })),
|
326194
326181
|
allow_warnings: true
|
326195
326182
|
}
|
326196
326183
|
});
|
326197
326184
|
if (!trackResult.ok) {
|
326198
326185
|
throw new Error(`Failed to track tables: ${JSON.stringify(trackResult.data)}`);
|
326199
326186
|
}
|
326200
|
-
messages.push(`Successfully tracked ${
|
326187
|
+
messages.push(`Successfully tracked ${tables.length} tables`);
|
326201
326188
|
return {
|
326202
326189
|
result: "success",
|
326203
326190
|
messages
|
@@ -330929,4 +330916,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
330929
330916
|
// src/cli.ts
|
330930
330917
|
sdkCliCommand();
|
330931
330918
|
|
330932
|
-
//# debugId=
|
330919
|
+
//# debugId=650C48B1C9D9F1A564756E2164756E21
|