tinacms 0.0.0-ad8dbc0-20241003000436 → 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 CHANGED
@@ -26,7 +26,7 @@
26
26
  return;
27
27
  }
28
28
  try {
29
- if (this.cacheDir && window === void 0 && typeof require !== "undefined") {
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 === void 0 && typeof require !== "undefined") {
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
@@ -4569,7 +4569,7 @@ var __publicField = (obj, key, value) => {
4569
4569
  const optionSets2 = await Promise.all(
4570
4570
  collections.map(async (collection) => {
4571
4571
  try {
4572
- const filter = filters[collection] ? filterQueryBuilder(filters[collection], collection) : {};
4572
+ const filter = (filters == null ? void 0 : filters[collection]) ? filterQueryBuilder(filters[collection], collection) : {};
4573
4573
  const response = await cms.api.tina.request(
4574
4574
  `#graphql
4575
4575
  query ($collection: String!, $filter: DocumentFilter) {
@@ -4605,6 +4605,10 @@ var __publicField = (obj, key, value) => {
4605
4605
  edges: response.collection.documents.edges
4606
4606
  };
4607
4607
  } catch (e) {
4608
+ console.error(
4609
+ "Exception thrown while building and running GraphQL query: ",
4610
+ e
4611
+ );
4608
4612
  return {
4609
4613
  collection,
4610
4614
  edges: []
package/dist/index.mjs CHANGED
@@ -4592,7 +4592,7 @@ const useGetOptionSets = (cms, collections, collectionFilter) => {
4592
4592
  const optionSets2 = await Promise.all(
4593
4593
  collections.map(async (collection) => {
4594
4594
  try {
4595
- const filter = filters[collection] ? filterQueryBuilder(filters[collection], collection) : {};
4595
+ const filter = (filters == null ? void 0 : filters[collection]) ? filterQueryBuilder(filters[collection], collection) : {};
4596
4596
  const response = await cms.api.tina.request(
4597
4597
  `#graphql
4598
4598
  query ($collection: String!, $filter: DocumentFilter) {
@@ -4628,6 +4628,10 @@ const useGetOptionSets = (cms, collections, collectionFilter) => {
4628
4628
  edges: response.collection.documents.edges
4629
4629
  };
4630
4630
  } catch (e) {
4631
+ console.error(
4632
+ "Exception thrown while building and running GraphQL query: ",
4633
+ e
4634
+ );
4631
4635
  return {
4632
4636
  collection,
4633
4637
  edges: []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "0.0.0-ad8dbc0-20241003000436",
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/mdx": "1.4.4",
131
- "@tinacms/schema-tools": "1.6.4",
132
- "@tinacms/search": "1.0.31"
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",