tinacms 1.5.1 → 1.5.2

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.es.js CHANGED
@@ -4,7 +4,7 @@ const TINA_HOST = "content.tinajs.io";
4
4
  class TinaClient {
5
5
  constructor({ token, url, queries }) {
6
6
  this.apiUrl = url;
7
- this.readonlyToken = token;
7
+ this.readonlyToken = token == null ? void 0 : token.trim();
8
8
  this.queries = queries(this);
9
9
  }
10
10
  async request(args) {
package/dist/client.js CHANGED
@@ -11,7 +11,7 @@
11
11
  class TinaClient {
12
12
  constructor({ token, url, queries }) {
13
13
  this.apiUrl = url;
14
- this.readonlyToken = token;
14
+ this.readonlyToken = token == null ? void 0 : token.trim();
15
15
  this.queries = queries(this);
16
16
  }
17
17
  async request(args) {
package/dist/index.es.js CHANGED
@@ -3343,7 +3343,7 @@ const CollectionListPage = () => {
3343
3343
  const admin = cms.api.admin;
3344
3344
  const pageInfo = collection.documents.pageInfo;
3345
3345
  const fields = (_a = collectionExtra.fields) == null ? void 0 : _a.filter((x) => ["string", "number", "datetime", "boolean"].includes(x.type));
3346
- const sortField = fields.find((field) => field.name === sortName);
3346
+ const sortField = fields == null ? void 0 : fields.find((field) => field.name === sortName);
3347
3347
  const filterFields = (_b = collectionExtra.fields) == null ? void 0 : _b.filter((x) => {
3348
3348
  return ["string", "datetime", "boolean"].includes(x.type) && !x.list;
3349
3349
  });
package/dist/index.js CHANGED
@@ -3358,7 +3358,7 @@ This will work when developing locally but NOT when deployed to production.
3358
3358
  const admin = cms.api.admin;
3359
3359
  const pageInfo = collection.documents.pageInfo;
3360
3360
  const fields = (_a = collectionExtra.fields) == null ? void 0 : _a.filter((x) => ["string", "number", "datetime", "boolean"].includes(x.type));
3361
- const sortField = fields.find((field) => field.name === sortName);
3361
+ const sortField = fields == null ? void 0 : fields.find((field) => field.name === sortName);
3362
3362
  const filterFields = (_b = collectionExtra.fields) == null ? void 0 : _b.filter((x) => {
3363
3363
  return ["string", "datetime", "boolean"].includes(x.type) && !x.list;
3364
3364
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinacms",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "main": "dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "exports": {