@forestryio/gql
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -71,5 +71,6 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
this.getDocumentsForCollection = async (sectionSlug) => { | ||
const templates = await this.getTemplatesForCollection(sectionSlug); | ||
const pages = templates.map((template) => template.pages || []); | ||
return _lodash2.default.flatten(pages); | ||
const section = await this.getCollection(sectionSlug); | ||
const fullPath = _path2.default.join(this.rootPath, section.path); | ||
const documents = await this.readDir(fullPath, this.dirLoader); | ||
return documents.map((relativePath) => _path2.default.join(section.path, relativePath)); | ||
}; | ||
@@ -76,0 +77,0 @@ this.getAllTemplates = async () => { |
{ | ||
"name": "@forestryio/gql", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "dist/index.d.ts", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
124696
3532
1