@clerk/fastify
Advanced tools
Comparing version 2.0.28-snapshot.v20241210095051 to 2.0.28-snapshot.v20241210112914
@@ -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.28-snapshot.v20241210095051",environment:"production"},{Cookies:w,Headers:y}=A;var p=_({secretKey:n,apiUrl:u,apiVersion:f,jwtKey:l,userAgent:"@clerk/fastify@2.0.28-snapshot.v20241210095051",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.28-snapshot.v20241210112914",environment:"production"},{Cookies:w,Headers:y}=A;var p=_({secretKey:n,apiUrl:u,apiVersion:f,jwtKey:l,userAgent:"@clerk/fastify@2.0.28-snapshot.v20241210112914",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.28-snapshot.v20241210095051",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.28-snapshot.v20241210095051",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.28-snapshot.v20241210112914",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.28-snapshot.v20241210112914",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.28-snapshot.v20241210095051", | ||
"version": "2.0.28-snapshot.v20241210112914", | ||
"description": "Clerk SDK for Fastify", | ||
@@ -34,5 +34,5 @@ "keywords": [ | ||
"fastify-plugin": "^5.0.1", | ||
"@clerk/backend": "1.20.3-snapshot.v20241210095051", | ||
"@clerk/shared": "2.19.4-snapshot.v20241210095051", | ||
"@clerk/types": "4.40.0-snapshot.v20241210095051" | ||
"@clerk/backend": "1.20.3-snapshot.v20241210112914", | ||
"@clerk/shared": "2.19.4-snapshot.v20241210112914", | ||
"@clerk/types": "4.39.2-snapshot.v20241210112914" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
+ Added@clerk/backend@1.20.3-snapshot.v20241210112914(transitive)
+ Added@clerk/shared@2.19.4-snapshot.v20241210112914(transitive)
+ Added@clerk/types@4.39.2-snapshot.v20241210112914(transitive)
- Removed@clerk/backend@1.20.3-snapshot.v20241210095051(transitive)
- Removed@clerk/shared@2.19.4-snapshot.v20241210095051(transitive)
- Removed@clerk/types@4.40.0-snapshot.v20241210095051(transitive)