eas-cli 21.6.0 → 21.7.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.
- package/README.md +121 -121
- package/build/analytics/AnalyticsManager.js +3 -0
- package/build/analytics/sandbox.d.ts +3 -0
- package/build/analytics/sandbox.js +26 -0
- package/build/utils/code-signing.js +3 -0
- package/oclif.manifest.json +2658 -2658
- package/package.json +4 -3
|
@@ -13,6 +13,7 @@ const User_1 = require("../user/User");
|
|
|
13
13
|
const UserSettings_1 = tslib_1.__importDefault(require("../user/UserSettings"));
|
|
14
14
|
const easCli_1 = require("../utils/easCli");
|
|
15
15
|
const agent_1 = require("./agent");
|
|
16
|
+
const sandbox_1 = require("./sandbox");
|
|
16
17
|
const PLATFORM_TO_ANALYTICS_PLATFORM = {
|
|
17
18
|
darwin: 'Mac',
|
|
18
19
|
win32: 'Windows',
|
|
@@ -182,10 +183,12 @@ class RudderstackAnalytics {
|
|
|
182
183
|
getRudderStackContext() {
|
|
183
184
|
const platform = PLATFORM_TO_ANALYTICS_PLATFORM[os_1.default.platform()] || os_1.default.platform();
|
|
184
185
|
const agent = (0, agent_1.getAgentTelemetryContext)();
|
|
186
|
+
const sandboxProvider = (0, sandbox_1.getSandboxTelemetryContext)();
|
|
185
187
|
return {
|
|
186
188
|
os: { name: platform, version: os_1.default.release() },
|
|
187
189
|
device: { type: platform, model: platform },
|
|
188
190
|
app: { name: 'eas cli', version: easCli_1.easCliVersion ?? undefined },
|
|
191
|
+
...(sandboxProvider ? { sandbox_provider: sandboxProvider } : {}),
|
|
189
192
|
...(agent ? { agent } : {}),
|
|
190
193
|
};
|
|
191
194
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getSandboxTelemetryContext = getSandboxTelemetryContext;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const sandbox_cli_detector_1 = require("sandbox-cli-detector");
|
|
6
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
7
|
+
let sandboxTelemetryContext;
|
|
8
|
+
function getSandboxTelemetryContext() {
|
|
9
|
+
if (sandboxTelemetryContext === undefined) {
|
|
10
|
+
sandboxTelemetryContext = resolveSandboxTelemetryContext();
|
|
11
|
+
}
|
|
12
|
+
return sandboxTelemetryContext;
|
|
13
|
+
}
|
|
14
|
+
function resolveSandboxTelemetryContext() {
|
|
15
|
+
try {
|
|
16
|
+
const { detected, sandbox } = (0, sandbox_cli_detector_1.detectSandbox)();
|
|
17
|
+
if (!detected || sandbox == null) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return sandbox.id;
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
log_1.default.debug('Failed to detect sandbox:', error?.message ?? error);
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -17,6 +17,9 @@ const areSetsEqual_1 = tslib_1.__importDefault(require("./expodash/areSetsEqual"
|
|
|
17
17
|
async function getCodeSigningInfoAsync(config, privateKeyPath) {
|
|
18
18
|
const codeSigningCertificatePath = config.updates?.codeSigningCertificate;
|
|
19
19
|
if (!codeSigningCertificatePath) {
|
|
20
|
+
if (privateKeyPath) {
|
|
21
|
+
throw new Error('--private-key-path was specified, but updates.codeSigningCertificate is not set in the resolved app config. Code signing requires both the certificate in app config and the private key. Ensure codeSigningCertificate (and codeSigningMetadata) are present for this publish, or omit --private-key-path if you do not intend to sign.\nLearn more: https://docs.expo.dev/eas-update/code-signing/');
|
|
22
|
+
}
|
|
20
23
|
return undefined;
|
|
21
24
|
}
|
|
22
25
|
if (!privateKeyPath) {
|