videomail-client 9.2.21 → 9.2.22

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.
@@ -0,0 +1,42 @@
1
+ name: Test Runner for videomail-client
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - develop
7
+
8
+ pull_request:
9
+ branches:
10
+ - develop
11
+
12
+ jobs:
13
+ build-test-lint-check:
14
+ name: Build, Test, Prettier, Lint and Check
15
+ runs-on: ubuntu-latest
16
+
17
+ steps:
18
+ - name: Checkout code
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Install Node.js via nvm
22
+ shell: bash --login {0}
23
+ run: |
24
+ nvm install --no-progress
25
+ echo "$(dirname $(nvm which node))" >> $GITHUB_PATH
26
+
27
+ - name: Install npm dependencies
28
+ run: npm ci
29
+
30
+ - name: Build assets
31
+ run: npm run build
32
+
33
+ # Electron issues, to fix later:
34
+ # https://github.com/marketplace/actions/run-with-xvfb
35
+ # - name: Run tests
36
+ # run: npm run test
37
+
38
+ - name: Run prettier
39
+ run: npm run prettier
40
+
41
+ - name: Run linter
42
+ run: npm run lint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "9.2.21",
3
+ "version": "9.2.22",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -54,7 +54,7 @@
54
54
  "defined": "1.0.1",
55
55
  "despot": "2.0.0",
56
56
  "document-visibility": "1.0.1",
57
- "filesize": "10.1.4",
57
+ "filesize": "10.1.6",
58
58
  "format-util": "1.0.5",
59
59
  "get-form-data": "3.0.0",
60
60
  "hidden": "1.1.1",
@@ -86,7 +86,7 @@
86
86
  "del": "6.1.1",
87
87
  "eslint": "8.57.0",
88
88
  "eslint-config-prettier": "9.1.0",
89
- "eslint-plugin-import": "2.29.1",
89
+ "eslint-plugin-import": "2.30.0",
90
90
  "eslint-plugin-node": "11.1.0",
91
91
  "eslint-plugin-promise": "6.2.0",
92
92
  "fancy-log": "2.0.0",
@@ -108,7 +108,7 @@
108
108
  "gulp-terser": "2.1.0",
109
109
  "minimist": "1.2.8",
110
110
  "nib": "1.2.0",
111
- "postcss": "8.4.43",
111
+ "postcss": "8.4.45",
112
112
  "prettier": "3.3.3",
113
113
  "prettier-plugin-curly": "0.2.2",
114
114
  "prettier-plugin-organize-imports": "4.0.0",
