Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ts-gql/tag

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-gql/tag - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

18

CHANGELOG.md
# @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 @@

18

dist/tag.cjs.dev.js

@@ -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;
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