2.1.0 • Published 7 years ago

tectonic-superagent v2.1.0

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
7 years ago

tectonic-superagent

A superagent driver for tectonic.

Usage

Basic usage:

const manager = new Manager({
  drivers: {
    fromSuperagent: new TectonicSuperagent()
});

Customization - all keys are optional:

const manager = new Manager({
  drivers: {
    fromSuperagent: new TectonicSuperagent({
	  // custom request modifier, used to manipulate the superagent request
	  // before it's sent over.
	  request: (r) => r.set('Authorization', 'Bearer xyz'),
	  // custom callback called with superagent err each time a request fails.
	  // useful if you need to intercept 401 errors to redirect to a login page,
	  // for example.
	  onError: (err) => {}
	})
  }
});
2.1.0

7 years ago

1.2.2

8 years ago

1.0.5

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago