@vtecx/vtecxnext 1.0.5 → 1.0.7

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.
@@ -1,4 +1,6 @@
1
+ /// <reference types="node" />
1
2
  import { IncomingMessage, ServerResponse } from 'http';
3
+ import type { Readable } from 'node:stream';
2
4
  /**
3
5
  * Hello world.
4
6
  */
@@ -707,6 +709,12 @@ export declare const oauthLine: (req: IncomingMessage, res: ServerResponse) => P
707
709
  * @param res response (for authentication)
708
710
  */
709
711
  export declare const oauthCallbackLine: (req: IncomingMessage, res: ServerResponse) => Promise<boolean>;
712
+ /**
713
+ * get binary data from stream
714
+ * @param readable Readable
715
+ * @returns buffer
716
+ */
717
+ export declare const buffer: (readable: Readable) => Promise<Buffer>;
710
718
  /**
711
719
  * Error returned from vte.cx
712
720
  */
@@ -714,3 +722,9 @@ export declare class VtecxNextError extends Error {
714
722
  status: number;
715
723
  constructor(status: number, message: string);
716
724
  }
725
+ /**
726
+ * Fetch Error
727
+ */
728
+ export declare class FetchError extends VtecxNextError {
729
+ constructor(message: string);
730
+ }