inngest 2.2.1 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/landing.d.ts +1 -1
- package/landing.js +1 -1
- package/package.json +1 -1
- package/remix.d.ts.map +1 -1
- package/remix.js +21 -20
- package/remix.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
package/remix.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remix.d.ts","sourceRoot":"","sources":["../src/remix.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"remix.d.ts","sourceRoot":"","sources":["../src/remix.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEtD,eAAO,MAAM,IAAI,EAAE,sBAAgC,CAAC;AA4BpD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,KAAK,EAAE,YA0CnB,CAAC"}
|
package/remix.js
CHANGED
|
@@ -4,6 +4,26 @@ exports.serve = exports.name = void 0;
|
|
|
4
4
|
const InngestCommHandler_1 = require("./components/InngestCommHandler");
|
|
5
5
|
const consts_1 = require("./helpers/consts");
|
|
6
6
|
exports.name = "remix";
|
|
7
|
+
const createNewResponse = ({ body, status, headers, }) => {
|
|
8
|
+
/**
|
|
9
|
+
* If `Response` isn't included in this environment, it's probably a Node
|
|
10
|
+
* env that isn't already polyfilling. In this case, we can polyfill it
|
|
11
|
+
* here to be safe.
|
|
12
|
+
*/
|
|
13
|
+
let Res;
|
|
14
|
+
if (typeof Response === "undefined") {
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-var-requires
|
|
16
|
+
Res = require("cross-fetch").Response;
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
20
|
+
Res = Response;
|
|
21
|
+
}
|
|
22
|
+
return new Res(body, {
|
|
23
|
+
status,
|
|
24
|
+
headers,
|
|
25
|
+
});
|
|
26
|
+
};
|
|
7
27
|
/**
|
|
8
28
|
* In Remix, serve and register any declared functions with Inngest, making them
|
|
9
29
|
* available to be triggered by events.
|
|
@@ -56,26 +76,7 @@ const serve = (nameOrInngest, fns, opts) => {
|
|
|
56
76
|
}
|
|
57
77
|
},
|
|
58
78
|
};
|
|
59
|
-
},
|
|
60
|
-
/**
|
|
61
|
-
* If `Response` isn't included in this environment, it's probably a Node
|
|
62
|
-
* env that isn't already polyfilling. In this case, we can polyfill it
|
|
63
|
-
* here to be safe.
|
|
64
|
-
*/
|
|
65
|
-
let Res;
|
|
66
|
-
if (typeof Response === "undefined") {
|
|
67
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-var-requires
|
|
68
|
-
Res = require("cross-fetch").Response;
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
72
|
-
Res = Response;
|
|
73
|
-
}
|
|
74
|
-
return new Res(body, {
|
|
75
|
-
status,
|
|
76
|
-
headers,
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
+
}, createNewResponse, createNewResponse);
|
|
79
80
|
return handler.createHandler();
|
|
80
81
|
};
|
|
81
82
|
exports.serve = serve;
|
package/remix.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remix.js","sourceRoot":"","sources":["../src/remix.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"remix.js","sourceRoot":"","sources":["../src/remix.ts"],"names":[],"mappings":";;;AAAA,wEAIyC;AACzC,6CAAyD;AAG5C,QAAA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,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,kBAAS,CAAC,IAAI,CAAW;wBACpD,MAAM,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,kBAAS,CAAC,MAAM,CAAW;wBACxD,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAU,CAAC,SAAS,CAAC,IAAI,SAAS;qBAC9D,CAAC;iBACH;YACH,CAAC;YACD,IAAI,EAAE,GAAG,EAAE;gBACT,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,EAAE;oBACxB,OAAO;wBACL,eAAe,EAAE,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,kBAAS,CAAC,UAAU,CAAC;qBAC5D,CAAC;iBACH;YACH,CAAC;SACF,CAAC;IACJ,CAAC,EACD,iBAAiB,EACjB,iBAAiB,CAClB,CAAC;IAEF,OAAO,OAAO,CAAC,aAAa,EAAE,CAAC;AACjC,CAAC,CAAC;AA1CW,QAAA,KAAK,SA0ChB"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.
|
|
1
|
+
export declare const version = "2.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED