🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@chargebee/express

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chargebee/express - npm Package Compare versions

Comparing version
1.0.0-beta.1
to
1.0.0-beta.2
+3
README.md
# @chargebee/express
This is the [Express](https://expressjs.com) adapter for [chargebee-init](https://www.npmjs.com/package/chargebee-init).
+1
-1
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;

@@ -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.`));
}
{
"name": "@chargebee/express",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"author": {

@@ -5,0 +5,0 @@ "name": "Chargebee",