@firestartr/cli 1.50.1-snapshot-39 → 1.50.1-snapshot-40

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/build/index.js CHANGED
@@ -298282,17 +298282,17 @@ async function getOctokitForOrg(org, paginated = false, genGithubAppToken = gene
298282
298282
  installationOrgId: await getInstallationID(org),
298283
298283
  });
298284
298284
  const options = { auth: auth };
298285
+ const test = new dist_src_Octokit({ auth: auth });
298286
+ console.dir(test, { depth: null });
298285
298287
  if (paginated) {
298286
- options.plugins = [dist_bundle_paginateRest];
298288
+ options.plugins = [dist_bundle_paginateRest, paginateGraphQL];
298287
298289
  }
298288
- const OctokitWithGraphQL = dist_src_Octokit.plugin(paginateGraphQL);
298289
- return new OctokitWithGraphQL(options);
298290
+ const octokit = new dist_src_Octokit(options);
298291
+ return octokit;
298290
298292
  }
298291
298293
  async function getOctokitFromPat(envVar) {
298292
- const OctokitWithGraphQL = dist_src_Octokit.plugin(paginateGraphQL);
298293
- return new OctokitWithGraphQL({
298294
- auth: process.env[envVar],
298295
- });
298294
+ const options = { auth: process.env[envVar], plugins: [dist_bundle_paginateRest, paginateGraphQL] };
298295
+ return new dist_src_Octokit(options);
298296
298296
  }
298297
298297
  /* harmony default export */ const src_auth = ({ getOctokitForOrg });
298298
298298
 
@@ -298358,7 +298358,7 @@ async function getOrgTeamsDirectAccess(org) {
298358
298358
  const response = await octokit.graphql.paginate(`
298359
298359
  query paginate($cursor: String, $org: String!) {
298360
298360
  organization(login: \$org) {
298361
- teams(first: 20, after: $cursor) {
298361
+ teams(first: 100, after: $cursor) {
298362
298362
  nodes {
298363
298363
  id
298364
298364
  name
@@ -4,11 +4,12 @@ import type { PaginateInterface } from '@octokit/plugin-paginate-rest/dist-types
4
4
  import type { paginateGraphQLInterface } from "@octokit/plugin-paginate-graphql/dist-types/index.js";
5
5
  export declare const generateGithubAppToken: (config: any) => Promise<string>;
6
6
  export declare function getGithubAppToken(org: string, genGithubAppToken?: any): Promise<string>;
7
- type OctoType = Octokit & Api & {
7
+ type ExtendedOctokit = Octokit & Api & {
8
8
  paginate: PaginateInterface;
9
9
  } & paginateGraphQLInterface;
10
- export declare function getOctokitForOrg(org: string, paginated?: boolean, genGithubAppToken?: any): Promise<OctoType>;
11
- export declare function getOctokitFromPat(envVar: string): Promise<OctoType>;
10
+ export { ExtendedOctokit };
11
+ export declare function getOctokitForOrg(org: string, paginated?: boolean, genGithubAppToken?: any): Promise<ExtendedOctokit>;
12
+ export declare function getOctokitFromPat(envVar: string): Promise<ExtendedOctokit>;
12
13
  declare const _default: {
13
14
  getOctokitForOrg: typeof getOctokitForOrg;
14
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.50.1-snapshot-39",
3
+ "version": "1.50.1-snapshot-40",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",