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.
Files changed (300) hide show
  1. package/README.md +4 -0
  2. package/dist/37.index.js +452 -0
  3. package/dist/841.index.js +6984 -0
  4. package/dist/action.js +4 -0
  5. package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortController.d.ts +85 -0
  6. package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/AbortSignal.d.ts +80 -0
  7. package/dist/apipost-cli/node_modules/@azure/abort-controller/types/3.1/index.d.ts +3 -0
  8. package/dist/apipost-cli/node_modules/@azure/core-auth/types/3.1/core-auth.d.ts +229 -0
  9. package/dist/apipost-cli/node_modules/@azure/core-client/types/3.1/core-client.d.ts +900 -0
  10. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/core-paging.d.ts +77 -0
  11. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/samples-dev/getPagedAsyncIteratorSample.d.ts +2 -0
  12. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/getPagedAsyncIterator.d.ts +10 -0
  13. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/index.d.ts +3 -0
  14. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/src/models.d.ts +69 -0
  15. package/dist/apipost-cli/node_modules/@azure/core-paging/types/3.1/test/getPagedAsyncIterator.spec.d.ts +2 -0
  16. package/dist/apipost-cli/node_modules/@azure/core-rest-pipeline/types/3.1/core-rest-pipeline.d.ts +1114 -0
  17. package/dist/apipost-cli/node_modules/@azure/core-util/types/3.1/core-util.d.ts +112 -0
  18. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
  19. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  20. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
  21. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
  22. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
  23. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
  24. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
  25. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  26. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
  27. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
  28. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
  29. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
  30. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
  31. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  32. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
  33. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  34. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
  35. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
  36. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
  37. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
  38. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
  39. package/dist/apipost-cli/node_modules/@nodelib/fs.scandir/package.json +44 -0
  40. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/LICENSE +21 -0
  41. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  42. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
  43. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
  44. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/index.js +26 -0
  45. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  46. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
  47. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
  48. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
  49. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
  50. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
  51. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  52. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
  53. package/dist/apipost-cli/node_modules/@nodelib/fs.stat/package.json +37 -0
  54. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/LICENSE +21 -0
  55. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
  56. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/index.js +34 -0
  57. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  58. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
  59. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
  60. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
  61. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
  62. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
  63. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
  64. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
  65. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  66. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
  67. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
  68. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
  69. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  70. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
  71. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
  72. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
  73. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
  74. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
  75. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  76. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
  77. package/dist/apipost-cli/node_modules/@nodelib/fs.walk/package.json +44 -0
  78. package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
  79. package/dist/apipost-cli/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
  80. package/dist/apipost-cli/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
  81. package/dist/apipost-cli/node_modules/@types/node/ts4.8/buffer.d.ts +2351 -0
  82. package/dist/apipost-cli/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
  83. package/dist/apipost-cli/node_modules/@types/node/ts4.8/cluster.d.ts +410 -0
  84. package/dist/apipost-cli/node_modules/@types/node/ts4.8/console.d.ts +412 -0
  85. package/dist/apipost-cli/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
  86. package/dist/apipost-cli/node_modules/@types/node/ts4.8/crypto.d.ts +3961 -0
  87. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
  88. package/dist/apipost-cli/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
  89. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
  90. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
  91. package/dist/apipost-cli/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
  92. package/dist/apipost-cli/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
  93. package/dist/apipost-cli/node_modules/@types/node/ts4.8/events.d.ts +724 -0
  94. package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
  95. package/dist/apipost-cli/node_modules/@types/node/ts4.8/fs.d.ts +4043 -0
  96. package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
  97. package/dist/apipost-cli/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
  98. package/dist/apipost-cli/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
  99. package/dist/apipost-cli/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
  100. package/dist/apipost-cli/node_modules/@types/node/ts4.8/https.d.ts +441 -0
  101. package/dist/apipost-cli/node_modules/@types/node/ts4.8/index.d.ts +88 -0
  102. package/dist/apipost-cli/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
  103. package/dist/apipost-cli/node_modules/@types/node/ts4.8/module.d.ts +116 -0
  104. package/dist/apipost-cli/node_modules/@types/node/ts4.8/net.d.ts +886 -0
  105. package/dist/apipost-cli/node_modules/@types/node/ts4.8/os.d.ts +477 -0
  106. package/dist/apipost-cli/node_modules/@types/node/ts4.8/path.d.ts +191 -0
  107. package/dist/apipost-cli/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
  108. package/dist/apipost-cli/node_modules/@types/node/ts4.8/process.d.ts +1485 -0
  109. package/dist/apipost-cli/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
  110. package/dist/apipost-cli/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
  111. package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
  112. package/dist/apipost-cli/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
  113. package/dist/apipost-cli/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
  114. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
  115. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
  116. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
  117. package/dist/apipost-cli/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
  118. package/dist/apipost-cli/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
  119. package/dist/apipost-cli/node_modules/@types/node/ts4.8/test.d.ts +1052 -0
  120. package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
  121. package/dist/apipost-cli/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
  122. package/dist/apipost-cli/node_modules/@types/node/ts4.8/tls.d.ts +1119 -0
  123. package/dist/apipost-cli/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
  124. package/dist/apipost-cli/node_modules/@types/node/ts4.8/tty.d.ts +205 -0
  125. package/dist/apipost-cli/node_modules/@types/node/ts4.8/url.d.ts +901 -0
  126. package/dist/apipost-cli/node_modules/@types/node/ts4.8/util.d.ts +2052 -0
  127. package/dist/apipost-cli/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
  128. package/dist/apipost-cli/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
  129. package/dist/apipost-cli/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
  130. package/dist/apipost-cli/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
  131. package/dist/apipost-cli/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
  132. package/dist/apipost-cli/node_modules/bignumber.js/LICENCE.md +26 -0
  133. package/dist/apipost-cli/node_modules/bignumber.js/bignumber.d.ts +1831 -0
  134. package/dist/apipost-cli/node_modules/bignumber.js/bignumber.js +2926 -0
  135. package/dist/apipost-cli/node_modules/bignumber.js/bignumber.mjs +2889 -0
  136. package/dist/apipost-cli/node_modules/bignumber.js/doc/API.html +2249 -0
  137. package/dist/apipost-cli/node_modules/bignumber.js/package.json +50 -0
  138. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/filesystem.o +0 -0
  139. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/hwcaps.o +0 -0
  140. 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
  141. 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
  142. 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
  143. 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
  144. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_ppc_linux.o +0 -0
  145. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_freebsd.o +0 -0
  146. 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
  147. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_macos.o +0 -0
  148. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/impl_x86_windows.o +0 -0
  149. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/stack_line_reader.o +0 -0
  150. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpu_features/deps/cpu_features/src/string_view.o +0 -0
  151. package/dist/apipost-cli/node_modules/cpu-features/build/Release/obj.target/cpufeatures/src/binding.o +0 -0
  152. package/dist/apipost-cli/node_modules/des.js/lib/des/cbc.js +65 -0
  153. package/dist/apipost-cli/node_modules/des.js/lib/des/cipher.js +142 -0
  154. package/dist/apipost-cli/node_modules/des.js/lib/des/des.js +150 -0
  155. package/dist/apipost-cli/node_modules/des.js/lib/des/ede.js +54 -0
  156. package/dist/apipost-cli/node_modules/des.js/lib/des/utils.js +256 -0
  157. package/dist/apipost-cli/node_modules/des.js/lib/des.js +7 -0
  158. package/dist/apipost-cli/node_modules/des.js/package.json +33 -0
  159. package/dist/apipost-cli/node_modules/des.js/test/cbc-test.js +73 -0
  160. package/dist/apipost-cli/node_modules/des.js/test/des-test.js +139 -0
  161. package/dist/apipost-cli/node_modules/des.js/test/ede-test.js +106 -0
  162. package/dist/apipost-cli/node_modules/des.js/test/fixtures.js +5 -0
  163. package/dist/apipost-cli/node_modules/des.js/test/utils-test.js +169 -0
  164. package/dist/apipost-cli/node_modules/fs.realpath/LICENSE +43 -0
  165. package/dist/apipost-cli/node_modules/fs.realpath/index.js +66 -0
  166. package/dist/apipost-cli/node_modules/fs.realpath/old.js +303 -0
  167. package/dist/apipost-cli/node_modules/fs.realpath/package.json +26 -0
  168. package/dist/apipost-cli/node_modules/function.prototype.name/LICENSE +21 -0
  169. package/dist/apipost-cli/node_modules/function.prototype.name/auto.js +3 -0
  170. package/dist/apipost-cli/node_modules/function.prototype.name/helpers/functionsHaveNames.js +5 -0
  171. package/dist/apipost-cli/node_modules/function.prototype.name/implementation.js +43 -0
  172. package/dist/apipost-cli/node_modules/function.prototype.name/index.js +18 -0
  173. package/dist/apipost-cli/node_modules/function.prototype.name/package.json +80 -0
  174. package/dist/apipost-cli/node_modules/function.prototype.name/polyfill.js +7 -0
  175. package/dist/apipost-cli/node_modules/function.prototype.name/shim.js +35 -0
  176. package/dist/apipost-cli/node_modules/function.prototype.name/test/implementation.js +20 -0
  177. package/dist/apipost-cli/node_modules/function.prototype.name/test/index.js +23 -0
  178. package/dist/apipost-cli/node_modules/function.prototype.name/test/shimmed.js +21 -0
  179. package/dist/apipost-cli/node_modules/function.prototype.name/test/tests.js +60 -0
  180. package/dist/apipost-cli/node_modules/function.prototype.name/test/uglified.js +17 -0
  181. package/dist/apipost-cli/node_modules/lodash.camelcase/LICENSE +47 -0
  182. package/dist/apipost-cli/node_modules/lodash.camelcase/index.js +599 -0
  183. package/dist/apipost-cli/node_modules/lodash.camelcase/package.json +17 -0
  184. package/dist/apipost-cli/node_modules/lodash.memoize/LICENSE +47 -0
  185. package/dist/apipost-cli/node_modules/lodash.memoize/index.js +676 -0
  186. package/dist/apipost-cli/node_modules/lodash.memoize/package.json +17 -0
  187. package/dist/apipost-cli/node_modules/lodash.uniq/LICENSE +47 -0
  188. package/dist/apipost-cli/node_modules/lodash.uniq/index.js +896 -0
  189. package/dist/apipost-cli/node_modules/lodash.uniq/package.json +17 -0
  190. package/dist/apipost-cli/node_modules/moment/ts3.1-typings/moment.d.ts +785 -0
  191. package/dist/apipost-cli/node_modules/oauth-1.0a/LICENSE +20 -0
  192. package/dist/apipost-cli/node_modules/oauth-1.0a/Makefile +36 -0
  193. package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.d.ts +192 -0
  194. package/dist/apipost-cli/node_modules/oauth-1.0a/oauth-1.0a.js +377 -0
  195. package/dist/apipost-cli/node_modules/oauth-1.0a/package.json +30 -0
  196. package/dist/apipost-cli/node_modules/oauth-1.0a/test/getParameterString.js +21 -0
  197. package/dist/apipost-cli/node_modules/oauth-1.0a/test/mocha.opts +4 -0
  198. package/dist/apipost-cli/node_modules/oauth-1.0a/test/oauth_body_hash.js +141 -0
  199. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/consumer.js +14 -0
  200. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/last_ampersand.js +55 -0
  201. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values.js +54 -0
  202. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/multiple_values_qs.js +50 -0
  203. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/nonce_length.js +44 -0
  204. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/parameter_seperator.js +102 -0
  205. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/realm.js +51 -0
  206. package/dist/apipost-cli/node_modules/oauth-1.0a/test/options/signature_method.js +36 -0
  207. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/bitbucket.js +88 -0
  208. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/flickr.js +196 -0
  209. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/openbank.js +61 -0
  210. package/dist/apipost-cli/node_modules/oauth-1.0a/test/services/twitter.js +183 -0
  211. package/dist/apipost-cli/node_modules/oauth-1.0a/test/twitter_sample_data.js +94 -0
  212. package/dist/apipost-cli/node_modules/object.assign/LICENSE +21 -0
  213. package/dist/apipost-cli/node_modules/object.assign/auto.js +3 -0
  214. package/dist/apipost-cli/node_modules/object.assign/dist/browser.js +944 -0
  215. package/dist/apipost-cli/node_modules/object.assign/hasSymbols.js +43 -0
  216. package/dist/apipost-cli/node_modules/object.assign/implementation.js +46 -0
  217. package/dist/apipost-cli/node_modules/object.assign/index.js +22 -0
  218. package/dist/apipost-cli/node_modules/object.assign/package.json +96 -0
  219. package/dist/apipost-cli/node_modules/object.assign/polyfill.js +55 -0
  220. package/dist/apipost-cli/node_modules/object.assign/shim.js +14 -0
  221. package/dist/apipost-cli/node_modules/object.assign/test/implementation.js +19 -0
  222. package/dist/apipost-cli/node_modules/object.assign/test/index.js +17 -0
  223. package/dist/apipost-cli/node_modules/object.assign/test/native.js +49 -0
  224. package/dist/apipost-cli/node_modules/object.assign/test/ses-compat.js +12 -0
  225. package/dist/apipost-cli/node_modules/object.assign/test/shimmed.js +52 -0
  226. package/dist/apipost-cli/node_modules/object.assign/test/tests.js +232 -0
  227. package/dist/apipost-cli/node_modules/object.assign/test.html +18458 -0
  228. package/dist/apipost-cli/node_modules/promise.series/LICENSE +21 -0
  229. package/dist/apipost-cli/node_modules/promise.series/index.js +10 -0
  230. package/dist/apipost-cli/node_modules/promise.series/package.json +34 -0
  231. package/dist/apipost-cli/node_modules/regexp.prototype.flags/LICENSE +22 -0
  232. package/dist/apipost-cli/node_modules/regexp.prototype.flags/auto.js +3 -0
  233. package/dist/apipost-cli/node_modules/regexp.prototype.flags/implementation.js +42 -0
  234. package/dist/apipost-cli/node_modules/regexp.prototype.flags/index.js +18 -0
  235. package/dist/apipost-cli/node_modules/regexp.prototype.flags/package.json +100 -0
  236. package/dist/apipost-cli/node_modules/regexp.prototype.flags/polyfill.js +36 -0
  237. package/dist/apipost-cli/node_modules/regexp.prototype.flags/shim.js +26 -0
  238. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/implementation.js +20 -0
  239. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/index.js +17 -0
  240. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/shimmed.js +48 -0
  241. package/dist/apipost-cli/node_modules/regexp.prototype.flags/test/tests.js +143 -0
  242. package/dist/apipost-cli/node_modules/resolve.exports/dist/index.js +1 -0
  243. package/dist/apipost-cli/node_modules/resolve.exports/dist/index.mjs +1 -0
  244. package/dist/apipost-cli/node_modules/resolve.exports/index.d.ts +100 -0
  245. package/dist/apipost-cli/node_modules/resolve.exports/license +21 -0
  246. package/dist/apipost-cli/node_modules/resolve.exports/package.json +50 -0
  247. package/dist/apipost-cli/node_modules/ssh2/lib/protocol/crypto/build/Release/obj.target/sshcrypto/src/binding.o +0 -0
  248. package/dist/apipost-cli/node_modules/string.prototype.trim/LICENSE +21 -0
  249. package/dist/apipost-cli/node_modules/string.prototype.trim/auto.js +3 -0
  250. package/dist/apipost-cli/node_modules/string.prototype.trim/implementation.js +21 -0
  251. package/dist/apipost-cli/node_modules/string.prototype.trim/index.js +23 -0
  252. package/dist/apipost-cli/node_modules/string.prototype.trim/package.json +101 -0
  253. package/dist/apipost-cli/node_modules/string.prototype.trim/polyfill.js +19 -0
  254. package/dist/apipost-cli/node_modules/string.prototype.trim/shim.js +14 -0
  255. package/dist/apipost-cli/node_modules/string.prototype.trim/test/implementation.js +21 -0
  256. package/dist/apipost-cli/node_modules/string.prototype.trim/test/index.js +17 -0
  257. package/dist/apipost-cli/node_modules/string.prototype.trim/test/shimmed.js +36 -0
  258. package/dist/apipost-cli/node_modules/string.prototype.trim/test/tests.js +45 -0
  259. package/dist/apipost-cli/node_modules/string.prototype.trimend/LICENSE +21 -0
  260. package/dist/apipost-cli/node_modules/string.prototype.trimend/auto.js +3 -0
  261. package/dist/apipost-cli/node_modules/string.prototype.trimend/implementation.js +15 -0
  262. package/dist/apipost-cli/node_modules/string.prototype.trimend/index.js +23 -0
  263. package/dist/apipost-cli/node_modules/string.prototype.trimend/package.json +79 -0
  264. package/dist/apipost-cli/node_modules/string.prototype.trimend/polyfill.js +15 -0
  265. package/dist/apipost-cli/node_modules/string.prototype.trimend/shim.js +14 -0
  266. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/implementation.js +20 -0
  267. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/index.js +17 -0
  268. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/shimmed.js +36 -0
  269. package/dist/apipost-cli/node_modules/string.prototype.trimend/test/tests.js +31 -0
  270. package/dist/apipost-cli/node_modules/string.prototype.trimstart/LICENSE +21 -0
  271. package/dist/apipost-cli/node_modules/string.prototype.trimstart/auto.js +3 -0
  272. package/dist/apipost-cli/node_modules/string.prototype.trimstart/implementation.js +15 -0
  273. package/dist/apipost-cli/node_modules/string.prototype.trimstart/index.js +23 -0
  274. package/dist/apipost-cli/node_modules/string.prototype.trimstart/package.json +79 -0
  275. package/dist/apipost-cli/node_modules/string.prototype.trimstart/polyfill.js +15 -0
  276. package/dist/apipost-cli/node_modules/string.prototype.trimstart/shim.js +14 -0
  277. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/implementation.js +20 -0
  278. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/index.js +18 -0
  279. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/shimmed.js +36 -0
  280. package/dist/apipost-cli/node_modules/string.prototype.trimstart/test/tests.js +31 -0
  281. package/dist/apipost-cli/node_modules/web-streams-polyfill/dist/types/ts3.6/polyfill.d.ts +771 -0
  282. package/dist/apipost-http-schema.json +129 -0
  283. package/dist/bridge.js +1010 -0
  284. package/dist/build/Release/cpufeatures.node +0 -0
  285. package/dist/esprima.js +3756 -0
  286. package/dist/events.js +977 -0
  287. package/dist/index.js +565958 -0
  288. package/dist/index1.js +26 -0
  289. package/dist/lib/protocol/crypto/build/Release/sshcrypto.node +0 -0
  290. package/dist/module.js +34 -0
  291. package/dist/pagent.exe +0 -0
  292. package/dist/setup-node-sandbox.js +461 -0
  293. package/dist/setup-sandbox.js +545 -0
  294. package/dist/snappy.darwin-arm64.node +0 -0
  295. package/dist/xdg-open +1066 -0
  296. package/package.json +13 -4
  297. package/bin/cli.js +0 -216
  298. package/bin/template.js +0 -803
  299. /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.html" +0 -0
  300. /package/{bin → dist/apipost-cli}/apipost-reports//346/265/213/350/257/225.json" +0 -0
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,50 @@
1
+ {
2
+ "version": "2.0.2",
3
+ "name": "resolve.exports",
4
+ "repository": "lukeed/resolve.exports",
5
+ "description": "A tiny (952b), correct, general-purpose, and configurable \"exports\" and \"imports\" resolver without file-system reliance",
6
+ "module": "dist/index.mjs",
7
+ "main": "dist/index.js",
8
+ "types": "index.d.ts",
9
+ "license": "MIT",
10
+ "author": {
11
+ "name": "Luke Edwards",
12
+ "email": "luke.edwards05@gmail.com",
13
+ "url": "https://lukeed.com"
14
+ },
15
+ "engines": {
16
+ "node": ">=10"
17
+ },
18
+ "scripts": {
19
+ "build": "bundt -m",
20
+ "types": "tsc --noEmit",
21
+ "test": "uvu -r tsm test"
22
+ },
23
+ "files": [
24
+ "*.d.ts",
25
+ "dist"
26
+ ],
27
+ "exports": {
28
+ ".": {
29
+ "types": "./index.d.ts",
30
+ "import": "./dist/index.mjs",
31
+ "require": "./dist/index.js"
32
+ },
33
+ "./package.json": "./package.json"
34
+ },
35
+ "keywords": [
36
+ "esm",
37
+ "exports",
38
+ "esmodules",
39
+ "fields",
40
+ "modules",
41
+ "resolution",
42
+ "resolve"
43
+ ],
44
+ "devDependencies": {
45
+ "bundt": "next",
46
+ "tsm": "2.3.0",
47
+ "typescript": "4.9.4",
48
+ "uvu": "0.5.4"
49
+ }
50
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Jordan Harband
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ require('./shim')();
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible');
4
+ var ToString = require('es-abstract/2022/ToString');
5
+ var callBound = require('call-bind/callBound');
6
+ var $replace = callBound('String.prototype.replace');
7
+
8
+ var mvsIsWS = (/^\s$/).test('\u180E');
9
+ /* eslint-disable no-control-regex */
10
+ var leftWhitespace = mvsIsWS
11
+ ? /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/
12
+ : /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/;
13
+ var rightWhitespace = mvsIsWS
14
+ ? /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/
15
+ : /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;
16
+ /* eslint-enable no-control-regex */
17
+
18
+ module.exports = function trim() {
19
+ var S = ToString(RequireObjectCoercible(this));
20
+ return $replace($replace(S, leftWhitespace, ''), rightWhitespace, '');
21
+ };
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var callBind = require('call-bind');
4
+ var define = require('define-properties');
5
+ var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible');
6
+
7
+ var implementation = require('./implementation');
8
+ var getPolyfill = require('./polyfill');
9
+ var shim = require('./shim');
10
+
11
+ var bound = callBind(getPolyfill());
12
+ var boundMethod = function trim(receiver) {
13
+ RequireObjectCoercible(receiver);
14
+ return bound(receiver);
15
+ };
16
+
17
+ define(boundMethod, {
18
+ getPolyfill: getPolyfill,
19
+ implementation: implementation,
20
+ shim: shim
21
+ });
22
+
23
+ module.exports = boundMethod;
@@ -0,0 +1,101 @@
1
+ {
2
+ "name": "string.prototype.trim",
3
+ "version": "1.2.7",
4
+ "author": {
5
+ "name": "Jordan Harband",
6
+ "email": "ljharb@gmail.com",
7
+ "url": "http://ljharb.codes"
8
+ },
9
+ "funding": {
10
+ "url": "https://github.com/sponsors/ljharb"
11
+ },
12
+ "contributors": [
13
+ {
14
+ "name": "Jordan Harband",
15
+ "email": "ljharb@gmail.com",
16
+ "url": "http://ljharb.codes"
17
+ }
18
+ ],
19
+ "description": "ES5 spec-compliant shim for String.prototype.trim",
20
+ "license": "MIT",
21
+ "main": "index.js",
22
+ "scripts": {
23
+ "prepack": "npmignore --auto --commentLines=autogenerated",
24
+ "prepublish": "not-in-publish || npm run prepublishOnly",
25
+ "prepublishOnly": "safe-publish-latest",
26
+ "pretest": "npm run lint",
27
+ "test": "npm run tests-only",
28
+ "posttest": "aud --production",
29
+ "tests-only": "nyc tape 'test/**/*.js'",
30
+ "lint": "eslint --ext=js,mjs .",
31
+ "postlint": "es-shim-api --bound",
32
+ "version": "auto-changelog && git add CHANGELOG.md",
33
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git://github.com/es-shims/String.prototype.trim.git"
38
+ },
39
+ "keywords": [
40
+ "String.prototype.trim",
41
+ "string",
42
+ "ES5",
43
+ "shim",
44
+ "trim",
45
+ "polyfill",
46
+ "es-shim API"
47
+ ],
48
+ "dependencies": {
49
+ "call-bind": "^1.0.2",
50
+ "define-properties": "^1.1.4",
51
+ "es-abstract": "^1.20.4"
52
+ },
53
+ "devDependencies": {
54
+ "@es-shims/api": "^2.2.3",
55
+ "@ljharb/eslint-config": "^21.0.0",
56
+ "aud": "^2.0.1",
57
+ "auto-changelog": "^2.4.0",
58
+ "eslint": "=8.8.0",
59
+ "functions-have-names": "^1.2.3",
60
+ "has-strict-mode": "^1.0.1",
61
+ "in-publish": "^2.0.1",
62
+ "npmignore": "^0.3.0",
63
+ "nyc": "^10.3.2",
64
+ "safe-publish-latest": "^2.0.0",
65
+ "tape": "^5.6.1"
66
+ },
67
+ "testling": {
68
+ "files": "test/index.js",
69
+ "browsers": [
70
+ "iexplore/9.0..latest",
71
+ "firefox/4.0..6.0",
72
+ "firefox/15.0..latest",
73
+ "firefox/nightly",
74
+ "chrome/4.0..10.0",
75
+ "chrome/20.0..latest",
76
+ "chrome/canary",
77
+ "opera/11.6..latest",
78
+ "opera/next",
79
+ "safari/5.0..latest",
80
+ "ipad/6.0..latest",
81
+ "iphone/6.0..latest",
82
+ "android-browser/4.2"
83
+ ]
84
+ },
85
+ "engines": {
86
+ "node": ">= 0.4"
87
+ },
88
+ "auto-changelog": {
89
+ "output": "CHANGELOG.md",
90
+ "template": "keepachangelog",
91
+ "unreleased": false,
92
+ "commitLimit": false,
93
+ "backfillLimit": false,
94
+ "hideCredit": true
95
+ },
96
+ "publishConfig": {
97
+ "ignore": [
98
+ ".github/workflows"
99
+ ]
100
+ }
101
+ }
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ var implementation = require('./implementation');
4
+
5
+ var zeroWidthSpace = '\u200b';
6
+ var mongolianVowelSeparator = '\u180E';
7
+
8
+ module.exports = function getPolyfill() {
9
+ if (
10
+ String.prototype.trim
11
+ && zeroWidthSpace.trim() === zeroWidthSpace
12
+ && mongolianVowelSeparator.trim() === mongolianVowelSeparator
13
+ && ('_' + mongolianVowelSeparator).trim() === ('_' + mongolianVowelSeparator)
14
+ && (mongolianVowelSeparator + '_').trim() === (mongolianVowelSeparator + '_')
15
+ ) {
16
+ return String.prototype.trim;
17
+ }
18
+ return implementation;
19
+ };
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var define = require('define-properties');
4
+ var getPolyfill = require('./polyfill');
5
+
6
+ module.exports = function shimStringTrim() {
7
+ var polyfill = getPolyfill();
8
+ define(String.prototype, { trim: polyfill }, {
9
+ trim: function testTrim() {
10
+ return String.prototype.trim !== polyfill;
11
+ }
12
+ });
13
+ return polyfill;
14
+ };
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var trim = require('../implementation');
4
+ var test = require('tape');
5
+ var hasStrictMode = require('has-strict-mode')();
6
+ var callBind = require('call-bind');
7
+
8
+ var runTests = require('./tests');
9
+
10
+ test('as a function', function (t) {
11
+ t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
12
+ /* eslint no-useless-call: 0 */
13
+ st['throws'](function () { trim.call(undefined, 'a'); }, TypeError, 'undefined is not an object');
14
+ st['throws'](function () { trim.call(null, 'a'); }, TypeError, 'null is not an object');
15
+ st.end();
16
+ });
17
+
18
+ runTests(callBind(trim), t);
19
+
20
+ t.end();
21
+ });
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var trim = require('../');
4
+ var test = require('tape');
5
+ var runTests = require('./tests');
6
+
7
+ test('as a function', function (t) {
8
+ t.test('bad array/this value', function (st) {
9
+ st['throws'](function () { trim(undefined, 'a'); }, TypeError, 'undefined is not an object');
10
+ st['throws'](function () { trim(null, 'a'); }, TypeError, 'null is not an object');
11
+ st.end();
12
+ });
13
+
14
+ runTests(trim, t);
15
+
16
+ t.end();
17
+ });
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ require('../auto');
4
+
5
+ var test = require('tape');
6
+ var defineProperties = require('define-properties');
7
+ var callBind = require('call-bind');
8
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
9
+ var functionsHaveNames = require('functions-have-names')();
10
+
11
+ var runTests = require('./tests');
12
+
13
+ test('shimmed', function (t) {
14
+ t.equal(String.prototype.trim.length, 0, 'String#trim has a length of 0');
15
+ t.test('Function name', { skip: !functionsHaveNames }, function (st) {
16
+ st.equal(String.prototype.trim.name, 'trim', 'String#trim has name "trim"');
17
+ st.end();
18
+ });
19
+
20
+ t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
21
+ et.equal(false, isEnumerable.call(String.prototype, 'trim'), 'String#trim is not enumerable');
22
+ et.end();
23
+ });
24
+
25
+ var supportsStrictMode = (function () { return typeof this === 'undefined'; }());
26
+
27
+ t.test('bad string/this value', { skip: !supportsStrictMode }, function (st) {
28
+ st['throws'](function () { return String.prototype.trim.call(undefined, 'a'); }, TypeError, 'undefined is not an object');
29
+ st['throws'](function () { return String.prototype.trim.call(null, 'a'); }, TypeError, 'null is not an object');
30
+ st.end();
31
+ });
32
+
33
+ runTests(callBind(String.prototype.trim), t);
34
+
35
+ t.end();
36
+ });
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ module.exports = function (trim, t) {
4
+ t.test('normal cases', function (st) {
5
+ st.equal(trim(' \t\na \t\n'), 'a', 'strips whitespace off left and right sides');
6
+ st.equal(trim('a'), 'a', 'noop when no whitespace');
7
+
8
+ var allWhitespaceChars = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
9
+ st.equal(trim(allWhitespaceChars + 'a' + allWhitespaceChars), 'a', 'all expected whitespace chars are trimmed');
10
+
11
+ st.end();
12
+ });
13
+
14
+ // see https://codeblog.jonskeet.uk/2014/12/01/when-is-an-identifier-not-an-identifier-attack-of-the-mongolian-vowel-separator/
15
+ var mongolianVowelSeparator = '\u180E';
16
+ var mvsIsWS = (/^\s$/).test('\u180E');
17
+ t.test('unicode >= 4 && < 6.3', function (st) {
18
+ st.equal(
19
+ trim(mongolianVowelSeparator + 'a' + mongolianVowelSeparator),
20
+ mvsIsWS ? 'a' : mongolianVowelSeparator + 'a' + mongolianVowelSeparator,
21
+ 'mongolian vowel separator is' + (mvsIsWS ? '' : ' not') + ' whitespace'
22
+ );
23
+
24
+ st.equal(
25
+ trim(mongolianVowelSeparator),
26
+ mvsIsWS ? '' : mongolianVowelSeparator
27
+ );
28
+ st.equal(
29
+ trim('_' + mongolianVowelSeparator),
30
+ '_' + (mvsIsWS ? '' : mongolianVowelSeparator)
31
+ );
32
+ st.equal(
33
+ trim(mongolianVowelSeparator + '_'),
34
+ (mvsIsWS ? '' : mongolianVowelSeparator) + '_'
35
+ );
36
+
37
+ st.end();
38
+ });
39
+
40
+ t.test('zero-width spaces', function (st) {
41
+ var zeroWidth = '\u200b';
42
+ st.equal(trim(zeroWidth), zeroWidth, 'zero width space does not trim');
43
+ st.end();
44
+ });
45
+ };
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Khaled Al-Ansari
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+
3
+ require('./shim')();
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var callBound = require('call-bind/callBound');
4
+ var $replace = callBound('String.prototype.replace');
5
+
6
+ var mvsIsWS = (/^\s$/).test('\u180E');
7
+ /* eslint-disable no-control-regex */
8
+ var endWhitespace = mvsIsWS
9
+ ? /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/
10
+ : /[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;
11
+ /* eslint-enable no-control-regex */
12
+
13
+ module.exports = function trimEnd() {
14
+ return $replace(this, endWhitespace, '');
15
+ };
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var callBind = require('call-bind');
4
+ var define = require('define-properties');
5
+ var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible');
6
+
7
+ var implementation = require('./implementation');
8
+ var getPolyfill = require('./polyfill');
9
+ var shim = require('./shim');
10
+
11
+ var bound = callBind(getPolyfill());
12
+ var boundMethod = function trim(receiver) {
13
+ RequireObjectCoercible(receiver);
14
+ return bound(receiver);
15
+ };
16
+
17
+ define(boundMethod, {
18
+ getPolyfill: getPolyfill,
19
+ implementation: implementation,
20
+ shim: shim
21
+ });
22
+
23
+ module.exports = boundMethod;
@@ -0,0 +1,79 @@
1
+ {
2
+ "name": "string.prototype.trimend",
3
+ "version": "1.0.6",
4
+ "author": "Jordan Harband <ljharb@gmail.com>",
5
+ "contributors": [
6
+ "Jordan Harband <ljharb@gmail.com>",
7
+ "Khaled Al-Ansari <khaledelansari@gmail.com>"
8
+ ],
9
+ "funding": {
10
+ "url": "https://github.com/sponsors/ljharb"
11
+ },
12
+ "description": "ES2019 spec-compliant String.prototype.trimEnd shim.",
13
+ "license": "MIT",
14
+ "main": "index.js",
15
+ "scripts": {
16
+ "prepack": "npmignore --auto --commentLines=autogenerated",
17
+ "prepublish": "not-in-publish || npm run prepublishOnly",
18
+ "prepublishOnly": "safe-publish-latest",
19
+ "lint": "eslint --ext=js,mjs .",
20
+ "postlint": "es-shim-api --bound",
21
+ "pretest": "npm run lint",
22
+ "test": "npm run tests-only",
23
+ "posttest": "aud --production",
24
+ "tests-only": "nyc tape 'test/**/*.js'",
25
+ "version": "auto-changelog && git add CHANGELOG.md",
26
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git://github.com/es-shims/String.prototype.trimEnd.git"
31
+ },
32
+ "keywords": [
33
+ "es6",
34
+ "es7",
35
+ "es8",
36
+ "javascript",
37
+ "prototype",
38
+ "polyfill",
39
+ "utility",
40
+ "trim",
41
+ "trimLeft",
42
+ "trimRight",
43
+ "trimStart",
44
+ "trimEnd",
45
+ "tc39"
46
+ ],
47
+ "devDependencies": {
48
+ "@es-shims/api": "^2.2.3",
49
+ "@ljharb/eslint-config": "^21.0.0",
50
+ "aud": "^2.0.1",
51
+ "auto-changelog": "^2.4.0",
52
+ "eslint": "=8.8.0",
53
+ "functions-have-names": "^1.2.3",
54
+ "has-strict-mode": "^1.0.1",
55
+ "in-publish": "^2.0.1",
56
+ "npmignore": "^0.3.0",
57
+ "nyc": "^10.3.2",
58
+ "safe-publish-latest": "^2.0.0",
59
+ "tape": "^5.6.1"
60
+ },
61
+ "auto-changelog": {
62
+ "output": "CHANGELOG.md",
63
+ "template": "keepachangelog",
64
+ "unreleased": false,
65
+ "commitLimit": false,
66
+ "backfillLimit": false,
67
+ "hideCredit": true
68
+ },
69
+ "dependencies": {
70
+ "call-bind": "^1.0.2",
71
+ "define-properties": "^1.1.4",
72
+ "es-abstract": "^1.20.4"
73
+ },
74
+ "publishConfig": {
75
+ "ignore": [
76
+ ".github/workflows"
77
+ ]
78
+ }
79
+ }
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var implementation = require('./implementation');
4
+
5
+ module.exports = function getPolyfill() {
6
+ if (!String.prototype.trimEnd && !String.prototype.trimRight) {
7
+ return implementation;
8
+ }
9
+ var zeroWidthSpace = '\u200b';
10
+ var trimmed = zeroWidthSpace.trimEnd ? zeroWidthSpace.trimEnd() : zeroWidthSpace.trimRight();
11
+ if (trimmed !== zeroWidthSpace) {
12
+ return implementation;
13
+ }
14
+ return String.prototype.trimEnd || String.prototype.trimRight;
15
+ };
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var define = require('define-properties');
4
+ var getPolyfill = require('./polyfill');
5
+
6
+ module.exports = function shimTrimEnd() {
7
+ var polyfill = getPolyfill();
8
+ define(
9
+ String.prototype,
10
+ { trimEnd: polyfill },
11
+ { trimEnd: function () { return String.prototype.trimEnd !== polyfill; } }
12
+ );
13
+ return polyfill;
14
+ };
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ var implementation = require('../implementation');
4
+ var callBind = require('call-bind');
5
+ var test = require('tape');
6
+ var hasStrictMode = require('has-strict-mode')();
7
+ var runTests = require('./tests');
8
+
9
+ test('as a function', function (t) {
10
+ t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
11
+ /* eslint no-useless-call: 0 */
12
+ st['throws'](function () { implementation.call(undefined); }, TypeError, 'undefined is not an object');
13
+ st['throws'](function () { implementation.call(null); }, TypeError, 'null is not an object');
14
+ st.end();
15
+ });
16
+
17
+ runTests(callBind(implementation), t);
18
+
19
+ t.end();
20
+ });
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ var trimEnd = require('../');
4
+ var test = require('tape');
5
+ var runTests = require('./tests');
6
+
7
+ test('as a function', function (t) {
8
+ t.test('bad array/this value', function (st) {
9
+ st['throws'](function () { trimEnd(undefined, 'a'); }, TypeError, 'undefined is not an object');
10
+ st['throws'](function () { trimEnd(null, 'a'); }, TypeError, 'null is not an object');
11
+ st.end();
12
+ });
13
+
14
+ runTests(trimEnd, t);
15
+
16
+ t.end();
17
+ });
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ require('../auto');
4
+
5
+ var runTests = require('./tests');
6
+
7
+ var test = require('tape');
8
+ var defineProperties = require('define-properties');
9
+ var callBind = require('call-bind');
10
+ var isEnumerable = Object.prototype.propertyIsEnumerable;
11
+ var functionsHaveNames = require('functions-have-names')();
12
+
13
+ test('shimmed', function (t) {
14
+ t.equal(String.prototype.trimEnd.length, 0, 'String#trimEnd has a length of 0');
15
+ t.test('Function name', { skip: !functionsHaveNames }, function (st) {
16
+ st.equal((/^(?:trimRight|trimEnd)$/).test(String.prototype.trimEnd.name), true, 'String#trimEnd has name "trimRight" or "trimEnd"');
17
+ st.end();
18
+ });
19
+
20
+ t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
21
+ et.equal(false, isEnumerable.call(String.prototype, 'trimEnd'), 'String#trimEnd is not enumerable');
22
+ et.end();
23
+ });
24
+
25
+ var supportsStrictMode = (function () { return typeof this === 'undefined'; }());
26
+
27
+ t.test('bad string/this value', { skip: !supportsStrictMode }, function (st) {
28
+ st['throws'](function () { return String.prototype.trimEnd.call(undefined, 'a'); }, TypeError, 'undefined is not an object');
29
+ st['throws'](function () { return String.prototype.trimEnd.call(null, 'a'); }, TypeError, 'null is not an object');
30
+ st.end();
31
+ });
32
+
33
+ runTests(callBind(String.prototype.trimEnd), t);
34
+
35
+ t.end();
36
+ });