Skip to content

Commit 04fc80d

Browse files
author
rk
committedFeb 6, 2025·
refactor: update deps
1 parent 2c78b4e commit 04fc80d

File tree

8 files changed

+9966
-8367
lines changed

8 files changed

+9966
-8367
lines changed
 

‎angular.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
"prefix": "app",
1717
"architect": {
1818
"build": {
19-
"builder": "@angular-devkit/build-angular:browser",
19+
"builder": "@angular-devkit/build-angular:application",
2020
"options": {
21-
"outputPath": "dist/ngx-scan-detect-app",
21+
"outputPath": {
22+
"base": "dist/ngx-scan-detect-app"
23+
},
2224
"index": "src/index.html",
23-
"main": "src/main.ts",
2425
"allowedCommonJsDependencies": [
2526
"leaflet"
2627
],
@@ -41,7 +42,8 @@
4142
"styles": [
4243
"src/styles.scss"
4344
],
44-
"scripts": []
45+
"scripts": [],
46+
"browser": "src/main.ts"
4547
},
4648
"configurations": {
4749
"production": {
@@ -60,9 +62,7 @@
6062
"outputHashing": "all"
6163
},
6264
"development": {
63-
"buildOptimizer": false,
6465
"optimization": false,
65-
"vendorChunk": true,
6666
"extractLicenses": false,
6767
"sourceMap": true,
6868
"namedChunks": true
@@ -74,18 +74,18 @@
7474
"builder": "@angular-devkit/build-angular:dev-server",
7575
"configurations": {
7676
"production": {
77-
"browserTarget": "ngx-scan-detect-app:build:production"
77+
"buildTarget": "ngx-scan-detect-app:build:production"
7878
},
7979
"development": {
80-
"browserTarget": "ngx-scan-detect-app:build:development"
80+
"buildTarget": "ngx-scan-detect-app:build:development"
8181
}
8282
},
8383
"defaultConfiguration": "development"
8484
},
8585
"extract-i18n": {
8686
"builder": "@angular-devkit/build-angular:extract-i18n",
8787
"options": {
88-
"browserTarget": "ngx-scan-detect-app:build"
88+
"buildTarget": "ngx-scan-detect-app:build"
8989
}
9090
},
9191
"test": {

‎package-lock.json

Lines changed: 9905 additions & 8305 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-scan-detect",
3-
"version": "2.0.0",
3+
"version": "2.0.5",
44
"description": "This repository helps determine input using a barcode-scanner.",
55
"author": "Roman Kolesnikov / @sezmars",
66
"repository": {
@@ -54,58 +54,58 @@
5454
},
5555
"private": true,
5656
"dependencies": {
57-
"@angular/animations": "^16.2.2",
58-
"@angular/cdk": "^16.2.1",
59-
"@angular/common": "~16.2.2",
60-
"@angular/compiler": "~16.2.2",
61-
"@angular/core": "^16.2.2",
62-
"@angular/forms": "~16.2.2",
63-
"@angular/material": "^16.2.1",
64-
"@angular/platform-browser": "~16.2.2",
65-
"@angular/platform-browser-dynamic": "~16.2.2",
66-
"@angular/router": "~16.2.2",
67-
"core-js": "^3.32.1",
68-
"eslint-import-resolver-typescript": "^3.6.0",
69-
"eslint-plugin-import": "^2.28.1",
70-
"ngx-device-detector": "^6.0.2",
71-
"ngx-scan-detect": "^2.0.2",
57+
"@angular/animations": "^19.1.4",
58+
"@angular/cdk": "^19.1.2",
59+
"@angular/common": "~19.1.4",
60+
"@angular/compiler": "~19.1.4",
61+
"@angular/core": "^19.1.4",
62+
"@angular/forms": "~19.1.4",
63+
"@angular/material": "^19.1.2",
64+
"@angular/platform-browser": "~19.1.4",
65+
"@angular/platform-browser-dynamic": "~19.1.4",
66+
"@angular/router": "~19.1.4",
67+
"core-js": "^3.40.0",
68+
"eslint-import-resolver-typescript": "^3.7.0",
69+
"eslint-plugin-import": "^2.31.0",
70+
"ngx-device-detector": "^9.0.0",
7271
"rxjs": "~7.8.1",
73-
"tslib": "^2.6.2",
74-
"zone.js": "~0.13.1"
72+
"tslib": "^2.8.1",
73+
"zone.js": "~0.15.0",
74+
"ngx-scan-detect": "^2.0.5"
7575
},
7676
"devDependencies": {
77-
"@angular-devkit/build-angular": "~16.2.0",
78-
"@angular-eslint/builder": "16.1.1",
79-
"@angular-eslint/eslint-plugin": "16.1.1",
80-
"@angular-eslint/eslint-plugin-template": "16.1.1",
81-
"@angular-eslint/schematics": "16.1.1",
82-
"@angular-eslint/template-parser": "16.1.1",
83-
"@angular/cli": "~16.2.0",
84-
"@angular/compiler-cli": "~16.2.2",
85-
"@angular/language-service": "~16.2.2",
86-
"@cypress/schematic": "^2.5.0",
87-
"@types/jasmine": "~4.3.5",
88-
"@types/jasminewd2": "~2.0.10",
89-
"@types/node": "^12.11.1",
90-
"@typescript-eslint/eslint-plugin": "5.62.0",
91-
"@typescript-eslint/parser": "5.62.0",
92-
"angular-cli-ghpages": "^1.0.6",
77+
"@angular-devkit/build-angular": "~19.1.5",
78+
"@angular-eslint/builder": "19.0.2",
79+
"@angular-eslint/eslint-plugin": "19.0.2",
80+
"@angular-eslint/eslint-plugin-template": "19.0.2",
81+
"@angular-eslint/schematics": "19.0.2",
82+
"@angular-eslint/template-parser": "19.0.2",
83+
"@angular/cli": "~19.1.5",
84+
"@angular/compiler-cli": "~19.1.4",
85+
"@angular/language-service": "~19.1.4",
86+
"@cypress/schematic": "^3.0.0",
87+
"@types/jasmine": "~5.1.5",
88+
"@types/jasminewd2": "~2.0.13",
89+
"@types/node": "^18.19.75",
90+
"@typescript-eslint/eslint-plugin": "8.23.0",
91+
"@typescript-eslint/parser": "8.23.0",
92+
"angular-cli-ghpages": "^2.0.3",
9393
"codelyzer": "^6.0.2",
9494
"cypress": "latest",
9595
"eslint": "^8.47.0",
96-
"eslint-config-prettier": "^9.0.0",
97-
"eslint-plugin-prettier": "^5.0.0",
98-
"jasmine-core": "~5.1.1",
96+
"eslint-config-prettier": "^10.0.1",
97+
"eslint-plugin-prettier": "^5.2.3",
98+
"jasmine-core": "~5.5.0",
9999
"jasmine-spec-reporter": "~7.0.0",
100-
"karma": "~6.4.0",
100+
"karma": "~6.4.4",
101101
"karma-chrome-launcher": "~3.2.0",
102-
"karma-coverage": "~2.2.0",
102+
"karma-coverage": "~2.2.1",
103103
"karma-jasmine": "~5.1.0",
104104
"karma-jasmine-html-reporter": "~2.1.0",
105-
"ng-packagr": "^16.2.1",
106-
"prettier-eslint": "^15.0.1",
105+
"ng-packagr": "^19.1.2",
106+
"prettier-eslint": "^16.3.0",
107107
"protractor": "~7.0.0",
108-
"ts-node": "~10.9.1",
109-
"typescript": "~5.1.3"
108+
"ts-node": "~10.9.2",
109+
"typescript": "~5.7.3"
110110
}
111111
}

‎projects/ngx-scan-detect/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "ngx-scan-detect",
3-
"version": "2.0.2",
3+
"version": "2.0.5",
44
"peerDependencies": {
5-
"@angular/common": "^16.2.0",
6-
"@angular/core": "^16.2.0"
5+
"@angular/common": "^19.1.4",
6+
"@angular/core": "^19.1.4"
77
},
88
"dependencies": {
9-
"tslib": "^2.3.0"
9+
"tslib": "^2.8.1"
1010
},
1111
"sideEffects": false,
1212
"keywords": [

‎projects/ngx-scan-detect/src/lib/directive/ngx-scan-detect.directive.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ class TestComponent {}
1212
describe('NgxBarcodeputDirective', () => {
1313
let fixture: ComponentFixture<TestComponent>;
1414
let tooltipElement: DebugElement;
15-
let testComponent: TestComponent;
1615

1716
beforeEach(() => {
1817
TestBed.configureTestingModule({
1918
providers: [ViewContainerRef],
2019
});
2120
fixture = TestBed.createComponent(TestComponent);
22-
testComponent = fixture.componentInstance;
2321
tooltipElement = fixture.debugElement.query(
2422
By.directive(NgxScanDetectDirective)
2523
);

‎projects/ngx-scan-detect/src/lib/directive/ngx-scan-detect.directive.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface ExtendedKeyboardEvent extends KeyboardEvent {
3535
}
3636

3737
@Directive({
38-
selector: '[ngxScanDetect]',
38+
selector: 'input[ngxScanDetect]',
3939
standalone: true,
4040
})
4141
export class NgxScanDetectDirective implements AfterViewInit, OnDestroy {
@@ -135,7 +135,8 @@ export class NgxScanDetectDirective implements AfterViewInit, OnDestroy {
135135
* Return data after typed in two characters.
136136
*/
137137
return (
138-
(event.target as HTMLInputElement).value.length > this.skipStart
138+
event.target instanceof HTMLInputElement &&
139+
event.target.value.length > this.skipStart
139140
);
140141
}),
141142

‎src/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '~@angular/material/prebuilt-themes/deeppurple-amber.css';
1+
@import '@angular/material/prebuilt-themes/deeppurple-amber.css';

‎tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"baseUrl": "./",
55
"outDir": "./dist/out-tsc",
66
"forceConsistentCasingInFileNames": true,
7+
"esModuleInterop": true,
78
"strict": true,
89
"noImplicitOverride": true,
910
"noPropertyAccessFromIndexSignature": true,
1011
"noImplicitReturns": true,
1112
"noFallthroughCasesInSwitch": true,
1213
"sourceMap": true,
1314
"declaration": false,
14-
"downlevelIteration": true,
1515
"experimentalDecorators": true,
1616
"moduleResolution": "node",
1717
"importHelpers": true,

0 commit comments

Comments
 (0)
Please sign in to comment.