2.1.0 • Published 8 years ago

tectonic-superagent v2.1.0

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
8 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

8 years ago

1.2.2

9 years ago

1.0.5

9 years ago

1.0.3

9 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago