Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clerk/fastify

Package Overview
Dependencies
Maintainers
0
Versions
2151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clerk/fastify - npm Package Compare versions

Comparing version 2.0.21-snapshot.v20241128180515 to 2.0.21-snapshot.v20241129092324

2

dist/esm/index.js

@@ -1,2 +0,2 @@

export*from"@clerk/backend";import g from"fastify-plugin";var c=["onRequest","preHandler"];import{AuthStatus as O}from"@clerk/backend/internal";import{createClerkClient as _}from"@clerk/backend";import{constants as A}from"@clerk/backend/internal";import{apiUrlFromPublishableKey as C}from"@clerk/shared/apiUrlFromPublishableKey";var f=process.env.CLERK_API_VERSION||"v1",n=process.env.CLERK_SECRET_KEY||"",a=process.env.CLERK_PUBLISHABLE_KEY||"",u=process.env.CLERK_API_URL||C(a),l=process.env.CLERK_JWT_KEY||"",m={name:"@clerk/fastify",version:"2.0.21-snapshot.v20241128180515",environment:"production"},{Cookies:w,Headers:y}=A;var p=_({secretKey:n,apiUrl:u,apiVersion:f,jwtKey:l,userAgent:"@clerk/fastify@2.0.21-snapshot.v20241128180515",sdkMetadata:m});var h=e=>{let t=new Headers(Object.keys(e.headers).reduce((r,o)=>{let i=e.headers[o];return i&&(typeof i=="string"?r.set(o,i):r.set(o,i.join(","))),r},new Headers)),s=new URL(e.url||"",`${e.protocol}://clerk-dummy`);return new Request(s,{method:e.method,headers:t})};var E=e=>async(t,s)=>{let r=h(t),o=await p.authenticateRequest(r,{...e,secretKey:e.secretKey||n,publishableKey:e.publishableKey||a});if(o.headers.forEach((R,k)=>s.header(k,R)),o.headers.get(y.Location))return s.code(307).send();if(o.status===O.Handshake)throw new Error("Clerk: handshake status without redirect");t.auth=o.toAuth()};var F=(e,t,s)=>{e.decorateRequest("auth",null);let r=t.hookName||"preHandler";if(!c.includes(r))throw new Error(`Unsupported hookName: ${r}`);e.addHook(r,E(t)),s()},x=g(F,{name:"@clerk/fastify",fastify:"5.x"});var L=e=>`\u{1F512} Clerk: ${e.trim()}
export*from"@clerk/backend";import g from"fastify-plugin";var c=["onRequest","preHandler"];import{AuthStatus as O}from"@clerk/backend/internal";import{createClerkClient as _}from"@clerk/backend";import{constants as A}from"@clerk/backend/internal";import{apiUrlFromPublishableKey as C}from"@clerk/shared/apiUrlFromPublishableKey";var f=process.env.CLERK_API_VERSION||"v1",n=process.env.CLERK_SECRET_KEY||"",a=process.env.CLERK_PUBLISHABLE_KEY||"",u=process.env.CLERK_API_URL||C(a),l=process.env.CLERK_JWT_KEY||"",m={name:"@clerk/fastify",version:"2.0.21-snapshot.v20241129092324",environment:"production"},{Cookies:w,Headers:y}=A;var p=_({secretKey:n,apiUrl:u,apiVersion:f,jwtKey:l,userAgent:"@clerk/fastify@2.0.21-snapshot.v20241129092324",sdkMetadata:m});var h=e=>{let t=new Headers(Object.keys(e.headers).reduce((r,o)=>{let i=e.headers[o];return i&&(typeof i=="string"?r.set(o,i):r.set(o,i.join(","))),r},new Headers)),s=new URL(e.url||"",`${e.protocol}://clerk-dummy`);return new Request(s,{method:e.method,headers:t})};var E=e=>async(t,s)=>{let r=h(t),o=await p.authenticateRequest(r,{...e,secretKey:e.secretKey||n,publishableKey:e.publishableKey||a});if(o.headers.forEach((R,k)=>s.header(k,R)),o.headers.get(y.Location))return s.code(307).send();if(o.status===O.Handshake)throw new Error("Clerk: handshake status without redirect");t.auth=o.toAuth()};var F=(e,t,s)=>{e.decorateRequest("auth",null);let r=t.hookName||"preHandler";if(!c.includes(r))throw new Error(`Unsupported hookName: ${r}`);e.addHook(r,E(t)),s()},x=g(F,{name:"@clerk/fastify",fastify:"5.x"});var L=e=>`\u{1F512} Clerk: ${e.trim()}

@@ -3,0 +3,0 @@ For more info, check out the docs: https://clerk.com/docs,

@@ -1,2 +0,2 @@

