@kekkle/shared 2.0.0-next.5 → 2.0.0-next.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/node/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAqEjE,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC"}
1
+ {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/node/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AA6EjE,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC"}
@@ -18,7 +18,9 @@ const createCommentDocumentConverter = () => ({
18
18
  const { _id, affected_field, ...comments } = doc;
19
19
  const convertedComments = {};
20
20
  for (const [key, value] of Object.entries(comments)) {
21
- if (typeof value === "object" && value !== null && "date" in value) {
21
+ if (typeof value === "object" &&
22
+ value !== null &&
23
+ "created_at" in value) {
22
24
  convertedComments[key] = {
23
25
  ...value,
24
26
  created_at: value.created_at instanceof Date
@@ -42,7 +44,9 @@ const createCommentDocumentConverter = () => ({
42
44
  const { affected_field, ...comments } = data;
43
45
  const convertedComments = {};
44
46
  for (const [key, value] of Object.entries(comments)) {
45
- if (typeof value === "object" && value !== null && "date" in value) {
47
+ if (typeof value === "object" &&
48
+ value !== null &&
49
+ "created_at" in value) {
46
50
  convertedComments[key] = {
47
51
  author: value.author,
48
52
  comment: value.comment,
@@ -1 +1 @@
1
- {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/web/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,oBAAoB,CAAC;AA4E5B,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC"}
1
+ {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/web/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,oBAAoB,CAAC;AAoF5B,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC"}
@@ -18,7 +18,9 @@ const createCommentDocumentConverter = () => ({
18
18
  const { _id, affected_field, ...comments } = doc;
19
19
  const convertedComments = {};
20
20
  for (const [key, value] of Object.entries(comments)) {
21
- if (typeof value === "object" && value !== null && "date" in value) {
21
+ if (typeof value === "object" &&
22
+ value !== null &&
23
+ "created_at" in value) {
22
24
  convertedComments[key] = {
23
25
  ...value,
24
26
  created_at: value.created_at instanceof Date
@@ -42,7 +44,9 @@ const createCommentDocumentConverter = () => ({
42
44
  const { affected_field, ...comments } = data;
43
45
  const convertedComments = {};
44
46
  for (const [key, value] of Object.entries(comments)) {
45
- if (typeof value === "object" && value !== null && "date" in value) {
47
+ if (typeof value === "object" &&
48
+ value !== null &&
49
+ "created_at" in value) {
46
50
  convertedComments[key] = {
47
51
  author: value.author,
48
52
  comment: value.comment,
@@ -1 +1 @@
1
- {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/node/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAqEjE,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC"}
1
+ {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/node/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AA6EjE,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC"}
@@ -15,7 +15,9 @@ const createCommentDocumentConverter = () => ({
15
15
  const { _id, affected_field, ...comments } = doc;
16
16
  const convertedComments = {};
17
17
  for (const [key, value] of Object.entries(comments)) {
18
- if (typeof value === "object" && value !== null && "date" in value) {
18
+ if (typeof value === "object" &&
19
+ value !== null &&
20
+ "created_at" in value) {
19
21
  convertedComments[key] = {
20
22
  ...value,
21
23
  created_at: value.created_at instanceof Date
@@ -39,7 +41,9 @@ const createCommentDocumentConverter = () => ({
39
41
  const { affected_field, ...comments } = data;
40
42
  const convertedComments = {};
41
43
  for (const [key, value] of Object.entries(comments)) {
42
- if (typeof value === "object" && value !== null && "date" in value) {
44
+ if (typeof value === "object" &&
45
+ value !== null &&
46
+ "created_at" in value) {
43
47
  convertedComments[key] = {
44
48
  author: value.author,
45
49
  comment: value.comment,
@@ -1 +1 @@
1
- {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/web/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,oBAAoB,CAAC;AA4E5B,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC"}
1
+ {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/web/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,oBAAoB,CAAC;AAoF5B,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC"}
@@ -15,7 +15,9 @@ const createCommentDocumentConverter = () => ({
15
15
  const { _id, affected_field, ...comments } = doc;
16
16
  const convertedComments = {};
17
17
  for (const [key, value] of Object.entries(comments)) {
18
- if (typeof value === "object" && value !== null && "date" in value) {
18
+ if (typeof value === "object" &&
19
+ value !== null &&
20
+ "created_at" in value) {
19
21
  convertedComments[key] = {
20
22
  ...value,
21
23
  created_at: value.created_at instanceof Date
@@ -39,7 +41,9 @@ const createCommentDocumentConverter = () => ({
39
41
  const { affected_field, ...comments } = data;
40
42
  const convertedComments = {};
41
43
  for (const [key, value] of Object.entries(comments)) {
42
- if (typeof value === "object" && value !== null && "date" in value) {
44
+ if (typeof value === "object" &&
45
+ value !== null &&
46
+ "created_at" in value) {
43
47
  convertedComments[key] = {
44
48
  author: value.author,
45
49
  comment: value.comment,
@@ -1 +1 @@
1
- {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/node/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAqEjE,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC"}
1
+ {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/node/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,0BAA0B,CAAC;AAOlC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AA6EjE,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;EACc,CAAC"}
@@ -15,7 +15,9 @@ const createCommentDocumentConverter = () => ({
15
15
  const { _id, affected_field, ...comments } = doc;
16
16
  const convertedComments = {};
17
17
  for (const [key, value] of Object.entries(comments)) {
18
- if (typeof value === "object" && value !== null && "date" in value) {
18
+ if (typeof value === "object" &&
19
+ value !== null &&
20
+ "created_at" in value) {
19
21
  convertedComments[key] = {
20
22
  ...value,
21
23
  created_at: value.created_at instanceof Date
@@ -39,7 +41,9 @@ const createCommentDocumentConverter = () => ({
39
41
  const { affected_field, ...comments } = data;
40
42
  const convertedComments = {};
41
43
  for (const [key, value] of Object.entries(comments)) {
42
- if (typeof value === "object" && value !== null && "date" in value) {
44
+ if (typeof value === "object" &&
45
+ value !== null &&
46
+ "created_at" in value) {
43
47
  convertedComments[key] = {
44
48
  author: value.author,
45
49
  comment: value.comment,
@@ -1 +1 @@
1
- {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/web/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,oBAAoB,CAAC;AA4E5B,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC"}
1
+ {"version":3,"file":"comment-document.converter.d.ts","sourceRoot":"","sources":["../../../../src/convertors/web/comment-document.converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,sBAAsB,EAI5B,MAAM,oBAAoB,CAAC;AAoF5B,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC;AACzD,eAAO,MAAM,6BAA6B;;;;8CACc,CAAC"}
@@ -15,7 +15,9 @@ const createCommentDocumentConverter = () => ({
15
15
  const { _id, affected_field, ...comments } = doc;
16
16
  const convertedComments = {};
17
17
  for (const [key, value] of Object.entries(comments)) {
18
- if (typeof value === "object" && value !== null && "date" in value) {
18
+ if (typeof value === "object" &&
19
+ value !== null &&
20
+ "created_at" in value) {
19
21
  convertedComments[key] = {
20
22
  ...value,
21
23
  created_at: value.created_at instanceof Date
@@ -39,7 +41,9 @@ const createCommentDocumentConverter = () => ({
39
41
  const { affected_field, ...comments } = data;
40
42
  const convertedComments = {};
41
43
  for (const [key, value] of Object.entries(comments)) {
42
- if (typeof value === "object" && value !== null && "date" in value) {
44
+ if (typeof value === "object" &&
45
+ value !== null &&
46
+ "created_at" in value) {
43
47
  convertedComments[key] = {
44
48
  author: value.author,
45
49
  comment: value.comment,