@datafix/n8n-nodes-smb 0.1.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/README.md +46 -0
- package/dist/credentials/Smb.credentials.d.ts +11 -0
- package/dist/credentials/Smb.credentials.js +65 -0
- package/dist/credentials/Smb.credentials.js.map +1 -0
- package/dist/credentials/smb.dark.svg +12 -0
- package/dist/credentials/smb.svg +12 -0
- package/dist/nodes/Smb/GenericFunctions.d.ts +14 -0
- package/dist/nodes/Smb/GenericFunctions.js +107 -0
- package/dist/nodes/Smb/GenericFunctions.js.map +1 -0
- package/dist/nodes/Smb/Smb.node.d.ts +10 -0
- package/dist/nodes/Smb/Smb.node.js +251 -0
- package/dist/nodes/Smb/Smb.node.js.map +1 -0
- package/dist/nodes/Smb/Smb.node.json +18 -0
- package/dist/nodes/Smb/description/FileDescription.d.ts +3 -0
- package/dist/nodes/Smb/description/FileDescription.js +172 -0
- package/dist/nodes/Smb/description/FileDescription.js.map +1 -0
- package/dist/nodes/Smb/description/FolderDescription.d.ts +3 -0
- package/dist/nodes/Smb/description/FolderDescription.js +142 -0
- package/dist/nodes/Smb/description/FolderDescription.js.map +1 -0
- package/dist/nodes/Smb/smb.dark.svg +12 -0
- package/dist/nodes/Smb/smb.svg +12 -0
- package/dist/package.json +53 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +38 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fileFields = exports.fileOperations = void 0;
|
|
4
|
+
exports.fileOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['file'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Delete',
|
|
18
|
+
value: 'delete',
|
|
19
|
+
description: 'Delete a file from the SMB share',
|
|
20
|
+
action: 'Delete a file',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Download',
|
|
24
|
+
value: 'download',
|
|
25
|
+
description: 'Download a file from the SMB share',
|
|
26
|
+
action: 'Download a file',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'Rename',
|
|
30
|
+
value: 'rename',
|
|
31
|
+
description: 'Rename a file on the SMB share',
|
|
32
|
+
action: 'Rename a file',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Upload',
|
|
36
|
+
value: 'upload',
|
|
37
|
+
description: 'Upload a file to the SMB share',
|
|
38
|
+
action: 'Upload a file',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
default: 'upload',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.fileFields = [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'File Path',
|
|
47
|
+
name: 'filePath',
|
|
48
|
+
type: 'string',
|
|
49
|
+
required: true,
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: {
|
|
52
|
+
resource: ['file'],
|
|
53
|
+
operation: ['delete'],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
default: '',
|
|
57
|
+
placeholder: '/path/to/file.txt',
|
|
58
|
+
description: 'The path of the file to delete from the SMB share',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'File Path',
|
|
62
|
+
name: 'filePath',
|
|
63
|
+
type: 'string',
|
|
64
|
+
required: true,
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['file'],
|
|
68
|
+
operation: ['download'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
default: '',
|
|
72
|
+
placeholder: '/path/to/file.txt',
|
|
73
|
+
description: 'The path of the file to download from the SMB share',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'Put Output in Field',
|
|
77
|
+
name: 'binaryPropertyName',
|
|
78
|
+
type: 'string',
|
|
79
|
+
required: true,
|
|
80
|
+
displayOptions: {
|
|
81
|
+
show: {
|
|
82
|
+
resource: ['file'],
|
|
83
|
+
operation: ['download'],
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
default: 'data',
|
|
87
|
+
description: 'Name of the binary property to store the downloaded file',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
displayName: 'Current File Path',
|
|
91
|
+
name: 'filePath',
|
|
92
|
+
type: 'string',
|
|
93
|
+
required: true,
|
|
94
|
+
displayOptions: {
|
|
95
|
+
show: {
|
|
96
|
+
resource: ['file'],
|
|
97
|
+
operation: ['rename'],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
default: '',
|
|
101
|
+
placeholder: '/path/to/oldfile.txt',
|
|
102
|
+
description: 'The current path of the file on the SMB share',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
displayName: 'New File Path',
|
|
106
|
+
name: 'newFilePath',
|
|
107
|
+
type: 'string',
|
|
108
|
+
required: true,
|
|
109
|
+
displayOptions: {
|
|
110
|
+
show: {
|
|
111
|
+
resource: ['file'],
|
|
112
|
+
operation: ['rename'],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
default: '',
|
|
116
|
+
placeholder: '/path/to/newfile.txt',
|
|
117
|
+
description: 'The new path for the file on the SMB share',
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
displayName: 'File Path',
|
|
121
|
+
name: 'filePath',
|
|
122
|
+
type: 'string',
|
|
123
|
+
required: true,
|
|
124
|
+
displayOptions: {
|
|
125
|
+
show: {
|
|
126
|
+
resource: ['file'],
|
|
127
|
+
operation: ['upload'],
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
default: '',
|
|
131
|
+
placeholder: '/path/to/file.txt',
|
|
132
|
+
description: 'The path where the file will be saved on the SMB share',
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
displayName: 'Input Data Field Name',
|
|
136
|
+
name: 'binaryPropertyName',
|
|
137
|
+
type: 'string',
|
|
138
|
+
required: true,
|
|
139
|
+
displayOptions: {
|
|
140
|
+
show: {
|
|
141
|
+
resource: ['file'],
|
|
142
|
+
operation: ['upload'],
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
default: 'data',
|
|
146
|
+
description: 'Name of the binary property containing the file to upload',
|
|
147
|
+
hint: 'The name of the input field containing the binary file data',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
displayName: 'Options',
|
|
151
|
+
name: 'options',
|
|
152
|
+
type: 'collection',
|
|
153
|
+
placeholder: 'Add Option',
|
|
154
|
+
default: {},
|
|
155
|
+
displayOptions: {
|
|
156
|
+
show: {
|
|
157
|
+
resource: ['file'],
|
|
158
|
+
operation: ['upload'],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
options: [
|
|
162
|
+
{
|
|
163
|
+
displayName: 'Create Missing Folders',
|
|
164
|
+
name: 'createMissingFolders',
|
|
165
|
+
type: 'boolean',
|
|
166
|
+
default: false,
|
|
167
|
+
description: 'Whether to automatically create any folders in the path that do not already exist',
|
|
168
|
+
},
|
|
169
|
+
],
|
|
170
|
+
},
|
|
171
|
+
];
|
|
172
|
+
//# sourceMappingURL=FileDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileDescription.js","sourceRoot":"","sources":["../../../../nodes/Smb/description/FileDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC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AAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,MAAM;QACf,WAAW,EAAE,2DAA2D;QACxE,IAAI,EAAE,6DAA6D;KACnE;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;gBAClB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE,sBAAsB;gBAC5B,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACV,mFAAmF;aACpF;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.folderFields = exports.folderOperations = void 0;
|
|
4
|
+
exports.folderOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ['folder'],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: 'Create',
|
|
18
|
+
value: 'create',
|
|
19
|
+
description: 'Create a folder on the SMB share',
|
|
20
|
+
action: 'Create a folder',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'Delete',
|
|
24
|
+
value: 'delete',
|
|
25
|
+
description: 'Delete a folder from the SMB share',
|
|
26
|
+
action: 'Delete a folder',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'List',
|
|
30
|
+
value: 'list',
|
|
31
|
+
description: 'List the contents of a folder on the SMB share',
|
|
32
|
+
action: 'List a folder',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'Rename',
|
|
36
|
+
value: 'rename',
|
|
37
|
+
description: 'Rename a folder on the SMB share',
|
|
38
|
+
action: 'Rename a folder',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
default: 'create',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
exports.folderFields = [
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Folder Path',
|
|
47
|
+
name: 'folderPath',
|
|
48
|
+
type: 'string',
|
|
49
|
+
required: true,
|
|
50
|
+
displayOptions: {
|
|
51
|
+
show: {
|
|
52
|
+
resource: ['folder'],
|
|
53
|
+
operation: ['create'],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
default: '',
|
|
57
|
+
placeholder: '/path/to/folder',
|
|
58
|
+
description: 'The path of the folder to create on the SMB share',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Folder Path',
|
|
62
|
+
name: 'folderPath',
|
|
63
|
+
type: 'string',
|
|
64
|
+
required: true,
|
|
65
|
+
displayOptions: {
|
|
66
|
+
show: {
|
|
67
|
+
resource: ['folder'],
|
|
68
|
+
operation: ['delete'],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
default: '',
|
|
72
|
+
placeholder: '/path/to/folder',
|
|
73
|
+
description: 'The path of the folder to delete from the SMB share',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
displayName: 'Folder Path',
|
|
77
|
+
name: 'folderPath',
|
|
78
|
+
type: 'string',
|
|
79
|
+
displayOptions: {
|
|
80
|
+
show: {
|
|
81
|
+
resource: ['folder'],
|
|
82
|
+
operation: ['list'],
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
default: '/',
|
|
86
|
+
placeholder: '/path/to/folder',
|
|
87
|
+
description: 'The folder path to list contents from. Leave empty or use "/" for root.',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
displayName: 'Options',
|
|
91
|
+
name: 'options',
|
|
92
|
+
type: 'collection',
|
|
93
|
+
placeholder: 'Add Option',
|
|
94
|
+
default: {},
|
|
95
|
+
displayOptions: {
|
|
96
|
+
show: {
|
|
97
|
+
resource: ['folder'],
|
|
98
|
+
operation: ['list'],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
options: [
|
|
102
|
+
{
|
|
103
|
+
displayName: 'Files Only',
|
|
104
|
+
name: 'filesOnly',
|
|
105
|
+
type: 'boolean',
|
|
106
|
+
default: false,
|
|
107
|
+
description: 'Whether to return only files (exclude subfolders)',
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
displayName: 'Current Folder Path',
|
|
113
|
+
name: 'folderPath',
|
|
114
|
+
type: 'string',
|
|
115
|
+
required: true,
|
|
116
|
+
displayOptions: {
|
|
117
|
+
show: {
|
|
118
|
+
resource: ['folder'],
|
|
119
|
+
operation: ['rename'],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
default: '',
|
|
123
|
+
placeholder: '/path/to/folder',
|
|
124
|
+
description: 'The current path of the folder on the SMB share',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
displayName: 'New Folder Path',
|
|
128
|
+
name: 'newFolderPath',
|
|
129
|
+
type: 'string',
|
|
130
|
+
required: true,
|
|
131
|
+
displayOptions: {
|
|
132
|
+
show: {
|
|
133
|
+
resource: ['folder'],
|
|
134
|
+
operation: ['rename'],
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
default: '',
|
|
138
|
+
placeholder: '/path/to/newfolder',
|
|
139
|
+
description: 'The new path for the folder on the SMB share',
|
|
140
|
+
},
|
|
141
|
+
];
|
|
142
|
+
//# sourceMappingURL=FolderDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FolderDescription.js","sourceRoot":"","sources":["../../../../nodes/Smb/description/FolderDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACpB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,oCAAoC;gBACjD,MAAM,EAAE,iBAAiB;aACzB;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,gDAAgD;gBAC7D,MAAM,EAAE,eAAe;aACvB;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,iBAAiB;aACzB;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,YAAY,GAAsB;IAE9C;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iBAAiB;QAC9B,WAAW,EAAE,mDAAmD;KAChE;IAED;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd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W,EAAE,iBAAiB;QAC9B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;QACjC,WAAW,EAAE,8CAA8C;KAC3D;CACD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#7fdbff"
|
|
2
|
+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
3
|
+
<!-- Folder -->
|
|
4
|
+
<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>
|
|
5
|
+
<!-- Network nodes -->
|
|
6
|
+
<circle cx="8" cy="13" r="1.5" fill="#7fdbff"></circle>
|
|
7
|
+
<circle cx="12" cy="13" r="1.5" fill="#7fdbff"></circle>
|
|
8
|
+
<circle cx="16" cy="13" r="1.5" fill="#7fdbff"></circle>
|
|
9
|
+
<!-- Connection lines -->
|
|
10
|
+
<line x1="8" y1="13" x2="12" y2="13" stroke-width="1.5"></line>
|
|
11
|
+
<line x1="12" y1="13" x2="16" y2="13" stroke-width="1.5"></line>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#0066cc"
|
|
2
|
+
stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
3
|
+
<!-- Folder -->
|
|
4
|
+
<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>
|
|
5
|
+
<!-- Network nodes -->
|
|
6
|
+
<circle cx="8" cy="13" r="1.5" fill="#0066cc"></circle>
|
|
7
|
+
<circle cx="12" cy="13" r="1.5" fill="#0066cc"></circle>
|
|
8
|
+
<circle cx="16" cy="13" r="1.5" fill="#0066cc"></circle>
|
|
9
|
+
<!-- Connection lines -->
|
|
10
|
+
<line x1="8" y1="13" x2="12" y2="13" stroke-width="1.5"></line>
|
|
11
|
+
<line x1="12" y1="13" x2="16" y2="13" stroke-width="1.5"></line>
|
|
12
|
+
</svg>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "n8n-nodes-smb",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "n8n node for SMB file operations",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/joffcom/n8n-nodes-smb",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"n8n-community-node-package"
|
|
9
|
+
],
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Jon Bennetts",
|
|
12
|
+
"email": "jonathan@joffcom.net"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/joffcom/n8n-nodes-smb.git"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "n8n-node build",
|
|
20
|
+
"build:watch": "tsc --watch",
|
|
21
|
+
"dev": "n8n-node dev",
|
|
22
|
+
"lint": "n8n-node lint",
|
|
23
|
+
"lint:fix": "n8n-node lint --fix",
|
|
24
|
+
"release": "n8n-node release",
|
|
25
|
+
"prepublishOnly": "n8n-node prerelease"
|
|
26
|
+
},
|
|
27
|
+
"files": [
|
|
28
|
+
"dist"
|
|
29
|
+
],
|
|
30
|
+
"n8n": {
|
|
31
|
+
"n8nNodesApiVersion": 1,
|
|
32
|
+
"strict": false,
|
|
33
|
+
"credentials": [
|
|
34
|
+
"dist/credentials/Smb.credentials.js"
|
|
35
|
+
],
|
|
36
|
+
"nodes": [
|
|
37
|
+
"dist/nodes/Smb/Smb.node.js"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"smb3-client": "0.2.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@n8n/node-cli": "*",
|
|
45
|
+
"eslint": "9.32.0",
|
|
46
|
+
"prettier": "3.6.2",
|
|
47
|
+
"release-it": "^19.0.4",
|
|
48
|
+
"typescript": "5.9.2"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"n8n-workflow": "*"
|
|
52
|
+
}
|
|
53
|
+
}
|