"use strict";var S=Object.create;var c=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var T=(e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})},p=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w(t))!H.call(e,o)&&o!==r&&c(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},n=(e,t,r)=>(p(e,t,"default"),r&&p(r,t,"default")),v=(e,t,r)=>(r=e!=null?S(I(e)):{},p(t||!e||!e.__esModule?c(r,"default",{value:e,enumerable:!0}):r,e)),N=e=>p(c({},"__esModule",{value:!0}),e);var i={};T(i,{clerkClient:()=>u,clerkPlugin:()=>F,getAuth:()=>L});module.exports=N(i);n(i,require("@clerk/backend"),module.exports);var g=v(require("fastify-plugin"));var m=["onRequest","preHandler"];var _=require("@clerk/backend/internal");var C=require("@clerk/backend");var y=require("@clerk/backend/internal"),h=require("@clerk/shared/apiUrlFromPublishableKey"),E=process.env.CLERK_API_VERSION||"v1",f=process.env.CLERK_SECRET_KEY||"",l=process.env.CLERK_PUBLISHABLE_KEY||"",d=process.env.CLERK_API_URL||(0,h.apiUrlFromPublishableKey)(l),R=process.env.CLERK_JWT_KEY||"",k={name:"@clerk/fastify",version:"2.0.21-snapshot.v20241128180515",environment:"production"},{Cookies:V,Headers:A}=y.constants;var u=(0,C.createClerkClient)({secretKey:f,apiUrl:d,apiVersion:E,jwtKey:R,userAgent:"@clerk/fastify@2.0.21-snapshot.v20241128180515",sdkMetadata:k});var K=e=>{let t=new Headers(Object.keys(e.headers).reduce((s,o)=>{let a=e.headers[o];return a&&(typeof a=="string"?s.set(o,a):s.set(o,a.join(","))),s},new Headers)),r=new URL(e.url||"",`${e.protocol}://clerk-dummy`);return new Request(r,{method:e.method,headers:t})};var O=e=>async(t,r)=>{let s=K(t),o=await u.authenticateRequest(s,{...e,secretKey:e.secretKey||f,publishableKey:e.publishableKey||l});if(o.headers.forEach((P,q)=>r.header(q,P)),o.headers.get(A.Location))return r.code(307).send();if(o.status===_.AuthStatus.Handshake)throw new Error("Clerk: handshake status without redirect");t.auth=o.toAuth()};var Y=(e,t,r)=>{e.decorateRequest("auth",null);let s=t.hookName||"preHandler";if(!m.includes(s))throw new Error(`Unsupported hookName: ${s}`);e.addHook(s,O(t)),r()},F=(0,g.default)(Y,{name:"@clerk/fastify",fastify:"5.x"});var D=e=>`\u{1F512} Clerk: ${e.trim()}
"use strict";var S=Object.create;var c=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var T=(e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})},p=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w(t))!H.call(e,o)&&o!==r&&c(e,o,{get:()=>t[o],enumerable:!(s=b(t,o))||s.enumerable});return e},n=(e,t,r)=>(p(e,t,"default"),r&&p(r,t,"default")),v=(e,t,r)=>(r=e!=null?S(I(e)):{},p(t||!e||!e.__esModule?c(r,"default",{value:e,enumerable:!0}):r,e)),N=e=>p(c({},"__esModule",{value:!0}),e);var i={};T(i,{clerkClient:()=>u,clerkPlugin:()=>F,getAuth:()=>L});module.exports=N(i);n(i,require("@clerk/backend"),module.exports);var g=v(require("fastify-plugin"));var m=["onRequest","preHandler"];var _=require("@clerk/backend/internal");var C=require("@clerk/backend");var y=require("@clerk/backend/internal"),h=require("@clerk/shared/apiUrlFromPublishableKey"),E=process.env.CLERK_API_VERSION||"v1",f=process.env.CLERK_SECRET_KEY||"",l=process.env.CLERK_PUBLISHABLE_KEY||"",d=process.env.CLERK_API_URL||(0,h.apiUrlFromPublishableKey)(l),R=process.env.CLERK_JWT_KEY||"",k={name:"@clerk/fastify",version:"2.0.21-snapshot.v20241129092324",environment:"production"},{Cookies:V,Headers:A}=y.constants;var u=(0,C.createClerkClient)({secretKey:f,apiUrl:d,apiVersion:E,jwtKey:R,userAgent:"@clerk/fastify@2.0.21-snapshot.v20241129092324",sdkMetadata:k});var K=e=>{let t=new Headers(Object.keys(e.headers).reduce((s,o)=>{let a=e.headers[o];return a&&(typeof a=="string"?s.set(o,a):s.set(o,a.join(","))),s},new Headers)),r=new URL(e.url||"",`${e.protocol}://clerk-dummy`);return new Request(r,{method:e.method,headers:t})};var O=e=>async(t,r)=>{let s=K(t),o=await u.authenticateRequest(s,{...e,secretKey:e.secretKey||f,publishableKey:e.publishableKey||l});if(o.headers.forEach((P,q)=>r.header(q,P)),o.headers.get(A.Location))return r.code(307).send();if(o.status===_.AuthStatus.Handshake)throw new Error("Clerk: handshake status without redirect");t.auth=o.toAuth()};var Y=(e,t,r)=>{e.decorateRequest("auth",null);let s=t.hookName||"preHandler";if(!m.includes(s))throw new Error(`Unsupported hookName: ${s}`);e.addHook(s,O(t)),r()},F=(0,g.default)(Y,{name:"@clerk/fastify",fastify:"5.x"});var D=e=>`\u{1F512} Clerk: ${e.trim()}

@@ -3,0 +3,0 @@ For more info, check out the docs: https://clerk.com/docs,

{
"name": "@clerk/fastify",
"version": "2.0.21-snapshot.v20241128180515",
"version": "2.0.21-snapshot.v20241129092324",
"description": "Clerk SDK for Fastify",

@@ -34,5 +34,5 @@ "keywords": [

"fastify-plugin": "^5.0.1",
"@clerk/backend": "1.18.1-snapshot.v20241128180515",
"@clerk/shared": "2.17.1-snapshot.v20241128180515",
"@clerk/types": "4.35.1-snapshot.v20241128180515"
"@clerk/backend": "1.19.0-snapshot.v20241129092324",
"@clerk/shared": "2.17.1-snapshot.v20241129092324",
"@clerk/types": "4.36.0-snapshot.v20241129092324"
},

@@ -39,0 +39,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc