Comparing version 0.4.16-cfp.1 to 0.4.16-cfp.2
@@ -13,3 +13,3 @@ "use strict"; | ||
createHandler() { | ||
return async ({ request: req, }) => { | ||
return async ({ request: req, env, }) => { | ||
let reqUrl; | ||
@@ -24,2 +24,5 @@ try { | ||
} | ||
if (!this.signingKey && env[consts_1.envKeys.SigningKey]) { | ||
this.signingKey = env[consts_1.envKeys.SigningKey]; | ||
} | ||
switch (req.method) { | ||
@@ -26,0 +29,0 @@ case "PUT": { |
@@ -14,2 +14,3 @@ "use strict"; | ||
const axios_1 = __importDefault(require("axios")); | ||
const consts_1 = require("../helpers/consts"); | ||
const version_1 = require("../version"); | ||
@@ -67,3 +68,3 @@ const InngestFunction_1 = require("./InngestFunction"); | ||
*/ | ||
constructor({ name, eventKey = process.env.INNGEST_EVENT_KEY, inngestBaseUrl = "https://inn.gs/", }) { | ||
constructor({ name, eventKey = process.env[consts_1.envKeys.EventKey], inngestBaseUrl = "https://inn.gs/", }) { | ||
_Inngest_instances.add(this); | ||
@@ -70,0 +71,0 @@ if (!name) { |
@@ -60,3 +60,3 @@ import { Inngest } from "./components/Inngest"; | ||
protected readonly frameworkName: string; | ||
protected readonly signingKey: string | undefined; | ||
protected signingKey: string | undefined; | ||
/** | ||
@@ -63,0 +63,0 @@ * An Axios instance used for communicating with Inngest Cloud. |
export declare const fnIdParam = "fnId"; | ||
export declare const stepIdParam = "stepId"; | ||
export declare enum envKeys { | ||
SigningKey = "INNGEST_SIGNING_KEY", | ||
EventKey = "INNGEST_EVENT_KEY" | ||
} | ||
//# sourceMappingURL=consts.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.stepIdParam = exports.fnIdParam = void 0; | ||
exports.envKeys = exports.stepIdParam = exports.fnIdParam = void 0; | ||
exports.fnIdParam = "fnId"; | ||
exports.stepIdParam = "stepId"; | ||
var envKeys; | ||
(function (envKeys) { | ||
envKeys["SigningKey"] = "INNGEST_SIGNING_KEY"; | ||
envKeys["EventKey"] = "INNGEST_EVENT_KEY"; | ||
})(envKeys = exports.envKeys || (exports.envKeys = {})); | ||
//# sourceMappingURL=consts.js.map |
{ | ||
"name": "inngest", | ||
"version": "0.4.16-cfp.1", | ||
"version": "0.4.16-cfp.2", | ||
"description": "Official SDK for Inngest.com", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.4.16-cfp.1"; | ||
export declare const version = "0.4.16-cfp.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// Generated by genversion. | ||
exports.version = "0.4.16-cfp.1"; | ||
exports.version = "0.4.16-cfp.2"; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
127836
1581