@tinacms/graphql 1.4.20 → 1.4.22
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.js +7 -4
- package/dist/{index.es.js → index.mjs} +7 -4
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -2585,16 +2585,16 @@ var validateField = async (field) => {
|
|
|
2585
2585
|
// package.json
|
|
2586
2586
|
var package_default = {
|
|
2587
2587
|
name: "@tinacms/graphql",
|
|
2588
|
-
version: "1.4.
|
|
2588
|
+
version: "1.4.22",
|
|
2589
2589
|
main: "dist/index.js",
|
|
2590
|
-
module: "dist/index.
|
|
2590
|
+
module: "dist/index.mjs",
|
|
2591
2591
|
typings: "dist/index.d.ts",
|
|
2592
2592
|
files: [
|
|
2593
2593
|
"package.json",
|
|
2594
2594
|
"dist"
|
|
2595
2595
|
],
|
|
2596
2596
|
exports: {
|
|
2597
|
-
import: "./dist/index.
|
|
2597
|
+
import: "./dist/index.mjs",
|
|
2598
2598
|
require: "./dist/index.js"
|
|
2599
2599
|
},
|
|
2600
2600
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -2862,7 +2862,7 @@ var import_graphql4 = require("graphql");
|
|
|
2862
2862
|
|
|
2863
2863
|
// src/resolver/index.ts
|
|
2864
2864
|
var import_path3 = __toESM(require("path"));
|
|
2865
|
-
var import_isValid = __toESM(require("date-fns/isValid"));
|
|
2865
|
+
var import_isValid = __toESM(require("date-fns/isValid/index.js"));
|
|
2866
2866
|
|
|
2867
2867
|
// src/mdx/index.ts
|
|
2868
2868
|
var import_mdx = require("@tinacms/mdx");
|
|
@@ -5925,6 +5925,9 @@ var _indexContent = async (database, level, documentPaths, enqueueOps, collectio
|
|
|
5925
5925
|
collection,
|
|
5926
5926
|
templateInfo
|
|
5927
5927
|
);
|
|
5928
|
+
if (!aliasedData) {
|
|
5929
|
+
return;
|
|
5930
|
+
}
|
|
5928
5931
|
const normalizedPath = (0, import_schema_tools3.normalizePath)(filepath);
|
|
5929
5932
|
const folderKey = folderTreeBuilder.update(
|
|
5930
5933
|
normalizedPath,
|
|
@@ -2526,16 +2526,16 @@ 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.22",
|
|
2530
2530
|
main: "dist/index.js",
|
|
2531
|
-
module: "dist/index.
|
|
2531
|
+
module: "dist/index.mjs",
|
|
2532
2532
|
typings: "dist/index.d.ts",
|
|
2533
2533
|
files: [
|
|
2534
2534
|
"package.json",
|
|
2535
2535
|
"dist"
|
|
2536
2536
|
],
|
|
2537
2537
|
exports: {
|
|
2538
|
-
import: "./dist/index.
|
|
2538
|
+
import: "./dist/index.mjs",
|
|
2539
2539
|
require: "./dist/index.js"
|
|
2540
2540
|
},
|
|
2541
2541
|
license: "SEE LICENSE IN LICENSE",
|
|
@@ -2802,7 +2802,7 @@ import { graphql, buildASTSchema, getNamedType, GraphQLError as GraphQLError3 }
|
|
|
2802
2802
|
|
|
2803
2803
|
// src/resolver/index.ts
|
|
2804
2804
|
import path3 from "path";
|
|
2805
|
-
import isValid from "date-fns/isValid";
|
|
2805
|
+
import isValid from "date-fns/isValid/index.js";
|
|
2806
2806
|
|
|
2807
2807
|
// src/mdx/index.ts
|
|
2808
2808
|
import { parseMDX, stringifyMDX } from "@tinacms/mdx";
|
|
@@ -5855,6 +5855,9 @@ var _indexContent = async (database, level, documentPaths, enqueueOps, collectio
|
|
|
5855
5855
|
collection,
|
|
5856
5856
|
templateInfo
|
|
5857
5857
|
);
|
|
5858
|
+
if (!aliasedData) {
|
|
5859
|
+
return;
|
|
5860
|
+
}
|
|
5858
5861
|
const normalizedPath = normalizePath(filepath);
|
|
5859
5862
|
const folderKey = folderTreeBuilder.update(
|
|
5860
5863
|
normalizedPath,
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/graphql",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.22",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
|
-
"module": "dist/index.
|
|
5
|
+
"module": "dist/index.mjs",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"package.json",
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"exports": {
|
|
12
|
-
"import": "./dist/index.
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
13
|
"require": "./dist/index.js"
|
|
14
14
|
},
|
|
15
15
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@iarna/toml": "^2.2.5",
|
|
27
|
-
"@tinacms/mdx": "1.3.
|
|
28
|
-
"@tinacms/schema-tools": "1.4.
|
|
27
|
+
"@tinacms/mdx": "1.3.15",
|
|
28
|
+
"@tinacms/schema-tools": "1.4.9",
|
|
29
29
|
"abstract-level": "^1.0.3",
|
|
30
30
|
"body-parser": "^1.19.0",
|
|
31
31
|
"cors": "^2.8.5",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"directory": "packages/tina-graphql"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@tinacms/schema-tools": "1.4.
|
|
61
|
-
"@tinacms/scripts": "1.1.
|
|
60
|
+
"@tinacms/schema-tools": "1.4.9",
|
|
61
|
+
"@tinacms/scripts": "1.1.1",
|
|
62
62
|
"@types/cors": "^2.8.7",
|
|
63
63
|
"@types/estree": "^0.0.50",
|
|
64
64
|
"@types/express": "^4.17.8",
|