Skip to content

Commit

Permalink
Merge pull request #13 from renatorib/code-tag
Browse files Browse the repository at this point in the history
Use gql from code-tag
  • Loading branch information
TrySound committed Jun 6, 2023
2 parents b4fe75e + b09dfab commit 1f362e5
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 14 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -29,6 +29,7 @@
],
"dependencies": {
"classnames": "^2.3.1",
"code-tag": "^1.1.0",
"graphql": "^15.5.0",
"graphql-request": "^6.1.0",
"graphql-tag": "^2.11.0",
Expand Down
2 changes: 1 addition & 1 deletion src/core/datatype.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";

type Or<Type, Or> = Type | Or;
type Maybe<Type> = Or<Type, null | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion src/datatypes/Author.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import { createDataType } from "../core/datatype";
import { Author_ActorFragment } from "../types";

Expand Down
2 changes: 1 addition & 1 deletion src/datatypes/Comment.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import { createDataType } from "../core/datatype";
import { Comment_IssueCommentFragment } from "../types";
import { Author } from "./Author";
Expand Down
2 changes: 1 addition & 1 deletion src/datatypes/Label.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import { createDataType } from "../core/datatype";
import { Label_LabelFragment } from "../types";

Expand Down
2 changes: 1 addition & 1 deletion src/datatypes/Labels.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import { isNonNull } from "../utils/func";
import { createDataType } from "../core/datatype";
import { Labels_LabelConnectionFragment } from "../types";
Expand Down
2 changes: 1 addition & 1 deletion src/datatypes/PageInfo.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import { createDataType } from "../core/datatype";
import { PageInfo_PageInfoFragment } from "../types";

Expand Down
2 changes: 1 addition & 1 deletion src/datatypes/Post.ts
@@ -1,5 +1,5 @@
import matter from "gray-matter";
import { gql } from "graphql-request";
import { gql } from "code-tag";
import { createDataType } from "../core/datatype";
import { Post_IssueFragment } from "../types";

Expand Down
2 changes: 1 addition & 1 deletion src/datatypes/PostReduced.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import { createDataType } from "../core/datatype";

import { Post } from "./Post";
Expand Down
2 changes: 1 addition & 1 deletion src/datatypes/Reactions.ts
@@ -1,6 +1,6 @@
import { gql } from "code-tag";
import { createDataType } from "../core/datatype";
import { Reactions_ReactionGroupFragment, ReactionContent } from "../types";
import { gql } from "graphql-request";

export enum Reaction {
ThumbsUp = "THUMBS_UP",
Expand Down
2 changes: 1 addition & 1 deletion src/methods/getComments.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import type { Unwrap } from "../types";
import type { GithubBlog } from "../github-blog";
import { GithubQueryParams } from "../utils/github-query";
Expand Down
2 changes: 1 addition & 1 deletion src/methods/getLabels.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import type { GithubBlog } from "../github-blog";
import type { Unwrap } from "../types";
import { isNonNull } from "../utils/func";
Expand Down
2 changes: 1 addition & 1 deletion src/methods/getPinnedPosts.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import type { Unwrap } from "../types";
import type { GithubBlog } from "../github-blog";
import { isNonNull } from "../utils/func";
Expand Down
2 changes: 1 addition & 1 deletion src/methods/getPost.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import type { Unwrap } from "../types";
import type { GithubBlog } from "../github-blog";
import { Post } from "../datatypes/Post";
Expand Down
2 changes: 1 addition & 1 deletion src/methods/getPosts.ts
@@ -1,4 +1,4 @@
import { gql } from "graphql-request";
import { gql } from "code-tag";
import type { Unwrap } from "../types";
import type { GithubBlog } from "../github-blog";
import { GithubQueryParams } from "../utils/github-query";
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -2342,6 +2342,11 @@ co@^4.6.0:
resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=

code-tag@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-tag/-/code-tag-1.1.0.tgz#8dc979c2bd2e2ac44d5a799abd07953e39cadf3d"
integrity sha512-qqvyRC9Fmnqy/1nK2Jz6FIk6F24nliVIVtQFg0r7PuZCZHfWO/c7eZHVlPxFKRSnOSIUUf/jrF1FG8j67FinPg==

collect-v8-coverage@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59"
Expand Down

0 comments on commit 1f362e5

Please sign in to comment.