eas-cli 16.4.1 → 16.6.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.
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.writePlistAsync = exports.readPlistAsync = void 0;
3
+ exports.parseBinaryPlistBuffer = exports.writePlistAsync = exports.readPlistAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const plist_1 = tslib_1.__importDefault(require("@expo/plist"));
6
+ const bplist_parser_1 = tslib_1.__importDefault(require("bplist-parser"));
6
7
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
7
8
  const path_1 = tslib_1.__importDefault(require("path"));
8
9
  async function readPlistAsync(plistPath) {
@@ -27,3 +28,25 @@ async function writePlistAsync(plistPath, plistObject) {
27
28
  await fs_extra_1.default.writeFile(plistPath, contents);
28
29
  }
29
30
  exports.writePlistAsync = writePlistAsync;
31
+ const CHAR_CHEVRON_OPEN = 60;
32
+ const CHAR_B_LOWER = 98;
33
+ function parseBinaryPlistBuffer(contents) {
34
+ if (contents[0] === CHAR_CHEVRON_OPEN) {
35
+ const info = plist_1.default.parse(contents.toString());
36
+ if (Array.isArray(info)) {
37
+ return info[0];
38
+ }
39
+ return info;
40
+ }
41
+ else if (contents[0] === CHAR_B_LOWER) {
42
+ const info = bplist_parser_1.default.parseBuffer(contents);
43
+ if (Array.isArray(info)) {
44
+ return info[0];
45
+ }
46
+ return info;
47
+ }
48
+ else {
49
+ throw new Error(`Cannot parse plist of type byte (0x${contents[0].toString(16)})`);
50
+ }
51
+ }
52
+ exports.parseBinaryPlistBuffer = parseBinaryPlistBuffer;
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "16.4.1",
2
+ "version": "16.6.0",
3
3
  "commands": {
4
4
  "analytics": {
5
5
  "id": "analytics",
@@ -4171,7 +4171,7 @@
4171
4171
  },
4172
4172
  "workflow:run": {
4173
4173
  "id": "workflow:run",
4174
- "description": "Run an EAS workflow",
4174
+ "description": "run an EAS workflow",
4175
4175
  "strict": true,
4176
4176
  "pluginName": "eas-cli",
4177
4177
  "pluginAlias": "eas-cli",
@@ -4183,6 +4183,19 @@
4183
4183
  "type": "boolean",
4184
4184
  "description": "Run the command in non-interactive mode.",
4185
4185
  "allowNo": false
4186
+ },
4187
+ "wait": {
4188
+ "name": "wait",
4189
+ "type": "boolean",
4190
+ "summary": "Wait for workflow run to complete",
4191
+ "description": "Exit codes: 0 = success, 11 = failure, 12 = canceled, 13 = wait aborted.",
4192
+ "allowNo": true
4193
+ },
4194
+ "json": {
4195
+ "name": "json",
4196
+ "type": "boolean",
4197
+ "description": "Enable JSON output, non-JSON messages will be printed to stderr.",
4198
+ "allowNo": false
4186
4199
  }
4187
4200
  },
4188
4201
  "args": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eas-cli",
3
3
  "description": "EAS command line tool",
4
- "version": "16.4.1",
4
+ "version": "16.6.0",
5
5
  "author": "Expo <support@expo.dev>",
6
6
  "bin": {
7
7
  "eas": "./bin/run"
@@ -38,6 +38,7 @@
38
38
  "ajv": "8.11.0",
39
39
  "ajv-formats": "2.1.1",
40
40
  "better-opn": "3.0.2",
41
+ "bplist-parser": "^0.3.0",
41
42
  "chalk": "4.1.2",
42
43
  "cli-progress": "3.12.0",
43
44
  "dateformat": "4.6.3",
@@ -239,5 +240,5 @@
239
240
  "node": "20.11.0",
240
241
  "yarn": "1.22.21"
241
242
  },
242
- "gitHead": "c8aef9dc3abecca3c969e63501caa45db91fdd25"
243
+ "gitHead": "373a4d40fa621ef2e5d7c9a4c5243c80e587d490"
243
244
  }