diff --git a/package-lock.json b/package-lock.json old mode 100755 new mode 100644 index 7781748fa..637dc7a62 --- a/package-lock.json +++ b/package-lock.json @@ -2932,6 +2932,12 @@ "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", "dev": true }, + "deep-freeze-strict": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/deep-freeze-strict/-/deep-freeze-strict-1.1.1.tgz", + "integrity": "sha1-d9BYPKJKab5LvZrC+uQV1VUj5bA=", + "dev": true + }, "deep-is": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", @@ -8246,6 +8252,15 @@ "dev": true, "optional": true }, + "ngrx-store-freeze": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/ngrx-store-freeze/-/ngrx-store-freeze-0.2.1.tgz", + "integrity": "sha512-nQZJoyR03OqGR0dWWqIJgzkMj+99xnFgIY35Z5UXVhLEIfvk4HjuQ/iIeQU1dLHmZ8NnUDRFcrEthCSvE4eAWQ==", + "dev": true, + "requires": { + "deep-freeze-strict": "1.1.1" + } + }, "no-case": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/no-case/-/no-case-2.3.2.tgz", diff --git a/package.json b/package.json old mode 100755 new mode 100644 index e1711b369..6a1e8df30 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "karma-jasmine-html-reporter": "^0.2.2", "karma-phantomjs-launcher": "^1.0.4", "karma-spec-reporter": "0.0.31", + "ngrx-store-freeze": "^0.2.1", "prettier": "^1.7.4", "protractor": "~5.3.0", "standard-version": "^4.2.0", diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts index c676c65d9..2c85f53b0 100644 --- a/src/app/core/core.module.ts +++ b/src/app/core/core.module.ts @@ -3,6 +3,7 @@ import { CommonModule } from '@angular/common'; import { HttpClientModule } from '@angular/common/http'; import { MetaReducer, StoreModule } from '@ngrx/store'; import { EffectsModule } from '@ngrx/effects'; +import { storeFreeze } from 'ngrx-store-freeze'; import { environment } from '@env/environment'; @@ -16,7 +17,7 @@ import { AuthGuardService } from './auth/auth-guard.service'; export const metaReducers: MetaReducer[] = [initStateFromLocalStorage]; if (!environment.production) { - metaReducers.unshift(debug); + metaReducers.unshift(debug, storeFreeze); } @NgModule({