@transcend-io/cli 4.67.0 → 4.68.0
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/README.md +5 -0
- package/build/logger.d.ts.map +1 -1
- package/build/logger.js +18 -0
- package/build/logger.js.map +1 -1
- package/build/tsbuildinfo +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
- [Authentication](#authentication-19)
|
|
90
90
|
- [Arguments](#arguments-19)
|
|
91
91
|
- [Usage](#usage-20)
|
|
92
|
+
- [Proxy usage](#proxy-usage)
|
|
92
93
|
|
|
93
94
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
94
95
|
|
|
@@ -1714,3 +1715,7 @@ Override XDI allowed commands
|
|
|
1714
1715
|
```sh
|
|
1715
1716
|
yarn tr-build-xdi-sync-endpoint --auth=$TRANSCEND_API_KEY --xdiLocation=https://cdn.your-site.com/xdi.js --xdiAllowedCommands="ExtractIdentifiers:Simple"
|
|
1716
1717
|
```
|
|
1718
|
+
|
|
1719
|
+
## Proxy usage
|
|
1720
|
+
|
|
1721
|
+
If you are trying to use the cli inside a corporate firewall and need to send traffic through a proxy, you can do so via the `http_proxy` environment variable or the `--httpProxy` flag, with a command like `yarn tr-pull --auth=$TRANSCEND_API_KEY --httpProxy="http://localhost:5051"`.
|
package/build/logger.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,SAAU,CAAC"}
|
package/build/logger.js
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.logger = void 0;
|
|
7
|
+
const colors_1 = __importDefault(require("colors"));
|
|
8
|
+
const global_agent_1 = require("global-agent");
|
|
9
|
+
const undici_1 = require("undici");
|
|
10
|
+
const yargs_parser_1 = __importDefault(require("yargs-parser"));
|
|
4
11
|
exports.logger = console;
|
|
12
|
+
// When the proxy env var of flag is specified, initiate the proxy
|
|
13
|
+
const { httpProxy = process.env.http_proxy } = (0, yargs_parser_1.default)(process.argv.slice(2));
|
|
14
|
+
exports.logger.info(colors_1.default.magenta(`Got httpProxy parameter of '${httpProxy}'`));
|
|
15
|
+
if (httpProxy) {
|
|
16
|
+
exports.logger.info(colors_1.default.green(`Initializing proxy: ${httpProxy}`));
|
|
17
|
+
// Use global-agent, which overrides `request` based requests
|
|
18
|
+
process.env.GLOBAL_AGENT_HTTP_PROXY = httpProxy;
|
|
19
|
+
(0, global_agent_1.bootstrap)();
|
|
20
|
+
// Use undici, which overrides `fetch` based requests
|
|
21
|
+
(0, undici_1.setGlobalDispatcher)(new undici_1.ProxyAgent(httpProxy));
|
|
22
|
+
}
|
|
5
23
|
//# sourceMappingURL=logger.js.map
|
package/build/logger.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":";;;;;;AAAA,oDAA4B;AAC5B,+CAAyC;AACzC,mCAAyD;AACzD,gEAAiC;AAEpB,QAAA,MAAM,GAAG,OAAO,CAAC;AAE9B,kEAAkE;AAClE,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,IAAA,sBAAK,EAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5E,cAAM,CAAC,IAAI,CAAC,gBAAM,CAAC,OAAO,CAAC,+BAA+B,SAAS,GAAG,CAAC,CAAC,CAAC;AACzE,IAAI,SAAS,EAAE;IACb,cAAM,CAAC,IAAI,CAAC,gBAAM,CAAC,KAAK,CAAC,uBAAuB,SAAS,EAAE,CAAC,CAAC,CAAC;IAE9D,6DAA6D;IAC7D,OAAO,CAAC,GAAG,CAAC,uBAAuB,GAAG,SAAS,CAAC;IAChD,IAAA,wBAAS,GAAE,CAAC;IAEZ,qDAAqD;IACrD,IAAA,4BAAmB,EAAC,IAAI,mBAAU,CAAC,SAAS,CAAC,CAAC,CAAC;CAChD"}
|