dashcam 0.7.2 → 0.7.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.
Files changed (2) hide show
  1. package/lib.js +5 -2
  2. package/package.json +1 -1
package/lib.js CHANGED
@@ -78,12 +78,15 @@ const createClip = async function (options = {}) {
78
78
  }
79
79
  }
80
80
  );
81
-
82
81
 
83
82
  ipc.of.dashcam.on("error", (e) => {
84
83
  console.log(e);
85
84
  });
86
85
 
86
+ ipc.of.dashcam.on("replay-failed", (errorMessage) => {
87
+ reject(errorMessage);
88
+ });
89
+
87
90
  setTimeout(() => {
88
91
  reject(
89
92
  "Dashcam Desktop App did not respond in time. Did you publish a clip?"
@@ -127,7 +130,7 @@ const sendApiKey = async function (apiKey) {
127
130
  return new Promise(async (resolve, reject) => {
128
131
  await connectToIpc(5000).catch(reject);
129
132
  ipc.of.dashcam.emit("auth", { apiKey });
130
- ipc.of.dashcam.on("auth-state", ({success, user}) => {
133
+ ipc.of.dashcam.on("auth-state", ({ success, user }) => {
131
134
  if (success) {
132
135
  console.log(clc.green(`Connected as: ${user?.sub}!`));
133
136
  return resolve();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dashcam",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Fix bugs, close pulls, and update your team with desktop instant replay.",
5
5
  "main": "index.js",
6
6
  "scripts": {