@hubspot/local-dev-lib 3.0.0-beta.1 → 3.0.1-beta.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/api/github.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ declare global {
|
|
|
6
6
|
}
|
|
7
7
|
export declare function fetchRepoReleaseData(repoPath: RepoPath, tag?: string): HubSpotPromise<GithubReleaseData>;
|
|
8
8
|
export declare function fetchRepoAsZip(zipUrl: string): HubSpotPromise<Buffer>;
|
|
9
|
-
export declare function fetchRepoFile(repoPath: RepoPath, filePath: string, ref: string): HubSpotPromise<
|
|
9
|
+
export declare function fetchRepoFile<T = Buffer>(repoPath: RepoPath, filePath: string, ref: string): HubSpotPromise<T>;
|
|
10
10
|
export declare function fetchRepoFileByDownloadUrl(downloadUrl: string): HubSpotPromise<Buffer>;
|
|
11
11
|
export declare function fetchRepoContents(repoPath: RepoPath, path: string, ref?: string): HubSpotPromise<Array<GithubRepoFile>>;
|
package/lib/github.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { GithubReleaseData, GithubRepoFile, RepoPath, CloneGithubRepoOptions } from '../types/Github';
|
|
3
|
-
export declare function fetchFileFromRepository(repoPath: RepoPath, filePath: string, ref: string): Promise<
|
|
3
|
+
export declare function fetchFileFromRepository<T = Buffer>(repoPath: RepoPath, filePath: string, ref: string): Promise<T>;
|
|
4
4
|
export declare function fetchReleaseData(repoPath: RepoPath, tag?: string): Promise<GithubReleaseData>;
|
|
5
5
|
export declare function cloneGithubRepo(repoPath: RepoPath, dest: string, options?: CloneGithubRepoOptions): Promise<boolean>;
|
|
6
6
|
export declare function fetchGitHubRepoContentFromDownloadUrl(dest: string, downloadUrl: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Check = {
|
|
1
|
+
export type Check = {
|
|
2
2
|
check: string;
|
|
3
3
|
status: string;
|
|
4
4
|
title: string;
|
|
@@ -8,6 +8,11 @@ type Check = {
|
|
|
8
8
|
line: number | null;
|
|
9
9
|
file: string;
|
|
10
10
|
};
|
|
11
|
+
export interface ValidationError {
|
|
12
|
+
validationRequestId: number;
|
|
13
|
+
failureReasonType: string;
|
|
14
|
+
context: string;
|
|
15
|
+
}
|
|
11
16
|
export type GetValidationResultsResponse = {
|
|
12
17
|
validationRequestId: number;
|
|
13
18
|
assetPath: string;
|
|
@@ -22,7 +27,6 @@ export type GetValidationResultsResponse = {
|
|
|
22
27
|
results: Array<Check>;
|
|
23
28
|
};
|
|
24
29
|
};
|
|
25
|
-
errors: Array<
|
|
30
|
+
errors: Array<ValidationError>;
|
|
26
31
|
requestedAt: string;
|
|
27
32
|
};
|
|
28
|
-
export {};
|