@@ -4732,7 +4732,7 @@ function replaceGetterValues (replacer) {
4732
4732
  *
4733
4733
  * @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
4734
4734
  * @license BSD-3-Clause
4735
- * @version 10.1.4
4735
+ * @version 10.1.6
4736
4736
  */
4737
4737
  'use strict';
4738
4738
 
@@ -4900,9 +4900,10 @@ function filesize (arg, {
4900
4900
  result[0] = result[0].toString().replace(PERIOD, separator);
4901
4901
  }
4902
4902
 
4903
- if (pad && Number.isInteger(result[0]) === false && round > 0) {
4904
- const x = separator || PERIOD,
4905
- tmp = result[0].toString().split(x),
4903
+ if (pad && round > 0) {
4904
+ const i = result[0].toString(),
4905
+ x = separator || ((i.match(/(\D)/g) || []).pop() || PERIOD),
4906
+ tmp = i.toString().split(x),
4906
4907
  s = tmp[1] || EMPTY,
4907
4908
  l = s.length,
4908
4909
  n = round - l;
@@ -17267,7 +17268,7 @@ function wrappy (fn, cb) {
17267
17268
  },{}],116:[function(_dereq_,module,exports){
17268
17269
  module.exports={
17269
17270
  "name": "videomail-client",
17270
- "version": "9.2.21",
17271
+ "version": "9.2.22",
17271
17272
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
17272
17273
  "keywords": [
17273
17274
  "webcam",
@@ -17321,7 +17322,7 @@ module.exports={
17321
17322
  "defined": "1.0.1",
17322
17323
  "despot": "2.0.0",
17323
17324
  "document-visibility": "1.0.1",
17324
- "filesize": "10.1.4",
17325
+ "filesize": "10.1.6",
17325
17326
  "format-util": "1.0.5",
17326
17327
  "get-form-data": "3.0.0",
17327
17328
  "hidden": "1.1.1",
@@ -17353,7 +17354,7 @@ module.exports={
17353
17354
  "del": "6.1.1",
17354
17355
  "eslint": "8.57.0",
17355
17356
  "eslint-config-prettier": "9.1.0",
17356
- "eslint-plugin-import": "2.29.1",
17357
+ "eslint-plugin-import": "2.30.0",
17357
17358
  "eslint-plugin-node": "11.1.0",
17358
17359
  "eslint-plugin-promise": "6.2.0",
17359
17360
  "fancy-log": "2.0.0",
@@ -17375,7 +17376,7 @@ module.exports={
17375
17376
  "gulp-terser": "2.1.0",
17376
17377
  "minimist": "1.2.8",
17377
17378
  "nib": "1.2.0",
17378
- "postcss": "8.4.43",
17379
+ "postcss": "8.4.45",
17379
17380
  "prettier": "3.3.3",
17380
17381
  "prettier-plugin-curly": "0.2.2",
17381
17382
  "prettier-plugin-organize-imports": "4.0.0",
@@ -19145,7 +19146,7 @@ VideomailError.create = function (err, explanation, options, parameters) {
19145
19146
  }
19146
19147
  if (err) {
19147
19148
  if (typeof err === "string") {
19148
- message = "".concat(err, " (default)");
19149
+ message = err;
19149
19150
  } else {
19150
19151
  if (err.message) {
19151
19152
  message = pretty(err.message) + " (pretty)";
@@ -22316,29 +22317,44 @@ var Recorder = function Recorder(visuals, replay) {
22316
22317
  });
22317
22318
  stream.on("error", function (err) {
22318
22319
  debug("".concat(PIPE_SYMBOL, "Stream *error* event emitted: ").concat(err.message));
22319
- connecting = connected = false;
22320
- var videomailError;
22321
- if (browser.isIOS()) {
22322
- /*
22323
- * setting custom text since that err object isn't really an error
22324
- * on iPhones when locked, and unlocked, this err is actually
22325
- * an event object with stuff we can't use at all (an external bug)
22326
- */
22327
- videomailError = _videomailError.default.create(err, "iPhones cannot maintain a live connection for too long. Original error message is: ".concat(err.toString()), options);
22328
22320
 
22329
- /*
22330
- * Changed to the above temporarily for better investigations
22331
- * videomailError = VideomailError.create(
22332
- * 'Sorry, connection has timed out',
22333
- * 'iPhones cannot maintain a live connection for too long,
22334
- * options
22335
- * )
22336
- */
22337
- } else {
22338
- // or else it could be a poor wifi connection...
22339
- videomailError = _videomailError.default.create("Data exchange interrupted", "Please check your network connection and reload", options);
22340
- }
22341
- self.emit(_events.default.ERROR, videomailError);
22321
+ // OLD CODE, COMMENTED OUT TEMPORARILY FOR INVESTIGATIONS
22322
+ // IT SHOULD RECONNECT INSTEAD OF CLOSING THE CONNECTION
22323
+
22324
+ // connecting = connected = false;
22325
+
22326
+ // let videomailError;
22327
+
22328
+ // if (browser.isIOS()) {
22329
+ // /*
22330
+ // * setting custom text since that err object isn't really an error
22331
+ // * on iPhones when locked, and unlocked, this err is actually
22332
+ // * an event object with stuff we can't use at all (an external bug)
22333
+ // */
22334
+ // videomailError = VideomailError.create(
22335
+ // err,
22336
+ // `iPhones cannot maintain a live connection for too long. Original error message is: ${err.toString()}`,
22337
+ // options,
22338
+ // );
22339
+
22340
+ // /*
22341
+ // * Changed to the above temporarily for better investigations
22342
+ // * videomailError = VideomailError.create(
22343
+ // * 'Sorry, connection has timed out',
22344
+ // * 'iPhones cannot maintain a live connection for too long,
22345
+ // * options
22346
+ // * )
22347
+ // */
22348
+ // } else {
22349
+ // // or else it could be a poor wifi connection...
22350
+ // videomailError = VideomailError.create(
22351
+ // "Data exchange interrupted",
22352
+ // "Please check your network connection and reload",
22353
+ // options,
22354
+ // );
22355
+ // }
22356
+
22357
+ // self.emit(Events.ERROR, videomailError);
22342
22358
  });
22343
22359
 
22344
22360
  // just experimental