@signageos/cli 2.4.0 → 2.4.1

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.
Files changed (2) hide show
  1. package/dist/helper.d.ts +5 -5
  2. package/package.json +2 -2
package/dist/helper.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RequestInit } from 'node-fetch';
1
+ import fetch, { RequestInit } from 'node-fetch';
2
2
  import RestApi from '@signageos/sdk/dist/RestApi/RestApi';
3
3
  import { ApiVersions } from '@signageos/sdk/dist/RestApi/apiVersions';
4
4
  import { IConfig } from '@signageos/sdk/dist/SosHelper/sosControlHelper';
@@ -27,9 +27,9 @@ export interface IOptions {
27
27
  }
28
28
  export declare function createOptions(method: 'POST' | 'GET' | 'PUT' | 'DELETE', options: IOptions, data?: any): RequestInit;
29
29
  export declare function createUri(options: IOptions, resource: string, queryParams?: any): string;
30
- export declare function getResource(options: IOptions, path: string, query?: any): Promise<import("node-fetch", { with: { "resolution-mode": "import" } }).Response>;
31
- export declare function postResource(options: IOptions, path: string, query?: any, data?: any): Promise<import("node-fetch", { with: { "resolution-mode": "import" } }).Response>;
32
- export declare function putResource(options: IOptions, path: string, query?: any, data?: any): Promise<import("node-fetch", { with: { "resolution-mode": "import" } }).Response>;
33
- export declare function deleteResource(options: IOptions, path: string): Promise<import("node-fetch", { with: { "resolution-mode": "import" } }).Response>;
30
+ export declare function getResource(options: IOptions, path: string, query?: any): Promise<fetch.Response>;
31
+ export declare function postResource(options: IOptions, path: string, query?: any, data?: any): Promise<fetch.Response>;
32
+ export declare function putResource(options: IOptions, path: string, query?: any, data?: any): Promise<fetch.Response>;
33
+ export declare function deleteResource(options: IOptions, path: string): Promise<fetch.Response>;
34
34
  export declare function deserializeJSON(_key: string, value: any): any;
35
35
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signageos/cli",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  ".env",
@@ -88,7 +88,7 @@
88
88
  "fs-extra": "11.3.0",
89
89
  "internal-ip": "8.0.0",
90
90
  "mime": "2.4.4",
91
- "node-fetch": "3.3.2",
91
+ "node-fetch": "2.7.0",
92
92
  "prompts": "2.4.2",
93
93
  "semver": "7.7.1",
94
94
  "serve-static": "2.2.0",