tinacms 0.0.0-a690e47-20241003005744 → 0.0.0-b1fe6d2-20241008011354
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/client.js +1 -1
- package/dist/client.mjs +1 -1
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +4 -4
package/dist/client.js
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
try {
|
|
29
|
-
if (this.cacheDir && window ===
|
|
29
|
+
if (this.cacheDir && typeof window === "undefined" && typeof require !== "undefined") {
|
|
30
30
|
const { NodeCache: NodeCache2 } = await Promise.resolve().then(() => nodeCache);
|
|
31
31
|
this.cache = await NodeCache2(this.cacheDir);
|
|
32
32
|
}
|
package/dist/client.mjs
CHANGED
|
@@ -23,7 +23,7 @@ class TinaClient {
|
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
try {
|
|
26
|
-
if (this.cacheDir && window ===
|
|
26
|
+
if (this.cacheDir && typeof window === "undefined" && typeof require !== "undefined") {
|
|
27
27
|
const { NodeCache } = await import("./node-cache-7fa2452c.mjs");
|
|
28
28
|
this.cache = await NodeCache(this.cacheDir);
|
|
29
29
|
}
|
package/dist/index.js
CHANGED
|
@@ -4605,7 +4605,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4605
4605
|
edges: response.collection.documents.edges
|
|
4606
4606
|
};
|
|
4607
4607
|
} catch (e) {
|
|
4608
|
-
console.error(
|
|
4608
|
+
console.error(
|
|
4609
|
+
"Exception thrown while building and running GraphQL query: ",
|
|
4610
|
+
e
|
|
4611
|
+
);
|
|
4609
4612
|
return {
|
|
4610
4613
|
collection,
|
|
4611
4614
|
edges: []
|
package/dist/index.mjs
CHANGED
|
@@ -4628,7 +4628,10 @@ const useGetOptionSets = (cms, collections, collectionFilter) => {
|
|
|
4628
4628
|
edges: response.collection.documents.edges
|
|
4629
4629
|
};
|
|
4630
4630
|
} catch (e) {
|
|
4631
|
-
console.error(
|
|
4631
|
+
console.error(
|
|
4632
|
+
"Exception thrown while building and running GraphQL query: ",
|
|
4633
|
+
e
|
|
4634
|
+
);
|
|
4632
4635
|
return {
|
|
4633
4636
|
collection,
|
|
4634
4637
|
edges: []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-b1fe6d2-20241008011354",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
"webfontloader": "1.6.28",
|
|
128
128
|
"yup": "^1.4.0",
|
|
129
129
|
"zod": "^3.23.8",
|
|
130
|
-
"@tinacms/
|
|
131
|
-
"@tinacms/
|
|
132
|
-
"@tinacms/
|
|
130
|
+
"@tinacms/mdx": "0.0.0-b1fe6d2-20241008011354",
|
|
131
|
+
"@tinacms/schema-tools": "0.0.0-b1fe6d2-20241008011354",
|
|
132
|
+
"@tinacms/search": "0.0.0-b1fe6d2-20241008011354"
|
|
133
133
|
},
|
|
134
134
|
"devDependencies": {
|
|
135
135
|
"@graphql-tools/utils": "^10.5.4",
|