🔥 Blazing fast builds
😇 CommonJS bundle
🌲 .mjs
bundle
✨ .d.ts
bundle
🧐 Source maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Taken mostly from prisma-labs/graphql-request | |
import "isomorphic-unfetch"; | |
import { print } from "graphql/language/printer"; | |
import { DocumentNode } from "graphql"; | |
export type Variables = { [key: string]: any }; | |
export interface Headers { | |
[key: string]: string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// AUTO-GENERATED | |
import { | |
NameNode, | |
DocumentNode, | |
OperationDefinitionNode, | |
VariableDefinitionNode, | |
VariableNode, | |
SelectionSetNode, | |
FieldNode, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
height: 100vh; | |
margin: 0; | |
width: 100vw; | |
overflow: hidden; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
selector, | |
atom as recoilAtom, | |
useRecoilState, | |
useSetRecoilState, | |
AtomEffect, | |
RecoilState, | |
} from "recoil"; | |
import type { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export { default } from 'preact/compat' | |
export * from 'preact/compat' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Options { | |
uri: string; | |
cdn?: string; | |
version?: string; | |
} | |
export declare function renderGraphiQL(props: Options): string; | |
export default function renderGraphiQL(props: Options): string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const shellac = require('shellac').default; | |
shellac` | |
$$ node scripts.js ${process.argv.slice(1).join(' ')} | |
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const { existsSync, promises: fs } = require('fs') | |
const path = require('path') | |
if (require.main === module) { | |
main().catch((error) => { | |
console.error(error) | |
process.exit(1) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Shamelessly copied from the amazing `urql` client | |
* https://github.com/FormidableLabs/urql/blob/main/packages/core/src/utils/error.ts | |
*/ | |
import { GraphQLError } from "graphql/error/GraphQLError"; | |
const generateErrorMessage = ( | |
networkErr?: Error, | |
graphQlErrs?: GraphQLError[] |
OlderNewer