@readme/httpsnippet 8.1.1 → 8.1.3

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.
package/dist/index.cjs CHANGED
@@ -1364,7 +1364,7 @@ var axios2 = {
1364
1364
  link: "https://github.com/axios/axios",
1365
1365
  description: "Promise based HTTP client for the browser and node.js",
1366
1366
  extname: ".cjs",
1367
- install: "npm install axios --save"
1367
+ installation: "npm install axios --save"
1368
1368
  },
1369
1369
  convert: ({ method, fullUrl, allHeaders, postData }, options) => {
1370
1370
  const opts = {
@@ -3520,6 +3520,9 @@ var isClient = (client) => {
3520
3520
  }
3521
3521
  return true;
3522
3522
  };
3523
+ var addClientPlugin = (plugin) => {
3524
+ addTargetClient(plugin.target, plugin.client);
3525
+ };
3523
3526
  var addTargetClient = (targetId, client) => {
3524
3527
  if (!isClient(client)) ;
3525
3528
  if (!Object.prototype.hasOwnProperty.call(targets, targetId)) {
@@ -3746,6 +3749,7 @@ var HTTPSnippet = class {
3746
3749
  };
3747
3750
 
3748
3751
  exports.HTTPSnippet = HTTPSnippet;
3752
+ exports.addClientPlugin = addClientPlugin;
3749
3753
  exports.addTarget = addTarget;
3750
3754
  exports.addTargetClient = addTargetClient;
3751
3755
  exports.availableTargets = availableTargets;