File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ By default when using with Ember you only need to implement this hook if you wan
188
188
*/
189
189
190
190
import EmberObject from '@ember/object' ;
191
- import { inject as service } from '@ember/service' ;
191
+ import * as s from '@ember/service' ;
192
192
193
193
import type { AdapterPayload , MinimumAdapterInterface , SerializerOptions } from '@ember-data/legacy-compat' ;
194
194
import type { Snapshot , SnapshotRecordArray } from '@ember-data/legacy-compat/-private' ;
@@ -197,6 +197,7 @@ import type { ModelSchema } from '@ember-data/store/types';
197
197
import { DEBUG } from '@warp-drive/build-config/env' ;
198
198
import { assert } from '@warp-drive/build-config/macros' ;
199
199
200
+ const service = s . service ?? s . inject ;
200
201
/**
201
202
An adapter is an object that receives requests from a store and
202
203
translates them into the appropriate action to take against your
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import type { NativeArray } from '@ember/array';
27
27
import { A } from '@ember/array' ;
28
28
import DataAdapter from '@ember/debug/data-adapter' ;
29
29
import { addObserver , removeObserver } from '@ember/object/observers' ;
30
- import { inject as service } from '@ember/service' ;
30
+ import * as s from '@ember/service' ;
31
31
32
32
import { getGlobalConfig , macroCondition } from '@embroider/macros' ;
33
33
@@ -38,6 +38,7 @@ import { recordIdentifierFor } from '@ember-data/store';
38
38
import type { ModelSchema } from '@ember-data/store/types' ;
39
39
import { assert } from '@warp-drive/build-config/macros' ;
40
40
41
+ const service = s . service ?? s . inject ;
41
42
const StoreTypesMap = new WeakMap < Store , Map < string , boolean > > ( ) ;
42
43
43
44
type RecordColor = 'black' | 'red' | 'blue' | 'green' ;
Original file line number Diff line number Diff line change 108
108
*/
109
109
110
110
import EmberObject from '@ember/object' ;
111
- import { inject as service } from '@ember/service' ;
111
+ import * as s from '@ember/service' ;
112
112
113
113
import type Store from '@ember-data/store' ;
114
114
import type { ModelSchema } from '@ember-data/store/types' ;
115
115
import type { EmptyResourceDocument , SingleResourceDocument } from '@warp-drive/core-types/spec/json-api-raw' ;
116
116
117
+ const service = s . service ?? s . inject ;
118
+
117
119
/**
118
120
> ⚠️ CAUTION you likely want the docs for [<Interface> Serializer](/ember-data/release/classes/%3CInterface%3E%20Serializer)
119
121
> as extending this abstract class is unnecessary.
You can’t perform that action at this time.
0 commit comments