cea8a7e994
- Add the n8n community node package with credentials, command mapping, direct serve TCP client, and browser-cli protocol crypto helpers. - Cover Ed25519 signing, canonical JSON, PQ transport encryption, request mapping, and security behavior with unit tests. - Harden serve-http with per-address rate limiting, an 8 MB request body cap, and clear warnings when binding plain HTTP beyond loopback. - Stop one-shot --key overrides from being persisted automatically; document explicit remote trust and keep key-management behind the keys policy tier. - Make HTML-to-Markdown conversion safer by bounding tree depth and dropping unsafe link/image URL schemes. - Bump package and extension release metadata to 0.16.3.
18 lines
640 B
JavaScript
18 lines
640 B
JavaScript
// Copy node icons next to their compiled .node.js files. n8n loads the icon
|
|
// from a path relative to the node file in dist/, so the SVG must travel along.
|
|
import { cp, mkdir } from 'node:fs/promises';
|
|
import { dirname, join } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const root = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
|
|
const assets = [
|
|
['nodes/BrowserCli/browserCli.svg', 'dist/nodes/BrowserCli/browserCli.svg'],
|
|
];
|
|
|
|
for (const [from, to] of assets) {
|
|
await mkdir(dirname(join(root, to)), { recursive: true });
|
|
await cp(join(root, from), join(root, to));
|
|
console.log(`copied ${from} -> ${to}`);
|
|
}
|