Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Releases: OpenFn/language-http

always return __cookies and __headers when `keepCookie: true`

04 Feb 09:16
Compare
Choose a tag to compare

always return __cookies and __headers when keepCookie: true

Provide backwards compatibility with v2

03 Feb 16:08
Compare
Choose a tag to compare
v3.1.2

bump version for backwards compatibility with v2

Allow successCodes to be passed in options

29 Jan 18:09
Compare
Choose a tag to compare

Defaults to 201, 201, 203 (as per version 2 of the adaptor) but allows for users to specify their own codes.

get('path', {
  options: {
    successCodes: [200, 201, 202]
  }
});

Exposes request response in state, allow `agentOptions` params

28 Jan 13:49
Compare
Choose a tag to compare
post(
  `${state.configuration.url}/Users/login`,
  {
    headers: { 'content-type': 'application/json' },
    body: {
      email: state.configuration.email,
      password: state.configuration.password,
    },
    // agentOptions allows us to build a new https agent with non-standard settings...
    agentOptions: { rejectUnauthorized: false, ca: 'some-private-key-string' },
  },
  state => {
    console.log(state.response) // display the _whole_ response from axios
    console.log(state.data) // display response.data from axios
    return state;
  }
);

Restore request for backwards compatibility

26 Jan 16:44
Compare
Choose a tag to compare

And add new language-common for to allow custom https modules or FormData usage.

Update docs, remove request entirely

25 Jan 13:50
Compare
Choose a tag to compare
v3.0.1

remove request entirely

Replace request with axios

25 Jan 12:43
Compare
Choose a tag to compare

This release provides a host of new functionality and configuration options via axios and exposes the http module directly from language-common.

Find url inside params for cookie handling

04 Nov 11:41
Compare
Choose a tag to compare
v2.4.15

params.url in cookie handler

Spread on rest

04 Nov 09:57
Compare
Choose a tag to compare

Handle any additional options passed to node request with a spread operator.

Cleaned README

03 Sep 13:04
Compare
Choose a tag to compare

This version provides a cleaner README and inline documentation.