@23blocks/block-content 3.3.0 → 3.3.1

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.esm.js CHANGED
@@ -121,7 +121,7 @@ const postMapper = {
121
121
  type: 'Post',
122
122
  map: (resource)=>({
123
123
  id: resource.id,
124
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
124
+ uniqueId: parseString(resource.attributes['unique_id']),
125
125
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
126
126
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
127
127
  postVersionUniqueId: parseString(resource.attributes['post_version_unique_id']),
@@ -339,7 +339,7 @@ const commentMapper = {
339
339
  type: 'Comment',
340
340
  map: (resource)=>({
341
341
  id: resource.id,
342
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
342
+ uniqueId: parseString(resource.attributes['unique_id']),
343
343
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
344
344
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
345
345
  postUniqueId: parseString(resource.attributes['post_unique_id']) || '',
@@ -475,7 +475,7 @@ const categoryMapper = {
475
475
  type: 'Category',
476
476
  map: (resource)=>({
477
477
  id: resource.id,
478
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
478
+ uniqueId: parseString(resource.attributes['unique_id']),
479
479
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
480
480
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
481
481
  code: parseString(resource.attributes['code']) || '',
@@ -571,7 +571,7 @@ const tagMapper = {
571
571
  type: 'Tag',
572
572
  map: (resource)=>({
573
573
  id: resource.id,
574
- uniqueId: parseString(resource.attributes['unique_id']) || resource.id,
574
+ uniqueId: parseString(resource.attributes['unique_id']),
575
575
  createdAt: parseDate(resource.attributes['created_at']) || new Date(),
576
576
  updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
577
577
  tag: parseString(resource.attributes['tag']) || '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@23blocks/block-content",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",