graphql-tag
Advanced tools
Comparing version 2.12.1 to 2.12.2
# Change log | ||
### v2.12.2 | ||
* Avoid using `Object.assign` to attach extra properties to `gql`. <br/> | ||
[@benjamn](http://github.com/benjamn) in [#380](https://github.com/apollographql/graphql-tag/pull/380) | ||
### v2.12.1 | ||
@@ -4,0 +9,0 @@ |
@@ -112,5 +112,4 @@ (function (global, factory) { | ||
} | ||
var index = Object.assign(gql, { | ||
var extras = { | ||
gql: gql, | ||
"default": gql, | ||
resetCaches: resetCaches, | ||
@@ -120,5 +119,10 @@ disableFragmentWarnings: disableFragmentWarnings, | ||
disableExperimentalFragmentVariables: disableExperimentalFragmentVariables | ||
}); | ||
}; | ||
(function (gql_1) { | ||
gql_1.gql = extras.gql, gql_1.resetCaches = extras.resetCaches, gql_1.disableFragmentWarnings = extras.disableFragmentWarnings, gql_1.enableExperimentalFragmentVariables = extras.enableExperimentalFragmentVariables, gql_1.disableExperimentalFragmentVariables = extras.disableExperimentalFragmentVariables; | ||
})(gql || (gql = {})); | ||
gql["default"] = gql; | ||
var gql$1 = gql; | ||
exports.default = index; | ||
exports.default = gql$1; | ||
exports.disableExperimentalFragmentVariables = disableExperimentalFragmentVariables; | ||
@@ -125,0 +129,0 @@ exports.disableFragmentWarnings = disableFragmentWarnings; |
import { DocumentNode } from 'graphql/language/ast'; | ||
export declare function gql(literals: string | readonly string[], ...args: any[]): DocumentNode; | ||
export declare namespace gql { | ||
var _a: typeof import(".").gql; | ||
export { _a as default }; | ||
} | ||
export declare function resetCaches(): void; | ||
@@ -7,11 +11,6 @@ export declare function disableFragmentWarnings(): void; | ||
export declare function disableExperimentalFragmentVariables(): void; | ||
declare const _default: typeof gql & { | ||
gql: typeof gql; | ||
default: typeof gql; | ||
resetCaches: typeof resetCaches; | ||
disableFragmentWarnings: typeof disableFragmentWarnings; | ||
enableExperimentalFragmentVariables: typeof enableExperimentalFragmentVariables; | ||
disableExperimentalFragmentVariables: typeof disableExperimentalFragmentVariables; | ||
}; | ||
export default _default; | ||
export declare namespace gql { | ||
const gql: typeof import(".").gql, resetCaches: typeof import(".").resetCaches, disableFragmentWarnings: typeof import(".").disableFragmentWarnings, enableExperimentalFragmentVariables: typeof import(".").enableExperimentalFragmentVariables, disableExperimentalFragmentVariables: typeof import(".").disableExperimentalFragmentVariables; | ||
} | ||
export default gql; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -108,5 +108,4 @@ import { __assign } from "tslib"; | ||
} | ||
export default Object.assign(gql, { | ||
var extras = { | ||
gql: gql, | ||
"default": gql, | ||
resetCaches: resetCaches, | ||
@@ -116,3 +115,8 @@ disableFragmentWarnings: disableFragmentWarnings, | ||
disableExperimentalFragmentVariables: disableExperimentalFragmentVariables | ||
}); | ||
}; | ||
(function (gql_1) { | ||
gql_1.gql = extras.gql, gql_1.resetCaches = extras.resetCaches, gql_1.disableFragmentWarnings = extras.disableFragmentWarnings, gql_1.enableExperimentalFragmentVariables = extras.enableExperimentalFragmentVariables, gql_1.disableExperimentalFragmentVariables = extras.disableExperimentalFragmentVariables; | ||
})(gql || (gql = {})); | ||
gql["default"] = gql; | ||
export default gql; | ||
//# sourceMappingURL=index.js.map |
@@ -113,5 +113,4 @@ 'use strict'; | ||
} | ||
var gql$1 = Object.assign(gql, { | ||
var extras = { | ||
gql: gql, | ||
"default": gql, | ||
resetCaches: resetCaches, | ||
@@ -121,3 +120,8 @@ disableFragmentWarnings: disableFragmentWarnings, | ||
disableExperimentalFragmentVariables: disableExperimentalFragmentVariables | ||
}); | ||
}; | ||
(function (gql_1) { | ||
gql_1.gql = extras.gql, gql_1.resetCaches = extras.resetCaches, gql_1.disableFragmentWarnings = extras.disableFragmentWarnings, gql_1.enableExperimentalFragmentVariables = extras.enableExperimentalFragmentVariables, gql_1.disableExperimentalFragmentVariables = extras.disableExperimentalFragmentVariables; | ||
})(gql || (gql = {})); | ||
gql["default"] = gql; | ||
var gql$1 = gql; | ||
@@ -124,0 +128,0 @@ var loader = require('../loader'); |
{ | ||
"name": "graphql-tag", | ||
"version": "2.12.1", | ||
"version": "2.12.2", | ||
"description": "A JavaScript template literal tag that parses GraphQL queries", | ||
@@ -5,0 +5,0 @@ "main": "./main.js", |
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 not supported yet
Sorry, the diff of this file is not supported yet
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
143437
1096