UNPKG

ember-data

Version:

The lightweight reactive data library for JavaScript applications

1 lines 1.48 kB
{"version":3,"file":"setup-container.js","sources":["../src/setup-container.ts"],"sourcesContent":["import type Application from '@ember/application';\nimport { deprecate } from '@ember/debug';\n\nfunction initializeStore(application: Application) {\n application.registerOptionsForType('serializer', { singleton: false });\n application.registerOptionsForType('adapter', { singleton: false });\n}\n\nexport default function setupContainer(application: Application) {\n initializeStore(application);\n}\n\ndeprecate('Importing from `ember-data/setup-container` is deprecated without replacement', false, {\n id: 'ember-data:deprecate-legacy-imports',\n for: 'ember-data',\n until: '6.0',\n since: {\n enabled: '5.2',\n available: '5.2',\n },\n});\n"],"names":["initializeStore","application","registerOptionsForType","singleton","setupContainer","deprecate","id","for","until","since","enabled","available"],"mappings":";;AAGA,SAASA,eAAeA,CAACC,WAAwB,EAAE;AACjDA,EAAAA,WAAW,CAACC,sBAAsB,CAAC,YAAY,EAAE;AAAEC,IAAAA,SAAS,EAAE,KAAA;AAAM,GAAC,CAAC,CAAA;AACtEF,EAAAA,WAAW,CAACC,sBAAsB,CAAC,SAAS,EAAE;AAAEC,IAAAA,SAAS,EAAE,KAAA;AAAM,GAAC,CAAC,CAAA;AACrE,CAAA;AAEe,SAASC,cAAcA,CAACH,WAAwB,EAAE;EAC/DD,eAAe,CAACC,WAAW,CAAC,CAAA;AAC9B,CAAA;AAEAI,SAAS,CAAC,+EAA+E,EAAE,KAAK,EAAE;AAChGC,EAAAA,EAAE,EAAE,qCAAqC;AACzCC,EAAAA,GAAG,EAAE,YAAY;AACjBC,EAAAA,KAAK,EAAE,KAAK;AACZC,EAAAA,KAAK,EAAE;AACLC,IAAAA,OAAO,EAAE,KAAK;AACdC,IAAAA,SAAS,EAAE,KAAA;AACb,GAAA;AACF,CAAC,CAAC;;;;"}