@actions/artifact 1.1.2 → 2.0.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 (125) hide show
  1. package/README.md +116 -173
  2. package/lib/artifact.d.ts +6 -0
  3. package/lib/artifact.js +23 -0
  4. package/lib/artifact.js.map +1 -0
  5. package/lib/generated/google/protobuf/timestamp.d.ts +145 -0
  6. package/lib/generated/google/protobuf/timestamp.js +136 -0
  7. package/lib/generated/google/protobuf/timestamp.js.map +1 -0
  8. package/lib/generated/google/protobuf/wrappers.d.ts +307 -0
  9. package/lib/generated/google/protobuf/wrappers.js +609 -0
  10. package/lib/generated/google/protobuf/wrappers.js.map +1 -0
  11. package/lib/generated/index.d.ts +4 -0
  12. package/lib/generated/index.js +21 -0
  13. package/lib/generated/index.js.map +1 -0
  14. package/lib/generated/results/api/v1/artifact.d.ts +286 -0
  15. package/lib/generated/results/api/v1/artifact.js +588 -0
  16. package/lib/generated/results/api/v1/artifact.js.map +1 -0
  17. package/lib/generated/results/api/v1/artifact.twirp.d.ts +43 -0
  18. package/lib/generated/results/api/v1/artifact.twirp.js +416 -0
  19. package/lib/generated/results/api/v1/artifact.twirp.js.map +1 -0
  20. package/lib/internal/client.d.ts +61 -0
  21. package/lib/internal/client.js +121 -0
  22. package/lib/internal/client.js.map +1 -0
  23. package/lib/internal/download/download-artifact.d.ts +4 -0
  24. package/lib/internal/download/download-artifact.js +205 -0
  25. package/lib/internal/download/download-artifact.js.map +1 -0
  26. package/lib/internal/find/get-artifact.d.ts +3 -0
  27. package/lib/internal/find/get-artifact.js +118 -0
  28. package/lib/internal/find/get-artifact.js.map +1 -0
  29. package/lib/internal/find/list-artifacts.d.ts +3 -0
  30. package/lib/internal/find/list-artifacts.js +139 -0
  31. package/lib/internal/find/list-artifacts.js.map +1 -0
  32. package/lib/internal/find/retry-options.d.ts +7 -0
  33. package/lib/internal/find/retry-options.js +50 -0
  34. package/lib/internal/find/retry-options.js.map +1 -0
  35. package/lib/internal/shared/artifact-twirp-client.d.ts +6 -0
  36. package/lib/internal/shared/artifact-twirp-client.js +153 -0
  37. package/lib/internal/shared/artifact-twirp-client.js.map +1 -0
  38. package/lib/internal/shared/config.d.ts +6 -0
  39. package/lib/internal/shared/config.js +55 -0
  40. package/lib/internal/shared/config.js.map +1 -0
  41. package/lib/internal/shared/errors.d.ts +22 -0
  42. package/lib/internal/shared/errors.js +70 -0
  43. package/lib/internal/shared/errors.js.map +1 -0
  44. package/lib/internal/shared/interfaces.d.ts +136 -0
  45. package/lib/internal/{contracts.js → shared/interfaces.js} +1 -1
  46. package/lib/internal/shared/interfaces.js.map +1 -0
  47. package/lib/internal/shared/user-agent.d.ts +4 -0
  48. package/lib/internal/shared/user-agent.js +13 -0
  49. package/lib/internal/shared/user-agent.js.map +1 -0
  50. package/lib/internal/shared/util.d.ts +5 -0
  51. package/lib/internal/shared/util.js +81 -0
  52. package/lib/internal/shared/util.js.map +1 -0
  53. package/lib/internal/upload/blob-upload.d.ts +12 -0
  54. package/lib/internal/upload/blob-upload.js +87 -0
  55. package/lib/internal/upload/blob-upload.js.map +1 -0
  56. package/lib/internal/upload/path-and-artifact-name-validation.d.ts +8 -0
  57. package/lib/internal/{path-and-artifact-name-validation.js → upload/path-and-artifact-name-validation.js} +11 -11
  58. package/lib/internal/upload/path-and-artifact-name-validation.js.map +1 -0
  59. package/lib/internal/upload/retention.d.ts +2 -0
  60. package/lib/internal/upload/retention.js +54 -0
  61. package/lib/internal/upload/retention.js.map +1 -0
  62. package/lib/internal/upload/upload-artifact.d.ts +2 -0
  63. package/lib/internal/upload/upload-artifact.js +103 -0
  64. package/lib/internal/upload/upload-artifact.js.map +1 -0
  65. package/lib/internal/upload/upload-zip-specification.d.ts +21 -0
  66. package/lib/internal/{upload-specification.js → upload/upload-zip-specification.js} +44 -36
  67. package/lib/internal/upload/upload-zip-specification.js.map +1 -0
  68. package/lib/internal/upload/zip.d.ts +9 -0
  69. package/lib/internal/upload/zip.js +113 -0
  70. package/lib/internal/upload/zip.js.map +1 -0
  71. package/package.json +26 -12
  72. package/lib/artifact-client.d.ts +0 -10
  73. package/lib/artifact-client.js +0 -12
  74. package/lib/artifact-client.js.map +0 -1
  75. package/lib/internal/artifact-client.d.ts +0 -41
  76. package/lib/internal/artifact-client.js +0 -182
  77. package/lib/internal/artifact-client.js.map +0 -1
  78. package/lib/internal/config-variables.d.ts +0 -12
  79. package/lib/internal/config-variables.js +0 -77
  80. package/lib/internal/config-variables.js.map +0 -1
  81. package/lib/internal/contracts.d.ts +0 -67
  82. package/lib/internal/contracts.js.map +0 -1
  83. package/lib/internal/crc64.d.ts +0 -21
  84. package/lib/internal/crc64.js +0 -303
  85. package/lib/internal/crc64.js.map +0 -1
  86. package/lib/internal/download-http-client.d.ts +0 -39
  87. package/lib/internal/download-http-client.js +0 -296
  88. package/lib/internal/download-http-client.js.map +0 -1
  89. package/lib/internal/download-options.d.ts +0 -7
  90. package/lib/internal/download-options.js +0 -3
  91. package/lib/internal/download-options.js.map +0 -1
  92. package/lib/internal/download-response.d.ts +0 -10
  93. package/lib/internal/download-response.js +0 -3
  94. package/lib/internal/download-response.js.map +0 -1
  95. package/lib/internal/download-specification.d.ts +0 -19
  96. package/lib/internal/download-specification.js +0 -78
  97. package/lib/internal/download-specification.js.map +0 -1
  98. package/lib/internal/http-manager.d.ts +0 -12
  99. package/lib/internal/http-manager.js +0 -32
  100. package/lib/internal/http-manager.js.map +0 -1
  101. package/lib/internal/path-and-artifact-name-validation.d.ts +0 -8
  102. package/lib/internal/path-and-artifact-name-validation.js.map +0 -1
  103. package/lib/internal/requestUtils.d.ts +0 -3
  104. package/lib/internal/requestUtils.js +0 -92
  105. package/lib/internal/requestUtils.js.map +0 -1
  106. package/lib/internal/status-reporter.d.ts +0 -21
  107. package/lib/internal/status-reporter.js +0 -52
  108. package/lib/internal/status-reporter.js.map +0 -1
  109. package/lib/internal/upload-gzip.d.ts +0 -14
  110. package/lib/internal/upload-gzip.js +0 -147
  111. package/lib/internal/upload-gzip.js.map +0 -1
  112. package/lib/internal/upload-http-client.d.ts +0 -48
  113. package/lib/internal/upload-http-client.js +0 -415
  114. package/lib/internal/upload-http-client.js.map +0 -1
  115. package/lib/internal/upload-options.d.ts +0 -34
  116. package/lib/internal/upload-options.js +0 -3
  117. package/lib/internal/upload-options.js.map +0 -1
  118. package/lib/internal/upload-response.d.ts +0 -19
  119. package/lib/internal/upload-response.js +0 -3
  120. package/lib/internal/upload-response.js.map +0 -1
  121. package/lib/internal/upload-specification.d.ts +0 -11
  122. package/lib/internal/upload-specification.js.map +0 -1
  123. package/lib/internal/utils.d.ts +0 -71
  124. package/lib/internal/utils.js +0 -292
  125. package/lib/internal/utils.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"download-http-client.js","sourceRoot":"","sources":["../../src/internal/download-http-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,oDAAqC;AACrC,2CAA4B;AAC5B,mCAYgB;AAChB,6BAAuB;AACvB,uDAAgD;AAChD,2CAAsC;AAGtC,iDAA0C;AAE1C,yDAA4E;AAE5E,iDAAqD;AAErD,MAAa,kBAAkB;IAK7B;QACE,IAAI,CAAC,mBAAmB,GAAG,IAAI,0BAAW,CACxC,IAAA,6CAA0B,GAAE,EAC5B,4BAA4B,CAC7B,CAAA;QACD,qGAAqG;QACrG,IAAI,CAAC,cAAc,GAAG,IAAI,gCAAc,CAAC,IAAI,CAAC,CAAA;IAChD,CAAC;IAED;;OAEG;IACG,aAAa;;YACjB,MAAM,WAAW,GAAG,IAAA,sBAAc,GAAE,CAAA;YAEpC,+GAA+G;YAC/G,MAAM,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;YACpD,MAAM,OAAO,GAAG,IAAA,0BAAkB,EAAC,kBAAkB,CAAC,CAAA;YACtD,MAAM,QAAQ,GAAG,MAAM,IAAA,q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,OAAO,EAAE,KAAK,CAAC,EAAE;wBACnB,IAAI,CAAC,IAAI,CACP,wDAAwD,iBAAiB,CAAC,IAAI,EAAE,CACjF,CAAA;wBACD,MAAM,CAAC,KAAK,CAAC,CAAA;oBACf,CAAC,CAAC,CAAA;iBACL;qBAAM;oBACL,QAAQ,CAAC,OAAO;yBACb,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;wBACnB,IAAI,CAAC,IAAI,CACP,gEAAgE,CACjE,CAAA;wBACD,iBAAiB,CAAC,KAAK,EAAE,CAAA;wBACzB,MAAM,CAAC,KAAK,CAAC,CAAA;oBACf,CAAC,CAAC;yBACD,IAAI,CAAC,iBAAiB,CAAC;yBACvB,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;wBAChB,OAAO,EAAE,CAAA;oBACX,CAAC,CAAC;yBACD,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;wBACnB,IAAI,CAAC,IAAI,CACP,wDAAwD,iBAAiB,CAAC,IAAI,EAAE,CACjF,CAAA;wBACD,MAAM,CAAC,KAAK,CAAC,CAAA;oBACf,CAAC,CAAC,CAAA;iBACL;YACH,CAAC,CAAC,CAAA;YACF,OAAM;QACR,CAAC;KAAA;CACF;AA9UD,gDA8UC"}
