File tree Expand file tree Collapse file tree 10 files changed +22
-23
lines changed Expand file tree Collapse file tree 10 files changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ export interface SelectConfig {
32
32
debounce ?: boolean ;
33
33
}
34
34
35
- export const initialStateToken = new InjectionToken ( 'ComponentStore InitState' ) ;
35
+ export const INITIAL_STATE_TOKEN = new InjectionToken (
36
+ '@ngrx/component-store Initial State'
37
+ ) ;
36
38
37
39
@Injectable ( )
38
40
export class ComponentStore < T extends object > implements OnDestroy {
@@ -49,7 +51,7 @@ export class ComponentStore<T extends object> implements OnDestroy {
49
51
// Needs to be after destroy$ is declared because it's used in select.
50
52
readonly state$ : Observable < T > = this . select ( ( s ) => s ) ;
51
53
52
- constructor ( @Optional ( ) @Inject ( initialStateToken ) defaultState ?: T ) {
54
+ constructor ( @Optional ( ) @Inject ( INITIAL_STATE_TOKEN ) defaultState ?: T ) {
53
55
// State can be initialized either through constructor or setState.
54
56
if ( defaultState ) {
55
57
this . initState ( defaultState ) ;
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ import { SchedulerLike } from 'rxjs';
4
4
// See https://github.com/ReactiveX/rxjs/blob/master/doc/marble-testing.md
5
5
/** Token to inject a special RxJS Scheduler during marble tests. */
6
6
export const ENTITY_EFFECTS_SCHEDULER = new InjectionToken < SchedulerLike > (
7
- 'EntityEffects Scheduler'
7
+ '@ngrx/data Entity Effects Scheduler'
8
8
) ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { EntityDispatcherDefaultOptions } from '../dispatchers/entity-dispatcher
6
6
import { EntityFilterFn } from './entity-filters' ;
7
7
8
8
export const ENTITY_METADATA_TOKEN = new InjectionToken < EntityMetadataMap > (
9
- '@ngrx/data/entity-metadata '
9
+ '@ngrx/data Entity Metadata '
10
10
) ;
11
11
12
12
/** Metadata that describe an entity type and its collection to @ngrx/data */
Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ import { EntityCache } from './entity-cache';
4
4
5
5
export const ENTITY_CACHE_NAME = 'entityCache' ;
6
6
export const ENTITY_CACHE_NAME_TOKEN = new InjectionToken < string > (
7
- '@ngrx/data/entity-cache-name '
7
+ '@ngrx/data Entity Cache Name '
8
8
) ;
9
9
10
10
export const ENTITY_CACHE_META_REDUCERS = new InjectionToken <
11
11
MetaReducer < any , any > [ ]
12
- > ( '@ngrx/data/entity-cache-meta-reducers ' ) ;
12
+ > ( '@ngrx/data Entity Cache Meta Reducers ' ) ;
13
13
export const ENTITY_COLLECTION_META_REDUCERS = new InjectionToken <
14
14
MetaReducer < any , any > [ ]
15
- > ( '@ngrx/data/entity-collection-meta-reducers ' ) ;
15
+ > ( '@ngrx/data Entity Collection Meta Reducers ' ) ;
16
16
17
17
export const INITIAL_ENTITY_CACHE_STATE = new InjectionToken <
18
18
EntityCache | ( ( ) => EntityCache )
19
- > ( '@ngrx/data/initial-entity-cache-state ' ) ;
19
+ > ( '@ngrx/data Initial Entity Cache State ' ) ;
Original file line number Diff line number Diff line change 8
8
9
9
export const ENTITY_CACHE_SELECTOR_TOKEN = new InjectionToken <
10
10
MemoizedSelector < Object , EntityCache >
11
- > ( '@ngrx/data/entity-cache-selector ' ) ;
11
+ > ( '@ngrx/data Entity Cache Selector ' ) ;
12
12
13
13
export const entityCacheSelectorProvider : FactoryProvider = {
14
14
provide : ENTITY_CACHE_SELECTOR_TOKEN ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export interface EntityPluralNames {
14
14
}
15
15
16
16
export const PLURAL_NAMES_TOKEN = new InjectionToken < EntityPluralNames > (
17
- '@ngrx/data/plural-names '
17
+ '@ngrx/data Plural Names '
18
18
) ;
19
19
20
20
export abstract class Pluralizer {
Original file line number Diff line number Diff line change @@ -4,24 +4,21 @@ import { EffectsErrorHandler } from './effects_error_handler';
4
4
export const _ROOT_EFFECTS_GUARD = new InjectionToken < void > (
5
5
'@ngrx/effects Internal Root Guard'
6
6
) ;
7
- export const IMMEDIATE_EFFECTS = new InjectionToken < any [ ] > (
8
- 'ngrx/effects: Immediate Effects'
9
- ) ;
10
7
export const USER_PROVIDED_EFFECTS = new InjectionToken < Type < any > [ ] [ ] > (
11
- 'ngrx/effects: User Provided Effects'
8
+ '@ ngrx/effects User Provided Effects'
12
9
) ;
13
10
export const _ROOT_EFFECTS = new InjectionToken < Type < any > [ ] > (
14
- 'ngrx/effects: Internal Root Effects'
11
+ '@ ngrx/effects Internal Root Effects'
15
12
) ;
16
13
export const ROOT_EFFECTS = new InjectionToken < Type < any > [ ] > (
17
- 'ngrx/effects: Root Effects'
14
+ '@ ngrx/effects Root Effects'
18
15
) ;
19
16
export const _FEATURE_EFFECTS = new InjectionToken < Type < any > [ ] > (
20
- 'ngrx/effects: Internal Feature Effects'
17
+ '@ ngrx/effects Internal Feature Effects'
21
18
) ;
22
19
export const FEATURE_EFFECTS = new InjectionToken < any [ ] [ ] > (
23
- 'ngrx/effects: Feature Effects'
20
+ '@ ngrx/effects Feature Effects'
24
21
) ;
25
22
export const EFFECTS_ERROR_HANDLER = new InjectionToken < EffectsErrorHandler > (
26
- 'ngrx/effects: Effects Error Handler'
23
+ '@ ngrx/effects Effects Error Handler'
27
24
) ;
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ export class StoreDevtoolsConfig {
39
39
}
40
40
41
41
export const STORE_DEVTOOLS_CONFIG = new InjectionToken < StoreDevtoolsConfig > (
42
- '@ngrx/devtools Options'
42
+ '@ngrx/store- devtools Options'
43
43
) ;
44
44
export const INITIAL_OPTIONS = new InjectionToken < StoreDevtoolsConfig > (
45
- '@ngrx/devtools Initial Config'
45
+ '@ngrx/store- devtools Initial Config'
46
46
) ;
47
47
48
48
export type StoreDevtoolsOptions =
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export const ExtensionActionTypes = {
41
41
42
42
export const REDUX_DEVTOOLS_EXTENSION = new InjectionToken <
43
43
ReduxDevtoolsExtension
44
- > ( 'Redux Devtools Extension' ) ;
44
+ > ( '@ngrx/store-devtools Redux Devtools Extension' ) ;
45
45
46
46
export interface ReduxDevtoolsExtensionConnection {
47
47
subscribe ( listener : ( change : any ) => void ) : void ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
19
19
import { DevtoolsDispatcher } from './devtools-dispatcher' ;
20
20
21
21
export const IS_EXTENSION_OR_MONITOR_PRESENT = new InjectionToken < boolean > (
22
- 'Is Devtools Extension or Monitor Present'
22
+ '@ngrx/store-devtools Is Devtools Extension or Monitor Present'
23
23
) ;
24
24
25
25
export function createIsExtensionOrMonitorPresent (
You can’t perform that action at this time.
0 commit comments