core-outline 1.1.1 → 1.1.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.
package/dist/index.es.js CHANGED
@@ -3956,6 +3956,7 @@ const CoreOutline = ({
3956
3956
  return () => {
3957
3957
  if (stopFn) {
3958
3958
  stopFn();
3959
+ saveEvents(events);
3959
3960
  recorderActive.current = false;
3960
3961
  }
3961
3962
  };
@@ -3966,7 +3967,7 @@ const CoreOutline = ({
3966
3967
  headers: {
3967
3968
  'Content-Type': 'application/json'
3968
3969
  },
3969
- body: events
3970
+ body: JSON.stringify(events)
3970
3971
  };
3971
3972
  fetch('http://localhost:8000/generate-s3-url').then(response => response.json()).then(data => {
3972
3973
  const uploadURL = data.signed_url;
package/dist/index.js CHANGED
@@ -3962,6 +3962,7 @@ const CoreOutline = ({
3962
3962
  return () => {
3963
3963
  if (stopFn) {
3964
3964
  stopFn();
3965
+ saveEvents(events);
3965
3966
  recorderActive.current = false;
3966
3967
  }
3967
3968
  };
@@ -3972,7 +3973,7 @@ const CoreOutline = ({
3972
3973
  headers: {
3973
3974
  'Content-Type': 'application/json'
3974
3975
  },
3975
- body: events
3976
+ body: JSON.stringify(events)
3976
3977
  };
3977
3978
  fetch('http://localhost:8000/generate-s3-url').then(response => response.json()).then(data => {
3978
3979
  const uploadURL = data.signed_url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core-outline",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "A React component for Core&Outline",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -41,6 +41,7 @@ const CoreOutline = ({ children }) => {
41
41
  return () => {
42
42
  if (stopFn) {
43
43
  stopFn();
44
+ saveEvents(events);
44
45
 
45
46
  recorderActive.current = false;
46
47
  }
@@ -53,7 +54,7 @@ const CoreOutline = ({ children }) => {
53
54
  headers: {
54
55
  'Content-Type': 'application/json',
55
56
  },
56
- body: events,
57
+ body: JSON.stringify(events),
57
58
  };
58
59
 
59
60
  fetch('http://localhost:8000/generate-s3-url')