Skip to content

Commit 66ad938

Browse files
authored
Merge pull request #10 from BlinkID/staging
2 parents 3f66003 + eefbc88 commit 66ad938

14 files changed

Lines changed: 52 additions & 10 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "capture-sdk",
33
"description": "",
4-
"version": "1.1.0",
4+
"version": "1.0.0",
55
"author": "",
66
"scripts": {
77
"build": "FORCE_COLOR=1 turbo build --no-daemon",

packages/capture-main/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# capture-main
22

3+
## 1.2.2
4+
5+
### Patch Changes
6+
7+
- capture-wasm@1.2.2
8+
- capture-worker@1.2.2
9+
310
## 1.2.1
411

512
### Patch Changes

packages/capture-main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "capture-main",
33
"description": "",
44
"private": true,
5-
"version": "1.2.1",
5+
"version": "1.2.2",
66
"author": "",
77
"scripts": {
88
"build": "concurrently pnpm:build:js pnpm:build:types",

packages/capture-main/src/core/getCrossOriginWorkerURL.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,32 @@ export const getCrossOriginWorkerURL = (
4040
return Promise.resolve(originalWorkerUrl);
4141
}
4242

43+
let signal: AbortSignal;
44+
45+
try {
46+
// Setup the abort controller
47+
const controller = new AbortController();
48+
signal = controller.signal;
49+
50+
const timeout = setTimeout(() => {
51+
controller.abort();
52+
}, 3000);
53+
54+
const cleanup = () => {
55+
clearTimeout(timeout);
56+
controller.abort();
57+
};
58+
59+
signal.addEventListener("abort", cleanup);
60+
} catch (error) {
61+
// just swallow the error
62+
}
63+
4364
return new Promise<string>(
4465
(resolve, reject) =>
4566
void fetch(originalWorkerUrl, {
4667
// abort if the worker is not fetched in a reasonable time
47-
signal: AbortSignal.timeout(3000),
68+
signal,
4869
})
4970
.then((res) => res.text())
5071
.then((codeString) => {

packages/capture-published/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @microblink/capture
22

3+
## 1.2.2
4+
5+
### Patch Changes
6+
7+
- Replace `AbortSignal.timeout` with `AbortController.abort`, as it [isn't supported on iOS 15](https://caniuse.com/mdn-api_abortsignal_timeout_static)
8+
39
## 1.2.1
410

511
### Patch Changes

packages/capture-published/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "",
44
"homepage": "https://microblink.com/",
55
"repository": "github:BlinkID/capture-browser",
6-
"version": "1.2.1",
6+
"version": "1.2.2",
77
"scripts": {
88
"build": "pnpm run create-npm",
99
"clean": "rimraf .turbo types dist publish-dir public *.tsbuildinfo",

packages/capture-wasm/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Release notes
22

3+
## 1.2.2
4+
35
## 1.2.1
46

57
### Patch Changes

packages/capture-wasm/dist/advanced-threads/capture-wasm.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,14 +441,14 @@ var createModule = (() => {
441441
var G,
442442
H,
443443
ab = {
444-
62113: (a, b, c, d) => {
444+
62105: (a, b, c, d) => {
445445
a = K(a);
446446
b = K(b);
447447
c = K(c);
448448
d = K(d);
449449
throw Error(a + b + c + d);
450450
},
451-
62329: (a, b) => {
451+
62321: (a, b) => {
452452
a = K(a);
453453
b = K(b);
454454
throw Error(a + b);
@@ -4192,8 +4192,8 @@ var createModule = (() => {
41924192
D.dynCall_iiiiiijj = (a, b, c, d, e, f, g, l, m, n) =>
41934193
(D.dynCall_iiiiiijj = Z.Qa)(a, b, c, d, e, f, g, l, m, n);
41944194
D.__ZN2MB2NN28LinearDefragmentingAllocator10Allocation4nullE = 15072;
4195-
D.___start_em_js = 61120;
4196-
D.___stop_em_js = 62113;
4195+
D.___start_em_js = 61112;
4196+
D.___stop_em_js = 62105;
41974197
D.addRunDependency = Sa;
41984198
D.removeRunDependency = Ta;
41994199
D.FS_createPath = Lc;
-192 Bytes
Binary file not shown.
-302 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)