@actions/artifact 0.5.0 → 0.6.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 (47) hide show
  1. package/LICENSE.md +8 -8
  2. package/README.md +213 -213
  3. package/lib/artifact-client.d.ts +10 -10
  4. package/lib/artifact-client.js +10 -10
  5. package/lib/internal/artifact-client.d.ts +41 -41
  6. package/lib/internal/artifact-client.js +164 -148
  7. package/lib/internal/artifact-client.js.map +1 -1
  8. package/lib/internal/config-variables.d.ts +11 -11
  9. package/lib/internal/config-variables.js +70 -70
  10. package/lib/internal/contracts.d.ts +67 -57
  11. package/lib/internal/contracts.js +2 -2
  12. package/lib/internal/download-http-client.d.ts +39 -39
  13. package/lib/internal/download-http-client.js +271 -274
  14. package/lib/internal/download-http-client.js.map +1 -1
  15. package/lib/internal/download-options.d.ts +7 -7
  16. package/lib/internal/download-options.js +2 -2
  17. package/lib/internal/download-response.d.ts +10 -10
  18. package/lib/internal/download-response.js +2 -2
  19. package/lib/internal/download-specification.d.ts +19 -19
  20. package/lib/internal/download-specification.js +60 -60
  21. package/lib/internal/http-manager.d.ts +12 -12
  22. package/lib/internal/http-manager.js +30 -30
  23. package/lib/internal/path-and-artifact-name-validation.d.ts +8 -0
  24. package/lib/internal/path-and-artifact-name-validation.js +66 -0
  25. package/lib/internal/path-and-artifact-name-validation.js.map +1 -0
  26. package/lib/internal/requestUtils.d.ts +3 -3
  27. package/lib/internal/requestUtils.js +74 -74
  28. package/lib/internal/status-reporter.d.ts +21 -22
  29. package/lib/internal/status-reporter.js +50 -63
  30. package/lib/internal/status-reporter.js.map +1 -1
  31. package/lib/internal/upload-gzip.d.ts +14 -14
  32. package/lib/internal/upload-gzip.js +107 -88
  33. package/lib/internal/upload-gzip.js.map +1 -1
  34. package/lib/internal/upload-http-client.d.ts +48 -48
  35. package/lib/internal/upload-http-client.js +393 -378
  36. package/lib/internal/upload-http-client.js.map +1 -1
  37. package/lib/internal/upload-options.d.ts +34 -34
  38. package/lib/internal/upload-options.js +2 -2
  39. package/lib/internal/upload-response.d.ts +19 -19
  40. package/lib/internal/upload-response.js +2 -2
  41. package/lib/internal/upload-specification.d.ts +11 -11
  42. package/lib/internal/upload-specification.js +87 -87
  43. package/lib/internal/upload-specification.js.map +1 -1
  44. package/lib/internal/utils.d.ts +66 -74
  45. package/lib/internal/utils.js +262 -303
  46. package/lib/internal/utils.js.map +1 -1
  47. package/package.json +49 -49
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=contracts.js.map
@@ -1,39 +1,39 @@
1
- /// <reference types="node" />
2
- import * as fs from 'fs';
3
- import { ListArtifactsResponse, QueryArtifactResponse } from './contracts';
4
- import { IHttpClientResponse } from '@actions/http-client/interfaces';
5
- import { DownloadItem } from './download-specification';
6
- export declare class DownloadHttpClient {
7
- private downloadHttpManager;
8
- private statusReporter;
9
- constructor();
10
- /**
11
- * Gets a list of all artifacts that are in a specific container
12
- */
13
- listArtifacts(): Promise<ListArtifactsResponse>;
14
- /**
15
- * Fetches a set of container items that describe the contents of an artifact
16
- * @param artifactName the name of the artifact
17
- * @param containerUrl the artifact container URL for the run
18
- */
19
- getContainerItems(artifactName: string, containerUrl: string): Promise<QueryArtifactResponse>;
20
- /**
21
- * Concurrently downloads all the files that are part of an artifact
22
- * @param downloadItems information about what items to download and where to save them
23
- */
24
- downloadSingleArtifact(downloadItems: DownloadItem[]): Promise<void>;
25
- /**
26
- * Downloads an individual file
27
- * @param httpClientIndex the index of the http client that is used to make all of the calls
28
- * @param artifactLocation origin location where a file will be downloaded from
29
- * @param downloadPath destination location for the file being downloaded
30
- */
31
- private downloadIndividualFile;
32
- /**
33
- * Pipes the response from downloading an individual file to the appropriate destination stream while decoding gzip content if necessary
34
- * @param response the http response received when downloading a file
35
- * @param destinationStream the stream where the file should be written to
36
- * @param isGzip a boolean denoting if the content is compressed using gzip and if we need to decode it
37
- */
38
- pipeResponseToFile(response: IHttpClientResponse, destinationStream: fs.WriteStream, isGzip: boolean): Promise<void>;
39
- }
1
+ /// <reference types="node" />
2
+ import * as fs from 'fs';
3
+ import { ListArtifactsResponse, QueryArtifactResponse } from './contracts';
4
+ import { IHttpClientResponse } from '@actions/http-client/interfaces';
5
+ import { DownloadItem } from './download-specification';
6
+ export declare class DownloadHttpClient {
7
+ private downloadHttpManager;
8
+ private statusReporter;
9
+ constructor();
10
+ /**
11
+ * Gets a list of all artifacts that are in a specific container
12
+ */
13
+ listArtifacts(): Promise<ListArtifactsResponse>;
14
+ /**
15
+ * Fetches a set of container items that describe the contents of an artifact
16
+ * @param artifactName the name of the artifact
17
+ * @param containerUrl the artifact container URL for the run
18
+ */
19
+ getContainerItems(artifactName: string, containerUrl: string): Promise<QueryArtifactResponse>;
20
+ /**
21
+ * Concurrently downloads all the files that are part of an artifact
22
+ * @param downloadItems information about what items to download and where to save them
23
+ */
24
+ downloadSingleArtifact(downloadItems: DownloadItem[]): Promise<void>;
25
+ /**
26
+ * Downloads an individual file
27
+ * @param httpClientIndex the index of the http client that is used to make all of the calls
28
+ * @param artifactLocation origin location where a file will be downloaded from
29
+ * @param downloadPath destination location for the file being downloaded
30
+ */
31
+ private downloadIndividualFile;
32
+ /**
33
+ * Pipes the response from downloading an individual file to the appropriate destination stream while decoding gzip content if necessary
34
+ * @param response the http response received when downloading a file
35
+ * @param destinationStream the stream where the file should be written to
36
+ * @param isGzip a boolean denoting if the content is compressed using gzip and if we need to decode it
37
+ */
38
+ pipeResponseToFile(response: IHttpClientResponse, destinationStream: fs.WriteStream, isGzip: boolean): Promise<void>;
39
+ }