@gopowerteam/request 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,11 +61,11 @@ var _RequestService = class {
61
61
  execResponsePlugin(leftcycle, plugins = [], options, response) {
62
62
  plugins.forEach((plugin) => {
63
63
  const leftcycleFn = plugin[leftcycle];
64
- leftcycleFn && leftcycleFn(response, options);
64
+ leftcycleFn && leftcycleFn.bind(plugin)(response, options);
65
65
  });
66
66
  _RequestService.config.plugins.forEach((plugin) => {
67
67
  const leftcycleFn = plugin[leftcycle];
68
- leftcycleFn && leftcycleFn(response, options);
68
+ leftcycleFn && leftcycleFn.bind(plugin)(response, options);
69
69
  });
70
70
  }
71
71
  parseRequestPath(path, paramsPath) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RequestService,
3
3
  __publicField
4
- } from "../chunk-BKQFIRDI.js";
4
+ } from "../chunk-WMRFSSUJ.js";
5
5
 
6
6
  // src/adapters/axios.adapter.ts
7
7
  import axios from "axios";
@@ -36,11 +36,11 @@ var _RequestService = class {
36
36
  execResponsePlugin(leftcycle, plugins = [], options, response) {
37
37
  plugins.forEach((plugin) => {
38
38
  const leftcycleFn = plugin[leftcycle];
39
- leftcycleFn && leftcycleFn(response, options);
39
+ leftcycleFn && leftcycleFn.bind(plugin)(response, options);
40
40
  });
41
41
  _RequestService.config.plugins.forEach((plugin) => {
42
42
  const leftcycleFn = plugin[leftcycle];
43
- leftcycleFn && leftcycleFn(response, options);
43
+ leftcycleFn && leftcycleFn.bind(plugin)(response, options);
44
44
  });
45
45
  }
46
46
  parseRequestPath(path, paramsPath) {
package/dist/index.cjs CHANGED
@@ -63,11 +63,11 @@ var _RequestService = class {
63
63
  execResponsePlugin(leftcycle, plugins = [], options, response) {
64
64
  plugins.forEach((plugin) => {
65
65
  const leftcycleFn = plugin[leftcycle];
66
- leftcycleFn && leftcycleFn(response, options);
66
+ leftcycleFn && leftcycleFn.bind(plugin)(response, options);
67
67
  });
68
68
  _RequestService.config.plugins.forEach((plugin) => {
69
69
  const leftcycleFn = plugin[leftcycle];
70
- leftcycleFn && leftcycleFn(response, options);
70
+ leftcycleFn && leftcycleFn.bind(plugin)(response, options);
71
71
  });
72
72
  }
73
73
  parseRequestPath(path, paramsPath) {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  PluginLifecycle,
3
3
  RequestService
4
- } from "./chunk-BKQFIRDI.js";
4
+ } from "./chunk-WMRFSSUJ.js";
5
5
 
6
6
  // src/request-setup.ts
7
7
  function setup(config) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gopowerteam/request",
3
3
  "private": false,
4
- "version": "0.1.7",
4
+ "version": "0.1.8",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",