@tinacms/graphql 1.4.9 → 1.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +7 -3
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2526,7 +2526,7 @@ var validateField = async (field) => {
|
|
|
2526
2526
|
// package.json
|
|
2527
2527
|
var package_default = {
|
|
2528
2528
|
name: "@tinacms/graphql",
|
|
2529
|
-
version: "1.4.
|
|
2529
|
+
version: "1.4.10",
|
|
2530
2530
|
main: "dist/index.js",
|
|
2531
2531
|
module: "dist/index.es.js",
|
|
2532
2532
|
typings: "dist/index.d.ts",
|
|
@@ -3530,6 +3530,9 @@ var FolderTreeBuilder = class {
|
|
|
3530
3530
|
}
|
|
3531
3531
|
update(documentPath, collectionPath) {
|
|
3532
3532
|
let folderPath = path.dirname(documentPath);
|
|
3533
|
+
if (folderPath === ".") {
|
|
3534
|
+
folderPath = "";
|
|
3535
|
+
}
|
|
3533
3536
|
if (collectionPath) {
|
|
3534
3537
|
folderPath = stripCollectionFromPath(collectionPath, folderPath);
|
|
3535
3538
|
}
|
|
@@ -5883,9 +5886,10 @@ var FilesystemBridge = class {
|
|
|
5883
5886
|
async glob(pattern, extension) {
|
|
5884
5887
|
const basePath = path4.join(this.outputPath, ...pattern.split("/"));
|
|
5885
5888
|
const items = await fg(
|
|
5886
|
-
path4.join(basePath, "**",
|
|
5889
|
+
path4.join(basePath, "**", `/*.${extension}`).replace(/\\/g, "/"),
|
|
5887
5890
|
{
|
|
5888
|
-
dot: true
|
|
5891
|
+
dot: true,
|
|
5892
|
+
ignore: ["**/node_modules/**"]
|
|
5889
5893
|
}
|
|
5890
5894
|
);
|
|
5891
5895
|
const posixRootPath = normalize(this.outputPath);
|
package/dist/index.js
CHANGED
|
@@ -2577,7 +2577,7 @@ var validateField = async (field) => {
|
|
|
2577
2577
|
// package.json
|
|
2578
2578
|
var package_default = {
|
|
2579
2579
|
name: "@tinacms/graphql",
|
|
2580
|
-
version: "1.4.
|
|
2580
|
+
version: "1.4.10",
|
|
2581
2581
|
main: "dist/index.js",
|
|
2582
2582
|
module: "dist/index.es.js",
|
|
2583
2583
|
typings: "dist/index.d.ts",
|
|
@@ -3576,6 +3576,9 @@ var FolderTreeBuilder = class {
|
|
|
3576
3576
|
}
|
|
3577
3577
|
update(documentPath, collectionPath) {
|
|
3578
3578
|
let folderPath = import_path.default.dirname(documentPath);
|
|
3579
|
+
if (folderPath === ".") {
|
|
3580
|
+
folderPath = "";
|
|
3581
|
+
}
|
|
3579
3582
|
if (collectionPath) {
|
|
3580
3583
|
folderPath = stripCollectionFromPath(collectionPath, folderPath);
|
|
3581
3584
|
}
|
|
@@ -5943,9 +5946,10 @@ var FilesystemBridge = class {
|
|
|
5943
5946
|
async glob(pattern, extension) {
|
|
5944
5947
|
const basePath = import_path4.default.join(this.outputPath, ...pattern.split("/"));
|
|
5945
5948
|
const items = await (0, import_fast_glob.default)(
|
|
5946
|
-
import_path4.default.join(basePath, "**",
|
|
5949
|
+
import_path4.default.join(basePath, "**", `/*.${extension}`).replace(/\\/g, "/"),
|
|
5947
5950
|
{
|
|
5948
|
-
dot: true
|
|
5951
|
+
dot: true,
|
|
5952
|
+
ignore: ["**/node_modules/**"]
|
|
5949
5953
|
}
|
|
5950
5954
|
);
|
|
5951
5955
|
const posixRootPath = (0, import_normalize_path.default)(this.outputPath);
|