n8n-workflow 1.40.0 → 1.41.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.
Files changed (39) hide show
  1. package/dist/Extensions/ArrayExtensions.d.ts +8 -0
  2. package/dist/Extensions/ArrayExtensions.js +210 -61
  3. package/dist/Extensions/ArrayExtensions.js.map +1 -1
  4. package/dist/Extensions/BooleanExtensions.d.ts +0 -10
  5. package/dist/Extensions/BooleanExtensions.js +13 -10
  6. package/dist/Extensions/BooleanExtensions.js.map +1 -1
  7. package/dist/Extensions/DateExtensions.js +2 -2
  8. package/dist/Extensions/DateExtensions.js.map +1 -1
  9. package/dist/Extensions/ExpressionExtension.d.ts +2 -1
  10. package/dist/Extensions/ExpressionExtension.js.map +1 -1
  11. package/dist/Extensions/Extensions.d.ts +16 -4
  12. package/dist/Extensions/NumberExtensions.d.ts +24 -0
  13. package/dist/Extensions/NumberExtensions.js +108 -13
  14. package/dist/Extensions/NumberExtensions.js.map +1 -1
  15. package/dist/Extensions/ObjectExtensions.d.ts +12 -0
  16. package/dist/Extensions/ObjectExtensions.js +111 -19
  17. package/dist/Extensions/ObjectExtensions.js.map +1 -1
  18. package/dist/Extensions/StringExtensions.js +186 -31
  19. package/dist/Extensions/StringExtensions.js.map +1 -1
  20. package/dist/Extensions/index.d.ts +1 -1
  21. package/dist/Interfaces.d.ts +17 -3
  22. package/dist/Interfaces.js +13 -1
  23. package/dist/Interfaces.js.map +1 -1
  24. package/dist/NativeMethods/Array.methods.js +390 -29
  25. package/dist/NativeMethods/Array.methods.js.map +1 -1
  26. package/dist/NativeMethods/Boolean.methods.js +5 -1
  27. package/dist/NativeMethods/Boolean.methods.js.map +1 -1
  28. package/dist/NativeMethods/Number.methods.js +49 -1
  29. package/dist/NativeMethods/Number.methods.js.map +1 -1
  30. package/dist/NativeMethods/String.methods.js +310 -42
  31. package/dist/NativeMethods/String.methods.js.map +1 -1
  32. package/dist/NodeHelpers.d.ts +2 -1
  33. package/dist/NodeHelpers.js +29 -1
  34. package/dist/NodeHelpers.js.map +1 -1
  35. package/dist/WorkflowDataProxy.js +2 -0
  36. package/dist/WorkflowDataProxy.js.map +1 -1
  37. package/dist/build.tsbuildinfo +1 -1
  38. package/dist/index.d.ts +1 -1
  39. package/package.json +1 -1
