apipost-cli 1.0.15 → 1.0.16
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/apipost-reports/apipost-reports-2024-01-20 14:13:43.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:15:10.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:15:40.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:22:36.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:23:13.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:23:40.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:24:12.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:24:39.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:24:51.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:25:12.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:25:27.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:26:26.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:28:50.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:29:48.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:30:19.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:59:10.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 14:59:20.html +750 -0
- package/dist/apipost-reports/apipost-reports-2024-01-20 15:03:35.html +750 -0
- package/dist/build/Release/cpufeatures.node +0 -0
- package/dist/index.js +21 -0
- package/dist/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
- package/package.json +1 -1
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -565771,6 +565771,7 @@ const runTestEvents = async (data, options) => {
|
|
|
565771
565771
|
}
|
|
565772
565772
|
}
|
|
565773
565773
|
|
|
565774
|
+
|
|
565774
565775
|
//fix apipost-runtime@126 修复数option env 不为空时,pre_url 重命名为 env_pre_url
|
|
565775
565776
|
if (_.has(newOptions, 'option.env.pre_url') && (!_.has(newOptions, 'option.env.env_pre_url'))) {
|
|
565776
565777
|
_.set(newOptions, 'option.env.env_pre_url', _.get(newOptions, 'option.env.pre_url'));
|
|
@@ -565859,6 +565860,25 @@ const parseCommandString = async (url, options) => {
|
|
|
565859
565860
|
if (options.outDir) {
|
|
565860
565861
|
options.outDir = path.resolve(options.outDir);
|
|
565861
565862
|
}
|
|
565863
|
+
if (options.cacheDir){
|
|
565864
|
+
// Check if options.cacheDir is a directory
|
|
565865
|
+
try {
|
|
565866
|
+
const stats = fs.statSync(options.cacheDir);
|
|
565867
|
+
if (!stats.isDirectory()) {
|
|
565868
|
+
console.log(`cacheDir ${options.cacheDir} is not a directory.`);
|
|
565869
|
+
fs.appendFileSync(path.join(homedir, 'apipost-cli-error.log'), `${formattedTime}\tcacheDir ${options.cacheDir} is not a directory.\n`);
|
|
565870
|
+
return;
|
|
565871
|
+
}
|
|
565872
|
+
} catch (err) {
|
|
565873
|
+
console.log(`cacheDir ${options.cacheDir} does not exist.`);
|
|
565874
|
+
fs.appendFileSync(path.join(homedir, 'apipost-cli-error.log'), `${formattedTime}\tcacheDir ${options.cacheDir} does not exist.\n`);
|
|
565875
|
+
return;
|
|
565876
|
+
}
|
|
565877
|
+
}else{
|
|
565878
|
+
options.cacheDir = os.tmpdir();
|
|
565879
|
+
}
|
|
565880
|
+
process.env['TMPDIR'] = options.cacheDir;
|
|
565881
|
+
|
|
565862
565882
|
_.merge(cliOption, _.mapKeys(options, (value, key) => _.camelCase(key)))
|
|
565863
565883
|
console.log(`log: ${formattedTime}\tstart run & log to ${path.join(homedir, 'apipost-cli-error.log')} & report dir ${cliOption.outDir}`);
|
|
565864
565884
|
|
|
@@ -565938,6 +565958,7 @@ const bindEvent = (program) => {
|
|
|
565938
565958
|
.option('--ssl-client-key <path>', `指定客户端证书私钥路径 (KEY file) `)
|
|
565939
565959
|
.option('--ssl-client-passphrase <passphrase>', `指定客户端证书密码 (for protected key)`)
|
|
565940
565960
|
.option('--ssl-extra-ca-certs <path>', `指定额外受信任的 CA 证书 (PEM)`)
|
|
565961
|
+
.option('--cache-dir <path>', `临时文件夹,当默认临时文件夹不可用时主动指定`)
|
|
565941
565962
|
// .option('--web-hook <url>', `Web-hook用于在任务完成后向指定URL发送数据 (POST) `)
|
|
565942
565963
|
.action((url, options) => {
|
|
565943
565964
|
parseCommandString(url, options)
|
|
Binary file
|