@clerk/fastify
Advanced tools
Comparing version 2.1.4-canary.v20241218160014 to 2.1.4
@@ -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.1.4-canary.v20241218160014",environment:"production"},{Cookies:w,Headers:y}=A;var p=_({secretKey:n,apiUrl:u,apiVersion:f,jwtKey:l,userAgent:"@clerk/fastify@2.1.4-canary.v20241218160014",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.1.4",environment:"production"},{Cookies:w,Headers:y}=A;var p=_({secretKey:n,apiUrl:u,apiVersion:f,jwtKey:l,userAgent:"@clerk/fastify@2.1.4",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.1.4-canary.v20241218160014",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.1.4-canary.v20241218160014",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.1.4",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.1.4",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.1.4-canary.v20241218160014", | ||
"version": "2.1.4", | ||
"description": "Clerk SDK for Fastify", | ||
@@ -34,5 +34,5 @@ "keywords": [ | ||
"fastify-plugin": "^5.0.1", | ||
"@clerk/backend": "^1.21.4-canary.v20241218160014", | ||
"@clerk/shared": "^2.20.4-canary.v20241218160014", | ||
"@clerk/types": "^4.40.0-canary.v20241218160014" | ||
"@clerk/backend": "^1.21.4", | ||
"@clerk/shared": "^2.20.4", | ||
"@clerk/types": "^4.40.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
33182
96
+ Addedclient-only@0.0.1(transitive)
+ Addedfastq@1.17.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedpino@9.5.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedswr@2.2.5(transitive)
- Removedfastq@1.18.0(transitive)
- Removedpino@9.6.0(transitive)
- Removedreact@19.0.0(transitive)
- Removedswr@2.3.0(transitive)
Updated@clerk/backend@^1.21.4
Updated@clerk/shared@^2.20.4
Updated@clerk/types@^4.40.0