Comparing version 0.4.6 to 0.4.7
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.register = void 0; | ||
const cross_fetch_1 = require("cross-fetch"); | ||
const zod_1 = require("zod"); | ||
@@ -20,3 +19,3 @@ const default_1 = require("./handlers/default"); | ||
catch (err) { | ||
return new cross_fetch_1.Response(JSON.stringify(err), { | ||
return new Response(JSON.stringify(err), { | ||
status: 500, | ||
@@ -32,3 +31,3 @@ }); | ||
const { status, message } = await this.register(reqUrl); | ||
return new cross_fetch_1.Response(JSON.stringify({ message }), { status }); | ||
return new Response(JSON.stringify({ message }), { status }); | ||
} | ||
@@ -48,7 +47,7 @@ case "POST": { | ||
if (stepRes.status === 500) { | ||
return new cross_fetch_1.Response(JSON.stringify(stepRes.error), { | ||
return new Response(JSON.stringify(stepRes.error), { | ||
status: stepRes.status, | ||
}); | ||
} | ||
return new cross_fetch_1.Response(JSON.stringify(stepRes.body), { | ||
return new Response(JSON.stringify(stepRes.body), { | ||
status: stepRes.status, | ||
@@ -58,3 +57,3 @@ }); | ||
default: | ||
return new cross_fetch_1.Response(null, { status: 405 }); | ||
return new Response(null, { status: 405 }); | ||
} | ||
@@ -61,0 +60,0 @@ }; |
{ | ||
"name": "inngest", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"description": "Official SDK for Inngest.com", | ||
@@ -49,2 +49,3 @@ "main": "./index.js", | ||
"axios": "^0.27.2", | ||
"cross-fetch": "^3.1.5", | ||
"zod": "^3.19.1" | ||
@@ -59,3 +60,2 @@ }, | ||
"concurrently": "^7.4.0", | ||
"cross-fetch": "^3.1.5", | ||
"eslint": "^8.23.1", | ||
@@ -62,0 +62,0 @@ "eslint-config-prettier": "^8.5.0", |
@@ -1,2 +0,2 @@ | ||
export declare const version = "0.4.6"; | ||
export declare const version = "0.4.7"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// Generated by genversion. | ||
exports.version = "0.4.6"; | ||
exports.version = "0.4.7"; | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19
127001
3
1565
+ Addedcross-fetch@^3.1.5
+ Addedcross-fetch@3.2.0(transitive)
+ Addednode-fetch@2.7.0(transitive)
+ Addedtr46@0.0.3(transitive)
+ Addedwebidl-conversions@3.0.1(transitive)
+ Addedwhatwg-url@5.0.0(transitive)