Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gql2ts/util

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gql2ts/util - npm Package Compare versions

Comparing version 0.6.0-alpha.113744b9 to 0.6.0-alpha.52a568e6

5

fileIO.js
"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

4

fileIO.ts
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

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