@jswork/next-interceptor

1.1.3 • Public • Published

next-interceptor

Interceptor for next.

version license size download

installation

npm install -S @jswork/next-interceptor

usage

import NxInterceptor from '@jswork/next-interceptor';

const intercetor = new NxInterceptor({
  async: false,
  items:[/* ... your intercetpros ... */]
});

// get response interceptor process data;
const reqData = intercetor.compose(data1, 'request');
const resData = intercetor.compose(data2, 'response');

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-interceptor

Homepage

js.work

Weekly Downloads

73

Version

1.1.3

License

MIT

Unpacked Size

7.62 kB

Total Files

6

Last publish

Collaborators

  • afeiship
  • yujiao.luo