CryptoJS replaced by CryptoES

This commit is contained in:
Chneemann 2024-05-25 10:53:08 +02:00
parent ab0ba5225e
commit b79ad59d2e
4 changed files with 8 additions and 16 deletions

17
package-lock.json generated
View file

@ -19,7 +19,7 @@
"@angular/router": "^17.2.0", "@angular/router": "^17.2.0",
"@ngx-translate/core": "^15.0.0", "@ngx-translate/core": "^15.0.0",
"@ngx-translate/http-loader": "^8.0.0", "@ngx-translate/http-loader": "^8.0.0",
"crypto-js": "^4.2.0", "crypto-es": "^2.1.0",
"ngx-color-picker": "^16.0.0", "ngx-color-picker": "^16.0.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
@ -29,7 +29,6 @@
"@angular-devkit/build-angular": "^17.2.1", "@angular-devkit/build-angular": "^17.2.1",
"@angular/cli": "^17.2.1", "@angular/cli": "^17.2.1",
"@angular/compiler-cli": "^17.2.0", "@angular/compiler-cli": "^17.2.0",
"@types/crypto-js": "^4.2.2",
"@types/jasmine": "~5.1.0", "@types/jasmine": "~5.1.0",
"jasmine-core": "~5.1.0", "jasmine-core": "~5.1.0",
"karma": "~6.4.0", "karma": "~6.4.0",
@ -4356,12 +4355,6 @@
"@types/node": "*" "@types/node": "*"
} }
}, },
"node_modules/@types/crypto-js": {
"version": "4.2.2",
"resolved": "https://registry.npmjs.org/@types/crypto-js/-/crypto-js-4.2.2.tgz",
"integrity": "sha512-sDOLlVbHhXpAUAL0YHDUUwDZf3iN4Bwi4W6a0W0b+QcAezUbRtH4FVb+9J4h+XFPW7l/gQ9F8qC7P+Ec4k8QVQ==",
"dev": true
},
"node_modules/@types/eslint": { "node_modules/@types/eslint": {
"version": "8.56.6", "version": "8.56.6",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.6.tgz", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.56.6.tgz",
@ -6084,10 +6077,10 @@
"node": ">= 8" "node": ">= 8"
} }
}, },
"node_modules/crypto-js": { "node_modules/crypto-es": {
"version": "4.2.0", "version": "2.1.0",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz", "resolved": "https://registry.npmjs.org/crypto-es/-/crypto-es-2.1.0.tgz",
"integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q==" "integrity": "sha512-C5Dbuv4QTPGuloy5c5Vv/FZHtmK+lobLAypFfuRaBbwCsk3qbCWWESCH3MUcBsrgXloRNMrzwUAiPg4U6+IaKA=="
}, },
"node_modules/css-loader": { "node_modules/css-loader": {
"version": "6.10.0", "version": "6.10.0",

View file

@ -21,7 +21,7 @@
"@angular/router": "^17.2.0", "@angular/router": "^17.2.0",
"@ngx-translate/core": "^15.0.0", "@ngx-translate/core": "^15.0.0",
"@ngx-translate/http-loader": "^8.0.0", "@ngx-translate/http-loader": "^8.0.0",
"crypto-js": "^4.2.0", "crypto-es": "^2.1.0",
"ngx-color-picker": "^16.0.0", "ngx-color-picker": "^16.0.0",
"rxjs": "~7.8.0", "rxjs": "~7.8.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
@ -31,7 +31,6 @@
"@angular-devkit/build-angular": "^17.2.1", "@angular-devkit/build-angular": "^17.2.1",
"@angular/cli": "^17.2.1", "@angular/cli": "^17.2.1",
"@angular/compiler-cli": "^17.2.0", "@angular/compiler-cli": "^17.2.0",
"@types/crypto-js": "^4.2.2",
"@types/jasmine": "~5.1.0", "@types/jasmine": "~5.1.0",
"jasmine-core": "~5.1.0", "jasmine-core": "~5.1.0",
"karma": "~6.4.0", "karma": "~6.4.0",

View file

@ -13,7 +13,7 @@ import {
} from '@angular/fire/firestore'; } from '@angular/fire/firestore';
import { Task } from '../interfaces/task.interface'; import { Task } from '../interfaces/task.interface';
import { User } from '../interfaces/user.interface'; import { User } from '../interfaces/user.interface';
import * as CryptoJS from 'crypto-js'; import CryptoJS from 'crypto-es';
import { CryptoJSSecretKey } from './../environments/config'; import { CryptoJSSecretKey } from './../environments/config';
@Injectable({ @Injectable({

View file

@ -22,7 +22,7 @@ import {
import { SharedService } from './shared.service'; import { SharedService } from './shared.service';
import { User } from '../interfaces/user.interface'; import { User } from '../interfaces/user.interface';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import * as CryptoJS from 'crypto-js'; import CryptoJS from 'crypto-es';
import { CryptoJSSecretKey } from './../environments/config'; import { CryptoJSSecretKey } from './../environments/config';
@Injectable({ @Injectable({