Skip to content

Changed Options Interface

Choose a tag to compare

@brillout brillout released this 15 Oct 23:14
· 530 commits to master since this release

In v0.6.x options were set like this:

import {WildcardClient} from 'wildcard-api/client';

const endpoints = new WildcardClient({
  argumentsAlwaysInHttpBody: true,
});

callEndpoint();

async function callEndpoint() {
  await endpoints.myEndpoint();
};

In v0.7.x options are now set like this:

import wildcardClient, {endpoints} from 'wildcard-api/client';

wildcardClient.argumentsAlwaysInHttpBody = true;

callEndpoint();

async function callEndpoint() {
  await endpoints.myEndpoint();
};