@gql2ts/util
Advanced tools
Comparing version 0.6.0-alpha.113744b9 to 0.6.0-alpha.52a568e6
"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.113744b9", | ||
"version": "0.6.0-alpha.52a568e6", | ||
"description": "utilities for gql2ts", | ||
@@ -32,4 +32,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"graphql": "^0.9.1" | ||
"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
Updatedgraphql@^0.9.2