@@ -27,8 +27,56 @@ exports.numberMethods = {
27
27
  toString: {
28
28
  doc: {
29
29
  name: 'toString',
30
- description: 'returns a string representing this number value.',
30
+ description: 'Converts the number to a string. For more formatting options, see <code>toLocaleString()</code>.',
31
+ examples: [
32
+ { example: '(2).toString()', evaluated: "'2'" },
33
+ { example: '(50.125).toString()', evaluated: "'50.125'" },
34
+ { example: '(5).toString(2)', evaluated: "'101'" },
35
+ { example: '(412).toString(16)', evaluated: "'19c'" },
36
+ ],
31
37
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toString',
38
+ args: [
39
+ {
40
+ name: 'base',
41
+ optional: true,
42
+ description: 'The base to use. Must be an integer between 2 and 36. E.g. base <code>2</code> is binary and base <code>16</code> is hexadecimal.',
43
+ default: '10',
44
+ type: 'number',
45
+ },
46
+ ],
47
+ returnType: 'string',
48
+ },
49
+ },
50
+ toLocaleString: {
51
+ doc: {
52
+ name: 'toLocaleString',
53
+ description: "Returns a localized string representing the number, i.e. in the language and format corresponding to its locale. Defaults to the system's locale if none specified.",
54
+ examples: [
55
+ {
56
+ example: '(500000.125).toLocaleString()',
57
+ evaluated: "'500,000.125' (if in US English locale)",
58
+ },
59
+ { example: "(500000.125).toLocaleString('fr-FR')", evaluated: "'500 000,125'" },
60
+ {
61
+ example: "(500000.125).toLocaleString('fr-FR', {style:'currency', currency:'EUR'})",
62
+ evaluated: "'500 000,13 €'",
63
+ },
64
+ ],
65
+ docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString',
66
+ args: [
67
+ {
68
+ name: 'locale(s)',
69
+ optional: true,
70
+ description: 'The locale to use, e.g. \'en-GB\' for British English or \'pt-BR\' for Brazilian Portuguese. See <a target="_blank" href="https://www.localeplanet.com/icu/">full list</a> (unofficial). Also accepts an <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument">array of locales</a>. Defaults to the system locale if not specified.',
71
+ type: 'string | string[]',
72
+ },
73
+ {
74
+ name: 'options',
75
+ optional: true,
76
+ description: 'An object with <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#parameters">formatting options</a>',
77
+ type: 'object',
78
+ },
79
+ ],
32
80
  returnType: 'string',
33
81
  },
34
82
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Number.methods.js","sourceRoot":"","sources":["../../src/NativeMethods/Number.methods.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAc;IACvC,QAAQ,EAAE,QAAQ;IAClB,SAAS,EAAE;QACV,OAAO,EAAE;YACR,GAAG,EAAE;gBACJ,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,IAAI;gBACZ,WAAW,EACV,sFAAsF;gBACvF,MAAM,EACL,iGAAiG;gBAClG,UAAU,EAAE,QAAQ;gBACpB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;aAC3C;SACD;QACD,WAAW,EAAE;YACZ,GAAG,EAAE;gBACJ,IAAI,EAAE,aAAa;gBACnB,MAAM,EAAE,IAAI;gBACZ,WAAW,EAAE,sEAAsE;gBACnF,MAAM,EACL,qGAAqG;gBACtG,UAAU,EAAE,QAAQ;gBACpB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;aAC9C;SACD;QACD,QAAQ,EAAE;YACT,GAAG,EAAE;gBACJ,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,kDAAkD;gBAC/D,MAAM,EACL,kGA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;wBACpI,OAAO,EAAE,IAAI;wBACb,IAAI,EAAE,QAAQ;qBACd;iBACD;gBACD,UAAU,EAAE,QAAQ;aACpB;SACD;QACD,cAAc,EAAE;YACf,GAAG,EAAE;gBACJ,IAAI,EAAE,gBAAgB;gBACtB,WAAW,EACV,qKAAqK;gBACtK,QAAQ,EAAE;oBACT;wBACC,OAAO,EAAE,+BAA+B;wBACxC,SAAS,EAAE,yCAAyC;qBACpD;oBACD,EAAE,OAAO,EAAE,sCAAsC,EAAE,SAAS,EAAE,eAAe,EAAE;oBAC/E;wBACC,OAAO,EAAE,0EAA0E;wBACnF,SAAS,EAAE,gBAAgB;qBAC3B;iBACD;gBACD,MAAM,EACL,wGAAwG;gBACzG,IAAI,EAAE;oBACL;wBACC,IAAI,EAAE,WAAW;wBACjB,QAAQ,EAAE,IAAI;wBACd,WAAW,EACV,iZAAiZ;wBAClZ,IAAI,EAAE,mBAAmB;qBACzB;oBACD;wBACC,IAAI,EAAE,SAAS;wBACf,QAAQ,EAAE,IAAI;wBACd,WAAW,EACV,4LAA4L;wBAC7L,IAAI,EAAE,QAAQ;qBACd;iBACD;gBACD,UAAU,EAAE,QAAQ;aACpB;SACD;KACD;CACD,CAAC"}
@@ -7,7 +7,8 @@ exports.stringMethods = {
7
7
  length: {
8
8
  doc: {
9
9
  name: 'length',
10
- description: 'Returns the number of characters in the string.',
10
+ description: 'The number of characters in the string',
11
+ examples: [{ example: '"hello".length', evaluated: '5' }],
11
12
  section: 'query',
12
13
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length',
13
14
  returnType: 'number',
@@ -18,172 +19,436 @@ exports.stringMethods = {
18
19
  concat: {
19
20
  doc: {
20
21
  name: 'concat',
21
- description: 'Concatenates the string arguments to the calling string.',
22
+ description: 'Joins one or more strings onto the end of the base string. Alternatively, use the <code>+</code> operator (see examples).',
23
+ examples: [
24
+ { example: "'sea'.concat('food')", evaluated: "'seafood'" },
25
+ { example: "'sea' + 'food'", evaluated: "'seafood'" },
26
+ { example: "'work'.concat('a', 'holic')", evaluated: "'workaholic'" },
27
+ ],
22
28
  section: 'edit',
23
29
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat',
30
+ args: [
31
+ {
32
+ name: 'strings',
33
+ optional: false,
34
+ variadic: true,
35
+ description: 'The strings to append, in order',
36
+ type: 'string[]',
37
+ },
38
+ ],
24
39
  returnType: 'string',
25
40
  },
26
41
  },
27
42
  endsWith: {
28
43
  doc: {
29
44
  name: 'endsWith',
30
- description: 'Checks if a string ends with `searchString`.',
45
+ description: 'Returns <code>true</code> if the string ends with <code>searchString</code>. Case-sensitive.',
46
+ examples: [
47
+ { example: "'team'.endsWith('eam')", evaluated: 'true' },
48
+ { example: "'team'.endsWith('Eam')", evaluated: 'false' },
49
+ {
50
+ example: "'teaM'.toLowerCase().endsWith('eam')",
51
+ evaluated: 'true',
52
+ description: "Returns false if the case doesn't match, so consider using .toLowerCase() first",
53
+ },
54
+ ],
31
55
  section: 'query',
32
56
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith',
33
57
  returnType: 'boolean',
34
- args: [{ name: 'searchString', type: 'string' }],
58
+ args: [
59
+ {
60
+ name: 'searchString',
61
+ optional: false,
62
+ description: 'The text to check against the end of the base string',
63
+ type: 'string',
64
+ },
65
+ {
66
+ name: 'end',
67
+ optional: true,
68
+ description: 'The end position (index) to start searching from',
69
+ type: 'number',
70
+ },
71
+ ],
35
72
  },
36
73
  },
37
74
  indexOf: {
38
75
  doc: {
39
76
  name: 'indexOf',
40
- description: 'Returns the index of the first occurrence of `searchString`.',
77
+ description: 'Returns the index (position) of the first occurrence of <code>searchString</code> within the base string, or -1 if not found. Case-sensitive.',
78
+ examples: [
79
+ { example: "'steam'.indexOf('tea')", evaluated: '1' },
80
+ { example: "'steam'.indexOf('i')", evaluated: '-1' },
81
+ {
82
+ example: "'STEAM'.indexOf('tea')",
83
+ evaluated: '-1',
84
+ description: "Returns -1 if the case doesn't match, so consider using .toLowerCase() first",
85
+ },
86
+ { example: "'STEAM'.toLowerCase().indexOf('tea')", evaluated: '1' },
87
+ ],
41
88
  section: 'query',
42
89
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf',
43
90
  returnType: 'number',
44
91
  args: [
45
- { name: 'searchString', type: 'string' },
46
- { name: 'position?', type: 'number' },
92
+ {
93
+ name: 'searchString',
94
+ optional: false,
95
+ description: 'The text to search for',
96
+ type: 'string',
97
+ },
98
+ {
99
+ name: 'start',
100
+ optional: true,
101
+ description: 'The position (index) to start searching from',
102
+ default: '0',
103
+ type: 'number',
104
+ },
47
105
  ],
48
106
  },
49
107
  },
50
108
  lastIndexOf: {
51
109
  doc: {
52
110
  name: 'lastIndexOf',
53
- description: 'Returns the index of the last occurrence of `searchString`.',
111
+ description: 'Returns the index (position) of the last occurrence of <code>searchString</code> within the base string, or -1 if not found. Case-sensitive.',
112
+ examples: [
113
+ { example: "'canal'.lastIndexOf('a')", evaluated: '3' },
114
+ { example: "'canal'.lastIndexOf('i')", evaluated: '-1' },
115
+ {
116
+ example: "'CANAL'.lastIndexOf('a')",
117
+ evaluated: '-1',
118
+ description: "Returns -1 if the case doesn't match, so consider using .toLowerCase() first",
119
+ },
120
+ { example: "'CANAL'.toLowerCase().lastIndexOf('a')", evaluated: '3' },
121
+ ],
54
122
  section: 'query',
55
123
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf',
56
124
  returnType: 'number',
57
125
  args: [
58
- { name: 'searchString', type: 'string' },
59
- { name: 'position?', type: 'number' },
126
+ {
127
+ name: 'searchString',
128
+ optional: false,
129
+ description: 'The text to search for',
130
+ type: 'string',
131
+ },
132
+ {
133
+ name: 'end',
134
+ optional: true,
135
+ description: 'The position (index) to stop searching at',
136
+ default: '0',
137
+ type: 'number',
138
+ },
60
139
  ],
61
140
  },
62
141
  },
63
142
  match: {
64
143
  doc: {
65
144
  name: 'match',
66
- description: 'Retrieves the result of matching a string against a regular expression.',
145
+ description: 'Matches the string against a <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions">regular expression</a>. Returns an array containing the first match, or all matches if the <code>g</code> flag is set in the regular expression. Returns <code>null</code> if no matches are found. \n\nFor checking whether text is present, consider <code>includes()</code> instead.',
146
+ examples: [
147
+ {
148
+ example: '"rock and roll".match(/r[^ ]*/g)',
149
+ evaluated: "['rock', 'roll']",
150
+ description: "Match all words starting with 'r'",
151
+ },
152
+ {
153
+ example: '"rock and roll".match(/r[^ ]*/)',
154
+ evaluated: "['rock']",
155
+ description: "Match first word starting with 'r' (no 'g' flag)",
156
+ },
157
+ {
158
+ example: '"ROCK and roll".match(/r[^ ]*/ig)',
159
+ evaluated: "['ROCK', 'roll']",
160
+ description: "For case-insensitive, add 'i' flag",
161
+ },
162
+ ],
67
163
  section: 'query',
68
164
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match',
69
- returnType: 'Array',
70
- args: [{ name: 'regexp', type: 'string|RegExp' }],
165
+ returnType: 'string[]',
166
+ args: [
167
+ {
168
+ name: 'regexp',
169
+ optional: false,
170
+ description: 'A <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions">regular expression</a> with the pattern to look for. Will look for multiple matches if the <code>g</code> flag is present (see examples).',
171
+ type: 'RegExp',
172
+ },
173
+ ],
71
174
  },
72
175
  },
73
176
  includes: {
74
177
  doc: {
75
178
  name: 'includes',
76
- description: 'Checks if `searchString` may be found within the calling string.',
179
+ description: 'Returns <code>true</code> if the string contains the <code>searchString</code>. Case-sensitive.',
77
180
  section: 'query',
78
181
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes',
79
182
  returnType: 'boolean',
80
183
  args: [
81
- { name: 'searchString', type: 'string' },
82
- { name: 'position?', type: 'number' },
184
+ {
185
+ name: 'searchString',
186
+ optional: false,
187
+ description: 'The text to search for',
188
+ type: 'string',
189
+ },
190
+ {
191
+ name: 'start',
192
+ optional: true,
193
+ description: 'The position (index) to start searching from',
194
+ default: '0',
195
+ type: 'number',
196
+ },
197
+ ],
198
+ examples: [
199
+ { example: "'team'.includes('tea')", evaluated: 'true' },
200
+ { example: "'team'.includes('i')", evaluated: 'false' },
201
+ {
202
+ example: "'team'.includes('Tea')",
203
+ evaluated: 'false',
204
+ description: "Returns false if the case doesn't match, so consider using .toLowerCase() first",
205
+ },
206
+ { example: "'Team'.toLowerCase().includes('tea')", evaluated: 'true' },
83
207
  ],
84
208
  },
85
209
  },
86
210
  replace: {
87
211
  doc: {
88
212
  name: 'replace',
89
- description: 'Returns a string with matches of a `pattern` replaced by a `replacement`. If `pattern` is a string, only the first occurrence will be replaced.',
213
+ description: 'Returns a string with the first occurrence of <code>pattern</code> replaced by <code>replacement</code>. \n\nTo replace all occurrences, use <code>replaceAll()</code> instead.',
90
214
  section: 'edit',
91
215
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace',
92
216
  returnType: 'string',
93
217
  args: [
94
- { name: 'pattern', type: 'string|RegExp' },
95
- { name: 'replacement', type: 'string' },
218
+ {
219
+ name: 'pattern',
220
+ optional: false,
221
+ description: 'The pattern in the string to replace. Can be a string to match or a <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions">regular expression</a>.',
222
+ type: 'string|RegExp',
223
+ },
224
+ {
225
+ name: 'replacement',
226
+ optional: false,
227
+ description: 'The new text to replace with',
228
+ type: 'string',
229
+ },
230
+ ],
231
+ examples: [
232
+ {
233
+ example: "'Red or blue or green'.replace('or', 'and')",
234
+ evaluated: "'Red and blue or green'",
235
+ },
236
+ {
237
+ example: 'let text = "Mr Blue has a blue house and a blue car";\ntext.replace(/blue/gi, "red");',
238
+ evaluated: "'Mr red has a red house and a red car'",
239
+ description: 'A global, case-insensitive replacement:',
240
+ },
241
+ {
242
+ example: 'let text = "Mr Blue has a blue house and a blue car";\ntext.replace(/blue|house|car/gi, (t) => t.toUpperCase());',
243
+ evaluated: "'Mr BLUE has a BLUE HOUSE and a BLUE CAR'",
244
+ description: 'A function to return the replacement text:',
245
+ },
96
246
  ],
97
247
  },
98
248
  },
99
249
  replaceAll: {
100
250
  doc: {
101
251
  name: 'replaceAll',
102
- description: 'Returns a string with matches of a `pattern` replaced by a `replacement`.',
252
+ description: 'Returns a string with all occurrences of <code>pattern</code> replaced by <code>replacement</code>',
253
+ examples: [
254
+ {
255
+ example: "'Red or blue or green'.replaceAll('or', 'and')",
256
+ evaluated: "'Red and blue and green'",
257
+ },
258
+ {
259
+ example: "text = 'Mr Blue has a blue car';\ntext.replaceAll(/blue|car/gi, t => t.toUpperCase())",
260
+ description: "Uppercase any occurrences of 'blue' or 'car' (You must include the 'g' flag when using a regex)",
261
+ evaluated: "'Mr BLUE has a BLUE CAR'",
262
+ },
263
+ {
264
+ example: 'text.replaceAll(/blue|car/gi, function(x){return x.toUpperCase()})',
265
+ evaluated: "'Mr BLUE has a BLUE CAR'",
266
+ description: 'Or with traditional function notation:',
267
+ },
268
+ ],
103
269
  section: 'edit',
104
270
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll',
105
271
  returnType: 'string',
106
272
  args: [
107
- { name: 'pattern', type: 'string|RegExp' },
108
- { name: 'replacement', type: 'string' },
273
+ {
274
+ name: 'pattern',
275
+ optional: false,
276
+ description: 'The pattern in the string to replace. Can be a string to match or a <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions">regular expression</a>.',
277
+ type: 'string|RegExp',
278
+ },
279
+ {
280
+ name: 'replacement',
281
+ optional: false,
282
+ description: 'The new text to replace with. Can be a string or a function that returns a string (see examples).',
283
+ type: 'string|Function',
284
+ },
109
285
  ],
110
286
  },
111
287
  },
112
288
  search: {
113
289
  doc: {
114
290
  name: 'search',
115
- description: 'Returns a string that matches `pattern` within the given string.',
291
+ description: 'Returns the index (position) of the first occurrence of a pattern within the string, or -1 if not found. The pattern is specified using a <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions">regular expression</a>. To use text instead, see <code>indexOf()</code>.',
292
+ examples: [
293
+ {
294
+ example: '"Neat n8n node".search(/n[^ ]*/)',
295
+ evaluated: '5',
296
+ description: "Pos of first word starting with 'n'",
297
+ },
298
+ {
299
+ example: '"Neat n8n node".search(/n[^ ]*/i)',
300
+ evaluated: '0',
301
+ description: "Case-insensitive match with 'i'\nPos of first word starting with 'n' or 'N'",
302
+ },
303
+ ],
116
304
  section: 'query',
117
305
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/search',
118
306
  returnType: 'string',
119
- args: [{ name: 'pattern', type: 'string|RegExp' }],
307
+ args: [
308
+ {
309
+ name: 'regexp',
310
+ optional: false,
311
+ description: 'A <a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions">regular expression</a> with the pattern to look for',
312
+ type: 'RegExp',
313
+ },
314
+ ],
120
315
  },
121
316
  },
122
317
  slice: {
123
318
  doc: {
124
319
  name: 'slice',
125
- description: 'Returns a section of a string. `indexEnd` defaults to the length of the string if not given.',
320
+ description: 'Extracts a fragment of the string at the given position. For more advanced extraction, see <code>match()</code>.',
321
+ examples: [
322
+ { example: "'Hello from n8n'.slice(0, 5)", evaluated: "'Hello'" },
323
+ { example: "'Hello from n8n'.slice(6)", evaluated: "'from n8n'" },
324
+ { example: "'Hello from n8n'.slice(-3)", evaluated: "'n8n'" },
325
+ ],
126
326
  section: 'edit',
127
327
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice',
128
328
  returnType: 'string',
129
329
  args: [
130
- { name: 'indexStart', type: 'number' },
131
- { name: 'indexEnd?', type: 'number' },
330
+ {
331
+ name: 'start',
332
+ optional: false,
333
+ description: 'The position to start from. Positions start at 0. Negative numbers count back from the end of the string.',
334
+ type: 'number',
335
+ },
336
+ {
337
+ name: 'end',
338
+ optional: true,
339
+ description: 'The position to select up to. The character at the end position is not included. Negative numbers select from the end of the string. If omitted, will extract to the end of the string.',
340
+ type: 'string',
341
+ },
132
342
  ],
133
343
  },
134
344
  },
135
345
  split: {
136
346
  doc: {
137
347
  name: 'split',
138
- description: 'Returns the substrings that result from dividing the given string with `separator`.',
348
+ description: "Splits the string into an array of substrings. Each split is made at the <code>separator</code>, and the separator isn't included in the output. \n\nThe opposite of using <code>join()</code> on an array.",
349
+ examples: [
350
+ { example: '"wind,fire,water".split(",")', evaluated: "['wind', 'fire', 'water']" },
351
+ { example: '"me and you and her".split("and")', evaluated: "['me ', ' you ', ' her']" },
352
+ {
353
+ example: '"me? you, and her".split(/[ ,?]+/)',
354
+ evaluated: "['me', 'you', 'and', 'her']",
355
+ description: "Split one or more of space, comma and '?' using a regular expression",
356
+ },
357
+ ],
139
358
  section: 'edit',
140
359
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split',
141
- returnType: 'Array',
360
+ returnType: 'string[]',
142
361
  args: [
143
- { name: 'separator', type: 'string|RegExp' },
144
- { name: 'limit?', type: 'number' },
362
+ {
363
+ name: 'separator',
364
+ optional: true,
365
+ description: 'The string (or regular expression) to use for splitting. If omitted, an array with the original string is returned.',
366
+ type: 'string',
367
+ },
368
+ {
369
+ name: 'limit',
370
+ optional: true,
371
+ description: 'The max number of array elements to return. Returns all elements if omitted.',
372
+ type: 'number',
373
+ },
145
374
  ],
146
375
  },
147
376
  },
148
377
  startsWith: {
149
378
  doc: {
150
379
  name: 'startsWith',
151
- description: 'Checks if the string begins with `searchString`.',
380
+ description: 'Returns <code>true</code> if the string starts with <code>searchString</code>. Case-sensitive.',
381
+ examples: [
382
+ { example: "'team'.startsWith('tea')", evaluated: 'true' },
383
+ { example: "'team'.startsWith('Tea')", evaluated: 'false' },
384
+ {
385
+ example: "'Team'.toLowerCase().startsWith('tea')",
386
+ evaluated: 'true',
387
+ description: "Returns false if the case doesn't match, so consider using .toLowerCase() first",
388
+ },
389
+ ],
152
390
  section: 'query',
153
391
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith',
154
392
  returnType: 'boolean',
155
393
  args: [
156
- { name: 'searchString', type: 'string' },
157
- { name: 'position?', type: 'number' },
394
+ {
395
+ name: 'searchString',
396
+ optional: false,
397
+ description: 'The text to check against the start of the base string',
398
+ type: 'string',
399
+ },
400
+ {
401
+ name: 'start',
402
+ optional: true,
403
+ description: 'The position (index) to start searching from',
404
+ default: '0',
405
+ type: 'number',
406
+ },
158
407
  ],
159
408
  },
160
409
  },
161
410
  substring: {
162
411
  doc: {
163
412
  name: 'substring',
164
- description: 'Returns the part of the string from the start index up to and excluding the end index, or to the end of the string if no end index is supplied.',
413
+ description: 'Extracts a fragment of the string at the given position. For more advanced extraction, see <code>match()</code>.',
414
+ examples: [
415
+ { example: "'Hello from n8n'.substring(0, 5)", evaluated: "'Hello'" },
416
+ { example: "'Hello from n8n'.substring(6)", evaluated: "'from n8n'" },
417
+ ],
165
418
  section: 'edit',
166
419
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring',
167
420
  returnType: 'string',
168
421
  args: [
169
- { name: 'indexStart', type: 'number' },
170
- { name: 'indexEnd?', type: 'number' },
422
+ {
423
+ name: 'start',
424
+ optional: false,
425
+ description: 'The position to start from. Positions start at 0.',
426
+ type: 'number',
427
+ },
428
+ {
429
+ name: 'end',
430
+ optional: true,
431
+ description: 'The position to select up to. The character at the end position is not included. If omitted, will extract to the end of the string.',
432
+ type: 'string',
433
+ },
171
434
  ],
172
435
  },
173
436
  },
174
437
  toLowerCase: {
175
438
  doc: {
176
439
  name: 'toLowerCase',
177
- description: 'Formats a string to lowercase. Example: "this is lowercase”.',
440
+ description: 'Converts all letters in the string to lower case',
178
441
  section: 'case',
179
442
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase',
180
443
  returnType: 'string',
444
+ examples: [{ example: '"I\'m SHOUTing".toLowerCase()', evaluated: '"i\'m shouting"' }],
181
445
  },
182
446
  },
183
447
  toUpperCase: {
184
448
  doc: {
185
449
  name: 'toUpperCase',
186
- description: 'Formats a string to lowercase. Example: "THIS IS UPPERCASE”.',
450
+ description: 'Converts all letters in the string to upper case (capitals)',
451
+ examples: [{ example: '"I\'m not angry".toUpperCase()', evaluated: '"I\'M NOT ANGRY"' }],
187
452
  section: 'case',
188
453
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase',
189
454
  returnType: 'string',
@@ -192,7 +457,8 @@ exports.stringMethods = {
192
457
  trim: {
193
458
  doc: {
194
459
  name: 'trim',
195
- description: 'Removes whitespace from both ends of a string and returns a new string.',
460
+ description: 'Removes whitespace from both ends of the string. Whitespace includes new lines, tabs, spaces, etc.',
461
+ examples: [{ example: "' lonely '.trim()", evaluated: "'lonely'" }],
196
462
  section: 'edit',
197
463
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim',
198
464
  returnType: 'string',
@@ -201,7 +467,8 @@ exports.stringMethods = {
201
467
  trimEnd: {
202
468
  doc: {
203
469
  name: 'trimEnd',
204
- description: 'Removes whitespace from the end of a string and returns a new string.',
470
+ description: 'Removes whitespace from the end of a string and returns a new string. Whitespace includes new lines, tabs, spaces, etc.',
471
+ examples: [{ example: "' lonely '.trimEnd()", evaluated: "' lonely'" }],
205
472
  section: 'edit',
206
473
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd',
207
474
  returnType: 'string',
@@ -210,7 +477,8 @@ exports.stringMethods = {
210
477
  trimStart: {
211
478
  doc: {
212
479
  name: 'trimStart',
213
- description: 'Removes whitespace from the beginning of a string and returns a new string.',
480
+ description: 'Removes whitespace from the beginning of a string and returns a new string. Whitespace includes new lines, tabs, spaces, etc.',
481
+ examples: [{ example: "' lonely '.trimStart()", evaluated: "'lonely '" }],
214
482
  section: 'edit',
215
483
  docURL: 'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart',
216
484
  returnType: 'string',
@@ -1 +1 @@
1
- {"version":3,"file":"String.methods.js","sourceRoot":"","sources":["../../src/NativeMethods/String.methods.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAc;IACvC,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE;QACX,MAAM,EAAE;YACP,GAAG,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iDAAiD;gBAC9D,OAAO,EAAE,OAAO;gBAChB,MAAM,EACL,gGAAgG;gBACjG,UAAU,EAAE,QAAQ;aACpB;SACD;KACD;IACD,SAAS,EAAE;QACV,MAAM,EAAE;YACP,GAAG,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0DAA0D;gBACvE,OAAO,EAAE,MAAM;gBACf,MAAM,EACL,gGAAgG;gBACjG,UAAU,EAAE,QAAQ;aACpB;SACD;QACD,QAAQ,EAAE;YACT,GAAG,EAAE;gBACJ,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,8CAA8C;gBAC3D,OAAO,EAAE,OAAO;gBAChB,MAAM,EACL,kGAAkG;gBACnG,UAAU,EAAE,SAAS;gBACrB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;aAChD;SACD;QACD,OAAO,EAAE;YACR,GAAG,EAAE;gBACJ,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,8DAA8D;gBAC3E,OAAO,EAAE,OAAO;gBAChB,MAAM,EACL,iGAAiG;gBAClG,UAAU,EAAE,QAAQ;gBACpB,IAAI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yEAAyE;gBACtF,OAAO,EAAE,MAAM;gBACf,MAAM,EACL,8FAA8F;gBAC/F,UAAU,EAAE,QAAQ;aACpB;SACD;QACD,OAAO,EAAE;YACR,GAAG,EAAE;gBACJ,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,uEAAuE;gBACpF,OAAO,EAAE,MAAM;gBACf,MAAM,EACL,iGAAiG;gBAClG,UAAU,EAAE,QAAQ;aACpB;SACD;QACD,SAAS,EAAE;YACV,GAAG,EAAE;gBACJ,IAAI,EAAE,WAAW;gBACjB,WAAW,EAAE,6EAA6E;gBAC1F,OAAO,EAAE,MAAM;gBACf,MAAM,EACL,mGAAmG;gBACpG,UAAU,EAAE,QAAQ;aACpB;SACD;KACD;CACD,CAAC"}
1
+ {"version":3,"file":"String.methods.js","sourceRoot":"","sources":["../../src/NativeMethods/String.methods.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAc;IACvC,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE;QACX,MAAM,EAAE;YACP,GAAG,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,wCAAwC;gBACrD,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;gBACzD,OAAO,EAAE,OAAO;gBAChB,MAAM,EACL,gGAAgG;gBACjG,UAAU,EAAE,QAAQ;aACpB;SACD;KACD;IACD,SAAS,EAAE;QACV,MAAM,EAAE;YACP,GAAG,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACV,2HAA2H;gBAC5H,QAAQ,EAAE;oBACT,EAAE,OAAO,EAAE,sBAAsB,EAAE,SAAS,EAAE,WAAW,EAAE;oBAC3D,EAAE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,EAAE;oBACrD,EAAE,OAAO,EAAE,6BAA6B,EAAE,SAAS,EAAE,cAAc,EAAE;iBACrE;gBACD,OAAO,EAAE,MAAM;gB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