@neopress/cli 3.2.0 → 4.0.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/dist/bin.cjs +36845 -344
- package/dist/index.d.ts +2 -2
- package/dist/index.js +36619 -165
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -8,12 +8,12 @@ import { NeopressClient } from './client.js';
|
|
|
8
8
|
* 2. Stored OAuth access token (with auto-refresh in getClientAsync)
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
declare function getClient(siteIdOverride?: number): NeopressClient;
|
|
11
|
+
declare function getClient(siteIdOverride?: number | string): NeopressClient;
|
|
12
12
|
/**
|
|
13
13
|
* Get client with guaranteed fresh OAuth token.
|
|
14
14
|
* Use this for commands that might run after the token expired.
|
|
15
15
|
*/
|
|
16
|
-
declare function getClientAsync(siteIdOverride?: number): Promise<NeopressClient>;
|
|
16
|
+
declare function getClientAsync(siteIdOverride?: number | string): Promise<NeopressClient>;
|
|
17
17
|
|
|
18
18
|
declare function getAccessToken(): string | undefined;
|
|
19
19
|
declare function getSiteId(): number | undefined;
|