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

graphql2js

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql2js - npm Package Compare versions

Comparing version 1.4.0 to 2.0.0

.pnp.loader.mjs

38

bin/index.js

@@ -5,3 +5,7 @@ #!/usr/bin/env node

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) {

@@ -29,5 +33,5 @@ if (k2 === undefined) k2 = k;

var chokidar_1 = __importDefault(require("chokidar"));
var commander_1 = __importDefault(require("commander"));
var commander_1 = require("commander");
var fs = __importStar(require("fs"));
var glob_1 = __importDefault(require("glob"));
var glob_1 = require("glob");
var path_1 = require("path");

@@ -117,11 +121,11 @@ var fs_extra_1 = require("fs-extra");

try {
commander_1.default.description("Generate javascript files from GraphQL files, so you can import them. Uses babel-tag/loader under the hood.");
commander_1.default.option("-w, --watch", "Watch for file changes and automatically update ts files", false);
commander_1.default.option("-o, --output <outPath>", "Directory to write output files into. If it starts with {projectRoot} it will be resolved to the nearest parent folder with a package.json file in it.", "./bin");
commander_1.default.option("-d, --root <rootPath>", "Dir to consider source files relative to when calculating the output path. If it starts with {projectRoot} it will be resolved to the nearest parent folder with a package.json file in it.");
commander_1.default.option("-t, --emitDeclarations", "Emit .d.ts files along with each .js file");
commander_1.default.option("-v, --verbose", "More output", false);
commander_1.default.arguments("<patterns...>");
commander_1.default.parse(process.argv);
var _a = commander_1.default.opts(), emitDeclarations_1 = _a.emitDeclarations, verbose = _a.verbose, outPath_1 = _a.output, root = _a.root, watch = _a.watch;
commander_1.program.description("Generate javascript files from GraphQL files, so you can import them. Uses babel-tag/loader under the hood.");
commander_1.program.option("-w, --watch", "Watch for file changes and automatically update ts files", false);
commander_1.program.option("-o, --output <outPath>", "Directory to write output files into. If it starts with {projectRoot} it will be resolved to the nearest parent folder with a package.json file in it.", "./bin");
commander_1.program.option("-d, --root <rootPath>", "Dir to consider source files relative to when calculating the output path. If it starts with {projectRoot} it will be resolved to the nearest parent folder with a package.json file in it.");
commander_1.program.option("-t, --emitDeclarations", "Emit .d.ts files along with each .js file");
commander_1.program.option("-v, --verbose", "More output", false);
commander_1.program.arguments("<patterns...>");
commander_1.program.parse(process.argv);
var _a = commander_1.program.opts(), emitDeclarations_1 = _a.emitDeclarations, verbose = _a.verbose, outPath_1 = _a.output, root = _a.root, watch = _a.watch;
if (verbose) {

@@ -134,3 +138,3 @@ printFilenames = true;

}
var rootPath_1 = root || require("glob-parent")(commander_1.default.args[0]);
var rootPath_1 = root || require("glob-parent")(commander_1.program.args[0]);
if (!outPath_1) {

@@ -147,3 +151,3 @@ console.error("Root path not provided and could not be derived from input glob!");

if (watch) {
var watcher = chokidar_1.default.watch(commander_1.default.args, {
var watcher = chokidar_1.default.watch(commander_1.program.args, {
ignored: /(^|[\/\\])\../,

@@ -164,5 +168,5 @@ persistent: true,

var changedCount = 0;
for (var _i = 0, _b = commander_1.default.args; _i < _b.length; _i++) {
for (var _i = 0, _b = commander_1.program.args; _i < _b.length; _i++) {
var pattern = _b[_i];
for (var _c = 0, _d = glob_1.default.sync(pattern); _c < _d.length; _c++) {
for (var _c = 0, _d = (0, glob_1.sync)(pattern); _c < _d.length; _c++) {
var path = _d[_c];

@@ -190,2 +194,2 @@ fileCount += 1;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7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yxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUNqQjtLQUNGO0lBQUMsT0FBTyxDQUFDLEVBQUU7UUFDVixPQUFPLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ2pCLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7S0FDakI7QUFDSCxDQUFDLENBQUM7QUFFRixJQUFJLE9BQU8sQ0FBQyxJQUFJLEtBQUssTUFBTSxFQUFFO0lBQzNCLElBQUksRUFBRSxDQUFDO0NBQ1IifQ==
{
"name": "graphql2js",
"version": "1.4.0",
"version": "2.0.0",
"description": "Generate js files from .graphql files, so you can import them",

@@ -13,22 +13,23 @@ "main": "bin/index.js",

"dependencies": {
"chokidar": ">=3",
"commander": ">=7",
"fs-extra": ">=7",
"glob": ">=7",
"glob-parent": ">=5",
"graphql-tag": ">=2"
"chokidar": "^3.5.3",
"commander": "^10.0.1",
"fs-extra": "^11.1.1",
"glob": "^10.2.6",
"glob-parent": "^6.0.2",
"graphql-tag": "^2.12.6"
},
"peerDependencies": {
"graphql": ">=14"
"graphql": ">=16"
},
"devDependencies": {
"@types/chokidar": "2.1.3",
"@types/fs-extra": "9.0.13",
"@types/glob": "7.2.0",
"@types/fs-extra": "11.0.1",
"@types/glob": "8.1.0",
"@types/glob-parent": "5.1.1",
"@types/node": "16.11.36",
"graphql": "16.5.0",
"prettier": "2.7.0",
"typescript": "4.7.3"
}
"@types/node": "18.16.16",
"graphql": "16.6.0",
"prettier": "2.8.8",
"typescript": "4.9.5"
},
"packageManager": "yarn@3.6.0"
}

@@ -13,2 +13,6 @@ # graphql2js

Note that if you are not currently already using `graphql-tag/loader` you may be better off using
`graphql-codegen` to generate a file you can import uniformly in all environments instead of having
to have different solutions for different environments (e.g. webpack vs node)
## Installation

@@ -15,0 +19,0 @@

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