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 +1 -1
- package/dist/client.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
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
|
});
|