From 36dc27ecd69b3f60fa85065a238e794056431dc9 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 22 Jan 2024 00:51:24 +0100 Subject: [PATCH] Upgrade the last stuff, fix errors. --- angular.json | 2 -- package-lock.json | 14 ++++++++++++++ package.json | 8 +++++--- src/app/native-library-wrapper.service.ts | 2 +- src/polyfills.ts | 6 +++--- tsconfig.json | 8 ++++---- 6 files changed, 27 insertions(+), 13 deletions(-) diff --git a/angular.json b/angular.json index 916cf5c..c8b9629 100644 --- a/angular.json +++ b/angular.json @@ -42,7 +42,6 @@ "optimization": true, "outputHashing": "all", "sourceMap": false, - "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, @@ -127,7 +126,6 @@ } } }, - "defaultProject": "converter", "cli": { "analytics": false } diff --git a/package-lock.json b/package-lock.json index 2a39fff..83ecdd1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,6 +31,8 @@ "@types/jasmine": "^5.1.4", "@types/jasminewd2": "^2.0.13", "@types/node": "^20.11.5", + "@types/quoted-printable": "^1.0.2", + "@types/utf8": "^3.0.3", "codelyzer": "^6.0.2", "jasmine-core": "^5.1.1", "jasmine-spec-reporter": "^7.0.0", @@ -3696,6 +3698,12 @@ "integrity": "sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==", "dev": true }, + "node_modules/@types/quoted-printable": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/quoted-printable/-/quoted-printable-1.0.2.tgz", + "integrity": "sha512-3B28oB1rRaZNb3N5dlxysm8lH1ujzvReDuYBiIO4jvpTIg9ksrILCNgPxSGVyTWE/qwuxzgHaVehwMK3CVqAtA==", + "dev": true + }, "node_modules/@types/range-parser": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", @@ -3753,6 +3761,12 @@ "@types/node": "*" } }, + "node_modules/@types/utf8": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/utf8/-/utf8-3.0.3.tgz", + "integrity": "sha512-+lqLGxWZsEe4Z6OrzBI7Ym4SMUTaMS5yOrHZ0/IL0bpIye1Qbs4PpobJL2mLDbftUXlPFZR7fu6d1yM+bHLX1w==", + "dev": true + }, "node_modules/@types/ws": { "version": "8.5.10", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.10.tgz", diff --git a/package.json b/package.json index cd27094..2cef57d 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "ng build --delete-output-path", - "build-prod": "ng build --prod --optimization --aot --delete-output-path --build-optimizer", + "build": "ng build", + "build-prod": "ng build --configuration production --build-optimizer", "test": "ng test --code-coverage", "test:ci": "ng test --browsers ChromeHeadlessNoSandbox --watch=false --code-coverage", "lint": "ng lint", @@ -53,6 +53,8 @@ "@types/jasmine": "^5.1.4", "@types/jasminewd2": "^2.0.13", "@types/node": "^20.11.5", + "@types/quoted-printable": "^1.0.2", + "@types/utf8": "^3.0.3", "codelyzer": "^6.0.2", "jasmine-core": "^5.1.1", "jasmine-spec-reporter": "^7.0.0", @@ -68,4 +70,4 @@ "tslint": "^6.1.3", "typescript": "^5.2" } -} \ No newline at end of file +} diff --git a/src/app/native-library-wrapper.service.ts b/src/app/native-library-wrapper.service.ts index eb661b1..6502d22 100644 --- a/src/app/native-library-wrapper.service.ts +++ b/src/app/native-library-wrapper.service.ts @@ -1,5 +1,5 @@ import {Injectable} from '@angular/core'; -import * as NativePunycode from 'punycode'; +import * as NativePunycode from 'punycode/'; import * as NativeQuotedPrintable from 'quoted-printable'; import * as NativeUtf8 from 'utf8'; diff --git a/src/polyfills.ts b/src/polyfills.ts index a83c61e..a0c5f5b 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -38,14 +38,14 @@ // import 'classlist.js'; // Run `npm install --save classlist.js`. /** IE10 and IE11 requires the following for the Reflect API. */ -import 'core-js/es6/reflect'; +// import 'core-js/es6/reflect'; /** Evergreen browsers require these. **/ // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove. -import 'core-js/es7/reflect'; +// import 'core-js/es7/reflect'; /*************************************************************************************************** * Zone JS is required by default for Angular itself. */ -import 'zone.js/dist/zone'; // Included with Angular CLI. +import 'zone.js'; // Included with Angular CLI. /** diff --git a/tsconfig.json b/tsconfig.json index 916247e..b7c72d9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,17 +5,17 @@ "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, - "module": "es2015", + "module": "ES2022", "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es5", + "target": "ES2022", "typeRoots": [ "node_modules/@types" ], "lib": [ - "es2017", - "dom" + "ES2017", + "DOM" ] } }