appwrite-utils-cli 0.0.14 → 0.0.15

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.
@@ -551,7 +551,6 @@ export const convertObjectByAttributeMappings = (obj, attributeMappings) => {
551
551
  }
552
552
  }
553
553
  }
554
- console.log("Resolved object:", result);
555
554
  return result;
556
555
  };
557
556
  /**
@@ -109,7 +109,6 @@ export class ImportDataActions {
109
109
  for (const actionDef of postImportActions) {
110
110
  const { action, params } = actionDef;
111
111
  console.log(`Executing post-import action '${action}' for attribute '${mapping.targetKey}' with params ${params.join(", ")}...`);
112
- logger.info(`Executing post-import action '${action}' for attribute '${mapping.targetKey}' with params ${params.join(", ")}...`);
113
112
  try {
114
113
  await this.executeAction(action, params, context, item);
115
114
  }
@@ -131,6 +130,7 @@ export class ImportDataActions {
131
130
  });
132
131
  // Execute the action with resolved parameters
133
132
  // Parameters are passed as-is, with objects treated as single parameters
133
+ console.log(`Executing action '${actionName}' from context with params:`, resolvedParams);
134
134
  logger.info(`Executing action '${actionName}' from context: ${JSON.stringify(context, null, 2)} with params:`, resolvedParams);
135
135
  await actionMethod(this.config, ...resolvedParams);
136
136
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "appwrite-utils-cli",
3
3
  "description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
4
- "version": "0.0.14",
4
+ "version": "0.0.15",
5
5
  "main": "src/main.ts",
6
6
  "type": "module",
7
7
  "repository": {
@@ -596,7 +596,6 @@ export const convertObjectByAttributeMappings = (
596
596
  }
597
597
  }
598
598
  }
599
- console.log("Resolved object:", result);
600
599
  return result;
601
600
  };
602
601
 
@@ -174,11 +174,6 @@ export class ImportDataActions {
174
174
  mapping.targetKey
175
175
  }' with params ${params.join(", ")}...`
176
176
  );
177
- logger.info(
178
- `Executing post-import action '${action}' for attribute '${
179
- mapping.targetKey
180
- }' with params ${params.join(", ")}...`
181
- );
182
177
  try {
183
178
  await this.executeAction(action, params, context, item);
184
179
  } catch (error) {
@@ -209,6 +204,10 @@ export class ImportDataActions {
209
204
 
210
205
  // Execute the action with resolved parameters
211
206
  // Parameters are passed as-is, with objects treated as single parameters
207
+ console.log(
208
+ `Executing action '${actionName}' from context with params:`,
209
+ resolvedParams
210
+ );
212
211
  logger.info(
213
212
  `Executing action '${actionName}' from context: ${JSON.stringify(
214
213
  context,