Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { JSONAPISerializer } from '@orbit/jsonapi';
import { api as apiEnv } from '@env';
import { defaultHeaders } from '@lib/fetch';
import { schema, keyMap } from './schema';
export const serializer = new JSONAPISerializer({ schema, keyMap });
// DEBUG!
// Orbit.fetch = (...args) => {
// console.log(args);
// return fetch(...args);
// };
export function defaultOptions() {
return {
sources: {
remote: {
settings: {
...defaultSourceOptions(),
},
},
},