New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gh-gql

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-gql - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

8

lib/__generated__/sdk/commit.d.ts

@@ -78,6 +78,6 @@ import * as Types from '../types';

};
export declare const CommitsHistoryFragmentDoc: any;
export declare const GetCountDocument: any;
export declare const GetFromDocument: any;
export declare const GetListDocument: any;
export declare const CommitsHistoryFragmentDoc: import("graphql").DocumentNode;
export declare const GetCountDocument: import("graphql").DocumentNode;
export declare const GetFromDocument: import("graphql").DocumentNode;
export declare const GetListDocument: import("graphql").DocumentNode;
export declare function getSdk(client: GraphQLClient): {

@@ -84,0 +84,0 @@ getCount(variables: IGetCountQueryVariables): Promise<IGetCountQuery>;

@@ -35,4 +35,4 @@ import * as Types from '../types';

};
export declare const GetContentDocument: any;
export declare const GetIdDocument: any;
export declare const GetContentDocument: import("graphql").DocumentNode;
export declare const GetIdDocument: import("graphql").DocumentNode;
export declare function getSdk(client: GraphQLClient): {

@@ -39,0 +39,0 @@ getContent(variables: IGetContentQueryVariables): Promise<IGetContentQuery>;

@@ -18,5 +18,5 @@ import * as Types from '../types';

};
export declare const GetLastDocument: any;
export declare const GetLastDocument: import("graphql").DocumentNode;
export declare function getSdk(client: GraphQLClient): {
getLast(variables: IGetLastQueryVariables): Promise<IGetLastQuery>;
};

@@ -35,5 +35,20 @@ import * as Types from '../types';

};
export declare const GetInfoDocument: any;
export declare type IGetListQueryVariables = {
login: Types.Scalars['String'];
limit: Types.Scalars['Int'];
};
export declare type IGetListQuery = {
user: Types.Maybe<{
repositories: {
nodes: Types.Maybe<Array<Types.Maybe<{
name: string;
}>>>;
};
}>;
};
export declare const GetInfoDocument: import("graphql").DocumentNode;
export declare const GetListDocument: import("graphql").DocumentNode;
export declare function getSdk(client: GraphQLClient): {
getInfo(variables: IGetInfoQueryVariables): Promise<IGetInfoQuery>;
getList(variables: IGetListQueryVariables): Promise<IGetListQuery>;
};

@@ -37,2 +37,13 @@ "use strict";

`;
exports.GetListDocument = graphql_tag_1.default `
query getList($login: String!, $limit: Int!) {
user(login: $login) {
repositories(first: $limit) {
nodes {
name
}
}
}
}
`;
function getSdk(client) {

@@ -43,2 +54,5 @@ return {

},
getList(variables) {
return client.request(graphql_1.print(exports.GetListDocument), variables);
},
};

@@ -45,0 +59,0 @@ }

@@ -7,2 +7,3 @@ import { GraphQLClient } from 'graphql-request';

getInfo(variables: SDK.IGetInfoQueryVariables): Promise<SDK.IGetInfoQuery['viewer']['repository']>;
getList(variables: SDK.IGetListQueryVariables): Promise<string[]>;
}

@@ -23,4 +23,8 @@ "use strict";

}
async getList(variables) {
const response = await this.execute(this.sdk.getList, variables);
return (response.user?.repositories.nodes || []).map(node => node.name);
}
}
exports.default = RepositoryQuery;
//# sourceMappingURL=Repository.js.map
{
"name": "gh-gql",
"version": "1.1.0",
"version": "1.2.0",
"description": "GitHub GraphQL API helper for TypeScript",

@@ -18,6 +18,6 @@ "homepage": "https://github.com/keindev/gh-gql#readme",

],
"main": "lib/provider.js",
"unpkg": "lib/provider.js",
"module": "lib/provider.js",
"types": "lib/provider.d.ts",
"main": "lib/Provider.js",
"unpkg": "lib/Provider.js",
"module": "lib/Provider.js",
"types": "lib/Provider.d.ts",
"repository": {

@@ -50,23 +50,23 @@ "type": "git",

"graphql-request": "^1.8.2",
"graphql-tag": "^2.10.1",
"graphql-tag": "^2.10.3",
"universal-user-agent": "^4.0.0"
},
"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/core": "^7.8.4",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
"@graphql-codegen/add": "^1.12.1",
"@graphql-codegen/cli": "^1.12.1",
"@graphql-codegen/import-types-preset": "^1.12.1",
"@graphql-codegen/near-operation-file-preset": "^1.12.1",
"@graphql-codegen/typescript": "1.12.1",
"@graphql-codegen/typescript-graphql-request": "^1.12.1",
"@graphql-codegen/typescript-operations": "1.12.1",
"@types/jest": "^25.1.1",
"@types/node": "^13.5.2",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"@graphql-codegen/add": "^1.12.2",
"@graphql-codegen/cli": "^1.12.2",
"@graphql-codegen/import-types-preset": "^1.12.2",
"@graphql-codegen/near-operation-file-preset": "^1.12.2",
"@graphql-codegen/typescript": "1.12.2",
"@graphql-codegen/typescript-graphql-request": "^1.12.2",
"@graphql-codegen/typescript-operations": "1.12.2",
"@types/jest": "^25.1.3",
"@types/node": "^13.7.4",
"@typescript-eslint/eslint-plugin": "^2.20.0",
"@typescript-eslint/parser": "^2.20.0",
"babel-jest": "^25.1.0",
"changelog-guru": "^1.0.0",
"cspell": "^4.0.46",
"cspell": "^4.0.50",
"dotenv-cli": "^3.1.0",

@@ -76,12 +76,12 @@ "eslint": "^6.8.0",

"eslint-config-prettier": "^6.10.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-jest": "^23.6.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^23.7.0",
"ghinfo": "^1.0.6",
"husky": "^4.2.1",
"husky": "^4.2.3",
"jest": "^25.1.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"ts-jest": "^25.0.0",
"ts-jest": "^25.2.1",
"typescript": "^3.7.5"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc