graphql-document-collector
Advanced tools
Comparing version 0.1.1 to 0.1.2
"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
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
66379
4
964
6
- Removed@types/chai@^3.4.34
- Removed@types/glob@^5.0.30
- Removed@types/mocha@^2.2.32
- Removed@types/node@^6.0.41
- Removed@types/chai@3.5.2(transitive)
- Removed@types/glob@5.0.38(transitive)
- Removed@types/minimatch@5.1.2(transitive)
- Removed@types/mocha@2.2.48(transitive)
- Removed@types/node@6.14.13(transitive)