@ahmedrowaihi/8n 6.0.34 → 6.0.35

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/index.mjs CHANGED
@@ -3736,7 +3736,7 @@ async function checkSelfUpdate() {
3736
3736
  });
3737
3737
  if (!res.ok) return;
3738
3738
  const { version: latest } = await res.json();
3739
- const current = "6.0.34";
3739
+ const current = "6.0.35";
3740
3740
  if (latest !== current) console.log(pc.yellow("⚠") + pc.dim(` new version available: `) + pc.cyan(latest) + pc.dim(` (current: ${current}) — run `) + pc.cyan("npm i -g @ahmedrowaihi/8n") + pc.dim(" to update"));
3741
3741
  } catch {}
3742
3742
  }
@@ -3846,7 +3846,7 @@ async function dev() {
3846
3846
  async function build({ server = false } = {}) {
3847
3847
  const { config, contentDir } = await resolveProject();
3848
3848
  const projectDir = process.cwd();
3849
- console.log(pc.cyan("8n") + pc.dim(` v6.0.34 build → ${contentDir}`));
3849
+ console.log(pc.cyan("8n") + pc.dim(` v6.0.35 build → ${contentDir}`));
3850
3850
  if (server) await runNextFlat(projectDir, "build", buildEnv({
3851
3851
  config,
3852
3852
  contentDir,
@@ -4164,7 +4164,7 @@ async function mcp() {
4164
4164
  const mcpDir = join(getStarterDir(), "content", "mcp", "en");
4165
4165
  const server = new McpServer({
4166
4166
  name: "8n",
4167
- version: "6.0.34"
4167
+ version: "6.0.35"
4168
4168
  });
4169
4169
  server.registerTool("read_me", {
4170
4170
  description: "Returns how to use the 8n MCP tools. Call this BEFORE documenting anything with 8n.",
@@ -4305,7 +4305,7 @@ Example: get_component({ name: "components" }) returns all available MDX compone
4305
4305
 
4306
4306
  //#endregion
4307
4307
  //#region src/index.ts
4308
- const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.34").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4308
+ const program = new Command().name("8n").description("Run your 8n docs site").version("6.0.35").addOption(new Option("--debug").hideHelp()).hook("preAction", (cmd) => {
4309
4309
  if (cmd.opts().debug) process.env.DEBUG_8N = "1";
4310
4310
  });
4311
4311
  program.command("init").description("Scaffold a new docs project in the current directory").action(init);
package/package.json CHANGED
@@ -30,5 +30,5 @@
30
30
  "typescript": "^5.9.3",
31
31
  "zod": "^4.3.6"
32
32
  },
33
- "version": "6.0.34"
33
+ "version": "6.0.35"
34
34
  }
@@ -106,5 +106,5 @@
106
106
  "tsx": "^4.21.0",
107
107
  "typescript": "^5.9.3"
108
108
  },
109
- "version": "6.0.34"
109
+ "version": "6.0.35"
110
110
  }
@@ -1 +1 @@
1
- let e=new TextEncoder;function t(e){let t="",n=new Uint8Array(e);for(let e=0;e<n.length;e++)t+=String.fromCharCode(n[e]);return btoa(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function n(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t.length%4,r=atob(n?t+"=".repeat(4-n):t),l=new Uint8Array(r.length);for(let e=0;e<r.length;e++)l[e]=r.charCodeAt(e);return l}async function r(t){return crypto.subtle.importKey("raw",e.encode(t),{name:"HMAC",hash:"SHA-256"},!1,["sign","verify"])}export async function signJWT(n,l){let a=t(e.encode(JSON.stringify({alg:"HS256",typ:"JWT"}))),c=t(e.encode(JSON.stringify(n))),i=await r(l),o=await crypto.subtle.sign("HMAC",i,e.encode(`${a}.${c}`));return`${a}.${c}.${t(o)}`}export async function verifyJWT(t,l){let a=t.split(".");if(3!==a.length)return null;let[c,i,o]=a;try{let t=await r(l);if(!await crypto.subtle.verify("HMAC",t,n(o),e.encode(`${c}.${i}`)))return null;let a=JSON.parse(new TextDecoder().decode(n(i)));if(a.exp<Date.now()/1e3)return null;return a}catch{return null}}
1
+ let e=new TextEncoder;function t(e){let t="",n=e instanceof Uint8Array?e:new Uint8Array(e);for(let e=0;e<n.length;e++)t+=String.fromCharCode(n[e]);return btoa(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function n(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n=t.length%4,r=atob(n?t+"=".repeat(4-n):t),l=new Uint8Array(r.length);for(let e=0;e<r.length;e++)l[e]=r.charCodeAt(e);return l.buffer.slice(0)}async function r(t){return crypto.subtle.importKey("raw",e.encode(t),{name:"HMAC",hash:"SHA-256"},!1,["sign","verify"])}export async function signJWT(n,l){let a=t(e.encode(JSON.stringify({alg:"HS256",typ:"JWT"}))),i=t(e.encode(JSON.stringify(n))),c=await r(l),o=await crypto.subtle.sign("HMAC",c,e.encode(`${a}.${i}`));return`${a}.${i}.${t(o)}`}export async function verifyJWT(t,l){let a=t.split(".");if(3!==a.length)return null;let[i,c,o]=a;try{let t=await r(l);if(!await crypto.subtle.verify("HMAC",t,n(o),e.encode(`${i}.${c}`)))return null;let a=JSON.parse(new TextDecoder().decode(n(c)));if(a.exp<Date.now()/1e3)return null;return a}catch{return null}}