File tree Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Expand file tree Collapse file tree 5 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 17
17
build :
18
18
runs-on : ubuntu-latest
19
19
steps :
20
- - uses : actions/checkout@v2
21
- - uses : actions/setup-node@v2
20
+ - uses : actions/checkout@v3
21
+ - uses : actions/setup-node@v3
22
22
with :
23
23
node-version : 18
24
24
Original file line number Diff line number Diff line change 11
11
build :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v2
15
- - uses : actions/setup-node@v2
14
+ - uses : actions/checkout@v3
15
+ - uses : actions/setup-node@v3
16
16
with :
17
17
node-version : 18
18
18
58
58
with :
59
59
name : pack-artifact
60
60
61
- - uses : actions/setup-node@v2
61
+ - uses : actions/setup-node@v3
62
62
with :
63
63
node-version : 18
64
64
registry-url : https://registry.npmjs.org/
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @zxing/browser" ,
3
- "version" : " 0.1.4 " ,
3
+ "version" : " 0.1.5 " ,
4
4
"description" : " ZXing for JS's browser layer." ,
5
5
"keywords" : [
6
6
" reader" ,
62
62
"devDependencies" : {
63
63
"@rollup/plugin-node-resolve" : " ^13.1.3" ,
64
64
"@types/chai" : " ^4.3.0" ,
65
- "@zxing/library" : " ^0.20 .0" ,
65
+ "@zxing/library" : " ^0.21 .0" ,
66
66
"chai" : " ^4.3.6" ,
67
67
"cypress" : " ^9.4.1" ,
68
68
"eslint" : " ^8.8.0" ,
Original file line number Diff line number Diff line change @@ -1032,13 +1032,13 @@ export class BrowserCodeReader {
1032
1032
/**
1033
1033
* The HTML canvas element context.
1034
1034
*/
1035
- let captureCanvasContext ;
1035
+ let captureCanvasContext : any ;
1036
1036
try {
1037
- captureCanvasContext = elem . getContext ( '2d' , { willReadFrequently : true } ) as CanvasRenderingContext2D ;
1037
+ captureCanvasContext = captureCanvas . getContext ( '2d' , { willReadFrequently : true } ) as CanvasRenderingContext2D ;
1038
1038
} catch ( e ) {
1039
- captureCanvasContext = elem . getContext ( '2d' ) ;
1039
+ captureCanvasContext = captureCanvas . getContext ( '2d' ) ;
1040
1040
}
1041
-
1041
+
1042
1042
// cannot proceed w/o this
1043
1043
if ( ! captureCanvasContext ) {
1044
1044
throw new Error ( 'Couldn\'t create canvas for visual element scan.' ) ;
Original file line number Diff line number Diff line change 282
282
dependencies :
283
283
" @types/node" " *"
284
284
285
- " @zxing/library@^0.20 .0 " :
286
- version "0.20 .0"
287
- resolved "https://registry.yarnpkg.com/@zxing/library/-/library-0.20 .0.tgz#11bc411b87693015389555c589da61532879be7b "
288
- integrity sha512-6Ev6rcqVjMakZFIDvbUf0dtpPGeZMTfyxYg4HkVWioWeN7cRcnUWT3bU6sdohc82O1nPXcjq6WiGfXX2Pnit6A ==
285
+ " @zxing/library@^0.21 .0 " :
286
+ version "0.21 .0"
287
+ resolved "https://registry.yarnpkg.com/@zxing/library/-/library-0.21 .0.tgz#f20377c394f7023d11a740697cc57dd70b49eaa9 "
288
+ integrity sha512-2+DFYM6NLl+ZXXUbDOkmVn4TAAOgTniEx5MJD2kStujcxSl6j9CfAgIT8DcsBYIlT5DW7oeiShEzWZjpL0hNOw ==
289
289
dependencies :
290
290
ts-custom-error "^3.2.1"
291
291
optionalDependencies :
You can’t perform that action at this time.
0 commit comments