@expo/eas-build-job 0.2.103 → 0.2.104

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/dist/common.d.ts CHANGED
@@ -25,7 +25,7 @@ export declare enum BuildTrigger {
25
25
  EAS_CLI = "EAS_CLI",
26
26
  GIT_BASED_INTEGRATION = "GIT_BASED_INTEGRATION"
27
27
  }
28
- export declare type ArchiveSource = {
28
+ export type ArchiveSource = {
29
29
  type: ArchiveSourceType.NONE;
30
30
  } | {
31
31
  type: ArchiveSourceType.S3;
@@ -52,9 +52,9 @@ export declare type ArchiveSource = {
52
52
  gitRef: string;
53
53
  };
54
54
  export declare const ArchiveSourceSchema: Joi.ObjectSchema<ArchiveSource>;
55
- export declare type Env = Record<string, string>;
55
+ export type Env = Record<string, string>;
56
56
  export declare const EnvSchema: Joi.ObjectSchema<any>;
57
- export declare type EnvironmentSecret = {
57
+ export type EnvironmentSecret = {
58
58
  name: string;
59
59
  type: EnvironmentSecretType;
60
60
  value: string;
@@ -63,7 +63,7 @@ export declare enum EnvironmentSecretType {
63
63
  STRING = "string",
64
64
  FILE = "file"
65
65
  }
66
- export declare const EnvironmentSecretsSchema: Joi.ArraySchema;
66
+ export declare const EnvironmentSecretsSchema: Joi.ArraySchema<any[]>;
67
67
  export interface Cache {
68
68
  disabled: boolean;
69
69
  clear: boolean;
package/dist/ios.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import Joi from 'joi';
2
2
  import { ArchiveSource, Env, Platform, Workflow, Cache, EnvironmentSecret, BuildTrigger, BuildMode } from './common';
3
- export declare type DistributionType = 'store' | 'internal' | 'simulator';
3
+ export type DistributionType = 'store' | 'internal' | 'simulator';
4
4
  export interface TargetCredentials {
5
5
  provisioningProfileBase64: string;
6
6
  distributionCertificate: DistributionCertificate;
7
7
  }
8
- declare type Target = string;
9
- export declare type BuildCredentials = Record<Target, TargetCredentials>;
8
+ type Target = string;
9
+ export type BuildCredentials = Record<Target, TargetCredentials>;
10
10
  export interface DistributionCertificate {
11
11
  dataBase64: string;
12
12
  password: string;
package/dist/job.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import Joi from 'joi';
2
2
  import * as Android from './android';
3
3
  import * as Ios from './ios';
4
- export declare type Job = Android.Job | Ios.Job;
4
+ export type Job = Android.Job | Ios.Job;
5
5
  export declare const JobSchema: Joi.ObjectSchema<Job>;
6
6
  export declare function sanitizeJob(rawJob: object): Job;
package/dist/job.js CHANGED
@@ -44,11 +44,11 @@ function sanitizeJob(rawJob) {
44
44
  convert: true,
45
45
  abortEarly: false,
46
46
  });
47
- const job = value;
48
47
  if (error) {
49
48
  throw error;
50
49
  }
51
50
  else {
51
+ const job = value;
52
52
  return job;
53
53
  }
54
54
  }
package/dist/job.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"job.js","sourceRoot":"","sources":["../src/job.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAsB;AAEtB,qCAAoC;AACpC,mDAAqC;AACrC,2CAA6B;AAIhB,QAAA,SAAS,GAAG,aAAG,CAAC,MAAM,CAAM;IACvC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;SACnB,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAQ,CAAC,CAAC;SACjC,QAAQ,EAAE;CACd,CAAC;KACC,IAAI,CAAC,aAAG,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,iBAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;KACvF,IAAI,CAAC,aAAG,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,iBAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;AAEnF,SAAgB,WAAW,CAAC,MAAc;IACxC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,iBAAS,CAAC,QAAQ,CAAC,MAAM,EAAE;QAClD,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,KAAK;KAClB,CAAC,CAAC;IAEH,MAAM,GAAG,GAAQ,KAAK,CAAC;IAEvB,IAAI,KAAK,EAAE;QACT,MAAM,KAAK,CAAC;KACb;SAAM;QACL,OAAO,GAAG,CAAC;KACZ;AACH,CAAC;AAdD,kCAcC","sourcesContent":["import Joi from 'joi';\n\nimport { Platform } from './common';\nimport * as Android from './android';\nimport * as Ios from './ios';\n\nexport type Job = Android.Job | Ios.Job;\n\nexport const JobSchema = Joi.object<Job>({\n platform: Joi.string()\n .valid(...Object.values(Platform))\n .required(),\n})\n .when(Joi.object({ platform: Platform.ANDROID }).unknown(), { then: Android.JobSchema })\n .when(Joi.object({ platform: Platform.IOS }).unknown(), { then: Ios.JobSchema });\n\nexport function sanitizeJob(rawJob: object): Job {\n const { value, error } = JobSchema.validate(rawJob, {\n stripUnknown: true,\n convert: true,\n abortEarly: false,\n });\n\n const job: Job = value;\n\n if (error) {\n throw error;\n } else {\n return job;\n }\n}\n"]}
1
+ {"version":3,"file":"job.js","sourceRoot":"","sources":["../src/job.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAsB;AAEtB,qCAAoC;AACpC,mDAAqC;AACrC,2CAA6B;AAIhB,QAAA,SAAS,GAAG,aAAG,CAAC,MAAM,CAAM;IACvC,QAAQ,EAAE,aAAG,CAAC,MAAM,EAAE;SACnB,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAQ,CAAC,CAAC;SACjC,QAAQ,EAAE;CACd,CAAC;KACC,IAAI,CAAC,aAAG,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,iBAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;KACvF,IAAI,CAAC,aAAG,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,iBAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC;AAEnF,SAAgB,WAAW,CAAC,MAAc;IACxC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,iBAAS,CAAC,QAAQ,CAAC,MAAM,EAAE;QAClD,YAAY,EAAE,IAAI;QAClB,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,KAAK;KAClB,CAAC,CAAC;IAEH,IAAI,KAAK,EAAE;QACT,MAAM,KAAK,CAAC;KACb;SAAM;QACL,MAAM,GAAG,GAAQ,KAAK,CAAC;QACvB,OAAO,GAAG,CAAC;KACZ;AACH,CAAC;AAbD,kCAaC","sourcesContent":["import Joi from 'joi';\n\nimport { Platform } from './common';\nimport * as Android from './android';\nimport * as Ios from './ios';\n\nexport type Job = Android.Job | Ios.Job;\n\nexport const JobSchema = Joi.object<Job>({\n platform: Joi.string()\n .valid(...Object.values(Platform))\n .required(),\n})\n .when(Joi.object({ platform: Platform.ANDROID }).unknown(), { then: Android.JobSchema })\n .when(Joi.object({ platform: Platform.IOS }).unknown(), { then: Ios.JobSchema });\n\nexport function sanitizeJob(rawJob: object): Job {\n const { value, error } = JobSchema.validate(rawJob, {\n stripUnknown: true,\n convert: true,\n abortEarly: false,\n });\n\n if (error) {\n throw error;\n } else {\n const job: Job = value;\n return job;\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  import Joi from 'joi';
2
2
  import { Workflow } from './common';
3
- export declare type Metadata = {
3
+ export type Metadata = {
4
4
  /**
5
5
  * Tracking context
6
6
  * It's used to track build process across different Expo services and tools.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/eas-build-job",
3
- "version": "0.2.103",
3
+ "version": "0.2.104",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -12,24 +12,25 @@
12
12
  "build": "tsc",
13
13
  "prepack": "rm -rf dist && tsc -p tsconfig.build.json",
14
14
  "test": "jest --config jest.config.js",
15
- "test:watch": "jest --config jest.config.js --watch"
15
+ "test:watch": "jest --config jest.config.js --watch",
16
+ "clean": "rm -rf node_modules dist coverage"
16
17
  },
17
18
  "author": "Expo <support@expo.io>",
18
19
  "bugs": "https://github.com/expo/eas-build/issues",
19
20
  "license": "MIT",
20
21
  "devDependencies": {
21
- "@types/jest": "^26.0.20",
22
- "@types/node": "^16.11.26",
23
- "jest": "^27.5.1",
24
- "ts-jest": "^27.1.3",
25
- "typescript": "^4.6.2"
22
+ "@types/jest": "^29.2.6",
23
+ "@types/node": "^18.11.18",
24
+ "jest": "^29.4.0",
25
+ "ts-jest": "^29.0.5",
26
+ "typescript": "^4.9.4"
26
27
  },
27
28
  "dependencies": {
28
- "joi": "^17.4.2",
29
- "semver": "^7.3.5"
29
+ "joi": "^17.7.0",
30
+ "semver": "^7.3.8"
30
31
  },
31
32
  "volta": {
32
- "node": "16.13.2",
33
- "yarn": "1.22.17"
33
+ "node": "18.13.0",
34
+ "yarn": "1.22.19"
34
35
  }
35
36
  }