Skip to content

Changed Options Interface

Choose a tag to compare

@brillout brillout released this 14 Oct 17:19
· 540 commits to master since this release

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

import wildcardClient from 'wildcard-api/client';

wildcardClient.argumentsAlwaysInHttpBody = true;

const {endpoints} = wildcardClient;

callEndpoint();

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

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

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

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

callEndpoint();

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