@n8n/backend-network 1.10.4 → 1.10.6

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.
@@ -9,7 +9,7 @@ const env_proxy_router_1 = require("./env-proxy-router");
9
9
  const proxied_agents_1 = require("../proxy/proxied-agents");
10
10
  class EnvProxyHttpAgent extends node_http_1.default.Agent {
11
11
  constructor(lookup, agentOptions) {
12
- super({ ...agentOptions, lookup });
12
+ super({ ...agentOptions, ...(lookup && { lookup }) });
13
13
  this.router = new env_proxy_router_1.EnvProxyRouter('http', 80, (proxyUrl) => (0, proxied_agents_1.createProxiedHttpAgent)(proxyUrl, agentOptions));
14
14
  }
15
15
  addRequest(req, options) {
@@ -1 +1 @@
1
- {"version":3,"file":"env-proxy-http-agent.js","sourceRoot":"","sources":["../../src/http/env-proxy-http-agent.ts"],"names":[],"mappings":";;;;;;AACA,0DAA6B;AAG7B,yDAAoD;AAEpD,4DAAiE;AAgBjE,uBAA+B,SAAQ,mBAAI,CAAC,KAAK;IAGhD,YAAY,MAAuB,EAAE,YAA+B;QACnE,KAAK,CAAC,EAAE,GAAG,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;QACnC,IAAI,CAAC,MAAM,GAAG,IAAI,iCAAc,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,EAAE,CACzD,IAAA,uCAAsB,EAAC,QAAQ,EAAE,YAAY,CAAC,CAC9C,CAAC;IACH,CAAC;IAED,UAAU,CAAC,GAAuB,EAAE,OAA4B;QAC/D,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAEhD,IAAI,UAAU,EAAE,CAAC;YAChB,OAAO,UAAU,CAAC,UAAU,CAAC,GAAyB,EAAE,OAA2B,CAAC,CAAC;QACtF,CAAC;QAGD,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC;CACD"}
1
+ {"version":3,"file":"env-proxy-http-agent.js","sourceRoot":"","sources":["../../src/http/env-proxy-http-agent.ts"],"names":[],"mappings":";;;;;;AACA,0DAA6B;AAG7B,yDAAoD;AAEpD,4DAAiE;AAgBjE,uBAA+B,SAAQ,mBAAI,CAAC,KAAK;IAGhD,YAAY,MAAuB,EAAE,YAA+B;QACnE,KAAK,CAAC,EAAE,GAAG,YAAY,EAAE,GAAG,CAAC,MAAM,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;QACtD,IAAI,CAAC,MAAM,GAAG,IAAI,iCAAc,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,QAAQ,EAAE,EAAE,CACzD,IAAA,uCAAsB,EAAC,QAAQ,EAAE,YAAY,CAAC,CAC9C,CAAC;IACH,CAAC;IAED,UAAU,CAAC,GAAuB,EAAE,OAA4B;QAC/D,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAEhD,IAAI,UAAU,EAAE,CAAC;YAChB,OAAO,UAAU,CAAC,UAAU,CAAC,GAAyB,EAAE,OAA2B,CAAC,CAAC;QACtF,CAAC;QAGD,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC;CACD"}
@@ -9,7 +9,7 @@ const env_proxy_router_1 = require("./env-proxy-router");
9
9
  const proxied_agents_1 = require("../proxy/proxied-agents");
10
10
  class EnvProxyHttpsAgent extends node_https_1.default.Agent {
11
11
  constructor(lookup, agentOptions) {
12
- super({ ...agentOptions, lookup });
12
+ super({ ...agentOptions, ...(lookup && { lookup }) });
13
13
  this.router = new env_proxy_router_1.EnvProxyRouter('https', 443, (proxyUrl) => (0, proxied_agents_1.createProxiedHttpsAgent)(proxyUrl, agentOptions));
14
14
  }
15
15
  addRequest(req, options) {
@@ -1 +1 @@
1
- {"version":3,"file":"env-proxy-https-agent.js","sourceRoot":"","sources":["../../src/http/env-proxy-https-agent.ts"],"names":[],"m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,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAEhD,IAAI,UAAU,EAAE,CAAC;YAChB,OAAO,UAAU,CAAC,UAAU,CAAC,GAAG,EAAE,OAA4B,CAAC,CAAC;QACjE,CAAC;QAGD,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC;CACD"}
package/dist/testing.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export { convertN8nRequestToAxios } from './http/axios/request';
1
+ export { convertN8nRequestToAxios, httpRequest } from './http/axios/request';
2
+ export { uninstallGlobalProxyAgent } from './http/http-proxy';
2
3
  export { generateContentLengthHeader, isFormDataInstance } from './http/axios/utils';
3
4
  export { buildRfcStyleUserAgent, getDefaultN8nOutboundUserAgent } from './http/axios/user-agent';
4
5
  export { startServer, type LocalServer } from './http/local-server';
package/dist/testing.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createFakeOutboundHttp = exports.startServer = exports.getDefaultN8nOutboundUserAgent = exports.buildRfcStyleUserAgent = exports.isFormDataInstance = exports.generateContentLengthHeader = exports.convertN8nRequestToAxios = void 0;
3
+ exports.createFakeOutboundHttp = exports.startServer = exports.getDefaultN8nOutboundUserAgent = exports.buildRfcStyleUserAgent = exports.isFormDataInstance = exports.generateContentLengthHeader = exports.uninstallGlobalProxyAgent = exports.httpRequest = exports.convertN8nRequestToAxios = void 0;
4
4
  var request_1 = require("./http/axios/request");
5
5
  Object.defineProperty(exports, "convertN8nRequestToAxios", { enumerable: true, get: function () { return request_1.convertN8nRequestToAxios; } });
6
+ Object.defineProperty(exports, "httpRequest", { enumerable: true, get: function () { return request_1.httpRequest; } });
7
+ var http_proxy_1 = require("./http/http-proxy");
8
+ Object.defineProperty(exports, "uninstallGlobalProxyAgent", { enumerable: true, get: function () { return http_proxy_1.uninstallGlobalProxyAgent; } });
6
9
  var utils_1 = require("./http/axios/utils");
7
10
  Object.defineProperty(exports, "generateContentLengthHeader", { enumerable: true, get: function () { return utils_1.generateContentLengthHeader; } });
8
11
  Object.defineProperty(exports, "isFormDataInstance", { enumerable: true, get: function () { return utils_1.isFormDataInstance; } });
@@ -1 +1 @@
1
- {"version":3,"file":"testing.js","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":";;;AAQA,gDAAgE;AAAvD,mHAAA,wBAAwB,OAAA;AACjC,4CAAqF;AAA5E,oHAAA,2BAA2B,OAAA;AAAE,2GAAA,kBAAkB,OAAA;AACxD,sDAAiG;AAAxF,oHAAA,sBAAsB,OAAA;AAAE,4HAAA,8BAA8B,OAAA;AAC/D,oDAAoE;AAA3D,2GAAA,WAAW,OAAA;AACpB,gEAImC;AAHlC,4HAAA,sBAAsB,OAAA"}
1
+ {"version":3,"file":"testing.js","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":";;;AAQA,gDAA6E;AAApE,mHAAA,wBAAwB,OAAA;AAAE,sGAAA,WAAW,OAAA;AAC9C,gDAA8D;AAArD,uHAAA,yBAAyB,OAAA;AAClC,4CAAqF;AAA5E,oHAAA,2BAA2B,OAAA;AAAE,2GAAA,kBAAkB,OAAA;AACxD,sDAAiG;AAAxF,oHAAA,sBAAsB,OAAA;AAAE,4HAAA,8BAA8B,OAAA;AAC/D,oDAAoE;AAA3D,2GAAA,WAAW,OAAA;AACpB,gEAImC;AAHlC,4HAAA,sBAAsB,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/backend-network",
3
- "version": "1.10.4",
3
+ "version": "1.10.6",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -56,12 +56,12 @@
56
56
  "reflect-metadata": "0.2.2",
57
57
  "undici": "^7.29.0",
58
58
  "zod": "3.25.76",
59
- "@n8n/backend-common": "1.36.4",
59
+ "@n8n/config": "2.34.2",
60
60
  "@n8n/constants": "0.35.0",
61
- "@n8n/config": "2.34.1",
61
+ "@n8n/utils": "1.44.0",
62
+ "@n8n/backend-common": "1.36.6",
62
63
  "@n8n/di": "0.16.0",
63
- "n8n-workflow": "2.36.3",
64
- "@n8n/utils": "1.44.0"
64
+ "n8n-workflow": "2.36.4"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/proxy-from-env": "^1.0.4",
@@ -71,8 +71,8 @@
71
71
  "typescript": "7.0.2",
72
72
  "vitest": "^4.1.9",
73
73
  "vitest-mock-extended": "^3.1.0",
74
- "@n8n/vitest-config": "1.21.0",
75
- "@n8n/typescript-config": "1.10.0"
74
+ "@n8n/typescript-config": "1.10.0",
75
+ "@n8n/vitest-config": "1.21.0"
76
76
  },
77
77
  "license": "SEE LICENSE IN LICENSE.md",
78
78
  "homepage": "https://n8n.io",