Skip to content

Commit 40a1224

Browse files
update angular
1 parent e1e556c commit 40a1224

File tree

10 files changed

+520
-2885
lines changed

10 files changed

+520
-2885
lines changed

LiveDemo/ClientApp/polyfills/browser.polyfills.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

LiveDemo/ClientApp/polyfills/polyfills.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

LiveDemo/ClientApp/polyfills/server.polyfills.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
{
2-
"extends": "../tsconfig.json",
3-
"compilerOptions": {
4-
"outDir": "../out-tsc/spec",
5-
"module": "commonjs",
6-
"target": "es5",
7-
"baseUrl": "",
8-
"types": ["jasmine", "node"]
9-
},
10-
"files": ["polyfills.ts"],
11-
"include": ["**/*.spec.ts", "**/*.d.ts"]
12-
}
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/spec",
5+
"module": "commonjs",
6+
"target": "es5",
7+
"baseUrl": "",
8+
"types": ["jasmine", "node"]
9+
},
10+
"include": ["**/*.spec.ts", "**/*.d.ts"]
11+
}

LiveDemo/angular.json

Lines changed: 113 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,113 @@
1-
{
2-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3-
"version": 1,
4-
"newProjectRoot": "projects",
5-
"projects": {
6-
"AspnetCore-Angular-Universal": {
7-
"root": "",
8-
"sourceRoot": "ClientApp",
9-
"projectType": "application",
10-
"prefix": "app",
11-
"schematics": {},
12-
"architect": {
13-
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
15-
"options": {
16-
"outputPath": "wwwroot/dist",
17-
"main": "ClientApp/boot-browser.ts",
18-
"polyfills": "ClientApp/polyfills/polyfills.ts",
19-
"tsConfig": "ClientApp/tsconfig.app.json",
20-
"assets": [
21-
"src/assets",
22-
{
23-
"glob": "**/*",
24-
"input": "node_modules/ng2-pdfjs-viewer/pdfjs",
25-
"output": "/assets/pdfjs"
26-
}
27-
],
28-
"styles": [],
29-
"scripts": []
30-
},
31-
"configurations": {
32-
"production": {
33-
"fileReplacements": [
34-
{
35-
"replace": "ClientApp/environments/environment.ts",
36-
"with": "ClientApp/environments/environment.prod.ts"
37-
}
38-
],
39-
"optimization": true,
40-
"outputHashing": "all",
41-
"sourceMap": false,
42-
"extractCss": true,
43-
"namedChunks": false,
44-
"aot": true,
45-
"extractLicenses": true,
46-
"vendorChunk": false,
47-
"buildOptimizer": true
48-
}
49-
}
50-
},
51-
"serve": {
52-
"builder": "@angular-devkit/build-angular:dev-server",
53-
"options": {
54-
"browserTarget": "AspnetCore-Angular-Universal:build"
55-
},
56-
"configurations": {
57-
"production": {
58-
"browserTarget": "AspnetCore-Angular-Universal:build:production"
59-
}
60-
}
61-
},
62-
"extract-i18n": {
63-
"builder": "@angular-devkit/build-angular:extract-i18n",
64-
"options": {
65-
"browserTarget": "AspnetCore-Angular-Universal:build"
66-
}
67-
},
68-
"test": {
69-
"builder": "@angular-devkit/build-angular:karma",
70-
"options": {
71-
"main": "ClientApp/test.ts",
72-
"polyfills": "ClientApp/polyfills.ts",
73-
"tsConfig": "ClientApp/tsconfig.spec.json",
74-
"karmaConfig": "ClientApp/karma.conf.js",
75-
"styles": ["ClientApp/styles.css"],
76-
"scripts": [],
77-
"assets": ["ClientApp/favicon.ico", "ClientApp/assets"]
78-
}
79-
},
80-
"lint": {
81-
"builder": "@angular-devkit/build-angular:tslint",
82-
"options": {
83-
"tsConfig": [
84-
"ClientApp/tsconfig.app.json",
85-
"ClientApp/tsconfig.spec.json"
86-
],
87-
"exclude": ["**/node_modules/**"]
88-
}
89-
}
90-
}
91-
},
92-
"AspnetCore-Angular-Universal-e2e": {
93-
"root": "e2e/",
94-
"projectType": "application",
95-
"architect": {
96-
"e2e": {
97-
"builder": "@angular-devkit/build-angular:protractor",
98-
"options": {
99-
"protractorConfig": "e2e/protractor.conf.js",
100-
"devServerTarget": "AspnetCore-Angular-Universal:serve"
101-
}
102-
},
103-
"lint": {
104-
"builder": "@angular-devkit/build-angular:tslint",
105-
"options": {
106-
"tsConfig": "e2e/tsconfig.e2e.json",
107-
"exclude": ["**/node_modules/**"]
108-
}
109-
}
110-
}
111-
}
112-
},
113-
"defaultProject": "AspnetCore-Angular-Universal"
114-
}
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"AspnetCore-Angular-Universal": {
7+
"root": "",
8+
"sourceRoot": "ClientApp",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "wwwroot/dist",
17+
"main": "ClientApp/boot-browser.ts",
18+
"tsConfig": "ClientApp/tsconfig.app.json",
19+
"assets": [
20+
"src/assets",
21+
{
22+
"glob": "**/*",
23+
"input": "node_modules/ng2-pdfjs-viewer/pdfjs",
24+
"output": "/assets/pdfjs"
25+
}
26+
],
27+
"styles": [],
28+
"scripts": []
29+
},
30+
"configurations": {
31+
"production": {
32+
"fileReplacements": [
33+
{
34+
"replace": "ClientApp/environments/environment.ts",
35+
"with": "ClientApp/environments/environment.prod.ts"
36+
}
37+
],
38+
"optimization": true,
39+
"outputHashing": "all",
40+
"sourceMap": false,
41+
"extractCss": true,
42+
"namedChunks": false,
43+
"aot": true,
44+
"extractLicenses": true,
45+
"vendorChunk": false,
46+
"buildOptimizer": true
47+
}
48+
}
49+
},
50+
"serve": {
51+
"builder": "@angular-devkit/build-angular:dev-server",
52+
"options": {
53+
"browserTarget": "AspnetCore-Angular-Universal:build"
54+
},
55+
"configurations": {
56+
"production": {
57+
"browserTarget": "AspnetCore-Angular-Universal:build:production"
58+
}
59+
}
60+
},
61+
"extract-i18n": {
62+
"builder": "@angular-devkit/build-angular:extract-i18n",
63+
"options": {
64+
"browserTarget": "AspnetCore-Angular-Universal:build"
65+
}
66+
},
67+
"test": {
68+
"builder": "@angular-devkit/build-angular:karma",
69+
"options": {
70+
"main": "ClientApp/test.ts",
71+
"polyfills": "ClientApp/polyfills.ts",
72+
"tsConfig": "ClientApp/tsconfig.spec.json",
73+
"karmaConfig": "ClientApp/karma.conf.js",
74+
"styles": ["ClientApp/styles.css"],
75+
"scripts": [],
76+
"assets": ["ClientApp/favicon.ico", "ClientApp/assets"]
77+
}
78+
},
79+
"lint": {
80+
"builder": "@angular-devkit/build-angular:tslint",
81+
"options": {
82+
"tsConfig": [
83+
"ClientApp/tsconfig.app.json",
84+
"ClientApp/tsconfig.spec.json"
85+
],
86+
"exclude": ["**/node_modules/**"]
87+
}
88+
}
89+
}
90+
},
91+
"AspnetCore-Angular-Universal-e2e": {
92+
"root": "e2e/",
93+
"projectType": "application",
94+
"architect": {
95+
"e2e": {
96+
"builder": "@angular-devkit/build-angular:protractor",
97+
"options": {
98+
"protractorConfig": "e2e/protractor.conf.js",
99+
"devServerTarget": "AspnetCore-Angular-Universal:serve"
100+
}
101+
},
102+
"lint": {
103+
"builder": "@angular-devkit/build-angular:tslint",
104+
"options": {
105+
"tsConfig": "e2e/tsconfig.e2e.json",
106+
"exclude": ["**/node_modules/**"]
107+
}
108+
}
109+
}
110+
}
111+
},
112+
"defaultProject": "AspnetCore-Angular-Universal"
113+
}

