eas-cli 24.7.0 → 24.9.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/README.md +505 -278
- package/build/build/createContext.js +1 -2
- package/build/build/runBuildAndSubmit.js +4 -1
- package/build/commandUtils/supabase.d.ts +6 -1
- package/build/commandUtils/supabase.js +53 -0
- package/build/commandUtils/workflow/validation.d.ts +1 -0
- package/build/commandUtils/workflow/validation.js +19 -5
- package/build/commands/account/view.js +12 -0
- package/build/commands/integrations/asc/connect.js +3 -0
- package/build/commands/integrations/supabase/advisors.d.ts +16 -0
- package/build/commands/integrations/supabase/advisors.js +153 -0
- package/build/commands/simulator/availability.d.ts +0 -1
- package/build/commands/simulator/availability.js +0 -1
- package/build/commands/simulator/egress.d.ts +0 -1
- package/build/commands/simulator/egress.js +0 -1
- package/build/commands/simulator/events.d.ts +0 -1
- package/build/commands/simulator/events.js +4 -3
- package/build/commands/simulator/exec.d.ts +0 -1
- package/build/commands/simulator/exec.js +0 -1
- package/build/commands/simulator/get.d.ts +0 -1
- package/build/commands/simulator/get.js +1 -1
- package/build/commands/simulator/index.d.ts +2 -1
- package/build/commands/simulator/index.js +40 -21
- package/build/commands/simulator/list.d.ts +0 -1
- package/build/commands/simulator/list.js +4 -3
- package/build/commands/simulator/stop.d.ts +0 -1
- package/build/commands/simulator/stop.js +0 -1
- package/build/commands/submit/internal.d.ts +10 -1
- package/build/commands/submit/internal.js +26 -4
- package/build/commands/update/index.d.ts +2 -0
- package/build/commands/update/index.js +45 -4
- package/build/commands/update/republish.d.ts +1 -0
- package/build/commands/update/republish.js +6 -0
- package/build/commands/update/roll-back-to-embedded.d.ts +1 -0
- package/build/commands/update/roll-back-to-embedded.js +7 -1
- package/build/commands/update/rollback.d.ts +1 -0
- package/build/commands/update/rollback.js +11 -3
- package/build/commands/workflow/validate.js +1 -0
- package/build/credentials/context.js +7 -0
- package/build/credentials/ios/actions/AscApiKeyUtils.d.ts +2 -1
- package/build/credentials/ios/actions/AscApiKeyUtils.js +43 -4
- package/build/credentials/ios/appstore/AppStoreApi.d.ts +5 -0
- package/build/credentials/ios/appstore/AppStoreApi.js +18 -9
- package/build/credentials/ios/appstore/authenticate.d.ts +6 -0
- package/build/credentials/ios/appstore/authenticate.js +22 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +16 -4
- package/build/devices/actions/create/developerPortalMethod.js +1 -1
- package/build/env.d.ts +4 -0
- package/build/env.js +4 -0
- package/build/fetch.js +2 -2
- package/build/graphql/generated.d.ts +348 -26
- package/build/graphql/generated.js +42 -3
- package/build/graphql/queries/SupabaseQuery.d.ts +2 -1
- package/build/graphql/queries/SupabaseQuery.js +42 -0
- package/build/graphql/queries/WorkflowJobSshQuery.d.ts +1 -0
- package/build/graphql/queries/WorkflowJobSshQuery.js +43 -0
- package/build/graphql/types/SupabaseConnection.d.ts +9 -2
- package/build/graphql/types/SupabaseConnection.js +16 -1
- package/build/integrations/asc/ascApiKey.js +2 -1
- package/build/integrations/shared/envFile.js +5 -3
- package/build/integrations/supabase/provision.d.ts +2 -2
- package/build/integrations/supabase/provision.js +6 -4
- package/build/metadata/auth.js +4 -4
- package/build/ora.js +12 -2
- package/build/project/maybeUploadSourceMapsAsync.d.ts +34 -0
- package/build/project/maybeUploadSourceMapsAsync.js +156 -0
- package/build/simulator/egress.d.ts +11 -4
- package/build/simulator/egress.js +72 -10
- package/build/simulator/env.d.ts +1 -0
- package/build/simulator/env.js +4 -1
- package/build/simulator/utils.d.ts +15 -5
- package/build/simulator/utils.js +33 -11
- package/build/submit/ios/AscApiKeySource.js +1 -1
- package/build/submit/ios/IosSubmitCommand.js +2 -2
- package/build/submit/ios/ensureTestFlightSetup.js +1 -4
- package/build/update/active-rollout.d.ts +8 -0
- package/build/update/active-rollout.js +82 -0
- package/build/update/republish.d.ts +4 -1
- package/build/update/republish.js +13 -3
- package/build/update/roll-back-to-embedded.d.ts +4 -1
- package/build/update/roll-back-to-embedded.js +14 -3
- package/build/uploads.js +5 -1
- package/build/user/expoBrowserAuthFlowLauncher.js +0 -1
- package/build/worker/upload.js +2 -2
- package/oclif.manifest.json +828 -668
- package/package.json +9 -8
- package/build/commandUtils/new/templates/CLAUDE.md +0 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveUpdateGroupsSupersedingActiveRolloutsAsync = resolveUpdateGroupsSupersedingActiveRolloutsAsync;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const utils_1 = require("./utils");
|
|
6
|
+
const UpdateQuery_1 = require("../graphql/queries/UpdateQuery");
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
8
|
+
const platform_1 = require("../platform");
|
|
9
|
+
const renderTextTable_1 = tslib_1.__importDefault(require("../utils/renderTextTable"));
|
|
10
|
+
function getPlatformsForUpdateGroup(updateGroup) {
|
|
11
|
+
const infoGroup = updateGroup.updateInfoGroup ?? updateGroup.rollBackToEmbeddedInfoGroup;
|
|
12
|
+
return Object.keys(infoGroup ?? {}).filter((platform) => platform in utils_1.updatePublishPlatformToAppPlatform);
|
|
13
|
+
}
|
|
14
|
+
async function findActiveRolloutUpdateAsync(graphqlClient, { appId, branchName, runtimeVersion, platform, }) {
|
|
15
|
+
const latestUpdateGroups = await UpdateQuery_1.UpdateQuery.viewUpdateGroupsOnBranchAsync(graphqlClient, {
|
|
16
|
+
appId,
|
|
17
|
+
branchName,
|
|
18
|
+
limit: 1,
|
|
19
|
+
offset: 0,
|
|
20
|
+
filter: {
|
|
21
|
+
runtimeVersions: [runtimeVersion],
|
|
22
|
+
platform: utils_1.updatePublishPlatformToAppPlatform[platform],
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
const latestUpdate = latestUpdateGroups?.[0]?.find(update => update.platform === platform);
|
|
26
|
+
return latestUpdate?.rolloutPercentage != null ? latestUpdate : null;
|
|
27
|
+
}
|
|
28
|
+
async function resolveUpdateGroupsSupersedingActiveRolloutsAsync(graphqlClient, updateGroups, { appId, branchName, forceEndActiveRollout, rolloutPercentage, }) {
|
|
29
|
+
const activeRolloutsPerUpdateGroup = await Promise.all(updateGroups.map(async (updateGroup) => {
|
|
30
|
+
const maybeActiveRollouts = await Promise.all(getPlatformsForUpdateGroup(updateGroup).map(async (platform) => {
|
|
31
|
+
const update = await findActiveRolloutUpdateAsync(graphqlClient, {
|
|
32
|
+
appId,
|
|
33
|
+
branchName,
|
|
34
|
+
runtimeVersion: updateGroup.runtimeVersion,
|
|
35
|
+
platform,
|
|
36
|
+
});
|
|
37
|
+
return update ? { platform, update } : null;
|
|
38
|
+
}));
|
|
39
|
+
return maybeActiveRollouts.filter((rollout) => rollout !== null);
|
|
40
|
+
}));
|
|
41
|
+
if (activeRolloutsPerUpdateGroup.every(activeRollouts => activeRollouts.length === 0)) {
|
|
42
|
+
return updateGroups;
|
|
43
|
+
}
|
|
44
|
+
for (const [index, activeRollouts] of activeRolloutsPerUpdateGroup.entries()) {
|
|
45
|
+
if (activeRollouts.length === 0) {
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
log_1.default.warn(`A rollout is in progress for runtime version ${updateGroups[index].runtimeVersion}:`);
|
|
49
|
+
const rows = activeRollouts
|
|
50
|
+
.map(({ platform, update }) => ({
|
|
51
|
+
platformName: platform_1.appPlatformDisplayNames[utils_1.updatePublishPlatformToAppPlatform[platform]],
|
|
52
|
+
update,
|
|
53
|
+
}))
|
|
54
|
+
.sort((a, b) => a.platformName.localeCompare(b.platformName))
|
|
55
|
+
.map(({ platformName, update }) => [
|
|
56
|
+
platformName,
|
|
57
|
+
`${update.rolloutPercentage}%`,
|
|
58
|
+
update.message ?? '',
|
|
59
|
+
update.group.slice(0, 8),
|
|
60
|
+
update.rolloutControlUpdate?.group.slice(0, 8) ?? '',
|
|
61
|
+
]);
|
|
62
|
+
log_1.default.warn((0, renderTextTable_1.default)(['Platform', 'Rollout', 'Message', 'Update group', 'Control update'], rows));
|
|
63
|
+
}
|
|
64
|
+
if (rolloutPercentage !== undefined) {
|
|
65
|
+
throw new Error('Cannot start a rollout while another rollout is in progress. Only one rollout can be in progress for a given branch, platform, and runtime version. Set the rollout in progress to 100% with eas update:edit, or revert it with eas update:revert-update-rollout, then publish again.');
|
|
66
|
+
}
|
|
67
|
+
log_1.default.warn('Ending the rollout makes your new update the latest, so every user receives it instead. The update that was rolling out stops being served.');
|
|
68
|
+
log_1.default.newLine();
|
|
69
|
+
if (!forceEndActiveRollout) {
|
|
70
|
+
throw new Error('Cannot supersede the rollout in progress. Ending a rollout must be requested explicitly. Re-run with --force-end-active-rollout to end the rollout and publish.');
|
|
71
|
+
}
|
|
72
|
+
return updateGroups.map((updateGroup, index) => {
|
|
73
|
+
const activeRollouts = activeRolloutsPerUpdateGroup[index];
|
|
74
|
+
if (activeRollouts.length === 0) {
|
|
75
|
+
return updateGroup;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
...updateGroup,
|
|
79
|
+
previousRolloutUpdateToClobberIdGroup: Object.fromEntries(activeRollouts.map(({ platform, update }) => [platform, update.id])),
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
}
|
|
@@ -12,7 +12,7 @@ export type UpdateToRepublish = {
|
|
|
12
12
|
* @param updatesToPublish The update group to republish
|
|
13
13
|
* @param targetBranch The branch to repubish the update group on
|
|
14
14
|
*/
|
|
15
|
-
export declare function republishAsync({ graphqlClient, app, updatesToPublish, targetBranch, updateMessage, codeSigningInfo, json, rolloutPercentage, }: {
|
|
15
|
+
export declare function republishAsync({ graphqlClient, app, updatesToPublish, targetBranch, updateMessage, codeSigningInfo, json, rolloutPercentage, activeRollout, }: {
|
|
16
16
|
graphqlClient: ExpoGraphqlClient;
|
|
17
17
|
app: {
|
|
18
18
|
exp: ExpoConfig;
|
|
@@ -27,6 +27,9 @@ export declare function republishAsync({ graphqlClient, app, updatesToPublish, t
|
|
|
27
27
|
codeSigningInfo?: CodeSigningInfo;
|
|
28
28
|
json?: boolean;
|
|
29
29
|
rolloutPercentage?: number;
|
|
30
|
+
activeRollout?: {
|
|
31
|
+
forceEndActiveRollout: boolean;
|
|
32
|
+
};
|
|
30
33
|
}): Promise<void>;
|
|
31
34
|
type GetUpdateOrAskForUpdatesOptions = {
|
|
32
35
|
nonInteractive: boolean;
|
|
@@ -8,6 +8,7 @@ exports.getOrAskUpdateMessageAsync = getOrAskUpdateMessageAsync;
|
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
10
10
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
11
|
+
const active_rollout_1 = require("./active-rollout");
|
|
11
12
|
const getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync_1 = require("./getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync");
|
|
12
13
|
const queries_1 = require("./queries");
|
|
13
14
|
const utils_1 = require("./utils");
|
|
@@ -30,7 +31,7 @@ const json_1 = require("../utils/json");
|
|
|
30
31
|
* @param updatesToPublish The update group to republish
|
|
31
32
|
* @param targetBranch The branch to repubish the update group on
|
|
32
33
|
*/
|
|
33
|
-
async function republishAsync({ graphqlClient, app, updatesToPublish, targetBranch, updateMessage, codeSigningInfo, json, rolloutPercentage, }) {
|
|
34
|
+
async function republishAsync({ graphqlClient, app, updatesToPublish, targetBranch, updateMessage, codeSigningInfo, json, rolloutPercentage, activeRollout, }) {
|
|
34
35
|
const { branchName: targetBranchName, branchId: targetBranchId } = targetBranch;
|
|
35
36
|
// The update group properties are the same for all updates
|
|
36
37
|
(0, assert_1.default)(updatesToPublish.length > 0, 'Updates to republish must be provided');
|
|
@@ -101,7 +102,7 @@ async function republishAsync({ graphqlClient, app, updatesToPublish, targetBran
|
|
|
101
102
|
})
|
|
102
103
|
: null,
|
|
103
104
|
};
|
|
104
|
-
|
|
105
|
+
const updateGroups = [
|
|
105
106
|
{
|
|
106
107
|
branchId: targetBranchId,
|
|
107
108
|
runtimeVersion,
|
|
@@ -114,7 +115,16 @@ async function republishAsync({ graphqlClient, app, updatesToPublish, targetBran
|
|
|
114
115
|
manifestHostOverride: updatesToPublish[0].manifestHostOverride,
|
|
115
116
|
assetHostOverride: updatesToPublish[0].assetHostOverride,
|
|
116
117
|
},
|
|
117
|
-
]
|
|
118
|
+
];
|
|
119
|
+
const updateGroupsToPublish = activeRollout
|
|
120
|
+
? await (0, active_rollout_1.resolveUpdateGroupsSupersedingActiveRolloutsAsync)(graphqlClient, updateGroups, {
|
|
121
|
+
appId: app.projectId,
|
|
122
|
+
branchName: targetBranchName,
|
|
123
|
+
forceEndActiveRollout: activeRollout.forceEndActiveRollout,
|
|
124
|
+
rolloutPercentage,
|
|
125
|
+
})
|
|
126
|
+
: updateGroups;
|
|
127
|
+
updatesRepublished = await PublishMutation_1.PublishMutation.publishUpdateGroupAsync(graphqlClient, updateGroupsToPublish);
|
|
118
128
|
if (codeSigningInfo) {
|
|
119
129
|
log_1.default.log('🔒 Signing republished update group');
|
|
120
130
|
await Promise.all(updatesRepublished.map(async (newUpdate) => {
|
|
@@ -2,7 +2,7 @@ import { ExpoConfig } from '@expo/config';
|
|
|
2
2
|
import { UpdatePublishPlatform } from './utils';
|
|
3
3
|
import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
|
|
4
4
|
import { CodeSigningInfo } from '../utils/code-signing';
|
|
5
|
-
export declare function publishRollBackToEmbeddedUpdateAsync({ graphqlClient, projectId, exp, updateMessage, branch, codeSigningInfo, platforms, runtimeVersion, json, }: {
|
|
5
|
+
export declare function publishRollBackToEmbeddedUpdateAsync({ graphqlClient, projectId, exp, updateMessage, branch, codeSigningInfo, platforms, runtimeVersion, json, activeRollout, }: {
|
|
6
6
|
graphqlClient: ExpoGraphqlClient;
|
|
7
7
|
projectId: string;
|
|
8
8
|
exp: ExpoConfig;
|
|
@@ -15,4 +15,7 @@ export declare function publishRollBackToEmbeddedUpdateAsync({ graphqlClient, pr
|
|
|
15
15
|
platforms: UpdatePublishPlatform[];
|
|
16
16
|
runtimeVersion: string;
|
|
17
17
|
json: boolean;
|
|
18
|
+
activeRollout?: {
|
|
19
|
+
forceEndActiveRollout: boolean;
|
|
20
|
+
};
|
|
18
21
|
}): Promise<void>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.publishRollBackToEmbeddedUpdateAsync = publishRollBackToEmbeddedUpdateAsync;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
|
+
const active_rollout_1 = require("./active-rollout");
|
|
6
7
|
const utils_1 = require("./utils");
|
|
7
8
|
const url_1 = require("../build/utils/url");
|
|
8
9
|
const fetch_1 = tslib_1.__importDefault(require("../fetch"));
|
|
@@ -15,7 +16,7 @@ const code_signing_1 = require("../utils/code-signing");
|
|
|
15
16
|
const uniqBy_1 = tslib_1.__importDefault(require("../utils/expodash/uniqBy"));
|
|
16
17
|
const formatFields_1 = tslib_1.__importDefault(require("../utils/formatFields"));
|
|
17
18
|
const json_1 = require("../utils/json");
|
|
18
|
-
async function publishRollBackToEmbeddedUpdateAsync({ graphqlClient, projectId, exp, updateMessage, branch, codeSigningInfo, platforms, runtimeVersion, json, }) {
|
|
19
|
+
async function publishRollBackToEmbeddedUpdateAsync({ graphqlClient, projectId, exp, updateMessage, branch, codeSigningInfo, platforms, runtimeVersion, json, activeRollout, }) {
|
|
19
20
|
const runtimeToPlatformsAndFingerprintInfoMapping = (0, publish_1.getRuntimeToPlatformsAndFingerprintInfoMappingFromRuntimeVersionInfoObjects)(platforms.map(platform => ({
|
|
20
21
|
platform,
|
|
21
22
|
runtimeVersionInfo: {
|
|
@@ -34,6 +35,9 @@ async function publishRollBackToEmbeddedUpdateAsync({ graphqlClient, projectId,
|
|
|
34
35
|
codeSigningInfo,
|
|
35
36
|
runtimeToPlatformsAndFingerprintInfoMapping,
|
|
36
37
|
platforms,
|
|
38
|
+
projectId,
|
|
39
|
+
branchName: branch.name,
|
|
40
|
+
activeRollout,
|
|
37
41
|
});
|
|
38
42
|
publishSpinner.succeed('Published!');
|
|
39
43
|
}
|
|
@@ -73,7 +77,7 @@ async function publishRollBackToEmbeddedUpdateAsync({ graphqlClient, projectId,
|
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
79
|
}
|
|
76
|
-
async function publishRollbacksAsync({ graphqlClient, updateMessage, branchId, codeSigningInfo, runtimeToPlatformsAndFingerprintInfoMapping, platforms, }) {
|
|
80
|
+
async function publishRollbacksAsync({ graphqlClient, updateMessage, branchId, codeSigningInfo, runtimeToPlatformsAndFingerprintInfoMapping, platforms, projectId, branchName, activeRollout, }) {
|
|
77
81
|
const rollbackInfoGroups = Object.fromEntries(platforms.map(platform => [platform, true]));
|
|
78
82
|
// Sort the updates into different groups based on their platform specific runtime versions
|
|
79
83
|
const updateGroups = runtimeToPlatformsAndFingerprintInfoMapping.map(({ runtimeVersion, platforms }) => {
|
|
@@ -86,7 +90,14 @@ async function publishRollbacksAsync({ graphqlClient, updateMessage, branchId, c
|
|
|
86
90
|
awaitingCodeSigningInfo: !!codeSigningInfo,
|
|
87
91
|
};
|
|
88
92
|
});
|
|
89
|
-
const
|
|
93
|
+
const updateGroupsToPublish = activeRollout
|
|
94
|
+
? await (0, active_rollout_1.resolveUpdateGroupsSupersedingActiveRolloutsAsync)(graphqlClient, updateGroups, {
|
|
95
|
+
appId: projectId,
|
|
96
|
+
branchName,
|
|
97
|
+
forceEndActiveRollout: activeRollout.forceEndActiveRollout,
|
|
98
|
+
})
|
|
99
|
+
: updateGroups;
|
|
100
|
+
const newUpdates = await PublishMutation_1.PublishMutation.publishUpdateGroupAsync(graphqlClient, updateGroupsToPublish);
|
|
90
101
|
if (codeSigningInfo) {
|
|
91
102
|
log_1.default.log('🔒 Signing roll back');
|
|
92
103
|
const updatesTemp = [...newUpdates];
|
package/build/uploads.js
CHANGED
|
@@ -14,7 +14,11 @@ const fetch_1 = tslib_1.__importDefault(require("./fetch"));
|
|
|
14
14
|
const generated_1 = require("./graphql/generated");
|
|
15
15
|
const UploadSessionMutation_1 = require("./graphql/mutations/UploadSessionMutation");
|
|
16
16
|
async function uploadFileAtPathToGCSAsync(graphqlClient, type, path, handleProgressEvent = () => { }) {
|
|
17
|
-
const signedUrl = await UploadSessionMutation_1.UploadSessionMutation.createUploadSessionAsync(graphqlClient, type,
|
|
17
|
+
const signedUrl = await UploadSessionMutation_1.UploadSessionMutation.createUploadSessionAsync(graphqlClient, type,
|
|
18
|
+
// The server derives the bucket key's file extension from this filename.
|
|
19
|
+
[generated_1.UploadSessionType.EasShareGcsAppArchive, generated_1.UploadSessionType.EasUpdateSourceMaps].includes(type)
|
|
20
|
+
? path
|
|
21
|
+
: undefined);
|
|
18
22
|
await uploadWithSignedUrlWithProgressAsync(path, signedUrl, handleProgressEvent);
|
|
19
23
|
return signedUrl.bucketKey;
|
|
20
24
|
}
|
|
@@ -61,7 +61,6 @@ async function getSessionUsingBrowserAuthFlowAsync({ sso = false }) {
|
|
|
61
61
|
`code_challenge=${codeChallenge}`,
|
|
62
62
|
`code_challenge_method=S256`,
|
|
63
63
|
`state=${state}`,
|
|
64
|
-
`confirm_account=true`,
|
|
65
64
|
].join('&');
|
|
66
65
|
return `${expoWebsiteUrl}${sso ? '/sso-login' : '/login'}?${params}`;
|
|
67
66
|
};
|
package/build/worker/upload.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.createProgressBar = createProgressBar;
|
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
8
|
const cli_progress_1 = tslib_1.__importDefault(require("cli-progress"));
|
|
9
9
|
const https = tslib_1.__importStar(require("https"));
|
|
10
|
-
const https_proxy_agent_1 =
|
|
10
|
+
const https_proxy_agent_1 = require("https-proxy-agent");
|
|
11
11
|
const node_fetch_1 = tslib_1.__importStar(require("node-fetch"));
|
|
12
12
|
const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
|
|
13
13
|
const node_os_1 = tslib_1.__importDefault(require("node:os"));
|
|
@@ -47,7 +47,7 @@ const getAgent = () => {
|
|
|
47
47
|
return sharedAgent;
|
|
48
48
|
}
|
|
49
49
|
else if (process.env.https_proxy) {
|
|
50
|
-
return (sharedAgent =
|
|
50
|
+
return (sharedAgent = new https_proxy_agent_1.HttpsProxyAgent(process.env.https_proxy));
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
53
53
|
return (sharedAgent = new https.Agent({
|