@gql2ts/util
Advanced tools
Comparing version 0.6.0-alpha.7c8d6c0a to 0.6.0-alpha.93b48d62
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fs = require("fs"); | ||
exports.badWriteHandler = err => { if (err) { | ||
throw err; | ||
} }; | ||
exports.readFile = fileName => JSON.parse(fs.readFileSync(fileName).toString()); | ||
exports.writeToFile = (fileName, data) => fs.writeFile(fileName, data, err => err && console.error('Failed to write', err)); | ||
exports.writeToFile = (fileName, data) => fs.writeFile(fileName, data, exports.badWriteHandler); | ||
//# sourceMappingURL=fileIO.js.map |
import * as fs from 'fs'; | ||
export const badWriteHandler: (err?: Error) => void = err => { if (err) { throw err; } }; | ||
export const readFile: (fileName: string) => string = fileName => JSON.parse(fs.readFileSync(fileName).toString()); | ||
export const writeToFile: (fileName: string, data: string) => void = | ||
(fileName, data) => fs.writeFile(fileName, data, err => err && console.error('Failed to write', err) ); | ||
(fileName, data) => fs.writeFile(fileName, data, badWriteHandler); |
{ | ||
"name": "@gql2ts/util", | ||
"private": false, | ||
"version": "0.6.0-alpha.7c8d6c0a", | ||
"version": "0.6.0-alpha.93b48d62", | ||
"description": "utilities for gql2ts", | ||
@@ -30,3 +30,6 @@ "main": "index.js", | ||
"*.js.map" | ||
] | ||
], | ||
"dependencies": { | ||
"graphql": "^0.9.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7837
131
1
+ Addedgraphql@^0.9.2
+ Addedgraphql@0.9.6(transitive)
+ Addediterall@1.3.0(transitive)