codehooks-js 1.3.16 → 1.3.17
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/package.json +1 -1
- package/types/index.d.ts +9 -0
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -513,6 +513,10 @@ export type httpRequest = {
|
|
|
513
513
|
* - JSON payload
|
|
514
514
|
*/
|
|
515
515
|
body: any;
|
|
516
|
+
/**
|
|
517
|
+
* - Get the raw unparsed request body as a string
|
|
518
|
+
*/
|
|
519
|
+
rawBody: string;
|
|
516
520
|
/**
|
|
517
521
|
* - Get the URL full path, e.g. /dev/myroute
|
|
518
522
|
*/
|
|
@@ -622,6 +626,11 @@ export type httpResponse = {
|
|
|
622
626
|
|
|
623
627
|
export type nextFunction = (error?: string) => void;
|
|
624
628
|
|
|
629
|
+
// Aliases for developers familiar with Express.js conventions
|
|
630
|
+
export type Request = httpRequest;
|
|
631
|
+
export type Response = httpResponse;
|
|
632
|
+
export type NextFunction = nextFunction;
|
|
633
|
+
|
|
625
634
|
export type Filesystem = {
|
|
626
635
|
/**
|
|
627
636
|
* - Get binary file input stream. Takes a path (string) to file (e.g. /static/logo.png) and an options object (Object) for future use. Returns a Promise resolving to a binary data stream emitter.
|