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

graphql-document-collector

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-document-collector - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

9

lib/__tests__/flatten.js
"use strict";
var chai_1 = require('chai');
var loader_1 = require('../loader');
var flatten_1 = require('../flatten');
var path = require('path');
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var loader_1 = require("../loader");
var flatten_1 = require("../flatten");
var path = require("path");
describe('Directory structure flattener', function () {

@@ -7,0 +8,0 @@ it('should make docs accessible by path', function () {

"use strict";
var index_1 = require('../index');
var chai_1 = require('chai');
var path = require('path');
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("../index");
var chai_1 = require("chai");
var path = require("path");
var documentsJson = require('../../example/documents.json');

@@ -6,0 +7,0 @@ describe('Load, Transform and Flatten', function () {

"use strict";
var chai_1 = require('chai');
var loader_1 = require('../loader');
var path = require('path');
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var loader_1 = require("../loader");
var path = require("path");
describe('GraphQL project loader', function () {

@@ -6,0 +7,0 @@ describe('loadDocument', function () {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
;
//# sourceMappingURL=ast.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function flattenDirectoryStructure(dir, flatMap, cwd) {

@@ -3,0 +4,0 @@ if (flatMap === void 0) { flatMap = {}; }

@@ -5,8 +5,9 @@ "use strict";

}
var transforms_1 = require('./transforms');
var flatten_1 = require('./flatten');
var loader_1 = require('./loader');
__export(require('./transforms'));
__export(require('./flatten'));
__export(require('./loader'));
Object.defineProperty(exports, "__esModule", { value: true });
var transforms_1 = require("./transforms");
var flatten_1 = require("./flatten");
var loader_1 = require("./loader");
__export(require("./transforms"));
__export(require("./flatten"));
__export(require("./loader"));
function loadTransformAndFlatten(basePath, globPath, transforms) {

@@ -19,4 +20,3 @@ if (transforms === void 0) { transforms = [transforms_1.resolveFragments]; }

}
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = loadTransformAndFlatten;
//# sourceMappingURL=index.js.map
"use strict";
var parser_1 = require('graphql-tag/parser');
var promisify_1 = require('./util/promisify');
var fs = require('fs');
var path = require('path');
var cbGlob = require('glob');
Object.defineProperty(exports, "__esModule", { value: true });
var parser_1 = require("graphql-tag/parser");
var promisify_1 = require("./util/promisify");
var fs = require("fs");
var path = require("path");
var cbGlob = require("glob");
var readFile = promisify_1.promisify(fs.readFile);

@@ -8,0 +9,0 @@ var glob = promisify_1.promisify(cbGlob);

"use strict";
var chai_1 = require('chai');
var loader_1 = require('../../loader');
var resolveFragments_1 = require('../resolveFragments');
var path = require('path');
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var loader_1 = require("../../loader");
var resolveFragments_1 = require("../resolveFragments");
var path = require("path");
describe('Resolve fragments transformer', function () {

@@ -7,0 +8,0 @@ describe('createFragmentMap', function () {

"use strict";
var resolveFragments_1 = require('./resolveFragments');
Object.defineProperty(exports, "__esModule", { value: true });
var resolveFragments_1 = require("./resolveFragments");
exports.resolveFragments = resolveFragments_1.resolveFragments;

@@ -4,0 +5,0 @@ function applyTransforms(dir) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function createFragmentMap(dir, fragmentMap) {

@@ -3,0 +4,0 @@ if (fragmentMap === void 0) { fragmentMap = {}; }

"use strict";
var chai_1 = require('chai');
var promisify_1 = require('../promisify');
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var promisify_1 = require("../promisify");
describe('Promisification utility', function () {

@@ -5,0 +6,0 @@ var simpleFunc = function (cb) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function promisify(originalFunction) {

@@ -6,11 +7,11 @@ return function promisified() {

for (var _i = 0; _i < arguments.length; _i++) {
args[_i - 0] = arguments[_i];
args[_i] = arguments[_i];
}
return new Promise(function promiseExec(resolve, reject) {
originalFunction.apply(void 0, args.concat([function (err, res) {
if (err) {
return reject(err);
}
resolve(res);
}]));
if (err) {
return reject(err);
}
resolve(res);
}]));
});

@@ -17,0 +18,0 @@ };

{
"name": "graphql-document-collector",
"version": "0.1.1",
"version": "0.1.2",
"description": "Load up smartly, in one location, all of the GraphQL queries/mutations/subscriptions of your project",

@@ -32,2 +32,6 @@ "main": "lib",

"devDependencies": {
"@types/chai": "^3.4.34",
"@types/glob": "^5.0.30",
"@types/node": "^6.0.41",
"@types/mocha": "^2.2.32",
"mocha": "^3.1.0",

@@ -37,6 +41,2 @@ "typescript": "^2.0.3"

"dependencies": {
"@types/chai": "^3.4.34",
"@types/glob": "^5.0.30",
"@types/mocha": "^2.2.32",
"@types/node": "^6.0.41",
"chai": "^3.5.0",

@@ -43,0 +43,0 @@ "glob": "^7.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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