@@ -1,7 +0,0 @@
1
- export interface DownloadOptions {
2
- /**
3
- * Specifies if a folder is created for the artifact that is downloaded (contents downloaded into this folder),
4
- * defaults to false if not specified
5
- * */
6
- createArtifactFolder?: boolean;
7
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=download-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"download-options.js","sourceRoot":"","sources":["../../src/internal/download-options.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- export interface DownloadResponse {
2
- /**
3
- * The name of the artifact that was downloaded
4
- */
5
- artifactName: string;
6
- /**
7
- * The full Path to where the artifact was downloaded
8
- */
9
- downloadPath: string;
10
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=download-response.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"download-response.js","sourceRoot":"","sources":["../../src/internal/download-response.ts"],"names":[],"mappings":""}
@@ -1,19 +0,0 @@
1
- import { ContainerEntry } from './contracts';
2
- export interface DownloadSpecification {
3
- rootDownloadLocation: string;
4
- directoryStructure: string[];
5
- emptyFilesToCreate: string[];
6
- filesToDownload: DownloadItem[];
7
- }
8
- export interface DownloadItem {
9
- sourceLocation: string;
10
- targetPath: string;
11
- }
12
- /**
13
- * Creates a specification for a set of files that will be downloaded
14
- * @param artifactName the name of the artifact
15
- * @param artifactEntries a set of container entries that describe that files that make up an artifact
16
- * @param downloadPath the path where the artifact will be downloaded to
17
- * @param includeRootDirectory specifies if there should be an extra directory (denoted by the artifact name) where the artifact files should be downloaded to
18
- */
19
- export declare function getDownloadSpecification(artifactName: string, artifactEntries: ContainerEntry[], downloadPath: string, includeRootDirectory: boolean): DownloadSpecification;
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.getDownloadSpecification = void 0;
27
- const path = __importStar(require("path"));
28
- /**
29
- * Creates a specification for a set of files that will be downloaded
30
- * @param artifactName the name of the artifact
31
- * @param artifactEntries a set of container entries that describe that files that make up an artifact
32
- * @param downloadPath the path where the artifact will be downloaded to
33
- * @param includeRootDirectory specifies if there should be an extra directory (denoted by the artifact name) where the artifact files should be downloaded to
34
- */
35
- function getDownloadSpecification(artifactName, artifactEntries, downloadPath, includeRootDirectory) {
36
- // use a set for the directory paths so that there are no duplicates
37
- const directories = new Set();
38
- const specifications = {
39
- rootDownloadLocation: includeRootDirectory
40
- ? path.join(downloadPath, artifactName)
41
- : downloadPath,
42
- directoryStructure: [],
43
- emptyFilesToCreate: [],
44
- filesToDownload: []
45
- };
46
- for (const entry of artifactEntries) {
47
- // Ignore artifacts in the container that don't begin with the same name
48
- if (entry.path.startsWith(`${artifactName}/`) ||
49
- entry.path.startsWith(`${artifactName}\\`)) {
50
- // normalize all separators to the local OS
51
- const normalizedPathEntry = path.normalize(entry.path);
52
- // entry.path always starts with the artifact name, if includeRootDirectory is false, remove the name from the beginning of the path
53
- const filePath = path.join(downloadPath, includeRootDirectory
54
- ? normalizedPathEntry
55
- : normalizedPathEntry.replace(artifactName, ''));
56
- // Case insensitive folder structure maintained in the backend, not every folder is created so the 'folder'
57
- // itemType cannot be relied upon. The file must be used to determine the directory structure
58
- if (entry.itemType === 'file') {
59
- // Get the directories that we need to create from the filePath for each individual file
60
- directories.add(path.dirname(filePath));
61
- if (entry.fileLength === 0) {
62
- // An empty file was uploaded, create the empty files locally so that no extra http calls are made
63
- specifications.emptyFilesToCreate.push(filePath);
64
- }
65
- else {
66
- specifications.filesToDownload.push({
67
- sourceLocation: entry.contentLocation,
68
- targetPath: filePath
69
- });
70
- }
71
- }
72
- }
73
- }
74
- specifications.directoryStructure = Array.from(directories);
75
- return specifications;
76
- }
77
- exports.getDownloadSpecification = getDownloadSpecification;
78
- //# sourceMappingURL=download-specification.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"download-specification.js","sourceRoot":"","sources":["../../src/internal/download-specification.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAyB5B;;;;;;GAMG;AACH,SAAgB,wBAAwB,CACtC,YAAoB,EACpB,eAAiC,EACjC,YAAoB,EACpB,oBAA6B;IAE7B,oEAAoE;IACpE,MAAM,WAAW,GAAG,IAAI,GAAG,EAAU,CAAA;IAErC,MAAM,cAAc,GAA0B;QAC5C,oBAAoB,EAAE,oBAAoB;YACxC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC;YACvC,CAAC,CAAC,YAAY;QAChB,kBAAkB,EAAE,EAAE;QACtB,kBAAkB,EAAE,EAAE;QACtB,eAAe,EAAE,EAAE;KACpB,CAAA;IAED,KAAK,MAAM,KAAK,IAAI,eAAe,EAAE;QACnC,wEAAwE;QACxE,IACE,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,YAAY,GAAG,CAAC;YACzC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,YAAY,IAAI,CAAC,EAC1C;YACA,2CAA2C;YAC3C,MAAM,mBAAmB,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YACtD,oIAAoI;YACpI,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CACxB,YAAY,EACZ,oBAAoB;gBAClB,CAAC,CAAC,mBAAmB;gBACrB,CAAC,CAAC,mBAAmB,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAClD,CAAA;YAED,2GAA2G;YAC3G,6FAA6F;YAC7F,IAAI,KAAK,CAAC,QAAQ,KAAK,MAAM,EAAE;gBAC7B,wFAAwF;gBACxF,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAA;gBACvC,IAAI,KAAK,CAAC,UAAU,KAAK,CAAC,EAAE;oBAC1B,kGAAkG;oBAClG,cAAc,CAAC,kBAAkB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;iBACjD;qBAAM;oBACL,cAAc,CAAC,eAAe,CAAC,IAAI,CAAC;wBAClC,cAAc,EAAE,KAAK,CAAC,eAAe;wBACrC,UAAU,EAAE,QAAQ;qBACrB,CAAC,CAAA;iBACH;aACF;SACF;KACF;IAED,cAAc,CAAC,kBAAkB,GAAG,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IAC3D,OAAO,cAAc,CAAA;AACvB,CAAC;AAtDD,4DAsDC"}
@@ -1,12 +0,0 @@
1
- import { HttpClient } from '@actions/http-client';
2
- /**
3
- * Used for managing http clients during either upload or download
4
- */
5
- export declare class HttpManager {
6
- private clients;
7
- private userAgent;
8
- constructor(clientCount: number, userAgent: string);
9
- getClient(index: number): HttpClient;
10
- disposeAndReplaceClient(index: number): void;
11
- disposeAndReplaceAllClients(): void;
12
- }
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HttpManager = void 0;
4
- const utils_1 = require("./utils");
5
- /**
6
- * Used for managing http clients during either upload or download
7
- */
8
- class HttpManager {
9
- constructor(clientCount, userAgent) {
10
- if (clientCount < 1) {
11
- throw new Error('There must be at least one client');
12
- }
13
- this.userAgent = userAgent;
14
- this.clients = new Array(clientCount).fill((0, utils_1.createHttpClient)(userAgent));
15
- }
16
- getClient(index) {
17
- return this.clients[index];
18
- }
19
- // client disposal is necessary if a keep-alive connection is used to properly close the connection
20
- // for more information see: https://github.com/actions/http-client/blob/04e5ad73cd3fd1f5610a32116b0759eddf6570d2/index.ts#L292
21
- disposeAndReplaceClient(index) {
22
- this.clients[index].dispose();
23
- this.clients[index] = (0, utils_1.createHttpClient)(this.userAgent);
24
- }
25
- disposeAndReplaceAllClients() {
26
- for (const [index] of this.clients.entries()) {
27
- this.disposeAndReplaceClient(index);
28
- }
29
- }
30
- }
31
- exports.HttpManager = HttpManager;
32
- //# sourceMappingURL=http-manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http-manager.js","sourceRoot":"","sources":["../../src/internal/http-manager.ts"],"names":[],"mappings":";;;AACA,mCAAwC;AAExC;;GAEG;AACH,MAAa,WAAW;IAItB,YAAY,WAAmB,EAAE,SAAiB;QAChD,IAAI,WAAW,GAAG,CAAC,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAA;SACrD;QACD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,IAAA,wBAAgB,EAAC,SAAS,CAAC,CAAC,CAAA;IACzE,CAAC;IAED,SAAS,CAAC,KAAa;QACrB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC5B,CAAC;IAED,mGAAmG;IACnG,+HAA+H;IAC/H,uBAAuB,CAAC,KAAa;QACnC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAA;QAC7B,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACxD,CAAC;IAED,2BAA2B;QACzB,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE;YAC5C,IAAI,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAA;SACpC;IACH,CAAC;CACF;AA5BD,kCA4BC"}
@@ -1,8 +0,0 @@
1
- /**
2
- * Scans the name of the artifact to make sure there are no illegal characters
3
- */
4
- export declare function checkArtifactName(name: string): void;
5
- /**
6
- * Scans the name of the filePath used to make sure there are no illegal characters
7
- */
8
- export declare function checkArtifactFilePath(path: string): void;
@@ -1 +0,0 @@
1
- {"version":3,"file":"path-and-artifact-name-validation.js","sourceRoot":"","sources":["../../src/internal/path-and-artifact-name-validation.ts"],"names":[],"mappings":";;;AAAA,wCAAkC;AAElC;;;;;;;GAOG;AACH,MAAM,iCAAiC,GAAG,IAAI,GAAG,CAAiB;IAChE,CAAC,GAAG,EAAE,iBAAiB,CAAC;IACxB,CAAC,GAAG,EAAE,UAAU,CAAC;IACjB,CAAC,GAAG,EAAE,cAAc,CAAC;IACrB,CAAC,GAAG,EAAE,iBAAiB,CAAC;IACxB,CAAC,GAAG,EAAE,iBAAiB,CAAC;IACxB,CAAC,GAAG,EAAE,aAAa,CAAC;IACpB,CAAC,GAAG,EAAE,kBAAkB,CAAC;IACzB,CAAC,IAAI,EAAE,sBAAsB,CAAC;IAC9B,CAAC,IAAI,EAAE,gBAAgB,CAAC;CACzB,CAAC,CAAA;AAEF,MAAM,6BAA6B,GAAG,IAAI,GAAG,CAAiB;IAC5D,GAAG,iCAAiC;IACpC,CAAC,IAAI,EAAE,eAAe,CAAC;IACvB,CAAC,GAAG,EAAE,kBAAkB,CAAC;CAC1B,CAAC,CAAA;AAEF;;GAEG;AACH,SAAgB,iBAAiB,CAAC,IAAY;IAC5C,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,2BAA2B,CAAC,CAAA;KACnE;IAED,KAAK,MAAM,CACT,mBAAmB,EACnB,wBAAwB,CACzB,IAAI,6BAA6B,EAAE;QAClC,IAAI,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE;YACtC,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,uCAAuC,wBAAwB;;8BAE5E,KAAK,CAAC,IAAI,CAC9B,6BAA6B,CAAC,MAAM,EAAE,CACvC,CAAC,QAAQ,EAAE;;mRAE+P,CAC5Q,CAAA;SACF;KACF;IAED,IAAA,WAAI,EAAC,yBAAyB,CAAC,CAAA;AACjC,CAAC;AAvBD,8CAuBC;AAED;;GAEG;AACH,SAAgB,qBAAqB,CAAC,IAAY;IAChD,IAAI,CAAC,IAAI,EAAE;QACT,MAAM,IAAI,KAAK,CAAC,kBAAkB,IAAI,2BAA2B,CAAC,CAAA;KACnE;IAED,KAAK,MAAM,CACT,mBAAmB,EACnB,wBAAwB,CACzB,IAAI,iCAAiC,EAAE;QACtC,IAAI,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE;YACtC,MAAM,IAAI,KAAK,CACb,+BAA+B,IAAI,uCAAuC,wBAAwB;;8BAE5E,KAAK,CAAC,IAAI,CAC9B,iCAAiC,CAAC,MAAM,EAAE,CAC3C,CAAC,QAAQ,EAAE;;;WAGT,CACJ,CAAA;SACF;KACF;AACH,CAAC;AAtBD,sDAsBC"}
@@ -1,3 +0,0 @@
1
- import { HttpClientResponse } from '@actions/http-client';
2
- export declare function retry(name: string, operation: () => Promise<HttpClientResponse>, customErrorMessages: Map<number, string>, maxAttempts: number): Promise<HttpClientResponse>;
3
- export declare function retryHttpClientRequest(name: string, method: () => Promise<HttpClientResponse>, customErrorMessages?: Map<number, string>, maxAttempts?: number): Promise<HttpClientResponse>;
@@ -1,92 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.retryHttpClientRequest = exports.retry = void 0;
36
- const utils_1 = require("./utils");
37
- const core = __importStar(require("@actions/core"));
38
- const config_variables_1 = require("./config-variables");
39
- function retry(name, operation, customErrorMessages, maxAttempts) {
40
- return __awaiter(this, void 0, void 0, function* () {
41
- let response = undefined;
42
- let statusCode = undefined;
43
- let isRetryable = false;
44
- let errorMessage = '';
45
- let customErrorInformation = undefined;
46
- let attempt = 1;
47
- while (attempt <= maxAttempts) {
48
- try {
49
- response = yield operation();
50
- statusCode = response.message.statusCode;
51
- if ((0, utils_1.isSuccessStatusCode)(statusCode)) {
52
- return response;
53
- }
54
- // Extra error information that we want to display if a particular response code is hit
55
- if (statusCode) {
56
- customErrorInformation = customErrorMessages.get(statusCode);
57
- }
58
- isRetryable = (0, utils_1.isRetryableStatusCode)(statusCode);
59
- errorMessage = `Artifact service responded with ${statusCode}`;
60
- }
61
- catch (error) {
62
- isRetryable = true;
63
- errorMessage = error.message;
64
- }
65
- if (!isRetryable) {
66
- core.info(`${name} - Error is not retryable`);
67
- if (response) {
68
- (0, utils_1.displayHttpDiagnostics)(response);
69
- }
70
- break;
71
- }
72
- core.info(`${name} - Attempt ${attempt} of ${maxAttempts} failed with error: ${errorMessage}`);
73
- yield (0, utils_1.sleep)((0, utils_1.getExponentialRetryTimeInMilliseconds)(attempt));
74
- attempt++;
75
- }
76
- if (response) {
77
- (0, utils_1.displayHttpDiagnostics)(response);
78
- }
79
- if (customErrorInformation) {
80
- throw Error(`${name} failed: ${customErrorInformation}`);
81
- }
82
- throw Error(`${name} failed: ${errorMessage}`);
83
- });
84
- }
85
- exports.retry = retry;
86
- function retryHttpClientRequest(name, method, customErrorMessages = new Map(), maxAttempts = (0, config_variables_1.getRetryLimit)()) {
87
- return __awaiter(this, void 0, void 0, function* () {
88
- return yield retry(name, method, customErrorMessages, maxAttempts);
89
- });
90
- }
91
- exports.retryHttpClientRequest = retryHttpClientRequest;
92
- //# sourceMappingURL=requestUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"requestUtils.js","sourceRoot":"","sources":["../../src/internal/requestUtils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,mCAMgB;AAChB,oDAAqC;AACrC,yDAAgD;AAEhD,SAAsB,KAAK,CACzB,IAAY,EACZ,SAA4C,EAC5C,mBAAwC,EACxC,WAAmB;;QAEnB,IAAI,QAAQ,GAAmC,SAAS,CAAA;QACxD,IAAI,UAAU,GAAuB,SAAS,CAAA;QAC9C,IAAI,WAAW,GAAG,KAAK,CAAA;QACvB,IAAI,YAAY,GAAG,EAAE,CAAA;QACrB,IAAI,sBAAsB,GAAuB,SAAS,CAAA;QAC1D,IAAI,OAAO,GAAG,CAAC,CAAA;QAEf,OAAO,OAAO,IAAI,WAAW,EAAE;YAC7B,IAAI;gBACF,QAAQ,GAAG,MAAM,SAAS,EAAE,CAAA;gBAC5B,UAAU,GAAG,QAAQ,CAAC,OAAO,CAAC,UAAU,CAAA;gBAExC,IAAI,IAAA,2BAAmB,EAAC,UAAU,CAAC,EAAE;oBACnC,OAAO,QAAQ,CAAA;iBAChB;gBAED,uFAAuF;g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0 @@
1
- /**
2
- * Status Reporter that displays information about the progress/status of an artifact that is being uploaded or downloaded
3
- *
4
- * Variable display time that can be adjusted using the displayFrequencyInMilliseconds variable
5
- * The total status of the upload/download gets displayed according to this value
6
- * If there is a large file that is being uploaded, extra information about the individual status can also be displayed using the updateLargeFileStatus function
7
- */
8
- export declare class StatusReporter {
9
- private totalNumberOfFilesToProcess;
10
- private processedCount;
11
- private displayFrequencyInMilliseconds;
12
- private largeFiles;
13
- private totalFileStatus;
14
- constructor(displayFrequencyInMilliseconds: number);
15
- setTotalNumberOfFilesToProcess(fileTotal: number): void;
16
- start(): void;
17
- updateLargeFileStatus(fileName: string, chunkStartIndex: number, chunkEndIndex: number, totalUploadFileSize: number): void;
18
- stop(): void;
19
- incrementProcessedCount(): void;
20
- private formatPercentage;
21
- }
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StatusReporter = void 0;
4
- const core_1 = require("@actions/core");
5
- /**
6
- * Status Reporter that displays information about the progress/status of an artifact that is being uploaded or downloaded
7
- *
8
- * Variable display time that can be adjusted using the displayFrequencyInMilliseconds variable
9
- * The total status of the upload/download gets displayed according to this value
10
- * If there is a large file that is being uploaded, extra information about the individual status can also be displayed using the updateLargeFileStatus function
11
- */
12
- class StatusReporter {
13
- constructor(displayFrequencyInMilliseconds) {
14
- this.totalNumberOfFilesToProcess = 0;
15
- this.processedCount = 0;
16
- this.largeFiles = new Map();
17
- this.totalFileStatus = undefined;
18
- this.displayFrequencyInMilliseconds = displayFrequencyInMilliseconds;
19
- }
20
- setTotalNumberOfFilesToProcess(fileTotal) {
21
- this.totalNumberOfFilesToProcess = fileTotal;
22
- this.processedCount = 0;
23
- }
24
- start() {
25
- // displays information about the total upload/download status
26
- this.totalFileStatus = setInterval(() => {
27
- // display 1 decimal place without any rounding
28
- const percentage = this.formatPercentage(this.processedCount, this.totalNumberOfFilesToProcess);
29
- (0, core_1.info)(`Total file count: ${this.totalNumberOfFilesToProcess} ---- Processed file #${this.processedCount} (${percentage.slice(0, percentage.indexOf('.') + 2)}%)`);
30
- }, this.displayFrequencyInMilliseconds);
31
- }
32
- // if there is a large file that is being uploaded in chunks, this is used to display extra information about the status of the upload
33
- updateLargeFileStatus(fileName, chunkStartIndex, chunkEndIndex, totalUploadFileSize) {
34
- // display 1 decimal place without any rounding
35
- const percentage = this.formatPercentage(chunkEndIndex, totalUploadFileSize);
36
- (0, core_1.info)(`Uploaded ${fileName} (${percentage.slice(0, percentage.indexOf('.') + 2)}%) bytes ${chunkStartIndex}:${chunkEndIndex}`);
37
- }
38
- stop() {
39
- if (this.totalFileStatus) {
40
- clearInterval(this.totalFileStatus);
41
- }
42
- }
43
- incrementProcessedCount() {
44
- this.processedCount++;
45
- }
46
- formatPercentage(numerator, denominator) {
47
- // toFixed() rounds, so use extra precision to display accurate information even though 4 decimal places are not displayed
48
- return ((numerator / denominator) * 100).toFixed(4).toString();
49
- }
50
- }
51
- exports.StatusReporter = StatusReporter;
52
- //# sourceMappingURL=status-reporter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status-reporter.js","sourceRoot":"","sources":["../../src/internal/status-reporter.ts"],"names":[],"mappings":";;;AAAA,wCAAkC;AAElC;;;;;;GAMG;AAEH,MAAa,cAAc;IAOzB,YAAY,8BAAsC;QAN1C,gCAA2B,GAAG,CAAC,CAAA;QAC/B,mBAAc,GAAG,CAAC,CAAA;QAElB,eAAU,GAAG,IAAI,GAAG,EAAkB,CAAA;QAI5C,IAAI,CAAC,eAAe,GAAG,SAAS,CAAA;QAChC,IAAI,CAAC,8BAA8B,GAAG,8BAA8B,CAAA;IACtE,CAAC;IAED,8BAA8B,CAAC,SAAiB;QAC9C,IAAI,CAAC,2BAA2B,GAAG,SAAS,CAAA;QAC5C,IAAI,CAAC,cAAc,GAAG,CAAC,CAAA;IACzB,CAAC;IAED,KAAK;QACH,8DAA8D;QAC9D,IAAI,CAAC,eAAe,GAAG,WAAW,CAAC,GAAG,EAAE;YACtC,+CAA+C;YAC/C,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CACtC,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,2BAA2B,CACjC,CAAA;YACD,IAAA,WAAI,EACF,qBACE,IAAI,CAAC,2BACP,yBAAyB,IAAI,CAAC,cAAc,KAAK,UAAU,CAAC,KAAK,CAC/D,CAAC,EACD,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAC5B,IAAI,CACN,CAAA;QACH,CAAC,EAAE,IAAI,CAAC,8BAA8B,CAAC,CAAA;IACzC,CAAC;IAED,sIAAsI;IACtI,qBAAqB,CACnB,QAAgB,EAChB,eAAuB,EACvB,aAAqB,EACrB,mBAA2B;QAE3B,+CAA+C;QAC/C,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAA;QAC5E,IAAA,WAAI,EACF,YAAY,QAAQ,KAAK,UAAU,CAAC,KAAK,CACvC,CAAC,EACD,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAC5B,YAAY,eAAe,IAAI,aAAa,EAAE,CAChD,CAAA;IACH,CAAC;IAED,IAAI;QACF,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;SACpC;IACH,CAAC;IAED,uBAAuB;QACrB,IAAI,CAAC,cAAc,EAAE,CAAA;IACvB,CAAC;IAEO,gBAAgB,CAAC,SAAiB,EAAE,WAAmB;QAC7D,0HAA0H;QAC1H,OAAO,CAAC,CAAC,SAAS,GAAG,WAAW,CAAC,GAAG,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAA;IAChE,CAAC;CACF;AAnED,wCAmEC"}
@@ -1,14 +0,0 @@
1
- /// <reference types="node" />
2
- /**
3
- * Creates a Gzip compressed file of an original file at the provided temporary filepath location
4
- * @param {string} originalFilePath filepath of whatever will be compressed. The original file will be unmodified
5
- * @param {string} tempFilePath the location of where the Gzip file will be created
6
- * @returns the size of gzip file that gets created
7
- */
8
- export declare function createGZipFileOnDisk(originalFilePath: string, tempFilePath: string): Promise<number>;
9
- /**
10
- * Creates a GZip file in memory using a buffer. Should be used for smaller files to reduce disk I/O
11
- * @param originalFilePath the path to the original file that is being GZipped
12
- * @returns a buffer with the GZip file
13
- */
14
- export declare function createGZipFileInBuffer(originalFilePath: string): Promise<Buffer>;
@@ -1,147 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __asyncValues = (this && this.__asyncValues) || function (o) {
35
- if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
36
- var m = o[Symbol.asyncIterator], i;
37
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
38
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
39
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.createGZipFileInBuffer = exports.createGZipFileOnDisk = void 0;
43
- const fs = __importStar(require("fs"));
44
- const zlib = __importStar(require("zlib"));
45
- const util_1 = require("util");
46
- const stat = (0, util_1.promisify)(fs.stat);
47
- /**
48
- * GZipping certain files that are already compressed will likely not yield further size reductions. Creating large temporary gzip
49
- * files then will just waste a lot of time before ultimately being discarded (especially for very large files).
50
- * If any of these types of files are encountered then on-disk gzip creation will be skipped and the original file will be uploaded as-is
51
- */
52
- const gzipExemptFileExtensions = [
53
- '.gz',
54
- '.gzip',
55
- '.tgz',
56
- '.taz',
57
- '.Z',
58
- '.taZ',
59
- '.bz2',
60
- '.tbz',
61
- '.tbz2',
62
- '.tz2',
63
- '.lz',
64
- '.lzma',
65
- '.tlz',
66
- '.lzo',
67
- '.xz',
68
- '.txz',
69
- '.zst',
70
- '.zstd',
71
- '.tzst',
72
- '.zip',
73
- '.7z' // 7ZIP
74
- ];
75
- /**
76
- * Creates a Gzip compressed file of an original file at the provided temporary filepath location
77
- * @param {string} originalFilePath filepath of whatever will be compressed. The original file will be unmodified
78
- * @param {string} tempFilePath the location of where the Gzip file will be created
79
- * @returns the size of gzip file that gets created
80
- */
81
- function createGZipFileOnDisk(originalFilePath, tempFilePath) {
82
- return __awaiter(this, void 0, void 0, function* () {
83
- for (const gzipExemptExtension of gzipExemptFileExtensions) {
84
- if (originalFilePath.endsWith(gzipExemptExtension)) {
85
- // return a really large number so that the original file gets uploaded
86
- return Number.MAX_SAFE_INTEGER;
87
- }
88
- }
89
- return new Promise((resolve, reject) => {
90
- const inputStream = fs.createReadStream(originalFilePath);
91
- const gzip = zlib.createGzip();
92
- const outputStream = fs.createWriteStream(tempFilePath);
93
- inputStream.pipe(gzip).pipe(outputStream);
94
- outputStream.on('finish', () => __awaiter(this, void 0, void 0, function* () {
95
- // wait for stream to finish before calculating the size which is needed as part of the Content-Length header when starting an upload
96
- const size = (yield stat(tempFilePath)).size;
97
- resolve(size);
98
- }));
99
- outputStream.on('error', error => {
100
- // eslint-disable-next-line no-console
101
- console.log(error);
102
- reject(error);
103
- });
104
- });
105
- });
106
- }
107
- exports.createGZipFileOnDisk = createGZipFileOnDisk;
108
- /**
109
- * Creates a GZip file in memory using a buffer. Should be used for smaller files to reduce disk I/O
110
- * @param originalFilePath the path to the original file that is being GZipped
111
- * @returns a buffer with the GZip file
112
- */
113
- function createGZipFileInBuffer(originalFilePath) {
114
- return __awaiter(this, void 0, void 0, function* () {
115
- return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
116
- var _a, e_1, _b, _c;
117
- const inputStream = fs.createReadStream(originalFilePath);
118
- const gzip = zlib.createGzip();
119
- inputStream.pipe(gzip);
120
- // read stream into buffer, using experimental async iterators see https://github.com/nodejs/readable-stream/issues/403#issuecomment-479069043
121
- const chunks = [];
122
- try {
123
- for (var _d = true, gzip_1 = __asyncValues(gzip), gzip_1_1; gzip_1_1 = yield gzip_1.next(), _a = gzip_1_1.done, !_a;) {
124
- _c = gzip_1_1.value;
125
- _d = false;
126
- try {
127
- const chunk = _c;
128
- chunks.push(chunk);
129
- }
130
- finally {
131
- _d = true;
132
- }
133
- }
134
- }
135
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
136
- finally {
137
- try {
138
- if (!_d && !_a && (_b = gzip_1.return)) yield _b.call(gzip_1);
139
- }
140
- finally { if (e_1) throw e_1.error; }
141
- }
142
- resolve(Buffer.concat(chunks));
143
- }));
144
- });
145
- }
146
- exports.createGZipFileInBuffer = createGZipFileInBuffer;
147
- //# sourceMappingURL=upload-gzip.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload-gzip.js","sourceRoot":"","sources":["../../src/internal/upload-gzip.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAwB;AACxB,2CAA4B;AAC5B,+BAA8B;AAC9B,MAAM,IAAI,GAAG,IAAA,gBAAS,EAAC,EAAE,CAAC,IAAI,CAAC,CAAA;AAE/B;;;;GAIG;AACH,MAAM,wBAAwB,GAAG;IAC/B,KAAK;IACL,OAAO;IACP,MAAM;IACN,MAAM;IACN,IAAI;IACJ,MAAM;IACN,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,KAAK;IACL,OAAO;IACP,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,KAAK,CAAC,OAAO;CACd,CAAA;AAED;;;;;GAKG;AACH,SAAsB,oBAAoB,CACxC,gBAAwB,EACxB,YAAoB;;QAEpB,KAAK,MAAM,mBAAmB,IAAI,wBAAwB,EAAE;YAC1D,IAAI,gBAAgB,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE;gBAClD,uEAAuE;gBACvE,OAAO,MAAM,CAAC,gBAAgB,CAAA;aAC/B;SACF;QAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,MAAM,WAAW,GAAG,EAAE,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAA;YACzD,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAA;YAC9B,MAAM,YAAY,GAAG,EAAE,CAAC,iBAAiB,C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0 @@
1
- import { ArtifactResponse, UploadResults } from './contracts';
2
- import { UploadSpecification } from './upload-specification';
3
- import { UploadOptions } from './upload-options';
4
- export declare class UploadHttpClient {
5
- private uploadHttpManager;
6
- private statusReporter;
7
- constructor();
8
- /**
9
- * Creates a file container for the new artifact in the remote blob storage/file service
10
- * @param {string} artifactName Name of the artifact being created
11
- * @returns The response from the Artifact Service if the file container was successfully created
12
- */
13
- createArtifactInFileContainer(artifactName: string, options?: UploadOptions | undefined): Promise<ArtifactResponse>;
14
- /**
15
- * Concurrently upload all of the files in chunks
16
- * @param {string} uploadUrl Base Url for the artifact that was created
17
- * @param {SearchResult[]} filesToUpload A list of information about the files being uploaded
18
- * @returns The size of all the files uploaded in bytes
19
- */
20
- uploadArtifactToFileContainer(uploadUrl: string, filesToUpload: UploadSpecification[], options?: UploadOptions): Promise<UploadResults>;
21
- /**
22
- * Asynchronously uploads a file. The file is compressed and uploaded using GZip if it is determined to save space.
23
- * If the upload file is bigger than the max chunk size it will be uploaded via multiple calls
24
- * @param {number} httpClientIndex The index of the httpClient that is being used to make all of the calls
25
- * @param {UploadFileParameters} parameters Information about the file that needs to be uploaded
26
- * @returns The size of the file that was uploaded in bytes along with any failed uploads
27
- */
28
- private uploadFileAsync;
29
- /**
30
- * Uploads a chunk of an individual file to the specified resourceUrl. If the upload fails and the status code
31
- * indicates a retryable status, we try to upload the chunk as well
32
- * @param {number} httpClientIndex The index of the httpClient being used to make all the necessary calls
33
- * @param {string} resourceUrl Url of the resource that the chunk will be uploaded to
34
- * @param {NodeJS.ReadableStream} openStream Stream of the file that will be uploaded
35
- * @param {number} start Starting byte index of file that the chunk belongs to
36
- * @param {number} end Ending byte index of file that the chunk belongs to
37
- * @param {number} uploadFileSize Total size of the file in bytes that is being uploaded
38
- * @param {boolean} isGzip Denotes if we are uploading a Gzip compressed stream
39
- * @param {number} totalFileSize Original total size of the file that is being uploaded
40
- * @returns if the chunk was successfully uploaded
41
- */
42
- private uploadChunk;
43
- /**
44
- * Updates the size of the artifact from -1 which was initially set when the container was first created for the artifact.
45
- * Updating the size indicates that we are done uploading all the contents of the artifact
46
- */
47
- patchArtifactSize(size: number, artifactName: string): Promise<void>;
48
- }