@cellaware/utils 4.0.1 → 4.0.2

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
1
  import { Readable } from "stream";
2
+ export declare const AZURE_HEADER_FUNCTION_KEY = "x-functions-key";
3
+ export declare const AZURE_HEADER_PRINCIPAL = "x-ms-client-principal";
2
4
  export declare function functionFetchJson(url: string, method: string, key: string, principal: string, body?: any): Promise<any>;
3
5
  export declare function functionFetchText(url: string, method: string, key: string, principal: string, text: string): Promise<any>;
4
6
  export declare function functionStreamJson(url: string, method: string, key: string, principal: string, body: any, errorBody: any): Promise<{
@@ -1,5 +1,7 @@
1
1
  import { Readable } from "stream";
2
2
  import { sleep } from "../util.js";
3
+ export const AZURE_HEADER_FUNCTION_KEY = 'x-functions-key';
4
+ export const AZURE_HEADER_PRINCIPAL = 'x-ms-client-principal';
3
5
  const STATUS_INTERNAL_SERVER_ERROR = 500;
4
6
  const STATUS_SERVICE_UNAVAILABLE = 503;
5
7
  const RETRY_SLEEP_MS = 3000;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cellaware/utils",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Cellaware Utilities for Node.js",
5
5
  "author": "Cellaware Technologies",
6
6
  "type": "module",