Skip to content

Commit c35ac34

Browse files
update to web-twain 18.3
1 parent ce2be8c commit c35ac34

File tree

6 files changed

+28
-23
lines changed

6 files changed

+28
-23
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project was bootstrapped with [Angular CLI](https://github.com/angular/angu
1111
* Barcode reading
1212

1313
## Usage
14-
Environment: Node.js v16.20.0
14+
Environment: Node.js v18.16.0
1515
1. Apply for a [30-day free trial license](https://www.dynamsoft.com/customer/license/trialLicense?product=dwt) of Dynamic Web TWAIN.
1616

1717
2. Update the license key in two files `src\environments\environment.ts` and `src\environments\environment.prod.ts` :

angular.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@
4242
"with": "src/environments/environment.prod.ts"
4343
}
4444
],
45-
"optimization": true,
45+
"optimization": {
46+
"scripts": true,
47+
"styles": {
48+
"minify": true,
49+
"inlineCritical": false
50+
}},
4651
"outputHashing": "all",
4752
"sourceMap": false,
4853
"extractCss": true,

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,31 @@
1111
},
1212
"private": true,
1313
"dependencies": {
14-
"@angular/animations": "~12.0.0",
15-
"@angular/common": "~12.0.0",
16-
"@angular/compiler": "~12.0.0",
17-
"@angular/core": "~12.0.0",
18-
"@angular/forms": "~12.0.0",
19-
"@angular/localize": "^12.0.0",
20-
"@angular/platform-browser": "~12.0.0",
21-
"@angular/platform-browser-dynamic": "~12.0.0",
22-
"@angular/router": "~12.0.0",
23-
"@ng-bootstrap/ng-bootstrap": "^11.0.0-beta.0",
24-
"bootstrap": "^5.0.0",
25-
"dwt": "18.2.0",
14+
"@angular/animations": "~16.0.0",
15+
"@angular/common": "~16.0.0",
16+
"@angular/compiler": "~16.0.0",
17+
"@angular/core": "~16.0.0",
18+
"@angular/forms": "~16.0.0",
19+
"@angular/localize": "^16.0.0",
20+
"@angular/platform-browser": "~16.0.0",
21+
"@angular/platform-browser-dynamic": "~16.0.0",
22+
"@angular/router": "~16.0.0",
23+
"@ng-bootstrap/ng-bootstrap": "~15.0.0",
24+
"bootstrap": "^5.3.0",
25+
"dwt": "18.3.0",
2626
"rxjs": "~6.6.0",
2727
"tslib": "^2.1.0",
28-
"zone.js": "~0.11.4"
28+
"zone.js": "~0.13.0"
2929
},
3030
"devDependencies": {
31-
"@angular-devkit/build-angular": "~12.0.0",
32-
"@angular/cli": "~12.0.0",
33-
"@angular/compiler-cli": "~12.0.0",
31+
"@angular-devkit/build-angular": "~16.0.0",
32+
"@angular/cli": "~16.0.0",
33+
"@angular/compiler-cli": "~16.0.0",
3434
"@types/node": "^12.11.1",
3535
"@types/jasmine": "~3.6.0",
3636
"@types/jasminewd2": "~2.0.3",
3737
"codelyzer": "^6.0.0",
38-
"jasmine-core": "~3.7.0",
38+
"jasmine-core": "~5.0.0",
3939
"jasmine-spec-reporter": "~5.0.0",
4040
"karma": "~6.3.0",
4141
"karma-chrome-launcher": "~3.1.0",
@@ -45,6 +45,6 @@
4545
"protractor": "~7.0.0",
4646
"ts-node": "~8.3.0",
4747
"tslint": "~6.1.0",
48-
"typescript": "~4.2.3"
48+
"typescript": "~4.9.5"
4949
}
5050
}

src/environments/environment.prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export const environment = {
22
production: true,
33
Dynamsoft: {
44
resourcesPath: 'assets/dwt-resources',
5-
dwtProductKey: 't0100CgEAAI/Kalkph+rANa7xvFeYzy2ZJaF0sV188r8K/knF/akFHHvAHdHAtGHQJrpxP+nqlDJkXOD65sKMbWhdmp6b7QgCWLr5A0huNQqu+DW0v3gAgcFwAvEGSBQj0nwHo981mg==',
5+
dwtProductKey: 't0106KwEAAHS5i/IQMtobY1KiE0ohnvp0rYQ6Odqe3YSTuwoeLvNCke4y7UccAqchMe1OUgSW/vPP42qfMZqjyorwWR/DnRUBbMP5AyjcPbyr+HVod/EEDJNDB2wFSOh/Xnlxg6lISUkO19Q75w==',
66
uploadTargetURL: ''
77
}
88
};

src/environments/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const environment = {
66
production: false,
77
Dynamsoft: {
88
resourcesPath: 'assets/dwt-resources',
9-
dwtProductKey: 't0100CgEAAI/Kalkph+rANa7xvFeYzy2ZJaF0sV188r8K/knF/akFHHvAHdHAtGHQJrpxP+nqlDJkXOD65sKMbWhdmp6b7QgCWLr5A0huNQqu+DW0v3gAgcFwAvEGSBQj0nwHo981mg==',
9+
dwtProductKey: 't0106KwEAAHS5i/IQMtobY1KiE0ohnvp0rYQ6Odqe3YSTuwoeLvNCke4y7UccAqchMe1OUgSW/vPP42qfMZqjyorwWR/DnRUBbMP5AyjcPbyr+HVod/EEDJNDB2wFSOh/Xnlxg6lISUkO19Q75w==',
1010
uploadTargetURL: ''
1111
}
1212
};

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"experimentalDecorators": true,
1111
"moduleResolution": "node",
1212
"importHelpers": true,
13-
"target": "es2015",
13+
"target": "es2022",
1414
"module": "es2020",
1515
"lib": [
1616
"es2018",

0 commit comments

Comments
 (0)