backport 7.3.4 → 7.3.5

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,9 +1,9 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { DocumentNode } from 'graphql';
3
3
  interface GithubError {
4
- type: string;
5
- path: string[];
6
- locations: {
4
+ type?: string;
5
+ path?: string[];
6
+ locations?: {
7
7
  line: number;
8
8
  column: number;
9
9
  }[];
@@ -15,7 +15,7 @@ function throwOnInvalidAccessToken({ error, repoOwner, repoName, }) {
15
15
  const statusCode = error.githubResponse.status;
16
16
  switch (statusCode) {
17
17
  case 200: {
18
- const repoNotFound = error.githubResponse.data.errors?.some((error) => error.type === 'NOT_FOUND' && error.path.join('.') === 'repository');
18
+ const repoNotFound = error.githubResponse.data.errors?.some((error) => error.type === 'NOT_FOUND' && error.path?.join('.') === 'repository');
19
19
  const grantedScopes = error.githubResponse.headers['x-oauth-scopes'] || '';
20
20
  const requiredScopes = error.githubResponse.headers['x-accepted-oauth-scopes'] || '';
21
21
  const ssoHeader = (0, maybe_1.maybe)(error.githubResponse.headers['x-github-sso']);
@@ -40,7 +40,7 @@ exports.parseRemoteConfig = parseRemoteConfig;
40
40
  function swallowMissingConfigFileException(error) {
41
41
  const { data, errors } = error.githubResponse.data;
42
42
  const missingConfigError = errors?.some((error) => {
43
- return error.path.includes('remoteConfig') && error.type === 'NOT_FOUND';
43
+ return error.path?.includes('remoteConfig') && error.type === 'NOT_FOUND';
44
44
  });
45
45
  // swallow error if it's just the config file that's missing
46
46
  if (missingConfigError && data != null) {
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "7.3.4";
1
+ export declare const PACKAGE_VERSION = "7.3.5";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PACKAGE_VERSION = void 0;
4
- exports.PACKAGE_VERSION = '7.3.4';
4
+ exports.PACKAGE_VERSION = '7.3.5';
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "branches",
15
15
  "branching"
16
16
  ],
17
- "version": "7.3.4",
17
+ "version": "7.3.5",
18
18
  "main": "./dist/entrypoint.module.js",
19
19
  "types": "dist/entrypoint.module.d.ts",
20
20
  "bin": {