You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

json-to-graphql-query

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-to-graphql-query - npm Package Compare versions

Comparing version

to
2.3.0

eslint.config.mjs

6

CHANGELOG.md
# json-to-graphql-query Changelog
## 2.3.0
- chore(migrate): Migrated from tslint(deprecated) to eslint configuration
- ci: Added lint:fix command to fix eslint errors
- chore: Added complimenting prettier configuration
## 2.2.6

@@ -4,0 +10,0 @@

6

lib/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

8

lib/jsonToGraphQLQuery.js

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

'__typeName',
'__name'
'__name',
];

@@ -139,3 +139,3 @@ function stringify(obj_from_json) {

: ''),
level
level,
]);

@@ -204,3 +204,3 @@ convertQuery(value, level + 1, output, options);

isEmpty: true,
contents: []
contents: [],
};

@@ -216,3 +216,3 @@ var stack = [rootContext];

isEmpty: true,
contents: []
contents: [],
};

@@ -219,0 +219,0 @@ stack[stack.length - 1].contents.push(context_1);

{
"name": "json-to-graphql-query",
"version": "2.2.6",
"version": "2.3.0",
"main": "lib/index.js",
"license": "MIT",
"scripts": {
"build": "tslint -p . && rm -rf lib/ && tsc",
"build": "eslint 'src/**/*.{ts,tsx,js,jsx}' && rm -rf lib/ && tsc",
"format": "prettier --write 'src/**/*.{ts,tsx,js,jsx,json,css,md}'",
"test": "mocha -r ts-node/register --recursive \"./src/**/__tests__/*\"",

@@ -21,10 +22,15 @@ "test-watch": "mocha -r ts-node/register --recursive \"./src/**/__tests__/*\" --watch --watch-extensions ts,tsx",

"@types/node": "16.11.22",
"@typescript-eslint/eslint-plugin": "8.5.0",
"@typescript-eslint/parser": "8.5.0",
"ansi-regex": "6.0.1",
"chai": "4.3.6",
"eslint": "9.10.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.2.1",
"mocha": "9.2.2",
"prettier": "3.3.3",
"sinon": "13.0.1",
"ts-node": "10.4.0",
"tslint": "6.1.3",
"typescript": "4.5.5",
"ansi-regex": "6.0.1"
"typescript": "4.7.4"
}
}

@@ -13,3 +13,3 @@ import { EnumType } from './types/EnumType';

'__typeName',
'__name'
'__name',
];

@@ -176,3 +176,3 @@

: ''),
level
level,
]);

@@ -268,3 +268,3 @@ convertQuery(value, level + 1, output, options);

isEmpty: true,
contents: []
contents: [],
};

@@ -281,3 +281,3 @@

isEmpty: true,
contents: []
contents: [],
};

@@ -284,0 +284,0 @@ stack[stack.length - 1].contents.push(context);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet