New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphql-query-builder

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-query-builder - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

index.js

@@ -106,3 +106,3 @@ "use strict";

this.filter(_aliasS_OR_Filter);
} else if (undefined === _aliasS_OR_Filter && 2 == arguments.length){
} else if (undefined === _aliasS_OR_Filter && 2 === arguments.length){
throw new TypeError("You have passed undefined as Second argument to 'Query'");

@@ -109,0 +109,0 @@ } else if (undefined !== _aliasS_OR_Filter){

{
"name": "graphql-query-builder",
"version": "1.0.5",
"version": "1.0.6",
"description": "a simple but powerful graphQL query builder",

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

# graphql-query-builder
### If this was helpful, [★ it on github](https://github.com/codemeasandwich/graphql-query-builder)
a simple but powerful graphQL query builder
**info:**
[![npm version](https://badge.fury.io/js/graphql-query-builder.svg)](https://badge.fury.io/js/graphql-query-builder)
[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
[![pull requests welcome](https://img.shields.io/badge/Pull%20requests-welcome-pink.svg)](https://github.com/codemeasandwich/graphql-query-builder/pulls)
**tests:**
[![build](https://api.travis-ci.org/codemeasandwich/graphql-query-builder.svg)](https://travis-ci.org/codemeasandwich/graphql-query-builder)
[![Coverage Status](https://coveralls.io/repos/github/codemeasandwich/graphql-query-builder/badge.svg?branch=master)](https://coveralls.io/github/codemeasandwich/graphql-query-builder?branch=master)
**quality:**
[![Code Climate](https://codeclimate.com/github/codemeasandwich/graphql-query-builder/badges/gpa.svg)](https://codeclimate.com/github/codemeasandwich/graphql-query-builder)
[![bitHound Overall Score](https://www.bithound.io/github/codemeasandwich/graphql-query-builder/badges/score.svg)](https://www.bithound.io/github/codemeasandwich/graphql-query-builder)
[![Issue Count](https://codeclimate.com/github/codemeasandwich/graphql-query-builder/badges/issue_count.svg)](https://codeclimate.com/github/codemeasandwich/graphql-query-builder)
a simple but powerful graphQL query builder
### If this was helpful, [★ it on github](https://github.com/codemeasandwich/graphql-query-builder)

@@ -13,0 +26,0 @@ *tested on [**NodeJS**](https://nodejs.org) and [**Webpack**](https://webpack.github.io)*

@@ -11,7 +11,6 @@ "use strict";

it('should allow function chaining', function(){
it('should accept a single find value', function(){
let expeted = `user{age}`;
let user = new Query("user").find("age");
let expeted = `user{name}`;
let user = new Query("user").find("name");
expect(removeSpaces(expeted)).to.equal(removeSpaces(user));

@@ -44,9 +43,2 @@ });

it('should accept a single find value', function(){
let expeted = `user{name}`;
let user = new Query("user").find("name");
expect(removeSpaces(expeted)).to.equal(removeSpaces(user));
});
it('should accept a single find value with alia', function(){

@@ -194,4 +186,3 @@ let expeted = `user{nickname:name}`;

it('should throw Error if you accidentally pass an undefined', function(){
let alia = undefined;
expect(() => new Query("x",alia)).to.throw(Error);
expect(() => new Query("x",undefined)).to.throw(Error);
});

@@ -198,0 +189,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