Compare commits

...
Author SHA1 Message Date
Dominik Sokal e7dbe4ee71 upgrade @expo/plugin-warn-if-update-available 2022-05-12 10:40:24 +02:00
Dominik Sokal 34ecd38304 Update dependencies (#1095)
* update outdated deps

* [eas-cli] regenerate GraphQL code

* [eas-cli] fix tests

* [scripts] upgrade deps

* [eas-cli] fix lint warnings

* update CHANGELOG.md
2022-05-11 11:20:22 +02:00
34 changed files with 1911 additions and 1513 deletions

No files matched your search

+2
View File
@@ -12,6 +12,8 @@ This is the log of notable changes to EAS CLI and related packages.
### 🧹 Chores ### 🧹 Chores
- Update dependencies. ([#1095](https://github.com/expo/eas-cli/pull/1095) by [@dsokal](https://github.com/dsokal))
## [0.52.0](https://github.com/expo/eas-cli/releases/tag/v0.52.0) - 2022-04-26 ## [0.52.0](https://github.com/expo/eas-cli/releases/tag/v0.52.0) - 2022-04-26
### 🎉 New features ### 🎉 New features
+10 -10
View File
@@ -17,19 +17,19 @@
"clean": "lerna run clean && rm -rf node_modules coverage" "clean": "lerna run clean && rm -rf node_modules coverage"
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "27.4.1", "@types/jest": "27.5.0",
"@types/node": "16.7.8", "@types/node": "17.0.32",
"eslint": "8.12.0", "eslint": "8.15.0",
"eslint-config-universe": "10.0.0", "eslint-config-universe": "11.0.0",
"eslint-plugin-async-protect": "1.1.0", "eslint-plugin-async-protect": "1.1.0",
"eslint-plugin-node": "11.1.0", "eslint-plugin-node": "11.1.0",
"jest": "27.5.1", "jest": "28.1.0",
"jest-watch-typeahead": "1.0.0", "jest-watch-typeahead": "1.1.0",
"lerna": "4.0.0", "lerna": "4.0.0",
"oclif": "2.6.3", "oclif": "3.0.1",
"prettier": "2.6.1", "prettier": "2.6.2",
"ts-jest": "27.1.4", "ts-jest": "28.0.2",
"typescript": "4.6.3" "typescript": "4.6.4"
}, },
"volta": { "volta": {
"node": "16.10.0", "node": "16.10.0",
+559 -90
View File
@@ -701,7 +701,7 @@
}, },
{ {
"name": "billing", "name": "billing",
"description": "Billing information", "description": "Billing information. Only visible to members with the ADMIN or OWNER role.",
"args": [], "args": [],
"type": { "type": {
"kind": "OBJECT", "kind": "OBJECT",
@@ -1702,7 +1702,7 @@
"deprecationReason": null "deprecationReason": null
}, },
{ {
"name": "chargeIdentifier", "name": "chargeID",
"description": null, "description": null,
"type": { "type": {
"kind": "NON_NULL", "kind": "NON_NULL",
@@ -1716,6 +1716,30 @@
"defaultValue": null, "defaultValue": null,
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
},
{
"name": "description",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "reason",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
} }
], ],
"type": { "type": {
@@ -2088,15 +2112,15 @@
"description": null, "description": null,
"fields": [ "fields": [
{ {
"name": "metric", "name": "id",
"description": null, "description": null,
"args": [], "args": [],
"type": { "type": {
"kind": "NON_NULL", "kind": "NON_NULL",
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "ENUM", "kind": "SCALAR",
"name": "EASServiceMetric", "name": "ID",
"ofType": null "ofType": null
} }
}, },
@@ -2119,6 +2143,22 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "serviceMetric",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "EASServiceMetric",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "timestamp", "name": "timestamp",
"description": null, "description": null,
@@ -2157,11 +2197,151 @@
"enumValues": null, "enumValues": null,
"possibleTypes": null "possibleTypes": null
}, },
{
"kind": "OBJECT",
"name": "AccountUsageMetricAndCost",
"description": null,
"fields": [
{
"name": "id",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "limit",
"description": "The limit, in units, allowed by this plan",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "metricType",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "UsageMetricType",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "serviceMetric",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "EASServiceMetric",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "totalCost",
"description": "Total cost of this particular metric, in cents",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "value",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{ {
"kind": "OBJECT", "kind": "OBJECT",
"name": "AccountUsageMetrics", "name": "AccountUsageMetrics",
"description": null, "description": null,
"fields": [ "fields": [
{
"name": "byBillingPeriod",
"description": null,
"args": [
{
"name": "date",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "DateTime",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "UsageMetricTotal",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "metricsForServiceMetric", "name": "metricsForServiceMetric",
"description": null, "description": null,
@@ -2183,7 +2363,7 @@
"deprecationReason": null "deprecationReason": null
}, },
{ {
"name": "metric", "name": "serviceMetric",
"description": null, "description": null,
"type": { "type": {
"kind": "NON_NULL", "kind": "NON_NULL",
@@ -6485,15 +6665,15 @@
"fields": [ "fields": [
{ {
"name": "colorPalette", "name": "colorPalette",
"description": "Nullable color palette of the app icon. If null, color palette couldn't be retrieved from external service (imgix)", "description": null,
"args": [], "args": [],
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "JSON", "name": "JSON",
"ofType": null "ofType": null
}, },
"isDeprecated": false, "isDeprecated": true,
"deprecationReason": null "deprecationReason": "No longer supported"
}, },
{ {
"name": "originalUrl", "name": "originalUrl",
@@ -6545,6 +6725,29 @@
"enumValues": null, "enumValues": null,
"possibleTypes": null "possibleTypes": null
}, },
{
"kind": "INPUT_OBJECT",
"name": "AppInfoInput",
"description": null,
"fields": null,
"inputFields": [
{
"name": "displayName",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{ {
"kind": "INPUT_OBJECT", "kind": "INPUT_OBJECT",
"name": "AppInput", "name": "AppInput",
@@ -6567,6 +6770,18 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "appInfo",
"description": null,
"type": {
"kind": "INPUT_OBJECT",
"name": "AppInfoInput",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "privacy", "name": "privacy",
"description": null, "description": null,
@@ -6683,6 +6898,55 @@
"isDeprecated": true, "isDeprecated": true,
"deprecationReason": "No longer supported" "deprecationReason": "No longer supported"
}, },
{
"name": "setAppInfo",
"description": "Set display info for app",
"args": [
{
"name": "appId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "appInfo",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "INPUT_OBJECT",
"name": "AppInfoInput",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "App",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "setPushSecurityEnabled", "name": "setPushSecurityEnabled",
"description": "Require api token to send push notifs for experience", "description": "Require api token to send push notifs for experience",
@@ -13022,6 +13286,65 @@
"enumValues": null, "enumValues": null,
"possibleTypes": null "possibleTypes": null
}, },
{
"kind": "OBJECT",
"name": "Concurrencies",
"description": null,
"fields": [
{
"name": "android",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ios",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "total",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{ {
"kind": "INPUT_OBJECT", "kind": "INPUT_OBJECT",
"name": "CreateAccessTokenInput", "name": "CreateAccessTokenInput",
@@ -13126,6 +13449,18 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "archiveUrl",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "config", "name": "config",
"description": null, "description": null,
@@ -13263,6 +13598,18 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "archiveUrl",
"description": null,
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "config", "name": "config",
"description": null, "description": null,
@@ -13296,77 +13643,6 @@
"enumValues": null, "enumValues": null,
"possibleTypes": null "possibleTypes": null
}, },
{
"kind": "INPUT_OBJECT",
"name": "CreateSubmissionInput",
"description": null,
"fields": null,
"inputFields": [
{
"name": "appId",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "config",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "JSONObject",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "platform",
"description": null,
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "ENUM",
"name": "AppPlatform",
"ofType": null
}
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "submittedBuildId",
"description": null,
"type": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
}
],
"interfaces": null,
"enumValues": null,
"possibleTypes": null
},
{ {
"kind": "OBJECT", "kind": "OBJECT",
"name": "CreateSubmissionResult", "name": "CreateSubmissionResult",
@@ -13992,11 +14268,29 @@
"inputFields": null, "inputFields": null,
"interfaces": null, "interfaces": null,
"enumValues": [ "enumValues": [
{
"name": "ASSETS_REQUESTS",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "BANDWIDTH_USAGE",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "MANIFEST_REQUESTS", "name": "MANIFEST_REQUESTS",
"description": null, "description": null,
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
},
{
"name": "UNIQUE_USERS",
"description": null,
"isDeprecated": false,
"deprecationReason": null
} }
], ],
"possibleTypes": null "possibleTypes": null
@@ -21089,6 +21383,34 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "archiveUrl",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "canRetry",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "cancelingActor", "name": "cancelingActor",
"description": null, "description": null,
@@ -21181,6 +21503,18 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "parentSubmission",
"description": null,
"args": [],
"type": {
"kind": "OBJECT",
"name": "Submission",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "platform", "name": "platform",
"description": null, "description": null,
@@ -21429,9 +21763,13 @@
"name": "submissionId", "name": "submissionId",
"description": null, "description": null,
"type": { "type": {
"kind": "SCALAR", "kind": "NON_NULL",
"name": "ID", "name": null,
"ofType": null "ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
}, },
"defaultValue": null, "defaultValue": null,
"isDeprecated": false, "isDeprecated": false,
@@ -21517,18 +21855,18 @@
"deprecationReason": null "deprecationReason": null
}, },
{ {
"name": "createSubmission", "name": "retrySubmission",
"description": "Create an EAS Submit submission", "description": "Retry an EAS Submit submission",
"args": [ "args": [
{ {
"name": "input", "name": "parentSubmissionId",
"description": null, "description": null,
"type": { "type": {
"kind": "NON_NULL", "kind": "NON_NULL",
"name": null, "name": null,
"ofType": { "ofType": {
"kind": "INPUT_OBJECT", "kind": "SCALAR",
"name": "CreateSubmissionInput", "name": "ID",
"ofType": null "ofType": null
} }
}, },
@@ -21546,8 +21884,8 @@
"ofType": null "ofType": null
} }
}, },
"isDeprecated": true, "isDeprecated": false,
"deprecationReason": "Use createIosSubmission / createAndroidSubmission instead" "deprecationReason": null
} }
], ],
"inputFields": null, "inputFields": null,
@@ -21687,6 +22025,18 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "concurrencies",
"description": null,
"args": [],
"type": {
"kind": "OBJECT",
"name": "Concurrencies",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "endedAt", "name": "endedAt",
"description": null, "description": null,
@@ -22979,6 +23329,113 @@
], ],
"possibleTypes": null "possibleTypes": null
}, },
{
"kind": "OBJECT",
"name": "UsageMetricTotal",
"description": null,
"fields": [
{
"name": "billingPeriod",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "BillingPeriod",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "id",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "ID",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "overageMetrics",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "AccountUsageMetricAndCost",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "planMetrics",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "OBJECT",
"name": "AccountUsageMetricAndCost",
"ofType": null
}
}
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "totalCost",
"description": "Total cost of overages, in cents",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{ {
"kind": "ENUM", "kind": "ENUM",
"name": "UsageMetricType", "name": "UsageMetricType",
@@ -22987,11 +23444,23 @@
"inputFields": null, "inputFields": null,
"interfaces": null, "interfaces": null,
"enumValues": [ "enumValues": [
{
"name": "BANDWIDTH",
"description": null,
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "REQUEST", "name": "REQUEST",
"description": null, "description": null,
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
},
{
"name": "USER",
"description": null,
"isDeprecated": false,
"deprecationReason": null
} }
], ],
"possibleTypes": null "possibleTypes": null
+29 -29
View File
@@ -10,29 +10,29 @@
"dependencies": { "dependencies": {
"@expo/apple-utils": "0.0.0-alpha.31", "@expo/apple-utils": "0.0.0-alpha.31",
"@expo/code-signing-certificates": "0.0.2", "@expo/code-signing-certificates": "0.0.2",
"@expo/config": "6.0.21", "@expo/config": "6.0.23",
"@expo/config-plugins": "4.1.2", "@expo/config-plugins": "4.1.4",
"@expo/config-types": "44.0.0", "@expo/config-types": "45.0.0",
"@expo/eas-build-job": "0.2.71", "@expo/eas-build-job": "0.2.72",
"@expo/eas-json": "0.52.0", "@expo/eas-json": "0.52.0",
"@expo/json-file": "8.2.34", "@expo/json-file": "8.2.36",
"@expo/multipart-body-parser": "1.1.0", "@expo/multipart-body-parser": "1.1.0",
"@expo/pkcs12": "0.0.7", "@expo/pkcs12": "0.0.8",
"@expo/plist": "0.0.17", "@expo/plist": "0.0.18",
"@expo/plugin-warn-if-update-available": "2.1.0", "@expo/plugin-warn-if-update-available": "2.2.0",
"@expo/prebuild-config": "3.1.2", "@expo/prebuild-config": "3.1.6",
"@expo/results": "1.0.0", "@expo/results": "1.0.0",
"@expo/rudder-sdk-node": "1.1.1", "@expo/rudder-sdk-node": "1.1.1",
"@expo/spawn-async": "1.6.0", "@expo/spawn-async": "1.6.0",
"@expo/timeago.js": "1.0.0", "@expo/timeago.js": "1.0.0",
"@oclif/core": "1.6.4", "@oclif/core": "1.8.1",
"@oclif/plugin-autocomplete": "1.2.0", "@oclif/plugin-autocomplete": "1.3.0",
"@oclif/plugin-help": "5.1.12", "@oclif/plugin-help": "5.1.12",
"@urql/core": "2.4.3", "@urql/core": "2.4.4",
"@urql/exchange-retry": "0.3.2", "@urql/exchange-retry": "0.3.3",
"chalk": "4.1.2", "chalk": "4.1.2",
"cli-progress": "3.10.0", "cli-progress": "3.11.0",
"cli-table3": "0.6.1", "cli-table3": "0.6.2",
"dateformat": "4.6.3", "dateformat": "4.6.3",
"env-paths": "2.2.0", "env-paths": "2.2.0",
"envinfo": "7.8.1", "envinfo": "7.8.1",
@@ -40,12 +40,12 @@
"fast-glob": "3.2.11", "fast-glob": "3.2.11",
"figures": "3.2.0", "figures": "3.2.0",
"form-data": "4.0.0", "form-data": "4.0.0",
"fs-extra": "10.0.1", "fs-extra": "10.1.0",
"getenv": "1.0.0", "getenv": "1.0.0",
"gradle-to-js": "2.0.0", "gradle-to-js": "2.0.1",
"graphql": "16.3.0", "graphql": "16.5.0",
"graphql-tag": "2.12.6", "graphql-tag": "2.12.6",
"https-proxy-agent": "5.0.0", "https-proxy-agent": "5.0.1",
"ignore": "5.2.0", "ignore": "5.2.0",
"indent-string": "4.0.0", "indent-string": "4.0.0",
"jks-js": "1.0.2", "jks-js": "1.0.2",
@@ -53,8 +53,8 @@
"keychain": "1.3.0", "keychain": "1.3.0",
"log-symbols": "4.1.0", "log-symbols": "4.1.0",
"mime": "3.0.0", "mime": "3.0.0",
"minimatch": "3.0.5", "minimatch": "5.0.1",
"nanoid": "3.3.2", "nanoid": "3.3.4",
"node-fetch": "2.6.7", "node-fetch": "2.6.7",
"node-forge": "1.3.1", "node-forge": "1.3.1",
"nullthrows": "1.1.1", "nullthrows": "1.1.1",
@@ -63,12 +63,12 @@
"prompts": "2.4.2", "prompts": "2.4.2",
"qrcode-terminal": "0.12.0", "qrcode-terminal": "0.12.0",
"resolve-from": "5.0.0", "resolve-from": "5.0.0",
"semver": "7.3.5", "semver": "7.3.7",
"slash": "3.0.0", "slash": "3.0.0",
"strip-ansi": "6.0.0", "strip-ansi": "6.0.0",
"tar": "6.1.11", "tar": "6.1.11",
"terminal-link": "2.1.1", "terminal-link": "2.1.1",
"tslib": "2.3.1", "tslib": "2.4.0",
"turndown": "7.1.1", "turndown": "7.1.1",
"untildify": "4.0.0", "untildify": "4.0.0",
"uuid": "8.3.2", "uuid": "8.3.2",
@@ -77,8 +77,8 @@
"devDependencies": { "devDependencies": {
"@graphql-codegen/cli": "2.6.2", "@graphql-codegen/cli": "2.6.2",
"@graphql-codegen/introspection": "2.1.1", "@graphql-codegen/introspection": "2.1.1",
"@graphql-codegen/typescript": "2.4.8", "@graphql-codegen/typescript": "2.4.11",
"@graphql-codegen/typescript-operations": "2.3.5", "@graphql-codegen/typescript-operations": "2.4.0",
"@types/cli-progress": "3.9.2", "@types/cli-progress": "3.9.2",
"@types/dateformat": "3.0.1", "@types/dateformat": "3.0.1",
"@types/envinfo": "7.8.1", "@types/envinfo": "7.8.1",
@@ -86,14 +86,14 @@
"@types/getenv": "^1.0.0", "@types/getenv": "^1.0.0",
"@types/mime": "2.0.3", "@types/mime": "2.0.3",
"@types/node-fetch": "^2.5.7", "@types/node-fetch": "^2.5.7",
"@types/node-forge": "1.0.1", "@types/node-forge": "1.0.2",
"@types/prompts": "2.0.14", "@types/prompts": "2.0.14",
"@types/semver": "7.3.9", "@types/semver": "7.3.9",
"@types/tar": "6.1.1", "@types/tar": "6.1.1",
"@types/tough-cookie": "4.0.1", "@types/tough-cookie": "4.0.2",
"@types/uuid": "8.3.4", "@types/uuid": "8.3.4",
"@types/wrap-ansi": "3.0.0", "@types/wrap-ansi": "3.0.0",
"axios": "0.26.1", "axios": "0.27.2",
"eslint-plugin-graphql": "4.0.0", "eslint-plugin-graphql": "4.0.0",
"form-data": "4.0.0", "form-data": "4.0.0",
"memfs": "3.4.1", "memfs": "3.4.1",
@@ -101,7 +101,7 @@
"nock": "13.2.4", "nock": "13.2.4",
"tempy": "0.7.0", "tempy": "0.7.0",
"ts-deepmerge": "2.0.1", "ts-deepmerge": "2.0.1",
"typescript": "4.6.3" "typescript": "4.6.4"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
@@ -105,7 +105,7 @@ export async function maybeResolveVersionsAsync(
appBuildVersion: appBuildVersion:
resolveConfigValue(buildGradle, 'versionCode', parsedGradleCommand?.flavor) ?? '1', resolveConfigValue(buildGradle, 'versionCode', parsedGradleCommand?.flavor) ?? '1',
}; };
} catch (err: any) { } catch {
return {}; return {};
} }
} else { } else {
@@ -107,7 +107,7 @@ describe(EasCommand.name, () => {
await TestEasCommand.run().then(() => { await TestEasCommand.run().then(() => {
throw new Error('foo'); throw new Error('foo');
}); });
} catch (error) {} } catch {}
expect(flushAsync).toHaveBeenCalled(); expect(flushAsync).toHaveBeenCalled();
}); });
@@ -104,7 +104,7 @@ async function selectBuildToCancelAsync(
async function ensureBuildExistsAsync(buildId: string): Promise<void> { async function ensureBuildExistsAsync(buildId: string): Promise<void> {
try { try {
await BuildQuery.byIdAsync(buildId); await BuildQuery.byIdAsync(buildId);
} catch (err) { } catch {
throw new Error(`Couldn't find a build matching the id ${buildId}`); throw new Error(`Couldn't find a build matching the id ${buildId}`);
} }
} }
@@ -102,7 +102,7 @@ export default class BuildInspect extends EasCommand {
if (!flags.verbose) { if (!flags.verbose) {
Log.log(chalk.green('Build successful')); Log.log(chalk.green('Build successful'));
} }
} catch (err) { } catch {
if (!flags.verbose) { if (!flags.verbose) {
Log.error('Build failed'); Log.error('Build failed');
Log.error(`Re-run this command with ${chalk.bold('--verbose')} flag to see the logs`); Log.error(`Re-run this command with ${chalk.bold('--verbose')} flag to see the logs`);
@@ -45,7 +45,7 @@ export function getBranchMapping(branchMappingString?: string): {
let branchMapping: BranchMapping; let branchMapping: BranchMapping;
try { try {
branchMapping = JSON.parse(branchMappingString); branchMapping = JSON.parse(branchMappingString);
} catch (e) { } catch {
throw new Error(`Could not parse branchMapping string into a JSON: "${branchMappingString}"`); throw new Error(`Could not parse branchMapping string into a JSON: "${branchMappingString}"`);
} }
assert(branchMapping, 'Branch Mapping must be defined.'); assert(branchMapping, 'Branch Mapping must be defined.');
@@ -20,7 +20,7 @@ function fileIsServiceAccountKey(keyJsonPath: string): boolean {
try { try {
readAndValidateServiceAccountKey(keyJsonPath); readAndValidateServiceAccountKey(keyJsonPath);
return true; return true;
} catch (err: any) { } catch {
return false; return false;
} }
} }
@@ -24,7 +24,7 @@ export async function keytoolCommandExistsAsync(): Promise<boolean> {
try { try {
await spawnAsync('keytool'); await spawnAsync('keytool');
return true; return true;
} catch (error) { } catch {
return false; return false;
} }
} }
@@ -24,7 +24,7 @@ function isPKCSKeystore(keystore: Keystore): boolean {
try { try {
parsePKCS12(keystore.keystore, keystore.keystorePassword); parsePKCS12(keystore.keystore, keystore.keystorePassword);
return true; return true;
} catch (e) { } catch {
return false; return false;
} }
} }
@@ -33,7 +33,7 @@ function isJKSKeystore(keystore: Keystore): boolean {
try { try {
jks.parseJks(Buffer.from(keystore.keystore, 'base64'), keystore.keystorePassword); jks.parseJks(Buffer.from(keystore.keystore, 'base64'), keystore.keystorePassword);
return true; return true;
} catch (e) { } catch {
return false; return false;
} }
} }
+1 -1
View File
@@ -50,7 +50,7 @@ export class CredentialsContext {
): ExpoConfig | null { ): ExpoConfig | null {
try { try {
return getExpoConfig(projectDir, { env }); return getExpoConfig(projectDir, { env });
} catch (error) { } catch {
// ignore error, context might be created outside of expo project // ignore error, context might be created outside of expo project
return null; return null;
} }
@@ -114,7 +114,7 @@ export async function readRawAsync(
try { try {
const credentialsJSONContents = await fs.readFile(credentialsJsonFilePath, 'utf8'); const credentialsJSONContents = await fs.readFile(credentialsJsonFilePath, 'utf8');
return JSON.parse(credentialsJSONContents); return JSON.parse(credentialsJSONContents);
} catch (err) { } catch {
throw new Error( throw new Error(
`credentials.json must exist in the project root directory and contain a valid JSON` `credentials.json must exist in the project root directory and contain a valid JSON`
); );
@@ -15,7 +15,7 @@ describe(getCertData, () => {
}); });
}); });
describe(forge.pkcs12.pkcs12FromAsn1, () => { describe('forge.pkcs12.pkcs12FromAsn1', () => {
describe('when using p12 created from keychain', () => { describe('when using p12 created from keychain', () => {
it('throws if empty string is passed', async () => { it('throws if empty string is passed', async () => {
const p12Der = forge.util.decode64(testDistributionCertificateEmptyPasswordBase64); const p12Der = forge.util.decode64(testDistributionCertificateEmptyPasswordBase64);
@@ -31,7 +31,7 @@ export function parse(dataBase64: string): PlistObject {
const buffer = Buffer.from(dataBase64, 'base64'); const buffer = Buffer.from(dataBase64, 'base64');
const profile = buffer.toString('utf8'); const profile = buffer.toString('utf8');
return plist.parse(profile) as PlistObject; return plist.parse(profile) as PlistObject;
} catch (error) { } catch {
throw new Error('Provisioning profile is malformed'); throw new Error('Provisioning profile is malformed');
} }
} }
@@ -75,7 +75,7 @@ function validateProvisioningProfileWithoutApple(
Log.warn('Provisioning Profile has expired.'); Log.warn('Provisioning Profile has expired.');
return false; return false;
} }
} catch (error) { } catch {
Log.warn('Provisioning Profile is malformed.'); Log.warn('Provisioning Profile is malformed.');
return false; return false;
} }
+74 -22
View File
@@ -94,7 +94,7 @@ export type Account = {
apps: Array<App>; apps: Array<App>;
/** @deprecated Build packs are no longer supported */ /** @deprecated Build packs are no longer supported */
availableBuilds?: Maybe<Scalars['Int']>; availableBuilds?: Maybe<Scalars['Int']>;
/** Billing information */ /** Billing information. Only visible to members with the ADMIN or OWNER role. */
billing?: Maybe<Billing>; billing?: Maybe<Billing>;
billingPeriod: BillingPeriod; billingPeriod: BillingPeriod;
/** Build Jobs associated with this account */ /** Build Jobs associated with this account */
@@ -338,7 +338,9 @@ export type AccountMutationRenameArgs = {
export type AccountMutationRequestRefundArgs = { export type AccountMutationRequestRefundArgs = {
accountID: Scalars['ID']; accountID: Scalars['ID'];
chargeIdentifier: Scalars['ID']; chargeID: Scalars['ID'];
description?: InputMaybe<Scalars['String']>;
reason?: InputMaybe<Scalars['String']>;
}; };
@@ -393,21 +395,40 @@ export type AccountQueryByNameArgs = {
export type AccountUsageMetric = { export type AccountUsageMetric = {
__typename?: 'AccountUsageMetric'; __typename?: 'AccountUsageMetric';
metric: EasServiceMetric; id: Scalars['ID'];
metricType: UsageMetricType; metricType: UsageMetricType;
serviceMetric: EasServiceMetric;
timestamp: Scalars['DateTime']; timestamp: Scalars['DateTime'];
value: Scalars['Float']; value: Scalars['Float'];
}; };
export type AccountUsageMetricAndCost = {
__typename?: 'AccountUsageMetricAndCost';
id: Scalars['ID'];
/** The limit, in units, allowed by this plan */
limit: Scalars['Float'];
metricType: UsageMetricType;
serviceMetric: EasServiceMetric;
/** Total cost of this particular metric, in cents */
totalCost: Scalars['Float'];
value: Scalars['Float'];
};
export type AccountUsageMetrics = { export type AccountUsageMetrics = {
__typename?: 'AccountUsageMetrics'; __typename?: 'AccountUsageMetrics';
byBillingPeriod: UsageMetricTotal;
metricsForServiceMetric: Array<AccountUsageMetric>; metricsForServiceMetric: Array<AccountUsageMetric>;
}; };
export type AccountUsageMetricsByBillingPeriodArgs = {
date: Scalars['DateTime'];
};
export type AccountUsageMetricsMetricsForServiceMetricArgs = { export type AccountUsageMetricsMetricsForServiceMetricArgs = {
granularity: UsageMetricsGranularity; granularity: UsageMetricsGranularity;
metric: EasServiceMetric; serviceMetric: EasServiceMetric;
timespan: UsageMetricsTimespan; timespan: UsageMetricsTimespan;
}; };
@@ -1002,15 +1023,20 @@ export type AppDataInput = {
export type AppIcon = { export type AppIcon = {
__typename?: 'AppIcon'; __typename?: 'AppIcon';
/** Nullable color palette of the app icon. If null, color palette couldn't be retrieved from external service (imgix) */ /** @deprecated No longer supported */
colorPalette?: Maybe<Scalars['JSON']>; colorPalette?: Maybe<Scalars['JSON']>;
originalUrl: Scalars['String']; originalUrl: Scalars['String'];
primaryColor?: Maybe<Scalars['String']>; primaryColor?: Maybe<Scalars['String']>;
url: Scalars['String']; url: Scalars['String'];
}; };
export type AppInfoInput = {
displayName?: InputMaybe<Scalars['String']>;
};
export type AppInput = { export type AppInput = {
accountId: Scalars['ID']; accountId: Scalars['ID'];
appInfo?: InputMaybe<AppInfoInput>;
privacy: AppPrivacy; privacy: AppPrivacy;
projectName: Scalars['String']; projectName: Scalars['String'];
}; };
@@ -1021,6 +1047,8 @@ export type AppMutation = {
createApp: App; createApp: App;
/** @deprecated No longer supported */ /** @deprecated No longer supported */
grantAccess?: Maybe<App>; grantAccess?: Maybe<App>;
/** Set display info for app */
setAppInfo: App;
/** Require api token to send push notifs for experience */ /** Require api token to send push notifs for experience */
setPushSecurityEnabled: App; setPushSecurityEnabled: App;
}; };
@@ -1037,6 +1065,12 @@ export type AppMutationGrantAccessArgs = {
}; };
export type AppMutationSetAppInfoArgs = {
appId: Scalars['ID'];
appInfo: AppInfoInput;
};
export type AppMutationSetPushSecurityEnabledArgs = { export type AppMutationSetPushSecurityEnabledArgs = {
appId: Scalars['ID']; appId: Scalars['ID'];
pushSecurityEnabled: Scalars['Boolean']; pushSecurityEnabled: Scalars['Boolean'];
@@ -1905,6 +1939,13 @@ export type CodeSigningInfoInput = {
sig: Scalars['String']; sig: Scalars['String'];
}; };
export type Concurrencies = {
__typename?: 'Concurrencies';
android: Scalars['Int'];
ios: Scalars['Int'];
total: Scalars['Int'];
};
export type CreateAccessTokenInput = { export type CreateAccessTokenInput = {
actorID: Scalars['ID']; actorID: Scalars['ID'];
note?: InputMaybe<Scalars['String']>; note?: InputMaybe<Scalars['String']>;
@@ -1920,6 +1961,7 @@ export type CreateAccessTokenResponse = {
export type CreateAndroidSubmissionInput = { export type CreateAndroidSubmissionInput = {
appId: Scalars['ID']; appId: Scalars['ID'];
archiveUrl?: InputMaybe<Scalars['String']>;
config: AndroidSubmissionConfigInput; config: AndroidSubmissionConfigInput;
submittedBuildId?: InputMaybe<Scalars['ID']>; submittedBuildId?: InputMaybe<Scalars['ID']>;
}; };
@@ -1937,17 +1979,11 @@ export type CreateEnvironmentSecretInput = {
export type CreateIosSubmissionInput = { export type CreateIosSubmissionInput = {
appId: Scalars['ID']; appId: Scalars['ID'];
archiveUrl?: InputMaybe<Scalars['String']>;
config: IosSubmissionConfigInput; config: IosSubmissionConfigInput;
submittedBuildId?: InputMaybe<Scalars['ID']>; submittedBuildId?: InputMaybe<Scalars['ID']>;
}; };
export type CreateSubmissionInput = {
appId: Scalars['ID'];
config: Scalars['JSONObject'];
platform: AppPlatform;
submittedBuildId?: InputMaybe<Scalars['ID']>;
};
export type CreateSubmissionResult = { export type CreateSubmissionResult = {
__typename?: 'CreateSubmissionResult'; __typename?: 'CreateSubmissionResult';
/** Created submission */ /** Created submission */
@@ -2057,7 +2093,10 @@ export enum EasBuildDeprecationInfoType {
} }
export enum EasServiceMetric { export enum EasServiceMetric {
ManifestRequests = 'MANIFEST_REQUESTS' AssetsRequests = 'ASSETS_REQUESTS',
BandwidthUsage = 'BANDWIDTH_USAGE',
ManifestRequests = 'MANIFEST_REQUESTS',
UniqueUsers = 'UNIQUE_USERS'
} }
export type EditUpdateBranchInput = { export type EditUpdateBranchInput = {
@@ -3108,6 +3147,8 @@ export type Submission = ActivityTimelineProjectActivity & {
actor?: Maybe<Actor>; actor?: Maybe<Actor>;
androidConfig?: Maybe<AndroidSubmissionConfig>; androidConfig?: Maybe<AndroidSubmissionConfig>;
app: App; app: App;
archiveUrl?: Maybe<Scalars['String']>;
canRetry: Scalars['Boolean'];
cancelingActor?: Maybe<Actor>; cancelingActor?: Maybe<Actor>;
createdAt: Scalars['DateTime']; createdAt: Scalars['DateTime'];
error?: Maybe<SubmissionError>; error?: Maybe<SubmissionError>;
@@ -3115,6 +3156,7 @@ export type Submission = ActivityTimelineProjectActivity & {
initiatingActor?: Maybe<Actor>; initiatingActor?: Maybe<Actor>;
iosConfig?: Maybe<IosSubmissionConfig>; iosConfig?: Maybe<IosSubmissionConfig>;
logsUrl?: Maybe<Scalars['String']>; logsUrl?: Maybe<Scalars['String']>;
parentSubmission?: Maybe<Submission>;
platform: AppPlatform; platform: AppPlatform;
status: SubmissionStatus; status: SubmissionStatus;
submittedBuild?: Maybe<Build>; submittedBuild?: Maybe<Build>;
@@ -3159,16 +3201,13 @@ export type SubmissionMutation = {
createAndroidSubmission: CreateSubmissionResult; createAndroidSubmission: CreateSubmissionResult;
/** Create an iOS EAS Submit submission */ /** Create an iOS EAS Submit submission */
createIosSubmission: CreateSubmissionResult; createIosSubmission: CreateSubmissionResult;
/** /** Retry an EAS Submit submission */
* Create an EAS Submit submission retrySubmission: CreateSubmissionResult;
* @deprecated Use createIosSubmission / createAndroidSubmission instead
*/
createSubmission: CreateSubmissionResult;
}; };
export type SubmissionMutationCancelSubmissionArgs = { export type SubmissionMutationCancelSubmissionArgs = {
submissionId?: InputMaybe<Scalars['ID']>; submissionId: Scalars['ID'];
}; };
@@ -3182,8 +3221,8 @@ export type SubmissionMutationCreateIosSubmissionArgs = {
}; };
export type SubmissionMutationCreateSubmissionArgs = { export type SubmissionMutationRetrySubmissionArgs = {
input: CreateSubmissionInput; parentSubmissionId: Scalars['ID'];
}; };
export type SubmissionQuery = { export type SubmissionQuery = {
@@ -3210,6 +3249,7 @@ export type SubscriptionDetails = {
__typename?: 'SubscriptionDetails'; __typename?: 'SubscriptionDetails';
addons: Array<AddonDetails>; addons: Array<AddonDetails>;
cancelledAt?: Maybe<Scalars['DateTime']>; cancelledAt?: Maybe<Scalars['DateTime']>;
concurrencies?: Maybe<Concurrencies>;
endedAt?: Maybe<Scalars['DateTime']>; endedAt?: Maybe<Scalars['DateTime']>;
id: Scalars['ID']; id: Scalars['ID'];
isDowngrading?: Maybe<Scalars['Boolean']>; isDowngrading?: Maybe<Scalars['Boolean']>;
@@ -3395,8 +3435,20 @@ export enum UploadSessionType {
EasSubmitAppArchive = 'EAS_SUBMIT_APP_ARCHIVE' EasSubmitAppArchive = 'EAS_SUBMIT_APP_ARCHIVE'
} }
export type UsageMetricTotal = {
__typename?: 'UsageMetricTotal';
billingPeriod: BillingPeriod;
id: Scalars['ID'];
overageMetrics: Array<AccountUsageMetricAndCost>;
planMetrics: Array<AccountUsageMetricAndCost>;
/** Total cost of overages, in cents */
totalCost: Scalars['Float'];
};
export enum UsageMetricType { export enum UsageMetricType {
Request = 'REQUEST' Bandwidth = 'BANDWIDTH',
Request = 'REQUEST',
User = 'USER'
} }
export enum UsageMetricsGranularity { export enum UsageMetricsGranularity {
@@ -412,9 +412,9 @@ describe(uploadAssetsAsync, () => {
return { specifications: ['{}', '{}', '{}'] }; return { specifications: ['{}', '{}', '{}'] };
}); });
beforeEach(() => { // beforeEach(() => {
jest.useFakeTimers(); // jest.useFakeTimers();
}); // });
it('throws an error if the upload exceeds TIMEOUT_LIMIT', async () => { it('throws an error if the upload exceeds TIMEOUT_LIMIT', async () => {
jest.spyOn(PublishQuery, 'getAssetMetadataAsync').mockImplementation(async () => { jest.spyOn(PublishQuery, 'getAssetMetadataAsync').mockImplementation(async () => {
const status = AssetMetadataStatus.DoesNotExist; const status = AssetMetadataStatus.DoesNotExist;
@@ -28,7 +28,7 @@ export async function ensureApplicationIdIsDefinedForManagedProjectAsync(
return await getApplicationIdAsync(projectDir, exp, { return await getApplicationIdAsync(projectDir, exp, {
moduleName: gradleUtils.DEFAULT_MODULE_NAME, moduleName: gradleUtils.DEFAULT_MODULE_NAME,
}); });
} catch (err) { } catch {
return await configureApplicationIdAsync(projectDir, exp); return await configureApplicationIdAsync(projectDir, exp);
} }
} }
@@ -23,7 +23,7 @@ export async function ensureBundleIdentifierIsDefinedForManagedProjectAsync(
try { try {
return await getBundleIdentifierAsync(projectDir, exp); return await getBundleIdentifierAsync(projectDir, exp);
} catch (err) { } catch {
return await configureBundleIdentifierAsync(projectDir, exp); return await configureBundleIdentifierAsync(projectDir, exp);
} }
} }
+1 -1
View File
@@ -482,7 +482,7 @@ function validateUrl(url: string): boolean {
? protocols.map(x => `${x.toLowerCase()}:`).includes(parsed.protocol) ? protocols.map(x => `${x.toLowerCase()}:`).includes(parsed.protocol)
: false : false
: true; : true;
} catch (err) { } catch {
return false; return false;
} }
} }
+1 -1
View File
@@ -8,7 +8,7 @@ export async function isExistingFileAsync(filePath: string): Promise<boolean> {
try { try {
const stats = await fs.stat(filePath); const stats = await fs.stat(filePath);
return stats.isFile(); return stats.isFile();
} catch (e) { } catch {
return false; return false;
} }
} }
+1 -1
View File
@@ -53,7 +53,7 @@ function parseLogs(logs: string): LogLine[] {
let parsedLine; let parsedLine;
try { try {
parsedLine = JSON.parse(line); parsedLine = JSON.parse(line);
} catch (error) { } catch {
continue; continue;
} }
let level: LogLine['level']; let level: LogLine['level'];
@@ -35,7 +35,7 @@ export async function readReleaseChannelSafelyAsync(projectDir: string): Promise
androidManifest, androidManifest,
AndroidConfig.Updates.Config.RELEASE_CHANNEL AndroidConfig.Updates.Config.RELEASE_CHANNEL
); );
} catch (err) { } catch {
return null; return null;
} }
} }
@@ -51,7 +51,7 @@ export async function readChannelSafelyAsync(projectDir: string): Promise<string
return null; return null;
} }
return JSON.parse(stringifiedRequestHeaders)['expo-channel-name'] ?? null; return JSON.parse(stringifiedRequestHeaders)['expo-channel-name'] ?? null;
} catch (err) { } catch {
return null; return null;
} }
} }
@@ -42,7 +42,7 @@ export async function readReleaseChannelSafelyAsync(projectDir: string): Promise
try { try {
const expoPlist = await readExpoPlistAsync(projectDir); const expoPlist = await readExpoPlistAsync(projectDir);
return expoPlist[IOSConfig.Updates.Config.RELEASE_CHANNEL] ?? null; return expoPlist[IOSConfig.Updates.Config.RELEASE_CHANNEL] ?? null;
} catch (err) { } catch {
return null; return null;
} }
} }
@@ -52,7 +52,7 @@ export async function readChannelSafelyAsync(projectDir: string): Promise<string
const expoPlist = await readExpoPlistAsync(projectDir); const expoPlist = await readExpoPlistAsync(projectDir);
const updatesRequestHeaders = expoPlist['EXUpdatesRequestHeaders']; const updatesRequestHeaders = expoPlist['EXUpdatesRequestHeaders'];
return updatesRequestHeaders['expo-channel-name'] ?? null; return updatesRequestHeaders['expo-channel-name'] ?? null;
} catch (err) { } catch {
return null; return null;
} }
} }
+1 -1
View File
@@ -62,7 +62,7 @@ export async function ensureLoggedInAsync({ nonInteractive = false } = {}): Prom
let user: Actor | undefined; let user: Actor | undefined;
try { try {
user = await getUserAsync(); user = await getUserAsync();
} catch (_) {} } catch {}
if (!user) { if (!user) {
Log.warn('An Expo user account is required to proceed.'); Log.warn('An Expo user account is required to proceed.');
+5 -5
View File
@@ -143,7 +143,7 @@ export default class GitClient extends Client {
public async getCommitHashAsync(): Promise<string | undefined> { public async getCommitHashAsync(): Promise<string | undefined> {
try { try {
return (await spawnAsync('git', ['rev-parse', 'HEAD'])).stdout.trim(); return (await spawnAsync('git', ['rev-parse', 'HEAD'])).stdout.trim();
} catch (err) { } catch {
return undefined; return undefined;
} }
} }
@@ -155,7 +155,7 @@ export default class GitClient extends Client {
public async getBranchNameAsync(): Promise<string | null> { public async getBranchNameAsync(): Promise<string | null> {
try { try {
return (await spawnAsync('git', ['rev-parse', '--abbrev-ref', 'HEAD'])).stdout.trim(); return (await spawnAsync('git', ['rev-parse', '--abbrev-ref', 'HEAD'])).stdout.trim();
} catch (e) { } catch {
return null; return null;
} }
} }
@@ -163,7 +163,7 @@ export default class GitClient extends Client {
public async getLastCommitMessageAsync(): Promise<string | null> { public async getLastCommitMessageAsync(): Promise<string | null> {
try { try {
return (await spawnAsync('git', ['--no-pager', 'log', '-1', '--pretty=%B'])).stdout.trim(); return (await spawnAsync('git', ['--no-pager', 'log', '-1', '--pretty=%B'])).stdout.trim();
} catch (e) { } catch {
return null; return null;
} }
} }
@@ -187,7 +187,7 @@ export default class GitClient extends Client {
try { try {
await spawnAsync('git', ['check-ignore', '-q', filePath]); await spawnAsync('git', ['check-ignore', '-q', filePath]);
return true; return true;
} catch (e) { } catch {
return false; return false;
} }
} }
@@ -284,7 +284,7 @@ export async function isGitCaseSensitiveAsync(): Promise<boolean | undefined> {
} else { } else {
return true; return true;
} }
} catch (e) { } catch {
return undefined; return undefined;
} }
} }
+1 -1
View File
@@ -16,7 +16,7 @@ export async function doesGitRepoExistAsync(): Promise<boolean> {
try { try {
await spawnAsync('git', ['rev-parse', '--git-dir']); await spawnAsync('git', ['rev-parse', '--git-dir']);
return true; return true;
} catch (err) { } catch {
return false; return false;
} }
} }
+1 -1
View File
@@ -78,7 +78,7 @@ export function validateURL(url: string): boolean {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new URL(url); new URL(url);
return true; return true;
} catch (err) { } catch {
return false; return false;
} }
} }
+6 -6
View File
@@ -5,20 +5,20 @@
"author": "Expo <[email protected]>", "author": "Expo <[email protected]>",
"bugs": "https://github.com/expo/eas-cli/issues", "bugs": "https://github.com/expo/eas-cli/issues",
"dependencies": { "dependencies": {
"@expo/eas-build-job": "0.2.71", "@expo/eas-build-job": "0.2.72",
"@expo/json-file": "8.2.34", "@expo/json-file": "8.2.36",
"chalk": "4.1.2", "chalk": "4.1.2",
"env-string": "1.0.1", "env-string": "1.0.1",
"fs-extra": "10.0.1", "fs-extra": "10.1.0",
"joi": "17.6.0", "joi": "17.6.0",
"log-symbols": "4.1.0", "log-symbols": "4.1.0",
"semver": "7.3.5", "semver": "7.3.7",
"tslib": "2.3.1" "tslib": "2.4.0"
}, },
"devDependencies": { "devDependencies": {
"@types/fs-extra": "9.0.13", "@types/fs-extra": "9.0.13",
"memfs": "3.4.1", "memfs": "3.4.1",
"typescript": "4.6.3" "typescript": "4.6.4"
}, },
"engines": { "engines": {
"node": ">=12.0.0" "node": ">=12.0.0"
+8 -8
View File
@@ -14,20 +14,20 @@
}, },
"dependencies": { "dependencies": {
"dateformat": "4.5.1", "dateformat": "4.5.1",
"fs-extra": "10.0.0", "fs-extra": "10.1.0",
"lodash": "4.17.21", "lodash": "4.17.21",
"marked": "3.0.4", "marked": "3.0.4",
"nullthrows": "1.1.1", "nullthrows": "1.1.1",
"semver": "7.3.5", "semver": "7.3.7",
"tslib": "2.3.1" "tslib": "2.4.0"
}, },
"devDependencies": { "devDependencies": {
"@types/dateformat": "3.0.1", "@types/dateformat": "3.0.1",
"@types/fs-extra": "9.0.13", "@types/fs-extra": "9.0.13",
"@types/lodash": "4.14.175", "@types/lodash": "4.14.182",
"@types/node": "16.7.8", "@types/node": "17.0.32",
"@types/semver": "7.3.8", "@types/semver": "7.3.9",
"ts-node": "10.2.1", "ts-node": "10.7.0",
"typescript": "4.5.2" "typescript": "4.6.4"
} }
} }
+43 -37
View File
@@ -7,10 +7,10 @@
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b"
integrity sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg== integrity sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==
"@cspotcode/source-map-support@0.6.1": "@cspotcode/source-map-support@0.7.0":
version "0.6.1" version "0.7.0"
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.6.1.tgz#118511f316e2e87ee4294761868e254d3da47960" resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz#4789840aa859e46d2f3173727ab707c66bf344f5"
integrity sha512-DX3Z+T5dt1ockmPdobJS/FAsQPW4V4SrWEhD2iYQT2Cb2tQsiMnYxrcUH9By/Z3B+v0S5LMBkQtV/XOBbpLEOg== integrity sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==
dependencies: dependencies:
"@cspotcode/source-map-consumer" "0.8.0" "@cspotcode/source-map-consumer" "0.8.0"
@@ -46,25 +46,25 @@
dependencies: dependencies:
"@types/node" "*" "@types/node" "*"
"@types/[email protected]75": "@types/[email protected]82":
version "4.14.175" version "4.14.182"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.175.tgz#b78dfa959192b01fae0ad90e166478769b215f45" resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.182.tgz#05301a4d5e62963227eaafe0ce04dd77c54ea5c2"
integrity sha512-XmdEOrKQ8a1Y/yxQFOMbC47G/V2VDO1GvMRnl4O75M4GW/abC5tnfzadQYkqEveqRM1dEJGFFegfPNA2vvx2iw== integrity sha512-/THyiqyQAP9AfARo4pF+aCGcyiQ94tX/Is2I7HofNRqoYLgN1PBoOWu2/zTA5zMxzP5EFutMtWtGAFRKUe961Q==
"@types/node@*": "@types/node@*":
version "16.10.3" version "16.10.3"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.10.3.tgz#7a8f2838603ea314d1d22bb3171d899e15c57bd5" resolved "https://registry.yarnpkg.com/@types/node/-/node-16.10.3.tgz#7a8f2838603ea314d1d22bb3171d899e15c57bd5"
integrity sha512-ho3Ruq+fFnBrZhUYI46n/bV2GjwzSkwuT4dTf0GkuNFmnb8nq4ny2z9JEVemFi6bdEJanHLlYfy9c6FN9B9McQ== integrity sha512-ho3Ruq+fFnBrZhUYI46n/bV2GjwzSkwuT4dTf0GkuNFmnb8nq4ny2z9JEVemFi6bdEJanHLlYfy9c6FN9B9McQ==
"@types/node@16.7.8": "@types/node@17.0.32":
version "16.7.8" version "17.0.32"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.7.8.tgz#2448be5f24fe6b77114632b6350fcd219334651e" resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.32.tgz#51d59d7a90ef2d0ae961791e0900cad2393a0149"
integrity sha512-8upnoQU0OPzbIkm+ZMM0zCeFCkw2s3mS0IWdx0+AAaWqm4fkBb0UJp8Edl7FVKRamYbpJC/aVsHpKWBIbiC7Zg== integrity sha512-eAIcfAvhf/BkHcf4pkLJ7ECpBAhh9kcxRBpip9cTiO+hf+aJrsxYxBeS6OXvOd9WqNAJmavXVpZvY1rBjNsXmw==
"@types/[email protected].8": "@types/[email protected].9":
version "7.3.8" version "7.3.9"
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.8.tgz#508a27995498d7586dcecd77c25e289bfaf90c59" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.9.tgz#152c6c20a7688c30b967ec1841d31ace569863fc"
integrity sha512-D/2EJvAlCEtYFEYmmlGwbGXuK886HzyCc3nZX/tkFTQdEU8jZDAgiv08P162yB17y4ZXZoq7yFAnW4GDBb9Now== integrity sha512-L/TMpyURfBkf+o/526Zb6kd/tchUP3iBDEPjqjb+U2MAJhVRxxrmr2fwpe08E7QsV7YLcpq0tUaQ9O9x97ZIxQ==
acorn-walk@^8.1.1: acorn-walk@^8.1.1:
version "8.2.0" version "8.2.0"
@@ -96,10 +96,10 @@ diff@^4.0.1:
resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
fs-extra@10.0.0: fs-extra@10.1.0:
version "10.0.0" version "10.1.0"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.0.0.tgz#9ff61b655dde53fb34a82df84bb214ce802e17c1" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf"
integrity sha512-C5owb14u9eJwizKGdchcDUQeFtlSHHthBk8pbX9Vc1PFZrLombudjDnNns88aYslCyF6IY5SUw3Roz6xShcEIQ== integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==
dependencies: dependencies:
graceful-fs "^4.2.0" graceful-fs "^4.2.0"
jsonfile "^6.0.1" jsonfile "^6.0.1"
@@ -146,19 +146,19 @@ [email protected]:
resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1" resolved "https://registry.yarnpkg.com/nullthrows/-/nullthrows-1.1.1.tgz#7818258843856ae971eae4208ad7d7eb19a431b1"
integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw== integrity sha512-2vPPEi+Z7WqML2jZYddDIfy5Dqb0r2fze2zTxNNknZaFpVHU3mFB3R+DWeJWGVx0ecvttSGlJTI+WG+8Z4cDWw==
[email protected].5: [email protected].7:
version "7.3.5" version "7.3.7"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f"
integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==
dependencies: dependencies:
lru-cache "^6.0.0" lru-cache "^6.0.0"
ts-node@10.2.1: ts-node@10.7.0:
version "10.2.1" version "10.7.0"
resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.2.1.tgz#4cc93bea0a7aba2179497e65bb08ddfc198b3ab5" resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.7.0.tgz#35d503d0fab3e2baa672a0e94f4b40653c2463f5"
integrity sha512-hCnyOyuGmD5wHleOQX6NIjJtYVIO8bPP8F2acWkB4W06wdlkgyvJtubO/I9NkI88hCFECbsEgoLc0VNkYmcSfw== integrity sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==
dependencies: dependencies:
"@cspotcode/source-map-support" "0.6.1" "@cspotcode/source-map-support" "0.7.0"
"@tsconfig/node10" "^1.0.7" "@tsconfig/node10" "^1.0.7"
"@tsconfig/node12" "^1.0.7" "@tsconfig/node12" "^1.0.7"
"@tsconfig/node14" "^1.0.0" "@tsconfig/node14" "^1.0.0"
@@ -169,23 +169,29 @@ [email protected]:
create-require "^1.1.0" create-require "^1.1.0"
diff "^4.0.1" diff "^4.0.1"
make-error "^1.1.1" make-error "^1.1.1"
v8-compile-cache-lib "^3.0.0"
yn "3.1.1" yn "3.1.1"
tslib@2.3.1: tslib@2.4.0:
version "2.3.1" version "2.4.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
typescript@4.5.2: typescript@4.6.4:
version "4.5.2" version "4.6.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.2.tgz#8ac1fba9f52256fdb06fb89e4122fa6a346c2998" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9"
integrity sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw== integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==
universalify@^2.0.0: universalify@^2.0.0:
version "2.0.0" version "2.0.0"
resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717" resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.0.tgz#75a4984efedc4b08975c5aeb73f530d02df25717"
integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ== integrity sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==
v8-compile-cache-lib@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"
integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==
yallist@^4.0.0: yallist@^4.0.0:
version "4.0.0" version "4.0.0"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
Generated
+1146 -1277
View File
File diff suppressed because it is too large. Load diff