@banumeow/n8n-nodes-oci-generativeai-agent 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@types/isomorphic-fetch/LICENSE +21 -0
- package/node_modules/@types/isomorphic-fetch/README.md +16 -0
- package/node_modules/@types/isomorphic-fetch/index.d.ts +9 -0
- package/node_modules/@types/isomorphic-fetch/package.json +23 -0
- package/node_modules/@types/jsonwebtoken/LICENSE +21 -0
- package/node_modules/@types/jsonwebtoken/README.md +16 -0
- package/node_modules/@types/jsonwebtoken/index.d.ts +250 -0
- package/node_modules/@types/jsonwebtoken/package.json +82 -0
- package/node_modules/@types/jssha/LICENSE +21 -0
- package/node_modules/@types/jssha/README.md +16 -0
- package/node_modules/@types/jssha/index.d.ts +84 -0
- package/node_modules/@types/jssha/package.json +33 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/node_modules/@types/node/assert.d.ts +1005 -0
- package/node_modules/@types/node/async_hooks.d.ts +586 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +457 -0
- package/node_modules/@types/node/buffer.d.ts +1901 -0
- package/node_modules/@types/node/child_process.d.ts +1453 -0
- package/node_modules/@types/node/cluster.d.ts +578 -0
- package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/node_modules/@types/node/console.d.ts +452 -0
- package/node_modules/@types/node/constants.d.ts +21 -0
- package/node_modules/@types/node/crypto.d.ts +4504 -0
- package/node_modules/@types/node/dgram.d.ts +596 -0
- package/node_modules/@types/node/diagnostics_channel.d.ts +551 -0
- package/node_modules/@types/node/dns/promises.d.ts +477 -0
- package/node_modules/@types/node/dns.d.ts +860 -0
- package/node_modules/@types/node/domain.d.ts +170 -0
- package/node_modules/@types/node/events.d.ts +863 -0
- package/node_modules/@types/node/fs/promises.d.ts +1208 -0
- package/node_modules/@types/node/fs.d.ts +4332 -0
- package/node_modules/@types/node/globals.d.ts +170 -0
- package/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/node_modules/@types/node/http.d.ts +1919 -0
- package/node_modules/@types/node/http2.d.ts +2580 -0
- package/node_modules/@types/node/https.d.ts +549 -0
- package/node_modules/@types/node/index.d.ts +92 -0
- package/node_modules/@types/node/inspector.generated.d.ts +2775 -0
- package/node_modules/@types/node/module.d.ts +503 -0
- package/node_modules/@types/node/net.d.ts +924 -0
- package/node_modules/@types/node/os.d.ts +480 -0
- package/node_modules/@types/node/package.json +145 -0
- package/node_modules/@types/node/path.d.ts +191 -0
- package/node_modules/@types/node/perf_hooks.d.ts +860 -0
- package/node_modules/@types/node/process.d.ts +1632 -0
- package/node_modules/@types/node/punycode.d.ts +117 -0
- package/node_modules/@types/node/querystring.d.ts +140 -0
- package/node_modules/@types/node/readline/promises.d.ts +154 -0
- package/node_modules/@types/node/readline.d.ts +715 -0
- package/node_modules/@types/node/repl.d.ts +430 -0
- package/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/node_modules/@types/node/stream/web.d.ts +527 -0
- package/node_modules/@types/node/stream.d.ts +1680 -0
- package/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/node_modules/@types/node/test.d.ts +1208 -0
- package/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/node_modules/@types/node/timers.d.ts +286 -0
- package/node_modules/@types/node/tls.d.ts +1204 -0
- package/node_modules/@types/node/trace_events.d.ts +171 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +455 -0
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +92 -0
- package/node_modules/@types/node/tty.d.ts +206 -0
- package/node_modules/@types/node/url.d.ts +957 -0
- package/node_modules/@types/node/util.d.ts +2083 -0
- package/node_modules/@types/node/v8.d.ts +753 -0
- package/node_modules/@types/node/vm.d.ts +704 -0
- package/node_modules/@types/node/wasi.d.ts +160 -0
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/node_modules/@types/node/web-globals/events.d.ts +81 -0
- package/node_modules/@types/node/web-globals/fetch.d.ts +38 -0
- package/node_modules/@types/node/worker_threads.d.ts +698 -0
- package/node_modules/@types/node/zlib.d.ts +517 -0
- package/node_modules/@types/opossum/LICENSE +21 -0
- package/node_modules/@types/opossum/README.md +16 -0
- package/node_modules/@types/opossum/index.d.ts +251 -0
- package/node_modules/@types/opossum/package.json +46 -0
- package/node_modules/@types/sshpk/README.md +16 -0
- package/node_modules/@types/sshpk/index.d.ts +359 -0
- package/node_modules/@types/sshpk/package.json +24 -0
- package/node_modules/asn1/Jenkinsfile +65 -0
- package/node_modules/asn1/LICENSE +19 -0
- package/node_modules/asn1/README.md +50 -0
- package/node_modules/asn1/lib/ber/errors.js +13 -0
- package/node_modules/asn1/lib/ber/index.js +27 -0
- package/node_modules/asn1/lib/ber/reader.js +262 -0
- package/node_modules/asn1/lib/ber/types.js +36 -0
- package/node_modules/asn1/lib/ber/writer.js +317 -0
- package/node_modules/asn1/lib/index.js +20 -0
- package/node_modules/asn1/package.json +31 -0
- package/node_modules/assert-plus/AUTHORS +6 -0
- package/node_modules/assert-plus/CHANGES.md +14 -0
- package/node_modules/assert-plus/README.md +162 -0
- package/node_modules/assert-plus/assert.js +211 -0
- package/node_modules/assert-plus/package.json +23 -0
- package/node_modules/bcrypt-pbkdf/CONTRIBUTING.md +13 -0
- package/node_modules/bcrypt-pbkdf/LICENSE +66 -0
- package/node_modules/bcrypt-pbkdf/README.md +45 -0
- package/node_modules/bcrypt-pbkdf/index.js +556 -0
- package/node_modules/bcrypt-pbkdf/package.json +15 -0
- package/node_modules/buffer-equal-constant-time/.npmignore +2 -0
- package/node_modules/buffer-equal-constant-time/.travis.yml +4 -0
- package/node_modules/buffer-equal-constant-time/LICENSE.txt +12 -0
- package/node_modules/buffer-equal-constant-time/README.md +50 -0
- package/node_modules/buffer-equal-constant-time/index.js +41 -0
- package/node_modules/buffer-equal-constant-time/package.json +21 -0
- package/node_modules/buffer-equal-constant-time/test.js +42 -0
- package/node_modules/core-util-is/LICENSE +19 -0
- package/node_modules/core-util-is/README.md +3 -0
- package/node_modules/core-util-is/float.patch +604 -0
- package/node_modules/core-util-is/lib/util.js +107 -0
- package/node_modules/core-util-is/package.json +32 -0
- package/node_modules/core-util-is/test.js +68 -0
- package/node_modules/dashdash/CHANGES.md +364 -0
- package/node_modules/dashdash/LICENSE.txt +24 -0
- package/node_modules/dashdash/README.md +574 -0
- package/node_modules/dashdash/etc/dashdash.bash_completion.in +389 -0
- package/node_modules/dashdash/lib/dashdash.js +1055 -0
- package/node_modules/dashdash/package.json +26 -0
- package/node_modules/ecc-jsbn/LICENSE +21 -0
- package/node_modules/ecc-jsbn/README.md +8 -0
- package/node_modules/ecc-jsbn/index.js +58 -0
- package/node_modules/ecc-jsbn/lib/LICENSE-jsbn +40 -0
- package/node_modules/ecc-jsbn/lib/ec.js +561 -0
- package/node_modules/ecc-jsbn/lib/sec.js +170 -0
- package/node_modules/ecc-jsbn/package.json +40 -0
- package/node_modules/ecc-jsbn/test.js +14 -0
- package/node_modules/ecdsa-sig-formatter/CODEOWNERS +1 -0
- package/node_modules/ecdsa-sig-formatter/LICENSE +201 -0
- package/node_modules/ecdsa-sig-formatter/README.md +65 -0
- package/node_modules/ecdsa-sig-formatter/package.json +46 -0
- package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.d.ts +17 -0
- package/node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js +187 -0
- package/node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js +23 -0
- package/node_modules/es6-promise/CHANGELOG.md +151 -0
- package/node_modules/es6-promise/LICENSE +19 -0
- package/node_modules/es6-promise/README.md +97 -0
- package/node_modules/es6-promise/auto.js +4 -0
- package/node_modules/es6-promise/dist/es6-promise.auto.js +1185 -0
- package/node_modules/es6-promise/dist/es6-promise.auto.map +1 -0
- package/node_modules/es6-promise/dist/es6-promise.auto.min.js +1 -0
- package/node_modules/es6-promise/dist/es6-promise.auto.min.map +1 -0
- package/node_modules/es6-promise/dist/es6-promise.js +1183 -0
- package/node_modules/es6-promise/dist/es6-promise.map +1 -0
- package/node_modules/es6-promise/dist/es6-promise.min.js +1 -0
- package/node_modules/es6-promise/dist/es6-promise.min.map +1 -0
- package/node_modules/es6-promise/es6-promise.d.ts +81 -0
- package/node_modules/es6-promise/lib/es6-promise/-internal.js +266 -0
- package/node_modules/es6-promise/lib/es6-promise/asap.js +119 -0
- package/node_modules/es6-promise/lib/es6-promise/enumerator.js +113 -0
- package/node_modules/es6-promise/lib/es6-promise/polyfill.js +35 -0
- package/node_modules/es6-promise/lib/es6-promise/promise/all.js +52 -0
- package/node_modules/es6-promise/lib/es6-promise/promise/race.js +84 -0
- package/node_modules/es6-promise/lib/es6-promise/promise/reject.js +46 -0
- package/node_modules/es6-promise/lib/es6-promise/promise/resolve.js +48 -0
- package/node_modules/es6-promise/lib/es6-promise/promise.js +431 -0
- package/node_modules/es6-promise/lib/es6-promise/then.js +32 -0
- package/node_modules/es6-promise/lib/es6-promise/utils.js +21 -0
- package/node_modules/es6-promise/lib/es6-promise.auto.js +3 -0
- package/node_modules/es6-promise/lib/es6-promise.js +7 -0
- package/node_modules/es6-promise/package.json +78 -0
- package/node_modules/extsprintf/.gitmodules +0 -0
- package/node_modules/extsprintf/.npmignore +2 -0
- package/node_modules/extsprintf/LICENSE +19 -0
- package/node_modules/extsprintf/Makefile +24 -0
- package/node_modules/extsprintf/Makefile.targ +285 -0
- package/node_modules/extsprintf/README.md +46 -0
- package/node_modules/extsprintf/jsl.node.conf +137 -0
- package/node_modules/extsprintf/lib/extsprintf.js +183 -0
- package/node_modules/extsprintf/package.json +14 -0
- package/node_modules/getpass/.npmignore +8 -0
- package/node_modules/getpass/.travis.yml +9 -0
- package/node_modules/getpass/LICENSE +18 -0
- package/node_modules/getpass/README.md +32 -0
- package/node_modules/getpass/lib/index.js +123 -0
- package/node_modules/getpass/package.json +18 -0
- package/node_modules/http-signature/CHANGES.md +67 -0
- package/node_modules/http-signature/LICENSE +18 -0
- package/node_modules/http-signature/README.md +79 -0
- package/node_modules/http-signature/lib/index.js +29 -0
- package/node_modules/http-signature/lib/parser.js +319 -0
- package/node_modules/http-signature/lib/signer.js +405 -0
- package/node_modules/http-signature/lib/utils.js +118 -0
- package/node_modules/http-signature/lib/verify.js +88 -0
- package/node_modules/http-signature/package.json +41 -0
- package/node_modules/isomorphic-fetch/.editorconfig +12 -0
- package/node_modules/isomorphic-fetch/.jshintrc +5 -0
- package/node_modules/isomorphic-fetch/.travis.yml +4 -0
- package/node_modules/isomorphic-fetch/LICENSE +21 -0
- package/node_modules/isomorphic-fetch/README.md +57 -0
- package/node_modules/isomorphic-fetch/bower.json +7 -0
- package/node_modules/isomorphic-fetch/fetch-bower.js +1 -0
- package/node_modules/isomorphic-fetch/fetch-npm-browserify.js +6 -0
- package/node_modules/isomorphic-fetch/fetch-npm-node.js +16 -0
- package/node_modules/isomorphic-fetch/package.json +32 -0
- package/node_modules/isomorphic-fetch/test/api.test.js +50 -0
- package/node_modules/jsbn/.npmignore +2 -0
- package/node_modules/jsbn/LICENSE +40 -0
- package/node_modules/jsbn/README.md +175 -0
- package/node_modules/jsbn/example.html +12 -0
- package/node_modules/jsbn/example.js +3 -0
- package/node_modules/jsbn/index.js +1357 -0
- package/node_modules/jsbn/package.json +21 -0
- package/node_modules/json-schema/LICENSE +195 -0
- package/node_modules/json-schema/README.md +3 -0
- package/node_modules/json-schema/lib/links.js +65 -0
- package/node_modules/json-schema/lib/validate.js +271 -0
- package/node_modules/json-schema/package.json +24 -0
- package/node_modules/jsprim/CHANGES.md +53 -0
- package/node_modules/jsprim/CONTRIBUTING.md +19 -0
- package/node_modules/jsprim/LICENSE +19 -0
- package/node_modules/jsprim/README.md +287 -0
- package/node_modules/jsprim/lib/jsprim.js +735 -0
- package/node_modules/jsprim/package.json +20 -0
- package/node_modules/lodash/LICENSE +47 -0
- package/node_modules/lodash/README.md +39 -0
- package/node_modules/lodash/_DataView.js +7 -0
- package/node_modules/lodash/_Hash.js +32 -0
- package/node_modules/lodash/_LazyWrapper.js +28 -0
- package/node_modules/lodash/_ListCache.js +32 -0
- package/node_modules/lodash/_LodashWrapper.js +22 -0
- package/node_modules/lodash/_Map.js +7 -0
- package/node_modules/lodash/_MapCache.js +32 -0
- package/node_modules/lodash/_Promise.js +7 -0
- package/node_modules/lodash/_Set.js +7 -0
- package/node_modules/lodash/_SetCache.js +27 -0
- package/node_modules/lodash/_Stack.js +27 -0
- package/node_modules/lodash/_Symbol.js +6 -0
- package/node_modules/lodash/_Uint8Array.js +6 -0
- package/node_modules/lodash/_WeakMap.js +7 -0
- package/node_modules/lodash/_apply.js +21 -0
- package/node_modules/lodash/_arrayAggregator.js +22 -0
- package/node_modules/lodash/_arrayEach.js +22 -0
- package/node_modules/lodash/_arrayEachRight.js +21 -0
- package/node_modules/lodash/_arrayEvery.js +23 -0
- package/node_modules/lodash/_arrayFilter.js +25 -0
- package/node_modules/lodash/_arrayIncludes.js +17 -0
- package/node_modules/lodash/_arrayIncludesWith.js +22 -0
- package/node_modules/lodash/_arrayLikeKeys.js +49 -0
- package/node_modules/lodash/_arrayMap.js +21 -0
- package/node_modules/lodash/_arrayPush.js +20 -0
- package/node_modules/lodash/_arrayReduce.js +26 -0
- package/node_modules/lodash/_arrayReduceRight.js +24 -0
- package/node_modules/lodash/_arraySample.js +15 -0
- package/node_modules/lodash/_arraySampleSize.js +17 -0
- package/node_modules/lodash/_arrayShuffle.js +15 -0
- package/node_modules/lodash/_arraySome.js +23 -0
- package/node_modules/lodash/_asciiSize.js +12 -0
- package/node_modules/lodash/_asciiToArray.js +12 -0
- package/node_modules/lodash/_asciiWords.js +15 -0
- package/node_modules/lodash/_assignMergeValue.js +20 -0
- package/node_modules/lodash/_assignValue.js +28 -0
- package/node_modules/lodash/_assocIndexOf.js +21 -0
- package/node_modules/lodash/_baseAggregator.js +21 -0
- package/node_modules/lodash/_baseAssign.js +17 -0
- package/node_modules/lodash/_baseAssignIn.js +17 -0
- package/node_modules/lodash/_baseAssignValue.js +25 -0
- package/node_modules/lodash/_baseAt.js +23 -0
- package/node_modules/lodash/_baseClamp.js +22 -0
- package/node_modules/lodash/_baseClone.js +166 -0
- package/node_modules/lodash/_baseConforms.js +18 -0
- package/node_modules/lodash/_baseConformsTo.js +27 -0
- package/node_modules/lodash/_baseCreate.js +30 -0
- package/node_modules/lodash/_baseDelay.js +21 -0
- package/node_modules/lodash/_baseDifference.js +67 -0
- package/node_modules/lodash/_baseEach.js +14 -0
- package/node_modules/lodash/_baseEachRight.js +14 -0
- package/node_modules/lodash/_baseEvery.js +21 -0
- package/node_modules/lodash/_baseExtremum.js +32 -0
- package/node_modules/lodash/_baseFill.js +32 -0
- package/node_modules/lodash/_baseFilter.js +21 -0
- package/node_modules/lodash/_baseFindIndex.js +24 -0
- package/node_modules/lodash/_baseFindKey.js +23 -0
- package/node_modules/lodash/_baseFlatten.js +38 -0
- package/node_modules/lodash/_baseFor.js +16 -0
- package/node_modules/lodash/_baseForOwn.js +16 -0
- package/node_modules/lodash/_baseForOwnRight.js +16 -0
- package/node_modules/lodash/_baseForRight.js +15 -0
- package/node_modules/lodash/_baseFunctions.js +19 -0
- package/node_modules/lodash/_baseGet.js +24 -0
- package/node_modules/lodash/_baseGetAllKeys.js +20 -0
- package/node_modules/lodash/_baseGetTag.js +28 -0
- package/node_modules/lodash/_baseGt.js +14 -0
- package/node_modules/lodash/_baseHas.js +19 -0
- package/node_modules/lodash/_baseHasIn.js +13 -0
- package/node_modules/lodash/_baseInRange.js +18 -0
- package/node_modules/lodash/_baseIndexOf.js +20 -0
- package/node_modules/lodash/_baseIndexOfWith.js +23 -0
- package/node_modules/lodash/_baseIntersection.js +74 -0
- package/node_modules/lodash/_baseInverter.js +21 -0
- package/node_modules/lodash/_baseInvoke.js +24 -0
- package/node_modules/lodash/_baseIsArguments.js +18 -0
- package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
- package/node_modules/lodash/_baseIsDate.js +18 -0
- package/node_modules/lodash/_baseIsEqual.js +28 -0
- package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
- package/node_modules/lodash/_baseIsMap.js +18 -0
- package/node_modules/lodash/_baseIsMatch.js +62 -0
- package/node_modules/lodash/_baseIsNaN.js +12 -0
- package/node_modules/lodash/_baseIsNative.js +47 -0
- package/node_modules/lodash/_baseIsRegExp.js +18 -0
- package/node_modules/lodash/_baseIsSet.js +18 -0
- package/node_modules/lodash/_baseIsTypedArray.js +60 -0
- package/node_modules/lodash/_baseIteratee.js +31 -0
- package/node_modules/lodash/_baseKeys.js +30 -0
- package/node_modules/lodash/_baseKeysIn.js +33 -0
- package/node_modules/lodash/_baseLodash.js +10 -0
- package/node_modules/lodash/_baseLt.js +14 -0
- package/node_modules/lodash/_baseMap.js +22 -0
- package/node_modules/lodash/_baseMatches.js +22 -0
- package/node_modules/lodash/_baseMatchesProperty.js +33 -0
- package/node_modules/lodash/_baseMean.js +20 -0
- package/node_modules/lodash/_baseMerge.js +42 -0
- package/node_modules/lodash/_baseMergeDeep.js +94 -0
- package/node_modules/lodash/_baseNth.js +20 -0
- package/node_modules/lodash/_baseOrderBy.js +49 -0
- package/node_modules/lodash/_basePick.js +19 -0
- package/node_modules/lodash/_basePickBy.js +30 -0
- package/node_modules/lodash/_baseProperty.js +14 -0
- package/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/node_modules/lodash/_basePropertyOf.js +14 -0
- package/node_modules/lodash/_basePullAll.js +51 -0
- package/node_modules/lodash/_basePullAt.js +37 -0
- package/node_modules/lodash/_baseRandom.js +18 -0
- package/node_modules/lodash/_baseRange.js +28 -0
- package/node_modules/lodash/_baseReduce.js +23 -0
- package/node_modules/lodash/_baseRepeat.js +35 -0
- package/node_modules/lodash/_baseRest.js +17 -0
- package/node_modules/lodash/_baseSample.js +15 -0
- package/node_modules/lodash/_baseSampleSize.js +18 -0
- package/node_modules/lodash/_baseSet.js +51 -0
- package/node_modules/lodash/_baseSetData.js +17 -0
- package/node_modules/lodash/_baseSetToString.js +22 -0
- package/node_modules/lodash/_baseShuffle.js +15 -0
- package/node_modules/lodash/_baseSlice.js +31 -0
- package/node_modules/lodash/_baseSome.js +22 -0
- package/node_modules/lodash/_baseSortBy.js +21 -0
- package/node_modules/lodash/_baseSortedIndex.js +42 -0
- package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
- package/node_modules/lodash/_baseSortedUniq.js +30 -0
- package/node_modules/lodash/_baseSum.js +24 -0
- package/node_modules/lodash/_baseTimes.js +20 -0
- package/node_modules/lodash/_baseToNumber.js +24 -0
- package/node_modules/lodash/_baseToPairs.js +18 -0
- package/node_modules/lodash/_baseToString.js +37 -0
- package/node_modules/lodash/_baseTrim.js +19 -0
- package/node_modules/lodash/_baseUnary.js +14 -0
- package/node_modules/lodash/_baseUniq.js +72 -0
- package/node_modules/lodash/_baseUnset.js +65 -0
- package/node_modules/lodash/_baseUpdate.js +18 -0
- package/node_modules/lodash/_baseValues.js +19 -0
- package/node_modules/lodash/_baseWhile.js +26 -0
- package/node_modules/lodash/_baseWrapperValue.js +25 -0
- package/node_modules/lodash/_baseXor.js +36 -0
- package/node_modules/lodash/_baseZipObject.js +23 -0
- package/node_modules/lodash/_cacheHas.js +13 -0
- package/node_modules/lodash/_castArrayLikeObject.js +14 -0
- package/node_modules/lodash/_castFunction.js +14 -0
- package/node_modules/lodash/_castPath.js +21 -0
- package/node_modules/lodash/_castRest.js +14 -0
- package/node_modules/lodash/_castSlice.js +18 -0
- package/node_modules/lodash/_charsEndIndex.js +19 -0
- package/node_modules/lodash/_charsStartIndex.js +20 -0
- package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/node_modules/lodash/_cloneBuffer.js +35 -0
- package/node_modules/lodash/_cloneDataView.js +16 -0
- package/node_modules/lodash/_cloneRegExp.js +17 -0
- package/node_modules/lodash/_cloneSymbol.js +18 -0
- package/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/node_modules/lodash/_compareAscending.js +41 -0
- package/node_modules/lodash/_compareMultiple.js +44 -0
- package/node_modules/lodash/_composeArgs.js +39 -0
- package/node_modules/lodash/_composeArgsRight.js +41 -0
- package/node_modules/lodash/_copyArray.js +20 -0
- package/node_modules/lodash/_copyObject.js +40 -0
- package/node_modules/lodash/_copySymbols.js +16 -0
- package/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/node_modules/lodash/_coreJsData.js +6 -0
- package/node_modules/lodash/_countHolders.js +21 -0
- package/node_modules/lodash/_createAggregator.js +23 -0
- package/node_modules/lodash/_createAssigner.js +37 -0
- package/node_modules/lodash/_createBaseEach.js +32 -0
- package/node_modules/lodash/_createBaseFor.js +25 -0
- package/node_modules/lodash/_createBind.js +28 -0
- package/node_modules/lodash/_createCaseFirst.js +33 -0
- package/node_modules/lodash/_createCompounder.js +24 -0
- package/node_modules/lodash/_createCtor.js +37 -0
- package/node_modules/lodash/_createCurry.js +46 -0
- package/node_modules/lodash/_createFind.js +25 -0
- package/node_modules/lodash/_createFlow.js +78 -0
- package/node_modules/lodash/_createHybrid.js +92 -0
- package/node_modules/lodash/_createInverter.js +17 -0
- package/node_modules/lodash/_createMathOperation.js +38 -0
- package/node_modules/lodash/_createOver.js +27 -0
- package/node_modules/lodash/_createPadding.js +33 -0
- package/node_modules/lodash/_createPartial.js +43 -0
- package/node_modules/lodash/_createRange.js +30 -0
- package/node_modules/lodash/_createRecurry.js +56 -0
- package/node_modules/lodash/_createRelationalOperation.js +20 -0
- package/node_modules/lodash/_createRound.js +35 -0
- package/node_modules/lodash/_createSet.js +19 -0
- package/node_modules/lodash/_createToPairs.js +30 -0
- package/node_modules/lodash/_createWrap.js +106 -0
- package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
- package/node_modules/lodash/_customDefaultsMerge.js +28 -0
- package/node_modules/lodash/_customOmitClone.js +16 -0
- package/node_modules/lodash/_deburrLetter.js +71 -0
- package/node_modules/lodash/_defineProperty.js +11 -0
- package/node_modules/lodash/_equalArrays.js +84 -0
- package/node_modules/lodash/_equalByTag.js +112 -0
- package/node_modules/lodash/_equalObjects.js +90 -0
- package/node_modules/lodash/_escapeHtmlChar.js +21 -0
- package/node_modules/lodash/_escapeStringChar.js +22 -0
- package/node_modules/lodash/_flatRest.js +16 -0
- package/node_modules/lodash/_freeGlobal.js +4 -0
- package/node_modules/lodash/_getAllKeys.js +16 -0
- package/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/node_modules/lodash/_getData.js +15 -0
- package/node_modules/lodash/_getFuncName.js +31 -0
- package/node_modules/lodash/_getHolder.js +13 -0
- package/node_modules/lodash/_getMapData.js +18 -0
- package/node_modules/lodash/_getMatchData.js +24 -0
- package/node_modules/lodash/_getNative.js +17 -0
- package/node_modules/lodash/_getPrototype.js +6 -0
- package/node_modules/lodash/_getRawTag.js +46 -0
- package/node_modules/lodash/_getSymbols.js +30 -0
- package/node_modules/lodash/_getSymbolsIn.js +25 -0
- package/node_modules/lodash/_getTag.js +58 -0
- package/node_modules/lodash/_getValue.js +13 -0
- package/node_modules/lodash/_getView.js +33 -0
- package/node_modules/lodash/_getWrapDetails.js +17 -0
- package/node_modules/lodash/_hasPath.js +39 -0
- package/node_modules/lodash/_hasUnicode.js +26 -0
- package/node_modules/lodash/_hasUnicodeWord.js +15 -0
- package/node_modules/lodash/_hashClear.js +15 -0
- package/node_modules/lodash/_hashDelete.js +17 -0
- package/node_modules/lodash/_hashGet.js +30 -0
- package/node_modules/lodash/_hashHas.js +23 -0
- package/node_modules/lodash/_hashSet.js +23 -0
- package/node_modules/lodash/_initCloneArray.js +26 -0
- package/node_modules/lodash/_initCloneByTag.js +77 -0
- package/node_modules/lodash/_initCloneObject.js +18 -0
- package/node_modules/lodash/_insertWrapDetails.js +23 -0
- package/node_modules/lodash/_isFlattenable.js +20 -0
- package/node_modules/lodash/_isIndex.js +25 -0
- package/node_modules/lodash/_isIterateeCall.js +30 -0
- package/node_modules/lodash/_isKey.js +29 -0
- package/node_modules/lodash/_isKeyable.js +15 -0
- package/node_modules/lodash/_isLaziable.js +28 -0
- package/node_modules/lodash/_isMaskable.js +14 -0
- package/node_modules/lodash/_isMasked.js +20 -0
- package/node_modules/lodash/_isPrototype.js +18 -0
- package/node_modules/lodash/_isStrictComparable.js +15 -0
- package/node_modules/lodash/_iteratorToArray.js +18 -0
- package/node_modules/lodash/_lazyClone.js +23 -0
- package/node_modules/lodash/_lazyReverse.js +23 -0
- package/node_modules/lodash/_lazyValue.js +69 -0
- package/node_modules/lodash/_listCacheClear.js +13 -0
- package/node_modules/lodash/_listCacheDelete.js +35 -0
- package/node_modules/lodash/_listCacheGet.js +19 -0
- package/node_modules/lodash/_listCacheHas.js +16 -0
- package/node_modules/lodash/_listCacheSet.js +26 -0
- package/node_modules/lodash/_mapCacheClear.js +21 -0
- package/node_modules/lodash/_mapCacheDelete.js +18 -0
- package/node_modules/lodash/_mapCacheGet.js +16 -0
- package/node_modules/lodash/_mapCacheHas.js +16 -0
- package/node_modules/lodash/_mapCacheSet.js +22 -0
- package/node_modules/lodash/_mapToArray.js +18 -0
- package/node_modules/lodash/_matchesStrictComparable.js +20 -0
- package/node_modules/lodash/_memoizeCapped.js +26 -0
- package/node_modules/lodash/_mergeData.js +90 -0
- package/node_modules/lodash/_metaMap.js +6 -0
- package/node_modules/lodash/_nativeCreate.js +6 -0
- package/node_modules/lodash/_nativeKeys.js +6 -0
- package/node_modules/lodash/_nativeKeysIn.js +20 -0
- package/node_modules/lodash/_nodeUtil.js +30 -0
- package/node_modules/lodash/_objectToString.js +22 -0
- package/node_modules/lodash/_overArg.js +15 -0
- package/node_modules/lodash/_overRest.js +36 -0
- package/node_modules/lodash/_parent.js +16 -0
- package/node_modules/lodash/_reEscape.js +4 -0
- package/node_modules/lodash/_reEvaluate.js +4 -0
- package/node_modules/lodash/_reInterpolate.js +4 -0
- package/node_modules/lodash/_realNames.js +4 -0
- package/node_modules/lodash/_reorder.js +29 -0
- package/node_modules/lodash/_replaceHolders.js +29 -0
- package/node_modules/lodash/_root.js +9 -0
- package/node_modules/lodash/_safeGet.js +21 -0
- package/node_modules/lodash/_setCacheAdd.js +19 -0
- package/node_modules/lodash/_setCacheHas.js +14 -0
- package/node_modules/lodash/_setData.js +20 -0
- package/node_modules/lodash/_setToArray.js +18 -0
- package/node_modules/lodash/_setToPairs.js +18 -0
- package/node_modules/lodash/_setToString.js +14 -0
- package/node_modules/lodash/_setWrapToString.js +21 -0
- package/node_modules/lodash/_shortOut.js +37 -0
- package/node_modules/lodash/_shuffleSelf.js +28 -0
- package/node_modules/lodash/_stackClear.js +15 -0
- package/node_modules/lodash/_stackDelete.js +18 -0
- package/node_modules/lodash/_stackGet.js +14 -0
- package/node_modules/lodash/_stackHas.js +14 -0
- package/node_modules/lodash/_stackSet.js +34 -0
- package/node_modules/lodash/_strictIndexOf.js +23 -0
- package/node_modules/lodash/_strictLastIndexOf.js +21 -0
- package/node_modules/lodash/_stringSize.js +18 -0
- package/node_modules/lodash/_stringToArray.js +18 -0
- package/node_modules/lodash/_stringToPath.js +27 -0
- package/node_modules/lodash/_toKey.js +21 -0
- package/node_modules/lodash/_toSource.js +26 -0
- package/node_modules/lodash/_trimmedEndIndex.js +19 -0
- package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
- package/node_modules/lodash/_unicodeSize.js +44 -0
- package/node_modules/lodash/_unicodeToArray.js +40 -0
- package/node_modules/lodash/_unicodeWords.js +69 -0
- package/node_modules/lodash/_updateWrapDetails.js +46 -0
- package/node_modules/lodash/_wrapperClone.js +23 -0
- package/node_modules/lodash/add.js +22 -0
- package/node_modules/lodash/after.js +42 -0
- package/node_modules/lodash/array.js +67 -0
- package/node_modules/lodash/ary.js +29 -0
- package/node_modules/lodash/assign.js +58 -0
- package/node_modules/lodash/assignIn.js +40 -0
- package/node_modules/lodash/assignInWith.js +38 -0
- package/node_modules/lodash/assignWith.js +37 -0
- package/node_modules/lodash/at.js +23 -0
- package/node_modules/lodash/attempt.js +35 -0
- package/node_modules/lodash/before.js +40 -0
- package/node_modules/lodash/bind.js +57 -0
- package/node_modules/lodash/bindAll.js +41 -0
- package/node_modules/lodash/bindKey.js +68 -0
- package/node_modules/lodash/camelCase.js +29 -0
- package/node_modules/lodash/capitalize.js +23 -0
- package/node_modules/lodash/castArray.js +44 -0
- package/node_modules/lodash/ceil.js +26 -0
- package/node_modules/lodash/chain.js +38 -0
- package/node_modules/lodash/chunk.js +50 -0
- package/node_modules/lodash/clamp.js +39 -0
- package/node_modules/lodash/clone.js +36 -0
- package/node_modules/lodash/cloneDeep.js +29 -0
- package/node_modules/lodash/cloneDeepWith.js +40 -0
- package/node_modules/lodash/cloneWith.js +42 -0
- package/node_modules/lodash/collection.js +30 -0
- package/node_modules/lodash/commit.js +33 -0
- package/node_modules/lodash/compact.js +31 -0
- package/node_modules/lodash/concat.js +43 -0
- package/node_modules/lodash/cond.js +60 -0
- package/node_modules/lodash/conforms.js +35 -0
- package/node_modules/lodash/conformsTo.js +32 -0
- package/node_modules/lodash/constant.js +26 -0
- package/node_modules/lodash/core.js +3877 -0
- package/node_modules/lodash/core.min.js +29 -0
- package/node_modules/lodash/countBy.js +40 -0
- package/node_modules/lodash/create.js +43 -0
- package/node_modules/lodash/curry.js +57 -0
- package/node_modules/lodash/curryRight.js +54 -0
- package/node_modules/lodash/date.js +3 -0
- package/node_modules/lodash/debounce.js +191 -0
- package/node_modules/lodash/deburr.js +45 -0
- package/node_modules/lodash/defaultTo.js +25 -0
- package/node_modules/lodash/defaults.js +64 -0
- package/node_modules/lodash/defaultsDeep.js +30 -0
- package/node_modules/lodash/defer.js +26 -0
- package/node_modules/lodash/delay.js +28 -0
- package/node_modules/lodash/difference.js +33 -0
- package/node_modules/lodash/differenceBy.js +44 -0
- package/node_modules/lodash/differenceWith.js +40 -0
- package/node_modules/lodash/divide.js +22 -0
- package/node_modules/lodash/drop.js +38 -0
- package/node_modules/lodash/dropRight.js +39 -0
- package/node_modules/lodash/dropRightWhile.js +45 -0
- package/node_modules/lodash/dropWhile.js +45 -0
- package/node_modules/lodash/each.js +1 -0
- package/node_modules/lodash/eachRight.js +1 -0
- package/node_modules/lodash/endsWith.js +43 -0
- package/node_modules/lodash/entries.js +1 -0
- package/node_modules/lodash/entriesIn.js +1 -0
- package/node_modules/lodash/eq.js +37 -0
- package/node_modules/lodash/escape.js +43 -0
- package/node_modules/lodash/escapeRegExp.js +32 -0
- package/node_modules/lodash/every.js +56 -0
- package/node_modules/lodash/extend.js +1 -0
- package/node_modules/lodash/extendWith.js +1 -0
- package/node_modules/lodash/fill.js +45 -0
- package/node_modules/lodash/filter.js +52 -0
- package/node_modules/lodash/find.js +42 -0
- package/node_modules/lodash/findIndex.js +55 -0
- package/node_modules/lodash/findKey.js +44 -0
- package/node_modules/lodash/findLast.js +25 -0
- package/node_modules/lodash/findLastIndex.js +59 -0
- package/node_modules/lodash/findLastKey.js +44 -0
- package/node_modules/lodash/first.js +1 -0
- package/node_modules/lodash/flatMap.js +29 -0
- package/node_modules/lodash/flatMapDeep.js +31 -0
- package/node_modules/lodash/flatMapDepth.js +31 -0
- package/node_modules/lodash/flatten.js +22 -0
- package/node_modules/lodash/flattenDeep.js +25 -0
- package/node_modules/lodash/flattenDepth.js +33 -0
- package/node_modules/lodash/flip.js +28 -0
- package/node_modules/lodash/floor.js +26 -0
- package/node_modules/lodash/flow.js +27 -0
- package/node_modules/lodash/flowRight.js +26 -0
- package/node_modules/lodash/forEach.js +41 -0
- package/node_modules/lodash/forEachRight.js +31 -0
- package/node_modules/lodash/forIn.js +39 -0
- package/node_modules/lodash/forInRight.js +37 -0
- package/node_modules/lodash/forOwn.js +36 -0
- package/node_modules/lodash/forOwnRight.js +34 -0
- package/node_modules/lodash/fp/F.js +1 -0
- package/node_modules/lodash/fp/T.js +1 -0
- package/node_modules/lodash/fp/__.js +1 -0
- package/node_modules/lodash/fp/_baseConvert.js +569 -0
- package/node_modules/lodash/fp/_convertBrowser.js +18 -0
- package/node_modules/lodash/fp/_falseOptions.js +7 -0
- package/node_modules/lodash/fp/_mapping.js +358 -0
- package/node_modules/lodash/fp/_util.js +16 -0
- package/node_modules/lodash/fp/add.js +5 -0
- package/node_modules/lodash/fp/after.js +5 -0
- package/node_modules/lodash/fp/all.js +1 -0
- package/node_modules/lodash/fp/allPass.js +1 -0
- package/node_modules/lodash/fp/always.js +1 -0
- package/node_modules/lodash/fp/any.js +1 -0
- package/node_modules/lodash/fp/anyPass.js +1 -0
- package/node_modules/lodash/fp/apply.js +1 -0
- package/node_modules/lodash/fp/array.js +2 -0
- package/node_modules/lodash/fp/ary.js +5 -0
- package/node_modules/lodash/fp/assign.js +5 -0
- package/node_modules/lodash/fp/assignAll.js +5 -0
- package/node_modules/lodash/fp/assignAllWith.js +5 -0
- package/node_modules/lodash/fp/assignIn.js +5 -0
- package/node_modules/lodash/fp/assignInAll.js +5 -0
- package/node_modules/lodash/fp/assignInAllWith.js +5 -0
- package/node_modules/lodash/fp/assignInWith.js +5 -0
- package/node_modules/lodash/fp/assignWith.js +5 -0
- package/node_modules/lodash/fp/assoc.js +1 -0
- package/node_modules/lodash/fp/assocPath.js +1 -0
- package/node_modules/lodash/fp/at.js +5 -0
- package/node_modules/lodash/fp/attempt.js +5 -0
- package/node_modules/lodash/fp/before.js +5 -0
- package/node_modules/lodash/fp/bind.js +5 -0
- package/node_modules/lodash/fp/bindAll.js +5 -0
- package/node_modules/lodash/fp/bindKey.js +5 -0
- package/node_modules/lodash/fp/camelCase.js +5 -0
- package/node_modules/lodash/fp/capitalize.js +5 -0
- package/node_modules/lodash/fp/castArray.js +5 -0
- package/node_modules/lodash/fp/ceil.js +5 -0
- package/node_modules/lodash/fp/chain.js +5 -0
- package/node_modules/lodash/fp/chunk.js +5 -0
- package/node_modules/lodash/fp/clamp.js +5 -0
- package/node_modules/lodash/fp/clone.js +5 -0
- package/node_modules/lodash/fp/cloneDeep.js +5 -0
- package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- package/node_modules/lodash/fp/cloneWith.js +5 -0
- package/node_modules/lodash/fp/collection.js +2 -0
- package/node_modules/lodash/fp/commit.js +5 -0
- package/node_modules/lodash/fp/compact.js +5 -0
- package/node_modules/lodash/fp/complement.js +1 -0
- package/node_modules/lodash/fp/compose.js +1 -0
- package/node_modules/lodash/fp/concat.js +5 -0
- package/node_modules/lodash/fp/cond.js +5 -0
- package/node_modules/lodash/fp/conforms.js +1 -0
- package/node_modules/lodash/fp/conformsTo.js +5 -0
- package/node_modules/lodash/fp/constant.js +5 -0
- package/node_modules/lodash/fp/contains.js +1 -0
- package/node_modules/lodash/fp/convert.js +18 -0
- package/node_modules/lodash/fp/countBy.js +5 -0
- package/node_modules/lodash/fp/create.js +5 -0
- package/node_modules/lodash/fp/curry.js +5 -0
- package/node_modules/lodash/fp/curryN.js +5 -0
- package/node_modules/lodash/fp/curryRight.js +5 -0
- package/node_modules/lodash/fp/curryRightN.js +5 -0
- package/node_modules/lodash/fp/date.js +2 -0
- package/node_modules/lodash/fp/debounce.js +5 -0
- package/node_modules/lodash/fp/deburr.js +5 -0
- package/node_modules/lodash/fp/defaultTo.js +5 -0
- package/node_modules/lodash/fp/defaults.js +5 -0
- package/node_modules/lodash/fp/defaultsAll.js +5 -0
- package/node_modules/lodash/fp/defaultsDeep.js +5 -0
- package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- package/node_modules/lodash/fp/defer.js +5 -0
- package/node_modules/lodash/fp/delay.js +5 -0
- package/node_modules/lodash/fp/difference.js +5 -0
- package/node_modules/lodash/fp/differenceBy.js +5 -0
- package/node_modules/lodash/fp/differenceWith.js +5 -0
- package/node_modules/lodash/fp/dissoc.js +1 -0
- package/node_modules/lodash/fp/dissocPath.js +1 -0
- package/node_modules/lodash/fp/divide.js +5 -0
- package/node_modules/lodash/fp/drop.js +5 -0
- package/node_modules/lodash/fp/dropLast.js +1 -0
- package/node_modules/lodash/fp/dropLastWhile.js +1 -0
- package/node_modules/lodash/fp/dropRight.js +5 -0
- package/node_modules/lodash/fp/dropRightWhile.js +5 -0
- package/node_modules/lodash/fp/dropWhile.js +5 -0
- package/node_modules/lodash/fp/each.js +1 -0
- package/node_modules/lodash/fp/eachRight.js +1 -0
- package/node_modules/lodash/fp/endsWith.js +5 -0
- package/node_modules/lodash/fp/entries.js +1 -0
- package/node_modules/lodash/fp/entriesIn.js +1 -0
- package/node_modules/lodash/fp/eq.js +5 -0
- package/node_modules/lodash/fp/equals.js +1 -0
- package/node_modules/lodash/fp/escape.js +5 -0
- package/node_modules/lodash/fp/escapeRegExp.js +5 -0
- package/node_modules/lodash/fp/every.js +5 -0
- package/node_modules/lodash/fp/extend.js +1 -0
- package/node_modules/lodash/fp/extendAll.js +1 -0
- package/node_modules/lodash/fp/extendAllWith.js +1 -0
- package/node_modules/lodash/fp/extendWith.js +1 -0
- package/node_modules/lodash/fp/fill.js +5 -0
- package/node_modules/lodash/fp/filter.js +5 -0
- package/node_modules/lodash/fp/find.js +5 -0
- package/node_modules/lodash/fp/findFrom.js +5 -0
- package/node_modules/lodash/fp/findIndex.js +5 -0
- package/node_modules/lodash/fp/findIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findKey.js +5 -0
- package/node_modules/lodash/fp/findLast.js +5 -0
- package/node_modules/lodash/fp/findLastFrom.js +5 -0
- package/node_modules/lodash/fp/findLastIndex.js +5 -0
- package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findLastKey.js +5 -0
- package/node_modules/lodash/fp/first.js +1 -0
- package/node_modules/lodash/fp/flatMap.js +5 -0
- package/node_modules/lodash/fp/flatMapDeep.js +5 -0
- package/node_modules/lodash/fp/flatMapDepth.js +5 -0
- package/node_modules/lodash/fp/flatten.js +5 -0
- package/node_modules/lodash/fp/flattenDeep.js +5 -0
- package/node_modules/lodash/fp/flattenDepth.js +5 -0
- package/node_modules/lodash/fp/flip.js +5 -0
- package/node_modules/lodash/fp/floor.js +5 -0
- package/node_modules/lodash/fp/flow.js +5 -0
- package/node_modules/lodash/fp/flowRight.js +5 -0
- package/node_modules/lodash/fp/forEach.js +5 -0
- package/node_modules/lodash/fp/forEachRight.js +5 -0
- package/node_modules/lodash/fp/forIn.js +5 -0
- package/node_modules/lodash/fp/forInRight.js +5 -0
- package/node_modules/lodash/fp/forOwn.js +5 -0
- package/node_modules/lodash/fp/forOwnRight.js +5 -0
- package/node_modules/lodash/fp/fromPairs.js +5 -0
- package/node_modules/lodash/fp/function.js +2 -0
- package/node_modules/lodash/fp/functions.js +5 -0
- package/node_modules/lodash/fp/functionsIn.js +5 -0
- package/node_modules/lodash/fp/get.js +5 -0
- package/node_modules/lodash/fp/getOr.js +5 -0
- package/node_modules/lodash/fp/groupBy.js +5 -0
- package/node_modules/lodash/fp/gt.js +5 -0
- package/node_modules/lodash/fp/gte.js +5 -0
- package/node_modules/lodash/fp/has.js +5 -0
- package/node_modules/lodash/fp/hasIn.js +5 -0
- package/node_modules/lodash/fp/head.js +5 -0
- package/node_modules/lodash/fp/identical.js +1 -0
- package/node_modules/lodash/fp/identity.js +5 -0
- package/node_modules/lodash/fp/inRange.js +5 -0
- package/node_modules/lodash/fp/includes.js +5 -0
- package/node_modules/lodash/fp/includesFrom.js +5 -0
- package/node_modules/lodash/fp/indexBy.js +1 -0
- package/node_modules/lodash/fp/indexOf.js +5 -0
- package/node_modules/lodash/fp/indexOfFrom.js +5 -0
- package/node_modules/lodash/fp/init.js +1 -0
- package/node_modules/lodash/fp/initial.js +5 -0
- package/node_modules/lodash/fp/intersection.js +5 -0
- package/node_modules/lodash/fp/intersectionBy.js +5 -0
- package/node_modules/lodash/fp/intersectionWith.js +5 -0
- package/node_modules/lodash/fp/invert.js +5 -0
- package/node_modules/lodash/fp/invertBy.js +5 -0
- package/node_modules/lodash/fp/invertObj.js +1 -0
- package/node_modules/lodash/fp/invoke.js +5 -0
- package/node_modules/lodash/fp/invokeArgs.js +5 -0
- package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
- package/node_modules/lodash/fp/invokeMap.js +5 -0
- package/node_modules/lodash/fp/isArguments.js +5 -0
- package/node_modules/lodash/fp/isArray.js +5 -0
- package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
- package/node_modules/lodash/fp/isArrayLike.js +5 -0
- package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
- package/node_modules/lodash/fp/isBoolean.js +5 -0
- package/node_modules/lodash/fp/isBuffer.js +5 -0
- package/node_modules/lodash/fp/isDate.js +5 -0
- package/node_modules/lodash/fp/isElement.js +5 -0
- package/node_modules/lodash/fp/isEmpty.js +5 -0
- package/node_modules/lodash/fp/isEqual.js +5 -0
- package/node_modules/lodash/fp/isEqualWith.js +5 -0
- package/node_modules/lodash/fp/isError.js +5 -0
- package/node_modules/lodash/fp/isFinite.js +5 -0
- package/node_modules/lodash/fp/isFunction.js +5 -0
- package/node_modules/lodash/fp/isInteger.js +5 -0
- package/node_modules/lodash/fp/isLength.js +5 -0
- package/node_modules/lodash/fp/isMap.js +5 -0
- package/node_modules/lodash/fp/isMatch.js +5 -0
- package/node_modules/lodash/fp/isMatchWith.js +5 -0
- package/node_modules/lodash/fp/isNaN.js +5 -0
- package/node_modules/lodash/fp/isNative.js +5 -0
- package/node_modules/lodash/fp/isNil.js +5 -0
- package/node_modules/lodash/fp/isNull.js +5 -0
- package/node_modules/lodash/fp/isNumber.js +5 -0
- package/node_modules/lodash/fp/isObject.js +5 -0
- package/node_modules/lodash/fp/isObjectLike.js +5 -0
- package/node_modules/lodash/fp/isPlainObject.js +5 -0
- package/node_modules/lodash/fp/isRegExp.js +5 -0
- package/node_modules/lodash/fp/isSafeInteger.js +5 -0
- package/node_modules/lodash/fp/isSet.js +5 -0
- package/node_modules/lodash/fp/isString.js +5 -0
- package/node_modules/lodash/fp/isSymbol.js +5 -0
- package/node_modules/lodash/fp/isTypedArray.js +5 -0
- package/node_modules/lodash/fp/isUndefined.js +5 -0
- package/node_modules/lodash/fp/isWeakMap.js +5 -0
- package/node_modules/lodash/fp/isWeakSet.js +5 -0
- package/node_modules/lodash/fp/iteratee.js +5 -0
- package/node_modules/lodash/fp/join.js +5 -0
- package/node_modules/lodash/fp/juxt.js +1 -0
- package/node_modules/lodash/fp/kebabCase.js +5 -0
- package/node_modules/lodash/fp/keyBy.js +5 -0
- package/node_modules/lodash/fp/keys.js +5 -0
- package/node_modules/lodash/fp/keysIn.js +5 -0
- package/node_modules/lodash/fp/lang.js +2 -0
- package/node_modules/lodash/fp/last.js +5 -0
- package/node_modules/lodash/fp/lastIndexOf.js +5 -0
- package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
- package/node_modules/lodash/fp/lowerCase.js +5 -0
- package/node_modules/lodash/fp/lowerFirst.js +5 -0
- package/node_modules/lodash/fp/lt.js +5 -0
- package/node_modules/lodash/fp/lte.js +5 -0
- package/node_modules/lodash/fp/map.js +5 -0
- package/node_modules/lodash/fp/mapKeys.js +5 -0
- package/node_modules/lodash/fp/mapValues.js +5 -0
- package/node_modules/lodash/fp/matches.js +1 -0
- package/node_modules/lodash/fp/matchesProperty.js +5 -0
- package/node_modules/lodash/fp/math.js +2 -0
- package/node_modules/lodash/fp/max.js +5 -0
- package/node_modules/lodash/fp/maxBy.js +5 -0
- package/node_modules/lodash/fp/mean.js +5 -0
- package/node_modules/lodash/fp/meanBy.js +5 -0
- package/node_modules/lodash/fp/memoize.js +5 -0
- package/node_modules/lodash/fp/merge.js +5 -0
- package/node_modules/lodash/fp/mergeAll.js +5 -0
- package/node_modules/lodash/fp/mergeAllWith.js +5 -0
- package/node_modules/lodash/fp/mergeWith.js +5 -0
- package/node_modules/lodash/fp/method.js +5 -0
- package/node_modules/lodash/fp/methodOf.js +5 -0
- package/node_modules/lodash/fp/min.js +5 -0
- package/node_modules/lodash/fp/minBy.js +5 -0
- package/node_modules/lodash/fp/mixin.js +5 -0
- package/node_modules/lodash/fp/multiply.js +5 -0
- package/node_modules/lodash/fp/nAry.js +1 -0
- package/node_modules/lodash/fp/negate.js +5 -0
- package/node_modules/lodash/fp/next.js +5 -0
- package/node_modules/lodash/fp/noop.js +5 -0
- package/node_modules/lodash/fp/now.js +5 -0
- package/node_modules/lodash/fp/nth.js +5 -0
- package/node_modules/lodash/fp/nthArg.js +5 -0
- package/node_modules/lodash/fp/number.js +2 -0
- package/node_modules/lodash/fp/object.js +2 -0
- package/node_modules/lodash/fp/omit.js +5 -0
- package/node_modules/lodash/fp/omitAll.js +1 -0
- package/node_modules/lodash/fp/omitBy.js +5 -0
- package/node_modules/lodash/fp/once.js +5 -0
- package/node_modules/lodash/fp/orderBy.js +5 -0
- package/node_modules/lodash/fp/over.js +5 -0
- package/node_modules/lodash/fp/overArgs.js +5 -0
- package/node_modules/lodash/fp/overEvery.js +5 -0
- package/node_modules/lodash/fp/overSome.js +5 -0
- package/node_modules/lodash/fp/pad.js +5 -0
- package/node_modules/lodash/fp/padChars.js +5 -0
- package/node_modules/lodash/fp/padCharsEnd.js +5 -0
- package/node_modules/lodash/fp/padCharsStart.js +5 -0
- package/node_modules/lodash/fp/padEnd.js +5 -0
- package/node_modules/lodash/fp/padStart.js +5 -0
- package/node_modules/lodash/fp/parseInt.js +5 -0
- package/node_modules/lodash/fp/partial.js +5 -0
- package/node_modules/lodash/fp/partialRight.js +5 -0
- package/node_modules/lodash/fp/partition.js +5 -0
- package/node_modules/lodash/fp/path.js +1 -0
- package/node_modules/lodash/fp/pathEq.js +1 -0
- package/node_modules/lodash/fp/pathOr.js +1 -0
- package/node_modules/lodash/fp/paths.js +1 -0
- package/node_modules/lodash/fp/pick.js +5 -0
- package/node_modules/lodash/fp/pickAll.js +1 -0
- package/node_modules/lodash/fp/pickBy.js +5 -0
- package/node_modules/lodash/fp/pipe.js +1 -0
- package/node_modules/lodash/fp/placeholder.js +6 -0
- package/node_modules/lodash/fp/plant.js +5 -0
- package/node_modules/lodash/fp/pluck.js +1 -0
- package/node_modules/lodash/fp/prop.js +1 -0
- package/node_modules/lodash/fp/propEq.js +1 -0
- package/node_modules/lodash/fp/propOr.js +1 -0
- package/node_modules/lodash/fp/property.js +1 -0
- package/node_modules/lodash/fp/propertyOf.js +5 -0
- package/node_modules/lodash/fp/props.js +1 -0
- package/node_modules/lodash/fp/pull.js +5 -0
- package/node_modules/lodash/fp/pullAll.js +5 -0
- package/node_modules/lodash/fp/pullAllBy.js +5 -0
- package/node_modules/lodash/fp/pullAllWith.js +5 -0
- package/node_modules/lodash/fp/pullAt.js +5 -0
- package/node_modules/lodash/fp/random.js +5 -0
- package/node_modules/lodash/fp/range.js +5 -0
- package/node_modules/lodash/fp/rangeRight.js +5 -0
- package/node_modules/lodash/fp/rangeStep.js +5 -0
- package/node_modules/lodash/fp/rangeStepRight.js +5 -0
- package/node_modules/lodash/fp/rearg.js +5 -0
- package/node_modules/lodash/fp/reduce.js +5 -0
- package/node_modules/lodash/fp/reduceRight.js +5 -0
- package/node_modules/lodash/fp/reject.js +5 -0
- package/node_modules/lodash/fp/remove.js +5 -0
- package/node_modules/lodash/fp/repeat.js +5 -0
- package/node_modules/lodash/fp/replace.js +5 -0
- package/node_modules/lodash/fp/rest.js +5 -0
- package/node_modules/lodash/fp/restFrom.js +5 -0
- package/node_modules/lodash/fp/result.js +5 -0
- package/node_modules/lodash/fp/reverse.js +5 -0
- package/node_modules/lodash/fp/round.js +5 -0
- package/node_modules/lodash/fp/sample.js +5 -0
- package/node_modules/lodash/fp/sampleSize.js +5 -0
- package/node_modules/lodash/fp/seq.js +2 -0
- package/node_modules/lodash/fp/set.js +5 -0
- package/node_modules/lodash/fp/setWith.js +5 -0
- package/node_modules/lodash/fp/shuffle.js +5 -0
- package/node_modules/lodash/fp/size.js +5 -0
- package/node_modules/lodash/fp/slice.js +5 -0
- package/node_modules/lodash/fp/snakeCase.js +5 -0
- package/node_modules/lodash/fp/some.js +5 -0
- package/node_modules/lodash/fp/sortBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndex.js +5 -0
- package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedUniq.js +5 -0
- package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
- package/node_modules/lodash/fp/split.js +5 -0
- package/node_modules/lodash/fp/spread.js +5 -0
- package/node_modules/lodash/fp/spreadFrom.js +5 -0
- package/node_modules/lodash/fp/startCase.js +5 -0
- package/node_modules/lodash/fp/startsWith.js +5 -0
- package/node_modules/lodash/fp/string.js +2 -0
- package/node_modules/lodash/fp/stubArray.js +5 -0
- package/node_modules/lodash/fp/stubFalse.js +5 -0
- package/node_modules/lodash/fp/stubObject.js +5 -0
- package/node_modules/lodash/fp/stubString.js +5 -0
- package/node_modules/lodash/fp/stubTrue.js +5 -0
- package/node_modules/lodash/fp/subtract.js +5 -0
- package/node_modules/lodash/fp/sum.js +5 -0
- package/node_modules/lodash/fp/sumBy.js +5 -0
- package/node_modules/lodash/fp/symmetricDifference.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
- package/node_modules/lodash/fp/tail.js +5 -0
- package/node_modules/lodash/fp/take.js +5 -0
- package/node_modules/lodash/fp/takeLast.js +1 -0
- package/node_modules/lodash/fp/takeLastWhile.js +1 -0
- package/node_modules/lodash/fp/takeRight.js +5 -0
- package/node_modules/lodash/fp/takeRightWhile.js +5 -0
- package/node_modules/lodash/fp/takeWhile.js +5 -0
- package/node_modules/lodash/fp/tap.js +5 -0
- package/node_modules/lodash/fp/template.js +5 -0
- package/node_modules/lodash/fp/templateSettings.js +5 -0
- package/node_modules/lodash/fp/throttle.js +5 -0
- package/node_modules/lodash/fp/thru.js +5 -0
- package/node_modules/lodash/fp/times.js +5 -0
- package/node_modules/lodash/fp/toArray.js +5 -0
- package/node_modules/lodash/fp/toFinite.js +5 -0
- package/node_modules/lodash/fp/toInteger.js +5 -0
- package/node_modules/lodash/fp/toIterator.js +5 -0
- package/node_modules/lodash/fp/toJSON.js +5 -0
- package/node_modules/lodash/fp/toLength.js +5 -0
- package/node_modules/lodash/fp/toLower.js +5 -0
- package/node_modules/lodash/fp/toNumber.js +5 -0
- package/node_modules/lodash/fp/toPairs.js +5 -0
- package/node_modules/lodash/fp/toPairsIn.js +5 -0
- package/node_modules/lodash/fp/toPath.js +5 -0
- package/node_modules/lodash/fp/toPlainObject.js +5 -0
- package/node_modules/lodash/fp/toSafeInteger.js +5 -0
- package/node_modules/lodash/fp/toString.js +5 -0
- package/node_modules/lodash/fp/toUpper.js +5 -0
- package/node_modules/lodash/fp/transform.js +5 -0
- package/node_modules/lodash/fp/trim.js +5 -0
- package/node_modules/lodash/fp/trimChars.js +5 -0
- package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
- package/node_modules/lodash/fp/trimCharsStart.js +5 -0
- package/node_modules/lodash/fp/trimEnd.js +5 -0
- package/node_modules/lodash/fp/trimStart.js +5 -0
- package/node_modules/lodash/fp/truncate.js +5 -0
- package/node_modules/lodash/fp/unapply.js +1 -0
- package/node_modules/lodash/fp/unary.js +5 -0
- package/node_modules/lodash/fp/unescape.js +5 -0
- package/node_modules/lodash/fp/union.js +5 -0
- package/node_modules/lodash/fp/unionBy.js +5 -0
- package/node_modules/lodash/fp/unionWith.js +5 -0
- package/node_modules/lodash/fp/uniq.js +5 -0
- package/node_modules/lodash/fp/uniqBy.js +5 -0
- package/node_modules/lodash/fp/uniqWith.js +5 -0
- package/node_modules/lodash/fp/uniqueId.js +5 -0
- package/node_modules/lodash/fp/unnest.js +1 -0
- package/node_modules/lodash/fp/unset.js +5 -0
- package/node_modules/lodash/fp/unzip.js +5 -0
- package/node_modules/lodash/fp/unzipWith.js +5 -0
- package/node_modules/lodash/fp/update.js +5 -0
- package/node_modules/lodash/fp/updateWith.js +5 -0
- package/node_modules/lodash/fp/upperCase.js +5 -0
- package/node_modules/lodash/fp/upperFirst.js +5 -0
- package/node_modules/lodash/fp/useWith.js +1 -0
- package/node_modules/lodash/fp/util.js +2 -0
- package/node_modules/lodash/fp/value.js +5 -0
- package/node_modules/lodash/fp/valueOf.js +5 -0
- package/node_modules/lodash/fp/values.js +5 -0
- package/node_modules/lodash/fp/valuesIn.js +5 -0
- package/node_modules/lodash/fp/where.js +1 -0
- package/node_modules/lodash/fp/whereEq.js +1 -0
- package/node_modules/lodash/fp/without.js +5 -0
- package/node_modules/lodash/fp/words.js +5 -0
- package/node_modules/lodash/fp/wrap.js +5 -0
- package/node_modules/lodash/fp/wrapperAt.js +5 -0
- package/node_modules/lodash/fp/wrapperChain.js +5 -0
- package/node_modules/lodash/fp/wrapperLodash.js +5 -0
- package/node_modules/lodash/fp/wrapperReverse.js +5 -0
- package/node_modules/lodash/fp/wrapperValue.js +5 -0
- package/node_modules/lodash/fp/xor.js +5 -0
- package/node_modules/lodash/fp/xorBy.js +5 -0
- package/node_modules/lodash/fp/xorWith.js +5 -0
- package/node_modules/lodash/fp/zip.js +5 -0
- package/node_modules/lodash/fp/zipAll.js +5 -0
- package/node_modules/lodash/fp/zipObj.js +1 -0
- package/node_modules/lodash/fp/zipObject.js +5 -0
- package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
- package/node_modules/lodash/fp/zipWith.js +5 -0
- package/node_modules/lodash/fp.js +2 -0
- package/node_modules/lodash/fromPairs.js +28 -0
- package/node_modules/lodash/function.js +25 -0
- package/node_modules/lodash/functions.js +31 -0
- package/node_modules/lodash/functionsIn.js +31 -0
- package/node_modules/lodash/get.js +33 -0
- package/node_modules/lodash/groupBy.js +41 -0
- package/node_modules/lodash/gt.js +29 -0
- package/node_modules/lodash/gte.js +30 -0
- package/node_modules/lodash/has.js +35 -0
- package/node_modules/lodash/hasIn.js +34 -0
- package/node_modules/lodash/head.js +23 -0
- package/node_modules/lodash/identity.js +21 -0
- package/node_modules/lodash/inRange.js +55 -0
- package/node_modules/lodash/includes.js +53 -0
- package/node_modules/lodash/index.js +1 -0
- package/node_modules/lodash/indexOf.js +42 -0
- package/node_modules/lodash/initial.js +22 -0
- package/node_modules/lodash/intersection.js +30 -0
- package/node_modules/lodash/intersectionBy.js +45 -0
- package/node_modules/lodash/intersectionWith.js +41 -0
- package/node_modules/lodash/invert.js +42 -0
- package/node_modules/lodash/invertBy.js +56 -0
- package/node_modules/lodash/invoke.js +24 -0
- package/node_modules/lodash/invokeMap.js +41 -0
- package/node_modules/lodash/isArguments.js +36 -0
- package/node_modules/lodash/isArray.js +26 -0
- package/node_modules/lodash/isArrayBuffer.js +27 -0
- package/node_modules/lodash/isArrayLike.js +33 -0
- package/node_modules/lodash/isArrayLikeObject.js +33 -0
- package/node_modules/lodash/isBoolean.js +29 -0
- package/node_modules/lodash/isBuffer.js +38 -0
- package/node_modules/lodash/isDate.js +27 -0
- package/node_modules/lodash/isElement.js +25 -0
- package/node_modules/lodash/isEmpty.js +77 -0
- package/node_modules/lodash/isEqual.js +35 -0
- package/node_modules/lodash/isEqualWith.js +41 -0
- package/node_modules/lodash/isError.js +36 -0
- package/node_modules/lodash/isFinite.js +36 -0
- package/node_modules/lodash/isFunction.js +37 -0
- package/node_modules/lodash/isInteger.js +33 -0
- package/node_modules/lodash/isLength.js +35 -0
- package/node_modules/lodash/isMap.js +27 -0
- package/node_modules/lodash/isMatch.js +36 -0
- package/node_modules/lodash/isMatchWith.js +41 -0
- package/node_modules/lodash/isNaN.js +38 -0
- package/node_modules/lodash/isNative.js +40 -0
- package/node_modules/lodash/isNil.js +25 -0
- package/node_modules/lodash/isNull.js +22 -0
- package/node_modules/lodash/isNumber.js +38 -0
- package/node_modules/lodash/isObject.js +31 -0
- package/node_modules/lodash/isObjectLike.js +29 -0
- package/node_modules/lodash/isPlainObject.js +62 -0
- package/node_modules/lodash/isRegExp.js +27 -0
- package/node_modules/lodash/isSafeInteger.js +37 -0
- package/node_modules/lodash/isSet.js +27 -0
- package/node_modules/lodash/isString.js +30 -0
- package/node_modules/lodash/isSymbol.js +29 -0
- package/node_modules/lodash/isTypedArray.js +27 -0
- package/node_modules/lodash/isUndefined.js +22 -0
- package/node_modules/lodash/isWeakMap.js +28 -0
- package/node_modules/lodash/isWeakSet.js +28 -0
- package/node_modules/lodash/iteratee.js +53 -0
- package/node_modules/lodash/join.js +26 -0
- package/node_modules/lodash/kebabCase.js +28 -0
- package/node_modules/lodash/keyBy.js +36 -0
- package/node_modules/lodash/keys.js +37 -0
- package/node_modules/lodash/keysIn.js +32 -0
- package/node_modules/lodash/lang.js +58 -0
- package/node_modules/lodash/last.js +20 -0
- package/node_modules/lodash/lastIndexOf.js +46 -0
- package/node_modules/lodash/lodash.js +17248 -0
- package/node_modules/lodash/lodash.min.js +140 -0
- package/node_modules/lodash/lowerCase.js +27 -0
- package/node_modules/lodash/lowerFirst.js +22 -0
- package/node_modules/lodash/lt.js +29 -0
- package/node_modules/lodash/lte.js +30 -0
- package/node_modules/lodash/map.js +53 -0
- package/node_modules/lodash/mapKeys.js +36 -0
- package/node_modules/lodash/mapValues.js +43 -0
- package/node_modules/lodash/matches.js +46 -0
- package/node_modules/lodash/matchesProperty.js +44 -0
- package/node_modules/lodash/math.js +17 -0
- package/node_modules/lodash/max.js +29 -0
- package/node_modules/lodash/maxBy.js +34 -0
- package/node_modules/lodash/mean.js +22 -0
- package/node_modules/lodash/meanBy.js +31 -0
- package/node_modules/lodash/memoize.js +73 -0
- package/node_modules/lodash/merge.js +39 -0
- package/node_modules/lodash/mergeWith.js +39 -0
- package/node_modules/lodash/method.js +34 -0
- package/node_modules/lodash/methodOf.js +33 -0
- package/node_modules/lodash/min.js +29 -0
- package/node_modules/lodash/minBy.js +34 -0
- package/node_modules/lodash/mixin.js +74 -0
- package/node_modules/lodash/multiply.js +22 -0
- package/node_modules/lodash/negate.js +40 -0
- package/node_modules/lodash/next.js +35 -0
- package/node_modules/lodash/noop.js +17 -0
- package/node_modules/lodash/now.js +23 -0
- package/node_modules/lodash/nth.js +29 -0
- package/node_modules/lodash/nthArg.js +32 -0
- package/node_modules/lodash/number.js +5 -0
- package/node_modules/lodash/object.js +49 -0
- package/node_modules/lodash/omit.js +57 -0
- package/node_modules/lodash/omitBy.js +29 -0
- package/node_modules/lodash/once.js +25 -0
- package/node_modules/lodash/orderBy.js +47 -0
- package/node_modules/lodash/over.js +24 -0
- package/node_modules/lodash/overArgs.js +61 -0
- package/node_modules/lodash/overEvery.js +34 -0
- package/node_modules/lodash/overSome.js +37 -0
- package/node_modules/lodash/package.json +17 -0
- package/node_modules/lodash/pad.js +49 -0
- package/node_modules/lodash/padEnd.js +39 -0
- package/node_modules/lodash/padStart.js +39 -0
- package/node_modules/lodash/parseInt.js +43 -0
- package/node_modules/lodash/partial.js +50 -0
- package/node_modules/lodash/partialRight.js +49 -0
- package/node_modules/lodash/partition.js +43 -0
- package/node_modules/lodash/pick.js +25 -0
- package/node_modules/lodash/pickBy.js +37 -0
- package/node_modules/lodash/plant.js +48 -0
- package/node_modules/lodash/property.js +32 -0
- package/node_modules/lodash/propertyOf.js +30 -0
- package/node_modules/lodash/pull.js +29 -0
- package/node_modules/lodash/pullAll.js +29 -0
- package/node_modules/lodash/pullAllBy.js +33 -0
- package/node_modules/lodash/pullAllWith.js +32 -0
- package/node_modules/lodash/pullAt.js +43 -0
- package/node_modules/lodash/random.js +82 -0
- package/node_modules/lodash/range.js +46 -0
- package/node_modules/lodash/rangeRight.js +41 -0
- package/node_modules/lodash/rearg.js +33 -0
- package/node_modules/lodash/reduce.js +51 -0
- package/node_modules/lodash/reduceRight.js +36 -0
- package/node_modules/lodash/reject.js +46 -0
- package/node_modules/lodash/remove.js +53 -0
- package/node_modules/lodash/repeat.js +37 -0
- package/node_modules/lodash/replace.js +29 -0
- package/node_modules/lodash/rest.js +40 -0
- package/node_modules/lodash/result.js +56 -0
- package/node_modules/lodash/reverse.js +34 -0
- package/node_modules/lodash/round.js +26 -0
- package/node_modules/lodash/sample.js +24 -0
- package/node_modules/lodash/sampleSize.js +37 -0
- package/node_modules/lodash/seq.js +16 -0
- package/node_modules/lodash/set.js +35 -0
- package/node_modules/lodash/setWith.js +32 -0
- package/node_modules/lodash/shuffle.js +25 -0
- package/node_modules/lodash/size.js +46 -0
- package/node_modules/lodash/slice.js +37 -0
- package/node_modules/lodash/snakeCase.js +28 -0
- package/node_modules/lodash/some.js +51 -0
- package/node_modules/lodash/sortBy.js +48 -0
- package/node_modules/lodash/sortedIndex.js +24 -0
- package/node_modules/lodash/sortedIndexBy.js +33 -0
- package/node_modules/lodash/sortedIndexOf.js +31 -0
- package/node_modules/lodash/sortedLastIndex.js +25 -0
- package/node_modules/lodash/sortedLastIndexBy.js +33 -0
- package/node_modules/lodash/sortedLastIndexOf.js +31 -0
- package/node_modules/lodash/sortedUniq.js +24 -0
- package/node_modules/lodash/sortedUniqBy.js +26 -0
- package/node_modules/lodash/split.js +52 -0
- package/node_modules/lodash/spread.js +63 -0
- package/node_modules/lodash/startCase.js +29 -0
- package/node_modules/lodash/startsWith.js +39 -0
- package/node_modules/lodash/string.js +33 -0
- package/node_modules/lodash/stubArray.js +23 -0
- package/node_modules/lodash/stubFalse.js +18 -0
- package/node_modules/lodash/stubObject.js +23 -0
- package/node_modules/lodash/stubString.js +18 -0
- package/node_modules/lodash/stubTrue.js +18 -0
- package/node_modules/lodash/subtract.js +22 -0
- package/node_modules/lodash/sum.js +24 -0
- package/node_modules/lodash/sumBy.js +33 -0
- package/node_modules/lodash/tail.js +22 -0
- package/node_modules/lodash/take.js +37 -0
- package/node_modules/lodash/takeRight.js +39 -0
- package/node_modules/lodash/takeRightWhile.js +45 -0
- package/node_modules/lodash/takeWhile.js +45 -0
- package/node_modules/lodash/tap.js +29 -0
- package/node_modules/lodash/template.js +272 -0
- package/node_modules/lodash/templateSettings.js +67 -0
- package/node_modules/lodash/throttle.js +69 -0
- package/node_modules/lodash/thru.js +28 -0
- package/node_modules/lodash/times.js +51 -0
- package/node_modules/lodash/toArray.js +58 -0
- package/node_modules/lodash/toFinite.js +42 -0
- package/node_modules/lodash/toInteger.js +36 -0
- package/node_modules/lodash/toIterator.js +23 -0
- package/node_modules/lodash/toJSON.js +1 -0
- package/node_modules/lodash/toLength.js +38 -0
- package/node_modules/lodash/toLower.js +28 -0
- package/node_modules/lodash/toNumber.js +64 -0
- package/node_modules/lodash/toPairs.js +30 -0
- package/node_modules/lodash/toPairsIn.js +30 -0
- package/node_modules/lodash/toPath.js +33 -0
- package/node_modules/lodash/toPlainObject.js +32 -0
- package/node_modules/lodash/toSafeInteger.js +37 -0
- package/node_modules/lodash/toString.js +28 -0
- package/node_modules/lodash/toUpper.js +28 -0
- package/node_modules/lodash/transform.js +65 -0
- package/node_modules/lodash/trim.js +47 -0
- package/node_modules/lodash/trimEnd.js +41 -0
- package/node_modules/lodash/trimStart.js +43 -0
- package/node_modules/lodash/truncate.js +111 -0
- package/node_modules/lodash/unary.js +22 -0
- package/node_modules/lodash/unescape.js +34 -0
- package/node_modules/lodash/union.js +26 -0
- package/node_modules/lodash/unionBy.js +39 -0
- package/node_modules/lodash/unionWith.js +34 -0
- package/node_modules/lodash/uniq.js +25 -0
- package/node_modules/lodash/uniqBy.js +31 -0
- package/node_modules/lodash/uniqWith.js +28 -0
- package/node_modules/lodash/uniqueId.js +28 -0
- package/node_modules/lodash/unset.js +34 -0
- package/node_modules/lodash/unzip.js +45 -0
- package/node_modules/lodash/unzipWith.js +39 -0
- package/node_modules/lodash/update.js +35 -0
- package/node_modules/lodash/updateWith.js +33 -0
- package/node_modules/lodash/upperCase.js +27 -0
- package/node_modules/lodash/upperFirst.js +22 -0
- package/node_modules/lodash/util.js +34 -0
- package/node_modules/lodash/value.js +1 -0
- package/node_modules/lodash/valueOf.js +1 -0
- package/node_modules/lodash/values.js +34 -0
- package/node_modules/lodash/valuesIn.js +32 -0
- package/node_modules/lodash/without.js +31 -0
- package/node_modules/lodash/words.js +35 -0
- package/node_modules/lodash/wrap.js +30 -0
- package/node_modules/lodash/wrapperAt.js +48 -0
- package/node_modules/lodash/wrapperChain.js +34 -0
- package/node_modules/lodash/wrapperLodash.js +147 -0
- package/node_modules/lodash/wrapperReverse.js +44 -0
- package/node_modules/lodash/wrapperValue.js +21 -0
- package/node_modules/lodash/xor.js +28 -0
- package/node_modules/lodash/xorBy.js +39 -0
- package/node_modules/lodash/xorWith.js +34 -0
- package/node_modules/lodash/zip.js +22 -0
- package/node_modules/lodash/zipObject.js +24 -0
- package/node_modules/lodash/zipObjectDeep.js +23 -0
- package/node_modules/lodash/zipWith.js +32 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/node-fetch/LICENSE.md +22 -0
- package/node_modules/node-fetch/README.md +634 -0
- package/node_modules/node-fetch/browser.js +25 -0
- package/node_modules/node-fetch/lib/index.es.js +1777 -0
- package/node_modules/node-fetch/lib/index.js +1787 -0
- package/node_modules/node-fetch/lib/index.mjs +1775 -0
- package/node_modules/node-fetch/package.json +89 -0
- package/node_modules/oci-common/LICENSE.txt +89 -0
- package/node_modules/oci-common/NOTICE.txt +1 -0
- package/node_modules/oci-common/README.md +19 -0
- package/node_modules/oci-common/THIRD_PARTY_LICENSES.txt +576 -0
- package/node_modules/oci-common/index.d.ts +54 -0
- package/node_modules/oci-common/index.js +104 -0
- package/node_modules/oci-common/index.js.map +1 -0
- package/node_modules/oci-common/lib/auth/X509-federation-client-for-oke-workload-identity.d.ts +38 -0
- package/node_modules/oci-common/lib/auth/X509-federation-client-for-oke-workload-identity.js +175 -0
- package/node_modules/oci-common/lib/auth/X509-federation-client-for-oke-workload-identity.js.map +1 -0
- package/node_modules/oci-common/lib/auth/X509-federation-client.d.ts +52 -0
- package/node_modules/oci-common/lib/auth/X509-federation-client.js +325 -0
- package/node_modules/oci-common/lib/auth/X509-federation-client.js.map +1 -0
- package/node_modules/oci-common/lib/auth/abstract-federation-client-authenticated-details-provider-builder.d.ts +76 -0
- package/node_modules/oci-common/lib/auth/abstract-federation-client-authenticated-details-provider-builder.js +224 -0
- package/node_modules/oci-common/lib/auth/abstract-federation-client-authenticated-details-provider-builder.js.map +1 -0
- package/node_modules/oci-common/lib/auth/abstract-requesting-authentication-detail-provider.d.ts +19 -0
- package/node_modules/oci-common/lib/auth/abstract-requesting-authentication-detail-provider.js +46 -0
- package/node_modules/oci-common/lib/auth/abstract-requesting-authentication-detail-provider.js.map +1 -0
- package/node_modules/oci-common/lib/auth/auth.d.ts +125 -0
- package/node_modules/oci-common/lib/auth/auth.js +137 -0
- package/node_modules/oci-common/lib/auth/auth.js.map +1 -0
- package/node_modules/oci-common/lib/auth/certificate-and-privatekey-pair.d.ts +12 -0
- package/node_modules/oci-common/lib/auth/certificate-and-privatekey-pair.js +20 -0
- package/node_modules/oci-common/lib/auth/certificate-and-privatekey-pair.js.map +1 -0
- package/node_modules/oci-common/lib/auth/config-file-auth.d.ts +81 -0
- package/node_modules/oci-common/lib/auth/config-file-auth.js +205 -0
- package/node_modules/oci-common/lib/auth/config-file-auth.js.map +1 -0
- package/node_modules/oci-common/lib/auth/file-based-key-supplier.d.ts +16 -0
- package/node_modules/oci-common/lib/auth/file-based-key-supplier.js +45 -0
- package/node_modules/oci-common/lib/auth/file-based-key-supplier.js.map +1 -0
- package/node_modules/oci-common/lib/auth/file-based-resource-principal-federation-client.d.ts +34 -0
- package/node_modules/oci-common/lib/auth/file-based-resource-principal-federation-client.js +95 -0
- package/node_modules/oci-common/lib/auth/file-based-resource-principal-federation-client.js.map +1 -0
- package/node_modules/oci-common/lib/auth/fixed-content-key-supplier.d.ts +20 -0
- package/node_modules/oci-common/lib/auth/fixed-content-key-supplier.js +49 -0
- package/node_modules/oci-common/lib/auth/fixed-content-key-supplier.js.map +1 -0
- package/node_modules/oci-common/lib/auth/fixed-content-resource-principal-federation-client.d.ts +22 -0
- package/node_modules/oci-common/lib/auth/fixed-content-resource-principal-federation-client.js +50 -0
- package/node_modules/oci-common/lib/auth/fixed-content-resource-principal-federation-client.js.map +1 -0
- package/node_modules/oci-common/lib/auth/helpers/auth-utils.d.ts +17 -0
- package/node_modules/oci-common/lib/auth/helpers/auth-utils.js +60 -0
- package/node_modules/oci-common/lib/auth/helpers/auth-utils.js.map +1 -0
- package/node_modules/oci-common/lib/auth/helpers/delegate-auth-provider.d.ts +10 -0
- package/node_modules/oci-common/lib/auth/helpers/delegate-auth-provider.js +42 -0
- package/node_modules/oci-common/lib/auth/helpers/delegate-auth-provider.js.map +1 -0
- package/node_modules/oci-common/lib/auth/helpers/load-from-file.d.ts +5 -0
- package/node_modules/oci-common/lib/auth/helpers/load-from-file.js +19 -0
- package/node_modules/oci-common/lib/auth/helpers/load-from-file.js.map +1 -0
- package/node_modules/oci-common/lib/auth/helpers/load-private-key-from-file.d.ts +17 -0
- package/node_modules/oci-common/lib/auth/helpers/load-private-key-from-file.js +32 -0
- package/node_modules/oci-common/lib/auth/helpers/load-private-key-from-file.js.map +1 -0
- package/node_modules/oci-common/lib/auth/instance-principals-authentication-detail-provider.d.ts +37 -0
- package/node_modules/oci-common/lib/auth/instance-principals-authentication-detail-provider.js +76 -0
- package/node_modules/oci-common/lib/auth/instance-principals-authentication-detail-provider.js.map +1 -0
- package/node_modules/oci-common/lib/auth/key-pair.d.ts +15 -0
- package/node_modules/oci-common/lib/auth/key-pair.js +24 -0
- package/node_modules/oci-common/lib/auth/key-pair.js.map +1 -0
- package/node_modules/oci-common/lib/auth/models/X509-certificate-supplier.d.ts +22 -0
- package/node_modules/oci-common/lib/auth/models/X509-certificate-supplier.js +7 -0
- package/node_modules/oci-common/lib/auth/models/X509-certificate-supplier.js.map +1 -0
- package/node_modules/oci-common/lib/auth/models/abstract-authentication-details-provider.d.ts +10 -0
- package/node_modules/oci-common/lib/auth/models/abstract-authentication-details-provider.js +7 -0
- package/node_modules/oci-common/lib/auth/models/abstract-authentication-details-provider.js.map +1 -0
- package/node_modules/oci-common/lib/auth/models/federation-client.d.ts +29 -0
- package/node_modules/oci-common/lib/auth/models/federation-client.js +7 -0
- package/node_modules/oci-common/lib/auth/models/federation-client.js.map +1 -0
- package/node_modules/oci-common/lib/auth/models/refreshable-on-not-authenticaticated-provider.d.ts +23 -0
- package/node_modules/oci-common/lib/auth/models/refreshable-on-not-authenticaticated-provider.js +7 -0
- package/node_modules/oci-common/lib/auth/models/refreshable-on-not-authenticaticated-provider.js.map +1 -0
- package/node_modules/oci-common/lib/auth/models/refreshable.d.ts +23 -0
- package/node_modules/oci-common/lib/auth/models/refreshable.js +7 -0
- package/node_modules/oci-common/lib/auth/models/refreshable.js.map +1 -0
- package/node_modules/oci-common/lib/auth/models/session-key-supplier.d.ts +27 -0
- package/node_modules/oci-common/lib/auth/models/session-key-supplier.js +7 -0
- package/node_modules/oci-common/lib/auth/models/session-key-supplier.js.map +1 -0
- package/node_modules/oci-common/lib/auth/oke-workload-identity-authentication-details-provider.d.ts +56 -0
- package/node_modules/oci-common/lib/auth/oke-workload-identity-authentication-details-provider.js +139 -0
- package/node_modules/oci-common/lib/auth/oke-workload-identity-authentication-details-provider.js.map +1 -0
- package/node_modules/oci-common/lib/auth/resource-principal-authentication-details-provider.d.ts +63 -0
- package/node_modules/oci-common/lib/auth/resource-principal-authentication-details-provider.js +184 -0
- package/node_modules/oci-common/lib/auth/resource-principal-authentication-details-provider.js.map +1 -0
- package/node_modules/oci-common/lib/auth/security-token-adapter.d.ts +38 -0
- package/node_modules/oci-common/lib/auth/security-token-adapter.js +71 -0
- package/node_modules/oci-common/lib/auth/security-token-adapter.js.map +1 -0
- package/node_modules/oci-common/lib/auth/session-auth-details-provider.d.ts +8 -0
- package/node_modules/oci-common/lib/auth/session-auth-details-provider.js +71 -0
- package/node_modules/oci-common/lib/auth/session-auth-details-provider.js.map +1 -0
- package/node_modules/oci-common/lib/auth/session-key-supplier.d.ts +12 -0
- package/node_modules/oci-common/lib/auth/session-key-supplier.js +53 -0
- package/node_modules/oci-common/lib/auth/session-key-supplier.js.map +1 -0
- package/node_modules/oci-common/lib/auth/url-based-x509-certificate-supplier.d.ts +43 -0
- package/node_modules/oci-common/lib/auth/url-based-x509-certificate-supplier.js +113 -0
- package/node_modules/oci-common/lib/auth/url-based-x509-certificate-supplier.js.map +1 -0
- package/node_modules/oci-common/lib/base-request.d.ts +17 -0
- package/node_modules/oci-common/lib/base-request.js +7 -0
- package/node_modules/oci-common/lib/base-request.js.map +1 -0
- package/node_modules/oci-common/lib/chunker.d.ts +6 -0
- package/node_modules/oci-common/lib/chunker.js +45 -0
- package/node_modules/oci-common/lib/chunker.js.map +1 -0
- package/node_modules/oci-common/lib/chunks/ChunkBuffer.d.ts +7 -0
- package/node_modules/oci-common/lib/chunks/ChunkBuffer.js +53 -0
- package/node_modules/oci-common/lib/chunks/ChunkBuffer.js.map +1 -0
- package/node_modules/oci-common/lib/chunks/ChunkStream.d.ts +7 -0
- package/node_modules/oci-common/lib/chunks/ChunkStream.js +80 -0
- package/node_modules/oci-common/lib/chunks/ChunkStream.js.map +1 -0
- package/node_modules/oci-common/lib/chunks/getReadableData.d.ts +7 -0
- package/node_modules/oci-common/lib/chunks/getReadableData.js +47 -0
- package/node_modules/oci-common/lib/chunks/getReadableData.js.map +1 -0
- package/node_modules/oci-common/lib/chunks/getReadableStreamData.d.ts +6 -0
- package/node_modules/oci-common/lib/chunks/getReadableStreamData.js +41 -0
- package/node_modules/oci-common/lib/chunks/getReadableStreamData.js.map +1 -0
- package/node_modules/oci-common/lib/circuit-breaker.d.ts +37 -0
- package/node_modules/oci-common/lib/circuit-breaker.js +133 -0
- package/node_modules/oci-common/lib/circuit-breaker.js.map +1 -0
- package/node_modules/oci-common/lib/client-configuration.d.ts +23 -0
- package/node_modules/oci-common/lib/client-configuration.js +7 -0
- package/node_modules/oci-common/lib/client-configuration.js.map +1 -0
- package/node_modules/oci-common/lib/config-file-reader.d.ts +51 -0
- package/node_modules/oci-common/lib/config-file-reader.js +176 -0
- package/node_modules/oci-common/lib/config-file-reader.js.map +1 -0
- package/node_modules/oci-common/lib/constants.d.ts +14 -0
- package/node_modules/oci-common/lib/constants.js +19 -0
- package/node_modules/oci-common/lib/constants.js.map +1 -0
- package/node_modules/oci-common/lib/developer-tool-configuration-file-schema.d.ts +11 -0
- package/node_modules/oci-common/lib/developer-tool-configuration-file-schema.js +7 -0
- package/node_modules/oci-common/lib/developer-tool-configuration-file-schema.js.map +1 -0
- package/node_modules/oci-common/lib/developertoolconfiguration.d.ts +7 -0
- package/node_modules/oci-common/lib/developertoolconfiguration.js +138 -0
- package/node_modules/oci-common/lib/developertoolconfiguration.js.map +1 -0
- package/node_modules/oci-common/lib/endpoint-builder.d.ts +17 -0
- package/node_modules/oci-common/lib/endpoint-builder.js +134 -0
- package/node_modules/oci-common/lib/endpoint-builder.js.map +1 -0
- package/node_modules/oci-common/lib/error.d.ts +14 -0
- package/node_modules/oci-common/lib/error.js +34 -0
- package/node_modules/oci-common/lib/error.js.map +1 -0
- package/node_modules/oci-common/lib/headers.d.ts +6 -0
- package/node_modules/oci-common/lib/headers.js +66 -0
- package/node_modules/oci-common/lib/headers.js.map +1 -0
- package/node_modules/oci-common/lib/helper.d.ts +22 -0
- package/node_modules/oci-common/lib/helper.js +310 -0
- package/node_modules/oci-common/lib/helper.js.map +1 -0
- package/node_modules/oci-common/lib/http-request.d.ts +11 -0
- package/node_modules/oci-common/lib/http-request.js +7 -0
- package/node_modules/oci-common/lib/http-request.js.map +1 -0
- package/node_modules/oci-common/lib/http.d.ts +24 -0
- package/node_modules/oci-common/lib/http.js +109 -0
- package/node_modules/oci-common/lib/http.js.map +1 -0
- package/node_modules/oci-common/lib/log.d.ts +18 -0
- package/node_modules/oci-common/lib/log.js +20 -0
- package/node_modules/oci-common/lib/log.js.map +1 -0
- package/node_modules/oci-common/lib/object-serializer.d.ts +9 -0
- package/node_modules/oci-common/lib/object-serializer.js +69 -0
- package/node_modules/oci-common/lib/object-serializer.js.map +1 -0
- package/node_modules/oci-common/lib/paginators.d.ts +18 -0
- package/node_modules/oci-common/lib/paginators.js +145 -0
- package/node_modules/oci-common/lib/paginators.js.map +1 -0
- package/node_modules/oci-common/lib/range.d.ts +27 -0
- package/node_modules/oci-common/lib/range.js +60 -0
- package/node_modules/oci-common/lib/range.js.map +1 -0
- package/node_modules/oci-common/lib/realm.d.ts +41 -0
- package/node_modules/oci-common/lib/realm.js +82 -0
- package/node_modules/oci-common/lib/realm.js.map +1 -0
- package/node_modules/oci-common/lib/region-metadata-schema.d.ts +13 -0
- package/node_modules/oci-common/lib/region-metadata-schema.js +28 -0
- package/node_modules/oci-common/lib/region-metadata-schema.js.map +1 -0
- package/node_modules/oci-common/lib/region.d.ts +151 -0
- package/node_modules/oci-common/lib/region.js +422 -0
- package/node_modules/oci-common/lib/region.js.map +1 -0
- package/node_modules/oci-common/lib/request-generator.d.ts +23 -0
- package/node_modules/oci-common/lib/request-generator.js +129 -0
- package/node_modules/oci-common/lib/request-generator.js.map +1 -0
- package/node_modules/oci-common/lib/response-generator.d.ts +20 -0
- package/node_modules/oci-common/lib/response-generator.js +37 -0
- package/node_modules/oci-common/lib/response-generator.js.map +1 -0
- package/node_modules/oci-common/lib/retrier.d.ts +53 -0
- package/node_modules/oci-common/lib/retrier.js +223 -0
- package/node_modules/oci-common/lib/retrier.js.map +1 -0
- package/node_modules/oci-common/lib/retry-token-header.d.ts +9 -0
- package/node_modules/oci-common/lib/retry-token-header.js +29 -0
- package/node_modules/oci-common/lib/retry-token-header.js.map +1 -0
- package/node_modules/oci-common/lib/signer.d.ts +48 -0
- package/node_modules/oci-common/lib/signer.js +156 -0
- package/node_modules/oci-common/lib/signer.js.map +1 -0
- package/node_modules/oci-common/lib/types.d.ts +23 -0
- package/node_modules/oci-common/lib/types.js +7 -0
- package/node_modules/oci-common/lib/types.js.map +1 -0
- package/node_modules/oci-common/lib/utils.d.ts +11 -0
- package/node_modules/oci-common/lib/utils.js +50 -0
- package/node_modules/oci-common/lib/utils.js.map +1 -0
- package/node_modules/oci-common/lib/waiter.d.ts +52 -0
- package/node_modules/oci-common/lib/waiter.js +121 -0
- package/node_modules/oci-common/lib/waiter.js.map +1 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/LICENSE +21 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/README.md +396 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/decode.js +30 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/index.js +12 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/lib/JsonWebTokenError.js +14 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/lib/NotBeforeError.js +13 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/lib/TokenExpiredError.js +13 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js +3 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/lib/psSupported.js +3 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js +3 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/lib/timespan.js +18 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/lib/validateAsymmetricKey.js +66 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/package.json +65 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/sign.js +247 -0
- package/node_modules/oci-common/node_modules/jsonwebtoken/verify.js +263 -0
- package/node_modules/oci-common/node_modules/jssha/CHANGELOG.md +178 -0
- package/node_modules/oci-common/node_modules/jssha/LICENSE +26 -0
- package/node_modules/oci-common/node_modules/jssha/README.md +122 -0
- package/node_modules/oci-common/node_modules/jssha/bower.json +51 -0
- package/node_modules/oci-common/node_modules/jssha/package.json +54 -0
- package/node_modules/oci-common/node_modules/jssha/src/sha.js +44 -0
- package/node_modules/oci-common/node_modules/jssha/src/sha1.js +24 -0
- package/node_modules/oci-common/node_modules/jssha/src/sha256.js +28 -0
- package/node_modules/oci-common/node_modules/jssha/src/sha3.js +28 -0
- package/node_modules/oci-common/node_modules/jssha/src/sha512.js +35 -0
- package/node_modules/oci-common/node_modules/jwa/LICENSE +17 -0
- package/node_modules/oci-common/node_modules/jwa/README.md +150 -0
- package/node_modules/oci-common/node_modules/jwa/index.js +266 -0
- package/node_modules/oci-common/node_modules/jwa/package.json +37 -0
- package/node_modules/oci-common/node_modules/jws/CHANGELOG.md +47 -0
- package/node_modules/oci-common/node_modules/jws/LICENSE +17 -0
- package/node_modules/oci-common/node_modules/jws/index.js +22 -0
- package/node_modules/oci-common/node_modules/jws/lib/data-stream.js +55 -0
- package/node_modules/oci-common/node_modules/jws/lib/sign-stream.js +83 -0
- package/node_modules/oci-common/node_modules/jws/lib/tostring.js +10 -0
- package/node_modules/oci-common/node_modules/jws/lib/verify-stream.js +125 -0
- package/node_modules/oci-common/node_modules/jws/package.json +34 -0
- package/node_modules/oci-common/node_modules/jws/readme.md +255 -0
- package/node_modules/oci-common/node_modules/opossum/CHANGELOG.md +474 -0
- package/node_modules/oci-common/node_modules/opossum/LICENSE +201 -0
- package/node_modules/oci-common/node_modules/opossum/README.md +273 -0
- package/node_modules/oci-common/node_modules/opossum/dist/.nodelete +0 -0
- package/node_modules/oci-common/node_modules/opossum/dist/browser-test.map +1 -0
- package/node_modules/oci-common/node_modules/opossum/dist/opossum.js +3484 -0
- package/node_modules/oci-common/node_modules/opossum/dist/opossum.map +1 -0
- package/node_modules/oci-common/node_modules/opossum/dist/opossum.min.js +13 -0
- package/node_modules/oci-common/node_modules/opossum/dist/opossum.min.map +1 -0
- package/node_modules/oci-common/node_modules/opossum/index.js +3 -0
- package/node_modules/oci-common/node_modules/opossum/lib/circuit.js +713 -0
- package/node_modules/oci-common/node_modules/opossum/lib/semaphore.js +54 -0
- package/node_modules/oci-common/node_modules/opossum/lib/status.js +197 -0
- package/node_modules/oci-common/node_modules/opossum/package.json +80 -0
- package/node_modules/oci-common/node_modules/uuid/AUTHORS +5 -0
- package/node_modules/oci-common/node_modules/uuid/CHANGELOG.md +112 -0
- package/node_modules/oci-common/node_modules/uuid/LICENSE.md +21 -0
- package/node_modules/oci-common/node_modules/uuid/README.md +293 -0
- package/node_modules/oci-common/node_modules/uuid/bin/uuid +65 -0
- package/node_modules/oci-common/node_modules/uuid/index.js +8 -0
- package/node_modules/oci-common/node_modules/uuid/lib/bytesToUuid.js +24 -0
- package/node_modules/oci-common/node_modules/uuid/lib/md5-browser.js +216 -0
- package/node_modules/oci-common/node_modules/uuid/lib/md5.js +25 -0
- package/node_modules/oci-common/node_modules/uuid/lib/rng-browser.js +34 -0
- package/node_modules/oci-common/node_modules/uuid/lib/rng.js +8 -0
- package/node_modules/oci-common/node_modules/uuid/lib/sha1-browser.js +89 -0
- package/node_modules/oci-common/node_modules/uuid/lib/sha1.js +25 -0
- package/node_modules/oci-common/node_modules/uuid/lib/v35.js +57 -0
- package/node_modules/oci-common/node_modules/uuid/package.json +44 -0
- package/node_modules/oci-common/node_modules/uuid/v1.js +109 -0
- package/node_modules/oci-common/node_modules/uuid/v3.js +4 -0
- package/node_modules/oci-common/node_modules/uuid/v4.js +29 -0
- package/node_modules/oci-common/node_modules/uuid/v5.js +3 -0
- package/node_modules/oci-common/package.json +55 -0
- package/node_modules/oci-generativeaiagentruntime/LICENSE.txt +89 -0
- package/node_modules/oci-generativeaiagentruntime/NOTICE.txt +1 -0
- package/node_modules/oci-generativeaiagentruntime/README.md +22 -0
- package/node_modules/oci-generativeaiagentruntime/THIRD_PARTY_LICENSES.txt +576 -0
- package/node_modules/oci-generativeaiagentruntime/index.d.ts +29 -0
- package/node_modules/oci-generativeaiagentruntime/index.js +52 -0
- package/node_modules/oci-generativeaiagentruntime/index.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/client.d.ts +154 -0
- package/node_modules/oci-generativeaiagentruntime/lib/client.js +592 -0
- package/node_modules/oci-generativeaiagentruntime/lib/client.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/chat-details.d.ts +59 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/chat-details.js +80 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/chat-details.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/chat-result.d.ts +58 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/chat-result.js +92 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/chat-result.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/citation.d.ts +55 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/citation.js +66 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/citation.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/create-session-details.d.ts +39 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/create-session-details.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/create-session-details.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/error-trace.d.ts +42 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/error-trace.js +59 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/error-trace.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/execution-trace.d.ts +41 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/execution-trace.js +59 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/execution-trace.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/function-call.d.ts +39 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/function-call.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/function-call.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/function-calling-performed-action.d.ts +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/function-calling-performed-action.js +63 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/function-calling-performed-action.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/function-calling-required-action.d.ts +35 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/function-calling-required-action.js +71 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/function-calling-required-action.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/generation-trace.d.ts +46 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/generation-trace.js +71 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/generation-trace.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/generic-tool-input.d.ts +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/generic-tool-input.js +61 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/generic-tool-input.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/generic-tool-output.d.ts +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/generic-tool-output.js +61 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/generic-tool-output.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/human-approval-performed-action.d.ts +41 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/human-approval-performed-action.js +68 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/human-approval-performed-action.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/human-approval-required-action.d.ts +50 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/human-approval-required-action.js +73 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/human-approval-required-action.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/index.d.ts +109 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/index.js +132 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/index.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/knowledge-base-metadata-summary.d.ts +76 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/knowledge-base-metadata-summary.js +70 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/knowledge-base-metadata-summary.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/knowledge-base-metadata-value.d.ts +39 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/knowledge-base-metadata-value.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/knowledge-base-metadata-value.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/message-content.d.ts +44 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/message-content.js +80 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/message-content.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/message.d.ts +50 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/message.js +74 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/message.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/metadata-filter.d.ts +39 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/metadata-filter.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/metadata-filter.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/model-details.d.ts +40 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/model-details.js +64 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/model-details.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/model-params.d.ts +54 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/model-params.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/model-params.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/oci-database-source-location.d.ts +46 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/oci-database-source-location.js +63 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/oci-database-source-location.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/oci-object-storage-source-location.d.ts +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/oci-object-storage-source-location.js +63 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/oci-object-storage-source-location.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/oci-open-search-source-location.d.ts +46 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/oci-open-search-source-location.js +63 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/oci-open-search-source-location.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/paragraph-citation.d.ts +37 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/paragraph-citation.js +74 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/paragraph-citation.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/paragraph.d.ts +43 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/paragraph.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/paragraph.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/performed-action.d.ts +36 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/performed-action.js +81 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/performed-action.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/planning-trace.d.ts +45 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/planning-trace.js +71 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/planning-trace.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/rag-tool-output.d.ts +46 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/rag-tool-output.js +81 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/rag-tool-output.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/required-action.d.ts +36 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/required-action.js +81 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/required-action.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/retrieval-trace.d.ts +46 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/retrieval-trace.js +81 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/retrieval-trace.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/retrieve-metadata-details.d.ts +36 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/retrieve-metadata-details.js +70 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/retrieve-metadata-details.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/session.d.ts +55 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/session.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/session.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/source-details.d.ts +39 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/source-details.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/source-details.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/source-location.d.ts +32 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/source-location.js +85 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/source-location.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/sql-result-files.d.ts +39 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/sql-result-files.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/sql-result-files.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/sql-tool-output.d.ts +47 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/sql-tool-output.js +67 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/sql-tool-output.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/tool-input.d.ts +36 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/tool-input.js +77 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/tool-input.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/tool-invocation-trace.d.ts +45 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/tool-invocation-trace.js +59 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/tool-invocation-trace.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/tool-output.d.ts +40 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/tool-output.js +85 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/tool-output.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/trace.d.ts +50 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/trace.js +101 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/trace.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/update-session-details.d.ts +39 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/update-session-details.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/update-session-details.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/usage-details.d.ts +46 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/usage-details.js +38 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/usage-details.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/usage.d.ts +33 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/usage.js +72 -0
- package/node_modules/oci-generativeaiagentruntime/lib/model/usage.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/chat-request.d.ts +49 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/chat-request.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/chat-request.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/create-session-request.d.ts +40 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/create-session-request.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/create-session-request.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/delete-session-request.d.ts +39 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/delete-session-request.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/delete-session-request.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/get-session-request.d.ts +30 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/get-session-request.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/get-session-request.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/index.d.ts +33 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/index.js +24 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/index.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/retrieve-metadata-request.d.ts +49 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/retrieve-metadata-request.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/retrieve-metadata-request.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/update-session-request.d.ts +44 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/update-session-request.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/request/update-session-request.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/chat-response.d.ts +25 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/chat-response.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/chat-response.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/create-session-response.d.ts +30 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/create-session-response.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/create-session-response.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/delete-session-response.d.ts +20 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/delete-session-response.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/delete-session-response.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/get-session-response.d.ts +30 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/get-session-response.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/get-session-response.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/index.d.ts +33 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/index.js +24 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/index.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/retrieve-metadata-response.d.ts +30 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/retrieve-metadata-response.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/retrieve-metadata-response.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/update-session-response.d.ts +30 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/update-session-response.js +15 -0
- package/node_modules/oci-generativeaiagentruntime/lib/response/update-session-response.js.map +1 -0
- package/node_modules/oci-generativeaiagentruntime/package.json +29 -0
- package/node_modules/oci-workrequests/LICENSE.txt +89 -0
- package/node_modules/oci-workrequests/NOTICE.txt +1 -0
- package/node_modules/oci-workrequests/README.md +21 -0
- package/node_modules/oci-workrequests/THIRD_PARTY_LICENSES.txt +576 -0
- package/node_modules/oci-workrequests/index.d.ts +30 -0
- package/node_modules/oci-workrequests/index.js +53 -0
- package/node_modules/oci-workrequests/index.js.map +1 -0
- package/node_modules/oci-workrequests/lib/client.d.ts +240 -0
- package/node_modules/oci-workrequests/lib/client.js +602 -0
- package/node_modules/oci-workrequests/lib/client.js.map +1 -0
- package/node_modules/oci-workrequests/lib/model/index.d.ts +28 -0
- package/node_modules/oci-workrequests/lib/model/index.js +51 -0
- package/node_modules/oci-workrequests/lib/model/index.js.map +1 -0
- package/node_modules/oci-workrequests/lib/model/work-request-error.d.ts +39 -0
- package/node_modules/oci-workrequests/lib/model/work-request-error.js +35 -0
- package/node_modules/oci-workrequests/lib/model/work-request-error.js.map +1 -0
- package/node_modules/oci-workrequests/lib/model/work-request-log-entry.d.ts +35 -0
- package/node_modules/oci-workrequests/lib/model/work-request-log-entry.js +35 -0
- package/node_modules/oci-workrequests/lib/model/work-request-log-entry.js.map +1 -0
- package/node_modules/oci-workrequests/lib/model/work-request-resource.d.ts +61 -0
- package/node_modules/oci-workrequests/lib/model/work-request-resource.js +48 -0
- package/node_modules/oci-workrequests/lib/model/work-request-resource.js.map +1 -0
- package/node_modules/oci-workrequests/lib/model/work-request-summary.d.ts +78 -0
- package/node_modules/oci-workrequests/lib/model/work-request-summary.js +49 -0
- package/node_modules/oci-workrequests/lib/model/work-request-summary.js.map +1 -0
- package/node_modules/oci-workrequests/lib/model/work-request.d.ts +83 -0
- package/node_modules/oci-workrequests/lib/model/work-request.js +81 -0
- package/node_modules/oci-workrequests/lib/model/work-request.js.map +1 -0
- package/node_modules/oci-workrequests/lib/request/get-work-request-request.d.ts +28 -0
- package/node_modules/oci-workrequests/lib/request/get-work-request-request.js +15 -0
- package/node_modules/oci-workrequests/lib/request/get-work-request-request.js.map +1 -0
- package/node_modules/oci-workrequests/lib/request/index.d.ts +26 -0
- package/node_modules/oci-workrequests/lib/request/index.js +45 -0
- package/node_modules/oci-workrequests/lib/request/index.js.map +1 -0
- package/node_modules/oci-workrequests/lib/request/list-work-request-errors-request.d.ts +53 -0
- package/node_modules/oci-workrequests/lib/request/list-work-request-errors-request.js +24 -0
- package/node_modules/oci-workrequests/lib/request/list-work-request-errors-request.js.map +1 -0
- package/node_modules/oci-workrequests/lib/request/list-work-request-logs-request.d.ts +53 -0
- package/node_modules/oci-workrequests/lib/request/list-work-request-logs-request.js +24 -0
- package/node_modules/oci-workrequests/lib/request/list-work-request-logs-request.js.map +1 -0
- package/node_modules/oci-workrequests/lib/request/list-work-requests-request.d.ts +46 -0
- package/node_modules/oci-workrequests/lib/request/list-work-requests-request.js +15 -0
- package/node_modules/oci-workrequests/lib/request/list-work-requests-request.js.map +1 -0
- package/node_modules/oci-workrequests/lib/response/get-work-request-response.d.ts +25 -0
- package/node_modules/oci-workrequests/lib/response/get-work-request-response.js +15 -0
- package/node_modules/oci-workrequests/lib/response/get-work-request-response.js.map +1 -0
- package/node_modules/oci-workrequests/lib/response/index.d.ts +26 -0
- package/node_modules/oci-workrequests/lib/response/index.js +21 -0
- package/node_modules/oci-workrequests/lib/response/index.js.map +1 -0
- package/node_modules/oci-workrequests/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/node_modules/oci-workrequests/lib/response/list-work-request-errors-response.js +15 -0
- package/node_modules/oci-workrequests/lib/response/list-work-request-errors-response.js.map +1 -0
- package/node_modules/oci-workrequests/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/node_modules/oci-workrequests/lib/response/list-work-request-logs-response.js +15 -0
- package/node_modules/oci-workrequests/lib/response/list-work-request-logs-response.js.map +1 -0
- package/node_modules/oci-workrequests/lib/response/list-work-requests-response.d.ts +32 -0
- package/node_modules/oci-workrequests/lib/response/list-work-requests-response.js +15 -0
- package/node_modules/oci-workrequests/lib/response/list-work-requests-response.js.map +1 -0
- package/node_modules/oci-workrequests/lib/workrequest-helper.d.ts +4 -0
- package/node_modules/oci-workrequests/lib/workrequest-helper.js +24 -0
- package/node_modules/oci-workrequests/lib/workrequest-helper.js.map +1 -0
- package/node_modules/oci-workrequests/lib/workrequest-waiter.d.ts +33 -0
- package/node_modules/oci-workrequests/lib/workrequest-waiter.js +50 -0
- package/node_modules/oci-workrequests/lib/workrequest-waiter.js.map +1 -0
- package/node_modules/oci-workrequests/package.json +29 -0
- package/node_modules/opossum/LICENSE +201 -0
- package/node_modules/opossum/README.md +541 -0
- package/node_modules/opossum/dist/.nodelete +0 -0
- package/node_modules/opossum/dist/opossum.js +2059 -0
- package/node_modules/opossum/dist/opossum.map +1 -0
- package/node_modules/opossum/dist/opossum.min.js +2 -0
- package/node_modules/opossum/dist/opossum.min.map +1 -0
- package/node_modules/opossum/index.js +3 -0
- package/node_modules/opossum/lib/cache.js +65 -0
- package/node_modules/opossum/lib/circuit.js +1029 -0
- package/node_modules/opossum/lib/semaphore.js +54 -0
- package/node_modules/opossum/lib/status.js +247 -0
- package/node_modules/opossum/package.json +77 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +664 -0
- package/node_modules/semver/bin/semver.js +191 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +557 -0
- package/node_modules/semver/classes/semver.js +333 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +91 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/sshpk/.npmignore +9 -0
- package/node_modules/sshpk/.travis.yml +11 -0
- package/node_modules/sshpk/LICENSE +18 -0
- package/node_modules/sshpk/README.md +804 -0
- package/node_modules/sshpk/bin/sshpk-conv +243 -0
- package/node_modules/sshpk/bin/sshpk-sign +191 -0
- package/node_modules/sshpk/bin/sshpk-verify +167 -0
- package/node_modules/sshpk/lib/algs.js +168 -0
- package/node_modules/sshpk/lib/certificate.js +410 -0
- package/node_modules/sshpk/lib/dhe.js +397 -0
- package/node_modules/sshpk/lib/ed-compat.js +92 -0
- package/node_modules/sshpk/lib/errors.js +84 -0
- package/node_modules/sshpk/lib/fingerprint.js +220 -0
- package/node_modules/sshpk/lib/formats/auto.js +124 -0
- package/node_modules/sshpk/lib/formats/dnssec.js +287 -0
- package/node_modules/sshpk/lib/formats/openssh-cert.js +352 -0
- package/node_modules/sshpk/lib/formats/pem.js +290 -0
- package/node_modules/sshpk/lib/formats/pkcs1.js +373 -0
- package/node_modules/sshpk/lib/formats/pkcs8.js +631 -0
- package/node_modules/sshpk/lib/formats/putty.js +99 -0
- package/node_modules/sshpk/lib/formats/rfc4253.js +166 -0
- package/node_modules/sshpk/lib/formats/ssh-private.js +262 -0
- package/node_modules/sshpk/lib/formats/ssh.js +115 -0
- package/node_modules/sshpk/lib/formats/x509-pem.js +88 -0
- package/node_modules/sshpk/lib/formats/x509.js +752 -0
- package/node_modules/sshpk/lib/identity.js +373 -0
- package/node_modules/sshpk/lib/index.js +40 -0
- package/node_modules/sshpk/lib/key.js +294 -0
- package/node_modules/sshpk/lib/private-key.js +246 -0
- package/node_modules/sshpk/lib/signature.js +314 -0
- package/node_modules/sshpk/lib/ssh-buffer.js +149 -0
- package/node_modules/sshpk/lib/utils.js +404 -0
- package/node_modules/sshpk/man/man1/sshpk-conv.1 +135 -0
- package/node_modules/sshpk/man/man1/sshpk-sign.1 +81 -0
- package/node_modules/sshpk/man/man1/sshpk-verify.1 +68 -0
- package/node_modules/sshpk/package.json +60 -0
- package/node_modules/tr46/.npmignore +4 -0
- package/node_modules/tr46/index.js +193 -0
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +1 -0
- package/node_modules/tr46/package.json +31 -0
- package/node_modules/tweetnacl/.npmignore +4 -0
- package/node_modules/tweetnacl/AUTHORS.md +28 -0
- package/node_modules/tweetnacl/CHANGELOG.md +221 -0
- package/node_modules/tweetnacl/LICENSE +24 -0
- package/node_modules/tweetnacl/PULL_REQUEST_TEMPLATE.md +20 -0
- package/node_modules/tweetnacl/README.md +459 -0
- package/node_modules/tweetnacl/nacl-fast.js +2388 -0
- package/node_modules/tweetnacl/nacl-fast.min.js +2 -0
- package/node_modules/tweetnacl/nacl.d.ts +98 -0
- package/node_modules/tweetnacl/nacl.js +1175 -0
- package/node_modules/tweetnacl/nacl.min.js +1 -0
- package/node_modules/tweetnacl/package.json +58 -0
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +63 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/node_modules/verror/.npmignore +9 -0
- package/node_modules/verror/CHANGES.md +28 -0
- package/node_modules/verror/CONTRIBUTING.md +19 -0
- package/node_modules/verror/LICENSE +19 -0
- package/node_modules/verror/README.md +528 -0
- package/node_modules/verror/lib/verror.js +451 -0
- package/node_modules/verror/package.json +22 -0
- package/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/node_modules/webidl-conversions/README.md +53 -0
- package/node_modules/webidl-conversions/lib/index.js +189 -0
- package/node_modules/webidl-conversions/package.json +23 -0
- package/node_modules/whatwg-fetch/LICENSE +20 -0
- package/node_modules/whatwg-fetch/README.md +349 -0
- package/node_modules/whatwg-fetch/dist/fetch.umd.js +657 -0
- package/node_modules/whatwg-fetch/dist/fetch.umd.js.flow +119 -0
- package/node_modules/whatwg-fetch/fetch.js +642 -0
- package/node_modules/whatwg-fetch/fetch.js.flow +119 -0
- package/node_modules/whatwg-fetch/package.json +42 -0
- package/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules/whatwg-url/README.md +67 -0
- package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- package/node_modules/whatwg-url/lib/URL.js +196 -0
- package/node_modules/whatwg-url/lib/public-api.js +11 -0
- package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- package/node_modules/whatwg-url/lib/utils.js +20 -0
- package/node_modules/whatwg-url/package.json +32 -0
- package/package.json +8 -2
|
@@ -0,0 +1,1775 @@
|
|
|
1
|
+
import Stream from 'stream';
|
|
2
|
+
import http from 'http';
|
|
3
|
+
import Url from 'url';
|
|
4
|
+
import whatwgUrl from 'whatwg-url';
|
|
5
|
+
import https from 'https';
|
|
6
|
+
import zlib from 'zlib';
|
|
7
|
+
|
|
8
|
+
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js
|
|
9
|
+
|
|
10
|
+
// fix for "Readable" isn't a named export issue
|
|
11
|
+
const Readable = Stream.Readable;
|
|
12
|
+
|
|
13
|
+
const BUFFER = Symbol('buffer');
|
|
14
|
+
const TYPE = Symbol('type');
|
|
15
|
+
|
|
16
|
+
class Blob {
|
|
17
|
+
constructor() {
|
|
18
|
+
this[TYPE] = '';
|
|
19
|
+
|
|
20
|
+
const blobParts = arguments[0];
|
|
21
|
+
const options = arguments[1];
|
|
22
|
+
|
|
23
|
+
const buffers = [];
|
|
24
|
+
let size = 0;
|
|
25
|
+
|
|
26
|
+
if (blobParts) {
|
|
27
|
+
const a = blobParts;
|
|
28
|
+
const length = Number(a.length);
|
|
29
|
+
for (let i = 0; i < length; i++) {
|
|
30
|
+
const element = a[i];
|
|
31
|
+
let buffer;
|
|
32
|
+
if (element instanceof Buffer) {
|
|
33
|
+
buffer = element;
|
|
34
|
+
} else if (ArrayBuffer.isView(element)) {
|
|
35
|
+
buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength);
|
|
36
|
+
} else if (element instanceof ArrayBuffer) {
|
|
37
|
+
buffer = Buffer.from(element);
|
|
38
|
+
} else if (element instanceof Blob) {
|
|
39
|
+
buffer = element[BUFFER];
|
|
40
|
+
} else {
|
|
41
|
+
buffer = Buffer.from(typeof element === 'string' ? element : String(element));
|
|
42
|
+
}
|
|
43
|
+
size += buffer.length;
|
|
44
|
+
buffers.push(buffer);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
this[BUFFER] = Buffer.concat(buffers);
|
|
49
|
+
|
|
50
|
+
let type = options && options.type !== undefined && String(options.type).toLowerCase();
|
|
51
|
+
if (type && !/[^\u0020-\u007E]/.test(type)) {
|
|
52
|
+
this[TYPE] = type;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
get size() {
|
|
56
|
+
return this[BUFFER].length;
|
|
57
|
+
}
|
|
58
|
+
get type() {
|
|
59
|
+
return this[TYPE];
|
|
60
|
+
}
|
|
61
|
+
text() {
|
|
62
|
+
return Promise.resolve(this[BUFFER].toString());
|
|
63
|
+
}
|
|
64
|
+
arrayBuffer() {
|
|
65
|
+
const buf = this[BUFFER];
|
|
66
|
+
const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
|
|
67
|
+
return Promise.resolve(ab);
|
|
68
|
+
}
|
|
69
|
+
stream() {
|
|
70
|
+
const readable = new Readable();
|
|
71
|
+
readable._read = function () {};
|
|
72
|
+
readable.push(this[BUFFER]);
|
|
73
|
+
readable.push(null);
|
|
74
|
+
return readable;
|
|
75
|
+
}
|
|
76
|
+
toString() {
|
|
77
|
+
return '[object Blob]';
|
|
78
|
+
}
|
|
79
|
+
slice() {
|
|
80
|
+
const size = this.size;
|
|
81
|
+
|
|
82
|
+
const start = arguments[0];
|
|
83
|
+
const end = arguments[1];
|
|
84
|
+
let relativeStart, relativeEnd;
|
|
85
|
+
if (start === undefined) {
|
|
86
|
+
relativeStart = 0;
|
|
87
|
+
} else if (start < 0) {
|
|
88
|
+
relativeStart = Math.max(size + start, 0);
|
|
89
|
+
} else {
|
|
90
|
+
relativeStart = Math.min(start, size);
|
|
91
|
+
}
|
|
92
|
+
if (end === undefined) {
|
|
93
|
+
relativeEnd = size;
|
|
94
|
+
} else if (end < 0) {
|
|
95
|
+
relativeEnd = Math.max(size + end, 0);
|
|
96
|
+
} else {
|
|
97
|
+
relativeEnd = Math.min(end, size);
|
|
98
|
+
}
|
|
99
|
+
const span = Math.max(relativeEnd - relativeStart, 0);
|
|
100
|
+
|
|
101
|
+
const buffer = this[BUFFER];
|
|
102
|
+
const slicedBuffer = buffer.slice(relativeStart, relativeStart + span);
|
|
103
|
+
const blob = new Blob([], { type: arguments[2] });
|
|
104
|
+
blob[BUFFER] = slicedBuffer;
|
|
105
|
+
return blob;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
Object.defineProperties(Blob.prototype, {
|
|
110
|
+
size: { enumerable: true },
|
|
111
|
+
type: { enumerable: true },
|
|
112
|
+
slice: { enumerable: true }
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
|
|
116
|
+
value: 'Blob',
|
|
117
|
+
writable: false,
|
|
118
|
+
enumerable: false,
|
|
119
|
+
configurable: true
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* fetch-error.js
|
|
124
|
+
*
|
|
125
|
+
* FetchError interface for operational errors
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Create FetchError instance
|
|
130
|
+
*
|
|
131
|
+
* @param String message Error message for human
|
|
132
|
+
* @param String type Error type for machine
|
|
133
|
+
* @param String systemError For Node.js system error
|
|
134
|
+
* @return FetchError
|
|
135
|
+
*/
|
|
136
|
+
function FetchError(message, type, systemError) {
|
|
137
|
+
Error.call(this, message);
|
|
138
|
+
|
|
139
|
+
this.message = message;
|
|
140
|
+
this.type = type;
|
|
141
|
+
|
|
142
|
+
// when err.type is `system`, err.code contains system error code
|
|
143
|
+
if (systemError) {
|
|
144
|
+
this.code = this.errno = systemError.code;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// hide custom error implementation details from end-users
|
|
148
|
+
Error.captureStackTrace(this, this.constructor);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
FetchError.prototype = Object.create(Error.prototype);
|
|
152
|
+
FetchError.prototype.constructor = FetchError;
|
|
153
|
+
FetchError.prototype.name = 'FetchError';
|
|
154
|
+
|
|
155
|
+
let convert;
|
|
156
|
+
try {
|
|
157
|
+
convert = require('encoding').convert;
|
|
158
|
+
} catch (e) {}
|
|
159
|
+
|
|
160
|
+
const INTERNALS = Symbol('Body internals');
|
|
161
|
+
|
|
162
|
+
// fix an issue where "PassThrough" isn't a named export for node <10
|
|
163
|
+
const PassThrough = Stream.PassThrough;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Body mixin
|
|
167
|
+
*
|
|
168
|
+
* Ref: https://fetch.spec.whatwg.org/#body
|
|
169
|
+
*
|
|
170
|
+
* @param Stream body Readable stream
|
|
171
|
+
* @param Object opts Response options
|
|
172
|
+
* @return Void
|
|
173
|
+
*/
|
|
174
|
+
function Body(body) {
|
|
175
|
+
var _this = this;
|
|
176
|
+
|
|
177
|
+
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
178
|
+
_ref$size = _ref.size;
|
|
179
|
+
|
|
180
|
+
let size = _ref$size === undefined ? 0 : _ref$size;
|
|
181
|
+
var _ref$timeout = _ref.timeout;
|
|
182
|
+
let timeout = _ref$timeout === undefined ? 0 : _ref$timeout;
|
|
183
|
+
|
|
184
|
+
if (body == null) {
|
|
185
|
+
// body is undefined or null
|
|
186
|
+
body = null;
|
|
187
|
+
} else if (isURLSearchParams(body)) {
|
|
188
|
+
// body is a URLSearchParams
|
|
189
|
+
body = Buffer.from(body.toString());
|
|
190
|
+
} else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
|
|
191
|
+
// body is ArrayBuffer
|
|
192
|
+
body = Buffer.from(body);
|
|
193
|
+
} else if (ArrayBuffer.isView(body)) {
|
|
194
|
+
// body is ArrayBufferView
|
|
195
|
+
body = Buffer.from(body.buffer, body.byteOffset, body.byteLength);
|
|
196
|
+
} else if (body instanceof Stream) ; else {
|
|
197
|
+
// none of the above
|
|
198
|
+
// coerce to string then buffer
|
|
199
|
+
body = Buffer.from(String(body));
|
|
200
|
+
}
|
|
201
|
+
this[INTERNALS] = {
|
|
202
|
+
body,
|
|
203
|
+
disturbed: false,
|
|
204
|
+
error: null
|
|
205
|
+
};
|
|
206
|
+
this.size = size;
|
|
207
|
+
this.timeout = timeout;
|
|
208
|
+
|
|
209
|
+
if (body instanceof Stream) {
|
|
210
|
+
body.on('error', function (err) {
|
|
211
|
+
const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err);
|
|
212
|
+
_this[INTERNALS].error = error;
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
Body.prototype = {
|
|
218
|
+
get body() {
|
|
219
|
+
return this[INTERNALS].body;
|
|
220
|
+
},
|
|
221
|
+
|
|
222
|
+
get bodyUsed() {
|
|
223
|
+
return this[INTERNALS].disturbed;
|
|
224
|
+
},
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Decode response as ArrayBuffer
|
|
228
|
+
*
|
|
229
|
+
* @return Promise
|
|
230
|
+
*/
|
|
231
|
+
arrayBuffer() {
|
|
232
|
+
return consumeBody.call(this).then(function (buf) {
|
|
233
|
+
return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
|
|
234
|
+
});
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Return raw response as Blob
|
|
239
|
+
*
|
|
240
|
+
* @return Promise
|
|
241
|
+
*/
|
|
242
|
+
blob() {
|
|
243
|
+
let ct = this.headers && this.headers.get('content-type') || '';
|
|
244
|
+
return consumeBody.call(this).then(function (buf) {
|
|
245
|
+
return Object.assign(
|
|
246
|
+
// Prevent copying
|
|
247
|
+
new Blob([], {
|
|
248
|
+
type: ct.toLowerCase()
|
|
249
|
+
}), {
|
|
250
|
+
[BUFFER]: buf
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
},
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Decode response as json
|
|
257
|
+
*
|
|
258
|
+
* @return Promise
|
|
259
|
+
*/
|
|
260
|
+
json() {
|
|
261
|
+
var _this2 = this;
|
|
262
|
+
|
|
263
|
+
return consumeBody.call(this).then(function (buffer) {
|
|
264
|
+
try {
|
|
265
|
+
return JSON.parse(buffer.toString());
|
|
266
|
+
} catch (err) {
|
|
267
|
+
return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json'));
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
},
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Decode response as text
|
|
274
|
+
*
|
|
275
|
+
* @return Promise
|
|
276
|
+
*/
|
|
277
|
+
text() {
|
|
278
|
+
return consumeBody.call(this).then(function (buffer) {
|
|
279
|
+
return buffer.toString();
|
|
280
|
+
});
|
|
281
|
+
},
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Decode response as buffer (non-spec api)
|
|
285
|
+
*
|
|
286
|
+
* @return Promise
|
|
287
|
+
*/
|
|
288
|
+
buffer() {
|
|
289
|
+
return consumeBody.call(this);
|
|
290
|
+
},
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Decode response as text, while automatically detecting the encoding and
|
|
294
|
+
* trying to decode to UTF-8 (non-spec api)
|
|
295
|
+
*
|
|
296
|
+
* @return Promise
|
|
297
|
+
*/
|
|
298
|
+
textConverted() {
|
|
299
|
+
var _this3 = this;
|
|
300
|
+
|
|
301
|
+
return consumeBody.call(this).then(function (buffer) {
|
|
302
|
+
return convertBody(buffer, _this3.headers);
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
// In browsers, all properties are enumerable.
|
|
308
|
+
Object.defineProperties(Body.prototype, {
|
|
309
|
+
body: { enumerable: true },
|
|
310
|
+
bodyUsed: { enumerable: true },
|
|
311
|
+
arrayBuffer: { enumerable: true },
|
|
312
|
+
blob: { enumerable: true },
|
|
313
|
+
json: { enumerable: true },
|
|
314
|
+
text: { enumerable: true }
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
Body.mixIn = function (proto) {
|
|
318
|
+
for (const name of Object.getOwnPropertyNames(Body.prototype)) {
|
|
319
|
+
// istanbul ignore else: future proof
|
|
320
|
+
if (!(name in proto)) {
|
|
321
|
+
const desc = Object.getOwnPropertyDescriptor(Body.prototype, name);
|
|
322
|
+
Object.defineProperty(proto, name, desc);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Consume and convert an entire Body to a Buffer.
|
|
329
|
+
*
|
|
330
|
+
* Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body
|
|
331
|
+
*
|
|
332
|
+
* @return Promise
|
|
333
|
+
*/
|
|
334
|
+
function consumeBody() {
|
|
335
|
+
var _this4 = this;
|
|
336
|
+
|
|
337
|
+
if (this[INTERNALS].disturbed) {
|
|
338
|
+
return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`));
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
this[INTERNALS].disturbed = true;
|
|
342
|
+
|
|
343
|
+
if (this[INTERNALS].error) {
|
|
344
|
+
return Body.Promise.reject(this[INTERNALS].error);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
let body = this.body;
|
|
348
|
+
|
|
349
|
+
// body is null
|
|
350
|
+
if (body === null) {
|
|
351
|
+
return Body.Promise.resolve(Buffer.alloc(0));
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// body is blob
|
|
355
|
+
if (isBlob(body)) {
|
|
356
|
+
body = body.stream();
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// body is buffer
|
|
360
|
+
if (Buffer.isBuffer(body)) {
|
|
361
|
+
return Body.Promise.resolve(body);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// istanbul ignore if: should never happen
|
|
365
|
+
if (!(body instanceof Stream)) {
|
|
366
|
+
return Body.Promise.resolve(Buffer.alloc(0));
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// body is stream
|
|
370
|
+
// get ready to actually consume the body
|
|
371
|
+
let accum = [];
|
|
372
|
+
let accumBytes = 0;
|
|
373
|
+
let abort = false;
|
|
374
|
+
|
|
375
|
+
return new Body.Promise(function (resolve, reject) {
|
|
376
|
+
let resTimeout;
|
|
377
|
+
|
|
378
|
+
// allow timeout on slow response body
|
|
379
|
+
if (_this4.timeout) {
|
|
380
|
+
resTimeout = setTimeout(function () {
|
|
381
|
+
abort = true;
|
|
382
|
+
reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout'));
|
|
383
|
+
}, _this4.timeout);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
// handle stream errors
|
|
387
|
+
body.on('error', function (err) {
|
|
388
|
+
if (err.name === 'AbortError') {
|
|
389
|
+
// if the request was aborted, reject with this Error
|
|
390
|
+
abort = true;
|
|
391
|
+
reject(err);
|
|
392
|
+
} else {
|
|
393
|
+
// other errors, such as incorrect content-encoding
|
|
394
|
+
reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err));
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
|
|
398
|
+
body.on('data', function (chunk) {
|
|
399
|
+
if (abort || chunk === null) {
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
if (_this4.size && accumBytes + chunk.length > _this4.size) {
|
|
404
|
+
abort = true;
|
|
405
|
+
reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size'));
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
accumBytes += chunk.length;
|
|
410
|
+
accum.push(chunk);
|
|
411
|
+
});
|
|
412
|
+
|
|
413
|
+
body.on('end', function () {
|
|
414
|
+
if (abort) {
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
clearTimeout(resTimeout);
|
|
419
|
+
|
|
420
|
+
try {
|
|
421
|
+
resolve(Buffer.concat(accum, accumBytes));
|
|
422
|
+
} catch (err) {
|
|
423
|
+
// handle streams that have accumulated too much data (issue #414)
|
|
424
|
+
reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err));
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Detect buffer encoding and convert to target encoding
|
|
432
|
+
* ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding
|
|
433
|
+
*
|
|
434
|
+
* @param Buffer buffer Incoming buffer
|
|
435
|
+
* @param String encoding Target encoding
|
|
436
|
+
* @return String
|
|
437
|
+
*/
|
|
438
|
+
function convertBody(buffer, headers) {
|
|
439
|
+
if (typeof convert !== 'function') {
|
|
440
|
+
throw new Error('The package `encoding` must be installed to use the textConverted() function');
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
const ct = headers.get('content-type');
|
|
444
|
+
let charset = 'utf-8';
|
|
445
|
+
let res, str;
|
|
446
|
+
|
|
447
|
+
// header
|
|
448
|
+
if (ct) {
|
|
449
|
+
res = /charset=([^;]*)/i.exec(ct);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// no charset in content type, peek at response body for at most 1024 bytes
|
|
453
|
+
str = buffer.slice(0, 1024).toString();
|
|
454
|
+
|
|
455
|
+
// html5
|
|
456
|
+
if (!res && str) {
|
|
457
|
+
res = /<meta.+?charset=(['"])(.+?)\1/i.exec(str);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
// html4
|
|
461
|
+
if (!res && str) {
|
|
462
|
+
res = /<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(str);
|
|
463
|
+
if (!res) {
|
|
464
|
+
res = /<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(str);
|
|
465
|
+
if (res) {
|
|
466
|
+
res.pop(); // drop last quote
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
if (res) {
|
|
471
|
+
res = /charset=(.*)/i.exec(res.pop());
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// xml
|
|
476
|
+
if (!res && str) {
|
|
477
|
+
res = /<\?xml.+?encoding=(['"])(.+?)\1/i.exec(str);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// found charset
|
|
481
|
+
if (res) {
|
|
482
|
+
charset = res.pop();
|
|
483
|
+
|
|
484
|
+
// prevent decode issues when sites use incorrect encoding
|
|
485
|
+
// ref: https://hsivonen.fi/encoding-menu/
|
|
486
|
+
if (charset === 'gb2312' || charset === 'gbk') {
|
|
487
|
+
charset = 'gb18030';
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// turn raw buffers into a single utf-8 buffer
|
|
492
|
+
return convert(buffer, 'UTF-8', charset).toString();
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Detect a URLSearchParams object
|
|
497
|
+
* ref: https://github.com/bitinn/node-fetch/issues/296#issuecomment-307598143
|
|
498
|
+
*
|
|
499
|
+
* @param Object obj Object to detect by type or brand
|
|
500
|
+
* @return String
|
|
501
|
+
*/
|
|
502
|
+
function isURLSearchParams(obj) {
|
|
503
|
+
// Duck-typing as a necessary condition.
|
|
504
|
+
if (typeof obj !== 'object' || typeof obj.append !== 'function' || typeof obj.delete !== 'function' || typeof obj.get !== 'function' || typeof obj.getAll !== 'function' || typeof obj.has !== 'function' || typeof obj.set !== 'function') {
|
|
505
|
+
return false;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
// Brand-checking and more duck-typing as optional condition.
|
|
509
|
+
return obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function';
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Check if `obj` is a W3C `Blob` object (which `File` inherits from)
|
|
514
|
+
* @param {*} obj
|
|
515
|
+
* @return {boolean}
|
|
516
|
+
*/
|
|
517
|
+
function isBlob(obj) {
|
|
518
|
+
return typeof obj === 'object' && typeof obj.arrayBuffer === 'function' && typeof obj.type === 'string' && typeof obj.stream === 'function' && typeof obj.constructor === 'function' && typeof obj.constructor.name === 'string' && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* Clone body given Res/Req instance
|
|
523
|
+
*
|
|
524
|
+
* @param Mixed instance Response or Request instance
|
|
525
|
+
* @return Mixed
|
|
526
|
+
*/
|
|
527
|
+
function clone(instance) {
|
|
528
|
+
let p1, p2;
|
|
529
|
+
let body = instance.body;
|
|
530
|
+
|
|
531
|
+
// don't allow cloning a used body
|
|
532
|
+
if (instance.bodyUsed) {
|
|
533
|
+
throw new Error('cannot clone body after it is used');
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
// check that body is a stream and not form-data object
|
|
537
|
+
// note: we can't clone the form-data object without having it as a dependency
|
|
538
|
+
if (body instanceof Stream && typeof body.getBoundary !== 'function') {
|
|
539
|
+
// tee instance body
|
|
540
|
+
p1 = new PassThrough();
|
|
541
|
+
p2 = new PassThrough();
|
|
542
|
+
body.pipe(p1);
|
|
543
|
+
body.pipe(p2);
|
|
544
|
+
// set instance body to teed body and return the other teed body
|
|
545
|
+
instance[INTERNALS].body = p1;
|
|
546
|
+
body = p2;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
return body;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Performs the operation "extract a `Content-Type` value from |object|" as
|
|
554
|
+
* specified in the specification:
|
|
555
|
+
* https://fetch.spec.whatwg.org/#concept-bodyinit-extract
|
|
556
|
+
*
|
|
557
|
+
* This function assumes that instance.body is present.
|
|
558
|
+
*
|
|
559
|
+
* @param Mixed instance Any options.body input
|
|
560
|
+
*/
|
|
561
|
+
function extractContentType(body) {
|
|
562
|
+
if (body === null) {
|
|
563
|
+
// body is null
|
|
564
|
+
return null;
|
|
565
|
+
} else if (typeof body === 'string') {
|
|
566
|
+
// body is string
|
|
567
|
+
return 'text/plain;charset=UTF-8';
|
|
568
|
+
} else if (isURLSearchParams(body)) {
|
|
569
|
+
// body is a URLSearchParams
|
|
570
|
+
return 'application/x-www-form-urlencoded;charset=UTF-8';
|
|
571
|
+
} else if (isBlob(body)) {
|
|
572
|
+
// body is blob
|
|
573
|
+
return body.type || null;
|
|
574
|
+
} else if (Buffer.isBuffer(body)) {
|
|
575
|
+
// body is buffer
|
|
576
|
+
return null;
|
|
577
|
+
} else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') {
|
|
578
|
+
// body is ArrayBuffer
|
|
579
|
+
return null;
|
|
580
|
+
} else if (ArrayBuffer.isView(body)) {
|
|
581
|
+
// body is ArrayBufferView
|
|
582
|
+
return null;
|
|
583
|
+
} else if (typeof body.getBoundary === 'function') {
|
|
584
|
+
// detect form data input from form-data module
|
|
585
|
+
return `multipart/form-data;boundary=${body.getBoundary()}`;
|
|
586
|
+
} else if (body instanceof Stream) {
|
|
587
|
+
// body is stream
|
|
588
|
+
// can't really do much about this
|
|
589
|
+
return null;
|
|
590
|
+
} else {
|
|
591
|
+
// Body constructor defaults other things to string
|
|
592
|
+
return 'text/plain;charset=UTF-8';
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* The Fetch Standard treats this as if "total bytes" is a property on the body.
|
|
598
|
+
* For us, we have to explicitly get it with a function.
|
|
599
|
+
*
|
|
600
|
+
* ref: https://fetch.spec.whatwg.org/#concept-body-total-bytes
|
|
601
|
+
*
|
|
602
|
+
* @param Body instance Instance of Body
|
|
603
|
+
* @return Number? Number of bytes, or null if not possible
|
|
604
|
+
*/
|
|
605
|
+
function getTotalBytes(instance) {
|
|
606
|
+
const body = instance.body;
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
if (body === null) {
|
|
610
|
+
// body is null
|
|
611
|
+
return 0;
|
|
612
|
+
} else if (isBlob(body)) {
|
|
613
|
+
return body.size;
|
|
614
|
+
} else if (Buffer.isBuffer(body)) {
|
|
615
|
+
// body is buffer
|
|
616
|
+
return body.length;
|
|
617
|
+
} else if (body && typeof body.getLengthSync === 'function') {
|
|
618
|
+
// detect form data input from form-data module
|
|
619
|
+
if (body._lengthRetrievers && body._lengthRetrievers.length == 0 || // 1.x
|
|
620
|
+
body.hasKnownLength && body.hasKnownLength()) {
|
|
621
|
+
// 2.x
|
|
622
|
+
return body.getLengthSync();
|
|
623
|
+
}
|
|
624
|
+
return null;
|
|
625
|
+
} else {
|
|
626
|
+
// body is stream
|
|
627
|
+
return null;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Write a Body to a Node.js WritableStream (e.g. http.Request) object.
|
|
633
|
+
*
|
|
634
|
+
* @param Body instance Instance of Body
|
|
635
|
+
* @return Void
|
|
636
|
+
*/
|
|
637
|
+
function writeToStream(dest, instance) {
|
|
638
|
+
const body = instance.body;
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
if (body === null) {
|
|
642
|
+
// body is null
|
|
643
|
+
dest.end();
|
|
644
|
+
} else if (isBlob(body)) {
|
|
645
|
+
body.stream().pipe(dest);
|
|
646
|
+
} else if (Buffer.isBuffer(body)) {
|
|
647
|
+
// body is buffer
|
|
648
|
+
dest.write(body);
|
|
649
|
+
dest.end();
|
|
650
|
+
} else {
|
|
651
|
+
// body is stream
|
|
652
|
+
body.pipe(dest);
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
// expose Promise
|
|
657
|
+
Body.Promise = global.Promise;
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* headers.js
|
|
661
|
+
*
|
|
662
|
+
* Headers class offers convenient helpers
|
|
663
|
+
*/
|
|
664
|
+
|
|
665
|
+
const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/;
|
|
666
|
+
const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/;
|
|
667
|
+
|
|
668
|
+
function validateName(name) {
|
|
669
|
+
name = `${name}`;
|
|
670
|
+
if (invalidTokenRegex.test(name) || name === '') {
|
|
671
|
+
throw new TypeError(`${name} is not a legal HTTP header name`);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
function validateValue(value) {
|
|
676
|
+
value = `${value}`;
|
|
677
|
+
if (invalidHeaderCharRegex.test(value)) {
|
|
678
|
+
throw new TypeError(`${value} is not a legal HTTP header value`);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Find the key in the map object given a header name.
|
|
684
|
+
*
|
|
685
|
+
* Returns undefined if not found.
|
|
686
|
+
*
|
|
687
|
+
* @param String name Header name
|
|
688
|
+
* @return String|Undefined
|
|
689
|
+
*/
|
|
690
|
+
function find(map, name) {
|
|
691
|
+
name = name.toLowerCase();
|
|
692
|
+
for (const key in map) {
|
|
693
|
+
if (key.toLowerCase() === name) {
|
|
694
|
+
return key;
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
return undefined;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
const MAP = Symbol('map');
|
|
701
|
+
class Headers {
|
|
702
|
+
/**
|
|
703
|
+
* Headers class
|
|
704
|
+
*
|
|
705
|
+
* @param Object headers Response headers
|
|
706
|
+
* @return Void
|
|
707
|
+
*/
|
|
708
|
+
constructor() {
|
|
709
|
+
let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined;
|
|
710
|
+
|
|
711
|
+
this[MAP] = Object.create(null);
|
|
712
|
+
|
|
713
|
+
if (init instanceof Headers) {
|
|
714
|
+
const rawHeaders = init.raw();
|
|
715
|
+
const headerNames = Object.keys(rawHeaders);
|
|
716
|
+
|
|
717
|
+
for (const headerName of headerNames) {
|
|
718
|
+
for (const value of rawHeaders[headerName]) {
|
|
719
|
+
this.append(headerName, value);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// We don't worry about converting prop to ByteString here as append()
|
|
727
|
+
// will handle it.
|
|
728
|
+
if (init == null) ; else if (typeof init === 'object') {
|
|
729
|
+
const method = init[Symbol.iterator];
|
|
730
|
+
if (method != null) {
|
|
731
|
+
if (typeof method !== 'function') {
|
|
732
|
+
throw new TypeError('Header pairs must be iterable');
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
// sequence<sequence<ByteString>>
|
|
736
|
+
// Note: per spec we have to first exhaust the lists then process them
|
|
737
|
+
const pairs = [];
|
|
738
|
+
for (const pair of init) {
|
|
739
|
+
if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') {
|
|
740
|
+
throw new TypeError('Each header pair must be iterable');
|
|
741
|
+
}
|
|
742
|
+
pairs.push(Array.from(pair));
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
for (const pair of pairs) {
|
|
746
|
+
if (pair.length !== 2) {
|
|
747
|
+
throw new TypeError('Each header pair must be a name/value tuple');
|
|
748
|
+
}
|
|
749
|
+
this.append(pair[0], pair[1]);
|
|
750
|
+
}
|
|
751
|
+
} else {
|
|
752
|
+
// record<ByteString, ByteString>
|
|
753
|
+
for (const key of Object.keys(init)) {
|
|
754
|
+
const value = init[key];
|
|
755
|
+
this.append(key, value);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
} else {
|
|
759
|
+
throw new TypeError('Provided initializer must be an object');
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Return combined header value given name
|
|
765
|
+
*
|
|
766
|
+
* @param String name Header name
|
|
767
|
+
* @return Mixed
|
|
768
|
+
*/
|
|
769
|
+
get(name) {
|
|
770
|
+
name = `${name}`;
|
|
771
|
+
validateName(name);
|
|
772
|
+
const key = find(this[MAP], name);
|
|
773
|
+
if (key === undefined) {
|
|
774
|
+
return null;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
return this[MAP][key].join(', ');
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Iterate over all headers
|
|
782
|
+
*
|
|
783
|
+
* @param Function callback Executed for each item with parameters (value, name, thisArg)
|
|
784
|
+
* @param Boolean thisArg `this` context for callback function
|
|
785
|
+
* @return Void
|
|
786
|
+
*/
|
|
787
|
+
forEach(callback) {
|
|
788
|
+
let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
789
|
+
|
|
790
|
+
let pairs = getHeaders(this);
|
|
791
|
+
let i = 0;
|
|
792
|
+
while (i < pairs.length) {
|
|
793
|
+
var _pairs$i = pairs[i];
|
|
794
|
+
const name = _pairs$i[0],
|
|
795
|
+
value = _pairs$i[1];
|
|
796
|
+
|
|
797
|
+
callback.call(thisArg, value, name, this);
|
|
798
|
+
pairs = getHeaders(this);
|
|
799
|
+
i++;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Overwrite header values given name
|
|
805
|
+
*
|
|
806
|
+
* @param String name Header name
|
|
807
|
+
* @param String value Header value
|
|
808
|
+
* @return Void
|
|
809
|
+
*/
|
|
810
|
+
set(name, value) {
|
|
811
|
+
name = `${name}`;
|
|
812
|
+
value = `${value}`;
|
|
813
|
+
validateName(name);
|
|
814
|
+
validateValue(value);
|
|
815
|
+
const key = find(this[MAP], name);
|
|
816
|
+
this[MAP][key !== undefined ? key : name] = [value];
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Append a value onto existing header
|
|
821
|
+
*
|
|
822
|
+
* @param String name Header name
|
|
823
|
+
* @param String value Header value
|
|
824
|
+
* @return Void
|
|
825
|
+
*/
|
|
826
|
+
append(name, value) {
|
|
827
|
+
name = `${name}`;
|
|
828
|
+
value = `${value}`;
|
|
829
|
+
validateName(name);
|
|
830
|
+
validateValue(value);
|
|
831
|
+
const key = find(this[MAP], name);
|
|
832
|
+
if (key !== undefined) {
|
|
833
|
+
this[MAP][key].push(value);
|
|
834
|
+
} else {
|
|
835
|
+
this[MAP][name] = [value];
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Check for header name existence
|
|
841
|
+
*
|
|
842
|
+
* @param String name Header name
|
|
843
|
+
* @return Boolean
|
|
844
|
+
*/
|
|
845
|
+
has(name) {
|
|
846
|
+
name = `${name}`;
|
|
847
|
+
validateName(name);
|
|
848
|
+
return find(this[MAP], name) !== undefined;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Delete all header values given name
|
|
853
|
+
*
|
|
854
|
+
* @param String name Header name
|
|
855
|
+
* @return Void
|
|
856
|
+
*/
|
|
857
|
+
delete(name) {
|
|
858
|
+
name = `${name}`;
|
|
859
|
+
validateName(name);
|
|
860
|
+
const key = find(this[MAP], name);
|
|
861
|
+
if (key !== undefined) {
|
|
862
|
+
delete this[MAP][key];
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* Return raw headers (non-spec api)
|
|
868
|
+
*
|
|
869
|
+
* @return Object
|
|
870
|
+
*/
|
|
871
|
+
raw() {
|
|
872
|
+
return this[MAP];
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Get an iterator on keys.
|
|
877
|
+
*
|
|
878
|
+
* @return Iterator
|
|
879
|
+
*/
|
|
880
|
+
keys() {
|
|
881
|
+
return createHeadersIterator(this, 'key');
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Get an iterator on values.
|
|
886
|
+
*
|
|
887
|
+
* @return Iterator
|
|
888
|
+
*/
|
|
889
|
+
values() {
|
|
890
|
+
return createHeadersIterator(this, 'value');
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Get an iterator on entries.
|
|
895
|
+
*
|
|
896
|
+
* This is the default iterator of the Headers object.
|
|
897
|
+
*
|
|
898
|
+
* @return Iterator
|
|
899
|
+
*/
|
|
900
|
+
[Symbol.iterator]() {
|
|
901
|
+
return createHeadersIterator(this, 'key+value');
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
Headers.prototype.entries = Headers.prototype[Symbol.iterator];
|
|
905
|
+
|
|
906
|
+
Object.defineProperty(Headers.prototype, Symbol.toStringTag, {
|
|
907
|
+
value: 'Headers',
|
|
908
|
+
writable: false,
|
|
909
|
+
enumerable: false,
|
|
910
|
+
configurable: true
|
|
911
|
+
});
|
|
912
|
+
|
|
913
|
+
Object.defineProperties(Headers.prototype, {
|
|
914
|
+
get: { enumerable: true },
|
|
915
|
+
forEach: { enumerable: true },
|
|
916
|
+
set: { enumerable: true },
|
|
917
|
+
append: { enumerable: true },
|
|
918
|
+
has: { enumerable: true },
|
|
919
|
+
delete: { enumerable: true },
|
|
920
|
+
keys: { enumerable: true },
|
|
921
|
+
values: { enumerable: true },
|
|
922
|
+
entries: { enumerable: true }
|
|
923
|
+
});
|
|
924
|
+
|
|
925
|
+
function getHeaders(headers) {
|
|
926
|
+
let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value';
|
|
927
|
+
|
|
928
|
+
const keys = Object.keys(headers[MAP]).sort();
|
|
929
|
+
return keys.map(kind === 'key' ? function (k) {
|
|
930
|
+
return k.toLowerCase();
|
|
931
|
+
} : kind === 'value' ? function (k) {
|
|
932
|
+
return headers[MAP][k].join(', ');
|
|
933
|
+
} : function (k) {
|
|
934
|
+
return [k.toLowerCase(), headers[MAP][k].join(', ')];
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
const INTERNAL = Symbol('internal');
|
|
939
|
+
|
|
940
|
+
function createHeadersIterator(target, kind) {
|
|
941
|
+
const iterator = Object.create(HeadersIteratorPrototype);
|
|
942
|
+
iterator[INTERNAL] = {
|
|
943
|
+
target,
|
|
944
|
+
kind,
|
|
945
|
+
index: 0
|
|
946
|
+
};
|
|
947
|
+
return iterator;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
const HeadersIteratorPrototype = Object.setPrototypeOf({
|
|
951
|
+
next() {
|
|
952
|
+
// istanbul ignore if
|
|
953
|
+
if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) {
|
|
954
|
+
throw new TypeError('Value of `this` is not a HeadersIterator');
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
var _INTERNAL = this[INTERNAL];
|
|
958
|
+
const target = _INTERNAL.target,
|
|
959
|
+
kind = _INTERNAL.kind,
|
|
960
|
+
index = _INTERNAL.index;
|
|
961
|
+
|
|
962
|
+
const values = getHeaders(target, kind);
|
|
963
|
+
const len = values.length;
|
|
964
|
+
if (index >= len) {
|
|
965
|
+
return {
|
|
966
|
+
value: undefined,
|
|
967
|
+
done: true
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
this[INTERNAL].index = index + 1;
|
|
972
|
+
|
|
973
|
+
return {
|
|
974
|
+
value: values[index],
|
|
975
|
+
done: false
|
|
976
|
+
};
|
|
977
|
+
}
|
|
978
|
+
}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));
|
|
979
|
+
|
|
980
|
+
Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, {
|
|
981
|
+
value: 'HeadersIterator',
|
|
982
|
+
writable: false,
|
|
983
|
+
enumerable: false,
|
|
984
|
+
configurable: true
|
|
985
|
+
});
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Export the Headers object in a form that Node.js can consume.
|
|
989
|
+
*
|
|
990
|
+
* @param Headers headers
|
|
991
|
+
* @return Object
|
|
992
|
+
*/
|
|
993
|
+
function exportNodeCompatibleHeaders(headers) {
|
|
994
|
+
const obj = Object.assign({ __proto__: null }, headers[MAP]);
|
|
995
|
+
|
|
996
|
+
// http.request() only supports string as Host header. This hack makes
|
|
997
|
+
// specifying custom Host header possible.
|
|
998
|
+
const hostHeaderKey = find(headers[MAP], 'Host');
|
|
999
|
+
if (hostHeaderKey !== undefined) {
|
|
1000
|
+
obj[hostHeaderKey] = obj[hostHeaderKey][0];
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
return obj;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Create a Headers object from an object of headers, ignoring those that do
|
|
1008
|
+
* not conform to HTTP grammar productions.
|
|
1009
|
+
*
|
|
1010
|
+
* @param Object obj Object of headers
|
|
1011
|
+
* @return Headers
|
|
1012
|
+
*/
|
|
1013
|
+
function createHeadersLenient(obj) {
|
|
1014
|
+
const headers = new Headers();
|
|
1015
|
+
for (const name of Object.keys(obj)) {
|
|
1016
|
+
if (invalidTokenRegex.test(name)) {
|
|
1017
|
+
continue;
|
|
1018
|
+
}
|
|
1019
|
+
if (Array.isArray(obj[name])) {
|
|
1020
|
+
for (const val of obj[name]) {
|
|
1021
|
+
if (invalidHeaderCharRegex.test(val)) {
|
|
1022
|
+
continue;
|
|
1023
|
+
}
|
|
1024
|
+
if (headers[MAP][name] === undefined) {
|
|
1025
|
+
headers[MAP][name] = [val];
|
|
1026
|
+
} else {
|
|
1027
|
+
headers[MAP][name].push(val);
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
} else if (!invalidHeaderCharRegex.test(obj[name])) {
|
|
1031
|
+
headers[MAP][name] = [obj[name]];
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
return headers;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
const INTERNALS$1 = Symbol('Response internals');
|
|
1038
|
+
|
|
1039
|
+
// fix an issue where "STATUS_CODES" aren't a named export for node <10
|
|
1040
|
+
const STATUS_CODES = http.STATUS_CODES;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Response class
|
|
1044
|
+
*
|
|
1045
|
+
* @param Stream body Readable stream
|
|
1046
|
+
* @param Object opts Response options
|
|
1047
|
+
* @return Void
|
|
1048
|
+
*/
|
|
1049
|
+
class Response {
|
|
1050
|
+
constructor() {
|
|
1051
|
+
let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
1052
|
+
let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1053
|
+
|
|
1054
|
+
Body.call(this, body, opts);
|
|
1055
|
+
|
|
1056
|
+
const status = opts.status || 200;
|
|
1057
|
+
const headers = new Headers(opts.headers);
|
|
1058
|
+
|
|
1059
|
+
if (body != null && !headers.has('Content-Type')) {
|
|
1060
|
+
const contentType = extractContentType(body);
|
|
1061
|
+
if (contentType) {
|
|
1062
|
+
headers.append('Content-Type', contentType);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
this[INTERNALS$1] = {
|
|
1067
|
+
url: opts.url,
|
|
1068
|
+
status,
|
|
1069
|
+
statusText: opts.statusText || STATUS_CODES[status],
|
|
1070
|
+
headers,
|
|
1071
|
+
counter: opts.counter
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
get url() {
|
|
1076
|
+
return this[INTERNALS$1].url || '';
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
get status() {
|
|
1080
|
+
return this[INTERNALS$1].status;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Convenience property representing if the request ended normally
|
|
1085
|
+
*/
|
|
1086
|
+
get ok() {
|
|
1087
|
+
return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
get redirected() {
|
|
1091
|
+
return this[INTERNALS$1].counter > 0;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
get statusText() {
|
|
1095
|
+
return this[INTERNALS$1].statusText;
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
get headers() {
|
|
1099
|
+
return this[INTERNALS$1].headers;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Clone this response
|
|
1104
|
+
*
|
|
1105
|
+
* @return Response
|
|
1106
|
+
*/
|
|
1107
|
+
clone() {
|
|
1108
|
+
return new Response(clone(this), {
|
|
1109
|
+
url: this.url,
|
|
1110
|
+
status: this.status,
|
|
1111
|
+
statusText: this.statusText,
|
|
1112
|
+
headers: this.headers,
|
|
1113
|
+
ok: this.ok,
|
|
1114
|
+
redirected: this.redirected
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
Body.mixIn(Response.prototype);
|
|
1120
|
+
|
|
1121
|
+
Object.defineProperties(Response.prototype, {
|
|
1122
|
+
url: { enumerable: true },
|
|
1123
|
+
status: { enumerable: true },
|
|
1124
|
+
ok: { enumerable: true },
|
|
1125
|
+
redirected: { enumerable: true },
|
|
1126
|
+
statusText: { enumerable: true },
|
|
1127
|
+
headers: { enumerable: true },
|
|
1128
|
+
clone: { enumerable: true }
|
|
1129
|
+
});
|
|
1130
|
+
|
|
1131
|
+
Object.defineProperty(Response.prototype, Symbol.toStringTag, {
|
|
1132
|
+
value: 'Response',
|
|
1133
|
+
writable: false,
|
|
1134
|
+
enumerable: false,
|
|
1135
|
+
configurable: true
|
|
1136
|
+
});
|
|
1137
|
+
|
|
1138
|
+
const INTERNALS$2 = Symbol('Request internals');
|
|
1139
|
+
const URL = Url.URL || whatwgUrl.URL;
|
|
1140
|
+
|
|
1141
|
+
// fix an issue where "format", "parse" aren't a named export for node <10
|
|
1142
|
+
const parse_url = Url.parse;
|
|
1143
|
+
const format_url = Url.format;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* Wrapper around `new URL` to handle arbitrary URLs
|
|
1147
|
+
*
|
|
1148
|
+
* @param {string} urlStr
|
|
1149
|
+
* @return {void}
|
|
1150
|
+
*/
|
|
1151
|
+
function parseURL(urlStr) {
|
|
1152
|
+
/*
|
|
1153
|
+
Check whether the URL is absolute or not
|
|
1154
|
+
Scheme: https://tools.ietf.org/html/rfc3986#section-3.1
|
|
1155
|
+
Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3
|
|
1156
|
+
*/
|
|
1157
|
+
if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) {
|
|
1158
|
+
urlStr = new URL(urlStr).toString();
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
// Fallback to old implementation for arbitrary URLs
|
|
1162
|
+
return parse_url(urlStr);
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
const streamDestructionSupported = 'destroy' in Stream.Readable.prototype;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Check if a value is an instance of Request.
|
|
1169
|
+
*
|
|
1170
|
+
* @param Mixed input
|
|
1171
|
+
* @return Boolean
|
|
1172
|
+
*/
|
|
1173
|
+
function isRequest(input) {
|
|
1174
|
+
return typeof input === 'object' && typeof input[INTERNALS$2] === 'object';
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
function isAbortSignal(signal) {
|
|
1178
|
+
const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal);
|
|
1179
|
+
return !!(proto && proto.constructor.name === 'AbortSignal');
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Request class
|
|
1184
|
+
*
|
|
1185
|
+
* @param Mixed input Url or Request instance
|
|
1186
|
+
* @param Object init Custom options
|
|
1187
|
+
* @return Void
|
|
1188
|
+
*/
|
|
1189
|
+
class Request {
|
|
1190
|
+
constructor(input) {
|
|
1191
|
+
let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1192
|
+
|
|
1193
|
+
let parsedURL;
|
|
1194
|
+
|
|
1195
|
+
// normalize input
|
|
1196
|
+
if (!isRequest(input)) {
|
|
1197
|
+
if (input && input.href) {
|
|
1198
|
+
// in order to support Node.js' Url objects; though WHATWG's URL objects
|
|
1199
|
+
// will fall into this branch also (since their `toString()` will return
|
|
1200
|
+
// `href` property anyway)
|
|
1201
|
+
parsedURL = parseURL(input.href);
|
|
1202
|
+
} else {
|
|
1203
|
+
// coerce input to a string before attempting to parse
|
|
1204
|
+
parsedURL = parseURL(`${input}`);
|
|
1205
|
+
}
|
|
1206
|
+
input = {};
|
|
1207
|
+
} else {
|
|
1208
|
+
parsedURL = parseURL(input.url);
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
let method = init.method || input.method || 'GET';
|
|
1212
|
+
method = method.toUpperCase();
|
|
1213
|
+
|
|
1214
|
+
if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) {
|
|
1215
|
+
throw new TypeError('Request with GET/HEAD method cannot have body');
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null;
|
|
1219
|
+
|
|
1220
|
+
Body.call(this, inputBody, {
|
|
1221
|
+
timeout: init.timeout || input.timeout || 0,
|
|
1222
|
+
size: init.size || input.size || 0
|
|
1223
|
+
});
|
|
1224
|
+
|
|
1225
|
+
const headers = new Headers(init.headers || input.headers || {});
|
|
1226
|
+
|
|
1227
|
+
if (inputBody != null && !headers.has('Content-Type')) {
|
|
1228
|
+
const contentType = extractContentType(inputBody);
|
|
1229
|
+
if (contentType) {
|
|
1230
|
+
headers.append('Content-Type', contentType);
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
let signal = isRequest(input) ? input.signal : null;
|
|
1235
|
+
if ('signal' in init) signal = init.signal;
|
|
1236
|
+
|
|
1237
|
+
if (signal != null && !isAbortSignal(signal)) {
|
|
1238
|
+
throw new TypeError('Expected signal to be an instanceof AbortSignal');
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
this[INTERNALS$2] = {
|
|
1242
|
+
method,
|
|
1243
|
+
redirect: init.redirect || input.redirect || 'follow',
|
|
1244
|
+
headers,
|
|
1245
|
+
parsedURL,
|
|
1246
|
+
signal
|
|
1247
|
+
};
|
|
1248
|
+
|
|
1249
|
+
// node-fetch-only options
|
|
1250
|
+
this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20;
|
|
1251
|
+
this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true;
|
|
1252
|
+
this.counter = init.counter || input.counter || 0;
|
|
1253
|
+
this.agent = init.agent || input.agent;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
get method() {
|
|
1257
|
+
return this[INTERNALS$2].method;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
get url() {
|
|
1261
|
+
return format_url(this[INTERNALS$2].parsedURL);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
get headers() {
|
|
1265
|
+
return this[INTERNALS$2].headers;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
get redirect() {
|
|
1269
|
+
return this[INTERNALS$2].redirect;
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1272
|
+
get signal() {
|
|
1273
|
+
return this[INTERNALS$2].signal;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* Clone this request
|
|
1278
|
+
*
|
|
1279
|
+
* @return Request
|
|
1280
|
+
*/
|
|
1281
|
+
clone() {
|
|
1282
|
+
return new Request(this);
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
Body.mixIn(Request.prototype);
|
|
1287
|
+
|
|
1288
|
+
Object.defineProperty(Request.prototype, Symbol.toStringTag, {
|
|
1289
|
+
value: 'Request',
|
|
1290
|
+
writable: false,
|
|
1291
|
+
enumerable: false,
|
|
1292
|
+
configurable: true
|
|
1293
|
+
});
|
|
1294
|
+
|
|
1295
|
+
Object.defineProperties(Request.prototype, {
|
|
1296
|
+
method: { enumerable: true },
|
|
1297
|
+
url: { enumerable: true },
|
|
1298
|
+
headers: { enumerable: true },
|
|
1299
|
+
redirect: { enumerable: true },
|
|
1300
|
+
clone: { enumerable: true },
|
|
1301
|
+
signal: { enumerable: true }
|
|
1302
|
+
});
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Convert a Request to Node.js http request options.
|
|
1306
|
+
*
|
|
1307
|
+
* @param Request A Request instance
|
|
1308
|
+
* @return Object The options object to be passed to http.request
|
|
1309
|
+
*/
|
|
1310
|
+
function getNodeRequestOptions(request) {
|
|
1311
|
+
const parsedURL = request[INTERNALS$2].parsedURL;
|
|
1312
|
+
const headers = new Headers(request[INTERNALS$2].headers);
|
|
1313
|
+
|
|
1314
|
+
// fetch step 1.3
|
|
1315
|
+
if (!headers.has('Accept')) {
|
|
1316
|
+
headers.set('Accept', '*/*');
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
// Basic fetch
|
|
1320
|
+
if (!parsedURL.protocol || !parsedURL.hostname) {
|
|
1321
|
+
throw new TypeError('Only absolute URLs are supported');
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
if (!/^https?:$/.test(parsedURL.protocol)) {
|
|
1325
|
+
throw new TypeError('Only HTTP(S) protocols are supported');
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) {
|
|
1329
|
+
throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8');
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
// HTTP-network-or-cache fetch steps 2.4-2.7
|
|
1333
|
+
let contentLengthValue = null;
|
|
1334
|
+
if (request.body == null && /^(POST|PUT)$/i.test(request.method)) {
|
|
1335
|
+
contentLengthValue = '0';
|
|
1336
|
+
}
|
|
1337
|
+
if (request.body != null) {
|
|
1338
|
+
const totalBytes = getTotalBytes(request);
|
|
1339
|
+
if (typeof totalBytes === 'number') {
|
|
1340
|
+
contentLengthValue = String(totalBytes);
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
if (contentLengthValue) {
|
|
1344
|
+
headers.set('Content-Length', contentLengthValue);
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
// HTTP-network-or-cache fetch step 2.11
|
|
1348
|
+
if (!headers.has('User-Agent')) {
|
|
1349
|
+
headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
// HTTP-network-or-cache fetch step 2.15
|
|
1353
|
+
if (request.compress && !headers.has('Accept-Encoding')) {
|
|
1354
|
+
headers.set('Accept-Encoding', 'gzip,deflate');
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
let agent = request.agent;
|
|
1358
|
+
if (typeof agent === 'function') {
|
|
1359
|
+
agent = agent(parsedURL);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
// HTTP-network fetch step 4.2
|
|
1363
|
+
// chunked encoding is handled by Node.js
|
|
1364
|
+
|
|
1365
|
+
return Object.assign({}, parsedURL, {
|
|
1366
|
+
method: request.method,
|
|
1367
|
+
headers: exportNodeCompatibleHeaders(headers),
|
|
1368
|
+
agent
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* abort-error.js
|
|
1374
|
+
*
|
|
1375
|
+
* AbortError interface for cancelled requests
|
|
1376
|
+
*/
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Create AbortError instance
|
|
1380
|
+
*
|
|
1381
|
+
* @param String message Error message for human
|
|
1382
|
+
* @return AbortError
|
|
1383
|
+
*/
|
|
1384
|
+
function AbortError(message) {
|
|
1385
|
+
Error.call(this, message);
|
|
1386
|
+
|
|
1387
|
+
this.type = 'aborted';
|
|
1388
|
+
this.message = message;
|
|
1389
|
+
|
|
1390
|
+
// hide custom error implementation details from end-users
|
|
1391
|
+
Error.captureStackTrace(this, this.constructor);
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
AbortError.prototype = Object.create(Error.prototype);
|
|
1395
|
+
AbortError.prototype.constructor = AbortError;
|
|
1396
|
+
AbortError.prototype.name = 'AbortError';
|
|
1397
|
+
|
|
1398
|
+
const URL$1 = Url.URL || whatwgUrl.URL;
|
|
1399
|
+
|
|
1400
|
+
// fix an issue where "PassThrough", "resolve" aren't a named export for node <10
|
|
1401
|
+
const PassThrough$1 = Stream.PassThrough;
|
|
1402
|
+
|
|
1403
|
+
const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) {
|
|
1404
|
+
const orig = new URL$1(original).hostname;
|
|
1405
|
+
const dest = new URL$1(destination).hostname;
|
|
1406
|
+
|
|
1407
|
+
return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest);
|
|
1408
|
+
};
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* isSameProtocol reports whether the two provided URLs use the same protocol.
|
|
1412
|
+
*
|
|
1413
|
+
* Both domains must already be in canonical form.
|
|
1414
|
+
* @param {string|URL} original
|
|
1415
|
+
* @param {string|URL} destination
|
|
1416
|
+
*/
|
|
1417
|
+
const isSameProtocol = function isSameProtocol(destination, original) {
|
|
1418
|
+
const orig = new URL$1(original).protocol;
|
|
1419
|
+
const dest = new URL$1(destination).protocol;
|
|
1420
|
+
|
|
1421
|
+
return orig === dest;
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Fetch function
|
|
1426
|
+
*
|
|
1427
|
+
* @param Mixed url Absolute url or Request instance
|
|
1428
|
+
* @param Object opts Fetch options
|
|
1429
|
+
* @return Promise
|
|
1430
|
+
*/
|
|
1431
|
+
function fetch(url, opts) {
|
|
1432
|
+
|
|
1433
|
+
// allow custom promise
|
|
1434
|
+
if (!fetch.Promise) {
|
|
1435
|
+
throw new Error('native promise missing, set fetch.Promise to your favorite alternative');
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
Body.Promise = fetch.Promise;
|
|
1439
|
+
|
|
1440
|
+
// wrap http.request into fetch
|
|
1441
|
+
return new fetch.Promise(function (resolve, reject) {
|
|
1442
|
+
// build request object
|
|
1443
|
+
const request = new Request(url, opts);
|
|
1444
|
+
const options = getNodeRequestOptions(request);
|
|
1445
|
+
|
|
1446
|
+
const send = (options.protocol === 'https:' ? https : http).request;
|
|
1447
|
+
const signal = request.signal;
|
|
1448
|
+
|
|
1449
|
+
let response = null;
|
|
1450
|
+
|
|
1451
|
+
const abort = function abort() {
|
|
1452
|
+
let error = new AbortError('The user aborted a request.');
|
|
1453
|
+
reject(error);
|
|
1454
|
+
if (request.body && request.body instanceof Stream.Readable) {
|
|
1455
|
+
destroyStream(request.body, error);
|
|
1456
|
+
}
|
|
1457
|
+
if (!response || !response.body) return;
|
|
1458
|
+
response.body.emit('error', error);
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1461
|
+
if (signal && signal.aborted) {
|
|
1462
|
+
abort();
|
|
1463
|
+
return;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
const abortAndFinalize = function abortAndFinalize() {
|
|
1467
|
+
abort();
|
|
1468
|
+
finalize();
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
// send request
|
|
1472
|
+
const req = send(options);
|
|
1473
|
+
let reqTimeout;
|
|
1474
|
+
|
|
1475
|
+
if (signal) {
|
|
1476
|
+
signal.addEventListener('abort', abortAndFinalize);
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
function finalize() {
|
|
1480
|
+
req.abort();
|
|
1481
|
+
if (signal) signal.removeEventListener('abort', abortAndFinalize);
|
|
1482
|
+
clearTimeout(reqTimeout);
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
if (request.timeout) {
|
|
1486
|
+
req.once('socket', function (socket) {
|
|
1487
|
+
reqTimeout = setTimeout(function () {
|
|
1488
|
+
reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout'));
|
|
1489
|
+
finalize();
|
|
1490
|
+
}, request.timeout);
|
|
1491
|
+
});
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
req.on('error', function (err) {
|
|
1495
|
+
reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
|
|
1496
|
+
|
|
1497
|
+
if (response && response.body) {
|
|
1498
|
+
destroyStream(response.body, err);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
finalize();
|
|
1502
|
+
});
|
|
1503
|
+
|
|
1504
|
+
fixResponseChunkedTransferBadEnding(req, function (err) {
|
|
1505
|
+
if (signal && signal.aborted) {
|
|
1506
|
+
return;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
if (response && response.body) {
|
|
1510
|
+
destroyStream(response.body, err);
|
|
1511
|
+
}
|
|
1512
|
+
});
|
|
1513
|
+
|
|
1514
|
+
/* c8 ignore next 18 */
|
|
1515
|
+
if (parseInt(process.version.substring(1)) < 14) {
|
|
1516
|
+
// Before Node.js 14, pipeline() does not fully support async iterators and does not always
|
|
1517
|
+
// properly handle when the socket close/end events are out of order.
|
|
1518
|
+
req.on('socket', function (s) {
|
|
1519
|
+
s.addListener('close', function (hadError) {
|
|
1520
|
+
// if a data listener is still present we didn't end cleanly
|
|
1521
|
+
const hasDataListener = s.listenerCount('data') > 0;
|
|
1522
|
+
|
|
1523
|
+
// if end happened before close but the socket didn't emit an error, do it now
|
|
1524
|
+
if (response && hasDataListener && !hadError && !(signal && signal.aborted)) {
|
|
1525
|
+
const err = new Error('Premature close');
|
|
1526
|
+
err.code = 'ERR_STREAM_PREMATURE_CLOSE';
|
|
1527
|
+
response.body.emit('error', err);
|
|
1528
|
+
}
|
|
1529
|
+
});
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
req.on('response', function (res) {
|
|
1534
|
+
clearTimeout(reqTimeout);
|
|
1535
|
+
|
|
1536
|
+
const headers = createHeadersLenient(res.headers);
|
|
1537
|
+
|
|
1538
|
+
// HTTP fetch step 5
|
|
1539
|
+
if (fetch.isRedirect(res.statusCode)) {
|
|
1540
|
+
// HTTP fetch step 5.2
|
|
1541
|
+
const location = headers.get('Location');
|
|
1542
|
+
|
|
1543
|
+
// HTTP fetch step 5.3
|
|
1544
|
+
let locationURL = null;
|
|
1545
|
+
try {
|
|
1546
|
+
locationURL = location === null ? null : new URL$1(location, request.url).toString();
|
|
1547
|
+
} catch (err) {
|
|
1548
|
+
// error here can only be invalid URL in Location: header
|
|
1549
|
+
// do not throw when options.redirect == manual
|
|
1550
|
+
// let the user extract the errorneous redirect URL
|
|
1551
|
+
if (request.redirect !== 'manual') {
|
|
1552
|
+
reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect'));
|
|
1553
|
+
finalize();
|
|
1554
|
+
return;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
// HTTP fetch step 5.5
|
|
1559
|
+
switch (request.redirect) {
|
|
1560
|
+
case 'error':
|
|
1561
|
+
reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect'));
|
|
1562
|
+
finalize();
|
|
1563
|
+
return;
|
|
1564
|
+
case 'manual':
|
|
1565
|
+
// node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL.
|
|
1566
|
+
if (locationURL !== null) {
|
|
1567
|
+
// handle corrupted header
|
|
1568
|
+
try {
|
|
1569
|
+
headers.set('Location', locationURL);
|
|
1570
|
+
} catch (err) {
|
|
1571
|
+
// istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request
|
|
1572
|
+
reject(err);
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
break;
|
|
1576
|
+
case 'follow':
|
|
1577
|
+
// HTTP-redirect fetch step 2
|
|
1578
|
+
if (locationURL === null) {
|
|
1579
|
+
break;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
// HTTP-redirect fetch step 5
|
|
1583
|
+
if (request.counter >= request.follow) {
|
|
1584
|
+
reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect'));
|
|
1585
|
+
finalize();
|
|
1586
|
+
return;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
// HTTP-redirect fetch step 6 (counter increment)
|
|
1590
|
+
// Create a new Request object.
|
|
1591
|
+
const requestOpts = {
|
|
1592
|
+
headers: new Headers(request.headers),
|
|
1593
|
+
follow: request.follow,
|
|
1594
|
+
counter: request.counter + 1,
|
|
1595
|
+
agent: request.agent,
|
|
1596
|
+
compress: request.compress,
|
|
1597
|
+
method: request.method,
|
|
1598
|
+
body: request.body,
|
|
1599
|
+
signal: request.signal,
|
|
1600
|
+
timeout: request.timeout,
|
|
1601
|
+
size: request.size
|
|
1602
|
+
};
|
|
1603
|
+
|
|
1604
|
+
if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) {
|
|
1605
|
+
for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) {
|
|
1606
|
+
requestOpts.headers.delete(name);
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
// HTTP-redirect fetch step 9
|
|
1611
|
+
if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) {
|
|
1612
|
+
reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect'));
|
|
1613
|
+
finalize();
|
|
1614
|
+
return;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
// HTTP-redirect fetch step 11
|
|
1618
|
+
if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') {
|
|
1619
|
+
requestOpts.method = 'GET';
|
|
1620
|
+
requestOpts.body = undefined;
|
|
1621
|
+
requestOpts.headers.delete('content-length');
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
// HTTP-redirect fetch step 15
|
|
1625
|
+
resolve(fetch(new Request(locationURL, requestOpts)));
|
|
1626
|
+
finalize();
|
|
1627
|
+
return;
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
// prepare response
|
|
1632
|
+
res.once('end', function () {
|
|
1633
|
+
if (signal) signal.removeEventListener('abort', abortAndFinalize);
|
|
1634
|
+
});
|
|
1635
|
+
let body = res.pipe(new PassThrough$1());
|
|
1636
|
+
|
|
1637
|
+
const response_options = {
|
|
1638
|
+
url: request.url,
|
|
1639
|
+
status: res.statusCode,
|
|
1640
|
+
statusText: res.statusMessage,
|
|
1641
|
+
headers: headers,
|
|
1642
|
+
size: request.size,
|
|
1643
|
+
timeout: request.timeout,
|
|
1644
|
+
counter: request.counter
|
|
1645
|
+
};
|
|
1646
|
+
|
|
1647
|
+
// HTTP-network fetch step 12.1.1.3
|
|
1648
|
+
const codings = headers.get('Content-Encoding');
|
|
1649
|
+
|
|
1650
|
+
// HTTP-network fetch step 12.1.1.4: handle content codings
|
|
1651
|
+
|
|
1652
|
+
// in following scenarios we ignore compression support
|
|
1653
|
+
// 1. compression support is disabled
|
|
1654
|
+
// 2. HEAD request
|
|
1655
|
+
// 3. no Content-Encoding header
|
|
1656
|
+
// 4. no content response (204)
|
|
1657
|
+
// 5. content not modified response (304)
|
|
1658
|
+
if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) {
|
|
1659
|
+
response = new Response(body, response_options);
|
|
1660
|
+
resolve(response);
|
|
1661
|
+
return;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
// For Node v6+
|
|
1665
|
+
// Be less strict when decoding compressed responses, since sometimes
|
|
1666
|
+
// servers send slightly invalid responses that are still accepted
|
|
1667
|
+
// by common browsers.
|
|
1668
|
+
// Always using Z_SYNC_FLUSH is what cURL does.
|
|
1669
|
+
const zlibOptions = {
|
|
1670
|
+
flush: zlib.Z_SYNC_FLUSH,
|
|
1671
|
+
finishFlush: zlib.Z_SYNC_FLUSH
|
|
1672
|
+
};
|
|
1673
|
+
|
|
1674
|
+
// for gzip
|
|
1675
|
+
if (codings == 'gzip' || codings == 'x-gzip') {
|
|
1676
|
+
body = body.pipe(zlib.createGunzip(zlibOptions));
|
|
1677
|
+
response = new Response(body, response_options);
|
|
1678
|
+
resolve(response);
|
|
1679
|
+
return;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
// for deflate
|
|
1683
|
+
if (codings == 'deflate' || codings == 'x-deflate') {
|
|
1684
|
+
// handle the infamous raw deflate response from old servers
|
|
1685
|
+
// a hack for old IIS and Apache servers
|
|
1686
|
+
const raw = res.pipe(new PassThrough$1());
|
|
1687
|
+
raw.once('data', function (chunk) {
|
|
1688
|
+
// see http://stackoverflow.com/questions/37519828
|
|
1689
|
+
if ((chunk[0] & 0x0F) === 0x08) {
|
|
1690
|
+
body = body.pipe(zlib.createInflate());
|
|
1691
|
+
} else {
|
|
1692
|
+
body = body.pipe(zlib.createInflateRaw());
|
|
1693
|
+
}
|
|
1694
|
+
response = new Response(body, response_options);
|
|
1695
|
+
resolve(response);
|
|
1696
|
+
});
|
|
1697
|
+
raw.on('end', function () {
|
|
1698
|
+
// some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted.
|
|
1699
|
+
if (!response) {
|
|
1700
|
+
response = new Response(body, response_options);
|
|
1701
|
+
resolve(response);
|
|
1702
|
+
}
|
|
1703
|
+
});
|
|
1704
|
+
return;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
// for br
|
|
1708
|
+
if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') {
|
|
1709
|
+
body = body.pipe(zlib.createBrotliDecompress());
|
|
1710
|
+
response = new Response(body, response_options);
|
|
1711
|
+
resolve(response);
|
|
1712
|
+
return;
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
// otherwise, use response as-is
|
|
1716
|
+
response = new Response(body, response_options);
|
|
1717
|
+
resolve(response);
|
|
1718
|
+
});
|
|
1719
|
+
|
|
1720
|
+
writeToStream(req, request);
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
function fixResponseChunkedTransferBadEnding(request, errorCallback) {
|
|
1724
|
+
let socket;
|
|
1725
|
+
|
|
1726
|
+
request.on('socket', function (s) {
|
|
1727
|
+
socket = s;
|
|
1728
|
+
});
|
|
1729
|
+
|
|
1730
|
+
request.on('response', function (response) {
|
|
1731
|
+
const headers = response.headers;
|
|
1732
|
+
|
|
1733
|
+
if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) {
|
|
1734
|
+
response.once('close', function (hadError) {
|
|
1735
|
+
// tests for socket presence, as in some situations the
|
|
1736
|
+
// the 'socket' event is not triggered for the request
|
|
1737
|
+
// (happens in deno), avoids `TypeError`
|
|
1738
|
+
// if a data listener is still present we didn't end cleanly
|
|
1739
|
+
const hasDataListener = socket && socket.listenerCount('data') > 0;
|
|
1740
|
+
|
|
1741
|
+
if (hasDataListener && !hadError) {
|
|
1742
|
+
const err = new Error('Premature close');
|
|
1743
|
+
err.code = 'ERR_STREAM_PREMATURE_CLOSE';
|
|
1744
|
+
errorCallback(err);
|
|
1745
|
+
}
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
});
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
function destroyStream(stream, err) {
|
|
1752
|
+
if (stream.destroy) {
|
|
1753
|
+
stream.destroy(err);
|
|
1754
|
+
} else {
|
|
1755
|
+
// node < 8
|
|
1756
|
+
stream.emit('error', err);
|
|
1757
|
+
stream.end();
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* Redirect code matching
|
|
1763
|
+
*
|
|
1764
|
+
* @param Number code Status code
|
|
1765
|
+
* @return Boolean
|
|
1766
|
+
*/
|
|
1767
|
+
fetch.isRedirect = function (code) {
|
|
1768
|
+
return code === 301 || code === 302 || code === 303 || code === 307 || code === 308;
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
// expose Promise
|
|
1772
|
+
fetch.Promise = global.Promise;
|
|
1773
|
+
|
|
1774
|
+
export default fetch;
|
|
1775
|
+
export { Headers, Request, Response, FetchError, AbortError };
|