dashcam 0.3.1 → 0.3.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/index.js +6 -4
- package/lib.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const lib = require("./lib");
|
|
4
|
+
|
|
5
|
+
if (module.parent) {
|
|
6
|
+
module.exports = lib;
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
|
|
4
10
|
const { program } = require("commander");
|
|
5
11
|
|
|
6
12
|
let stdin = "";
|
|
@@ -62,7 +68,3 @@ if (process.stdin.isTTY) {
|
|
|
62
68
|
program.parse(process.argv);
|
|
63
69
|
});
|
|
64
70
|
}
|
|
65
|
-
|
|
66
|
-
if (module.parent) {
|
|
67
|
-
module.exports = lib;
|
|
68
|
-
}
|
package/lib.js
CHANGED
|
@@ -50,7 +50,7 @@ const createReplay = async function (options = {}) {
|
|
|
50
50
|
|
|
51
51
|
setTimeout(() => {
|
|
52
52
|
reject(
|
|
53
|
-
"Dashcam Desktop App did not respond in time. Did you publish a
|
|
53
|
+
"Dashcam Desktop App did not respond in time. Did you publish a clip?"
|
|
54
54
|
);
|
|
55
55
|
}, 60000 * 5);
|
|
56
56
|
|