From 23fff9ddbe9748723ddd57f1cabf31584e1029e1 Mon Sep 17 00:00:00 2001 From: Ricardo Neves Date: Tue, 11 Feb 2020 14:30:33 +0000 Subject: [PATCH] [Updated] packages to angular v8. --- package.json | 28 +++++++++------------- src/services/json-api-datastore.service.ts | 6 ++++- 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 6a46bc4a..5e7510a8 100644 --- a/package.json +++ b/package.json @@ -39,26 +39,20 @@ "tslib": "^1.9.0" }, "peerDependencies": { - "@angular/common": "^7.1.4", - "@angular/compiler": "^7.1.4", - "@angular/compiler-cli": "^7.1.4", - "@angular/core": "^7.1.4", - "@angular/platform-browser": "^7.1.4", - "@angular/platform-browser-dynamic": "^7.1.4", "reflect-metadata": ">=0.1.3" }, "optionalDependencies": { "fsevents": "*" }, "devDependencies": { - "@angular-devkit/build-angular": "^0.801.2", - "@angular/cli": "^8.3.21", - "@angular/common": "^7.1.4", - "@angular/compiler": "^7.1.4", - "@angular/compiler-cli": "^7.1.4", - "@angular/core": "^7.1.4", - "@angular/platform-browser": "^7.1.4", - "@angular/platform-browser-dynamic": "^7.1.4", + "@angular-devkit/build-angular": "^0.803.25", + "@angular/cli": "^8.3.25", + "@angular/common": "^8.2.14", + "@angular/compiler": "^8.2.14", + "@angular/compiler-cli": "^8.2.14", + "@angular/core": "^8.2.14", + "@angular/platform-browser": "^8.2.14", + "@angular/platform-browser-dynamic": "^8.2.14", "@types/date-fns": "^2.6.0", "@types/jasmine": "2.5.43", "@types/lodash-es": "^4.17.1", @@ -84,12 +78,12 @@ "ts-loader": "^6.0.0", "tslint": "^5.11.0", "tslint-config-airbnb": "^5.11.1", - "typescript": "3.1.6", + "typescript": "3.5.3", "webpack": "^4.28.3", "webpack-dev-middleware": "^3.4.0", - "zone.js": "^0.8.26" + "zone.js": "^0.9.1" }, "engines": { "node": ">=0.8.0" } -} +} \ No newline at end of file diff --git a/src/services/json-api-datastore.service.ts b/src/services/json-api-datastore.service.ts index 386bdd8f..ded0986f 100644 --- a/src/services/json-api-datastore.service.ts +++ b/src/services/json-api-datastore.service.ts @@ -459,7 +459,11 @@ export class JsonApiDatastore { } } - protected resetMetadataAttributes(res: T, attributesMetadata: any, modelType: ModelType) { + protected resetMetadataAttributes( + res: any, + attributesMetadata: any, + modelType: ModelType, + ) { for (const propertyName in attributesMetadata) { if (attributesMetadata.hasOwnProperty(propertyName)) { const metadata: any = attributesMetadata[propertyName];