@ts-gql/tag
Advanced tools
Comparing version 0.2.0 to 0.3.0
# @ts-gql/tag | ||
## 0.3.0 | ||
### Minor Changes | ||
- [`e4c60ad`](https://github.com/Thinkmill/ts-gql/commit/e4c60adcc45abba018c4b9d4d0379e7d529a9af1) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use new technique to generate types. | ||
This requires you to use `@ts-gql/compiler` and `@ts-gql/babel-plugin` in addition to `@ts-gql/eslint-plugin`. | ||
Configuration also now lives in the `package.json` like this: | ||
```json | ||
{ | ||
"ts-gql": { | ||
"schema": "schema.graphql" | ||
} | ||
} | ||
``` | ||
## 0.2.0 | ||
@@ -4,0 +22,0 @@ |
@@ -5,20 +5,8 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _gql = _interopDefault(require('graphql-tag')); | ||
var gql = function gql() { | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
return function () { | ||
return _gql.apply(void 0, args); | ||
}; | ||
const gql = () => { | ||
throw new Error("Please include `@ts-gql/babel-plugin`"); | ||
}; | ||
var getDocumentNode = function getDocumentNode(node) { | ||
return node; | ||
}; | ||
const getDocumentNode = node => node; | ||
exports.getDocumentNode = getDocumentNode; | ||
exports.gql = gql; |
"use strict"; | ||
function _interopDefault(ex) { | ||
return ex && "object" == typeof ex && "default" in ex ? ex.default : ex; | ||
} | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -11,11 +7,6 @@ value: !0 | ||
var _gql = _interopDefault(require("graphql-tag")), gql = function() { | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key]; | ||
return function() { | ||
return _gql.apply(void 0, args); | ||
}; | ||
}, getDocumentNode = function(node) { | ||
return node; | ||
}; | ||
const gql = () => { | ||
throw new Error("Please include `@ts-gql/babel-plugin`"); | ||
}, getDocumentNode = node => node; | ||
exports.getDocumentNode = getDocumentNode, exports.gql = gql; |
@@ -1,16 +0,6 @@ | ||
import _gql from 'graphql-tag'; | ||
var gql = function gql() { | ||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { | ||
args[_key] = arguments[_key]; | ||
} | ||
return function () { | ||
return _gql.apply(void 0, args); | ||
}; | ||
const gql = () => { | ||
throw new Error("Please include `@ts-gql/babel-plugin`"); | ||
}; | ||
var getDocumentNode = function getDocumentNode(node) { | ||
return node; | ||
}; | ||
const getDocumentNode = node => node; | ||
export { getDocumentNode, gql }; |
@@ -5,3 +5,3 @@ import { DocumentNode } from "graphql"; | ||
type BaseTypedDocument = { document: string; result: any }; | ||
type BaseTypedDocument = { document?: string; result: any }; | ||
@@ -42,5 +42,3 @@ type BaseTypedQuery = BaseTypedDocument & { | ||
...interpolations: TypedDocumentNode<BaseTypedFragment>[] | ||
): <Key extends keyof Documents>( | ||
name: Key | ||
) => TypedDocumentNode<Documents[Key]>; | ||
): never; | ||
___isTsGqlTag: true; | ||
@@ -47,0 +45,0 @@ } |
{ | ||
"name": "@ts-gql/tag", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"main": "dist/tag.cjs.js", | ||
@@ -16,3 +16,4 @@ "module": "dist/tag.esm.js", | ||
"graphql": "^14.0.0" | ||
} | ||
}, | ||
"repository": "https://github.com/Thinkmill/ts-gql/tree/master/packages/tag" | ||
} |
@@ -1,5 +0,5 @@ | ||
import _gql from "graphql-tag"; | ||
export const gql = () => { | ||
throw new Error("Please include `@ts-gql/babel-plugin`"); | ||
}; | ||
export const gql = (...args) => () => _gql(...args); | ||
export const getDocumentNode = (node) => node; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
4607
68