n8n-nodes-cakemail 1.0.0 → 1.0.2

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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Cakemail = void 0;
4
4
  const n8n_workflow_1 = require("n8n-workflow");
5
- const sdk_1 = require("@cakemail/sdk");
5
+ const cakemail_sdk_1 = require("cakemail-sdk");
6
6
  class Cakemail {
7
7
  description = {
8
8
  displayName: 'Cakemail',
@@ -916,7 +916,7 @@ class Cakemail {
916
916
  const items = this.getInputData();
917
917
  const returnData = [];
918
918
  const credentials = await this.getCredentials('cakemailApi');
919
- const client = new sdk_1.CakemailClient({
919
+ const client = new cakemail_sdk_1.CakemailClient({
920
920
  email: credentials.email,
921
921
  password: credentials.password,
922
922
  baseURL: credentials.baseURL || undefined,
@@ -956,7 +956,7 @@ class Cakemail {
956
956
  });
957
957
  continue;
958
958
  }
959
- if (error instanceof sdk_1.CakemailError) {
959
+ if (error instanceof cakemail_sdk_1.CakemailError) {
960
960
  throw new n8n_workflow_1.NodeOperationError(this.getNode(), error.message, {
961
961
  itemIndex: i,
962
962
  description: error.cause?.message,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-cakemail",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "n8n node for Cakemail - workflow-native email platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",