json-to-graphql-query
Advanced tools
Comparing version
# 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 @@ |
"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; |
@@ -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
50519
1.54%685
3.47%15
50%26
-3.7%