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

graphql-tag

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-tag - npm Package Compare versions

Comparing version 0.1.15 to 0.1.16

4

CHANGELOG.md
# Change log
### v0.1.16
- Add caching to Webpack loader. [PR #16](https://github.com/apollostack/graphql-tag/pull/16)
### v0.1.15

@@ -4,0 +8,0 @@

5

loader.js
const gql = require('./');
module.exports = source => `module.exports = ${JSON.stringify(gql`${source}`)};`;
module.exports = function(source) {
this.cacheable();
return `module.exports = ${JSON.stringify(gql`${source}`)};`;
};
{
"name": "graphql-tag",
"version": "0.1.15",
"version": "0.1.16",
"description": "A JavaScript template literal tag that parses GraphQL queries",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -69,3 +69,3 @@ # graphql-tag

This package also includes a [webpack loader](https://webpack.github.io/docs/loaders.html). There are many benefits over this approach, which saves GraphQL ASTs processing time on client-side, optimizes bundle size and enable queries to be separated from script over `.graphql` files.
This package also includes a [webpack loader](https://webpack.github.io/docs/loaders.html). There are many benefits over this approach, which saves GraphQL ASTs processing time on client-side and enable queries to be separated from script over `.graphql` files.

@@ -72,0 +72,0 @@ ```js

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