@custom-js/n8n-nodes-pdf-toolkit-v2 0.4.0 → 0.5.0
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/nodes/PdfToolkit/PdfToolkit.node.js +1 -1
- package/dist/nodes/PdfToolkit/modules/Convert/index.js +2 -1
- package/dist/nodes/PdfToolkit/modules/Data/index.js +2 -1
- package/dist/nodes/PdfToolkit/modules/PDF/index.js +2 -1
- package/dist/nodes/PdfToolkit/modules/Web/index.js +2 -1
- package/package.json +2 -2
|
@@ -707,7 +707,7 @@ class PdfToolkit {
|
|
|
707
707
|
result = await (0, Data_1.executeData)(this, apiHelper, i, operation);
|
|
708
708
|
}
|
|
709
709
|
else {
|
|
710
|
-
throw new
|
|
710
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource: ${resource}`, { itemIndex: i });
|
|
711
711
|
}
|
|
712
712
|
returnData.push(result);
|
|
713
713
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.executeConvert = executeConvert;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const PdfToPng_1 = require("./PdfToPng");
|
|
5
6
|
const PdfToText_1 = require("./PdfToText");
|
|
6
7
|
const HtmlToDocx_1 = require("./HtmlToDocx");
|
|
@@ -25,6 +26,6 @@ async function executeConvert(executeFunctions, apiHelper, itemIndex, operation)
|
|
|
25
26
|
case 'markdownToHtml':
|
|
26
27
|
return (0, MarkdownToHtml_1.executeMarkdownToHtml)(executeFunctions, apiHelper, itemIndex);
|
|
27
28
|
default:
|
|
28
|
-
throw new
|
|
29
|
+
throw new n8n_workflow_1.NodeOperationError(executeFunctions.getNode(), `Unknown operation: ${operation}`, { itemIndex });
|
|
29
30
|
}
|
|
30
31
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.executeData = executeData;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const JsonSelect_1 = require("./JsonSelect");
|
|
5
6
|
const Regex_1 = require("./Regex");
|
|
6
7
|
async function executeData(executeFunctions, apiHelper, itemIndex, operation) {
|
|
@@ -10,6 +11,6 @@ async function executeData(executeFunctions, apiHelper, itemIndex, operation) {
|
|
|
10
11
|
case 'regex':
|
|
11
12
|
return (0, Regex_1.executeRegex)(executeFunctions, apiHelper, itemIndex);
|
|
12
13
|
default:
|
|
13
|
-
throw new
|
|
14
|
+
throw new n8n_workflow_1.NodeOperationError(executeFunctions.getNode(), `Unknown operation: ${operation}`, { itemIndex });
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.executePDF = executePDF;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const Compress_1 = require("./Compress");
|
|
5
6
|
const Merge_1 = require("./Merge");
|
|
6
7
|
const ExtractPages_1 = require("./ExtractPages");
|
|
@@ -22,6 +23,6 @@ async function executePDF(executeFunctions, apiHelper, itemIndex, operation) {
|
|
|
22
23
|
case 'generateInvoice':
|
|
23
24
|
return (0, GenerateInvoice_1.executeGenerateInvoice)(executeFunctions, apiHelper, itemIndex);
|
|
24
25
|
default:
|
|
25
|
-
throw new
|
|
26
|
+
throw new n8n_workflow_1.NodeOperationError(executeFunctions.getNode(), `Unknown operation: ${operation}`, { itemIndex });
|
|
26
27
|
}
|
|
27
28
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.executeWeb = executeWeb;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
4
5
|
const Scrape_1 = require("./Scrape");
|
|
5
6
|
const Screenshot_1 = require("./Screenshot");
|
|
6
7
|
const SslCheck_1 = require("./SslCheck");
|
|
@@ -13,6 +14,6 @@ async function executeWeb(executeFunctions, apiHelper, itemIndex, operation) {
|
|
|
13
14
|
case 'sslCheck':
|
|
14
15
|
return (0, SslCheck_1.executeSslCheck)(executeFunctions, apiHelper, itemIndex);
|
|
15
16
|
default:
|
|
16
|
-
throw new
|
|
17
|
+
throw new n8n_workflow_1.NodeOperationError(executeFunctions.getNode(), `Unknown operation: ${operation}`, { itemIndex });
|
|
17
18
|
}
|
|
18
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@custom-js/n8n-nodes-pdf-toolkit-v2",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "This is official node for interacting with APIs from customjs.space",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"customjs",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"typescript": "^5.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"n8n-workflow": "
|
|
40
|
+
"n8n-workflow": "*"
|
|
41
41
|
},
|
|
42
42
|
"type": "commonjs",
|
|
43
43
|
"main": "index.js",
|