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

graphql-helper

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-helper - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

lib.js

@@ -171,3 +171,3 @@ 'use strict';

toString: function toString() {
return partials.map(function (p) {
return '__typename ' + partials.map(function (p) {
return p.toString();

@@ -174,0 +174,0 @@ }).join(' ');

{
"name": "graphql-helper",
"version": "0.0.3",
"version": "0.0.4",
"description": "A simple helper library for making GraphQL queries. For browser usage, ensure that you have a Promise polyfill.",

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

# graphql-helper
A GraphQL helper library intended for use on both the browser and server, using ES6 tagged template strings.
This library is meant for statically determined queries, and encourages the use of variables over polyfills.
This library is meant for statically determined queries, and encourages the use of variables over string generation.
**n.b.** This library comes with `isomorphic-fetch`, but does not come with a Promise polyfill.
- **n.b.** This library comes with `isomorphic-fetch`, but does not come with a Promise polyfill.
- **TODO:** Support option for providing your own "fetch" method
- **TODO:** Support for static analysis and pre-compilation of queries
**TODO:** Support option for providing your own "fetch" method
**TODO:** Support for static analysis and pre-compilation of queries
```bash

@@ -12,0 +11,0 @@ npm install --save graphql-helper

@@ -157,3 +157,3 @@ /* @flow */

{ __GRAPHQL_QUERY_PARTIAL__: true
, toString: () => partials.map(p => p.toString()).join(' ')
, toString: () => '__typename ' + partials.map(p => p.toString()).join(' ')
, fragments: mergeFragments((partials : any))

@@ -160,0 +160,0 @@ }

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