videomail-client 9.5.6 → 9.5.9

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/README.md CHANGED
@@ -170,7 +170,7 @@ Automatically fills the DOM with a form for video recording. By default the HTML
170
170
 
171
171
  <a name="replay"></a>
172
172
 
173
- ### videomailClient.replay(videomail[, parentElement])
173
+ ### videomailClient.replay(videomail[, parentElementId])
174
174
 
175
175
  Manually adds a video container for the given videomail inside the parent element. This is mostly called after a successful submission. See `/prototype/direct_submit.html` or `/prototype/contact_form.html` for some inspiration.
176
176
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videomail-client",
3
- "version": "9.5.6",
3
+ "version": "9.5.9",
4
4
  "description": "A wicked npm package to record videos directly in the browser, wohooo!",
5
5
  "keywords": [
6
6
  "webcam",
@@ -71,6 +71,8 @@
71
71
  "@babel/eslint-parser": "7.25.1",
72
72
  "@babel/plugin-transform-runtime": "7.25.4",
73
73
  "@babel/preset-env": "7.25.4",
74
+ "@tsconfig/node22": "22.0.0",
75
+ "@tsconfig/strictest": "2.0.5",
74
76
  "audit-ci": "7.1.0",
75
77
  "autoprefixer": "10.4.20",
76
78
  "babelify": "10.0.0",
@@ -112,6 +114,7 @@
112
114
  "tape": "5.9.0",
113
115
  "tape-catch": "1.0.6",
114
116
  "tape-run": "11.0.0",
117
+ "typescript": "5.6.2",
115
118
  "vinyl-buffer": "1.0.1",
116
119
  "vinyl-source-stream": "2.0.0",
117
120
  "watchify": "4.0.0"
@@ -53,120 +53,117 @@
53
53
 
54
54
  // just a copy paste of json of the videomail
55
55
  // you normally would get from a xhr get request
56
- videomailClient.replay(
57
- {
58
- subject: "test example mofo",
59
- from: "automatic@videomail.io",
60
- to: ["automatic@videomail.io"],
61
- body: "",
62
- recordingStats: {
63
- avgFps: 16.39344262295082,
64
- wantedFps: 15,
65
- avgInterval: 66.19285714285714,
66
- wantedInterval: 66.66666666666667,
67
- intervalSum: 9267,
68
- framesCount: 140,
69
- videoType: "webm",
70
- waitingTime: 1378,
71
- },
72
- width: 400,
73
- height: 300,
74
- videomailClientVersion: "2.1.26",
75
- siteName: "videomail.io",
76
- sending: true,
77
- alias: "test-example-mofo-485573266478",
78
- dateCreated: 1511570565748,
79
- format: {
80
- nb_streams: 1,
81
- nb_programs: 0,
82
- format_name: "mov,mp4,m4a,3gp,3g2,mj2",
83
- format_long_name: "QuickTime / MOV",
84
- start_time: 0,
85
- duration: 8.537,
86
- size: 1349099,
87
- bit_rate: 1264237,
88
- probe_score: 100,
89
- tags: {
90
- major_brand: "isom",
91
- minor_version: "512",
92
- compatible_brands: "isomiso2avc1mp41",
93
- encoder: "Lavf57.71.100",
94
- },
56
+ videomailClient.replay({
57
+ subject: "test example mofo",
58
+ from: "automatic@videomail.io",
59
+ to: ["automatic@videomail.io"],
60
+ body: "",
61
+ recordingStats: {
62
+ avgFps: 16.39344262295082,
63
+ wantedFps: 15,
64
+ avgInterval: 66.19285714285714,
65
+ wantedInterval: 66.66666666666667,
66
+ intervalSum: 9267,
67
+ framesCount: 140,
68
+ videoType: "webm",
69
+ waitingTime: 1378,
70
+ },
71
+ width: 400,
72
+ height: 300,
73
+ videomailClientVersion: "2.1.26",
74
+ siteName: "videomail.io",
75
+ sending: true,
76
+ alias: "test-example-mofo-485573266478",
77
+ dateCreated: 1511570565748,
78
+ format: {
79
+ nb_streams: 1,
80
+ nb_programs: 0,
81
+ format_name: "mov,mp4,m4a,3gp,3g2,mj2",
82
+ format_long_name: "QuickTime / MOV",
83
+ start_time: 0,
84
+ duration: 8.537,
85
+ size: 1349099,
86
+ bit_rate: 1264237,
87
+ probe_score: 100,
88
+ tags: {
89
+ major_brand: "isom",
90
+ minor_version: "512",
91
+ compatible_brands: "isomiso2avc1mp41",
92
+ encoder: "Lavf57.71.100",
95
93
  },
96
- dateUpdated: 1511570574377,
97
- accepted: ["automatic@videomail.io"],
98
- url: "https://videomail.io/videomail/test-example-mofo-485573266478",
99
- key: "11e7-d179-62e4cfa0-8f72-6ff7f0c1e906",
100
- mp4: "https://videomail.io/videomail/test-example-mofo-485573266478/type/mp4/",
101
- webm: "https://videomail.io/videomail/test-example-mofo-485573266478/type/webm/",
102
- poster: "https://videomail.io/videomail/test-example-mofo-485573266478/poster/",
103
- reply: {
104
- parentKey: "11e7-d179-62e4cfa0-8f72-6ff7f0c1e906",
105
- subject: "RE: test example mofo",
106
- to: ["automatic@videomail.io"],
94
+ },
95
+ dateUpdated: 1511570574377,
96
+ accepted: ["automatic@videomail.io"],
97
+ url: "https://videomail.io/videomail/test-example-mofo-485573266478",
98
+ key: "11e7-d179-62e4cfa0-8f72-6ff7f0c1e906",
99
+ mp4: "https://videomail.io/videomail/test-example-mofo-485573266478/type/mp4/",
100
+ webm: "https://videomail.io/videomail/test-example-mofo-485573266478/type/webm/",
101
+ poster: "https://videomail.io/videomail/test-example-mofo-485573266478/poster/",
102
+ reply: {
103
+ parentKey: "11e7-d179-62e4cfa0-8f72-6ff7f0c1e906",
104
+ subject: "RE: test example mofo",
105
+ to: ["automatic@videomail.io"],
106
+ from: "automatic@videomail.io",
107
+ parent: {
108
+ subject: "test example mofo",
107
109
  from: "automatic@videomail.io",
108
- parent: {
109
- subject: "test example mofo",
110
- from: "automatic@videomail.io",
111
- to: ["automatic@videomail.io"],
112
- body: "",
113
- recordingStats: {
114
- avgFps: 16.39344262295082,
115
- wantedFps: 15,
116
- avgInterval: 66.19285714285714,
117
- wantedInterval: 66.66666666666667,
118
- intervalSum: 9267,
119
- framesCount: 140,
120
- videoType: "webm",
121
- waitingTime: 1378,
122
- },
123
- width: 400,
124
- height: 300,
125
- videomailClientVersion: "2.1.26",
126
- siteName: "videomail.io",
127
- sending: true,
128
- alias: "test-example-mofo-485573266478",
129
- dateCreated: 1511570565748,
130
- format: {
131
- nb_streams: 1,
132
- nb_programs: 0,
133
- format_name: "mov,mp4,m4a,3gp,3g2,mj2",
134
- format_long_name: "QuickTime / MOV",
135
- start_time: 0,
136
- duration: 8.537,
137
- size: 1349099,
138
- bit_rate: 1264237,
139
- probe_score: 100,
140
- tags: {
141
- major_brand: "isom",
142
- minor_version: "512",
143
- compatible_brands: "isomiso2avc1mp41",
144
- encoder: "Lavf57.71.100",
145
- },
146
- },
147
- dateUpdated: 1511570574377,
148
- accepted: ["automatic@videomail.io"],
149
- url: "https://videomail.io/videomail/test-example-mofo-485573266478",
150
- key: "11e7-d179-62e4cfa0-8f72-6ff7f0c1e906",
151
- reply: {
152
- parentKey: "11e7-d179-62e4cfa0-8f72-6ff7f0c1e906",
153
- subject: "RE: test example mofo",
154
- to: ["automatic@videomail.io"],
155
- from: "automatic@videomail.io",
110
+ to: ["automatic@videomail.io"],
111
+ body: "",
112
+ recordingStats: {
113
+ avgFps: 16.39344262295082,
114
+ wantedFps: 15,
115
+ avgInterval: 66.19285714285714,
116
+ wantedInterval: 66.66666666666667,
117
+ intervalSum: 9267,
118
+ framesCount: 140,
119
+ videoType: "webm",
120
+ waitingTime: 1378,
121
+ },
122
+ width: 400,
123
+ height: 300,
124
+ videomailClientVersion: "2.1.26",
125
+ siteName: "videomail.io",
126
+ sending: true,
127
+ alias: "test-example-mofo-485573266478",
128
+ dateCreated: 1511570565748,
129
+ format: {
130
+ nb_streams: 1,
131
+ nb_programs: 0,
132
+ format_name: "mov,mp4,m4a,3gp,3g2,mj2",
133
+ format_long_name: "QuickTime / MOV",
134
+ start_time: 0,
135
+ duration: 8.537,
136
+ size: 1349099,
137
+ bit_rate: 1264237,
138
+ probe_score: 100,
139
+ tags: {
140
+ major_brand: "isom",
141
+ minor_version: "512",
142
+ compatible_brands: "isomiso2avc1mp41",
143
+ encoder: "Lavf57.71.100",
156
144
  },
157
- replyUrl: "/reply/test-example-mofo-485573266478",
158
- correctUrl: "https://videomail.io/correct/test-example-mofo-485573266478",
159
- dateCreatedPretty: "Nov 25, 2017, 1:42 PM",
160
- sendingToPretty: "automatic@videomail.io",
161
145
  },
146
+ dateUpdated: 1511570574377,
147
+ accepted: ["automatic@videomail.io"],
148
+ url: "https://videomail.io/videomail/test-example-mofo-485573266478",
149
+ key: "11e7-d179-62e4cfa0-8f72-6ff7f0c1e906",
150
+ reply: {
151
+ parentKey: "11e7-d179-62e4cfa0-8f72-6ff7f0c1e906",
152
+ subject: "RE: test example mofo",
153
+ to: ["automatic@videomail.io"],
154
+ from: "automatic@videomail.io",
155
+ },
156
+ replyUrl: "/reply/test-example-mofo-485573266478",
157
+ correctUrl: "https://videomail.io/correct/test-example-mofo-485573266478",
158
+ dateCreatedPretty: "Nov 25, 2017, 1:42 PM",
159
+ sendingToPretty: "automatic@videomail.io",
162
160
  },
163
- replyUrl: "/reply/test-example-mofo-485573266478",
164
- correctUrl: "https://videomail.io/correct/test-example-mofo-485573266478",
165
- dateCreatedPretty: "Nov 25, 2017, 1:42 PM",
166
- sendingToPretty: "automatic@videomail.io",
167
161
  },
168
- "videomail",
169
- );
162
+ replyUrl: "/reply/test-example-mofo-485573266478",
163
+ correctUrl: "https://videomail.io/correct/test-example-mofo-485573266478",
164
+ dateCreatedPretty: "Nov 25, 2017, 1:42 PM",
165
+ sendingToPretty: "automatic@videomail.io",
166
+ });
170
167
  </script>
171
168
  </body>
172
169
  </html>