n8n-nodes-pocketbase 2.40.3 → 2.40.4
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 +1 -1
- package/dist/nodes/PocketbaseTrigger/PocketbaseTrigger.node.js +21 -15
- package/dist/nodes/PocketbaseTrigger/PocketbaseTrigger.node.js.map +3 -3
- package/dist/package.json +2 -2
- package/dist/tests/PocketbaseTriggerN8nE2E.spec.js +1 -1
- package/dist/tests/PocketbaseTriggerN8nE2E.spec.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ Alternatively, you can use your administrator account and the "\_superusers" col
|
|
|
61
61
|
When a new n8n or PocketBase version comes out, a nightly job runs the integration tests against it and releases an update once they pass.
|
|
62
62
|
|
|
63
63
|
<!-- n8n-node-tooling:compatibility -->
|
|
64
|
-
Last tested with n8n 2.47.
|
|
64
|
+
Last tested with n8n 2.47.5 and PocketBase 0.40.6.
|
|
65
65
|
<!-- /n8n-node-tooling:compatibility -->
|
|
66
66
|
|
|
67
67
|
## Versioning
|
|
@@ -274,9 +274,9 @@ function createParser(config) {
|
|
|
274
274
|
function processLines(chunk) {
|
|
275
275
|
let searchIndex = 0;
|
|
276
276
|
if (chunk.indexOf("\r") === -1) {
|
|
277
|
-
let
|
|
278
|
-
while (
|
|
279
|
-
if (searchIndex ===
|
|
277
|
+
let lfIndex2 = chunk.indexOf("\n", searchIndex);
|
|
278
|
+
while (lfIndex2 !== -1) {
|
|
279
|
+
if (searchIndex === lfIndex2) {
|
|
280
280
|
if (id !== void 0) {
|
|
281
281
|
onId === null || onId === void 0 ? void 0 : onId(id);
|
|
282
282
|
}
|
|
@@ -287,15 +287,15 @@ function createParser(config) {
|
|
|
287
287
|
data = "";
|
|
288
288
|
dataLines = 0;
|
|
289
289
|
eventType = void 0;
|
|
290
|
-
searchIndex =
|
|
291
|
-
|
|
290
|
+
searchIndex = lfIndex2 + 1;
|
|
291
|
+
lfIndex2 = chunk.indexOf("\n", searchIndex);
|
|
292
292
|
continue;
|
|
293
293
|
}
|
|
294
294
|
const firstCharCode = chunk.charCodeAt(searchIndex);
|
|
295
295
|
if (isDataPrefix(chunk, searchIndex, firstCharCode)) {
|
|
296
296
|
const valueStart = chunk.charCodeAt(searchIndex + 5) === SPACE ? searchIndex + 6 : searchIndex + 5;
|
|
297
|
-
const value = chunk.slice(valueStart,
|
|
298
|
-
if (dataLines === 0 && chunk.charCodeAt(
|
|
297
|
+
const value = chunk.slice(valueStart, lfIndex2);
|
|
298
|
+
if (dataLines === 0 && chunk.charCodeAt(lfIndex2 + 1) === LF) {
|
|
299
299
|
if (id !== void 0) {
|
|
300
300
|
onId === null || onId === void 0 ? void 0 : onId(id);
|
|
301
301
|
}
|
|
@@ -303,28 +303,28 @@ function createParser(config) {
|
|
|
303
303
|
id = void 0;
|
|
304
304
|
data = "";
|
|
305
305
|
eventType = void 0;
|
|
306
|
-
searchIndex =
|
|
307
|
-
|
|
306
|
+
searchIndex = lfIndex2 + 2;
|
|
307
|
+
lfIndex2 = chunk.indexOf("\n", searchIndex);
|
|
308
308
|
continue;
|
|
309
309
|
}
|
|
310
310
|
data = dataLines === 0 ? value : `${data}
|
|
311
311
|
${value}`;
|
|
312
312
|
dataLines++;
|
|
313
313
|
} else if (isEventPrefix(chunk, searchIndex, firstCharCode)) {
|
|
314
|
-
eventType = chunk.slice(chunk.charCodeAt(searchIndex + 6) === SPACE ? searchIndex + 7 : searchIndex + 6,
|
|
314
|
+
eventType = chunk.slice(chunk.charCodeAt(searchIndex + 6) === SPACE ? searchIndex + 7 : searchIndex + 6, lfIndex2) || void 0;
|
|
315
315
|
} else {
|
|
316
|
-
parseLine(chunk, searchIndex,
|
|
316
|
+
parseLine(chunk, searchIndex, lfIndex2);
|
|
317
317
|
}
|
|
318
318
|
if (checkForBufferOverflow())
|
|
319
319
|
return "";
|
|
320
|
-
searchIndex =
|
|
321
|
-
|
|
320
|
+
searchIndex = lfIndex2 + 1;
|
|
321
|
+
lfIndex2 = chunk.indexOf("\n", searchIndex);
|
|
322
322
|
}
|
|
323
323
|
return chunk.slice(searchIndex);
|
|
324
324
|
}
|
|
325
|
+
let crIndex = chunk.indexOf("\r", searchIndex);
|
|
326
|
+
let lfIndex = chunk.indexOf("\n", searchIndex);
|
|
325
327
|
while (searchIndex < chunk.length) {
|
|
326
|
-
const crIndex = chunk.indexOf("\r", searchIndex);
|
|
327
|
-
const lfIndex = chunk.indexOf("\n", searchIndex);
|
|
328
328
|
let lineEnd = -1;
|
|
329
329
|
if (crIndex !== -1 && lfIndex !== -1) {
|
|
330
330
|
lineEnd = crIndex < lfIndex ? crIndex : lfIndex;
|
|
@@ -347,6 +347,12 @@ ${value}`;
|
|
|
347
347
|
if (chunk.charCodeAt(searchIndex - 1) === CR && chunk.charCodeAt(searchIndex) === LF) {
|
|
348
348
|
searchIndex++;
|
|
349
349
|
}
|
|
350
|
+
if (crIndex !== -1 && crIndex < searchIndex) {
|
|
351
|
+
crIndex = chunk.indexOf("\r", searchIndex);
|
|
352
|
+
}
|
|
353
|
+
if (lfIndex !== -1 && lfIndex < searchIndex) {
|
|
354
|
+
lfIndex = chunk.indexOf("\n", searchIndex);
|
|
355
|
+
}
|
|
350
356
|
}
|
|
351
357
|
return chunk.slice(searchIndex);
|
|
352
358
|
}
|