naystack 1.1.10-beta.2 → 1.1.10-beta.3

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.
@@ -93,7 +93,7 @@ var getInstagramConversationsByUser = (token, userID) => {
93
93
  };
94
94
  var getInstagramConversationByUser = async (token, userID) => {
95
95
  const res = await getInstagramConversationsByUser(token, userID);
96
- return res?.data.find((item) => item.participants?.data.length === 2);
96
+ return res?.data?.find((item) => item.participants?.data.length === 2);
97
97
  };
98
98
  var getInstagramConversation = async (token, id, cursor) => {
99
99
  const result = await getInstagramData(token, id + "", {
@@ -53,7 +53,7 @@ var getInstagramConversationsByUser = (token, userID) => {
53
53
  };
54
54
  var getInstagramConversationByUser = async (token, userID) => {
55
55
  const res = await getInstagramConversationsByUser(token, userID);
56
- return res?.data.find((item) => item.participants?.data.length === 2);
56
+ return res?.data?.find((item) => item.participants?.data.length === 2);
57
57
  };
58
58
  var getInstagramConversation = async (token, id, cursor) => {
59
59
  const result = await getInstagramData(token, id + "", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naystack",
3
- "version": "1.1.10-beta.2",
3
+ "version": "1.1.10-beta.3",
4
4
  "description": "A stack built with tight Next + Drizzle + GraphQL",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",