apipost-cli 1.0.8 → 1.0.13
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 +4 -0
- package/dist/37.index.js +452 -0
- package/dist/841.index.js +6984 -0
- package/dist/action.js +4 -0
- package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortController.d.ts +85 -0
- package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortSignal.d.ts +80 -0
- package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/index.d.ts +3 -0
- package/dist/apipost-cli/node_modules/@azure/core-auth/types/3.1/core-auth.d.ts +229 -0
- package/dist/apipost-cli/node_modules/@azure/core-client/types/3.1/core-client.d.ts +900 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/core-paging.d.ts +77 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/samples-dev/getPagedAsyncIteratorSample.d.ts +2 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/getPagedAsyncIterator.d.ts +10 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/index.d.ts +3 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/models.d.ts +69 -0
- package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/test/getPagedAsyncIterator.spec.d.ts +2 -0
- package/dist/apipost-cli/node_modules/@azure/core-rest-pipeline/types/3.1/core-rest-pipeline.d.ts +1114 -0
- package/dist/apipost-cli/node_modules/@azure/core-util/types/3.1/core-util.d.ts +112 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/dist/apipost-cli/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/buffer.d.ts +2351 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/crypto.d.ts +3961 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/events.d.ts +724 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs.d.ts +4043 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/https.d.ts +441 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/module.d.ts +116 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/net.d.ts +886 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/os.d.ts +477 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/process.d.ts +1485 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/tty.d.ts +205 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/url.d.ts +901 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
- package/dist/apipost-cli/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- package/dist/apipost-cli/node_modules/bignumber.js/LICENCE.md +26 -0
- package/dist/apipost-cli/node_modules/bignumber.js/bignumber.d.ts +1831 -0
- package/dist/apipost-cli/node_modules/bignumber.js/bignumber.js +2926 -0
- package/dist/apipost-cli/node_modules/bignumber.js/bignumber.mjs +2889 -0
- package/dist/apipost-cli/node_modules/bignumber.js/doc/API.html +2249 -0
- package/dist/apipost-cli/node_modules/bignumber.js/package.json +50 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_linux_or_android.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_aarch64_macos_or_iphone.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_arm_linux_or_android.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_mips_linux_or_android.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_linux_or_android.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o +0 -0
- package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/cbc.js +65 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/cipher.js +142 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/des.js +150 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/ede.js +54 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des/utils.js +256 -0
- package/dist/apipost-cli/node_modules/des.js/lib/des.js +7 -0
- package/dist/apipost-cli/node_modules/des.js/package.json +33 -0
- package/dist/apipost-cli/node_modules/des.js/test/cbc-test.js +73 -0
- package/dist/apipost-cli/node_modules/des.js/test/des-test.js +139 -0
- package/dist/apipost-cli/node_modules/des.js/test/ede-test.js +106 -0
- package/dist/apipost-cli/node_modules/des.js/test/fixtures.js +5 -0
- package/dist/apipost-cli/node_modules/des.js/test/utils-test.js +169 -0
- package/dist/apipost-cli/node_modules/fs.realpath/LICENSE +43 -0
- package/dist/apipost-cli/node_modules/fs.realpath/index.js +66 -0
- package/dist/apipost-cli/node_modules/fs.realpath/old.js +303 -0
- package/dist/apipost-cli/node_modules/fs.realpath/package.json +26 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/auto.js +3 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/helpers/functionsHaveNames.js +5 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/implementation.js +43 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/index.js +18 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/package.json +80 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/polyfill.js +7 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/shim.js +35 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/implementation.js +20 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/index.js +23 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/shimmed.js +21 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/tests.js +60 -0
- package/dist/apipost-cli/node_modules/function.prototype.name/test/uglified.js +17 -0
- package/dist/apipost-cli/node_modules/lodash.camelcase/LICENSE +47 -0
- package/dist/apipost-cli/node_modules/lodash.camelcase/index.js +599 -0
- package/dist/apipost-cli/node_modules/lodash.camelcase/package.json +17 -0
- package/dist/apipost-cli/node_modules/lodash.memoize/LICENSE +47 -0
- package/dist/apipost-cli/node_modules/lodash.memoize/index.js +676 -0
- package/dist/apipost-cli/node_modules/lodash.memoize/package.json +17 -0
- package/dist/apipost-cli/node_modules/lodash.uniq/LICENSE +47 -0
- package/dist/apipost-cli/node_modules/lodash.uniq/index.js +896 -0
- package/dist/apipost-cli/node_modules/lodash.uniq/package.json +17 -0
- package/dist/apipost-cli/node_modules/moment/ts3.1-typings/moment.d.ts +785 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/LICENSE +20 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/Makefile +36 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.d.ts +192 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.js +377 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/package.json +30 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/getParameterString.js +21 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/mocha.opts +4 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/oauth_body_hash.js +141 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/consumer.js +14 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/last_ampersand.js +55 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values.js +54 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values_qs.js +50 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/nonce_length.js +44 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/parameter_seperator.js +102 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/realm.js +51 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/signature_method.js +36 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/bitbucket.js +88 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/flickr.js +196 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/openbank.js +61 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/twitter.js +183 -0
- package/dist/apipost-cli/node_modules/oauth-1.0a/test/twitter_sample_data.js +94 -0
- package/dist/apipost-cli/node_modules/object.assign/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/object.assign/auto.js +3 -0
- package/dist/apipost-cli/node_modules/object.assign/dist/browser.js +944 -0
- package/dist/apipost-cli/node_modules/object.assign/hasSymbols.js +43 -0
- package/dist/apipost-cli/node_modules/object.assign/implementation.js +46 -0
- package/dist/apipost-cli/node_modules/object.assign/index.js +22 -0
- package/dist/apipost-cli/node_modules/object.assign/package.json +96 -0
- package/dist/apipost-cli/node_modules/object.assign/polyfill.js +55 -0
- package/dist/apipost-cli/node_modules/object.assign/shim.js +14 -0
- package/dist/apipost-cli/node_modules/object.assign/test/implementation.js +19 -0
- package/dist/apipost-cli/node_modules/object.assign/test/index.js +17 -0
- package/dist/apipost-cli/node_modules/object.assign/test/native.js +49 -0
- package/dist/apipost-cli/node_modules/object.assign/test/ses-compat.js +12 -0
- package/dist/apipost-cli/node_modules/object.assign/test/shimmed.js +52 -0
- package/dist/apipost-cli/node_modules/object.assign/test/tests.js +232 -0
- package/dist/apipost-cli/node_modules/object.assign/test.html +18458 -0
- package/dist/apipost-cli/node_modules/promise.series/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/promise.series/index.js +10 -0
- package/dist/apipost-cli/node_modules/promise.series/package.json +34 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/LICENSE +22 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/auto.js +3 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/implementation.js +42 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/index.js +18 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/package.json +100 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/polyfill.js +36 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/shim.js +26 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/implementation.js +20 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/index.js +17 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/shimmed.js +48 -0
- package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/tests.js +143 -0
- package/dist/apipost-cli/node_modules/resolve.exports/dist/index.js +1 -0
- package/dist/apipost-cli/node_modules/resolve.exports/dist/index.mjs +1 -0
- package/dist/apipost-cli/node_modules/resolve.exports/index.d.ts +100 -0
- package/dist/apipost-cli/node_modules/resolve.exports/license +21 -0
- package/dist/apipost-cli/node_modules/resolve.exports/package.json +50 -0
- package/dist/apipost-cli/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/auto.js +3 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/implementation.js +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/index.js +23 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/package.json +101 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/polyfill.js +19 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/shim.js +14 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/test/implementation.js +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/test/index.js +17 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/test/shimmed.js +36 -0
- package/dist/apipost-cli/node_modules/string.prototype.trim/test/tests.js +45 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/auto.js +3 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/implementation.js +15 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/index.js +23 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/package.json +79 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/polyfill.js +15 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/shim.js +14 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/test/implementation.js +20 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/test/index.js +17 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/test/shimmed.js +36 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimend/test/tests.js +31 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/LICENSE +21 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/auto.js +3 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/implementation.js +15 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/index.js +23 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/package.json +79 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/polyfill.js +15 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/shim.js +14 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/implementation.js +20 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/index.js +18 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/shimmed.js +36 -0
- package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/tests.js +31 -0
- package/dist/apipost-cli/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +771 -0
- package/dist/apipost-http-schema.json +129 -0
- package/dist/bridge.js +1010 -0
- package/dist/build/Release/cpufeatures.node +0 -0
- package/dist/esprima.js +3756 -0
- package/dist/events.js +977 -0
- package/dist/index.js +565958 -0
- package/dist/index1.js +26 -0
- package/dist/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
- package/dist/module.js +34 -0
- package/dist/pagent.exe +0 -0
- package/dist/setup-node-sandbox.js +461 -0
- package/dist/setup-sandbox.js +545 -0
- package/dist/snappy.darwin-arm64.node +0 -0
- package/dist/xdg-open +1066 -0
- package/package.json +13 -4
- package/bin/cli.js +0 -216
- package/bin/template.js +0 -803
- /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.html" +0 -0
- /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.json" +0 -0
package/bin/template.js
DELETED
|
@@ -1,803 +0,0 @@
|
|
|
1
|
-
const fs = require('fs');
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const os = require('os');
|
|
4
|
-
const dayjs = require('dayjs');
|
|
5
|
-
const _ = require('lodash');
|
|
6
|
-
const { types } = require('util');
|
|
7
|
-
const retry = require('retry');
|
|
8
|
-
const validator = require('validator');
|
|
9
|
-
|
|
10
|
-
const RENDER_TEST_REPORT_HTML_STR = (data = {}) => {
|
|
11
|
-
return `<!DOCTYPE html>
|
|
12
|
-
<html lang="en">
|
|
13
|
-
<head>
|
|
14
|
-
<meta charset="UTF-8" />
|
|
15
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
16
|
-
<title>Document</title>
|
|
17
|
-
<style>
|
|
18
|
-
body {
|
|
19
|
-
padding: 30px 20%;
|
|
20
|
-
}
|
|
21
|
-
.apipost-logo {
|
|
22
|
-
width: 121px;
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
height: 35px;
|
|
26
|
-
}
|
|
27
|
-
.apipost-report-wrap .apipost-report-wrap-tpl .report-info {
|
|
28
|
-
padding-top: 30px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.apipost-report-wrap .apipost-report-wrap-tpl .report-info .report-item {
|
|
32
|
-
padding-bottom: 10px;
|
|
33
|
-
color: #666666;
|
|
34
|
-
font-weight: 400;
|
|
35
|
-
font-size: 14px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.apipost-report-wrap-tpl .report-info .report-item .label {
|
|
39
|
-
display: inline-block;
|
|
40
|
-
width: 135px;
|
|
41
|
-
text-align: right;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.apipost-report-wrap-tpl .report-info .report-item .value {
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.apipost-report-wrap-tpl .report-info .report-item .value a {
|
|
48
|
-
color: #ff6907;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.apipost-report-wrap .dashed {
|
|
52
|
-
height: 1px;
|
|
53
|
-
width: 100%;
|
|
54
|
-
border: 1px dashed #d8d8d8;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.report-title {
|
|
58
|
-
padding-top: 15px;
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
}
|
|
62
|
-
.report-title img {
|
|
63
|
-
width: 15px;
|
|
64
|
-
height: 17px;
|
|
65
|
-
}
|
|
66
|
-
.report-title .title {
|
|
67
|
-
padding-left: 10px;
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
font-size: 18px;
|
|
70
|
-
color: #fa7600;
|
|
71
|
-
}
|
|
72
|
-
.report-table {
|
|
73
|
-
margin-top: 30px;
|
|
74
|
-
}
|
|
75
|
-
.report-table table {
|
|
76
|
-
width: 100%;
|
|
77
|
-
border: 1px solid #e9e9e9;
|
|
78
|
-
border-collapse: collapse;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.report-table table th {
|
|
82
|
-
font-weight: 400;
|
|
83
|
-
font-size: 12px;
|
|
84
|
-
color: #666666;
|
|
85
|
-
background: #f4f4f4;
|
|
86
|
-
height: 32px;
|
|
87
|
-
border: 1px solid #e9e9e9;
|
|
88
|
-
text-align: center;
|
|
89
|
-
}
|
|
90
|
-
.report-table table td {
|
|
91
|
-
background: #ffffff;
|
|
92
|
-
height: 32px;
|
|
93
|
-
color: #666666;
|
|
94
|
-
font-weight: 400;
|
|
95
|
-
font-size: 12px;
|
|
96
|
-
border: 1px solid #e9e9e9;
|
|
97
|
-
text-align: center;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.report-info-list {
|
|
101
|
-
width: 100%;
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
flex-wrap: wrap;
|
|
105
|
-
padding-top: 15px;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.report-info-list .report-info-item {
|
|
109
|
-
display: inline-flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
width: 25%;
|
|
112
|
-
padding-bottom: 15px;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.report-info-list .report-info-item img {
|
|
116
|
-
width: 13px;
|
|
117
|
-
height: 13px;
|
|
118
|
-
}
|
|
119
|
-
.report-info-list .report-info-item span {
|
|
120
|
-
padding-left: 10px;
|
|
121
|
-
font-weight: 400;
|
|
122
|
-
font-size: 12px;
|
|
123
|
-
color: #666666;
|
|
124
|
-
}
|
|
125
|
-
.test-detail {
|
|
126
|
-
padding-top: 15px;
|
|
127
|
-
padding-bottom: 15px;
|
|
128
|
-
}
|
|
129
|
-
.test-detail .toggle-arrow {
|
|
130
|
-
display: flex;
|
|
131
|
-
align-items: center;
|
|
132
|
-
}
|
|
133
|
-
.test-detail .icon-bg {
|
|
134
|
-
display: inline-flex;
|
|
135
|
-
justify-content: center;
|
|
136
|
-
align-items: center;
|
|
137
|
-
width: 16px;
|
|
138
|
-
height: 16px;
|
|
139
|
-
background: #f2f2f2;
|
|
140
|
-
border-radius: 3px;
|
|
141
|
-
}
|
|
142
|
-
.test-detail img {
|
|
143
|
-
width: 8px;
|
|
144
|
-
height: 4px;
|
|
145
|
-
}
|
|
146
|
-
.test-detail span.title {
|
|
147
|
-
font-weight: 400;
|
|
148
|
-
font-size: 16px;
|
|
149
|
-
padding-left: 10px;
|
|
150
|
-
color: #2b2b2b;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.test-detail .test-event-list {
|
|
154
|
-
width: 100%;
|
|
155
|
-
}
|
|
156
|
-
.test-detail .test-event-list .test-event-item {
|
|
157
|
-
}
|
|
158
|
-
.test-detail .test-event-list .test-event-item .loop {
|
|
159
|
-
padding: 10px 0;
|
|
160
|
-
font-weight: 400;
|
|
161
|
-
font-size: 12px;
|
|
162
|
-
color: #666666;
|
|
163
|
-
}
|
|
164
|
-
.test-detail .test-event-list .test-event-item .panel {
|
|
165
|
-
display: flex;
|
|
166
|
-
align-items: center;
|
|
167
|
-
height: 36px;
|
|
168
|
-
font-weight: 400;
|
|
169
|
-
font-size: 12px;
|
|
170
|
-
background: #f8f8f8;
|
|
171
|
-
border-radius: 5px;
|
|
172
|
-
}
|
|
173
|
-
.test-event-list .test-event-item .panel .status {
|
|
174
|
-
width: 16px;
|
|
175
|
-
height: 16px;
|
|
176
|
-
margin-left: 25px;
|
|
177
|
-
margin-right: 30px;
|
|
178
|
-
}
|
|
179
|
-
.test-event-list .test-event-item .panel .index {
|
|
180
|
-
padding-right: 30px;
|
|
181
|
-
color: #666666;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.test-event-list .test-event-item .panel .method {
|
|
185
|
-
padding-right: 30px;
|
|
186
|
-
color: #26cea4;
|
|
187
|
-
}
|
|
188
|
-
.test-event-list .test-event-item .panel .name {
|
|
189
|
-
padding-right: 30px;
|
|
190
|
-
color: #666666;
|
|
191
|
-
}
|
|
192
|
-
.test-event-list .test-event-item .panel .link a {
|
|
193
|
-
text-decoration: none;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.test-event-list .test-event-item .item-info {
|
|
197
|
-
width: 100%;
|
|
198
|
-
display: flex;
|
|
199
|
-
align-items: center;
|
|
200
|
-
padding: 10px;
|
|
201
|
-
font-weight: 400;
|
|
202
|
-
font-size: 12px;
|
|
203
|
-
color: #666666;
|
|
204
|
-
}
|
|
205
|
-
.test-event-list .test-event-item .item-info span {
|
|
206
|
-
display: inline-block;
|
|
207
|
-
width: 25%;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.test-event-list .test-event-item .assert-info {
|
|
211
|
-
display: flex;
|
|
212
|
-
width: 100%;
|
|
213
|
-
font-weight: 400;
|
|
214
|
-
font-size: 12px;
|
|
215
|
-
}
|
|
216
|
-
.test-event-list .test-event-item .assert-info .assert-label {
|
|
217
|
-
min-width: 60px;
|
|
218
|
-
}
|
|
219
|
-
.test-event-item .assert-info .response-panel {
|
|
220
|
-
width: 100%;
|
|
221
|
-
}
|
|
222
|
-
.test-event-item .assert-info .response-panel img {
|
|
223
|
-
width: 12px;
|
|
224
|
-
height: 12px;
|
|
225
|
-
margin: 0 10px;
|
|
226
|
-
}
|
|
227
|
-
.test-event-item .assert-info .response-panel .success,
|
|
228
|
-
.test-event-item .assert-info .response-panel .error {
|
|
229
|
-
display: flex;
|
|
230
|
-
align-items: center;
|
|
231
|
-
width: 100%;
|
|
232
|
-
height: 34px;
|
|
233
|
-
}
|
|
234
|
-
.test-event-item .assert-info .response-panel .success {
|
|
235
|
-
background: #f1faf3;
|
|
236
|
-
color: #2ba58f;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.test-event-item .assert-info .response-panel .error {
|
|
240
|
-
background: #ffedee;
|
|
241
|
-
color: #ff4c4c;
|
|
242
|
-
}
|
|
243
|
-
.show {
|
|
244
|
-
display: block;
|
|
245
|
-
}
|
|
246
|
-
.hide {
|
|
247
|
-
display: none;
|
|
248
|
-
}
|
|
249
|
-
.chart-wrap {
|
|
250
|
-
display: flex;
|
|
251
|
-
align-items: center;
|
|
252
|
-
padding-top: 15px;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.chart-wrap .api {
|
|
256
|
-
display: flex;
|
|
257
|
-
align-items: center;
|
|
258
|
-
width: 50%;
|
|
259
|
-
}
|
|
260
|
-
.chart-wrap .api .api-des {
|
|
261
|
-
display: flex;
|
|
262
|
-
flex-direction: column;
|
|
263
|
-
padding-left: 50px;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.chart-wrap .api .api-des .api-title {
|
|
267
|
-
padding-bottom: 15px;
|
|
268
|
-
font-weight: 600;
|
|
269
|
-
font-size: 16px;
|
|
270
|
-
color: #666666;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.chart-wrap .api .api-des .api-label {
|
|
274
|
-
padding-bottom: 10px;
|
|
275
|
-
font-weight: 400;
|
|
276
|
-
font-size: 12px;
|
|
277
|
-
color: #666666;
|
|
278
|
-
}
|
|
279
|
-
#api-pie,
|
|
280
|
-
#assert-pie {
|
|
281
|
-
width: 80px;
|
|
282
|
-
height: 80px;
|
|
283
|
-
}
|
|
284
|
-
</style>
|
|
285
|
-
<script src="https://img.cdn.apipost.cn/cdn/test-report/js/template-web.js"></script>
|
|
286
|
-
<script src="https://img.cdn.apipost.cn/cdn/test-report/js/echarts.min.js"></script>
|
|
287
|
-
</head>
|
|
288
|
-
<body>
|
|
289
|
-
<div id="app">
|
|
290
|
-
<img class="apipost-logo" src="https://img.cdn.apipost.cn/new_www/index_img/apipost-logo_or.svg" />
|
|
291
|
-
<div class="apipost-report-wrap"></div>
|
|
292
|
-
</div>
|
|
293
|
-
|
|
294
|
-
<script type="text/html" id="tpl">
|
|
295
|
-
<div class="apipost-report-wrap-tpl">
|
|
296
|
-
<h1>{{value.report_name}}</h1>
|
|
297
|
-
<div class="report-info">
|
|
298
|
-
<div class="report-item">
|
|
299
|
-
<span class="label">测试用例/测试套件:</span>
|
|
300
|
-
<span class="value">{{value.report_name}}</span>
|
|
301
|
-
</div>
|
|
302
|
-
<div class="report-item">
|
|
303
|
-
<span class="label">测试时间:</span>
|
|
304
|
-
<span class="value">{{value.start_time}}</span>
|
|
305
|
-
</div>
|
|
306
|
-
<div class="report-item">
|
|
307
|
-
<span class="label">测试工具:</span>
|
|
308
|
-
<span class="value"><a href="https://www.apipost.cn/download.html">apipost客户端</a></span>
|
|
309
|
-
</div>
|
|
310
|
-
</div>
|
|
311
|
-
<div class="dashed"></div>
|
|
312
|
-
|
|
313
|
-
<div class="report-title">
|
|
314
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/doc.png" alt="" />
|
|
315
|
-
<span class="title">测试结果</span>
|
|
316
|
-
</div>
|
|
317
|
-
<div class="chart-wrap">
|
|
318
|
-
<div class="api">
|
|
319
|
-
<div id="api-pie"></div>
|
|
320
|
-
<div class="api-des">
|
|
321
|
-
<span class="api-title">接口</span>
|
|
322
|
-
<span class="api-label"
|
|
323
|
-
>接口通过率:{{formatRate({ passed: value?.http?.passed, failure:
|
|
324
|
-
value?.http?.failure }, value?.http?.passed)}}</span
|
|
325
|
-
>
|
|
326
|
-
<span class="api-label"
|
|
327
|
-
>接口失败率:{{formatRate({ passed: value?.http?.passed, failure:
|
|
328
|
-
value?.http?.failure }, value?.http?.failure)}}</span
|
|
329
|
-
>
|
|
330
|
-
</div>
|
|
331
|
-
</div>
|
|
332
|
-
<div class="api">
|
|
333
|
-
<div id="assert-pie"></div>
|
|
334
|
-
<div class="api-des">
|
|
335
|
-
<span class="api-title">断言</span>
|
|
336
|
-
<span class="api-label"
|
|
337
|
-
>断言通过率:{{formatRate({ passed: value?.assert?.passed, failure:
|
|
338
|
-
value?.assert?.failure }, value?.assert?.passed)}}</span
|
|
339
|
-
>
|
|
340
|
-
<span class="api-label"
|
|
341
|
-
>断言失败率:{{formatRate({ passed: value?.assert?.passed, failure:
|
|
342
|
-
value?.assert?.failure }, value?.assert?.failure)}}</span
|
|
343
|
-
>
|
|
344
|
-
</div>
|
|
345
|
-
</div>
|
|
346
|
-
</div>
|
|
347
|
-
<div class="report-table">
|
|
348
|
-
<table>
|
|
349
|
-
<thead>
|
|
350
|
-
<tr>
|
|
351
|
-
<th></th>
|
|
352
|
-
<th>请求总数</th>
|
|
353
|
-
<th>通过</th>
|
|
354
|
-
<th>失败</th>
|
|
355
|
-
</tr>
|
|
356
|
-
</thead>
|
|
357
|
-
<tbody>
|
|
358
|
-
<tr>
|
|
359
|
-
<td>接口</td>
|
|
360
|
-
<td>{{value.http.failure + value.http.passed}}</td>
|
|
361
|
-
<td>{{value.http.passed}}</td>
|
|
362
|
-
<td>{{value.http.failure}}</td>
|
|
363
|
-
</tr>
|
|
364
|
-
<tr>
|
|
365
|
-
<td>断言</td>
|
|
366
|
-
<td>{{value.assert.failure + value.assert.passed}}</td>
|
|
367
|
-
<td>{{value.assert.passed}}</td>
|
|
368
|
-
<td>{{value.assert.failure}}</td>
|
|
369
|
-
</tr>
|
|
370
|
-
</tbody>
|
|
371
|
-
</table>
|
|
372
|
-
</div>
|
|
373
|
-
|
|
374
|
-
<div class="report-info-list">
|
|
375
|
-
<div class="report-info-item">
|
|
376
|
-
<span>开始时间 : {{value.start_time}}</span>
|
|
377
|
-
</div>
|
|
378
|
-
<div class="report-info-item">
|
|
379
|
-
<span>结束时间 : {{value.end_time}}</span>
|
|
380
|
-
</div>
|
|
381
|
-
<div class="report-info-item">
|
|
382
|
-
<span>总耗时 : {{value.long_time}}</span>
|
|
383
|
-
</div>
|
|
384
|
-
<div class="report-info-item">
|
|
385
|
-
<span>总响应时间 : {{value.total_response_time}}ms</span>
|
|
386
|
-
</div>
|
|
387
|
-
<div class="report-info-item">
|
|
388
|
-
<span>平均响应时间 : {{value.average_response_time}}ms</span>
|
|
389
|
-
</div>
|
|
390
|
-
<div class="report-info-item">
|
|
391
|
-
<span>总响应数据大小 : {{value.total_received_data}}kb</span>
|
|
392
|
-
</div>
|
|
393
|
-
<div class="report-info-item">
|
|
394
|
-
<span>未测接口 : {{value.ignore_count}}</span>
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
|
|
398
|
-
<div class="dashed"></div>
|
|
399
|
-
{{if value.type === 'single'}}
|
|
400
|
-
<div class="report-title">
|
|
401
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/doc.png" alt="" />
|
|
402
|
-
<span class="title">测试情况</span>
|
|
403
|
-
</div>
|
|
404
|
-
|
|
405
|
-
<div class="action-wrap">
|
|
406
|
-
<div class="test-detail failed">
|
|
407
|
-
<div class="toggle-arrow">
|
|
408
|
-
<span class="icon-bg">
|
|
409
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/arrow.png" class="arrow" alt="" />
|
|
410
|
-
</span>
|
|
411
|
-
<span class="title">失败情况</span>
|
|
412
|
-
</div>
|
|
413
|
-
<div class="test-event-list show">
|
|
414
|
-
{{each value.logList.filter(item => item.http_error === 1 || item.assert_error === 1) item
|
|
415
|
-
key}}
|
|
416
|
-
<div data-text="{{key}}" id="{{key}}" class="test-event-item">
|
|
417
|
-
<div class="panel">
|
|
418
|
-
<img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
|
|
419
|
-
<div class="index">{{key + 1}}</div>
|
|
420
|
-
<div class="method">{{item?.request?.method}}</div>
|
|
421
|
-
<span class="name">{{item?.request?.name}}</span>
|
|
422
|
-
<div class="link">
|
|
423
|
-
<a href="{{item?.request?.url}}">{{item?.request?.url}}</a>
|
|
424
|
-
</div>
|
|
425
|
-
</div>
|
|
426
|
-
<div class="item-info">
|
|
427
|
-
<span>请求状况:{{(item?.http_error === 1) ? '失败' : '成功'}}</span>
|
|
428
|
-
<span>状态码:{{item?.response?.data?.response?.code}}</span>
|
|
429
|
-
<span>响应时间:{{item?.response?.data?.response?.responseTime}}ms</span>
|
|
430
|
-
<span>响应数据大小:{{item?.response?.data?.response?.responseSize}}kb</span>
|
|
431
|
-
</div>
|
|
432
|
-
{{if item?.assert && item?.assert.length > 0}}
|
|
433
|
-
<div class="assert-info">
|
|
434
|
-
<span class="assert-label">断言:</span>
|
|
435
|
-
<div class="response-panel">
|
|
436
|
-
{{each item?.assert assert cKey}} {{if assert.status === 'error'}}
|
|
437
|
-
<div class="error">
|
|
438
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
|
|
439
|
-
<span>{{assert?.expect}}</span>
|
|
440
|
-
</div>
|
|
441
|
-
{{/if}} {{if assert.status !== 'error'}}
|
|
442
|
-
<div class="success">
|
|
443
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/success.png" alt="" />
|
|
444
|
-
<span>{{assert?.expect}}</span>
|
|
445
|
-
</div>
|
|
446
|
-
{{/if}} {{/each}}
|
|
447
|
-
</div>
|
|
448
|
-
</div>
|
|
449
|
-
{{/if}}
|
|
450
|
-
</div>
|
|
451
|
-
{{/each}}
|
|
452
|
-
</div>
|
|
453
|
-
</div>
|
|
454
|
-
<div class="dashed"></div>
|
|
455
|
-
<div class="test-detail success">
|
|
456
|
-
<div class="toggle-arrow">
|
|
457
|
-
<span class="icon-bg">
|
|
458
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/arrow.png" alt="" />
|
|
459
|
-
</span>
|
|
460
|
-
<span class="title">测试详情</span>
|
|
461
|
-
</div>
|
|
462
|
-
<div class="test-event-list show">
|
|
463
|
-
{{each value.logList item key}}
|
|
464
|
-
<div data-text="{{key}}" id="{{key}}" class="test-event-item">
|
|
465
|
-
<div class="panel">
|
|
466
|
-
{{if item.http_error === -1 && item.assert_error === -1}}
|
|
467
|
-
<img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/success.png" alt="" />
|
|
468
|
-
{{/if}} {{if item.http_error === 1 || item.assert_error === 1}}
|
|
469
|
-
<img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
|
|
470
|
-
{{/if}}
|
|
471
|
-
|
|
472
|
-
<div class="index">{{key + 1}}</div>
|
|
473
|
-
<div class="method">{{item?.request?.method}}</div>
|
|
474
|
-
<span class="name">{{item?.request?.name}}</span>
|
|
475
|
-
<div class="link">
|
|
476
|
-
<a href="{{item?.request?.url}}">{{item?.request?.url}}</a>
|
|
477
|
-
</div>
|
|
478
|
-
</div>
|
|
479
|
-
<div class="item-info">
|
|
480
|
-
<span>请求状况:{{(item?.http_error === 1) ? '失败' : '成功'}}</span>
|
|
481
|
-
<span>状态码:{{item?.response?.data?.response?.code}}</span>
|
|
482
|
-
<span>响应时间:{{item?.response?.data?.response?.responseTime}}ms</span>
|
|
483
|
-
<span>响应数据大小:{{item?.response?.data?.response?.responseSize}}kb</span>
|
|
484
|
-
</div>
|
|
485
|
-
{{if item?.assert && item?.assert.length > 0}}
|
|
486
|
-
<div class="assert-info">
|
|
487
|
-
<span class="assert-label">断言:</span>
|
|
488
|
-
<div class="response-panel">
|
|
489
|
-
{{each item?.assert assert cKey}}
|
|
490
|
-
{{if assert.status === 'error'}}
|
|
491
|
-
<div class="error">
|
|
492
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
|
|
493
|
-
<span>{{assert?.expect}}</span>
|
|
494
|
-
</div>
|
|
495
|
-
{{/if}}
|
|
496
|
-
{{if assert.status !== 'error'}}
|
|
497
|
-
<div class="success">
|
|
498
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/success.png" alt="" />
|
|
499
|
-
<span>{{assert?.expect}}</span>
|
|
500
|
-
</div>
|
|
501
|
-
{{/if}} {{/each}}
|
|
502
|
-
</div>
|
|
503
|
-
</div>
|
|
504
|
-
{{/if}}
|
|
505
|
-
</div>
|
|
506
|
-
{{/each}}
|
|
507
|
-
</div>
|
|
508
|
-
</div>
|
|
509
|
-
</div>
|
|
510
|
-
{{/if}}
|
|
511
|
-
{{if value.type === 'combined'}}
|
|
512
|
-
{{each value.children child childKey}}
|
|
513
|
-
<div data-text="{{childKey}}" id="{{childKey}}">
|
|
514
|
-
<div class="report-title">
|
|
515
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/doc.png" alt="" />
|
|
516
|
-
<span class="title">{{child?.report_name}}_测试情况</span>
|
|
517
|
-
</div>
|
|
518
|
-
|
|
519
|
-
<div class="action-wrap">
|
|
520
|
-
<div class="test-detail failed">
|
|
521
|
-
<div class="toggle-arrow">
|
|
522
|
-
<span class="icon-bg">
|
|
523
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/arrow.png" class="arrow" alt="" />
|
|
524
|
-
</span>
|
|
525
|
-
<span class="title">失败情况</span>
|
|
526
|
-
</div>
|
|
527
|
-
<div class="test-event-list show">
|
|
528
|
-
{{each value.logList.filter(item => (item.http_error === 1 || item.assert_error === 1) && item.test_id === child.test_id) item
|
|
529
|
-
key}}
|
|
530
|
-
<div data-text="{{key}}" id="{{key}}" class="test-event-item">
|
|
531
|
-
<div class="panel">
|
|
532
|
-
<img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
|
|
533
|
-
<div class="index">{{key + 1}}</div>
|
|
534
|
-
<div class="method">{{item?.request?.method}}</div>
|
|
535
|
-
<span class="name">{{item?.request?.name}}</span>
|
|
536
|
-
<div class="link">
|
|
537
|
-
<a href="{{item?.request?.url}}">{{item?.request?.url}}</a>
|
|
538
|
-
</div>
|
|
539
|
-
</div>
|
|
540
|
-
<div class="item-info">
|
|
541
|
-
<span>请求状况:{{(item?.http_error === 1) ? '失败' : '成功'}}</span>
|
|
542
|
-
<span>状态码:{{item?.response?.data?.response?.code}}</span>
|
|
543
|
-
<span>响应时间:{{item?.response?.data?.response?.responseTime}}ms</span>
|
|
544
|
-
<span>响应数据大小:{{item?.response?.data?.response?.responseSize}}kb</span>
|
|
545
|
-
</div>
|
|
546
|
-
{{if item?.assert && item?.assert.length > 0}}
|
|
547
|
-
<div class="assert-info">
|
|
548
|
-
<span class="assert-label">断言:</span>
|
|
549
|
-
<div class="response-panel">
|
|
550
|
-
{{each item?.assert assert cKey}} {{if assert.status === 'error'}}
|
|
551
|
-
<div class="error">
|
|
552
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
|
|
553
|
-
<span>{{assert?.expect}}</span>
|
|
554
|
-
</div>
|
|
555
|
-
{{/if}} {{if assert.status !== 'error'}}
|
|
556
|
-
<div class="success">
|
|
557
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/success.png" alt="" />
|
|
558
|
-
<span>{{assert?.expect}}</span>
|
|
559
|
-
</div>
|
|
560
|
-
{{/if}} {{/each}}
|
|
561
|
-
</div>
|
|
562
|
-
</div>
|
|
563
|
-
{{/if}}
|
|
564
|
-
</div>
|
|
565
|
-
{{/each}}
|
|
566
|
-
</div>
|
|
567
|
-
</div>
|
|
568
|
-
<div class="dashed"></div>
|
|
569
|
-
<div class="test-detail success">
|
|
570
|
-
<div class="toggle-arrow">
|
|
571
|
-
<span class="icon-bg">
|
|
572
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/arrow.png" alt="" />
|
|
573
|
-
</span>
|
|
574
|
-
<span class="title">测试详情</span>
|
|
575
|
-
</div>
|
|
576
|
-
<div class="test-event-list show">
|
|
577
|
-
{{each value.logList.filter(item => item.test_id === child.test_id) item key}}
|
|
578
|
-
<div data-text="{{key}}" id="{{key}}" class="test-event-item">
|
|
579
|
-
<div class="panel">
|
|
580
|
-
{{if item.http_error === -1 && item.assert_error === -1}}
|
|
581
|
-
<img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/success.png" alt="" />
|
|
582
|
-
{{/if}} {{if item.http_error === 1 || item.assert_error === 1}}
|
|
583
|
-
<img class="status" src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
|
|
584
|
-
{{/if}}
|
|
585
|
-
|
|
586
|
-
<div class="index">{{key + 1}}</div>
|
|
587
|
-
<div class="method">{{item?.request?.method}}</div>
|
|
588
|
-
<span class="name">{{item?.request?.name}}</span>
|
|
589
|
-
<div class="link">
|
|
590
|
-
<a href="{{item?.request?.url}}">{{item?.request?.url}}</a>
|
|
591
|
-
</div>
|
|
592
|
-
</div>
|
|
593
|
-
<div class="item-info">
|
|
594
|
-
<span>请求状况:{{(item?.http_error === 1) ? '失败' : '成功'}}</span>
|
|
595
|
-
<span>状态码:{{item?.response?.data?.response?.code}}</span>
|
|
596
|
-
<span>响应时间:{{item?.response?.data?.response?.responseTime}}ms</span>
|
|
597
|
-
<span>响应数据大小:{{item?.response?.data?.response?.responseSize}}kb</span>
|
|
598
|
-
</div>
|
|
599
|
-
{{if item?.assert && item?.assert.length > 0}}
|
|
600
|
-
<div class="assert-info">
|
|
601
|
-
<span class="assert-label">断言:</span>
|
|
602
|
-
<div class="response-panel">
|
|
603
|
-
{{each item?.assert assert cKey}}
|
|
604
|
-
{{if assert.status === 'error'}}
|
|
605
|
-
<div class="error">
|
|
606
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/error.png" alt="" />
|
|
607
|
-
<span>{{assert?.expect}}</span>
|
|
608
|
-
</div>
|
|
609
|
-
{{/if}}
|
|
610
|
-
{{if assert.status !== 'error'}}
|
|
611
|
-
<div class="success">
|
|
612
|
-
<img src="https://img.cdn.apipost.cn/cdn/test-report/img/success.png" alt="" />
|
|
613
|
-
<span>{{assert?.expect}}</span>
|
|
614
|
-
</div>
|
|
615
|
-
{{/if}} {{/each}}
|
|
616
|
-
</div>
|
|
617
|
-
</div>
|
|
618
|
-
{{/if}}
|
|
619
|
-
</div>
|
|
620
|
-
{{/each}}
|
|
621
|
-
</div>
|
|
622
|
-
</div>
|
|
623
|
-
</div>
|
|
624
|
-
</div>
|
|
625
|
-
{{/each}}
|
|
626
|
-
{{/if}}
|
|
627
|
-
</div>
|
|
628
|
-
</script>
|
|
629
|
-
|
|
630
|
-
<script>
|
|
631
|
-
template.defaults.imports.formatRate = function (info, per) {
|
|
632
|
-
if (
|
|
633
|
-
typeof info.passed !== 'number' ||
|
|
634
|
-
typeof info.failure !== 'number' ||
|
|
635
|
-
info?.passed + info?.failure === 0
|
|
636
|
-
) {
|
|
637
|
-
return '0%';
|
|
638
|
-
}
|
|
639
|
-
if (typeof per === 'number') {
|
|
640
|
-
return ((per / (info?.passed + info?.failure)) * 100).toFixed(2) + '%';
|
|
641
|
-
}
|
|
642
|
-
return '-';
|
|
643
|
-
};
|
|
644
|
-
|
|
645
|
-
const data = ${JSON.stringify(data)};
|
|
646
|
-
console.log(data, 'data')
|
|
647
|
-
|
|
648
|
-
document.title = data?.report_name || '';
|
|
649
|
-
const _docContentHtml = template('tpl', {
|
|
650
|
-
value: data,
|
|
651
|
-
});
|
|
652
|
-
const oWrap = document.querySelector('.apipost-report-wrap');
|
|
653
|
-
oWrap.innerHTML = _docContentHtml;
|
|
654
|
-
|
|
655
|
-
(() => {
|
|
656
|
-
const oApp = document.querySelector('#app'),
|
|
657
|
-
oTestReport = oApp.querySelector('.apipost-report-wrap'),
|
|
658
|
-
oActionWrap = oTestReport.querySelector('.action-wrap'),
|
|
659
|
-
oTestDetailFailed = oActionWrap.querySelector('.test-detail.failed'),
|
|
660
|
-
oTestDetailSuccess = oActionWrap.querySelector('.test-detail.success');
|
|
661
|
-
|
|
662
|
-
const oTestDetails = document.querySelectorAll('.test-detail');
|
|
663
|
-
let curIndex = 0;
|
|
664
|
-
|
|
665
|
-
const init = () => {
|
|
666
|
-
bindEvent();
|
|
667
|
-
initPie();
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
function bindEvent() {
|
|
671
|
-
Array.from(oTestDetails).forEach(item => {
|
|
672
|
-
item.addEventListener('click', handleToggle.bind(null, item), false)
|
|
673
|
-
})
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
function handleToggle(detailWrap, e) {
|
|
677
|
-
const clickClassName = e.target.className;
|
|
678
|
-
const oTestList = detailWrap.querySelector('.test-event-list');
|
|
679
|
-
|
|
680
|
-
if (oTestList && ['title', 'toggle-arrow', 'arrow'].includes(clickClassName)) {
|
|
681
|
-
const className = oTestList.className;
|
|
682
|
-
if (className.includes('show')) {
|
|
683
|
-
oTestList.className = 'test-event-list hide';
|
|
684
|
-
} else {
|
|
685
|
-
oTestList.className = 'test-event-list show';
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
const computedInfo = (info) => {
|
|
691
|
-
if (info?.passed == 0 && info?.failure == 0) {
|
|
692
|
-
return [{ value: info?.passed, name: '接口通过率' }];
|
|
693
|
-
}
|
|
694
|
-
return [
|
|
695
|
-
{ value: info?.passed, name: '接口通过率' },
|
|
696
|
-
{ value: info?.failure, name: '接口失败率' },
|
|
697
|
-
];
|
|
698
|
-
};
|
|
699
|
-
|
|
700
|
-
const getOption = (info, color) => {
|
|
701
|
-
return {
|
|
702
|
-
color: color || ['#26CEA4', 'red'],
|
|
703
|
-
series: [
|
|
704
|
-
{
|
|
705
|
-
name: 'Access From',
|
|
706
|
-
type: 'pie',
|
|
707
|
-
radius: ['50%', '80%'],
|
|
708
|
-
avoidLabelOverlap: false,
|
|
709
|
-
label: {
|
|
710
|
-
show: false,
|
|
711
|
-
position: 'center',
|
|
712
|
-
},
|
|
713
|
-
emphasis: {
|
|
714
|
-
label: {
|
|
715
|
-
show: true,
|
|
716
|
-
fontSize: 5,
|
|
717
|
-
},
|
|
718
|
-
},
|
|
719
|
-
labelLine: {
|
|
720
|
-
show: false,
|
|
721
|
-
},
|
|
722
|
-
data: computedInfo(info),
|
|
723
|
-
},
|
|
724
|
-
],
|
|
725
|
-
};
|
|
726
|
-
};
|
|
727
|
-
function initPie() {
|
|
728
|
-
const apiPieWrap = document.querySelector('#api-pie');
|
|
729
|
-
const assertPieWrap = document.querySelector('#assert-pie');
|
|
730
|
-
|
|
731
|
-
if (apiPieWrap) {
|
|
732
|
-
const pie = echarts.init(apiPieWrap);
|
|
733
|
-
const options = getOption(
|
|
734
|
-
{
|
|
735
|
-
passed: data?.http?.passed,
|
|
736
|
-
failure: data?.http?.failure,
|
|
737
|
-
},
|
|
738
|
-
['#26CEA4', '#E45252']
|
|
739
|
-
);
|
|
740
|
-
pie && pie.setOption(options);
|
|
741
|
-
}
|
|
742
|
-
if (assertPieWrap) {
|
|
743
|
-
const pie = echarts.init(assertPieWrap);
|
|
744
|
-
const options = getOption(
|
|
745
|
-
{
|
|
746
|
-
passed: data?.assert?.passed,
|
|
747
|
-
failure: data?.assert?.failure,
|
|
748
|
-
},
|
|
749
|
-
['#26CEA4', '#E45252']
|
|
750
|
-
);
|
|
751
|
-
pie && pie.setOption(options);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
init();
|
|
756
|
-
})();
|
|
757
|
-
</script>
|
|
758
|
-
</body>
|
|
759
|
-
</html>
|
|
760
|
-
`;
|
|
761
|
-
};
|
|
762
|
-
|
|
763
|
-
const downloadTestReport = async (data, options, request) => {
|
|
764
|
-
const homedir = os.homedir();
|
|
765
|
-
const now = dayjs();
|
|
766
|
-
const formattedTime = now.format('YYYY-MM-DD HH:mm:ss');
|
|
767
|
-
|
|
768
|
-
for (const type of options.reporters.split(',')) {
|
|
769
|
-
if (['html', 'json'].indexOf(type) > -1) {
|
|
770
|
-
const reportContent = type === 'html'
|
|
771
|
-
? RENDER_TEST_REPORT_HTML_STR(data)
|
|
772
|
-
: JSON.stringify(data, null, '\t');
|
|
773
|
-
|
|
774
|
-
const finalFilePath = path.resolve(options.outDir, `${options.outFile || `apipost-reports-${formattedTime}`}.${type}`);
|
|
775
|
-
|
|
776
|
-
let retries = 0;
|
|
777
|
-
|
|
778
|
-
while (true) {
|
|
779
|
-
try {
|
|
780
|
-
fs.writeFileSync(finalFilePath, reportContent);
|
|
781
|
-
break;
|
|
782
|
-
} catch (err) {
|
|
783
|
-
fs.appendFileSync(path.join(homedir, 'apipost-cli-error.log'), `${formattedTime}\t${String(err)}\n`);
|
|
784
|
-
|
|
785
|
-
if (err.code === 'ENOENT') {
|
|
786
|
-
fs.mkdirSync(options.outDir, { recursive: true });
|
|
787
|
-
continue;
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
if (err.code === 'EMFILE' && retries < 10) {
|
|
791
|
-
retries++;
|
|
792
|
-
await new Promise(resolve => setTimeout(resolve, 50 * retries));
|
|
793
|
-
continue;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
throw err;
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
};
|
|
802
|
-
|
|
803
|
-
module.exports = downloadTestReport;
|