@chargebee/express
Advanced tools
| # @chargebee/express | ||
| This is the [Express](https://expressjs.com) adapter for [chargebee-init](https://www.npmjs.com/package/chargebee-init). |
| export declare function validateApiAuth(apiKey: string, site: string): void; | ||
| export declare function validateBasicAuth(webhookUserPass: string | undefined, authHeader: string | null | undefined): void; | ||
| export declare function callsites(): NodeJS.CallSite[]; | ||
| export declare function raiseWarning(): void; |
+3
-15
@@ -0,1 +1,2 @@ | ||
| import { styleText } from "node:util"; | ||
| export function validateApiAuth(apiKey, site) { | ||
@@ -25,17 +26,4 @@ if (!apiKey || !site) { | ||
| } | ||
| export function callsites() { | ||
| const _prepareStackTrace = Error.prepareStackTrace; | ||
| try { | ||
| let result = []; | ||
| Error.prepareStackTrace = (_, callSites) => { | ||
| const callSitesWithoutCurrent = callSites.slice(1); | ||
| result = callSitesWithoutCurrent; | ||
| return callSitesWithoutCurrent; | ||
| }; | ||
| new Error().stack; | ||
| return result; | ||
| } | ||
| finally { | ||
| Error.prepareStackTrace = _prepareStackTrace; | ||
| } | ||
| export function raiseWarning() { | ||
| console.trace(styleText(["yellowBright"], `This is the default implementation from a chargebee-init generated template. Please review the handler and remove the ${styleText(["bold", "underline"], "raiseWarning")} function call to hide this stack trace.`)); | ||
| } |
+1
-1
| { | ||
| "name": "@chargebee/express", | ||
| "version": "1.0.0-beta.1", | ||
| "version": "1.0.0-beta.2", | ||
| "author": { | ||
@@ -5,0 +5,0 @@ "name": "Chargebee", |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
22
4.76%1
-50%4
Infinity%22317
-0.02%489
-2.4%