LiveDemo/tsconfig.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
{
2-
"compilerOptions": {
3-
"moduleResolution": "node",
4-
"module": "es2015",
5-
"target": "es5",
6-
"alwaysStrict": true,
7-
"noImplicitAny": false,
8-
"sourceMap": true,
9-
"experimentalDecorators": true,
10-
"emitDecoratorMetadata": true,
11-
"skipDefaultLibCheck": true,
12-
"skipLibCheck": true,
13-
"allowUnreachableCode": false,
14-
"lib": [
15-
"es2016",
16-
"dom"
17-
],
18-
"types": [ "node" ]
19-
},
20-
"include": [
21-
"ClientApp", "Server/RestAPI/DocumentController.cs"
22-
]
23-
}
1+
{
2+
"compilerOptions": {
3+
"moduleResolution": "node",
4+
"module": "ES2022",
5+
"target": "ES2022",
6+
"alwaysStrict": true,
7+
"noImplicitAny": false,
8+
"sourceMap": true,
9+
"experimentalDecorators": true,
10+
"emitDecoratorMetadata": true,
11+
"skipDefaultLibCheck": true,
12+
"skipLibCheck": true,
13+
"allowUnreachableCode": false,
14+
"lib": [
15+
"ES2022",
16+
"dom"
17+
],
18+
"types": [ "node" ]
19+
},
20+
"include": [
21+
"ClientApp", "Server/RestAPI/DocumentController.cs"
22+
]
23+
}

lib/dist/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "ng2-pdfjs-viewer",
3-
"version": "16.0.4",
3+
"version": "17.0.2",
44
"$schema": "./node_modules/ng-packagr/package.schema.json",
55
"peerDependencies": {
6-
"@angular/common": "^16.0.4",
7-
"@angular/core": "^16.0.4"
6+
"@angular/common": "^17.0.2",
7+
"@angular/core": "^17.0.2",
8+
"ng-packagr": "^17.0.0"
89
},
910
"repository": {
1011
"type": "git",
@@ -26,6 +27,9 @@
2627
"bugs": {
2728
"url": "https://github.com/intbot/ng2-pdfjs-viewer/issues"
2829
},
30+
"dependencies": {
31+
"tslib": "^2.3.0"
32+
},
2933
"module": "fesm2022/ng2-pdfjs-viewer.mjs",
3034
"typings": "index.d.ts",
3135
"exports": {
@@ -39,8 +43,5 @@
3943
"default": "./fesm2022/ng2-pdfjs-viewer.mjs"
4044
}
4145
},
42-
"sideEffects": false,
43-
"dependencies": {
44-
"tslib": "^2.3.0"
45-
}
46+
"sideEffects": false
4647
}

0 commit comments

Comments
 (0)