@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,2059 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["circuitBreaker"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["circuitBreaker"] = factory();
|
|
10
|
+
})(self, () => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ var __webpack_modules__ = ({
|
|
13
|
+
|
|
14
|
+
/***/ "./index.js":
|
|
15
|
+
/*!******************!*\
|
|
16
|
+
!*** ./index.js ***!
|
|
17
|
+
\******************/
|
|
18
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
19
|
+
|
|
20
|
+
"use strict";
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
module.exports = exports = __webpack_require__(/*! ./lib/circuit */ "./lib/circuit.js");
|
|
24
|
+
|
|
25
|
+
/***/ }),
|
|
26
|
+
|
|
27
|
+
/***/ "./lib/cache.js":
|
|
28
|
+
/*!**********************!*\
|
|
29
|
+
!*** ./lib/cache.js ***!
|
|
30
|
+
\**********************/
|
|
31
|
+
/***/ ((module, exports) => {
|
|
32
|
+
|
|
33
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
34
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
35
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
36
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
37
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
38
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
39
|
+
/**
|
|
40
|
+
* Simple in-memory cache implementation
|
|
41
|
+
* @class MemoryCache
|
|
42
|
+
* @property {Map} cache Cache map
|
|
43
|
+
*/
|
|
44
|
+
var MemoryCache = /*#__PURE__*/function () {
|
|
45
|
+
function MemoryCache(maxEntries) {
|
|
46
|
+
_classCallCheck(this, MemoryCache);
|
|
47
|
+
this.cache = new Map();
|
|
48
|
+
this.maxEntries = maxEntries !== null && maxEntries !== void 0 ? maxEntries : Math.pow(2, 24) - 1; // Max size for Map is 2^24.
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Get cache value by key
|
|
53
|
+
* @param {string} key Cache key
|
|
54
|
+
* @return {any} Response from cache
|
|
55
|
+
*/
|
|
56
|
+
return _createClass(MemoryCache, [{
|
|
57
|
+
key: "get",
|
|
58
|
+
value: function get(key) {
|
|
59
|
+
var cached = this.cache.get(key);
|
|
60
|
+
if (cached) {
|
|
61
|
+
if (cached.expiresAt > Date.now() || cached.expiresAt === 0) {
|
|
62
|
+
return cached.value;
|
|
63
|
+
}
|
|
64
|
+
this.cache["delete"](key);
|
|
65
|
+
}
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Set cache key with value and ttl
|
|
71
|
+
* @param {string} key Cache key
|
|
72
|
+
* @param {any} value Value to cache
|
|
73
|
+
* @param {number} ttl Time to live in milliseconds
|
|
74
|
+
* @return {void}
|
|
75
|
+
*/
|
|
76
|
+
}, {
|
|
77
|
+
key: "set",
|
|
78
|
+
value: function set(key, value, ttl) {
|
|
79
|
+
// Evict first entry when at capacity - only when it's a new key.
|
|
80
|
+
if (this.cache.size === this.maxEntries && this.get(key) === undefined) {
|
|
81
|
+
this.cache["delete"](this.cache.keys().next().value);
|
|
82
|
+
}
|
|
83
|
+
this.cache.set(key, {
|
|
84
|
+
expiresAt: ttl,
|
|
85
|
+
value: value
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Delete cache key
|
|
91
|
+
* @param {string} key Cache key
|
|
92
|
+
* @return {void}
|
|
93
|
+
*/
|
|
94
|
+
}, {
|
|
95
|
+
key: "delete",
|
|
96
|
+
value: function _delete(key) {
|
|
97
|
+
this.cache["delete"](key);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Clear cache
|
|
102
|
+
* @returns {void}
|
|
103
|
+
*/
|
|
104
|
+
}, {
|
|
105
|
+
key: "flush",
|
|
106
|
+
value: function flush() {
|
|
107
|
+
this.cache.clear();
|
|
108
|
+
}
|
|
109
|
+
}]);
|
|
110
|
+
}();
|
|
111
|
+
module.exports = exports = MemoryCache;
|
|
112
|
+
|
|
113
|
+
/***/ }),
|
|
114
|
+
|
|
115
|
+
/***/ "./lib/circuit.js":
|
|
116
|
+
/*!************************!*\
|
|
117
|
+
!*** ./lib/circuit.js ***!
|
|
118
|
+
\************************/
|
|
119
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
120
|
+
|
|
121
|
+
"use strict";
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
125
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
126
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
127
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
128
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
129
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
130
|
+
function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
131
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
132
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
133
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
134
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
135
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
136
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
137
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
138
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
139
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
140
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
141
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
142
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
143
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
144
|
+
var EventEmitter = __webpack_require__(/*! events */ "./node_modules/events/events.js");
|
|
145
|
+
var Status = __webpack_require__(/*! ./status */ "./lib/status.js");
|
|
146
|
+
var Semaphore = __webpack_require__(/*! ./semaphore */ "./lib/semaphore.js");
|
|
147
|
+
var MemoryCache = __webpack_require__(/*! ./cache */ "./lib/cache.js");
|
|
148
|
+
var STATE = Symbol('state');
|
|
149
|
+
var OPEN = Symbol('open');
|
|
150
|
+
var CLOSED = Symbol('closed');
|
|
151
|
+
var HALF_OPEN = Symbol('half-open');
|
|
152
|
+
var PENDING_CLOSE = Symbol('pending-close');
|
|
153
|
+
var SHUTDOWN = Symbol('shutdown');
|
|
154
|
+
var FALLBACK_FUNCTION = Symbol('fallback');
|
|
155
|
+
var STATUS = Symbol('status');
|
|
156
|
+
var NAME = Symbol('name');
|
|
157
|
+
var GROUP = Symbol('group');
|
|
158
|
+
var ENABLED = Symbol('Enabled');
|
|
159
|
+
var WARMING_UP = Symbol('warming-up');
|
|
160
|
+
var VOLUME_THRESHOLD = Symbol('volume-threshold');
|
|
161
|
+
var OUR_ERROR = Symbol('our-error');
|
|
162
|
+
var RESET_TIMEOUT = Symbol('reset-timeout');
|
|
163
|
+
var WARMUP_TIMEOUT = Symbol('warmup-timeout');
|
|
164
|
+
var LAST_TIMER_AT = Symbol('last-timer-at');
|
|
165
|
+
var deprecation = "options.maxFailures is deprecated. Please use options.errorThresholdPercentage";
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Constructs a {@link CircuitBreaker}.
|
|
169
|
+
*
|
|
170
|
+
* @class CircuitBreaker
|
|
171
|
+
* @extends EventEmitter
|
|
172
|
+
* @param {Function} action The action to fire for this {@link CircuitBreaker}
|
|
173
|
+
* @param {Object} options Options for the {@link CircuitBreaker}
|
|
174
|
+
* @param {Status} options.status A {@link Status} object that might
|
|
175
|
+
* have pre-prime stats
|
|
176
|
+
* @param {Number} options.timeout The time in milliseconds that action should
|
|
177
|
+
* be allowed to execute before timing out. Timeout can be disabled by setting
|
|
178
|
+
* this to `false`. Default 10000 (10 seconds)
|
|
179
|
+
* @param {Number} options.maxFailures (Deprecated) The number of times the
|
|
180
|
+
* circuit can fail before opening. Default 10.
|
|
181
|
+
* @param {Number} options.resetTimeout The time in milliseconds to wait before
|
|
182
|
+
* setting the breaker to `halfOpen` state, and trying the action again.
|
|
183
|
+
* Default: 30000 (30 seconds)
|
|
184
|
+
* @param {Number} options.rollingCountTimeout Sets the duration of the
|
|
185
|
+
* statistical rolling window, in milliseconds. This is how long Opossum keeps
|
|
186
|
+
* metrics for the circuit breaker to use and for publishing. Default: 10000
|
|
187
|
+
* @param {Number} options.rollingCountBuckets Sets the number of buckets the
|
|
188
|
+
* rolling statistical window is divided into. So, if
|
|
189
|
+
* options.rollingCountTimeout is 10000, and options.rollingCountBuckets is 10,
|
|
190
|
+
* then the statistical window will be 1000/1 second snapshots in the
|
|
191
|
+
* statistical window. Default: 10
|
|
192
|
+
* @param {String} options.name the circuit name to use when reporting stats.
|
|
193
|
+
* Default: the name of the function this circuit controls.
|
|
194
|
+
* @param {boolean} options.rollingPercentilesEnabled This property indicates
|
|
195
|
+
* whether execution latencies should be tracked and calculated as percentiles.
|
|
196
|
+
* If they are disabled, all summary statistics (mean, percentiles) are
|
|
197
|
+
* returned as -1. Default: true
|
|
198
|
+
* @param {Number} options.capacity the number of concurrent requests allowed.
|
|
199
|
+
* If the number currently executing function calls is equal to
|
|
200
|
+
* options.capacity, further calls to `fire()` are rejected until at least one
|
|
201
|
+
* of the current requests completes. Default: `Number.MAX_SAFE_INTEGER`.
|
|
202
|
+
* @param {Number} options.errorThresholdPercentage the error percentage at
|
|
203
|
+
* which to open the circuit and start short-circuiting requests to fallback.
|
|
204
|
+
* Default: 50
|
|
205
|
+
* @param {boolean} options.enabled whether this circuit is enabled upon
|
|
206
|
+
* construction. Default: true
|
|
207
|
+
* @param {boolean} options.allowWarmUp determines whether to allow failures
|
|
208
|
+
* without opening the circuit during a brief warmup period (this is the
|
|
209
|
+
* `rollingCountTimeout` property). Default: false
|
|
210
|
+
* This can help in situations where no matter what your
|
|
211
|
+
* `errorThresholdPercentage` is, if the first execution times out or fails,
|
|
212
|
+
* the circuit immediately opens.
|
|
213
|
+
* @param {Number} options.volumeThreshold the minimum number of requests within
|
|
214
|
+
* the rolling statistical window that must exist before the circuit breaker
|
|
215
|
+
* can open. This is similar to `options.allowWarmUp` in that no matter how many
|
|
216
|
+
* failures there are, if the number of requests within the statistical window
|
|
217
|
+
* does not exceed this threshold, the circuit will remain closed. Default: 0
|
|
218
|
+
* @param {Function} options.errorFilter an optional function that will be
|
|
219
|
+
* called when the circuit's function fails (returns a rejected Promise). If
|
|
220
|
+
* this function returns truthy, the circuit's failPure statistics will not be
|
|
221
|
+
* incremented. This is useful, for example, when you don't want HTTP 404 to
|
|
222
|
+
* trip the circuit, but still want to handle it as a failure case.
|
|
223
|
+
* @param {boolean} options.cache whether the return value of the first
|
|
224
|
+
* successful execution of the circuit's function will be cached. Once a value
|
|
225
|
+
* has been cached that value will be returned for every subsequent execution:
|
|
226
|
+
* the cache can be cleared using `clearCache`. (The metrics `cacheHit` and
|
|
227
|
+
* `cacheMiss` reflect cache activity.) Default: false
|
|
228
|
+
* @param {Number} options.cacheTTL the time to live for the cache
|
|
229
|
+
* in milliseconds. Set 0 for infinity cache. Default: 0 (no TTL)
|
|
230
|
+
* @param {Number} options.cacheSize the max amount of entries in the internal
|
|
231
|
+
* cache. Only used when cacheTransport is not defined.
|
|
232
|
+
* Default: max size of JS map (2^24).
|
|
233
|
+
* @param {Function} options.cacheGetKey function that returns the key to use
|
|
234
|
+
* when caching the result of the circuit's fire.
|
|
235
|
+
* Better to use custom one, because `JSON.stringify` is not good
|
|
236
|
+
* from performance perspective.
|
|
237
|
+
* Default: `(...args) => JSON.stringify(args)`
|
|
238
|
+
* @param {CacheTransport} options.cacheTransport custom cache transport
|
|
239
|
+
* should implement `get`, `set` and `flush` methods.
|
|
240
|
+
* @param {boolean} options.coalesce If true, this provides coalescing of
|
|
241
|
+
* requests to this breaker, in other words: the promise will be cached.
|
|
242
|
+
* Only one action (with same cache key) is executed at a time, and the other
|
|
243
|
+
* pending actions wait for the result. Performance will improve when rapidly
|
|
244
|
+
* firing the circuitbreaker with the same request, especially on a slower
|
|
245
|
+
* action (e.g. multiple end-users fetching same data from remote).
|
|
246
|
+
* Will use internal cache only. Can be used in combination with options.cache.
|
|
247
|
+
* The metrics `coalesceCacheHit` and `coalesceCacheMiss` are available.
|
|
248
|
+
* Default: false
|
|
249
|
+
* @param {Number} options.coalesceTTL the time to live for the coalescing
|
|
250
|
+
* in milliseconds. Set 0 for infinity cache. Default: same as options.timeout
|
|
251
|
+
* @param {Number} options.coalesceSize the max amount of entries in the
|
|
252
|
+
* coalescing cache. Default: max size of JS map (2^24).
|
|
253
|
+
* @param {string[]} options.coalesceResetOn when to reset the coalesce cache.
|
|
254
|
+
* Options: `error`, `success`, `timeout`. Default: not set, reset using TTL.
|
|
255
|
+
* @param {AbortController} options.abortController this allows Opossum to
|
|
256
|
+
* signal upon timeout and properly abort your on going requests instead of
|
|
257
|
+
* leaving it in the background
|
|
258
|
+
* @param {boolean} options.enableSnapshots whether to enable the rolling
|
|
259
|
+
* stats snapshots that opossum emits at the bucketInterval. Disable this
|
|
260
|
+
* as an optimization if you don't listen to the 'snapshot' event to reduce
|
|
261
|
+
* the number of timers opossum initiates.
|
|
262
|
+
* @param {EventEmitter} options.rotateBucketController if you have multiple
|
|
263
|
+
* breakers in your app, the number of timers across breakers can get costly.
|
|
264
|
+
* This option allows you to provide an EventEmitter that rotates the buckets
|
|
265
|
+
* so you can have one global timer in your app. Make sure that you are
|
|
266
|
+
* emitting a 'rotate' event from this EventEmitter
|
|
267
|
+
* @param {boolean} options.autoRenewAbortController Automatically recreates
|
|
268
|
+
* the instance of AbortController whenever the circuit transitions to
|
|
269
|
+
* 'halfOpen' or 'closed' state. This ensures that new requests are not
|
|
270
|
+
* impacted by previous signals that were triggered when the circuit was 'open'.
|
|
271
|
+
* Default: false
|
|
272
|
+
*
|
|
273
|
+
*
|
|
274
|
+
* @fires CircuitBreaker#halfOpen
|
|
275
|
+
* @fires CircuitBreaker#close
|
|
276
|
+
* @fires CircuitBreaker#open
|
|
277
|
+
* @fires CircuitBreaker#fire
|
|
278
|
+
* @fires CircuitBreaker#cacheHit
|
|
279
|
+
* @fires CircuitBreaker#cacheMiss
|
|
280
|
+
* @fires CircuitBreaker#coalesceCacheHit
|
|
281
|
+
* @fires CircuitBreaker#coalesceCacheMiss
|
|
282
|
+
* @fires CircuitBreaker#reject
|
|
283
|
+
* @fires CircuitBreaker#timeout
|
|
284
|
+
* @fires CircuitBreaker#success
|
|
285
|
+
* @fires CircuitBreaker#semaphoreLocked
|
|
286
|
+
* @fires CircuitBreaker#healthCheckFailed
|
|
287
|
+
* @fires CircuitBreaker#fallback
|
|
288
|
+
* @fires CircuitBreaker#failure
|
|
289
|
+
*/
|
|
290
|
+
var CircuitBreaker = /*#__PURE__*/function (_EventEmitter) {
|
|
291
|
+
function CircuitBreaker(action) {
|
|
292
|
+
var _options$timeout, _options$resetTimeout, _options$errorThresho, _options$rollingCount, _options$rollingCount2, _options$cacheTTL, _options$cacheGetKey, _options$coalesceTTL, _options$coalesceRese;
|
|
293
|
+
var _this;
|
|
294
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
295
|
+
_classCallCheck(this, CircuitBreaker);
|
|
296
|
+
_this = _callSuper(this, CircuitBreaker);
|
|
297
|
+
_this.options = options;
|
|
298
|
+
_this.options.timeout = (_options$timeout = options.timeout) !== null && _options$timeout !== void 0 ? _options$timeout : 10000;
|
|
299
|
+
_this.options.resetTimeout = (_options$resetTimeout = options.resetTimeout) !== null && _options$resetTimeout !== void 0 ? _options$resetTimeout : 30000;
|
|
300
|
+
_this.options.errorThresholdPercentage = (_options$errorThresho = options.errorThresholdPercentage) !== null && _options$errorThresho !== void 0 ? _options$errorThresho : 50;
|
|
301
|
+
_this.options.rollingCountTimeout = (_options$rollingCount = options.rollingCountTimeout) !== null && _options$rollingCount !== void 0 ? _options$rollingCount : 10000;
|
|
302
|
+
_this.options.rollingCountBuckets = (_options$rollingCount2 = options.rollingCountBuckets) !== null && _options$rollingCount2 !== void 0 ? _options$rollingCount2 : 10;
|
|
303
|
+
_this.options.rollingPercentilesEnabled = options.rollingPercentilesEnabled !== false;
|
|
304
|
+
_this.options.capacity = Number.isInteger(options.capacity) ? options.capacity : Number.MAX_SAFE_INTEGER;
|
|
305
|
+
_this.options.errorFilter = options.errorFilter || function (_) {
|
|
306
|
+
return false;
|
|
307
|
+
};
|
|
308
|
+
_this.options.cacheTTL = (_options$cacheTTL = options.cacheTTL) !== null && _options$cacheTTL !== void 0 ? _options$cacheTTL : 0;
|
|
309
|
+
_this.options.cacheGetKey = (_options$cacheGetKey = options.cacheGetKey) !== null && _options$cacheGetKey !== void 0 ? _options$cacheGetKey : function () {
|
|
310
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
311
|
+
args[_key] = arguments[_key];
|
|
312
|
+
}
|
|
313
|
+
return JSON.stringify(args);
|
|
314
|
+
};
|
|
315
|
+
_this.options.enableSnapshots = options.enableSnapshots !== false;
|
|
316
|
+
_this.options.rotateBucketController = options.rotateBucketController;
|
|
317
|
+
_this.options.coalesce = !!options.coalesce;
|
|
318
|
+
_this.options.coalesceTTL = (_options$coalesceTTL = options.coalesceTTL) !== null && _options$coalesceTTL !== void 0 ? _options$coalesceTTL : _this.options.timeout;
|
|
319
|
+
_this.options.coalesceResetOn = ((_options$coalesceRese = options.coalesceResetOn) === null || _options$coalesceRese === void 0 ? void 0 : _options$coalesceRese.filter(function (o) {
|
|
320
|
+
return ['error', 'success', 'timeout'].includes(o);
|
|
321
|
+
})) || [];
|
|
322
|
+
|
|
323
|
+
// Set default cache transport if not provided
|
|
324
|
+
if (_this.options.cache) {
|
|
325
|
+
if (_this.options.cacheTransport === undefined) {
|
|
326
|
+
_this.options.cacheTransport = new MemoryCache(options.cacheSize);
|
|
327
|
+
} else if (_typeof(_this.options.cacheTransport) !== 'object' || !_this.options.cacheTransport.get || !_this.options.cacheTransport.set || !_this.options.cacheTransport.flush) {
|
|
328
|
+
throw new TypeError('options.cacheTransport should be an object with `get`, `set` and `flush` methods');
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
if (_this.options.coalesce) {
|
|
332
|
+
_this.options.coalesceCache = new MemoryCache(options.coalesceSize);
|
|
333
|
+
}
|
|
334
|
+
_this.semaphore = new Semaphore(_this.options.capacity);
|
|
335
|
+
|
|
336
|
+
// check if action is defined
|
|
337
|
+
if (!action) {
|
|
338
|
+
throw new TypeError('No action provided. Cannot construct a CircuitBreaker without an invocable action.');
|
|
339
|
+
}
|
|
340
|
+
if (options.autoRenewAbortController && !options.abortController) {
|
|
341
|
+
options.abortController = new AbortController();
|
|
342
|
+
}
|
|
343
|
+
if (options.abortController && typeof options.abortController.abort !== 'function') {
|
|
344
|
+
throw new TypeError('AbortController does not contain `abort()` method');
|
|
345
|
+
}
|
|
346
|
+
_this[VOLUME_THRESHOLD] = Number.isInteger(options.volumeThreshold) ? options.volumeThreshold : 0;
|
|
347
|
+
_this[WARMING_UP] = options.allowWarmUp === true;
|
|
348
|
+
|
|
349
|
+
// The user can pass in a Status object to initialize the Status/stats
|
|
350
|
+
if (_this.options.status) {
|
|
351
|
+
// Do a check that this is a Status Object,
|
|
352
|
+
if (_this.options.status instanceof Status) {
|
|
353
|
+
_this[STATUS] = _this.options.status;
|
|
354
|
+
} else {
|
|
355
|
+
_this[STATUS] = new Status({
|
|
356
|
+
stats: _this.options.status
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
} else {
|
|
360
|
+
_this[STATUS] = new Status(_this.options);
|
|
361
|
+
}
|
|
362
|
+
_this[STATE] = CLOSED;
|
|
363
|
+
if (options.state) {
|
|
364
|
+
_this[ENABLED] = options.state.enabled !== false;
|
|
365
|
+
_this[WARMING_UP] = options.state.warmUp || _this[WARMING_UP];
|
|
366
|
+
// Closed if nothing is passed in
|
|
367
|
+
_this[CLOSED] = options.state.closed !== false;
|
|
368
|
+
// These should be in sync
|
|
369
|
+
_this[HALF_OPEN] = _this[PENDING_CLOSE] = options.state.halfOpen || false;
|
|
370
|
+
// Open should be the opposite of closed,
|
|
371
|
+
// but also the opposite of half_open
|
|
372
|
+
_this[OPEN] = !_this[CLOSED] && !_this[HALF_OPEN];
|
|
373
|
+
_this[SHUTDOWN] = options.state.shutdown || false;
|
|
374
|
+
} else {
|
|
375
|
+
_this[PENDING_CLOSE] = false;
|
|
376
|
+
_this[ENABLED] = options.enabled !== false;
|
|
377
|
+
}
|
|
378
|
+
_this[FALLBACK_FUNCTION] = null;
|
|
379
|
+
_this[NAME] = options.name || action.name || nextName();
|
|
380
|
+
_this[GROUP] = options.group || _this[NAME];
|
|
381
|
+
if (_this[WARMING_UP]) {
|
|
382
|
+
var timer = _this[WARMUP_TIMEOUT] = setTimeout(function (_) {
|
|
383
|
+
return _this[WARMING_UP] = false;
|
|
384
|
+
}, _this.options.rollingCountTimeout);
|
|
385
|
+
if (typeof timer.unref === 'function') {
|
|
386
|
+
timer.unref();
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
if (typeof action !== 'function') {
|
|
390
|
+
_this.action = function (_) {
|
|
391
|
+
return Promise.resolve(action);
|
|
392
|
+
};
|
|
393
|
+
} else _this.action = action;
|
|
394
|
+
if (options.maxFailures) console.error(deprecation);
|
|
395
|
+
var increment = function increment(property) {
|
|
396
|
+
return function (result, runTime) {
|
|
397
|
+
return _this[STATUS].increment(property, runTime);
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
_this.on('success', increment('successes'));
|
|
401
|
+
_this.on('failure', increment('failures'));
|
|
402
|
+
_this.on('fallback', increment('fallbacks'));
|
|
403
|
+
_this.on('timeout', increment('timeouts'));
|
|
404
|
+
_this.on('fire', increment('fires'));
|
|
405
|
+
_this.on('reject', increment('rejects'));
|
|
406
|
+
_this.on('cacheHit', increment('cacheHits'));
|
|
407
|
+
_this.on('cacheMiss', increment('cacheMisses'));
|
|
408
|
+
_this.on('coalesceCacheHit', increment('coalesceCacheHits'));
|
|
409
|
+
_this.on('coalesceCacheMiss', increment('coalesceCacheMisses'));
|
|
410
|
+
_this.on('open', function (_) {
|
|
411
|
+
return _this[STATUS].open();
|
|
412
|
+
});
|
|
413
|
+
_this.on('close', function (_) {
|
|
414
|
+
return _this[STATUS].close();
|
|
415
|
+
});
|
|
416
|
+
_this.on('semaphoreLocked', increment('semaphoreRejections'));
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* @param {CircuitBreaker} circuit This current circuit
|
|
420
|
+
* @returns {function(): void} A bound reset callback
|
|
421
|
+
* @private
|
|
422
|
+
*/
|
|
423
|
+
function _startTimer(circuit) {
|
|
424
|
+
circuit[LAST_TIMER_AT] = Date.now();
|
|
425
|
+
return function (_) {
|
|
426
|
+
var timer = circuit[RESET_TIMEOUT] = setTimeout(function () {
|
|
427
|
+
_halfOpen(circuit);
|
|
428
|
+
}, circuit.options.resetTimeout);
|
|
429
|
+
if (typeof timer.unref === 'function') {
|
|
430
|
+
timer.unref();
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Sets the circuit breaker to half open
|
|
437
|
+
* @private
|
|
438
|
+
* @param {CircuitBreaker} circuit The current circuit breaker
|
|
439
|
+
* @returns {void}
|
|
440
|
+
*/
|
|
441
|
+
function _halfOpen(circuit) {
|
|
442
|
+
circuit[STATE] = HALF_OPEN;
|
|
443
|
+
circuit[PENDING_CLOSE] = true;
|
|
444
|
+
circuit._renewAbortControllerIfNeeded();
|
|
445
|
+
/**
|
|
446
|
+
* Emitted after `options.resetTimeout` has elapsed, allowing for
|
|
447
|
+
* a single attempt to call the service again. If that attempt is
|
|
448
|
+
* successful, the circuit will be closed. Otherwise it remains open.
|
|
449
|
+
*
|
|
450
|
+
* @event CircuitBreaker#halfOpen
|
|
451
|
+
* @type {Number} how long the circuit remained open
|
|
452
|
+
*/
|
|
453
|
+
circuit.emit('halfOpen', circuit.options.resetTimeout);
|
|
454
|
+
}
|
|
455
|
+
_this.on('open', _startTimer(_this));
|
|
456
|
+
_this.on('success', function (_) {
|
|
457
|
+
if (_this.halfOpen) {
|
|
458
|
+
_this.close();
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
|
|
462
|
+
// Prepopulate the State of the Breaker
|
|
463
|
+
if (_this[SHUTDOWN]) {
|
|
464
|
+
_this[STATE] = SHUTDOWN;
|
|
465
|
+
_this.shutdown();
|
|
466
|
+
} else if (_this[CLOSED]) {
|
|
467
|
+
_this.close();
|
|
468
|
+
} else if (_this[OPEN]) {
|
|
469
|
+
// If the state being passed in is OPEN but more time has elapsed
|
|
470
|
+
// than the resetTimeout, then we should be in halfOpen state
|
|
471
|
+
if (_this.options.state.lastTimerAt !== undefined && Date.now() - _this.options.state.lastTimerAt > _this.options.resetTimeout) {
|
|
472
|
+
_halfOpen(_this);
|
|
473
|
+
} else {
|
|
474
|
+
_this.open();
|
|
475
|
+
}
|
|
476
|
+
} else if (_this[HALF_OPEN]) {
|
|
477
|
+
// Not sure if anything needs to be done here
|
|
478
|
+
_this[STATE] = HALF_OPEN;
|
|
479
|
+
}
|
|
480
|
+
return _this;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Renews the abort controller if needed
|
|
485
|
+
* @private
|
|
486
|
+
* @returns {void}
|
|
487
|
+
*/
|
|
488
|
+
_inherits(CircuitBreaker, _EventEmitter);
|
|
489
|
+
return _createClass(CircuitBreaker, [{
|
|
490
|
+
key: "_renewAbortControllerIfNeeded",
|
|
491
|
+
value: function _renewAbortControllerIfNeeded() {
|
|
492
|
+
if (this.options.autoRenewAbortController && this.options.abortController && this.options.abortController.signal.aborted) {
|
|
493
|
+
this.options.abortController = new AbortController();
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Closes the breaker, allowing the action to execute again
|
|
499
|
+
* @fires CircuitBreaker#close
|
|
500
|
+
* @returns {void}
|
|
501
|
+
*/
|
|
502
|
+
}, {
|
|
503
|
+
key: "close",
|
|
504
|
+
value: function close() {
|
|
505
|
+
if (this[STATE] !== CLOSED) {
|
|
506
|
+
if (this[RESET_TIMEOUT]) {
|
|
507
|
+
clearTimeout(this[RESET_TIMEOUT]);
|
|
508
|
+
}
|
|
509
|
+
this[STATE] = CLOSED;
|
|
510
|
+
this[PENDING_CLOSE] = false;
|
|
511
|
+
this._renewAbortControllerIfNeeded();
|
|
512
|
+
/**
|
|
513
|
+
* Emitted when the breaker is reset allowing the action to execute again
|
|
514
|
+
* @event CircuitBreaker#close
|
|
515
|
+
*/
|
|
516
|
+
this.emit('close');
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Opens the breaker. Each time the breaker is fired while the circuit is
|
|
522
|
+
* opened, a failed Promise is returned, or if any fallback function
|
|
523
|
+
* has been provided, it is invoked.
|
|
524
|
+
*
|
|
525
|
+
* If the breaker is already open this call does nothing.
|
|
526
|
+
* @fires CircuitBreaker#open
|
|
527
|
+
* @returns {void}
|
|
528
|
+
*/
|
|
529
|
+
}, {
|
|
530
|
+
key: "open",
|
|
531
|
+
value: function open() {
|
|
532
|
+
if (this[STATE] !== OPEN) {
|
|
533
|
+
this[STATE] = OPEN;
|
|
534
|
+
this[PENDING_CLOSE] = false;
|
|
535
|
+
/**
|
|
536
|
+
* Emitted when the breaker opens because the action has
|
|
537
|
+
* failure percentage greater than `options.errorThresholdPercentage`.
|
|
538
|
+
* @event CircuitBreaker#open
|
|
539
|
+
*/
|
|
540
|
+
this.emit('open');
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Shuts down this circuit breaker. All subsequent calls to the
|
|
546
|
+
* circuit will fail, returning a rejected promise.
|
|
547
|
+
* @returns {void}
|
|
548
|
+
*/
|
|
549
|
+
}, {
|
|
550
|
+
key: "shutdown",
|
|
551
|
+
value: function shutdown() {
|
|
552
|
+
/**
|
|
553
|
+
* Emitted when the circuit breaker has been shut down.
|
|
554
|
+
* @event CircuitBreaker#shutdown
|
|
555
|
+
*/
|
|
556
|
+
this.emit('shutdown');
|
|
557
|
+
this.disable();
|
|
558
|
+
this.removeAllListeners();
|
|
559
|
+
if (this[RESET_TIMEOUT]) {
|
|
560
|
+
clearTimeout(this[RESET_TIMEOUT]);
|
|
561
|
+
}
|
|
562
|
+
if (this[WARMUP_TIMEOUT]) {
|
|
563
|
+
clearTimeout(this[WARMUP_TIMEOUT]);
|
|
564
|
+
}
|
|
565
|
+
this.status.shutdown();
|
|
566
|
+
this[STATE] = SHUTDOWN;
|
|
567
|
+
|
|
568
|
+
// clear cache on shutdown
|
|
569
|
+
this.clearCache();
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Determines if the circuit has been shutdown.
|
|
574
|
+
* @type {Boolean}
|
|
575
|
+
*/
|
|
576
|
+
}, {
|
|
577
|
+
key: "isShutdown",
|
|
578
|
+
get: function get() {
|
|
579
|
+
return this[STATE] === SHUTDOWN;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Gets the name of this circuit
|
|
584
|
+
* @type {String}
|
|
585
|
+
*/
|
|
586
|
+
}, {
|
|
587
|
+
key: "name",
|
|
588
|
+
get: function get() {
|
|
589
|
+
return this[NAME];
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Gets the name of this circuit group
|
|
594
|
+
* @type {String}
|
|
595
|
+
*/
|
|
596
|
+
}, {
|
|
597
|
+
key: "group",
|
|
598
|
+
get: function get() {
|
|
599
|
+
return this[GROUP];
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Gets whether this circuit is in the `pendingClosed` state
|
|
604
|
+
* @type {Boolean}
|
|
605
|
+
*/
|
|
606
|
+
}, {
|
|
607
|
+
key: "pendingClose",
|
|
608
|
+
get: function get() {
|
|
609
|
+
return this[PENDING_CLOSE];
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* True if the circuit is currently closed. False otherwise.
|
|
614
|
+
* @type {Boolean}
|
|
615
|
+
*/
|
|
616
|
+
}, {
|
|
617
|
+
key: "closed",
|
|
618
|
+
get: function get() {
|
|
619
|
+
return this[STATE] === CLOSED;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* True if the circuit is currently opened. False otherwise.
|
|
624
|
+
* @type {Boolean}
|
|
625
|
+
*/
|
|
626
|
+
}, {
|
|
627
|
+
key: "opened",
|
|
628
|
+
get: function get() {
|
|
629
|
+
return this[STATE] === OPEN;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* True if the circuit is currently half opened. False otherwise.
|
|
634
|
+
* @type {Boolean}
|
|
635
|
+
*/
|
|
636
|
+
}, {
|
|
637
|
+
key: "halfOpen",
|
|
638
|
+
get: function get() {
|
|
639
|
+
return this[STATE] === HALF_OPEN;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* The current {@link Status} of this {@link CircuitBreaker}
|
|
644
|
+
* @type {Status}
|
|
645
|
+
*/
|
|
646
|
+
}, {
|
|
647
|
+
key: "status",
|
|
648
|
+
get: function get() {
|
|
649
|
+
return this[STATUS];
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Get the current stats for the circuit.
|
|
654
|
+
* @see Status#stats
|
|
655
|
+
* @type {Object}
|
|
656
|
+
*/
|
|
657
|
+
}, {
|
|
658
|
+
key: "stats",
|
|
659
|
+
get: function get() {
|
|
660
|
+
return this[STATUS].stats;
|
|
661
|
+
}
|
|
662
|
+
}, {
|
|
663
|
+
key: "toJSON",
|
|
664
|
+
value: function toJSON() {
|
|
665
|
+
return {
|
|
666
|
+
state: {
|
|
667
|
+
name: this.name,
|
|
668
|
+
enabled: this.enabled,
|
|
669
|
+
closed: this.closed,
|
|
670
|
+
open: this.opened,
|
|
671
|
+
halfOpen: this.halfOpen,
|
|
672
|
+
warmUp: this.warmUp,
|
|
673
|
+
shutdown: this.isShutdown,
|
|
674
|
+
lastTimerAt: this[LAST_TIMER_AT]
|
|
675
|
+
},
|
|
676
|
+
status: this.status.stats
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Gets whether the circuit is enabled or not
|
|
682
|
+
* @type {Boolean}
|
|
683
|
+
*/
|
|
684
|
+
}, {
|
|
685
|
+
key: "enabled",
|
|
686
|
+
get: function get() {
|
|
687
|
+
return this[ENABLED];
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Gets whether the circuit is currently in warm up phase
|
|
692
|
+
* @type {Boolean}
|
|
693
|
+
*/
|
|
694
|
+
}, {
|
|
695
|
+
key: "warmUp",
|
|
696
|
+
get: function get() {
|
|
697
|
+
return this[WARMING_UP];
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Gets the volume threshold for this circuit
|
|
702
|
+
* @type {Boolean}
|
|
703
|
+
*/
|
|
704
|
+
}, {
|
|
705
|
+
key: "volumeThreshold",
|
|
706
|
+
get: function get() {
|
|
707
|
+
return this[VOLUME_THRESHOLD];
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Provide a fallback function for this {@link CircuitBreaker}. This
|
|
712
|
+
* function will be executed when the circuit is `fire`d and fails.
|
|
713
|
+
* It will always be preceded by a `failure` event, and `breaker.fire` returns
|
|
714
|
+
* a rejected Promise.
|
|
715
|
+
* @param {Function | CircuitBreaker} func the fallback function to execute
|
|
716
|
+
* when the breaker has opened or when a timeout or error occurs.
|
|
717
|
+
* @return {CircuitBreaker} this
|
|
718
|
+
*/
|
|
719
|
+
}, {
|
|
720
|
+
key: "fallback",
|
|
721
|
+
value: function fallback(func) {
|
|
722
|
+
var fb = func;
|
|
723
|
+
if (func instanceof CircuitBreaker) {
|
|
724
|
+
fb = function fb() {
|
|
725
|
+
return func.fire.apply(func, arguments);
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
this[FALLBACK_FUNCTION] = fb;
|
|
729
|
+
return this;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* Execute the action for this circuit. If the action fails or times out, the
|
|
734
|
+
* returned promise will be rejected. If the action succeeds, the promise will
|
|
735
|
+
* resolve with the resolved value from action. If a fallback function was
|
|
736
|
+
* provided, it will be invoked in the event of any failure or timeout.
|
|
737
|
+
*
|
|
738
|
+
* Any parameters passed to this function will be proxied to the circuit
|
|
739
|
+
* function.
|
|
740
|
+
*
|
|
741
|
+
* @return {Promise<any>} promise resolves with the circuit function's return
|
|
742
|
+
* value on success or is rejected on failure of the action. Use isOurError()
|
|
743
|
+
* to determine if a rejection was a result of the circuit breaker or the
|
|
744
|
+
* action.
|
|
745
|
+
*
|
|
746
|
+
* @fires CircuitBreaker#failure
|
|
747
|
+
* @fires CircuitBreaker#fallback
|
|
748
|
+
* @fires CircuitBreaker#fire
|
|
749
|
+
* @fires CircuitBreaker#reject
|
|
750
|
+
* @fires CircuitBreaker#success
|
|
751
|
+
* @fires CircuitBreaker#timeout
|
|
752
|
+
* @fires CircuitBreaker#semaphoreLocked
|
|
753
|
+
*/
|
|
754
|
+
}, {
|
|
755
|
+
key: "fire",
|
|
756
|
+
value: function fire() {
|
|
757
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
758
|
+
args[_key2] = arguments[_key2];
|
|
759
|
+
}
|
|
760
|
+
return this.call.apply(this, [this.action].concat(args));
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Execute the action for this circuit using `context` as `this`.
|
|
765
|
+
* If the action fails or times out, the
|
|
766
|
+
* returned promise will be rejected. If the action succeeds, the promise will
|
|
767
|
+
* resolve with the resolved value from action. If a fallback function was
|
|
768
|
+
* provided, it will be invoked in the event of any failure or timeout.
|
|
769
|
+
*
|
|
770
|
+
* Any parameters in addition to `context will be passed to the
|
|
771
|
+
* circuit function.
|
|
772
|
+
*
|
|
773
|
+
* @param {any} context the `this` context used for function execution
|
|
774
|
+
* @param {any} rest the arguments passed to the action
|
|
775
|
+
*
|
|
776
|
+
* @return {Promise<any>} promise resolves with the circuit function's return
|
|
777
|
+
* value on success or is rejected on failure of the action.
|
|
778
|
+
*
|
|
779
|
+
* @fires CircuitBreaker#failure
|
|
780
|
+
* @fires CircuitBreaker#fallback
|
|
781
|
+
* @fires CircuitBreaker#fire
|
|
782
|
+
* @fires CircuitBreaker#reject
|
|
783
|
+
* @fires CircuitBreaker#success
|
|
784
|
+
* @fires CircuitBreaker#timeout
|
|
785
|
+
* @fires CircuitBreaker#semaphoreLocked
|
|
786
|
+
*/
|
|
787
|
+
}, {
|
|
788
|
+
key: "call",
|
|
789
|
+
value: function call(context) {
|
|
790
|
+
var _this2 = this;
|
|
791
|
+
if (this.isShutdown) {
|
|
792
|
+
var err = buildError('The circuit has been shutdown.', 'ESHUTDOWN');
|
|
793
|
+
return Promise.reject(err);
|
|
794
|
+
}
|
|
795
|
+
for (var _len3 = arguments.length, rest = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
796
|
+
rest[_key3 - 1] = arguments[_key3];
|
|
797
|
+
}
|
|
798
|
+
var args = rest.slice();
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Emitted when the circuit breaker action is executed
|
|
802
|
+
* @event CircuitBreaker#fire
|
|
803
|
+
* @type {any} the arguments passed to the fired function
|
|
804
|
+
*/
|
|
805
|
+
this.emit('fire', args);
|
|
806
|
+
|
|
807
|
+
// Protection, caches and coalesce disabled.
|
|
808
|
+
if (!this[ENABLED]) {
|
|
809
|
+
var result = this.action.apply(context, args);
|
|
810
|
+
return typeof result.then === 'function' ? result : Promise.resolve(result);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
// Generate cachekey only when cache and/or coalesce is enabled.
|
|
814
|
+
var cacheKey = this.options.cache || this.options.coalesce ? this.options.cacheGetKey.apply(this, rest) : '';
|
|
815
|
+
|
|
816
|
+
// If cache is enabled, check if we have a cached value
|
|
817
|
+
if (this.options.cache) {
|
|
818
|
+
var cached = this.options.cacheTransport.get(cacheKey);
|
|
819
|
+
if (cached) {
|
|
820
|
+
/**
|
|
821
|
+
* Emitted when the circuit breaker is using the cache
|
|
822
|
+
* and finds a value.
|
|
823
|
+
* @event CircuitBreaker#cacheHit
|
|
824
|
+
*/
|
|
825
|
+
this.emit('cacheHit');
|
|
826
|
+
return cached;
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Emitted when the circuit breaker does not find a value in
|
|
830
|
+
* the cache, but the cache option is enabled.
|
|
831
|
+
* @event CircuitBreaker#cacheMiss
|
|
832
|
+
*/
|
|
833
|
+
this.emit('cacheMiss');
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
/* When coalesce is enabled, check coalesce cache and return
|
|
837
|
+
promise, if any. */
|
|
838
|
+
if (this.options.coalesce) {
|
|
839
|
+
var cachedCall = this.options.coalesceCache.get(cacheKey);
|
|
840
|
+
if (cachedCall) {
|
|
841
|
+
/**
|
|
842
|
+
* Emitted when the circuit breaker is using coalesce cache
|
|
843
|
+
* and finds a cached promise.
|
|
844
|
+
* @event CircuitBreaker#coalesceCacheHit
|
|
845
|
+
*/
|
|
846
|
+
this.emit('coalesceCacheHit');
|
|
847
|
+
return cachedCall;
|
|
848
|
+
}
|
|
849
|
+
/**
|
|
850
|
+
* Emitted when the circuit breaker does not find a value in
|
|
851
|
+
* coalesce cache, but the coalesce option is enabled.
|
|
852
|
+
* @event CircuitBreaker#coalesceCacheMiss
|
|
853
|
+
*/
|
|
854
|
+
this.emit('coalesceCacheMiss');
|
|
855
|
+
}
|
|
856
|
+
if (!this.closed && !this.pendingClose) {
|
|
857
|
+
/**
|
|
858
|
+
* Emitted when the circuit breaker is open and failing fast
|
|
859
|
+
* @event CircuitBreaker#reject
|
|
860
|
+
* @type {Error}
|
|
861
|
+
*/
|
|
862
|
+
var error = buildError('Breaker is open', 'EOPENBREAKER');
|
|
863
|
+
this.emit('reject', error);
|
|
864
|
+
return fallback(this, error, args) || Promise.reject(error);
|
|
865
|
+
}
|
|
866
|
+
this[PENDING_CLOSE] = false;
|
|
867
|
+
var timeout;
|
|
868
|
+
var timeoutError = false;
|
|
869
|
+
var call = new Promise(function (resolve, reject) {
|
|
870
|
+
var latencyStartTime = Date.now();
|
|
871
|
+
if (_this2.semaphore.test()) {
|
|
872
|
+
if (_this2.options.timeout) {
|
|
873
|
+
timeout = setTimeout(function () {
|
|
874
|
+
timeoutError = true;
|
|
875
|
+
var error = buildError("Timed out after ".concat(_this2.options.timeout, "ms"), 'ETIMEDOUT');
|
|
876
|
+
var latency = Date.now() - latencyStartTime;
|
|
877
|
+
_this2.semaphore.release();
|
|
878
|
+
/**
|
|
879
|
+
* Emitted when the circuit breaker action takes longer than
|
|
880
|
+
* `options.timeout`
|
|
881
|
+
* @event CircuitBreaker#timeout
|
|
882
|
+
* @type {Error}
|
|
883
|
+
*/
|
|
884
|
+
_this2.emit('timeout', error, latency, args);
|
|
885
|
+
handleError(error, _this2, timeout, args, latency, resolve, reject);
|
|
886
|
+
resetCoalesce(_this2, cacheKey, 'timeout');
|
|
887
|
+
if (_this2.options.abortController) {
|
|
888
|
+
_this2.options.abortController.abort();
|
|
889
|
+
}
|
|
890
|
+
}, _this2.options.timeout);
|
|
891
|
+
}
|
|
892
|
+
try {
|
|
893
|
+
var _result = _this2.action.apply(context, args);
|
|
894
|
+
var promise = typeof _result.then === 'function' ? _result : Promise.resolve(_result);
|
|
895
|
+
promise.then(function (result) {
|
|
896
|
+
if (!timeoutError) {
|
|
897
|
+
clearTimeout(timeout);
|
|
898
|
+
/**
|
|
899
|
+
* Emitted when the circuit breaker action succeeds
|
|
900
|
+
* @event CircuitBreaker#success
|
|
901
|
+
* @type {any} the return value from the circuit
|
|
902
|
+
*/
|
|
903
|
+
_this2.emit('success', result, Date.now() - latencyStartTime);
|
|
904
|
+
resetCoalesce(_this2, cacheKey, 'success');
|
|
905
|
+
_this2.semaphore.release();
|
|
906
|
+
resolve(result);
|
|
907
|
+
if (_this2.options.cache) {
|
|
908
|
+
_this2.options.cacheTransport.set(cacheKey, promise, _this2.options.cacheTTL > 0 ? Date.now() + _this2.options.cacheTTL : 0);
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
})["catch"](function (error) {
|
|
912
|
+
if (!timeoutError) {
|
|
913
|
+
_this2.semaphore.release();
|
|
914
|
+
var latencyEndTime = Date.now() - latencyStartTime;
|
|
915
|
+
handleError(error, _this2, timeout, args, latencyEndTime, resolve, reject);
|
|
916
|
+
resetCoalesce(_this2, cacheKey, 'error');
|
|
917
|
+
}
|
|
918
|
+
});
|
|
919
|
+
} catch (error) {
|
|
920
|
+
_this2.semaphore.release();
|
|
921
|
+
var latency = Date.now() - latencyStartTime;
|
|
922
|
+
handleError(error, _this2, timeout, args, latency, resolve, reject);
|
|
923
|
+
resetCoalesce(_this2, cacheKey, 'error');
|
|
924
|
+
}
|
|
925
|
+
} else {
|
|
926
|
+
var _latency = Date.now() - latencyStartTime;
|
|
927
|
+
var _err = buildError('Semaphore locked', 'ESEMLOCKED');
|
|
928
|
+
/**
|
|
929
|
+
* Emitted when the rate limit has been reached and there
|
|
930
|
+
* are no more locks to be obtained.
|
|
931
|
+
* @event CircuitBreaker#semaphoreLocked
|
|
932
|
+
* @type {Error}
|
|
933
|
+
*/
|
|
934
|
+
_this2.emit('semaphoreLocked', _err, _latency);
|
|
935
|
+
handleError(_err, _this2, timeout, args, _latency, resolve, reject);
|
|
936
|
+
resetCoalesce(_this2, cacheKey);
|
|
937
|
+
}
|
|
938
|
+
});
|
|
939
|
+
|
|
940
|
+
/* When coalesce is enabled, store promise in coalesceCache */
|
|
941
|
+
if (this.options.coalesce) {
|
|
942
|
+
this.options.coalesceCache.set(cacheKey, call, this.options.coalesceTTL > 0 ? Date.now() + this.options.coalesceTTL : 0);
|
|
943
|
+
}
|
|
944
|
+
return call;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* Clears the cache of this {@link CircuitBreaker}
|
|
949
|
+
* @returns {void}
|
|
950
|
+
*/
|
|
951
|
+
}, {
|
|
952
|
+
key: "clearCache",
|
|
953
|
+
value: function clearCache() {
|
|
954
|
+
if (this.options.cache) {
|
|
955
|
+
this.options.cacheTransport.flush();
|
|
956
|
+
}
|
|
957
|
+
if (this.options.coalesceCache) {
|
|
958
|
+
this.options.coalesceCache.flush();
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Provide a health check function to be called periodically. The function
|
|
964
|
+
* should return a Promise. If the promise is rejected the circuit will open.
|
|
965
|
+
* This is in addition to the existing circuit behavior as defined by
|
|
966
|
+
* `options.errorThresholdPercentage` in the constructor. For example, if the
|
|
967
|
+
* health check function provided here always returns a resolved promise, the
|
|
968
|
+
* circuit can still trip and open if there are failures exceeding the
|
|
969
|
+
* configured threshold. The health check function is executed within the
|
|
970
|
+
* circuit breaker's execution context, so `this` within the function is the
|
|
971
|
+
* circuit breaker itself.
|
|
972
|
+
*
|
|
973
|
+
* @param {Function} func a health check function which returns a promise.
|
|
974
|
+
* @param {Number} [interval] the amount of time between calls to the health
|
|
975
|
+
* check function. Default: 5000 (5 seconds)
|
|
976
|
+
*
|
|
977
|
+
* @returns {void}
|
|
978
|
+
*
|
|
979
|
+
* @fires CircuitBreaker#healthCheckFailed
|
|
980
|
+
* @throws {TypeError} if `interval` is supplied but not a number
|
|
981
|
+
*/
|
|
982
|
+
}, {
|
|
983
|
+
key: "healthCheck",
|
|
984
|
+
value: function healthCheck(func, interval) {
|
|
985
|
+
var _this3 = this;
|
|
986
|
+
interval = interval || 5000;
|
|
987
|
+
if (typeof func !== 'function') {
|
|
988
|
+
throw new TypeError('Health check function must be a function');
|
|
989
|
+
}
|
|
990
|
+
if (isNaN(interval)) {
|
|
991
|
+
throw new TypeError('Health check interval must be a number');
|
|
992
|
+
}
|
|
993
|
+
var check = function check(_) {
|
|
994
|
+
func.apply(_this3)["catch"](function (e) {
|
|
995
|
+
/**
|
|
996
|
+
* Emitted with the user-supplied health check function
|
|
997
|
+
* returns a rejected promise.
|
|
998
|
+
* @event CircuitBreaker#healthCheckFailed
|
|
999
|
+
* @type {Error}
|
|
1000
|
+
*/
|
|
1001
|
+
_this3.emit('healthCheckFailed', e);
|
|
1002
|
+
_this3.open();
|
|
1003
|
+
});
|
|
1004
|
+
};
|
|
1005
|
+
var timer = setInterval(check, interval);
|
|
1006
|
+
if (typeof timer.unref === 'function') {
|
|
1007
|
+
timer.unref();
|
|
1008
|
+
}
|
|
1009
|
+
check();
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Enables this circuit. If the circuit is the disabled
|
|
1014
|
+
* state, it will be re-enabled. If not, this is essentially
|
|
1015
|
+
* a noop.
|
|
1016
|
+
* @returns {void}
|
|
1017
|
+
*/
|
|
1018
|
+
}, {
|
|
1019
|
+
key: "enable",
|
|
1020
|
+
value: function enable() {
|
|
1021
|
+
this[ENABLED] = true;
|
|
1022
|
+
this.status.startListeneningForRotateEvent();
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Disables this circuit, causing all calls to the circuit's function
|
|
1027
|
+
* to be executed without circuit or fallback protection.
|
|
1028
|
+
* @returns {void}
|
|
1029
|
+
*/
|
|
1030
|
+
}, {
|
|
1031
|
+
key: "disable",
|
|
1032
|
+
value: function disable() {
|
|
1033
|
+
this[ENABLED] = false;
|
|
1034
|
+
this.status.removeRotateBucketControllerListener();
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Retrieves the current AbortSignal from the abortController, if available.
|
|
1039
|
+
* This signal can be used to monitor ongoing requests.
|
|
1040
|
+
* @returns {AbortSignal|undefined} The AbortSignal if present,
|
|
1041
|
+
* otherwise undefined.
|
|
1042
|
+
*/
|
|
1043
|
+
}, {
|
|
1044
|
+
key: "getSignal",
|
|
1045
|
+
value: function getSignal() {
|
|
1046
|
+
if (this.options.abortController && this.options.abortController.signal) {
|
|
1047
|
+
return this.options.abortController.signal;
|
|
1048
|
+
}
|
|
1049
|
+
return undefined;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Retrieves the current AbortController instance.
|
|
1054
|
+
* This controller can be used to manually abort ongoing requests or create
|
|
1055
|
+
* a new signal.
|
|
1056
|
+
* @returns {AbortController|undefined} The AbortController if present,
|
|
1057
|
+
* otherwise undefined.
|
|
1058
|
+
*/
|
|
1059
|
+
}, {
|
|
1060
|
+
key: "getAbortController",
|
|
1061
|
+
value: function getAbortController() {
|
|
1062
|
+
return this.options.abortController;
|
|
1063
|
+
}
|
|
1064
|
+
}], [{
|
|
1065
|
+
key: "isOurError",
|
|
1066
|
+
value:
|
|
1067
|
+
/**
|
|
1068
|
+
* Returns true if the provided error was generated here. It will be false
|
|
1069
|
+
* if the error came from the action itself.
|
|
1070
|
+
* @param {Error} error The Error to check.
|
|
1071
|
+
* @returns {Boolean} true if the error was generated here
|
|
1072
|
+
*/
|
|
1073
|
+
function isOurError(error) {
|
|
1074
|
+
return !!error[OUR_ERROR];
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Create a new Status object,
|
|
1079
|
+
* helpful when you need to prime a breaker with stats
|
|
1080
|
+
* @param {Object} options -
|
|
1081
|
+
* @param {Number} options.rollingCountBuckets number of buckets in the window
|
|
1082
|
+
* @param {Number} options.rollingCountTimeout the duration of the window
|
|
1083
|
+
* @param {Boolean} options.rollingPercentilesEnabled whether to calculate
|
|
1084
|
+
* @param {Object} options.stats user supplied stats
|
|
1085
|
+
* @returns {Status} a new {@link Status} object
|
|
1086
|
+
*/
|
|
1087
|
+
}, {
|
|
1088
|
+
key: "newStatus",
|
|
1089
|
+
value: function newStatus(options) {
|
|
1090
|
+
return new Status(options);
|
|
1091
|
+
}
|
|
1092
|
+
}]);
|
|
1093
|
+
}(EventEmitter);
|
|
1094
|
+
function handleError(error, circuit, timeout, args, latency, resolve, reject) {
|
|
1095
|
+
var _circuit$options;
|
|
1096
|
+
clearTimeout(timeout);
|
|
1097
|
+
if ((_circuit$options = circuit.options).errorFilter.apply(_circuit$options, [error].concat(_toConsumableArray(args)))) {
|
|
1098
|
+
// The error was filtered, so emit 'success'
|
|
1099
|
+
circuit.emit('success', error, latency);
|
|
1100
|
+
} else {
|
|
1101
|
+
// Error was not filtered, so emit 'failure'
|
|
1102
|
+
fail(circuit, error, args, latency);
|
|
1103
|
+
|
|
1104
|
+
// Only call the fallback function if errorFilter doesn't succeed
|
|
1105
|
+
// If the fallback function succeeds, resolve
|
|
1106
|
+
var fb = fallback(circuit, error, args);
|
|
1107
|
+
if (fb) return resolve(fb);
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
// In all other cases, reject
|
|
1111
|
+
reject(error);
|
|
1112
|
+
}
|
|
1113
|
+
function fallback(circuit, err, args) {
|
|
1114
|
+
if (circuit[FALLBACK_FUNCTION]) {
|
|
1115
|
+
try {
|
|
1116
|
+
var result = circuit[FALLBACK_FUNCTION].apply(circuit[FALLBACK_FUNCTION], [].concat(_toConsumableArray(args), [err]));
|
|
1117
|
+
/**
|
|
1118
|
+
* Emitted when the circuit breaker executes a fallback function
|
|
1119
|
+
* @event CircuitBreaker#fallback
|
|
1120
|
+
* @type {any} the return value of the fallback function
|
|
1121
|
+
*/
|
|
1122
|
+
circuit.emit('fallback', result, err);
|
|
1123
|
+
if (result instanceof Promise) return result;
|
|
1124
|
+
return Promise.resolve(result);
|
|
1125
|
+
} catch (e) {
|
|
1126
|
+
return Promise.reject(e);
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
function fail(circuit, err, args, latency) {
|
|
1131
|
+
/**
|
|
1132
|
+
* Emitted when the circuit breaker action fails
|
|
1133
|
+
* @event CircuitBreaker#failure
|
|
1134
|
+
* @type {Error}
|
|
1135
|
+
*/
|
|
1136
|
+
circuit.emit('failure', err, latency, args);
|
|
1137
|
+
if (circuit.warmUp) return;
|
|
1138
|
+
|
|
1139
|
+
// check stats to see if the circuit should be opened
|
|
1140
|
+
var stats = circuit.stats;
|
|
1141
|
+
if (stats.fires < circuit.volumeThreshold && !circuit.halfOpen) return;
|
|
1142
|
+
var errorRate = stats.failures / stats.fires * 100;
|
|
1143
|
+
if (errorRate > circuit.options.errorThresholdPercentage || circuit.halfOpen) {
|
|
1144
|
+
circuit.open();
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
function resetCoalesce(circuit, cacheKey, event) {
|
|
1148
|
+
/**
|
|
1149
|
+
* Reset coalesce cache for this cacheKey, depending on
|
|
1150
|
+
* options.coalesceResetOn set.
|
|
1151
|
+
* @param {@link CircuitBreaker} circuit what circuit is to be cleared
|
|
1152
|
+
* @param {string} cacheKey cache key to clear.
|
|
1153
|
+
* @param {string} event optional, can be `error`, `success`, `timeout`
|
|
1154
|
+
* @returns {void}
|
|
1155
|
+
*/
|
|
1156
|
+
if (!event || circuit.options.coalesceResetOn.includes(event)) {
|
|
1157
|
+
var _circuit$options$coal;
|
|
1158
|
+
(_circuit$options$coal = circuit.options.coalesceCache) === null || _circuit$options$coal === void 0 || _circuit$options$coal["delete"](cacheKey);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
function buildError(msg, code) {
|
|
1162
|
+
var error = new Error(msg);
|
|
1163
|
+
error.code = code;
|
|
1164
|
+
error[OUR_ERROR] = true;
|
|
1165
|
+
return error;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
// http://stackoverflow.com/a/2117523
|
|
1169
|
+
var nextName = function nextName() {
|
|
1170
|
+
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
1171
|
+
var r = Math.random() * 16 | 0;
|
|
1172
|
+
var v = c === 'x' ? r : r & 0x3 | 0x8;
|
|
1173
|
+
return v.toString(16);
|
|
1174
|
+
});
|
|
1175
|
+
};
|
|
1176
|
+
module.exports = exports = CircuitBreaker;
|
|
1177
|
+
|
|
1178
|
+
/***/ }),
|
|
1179
|
+
|
|
1180
|
+
/***/ "./lib/semaphore.js":
|
|
1181
|
+
/*!**************************!*\
|
|
1182
|
+
!*** ./lib/semaphore.js ***!
|
|
1183
|
+
\**************************/
|
|
1184
|
+
/***/ ((module, exports) => {
|
|
1185
|
+
|
|
1186
|
+
"use strict";
|
|
1187
|
+
|
|
1188
|
+
|
|
1189
|
+
module.exports = exports = semaphore;
|
|
1190
|
+
function semaphore(count) {
|
|
1191
|
+
var resolvers = [];
|
|
1192
|
+
var counter = count;
|
|
1193
|
+
var sem = {
|
|
1194
|
+
take: take,
|
|
1195
|
+
release: release,
|
|
1196
|
+
test: test
|
|
1197
|
+
};
|
|
1198
|
+
Object.defineProperty(sem, 'count', {
|
|
1199
|
+
get: function get(_) {
|
|
1200
|
+
return counter;
|
|
1201
|
+
},
|
|
1202
|
+
enumerable: true
|
|
1203
|
+
});
|
|
1204
|
+
return sem;
|
|
1205
|
+
function take(timeout) {
|
|
1206
|
+
if (counter > 0) {
|
|
1207
|
+
--counter;
|
|
1208
|
+
return Promise.resolve(release);
|
|
1209
|
+
}
|
|
1210
|
+
return new Promise(function (resolve, reject) {
|
|
1211
|
+
resolvers.push(function (_) {
|
|
1212
|
+
--counter;
|
|
1213
|
+
resolve(release);
|
|
1214
|
+
});
|
|
1215
|
+
if (timeout) {
|
|
1216
|
+
setTimeout(function (_) {
|
|
1217
|
+
resolvers.shift();
|
|
1218
|
+
var err = new Error("Timed out after ".concat(timeout, "ms"));
|
|
1219
|
+
err.code = 'ETIMEDOUT';
|
|
1220
|
+
reject(err);
|
|
1221
|
+
}, timeout);
|
|
1222
|
+
}
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
function release() {
|
|
1226
|
+
counter++;
|
|
1227
|
+
if (resolvers.length > 0) {
|
|
1228
|
+
resolvers.shift()();
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
function test() {
|
|
1232
|
+
if (counter < 1) return false;
|
|
1233
|
+
return take() && true;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/***/ }),
|
|
1238
|
+
|
|
1239
|
+
/***/ "./lib/status.js":
|
|
1240
|
+
/*!***********************!*\
|
|
1241
|
+
!*** ./lib/status.js ***!
|
|
1242
|
+
\***********************/
|
|
1243
|
+
/***/ ((module, exports, __webpack_require__) => {
|
|
1244
|
+
|
|
1245
|
+
"use strict";
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1249
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1250
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1251
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
1252
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
1253
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
1254
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
1255
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
1256
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1257
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
1258
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
1259
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
1260
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
1261
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
1262
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
1263
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
1264
|
+
var WINDOW = Symbol('window');
|
|
1265
|
+
var BUCKETS = Symbol('buckets');
|
|
1266
|
+
var TIMEOUT = Symbol('timeout');
|
|
1267
|
+
var PERCENTILES = Symbol('percentiles');
|
|
1268
|
+
var BUCKET_INTERVAL = Symbol('bucket-interval');
|
|
1269
|
+
var SNAPSHOT_INTERVAL = Symbol('snapshot-interval');
|
|
1270
|
+
var ROTATE_EVENT_NAME = Symbol('rotate-event-name');
|
|
1271
|
+
var EventEmitter = (__webpack_require__(/*! events */ "./node_modules/events/events.js").EventEmitter);
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* Tracks execution status for a given {@link CircuitBreaker}.
|
|
1275
|
+
* A Status instance is created for every {@link CircuitBreaker}
|
|
1276
|
+
* and does not typically need to be created by a user.
|
|
1277
|
+
*
|
|
1278
|
+
* A Status instance will listen for all events on the {@link CircuitBreaker}
|
|
1279
|
+
* and track them in a rolling statistical window. The window duration is
|
|
1280
|
+
* determined by the `rollingCountTimeout` option provided to the
|
|
1281
|
+
* {@link CircuitBreaker}. The window consists of an array of Objects,
|
|
1282
|
+
* each representing the counts for a {@link CircuitBreaker}'s events.
|
|
1283
|
+
*
|
|
1284
|
+
* The array's length is determined by the {@link CircuitBreaker}'s
|
|
1285
|
+
* `rollingCountBuckets` option. The duration of each slice of the window
|
|
1286
|
+
* is determined by dividing the `rollingCountTimeout` by
|
|
1287
|
+
* `rollingCountBuckets`.
|
|
1288
|
+
*
|
|
1289
|
+
* @class Status
|
|
1290
|
+
* @extends EventEmitter
|
|
1291
|
+
* @param {Object} options for the status window
|
|
1292
|
+
* @param {Number} options.rollingCountBuckets number of buckets in the window
|
|
1293
|
+
* @param {Number} options.rollingCountTimeout the duration of the window
|
|
1294
|
+
* @param {Boolean} options.rollingPercentilesEnabled whether to calculate
|
|
1295
|
+
* percentiles
|
|
1296
|
+
* @param {Object} options.stats object of previous stats
|
|
1297
|
+
* @example
|
|
1298
|
+
* // Creates a 1 second window consisting of ten time slices,
|
|
1299
|
+
* // each 100ms long.
|
|
1300
|
+
* const circuit = circuitBreaker(fs.readFile,
|
|
1301
|
+
* { rollingCountBuckets: 10, rollingCountTimeout: 1000});
|
|
1302
|
+
*
|
|
1303
|
+
* // get the cumulative statistics for the last second
|
|
1304
|
+
* circuit.status.stats;
|
|
1305
|
+
*
|
|
1306
|
+
* // get the array of 10, 1 second time slices for the last second
|
|
1307
|
+
* circuit.status.window;
|
|
1308
|
+
* @fires Status#snapshot
|
|
1309
|
+
* @see CircuitBreaker#status
|
|
1310
|
+
*/
|
|
1311
|
+
var Status = /*#__PURE__*/function (_EventEmitter) {
|
|
1312
|
+
function Status(options) {
|
|
1313
|
+
var _this;
|
|
1314
|
+
_classCallCheck(this, Status);
|
|
1315
|
+
_this = _callSuper(this, Status);
|
|
1316
|
+
|
|
1317
|
+
// Set up our statistical rolling window
|
|
1318
|
+
_this[BUCKETS] = options.rollingCountBuckets || 10;
|
|
1319
|
+
_this[TIMEOUT] = options.rollingCountTimeout || 10000;
|
|
1320
|
+
_this[WINDOW] = new Array(_this[BUCKETS]);
|
|
1321
|
+
_this[PERCENTILES] = [0.0, 0.25, 0.5, 0.75, 0.9, 0.95, 0.99, 0.995, 1];
|
|
1322
|
+
_this[ROTATE_EVENT_NAME] = 'rotate';
|
|
1323
|
+
|
|
1324
|
+
// Default this value to true
|
|
1325
|
+
_this.rollingPercentilesEnabled = options.rollingPercentilesEnabled !== false;
|
|
1326
|
+
|
|
1327
|
+
// Default this value to true
|
|
1328
|
+
_this.enableSnapshots = options.enableSnapshots !== false;
|
|
1329
|
+
|
|
1330
|
+
// can be undefined
|
|
1331
|
+
_this.rotateBucketController = options.rotateBucketController;
|
|
1332
|
+
_this.rotateBucket = nextBucket(_this[WINDOW]);
|
|
1333
|
+
|
|
1334
|
+
// prime the window with buckets
|
|
1335
|
+
for (var i = 0; i < _this[BUCKETS]; i++) _this[WINDOW][i] = bucket();
|
|
1336
|
+
var bucketInterval = Math.floor(_this[TIMEOUT] / _this[BUCKETS]);
|
|
1337
|
+
if (_this.rotateBucketController) {
|
|
1338
|
+
// rotate the buckets based on an optional EventEmitter
|
|
1339
|
+
_this.startListeneningForRotateEvent();
|
|
1340
|
+
} else {
|
|
1341
|
+
// or rotate the buckets periodically
|
|
1342
|
+
_this[BUCKET_INTERVAL] = setInterval(_this.rotateBucket, bucketInterval);
|
|
1343
|
+
// No unref() in the browser
|
|
1344
|
+
if (typeof _this[BUCKET_INTERVAL].unref === 'function') {
|
|
1345
|
+
_this[BUCKET_INTERVAL].unref();
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Emitted at each time-slice. Listeners for this
|
|
1351
|
+
* event will receive a cumulative snapshot of the current status window.
|
|
1352
|
+
* @event Status#snapshot
|
|
1353
|
+
* @type {Object}
|
|
1354
|
+
*/
|
|
1355
|
+
if (_this.enableSnapshots) {
|
|
1356
|
+
_this[SNAPSHOT_INTERVAL] = setInterval(function (_) {
|
|
1357
|
+
return _this.emit('snapshot', _this.stats);
|
|
1358
|
+
}, bucketInterval);
|
|
1359
|
+
if (typeof _this[SNAPSHOT_INTERVAL].unref === 'function') {
|
|
1360
|
+
_this[SNAPSHOT_INTERVAL].unref();
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
if (options.stats) {
|
|
1364
|
+
_this[WINDOW][0] = _objectSpread(_objectSpread({}, bucket()), options.stats);
|
|
1365
|
+
}
|
|
1366
|
+
return _this;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* Get the cumulative stats for the current window
|
|
1371
|
+
* @type {Object}
|
|
1372
|
+
*/
|
|
1373
|
+
_inherits(Status, _EventEmitter);
|
|
1374
|
+
return _createClass(Status, [{
|
|
1375
|
+
key: "stats",
|
|
1376
|
+
get: function get() {
|
|
1377
|
+
var _this2 = this;
|
|
1378
|
+
var totals = this[WINDOW].reduce(function (acc, val) {
|
|
1379
|
+
if (!val) {
|
|
1380
|
+
return acc;
|
|
1381
|
+
}
|
|
1382
|
+
Object.keys(acc).forEach(function (key) {
|
|
1383
|
+
if (key !== 'latencyTimes' && key !== 'percentiles') {
|
|
1384
|
+
acc[key] += val[key] || 0;
|
|
1385
|
+
}
|
|
1386
|
+
});
|
|
1387
|
+
if (_this2.rollingPercentilesEnabled) {
|
|
1388
|
+
if (val.latencyTimes) {
|
|
1389
|
+
acc.latencyTimes = acc.latencyTimes.concat(val.latencyTimes);
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
return acc;
|
|
1393
|
+
}, bucket());
|
|
1394
|
+
if (this.rollingPercentilesEnabled) {
|
|
1395
|
+
// Sort the latencyTimes
|
|
1396
|
+
totals.latencyTimes.sort(function (a, b) {
|
|
1397
|
+
return a - b;
|
|
1398
|
+
});
|
|
1399
|
+
|
|
1400
|
+
// Get the mean latency
|
|
1401
|
+
// Mean = sum of all values in the array/length of array
|
|
1402
|
+
if (totals.latencyTimes.length) {
|
|
1403
|
+
totals.latencyMean = totals.latencyTimes.reduce(function (a, b) {
|
|
1404
|
+
return a + b;
|
|
1405
|
+
}, 0) / totals.latencyTimes.length;
|
|
1406
|
+
} else {
|
|
1407
|
+
totals.latencyMean = 0;
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
// Calculate Percentiles
|
|
1411
|
+
this[PERCENTILES].forEach(function (percentile) {
|
|
1412
|
+
totals.percentiles[percentile] = calculatePercentile(percentile, totals.latencyTimes);
|
|
1413
|
+
});
|
|
1414
|
+
} else {
|
|
1415
|
+
totals.latencyMean = -1;
|
|
1416
|
+
this[PERCENTILES].forEach(function (percentile) {
|
|
1417
|
+
totals.percentiles[percentile] = -1;
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
return totals;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Gets the stats window as an array of time-sliced objects.
|
|
1425
|
+
* @type {Array}
|
|
1426
|
+
*/
|
|
1427
|
+
}, {
|
|
1428
|
+
key: "window",
|
|
1429
|
+
get: function get() {
|
|
1430
|
+
return this[WINDOW].slice();
|
|
1431
|
+
}
|
|
1432
|
+
}, {
|
|
1433
|
+
key: "increment",
|
|
1434
|
+
value: function increment(property, latencyRunTime) {
|
|
1435
|
+
this[WINDOW][0][property]++;
|
|
1436
|
+
if (property === 'successes' || property === 'failures' || property === 'timeouts') {
|
|
1437
|
+
this[WINDOW][0].latencyTimes.push(latencyRunTime || 0);
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
}, {
|
|
1441
|
+
key: "open",
|
|
1442
|
+
value: function open() {
|
|
1443
|
+
this[WINDOW][0].isCircuitBreakerOpen = true;
|
|
1444
|
+
}
|
|
1445
|
+
}, {
|
|
1446
|
+
key: "close",
|
|
1447
|
+
value: function close() {
|
|
1448
|
+
this[WINDOW][0].isCircuitBreakerOpen = false;
|
|
1449
|
+
}
|
|
1450
|
+
}, {
|
|
1451
|
+
key: "shutdown",
|
|
1452
|
+
value: function shutdown() {
|
|
1453
|
+
this.removeAllListeners();
|
|
1454
|
+
// interval is not set if rotateBucketController is provided
|
|
1455
|
+
if (this.rotateBucketController === undefined) {
|
|
1456
|
+
clearInterval(this[BUCKET_INTERVAL]);
|
|
1457
|
+
} else {
|
|
1458
|
+
this.removeRotateBucketControllerListener();
|
|
1459
|
+
}
|
|
1460
|
+
if (this.enableSnapshots) {
|
|
1461
|
+
clearInterval(this[SNAPSHOT_INTERVAL]);
|
|
1462
|
+
}
|
|
1463
|
+
}
|
|
1464
|
+
}, {
|
|
1465
|
+
key: "removeRotateBucketControllerListener",
|
|
1466
|
+
value: function removeRotateBucketControllerListener() {
|
|
1467
|
+
if (this.rotateBucketController) {
|
|
1468
|
+
this.rotateBucketController.removeListener(this[ROTATE_EVENT_NAME], this.rotateBucket);
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
}, {
|
|
1472
|
+
key: "startListeneningForRotateEvent",
|
|
1473
|
+
value: function startListeneningForRotateEvent() {
|
|
1474
|
+
if (this.rotateBucketController && this.rotateBucketController.listenerCount(this[ROTATE_EVENT_NAME], this.rotateBucket) === 0) {
|
|
1475
|
+
this.rotateBucketController.on(this[ROTATE_EVENT_NAME], this.rotateBucket);
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
}]);
|
|
1479
|
+
}(EventEmitter);
|
|
1480
|
+
var nextBucket = function nextBucket(window) {
|
|
1481
|
+
return function (_) {
|
|
1482
|
+
window.pop();
|
|
1483
|
+
window.unshift(bucket());
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
var bucket = function bucket(_) {
|
|
1487
|
+
return {
|
|
1488
|
+
failures: 0,
|
|
1489
|
+
fallbacks: 0,
|
|
1490
|
+
successes: 0,
|
|
1491
|
+
rejects: 0,
|
|
1492
|
+
fires: 0,
|
|
1493
|
+
timeouts: 0,
|
|
1494
|
+
cacheHits: 0,
|
|
1495
|
+
cacheMisses: 0,
|
|
1496
|
+
coalesceCacheHits: 0,
|
|
1497
|
+
coalesceCacheMisses: 0,
|
|
1498
|
+
semaphoreRejections: 0,
|
|
1499
|
+
percentiles: {},
|
|
1500
|
+
latencyTimes: []
|
|
1501
|
+
};
|
|
1502
|
+
};
|
|
1503
|
+
function calculatePercentile(percentile, arr) {
|
|
1504
|
+
if (percentile === 0) {
|
|
1505
|
+
return arr[0] || 0;
|
|
1506
|
+
}
|
|
1507
|
+
var idx = Math.ceil(percentile * arr.length);
|
|
1508
|
+
return arr[idx - 1] || 0;
|
|
1509
|
+
}
|
|
1510
|
+
module.exports = exports = Status;
|
|
1511
|
+
|
|
1512
|
+
/***/ }),
|
|
1513
|
+
|
|
1514
|
+
/***/ "./node_modules/events/events.js":
|
|
1515
|
+
/*!***************************************!*\
|
|
1516
|
+
!*** ./node_modules/events/events.js ***!
|
|
1517
|
+
\***************************************/
|
|
1518
|
+
/***/ ((module) => {
|
|
1519
|
+
|
|
1520
|
+
"use strict";
|
|
1521
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
1522
|
+
//
|
|
1523
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
1524
|
+
// copy of this software and associated documentation files (the
|
|
1525
|
+
// "Software"), to deal in the Software without restriction, including
|
|
1526
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
1527
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
1528
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
1529
|
+
// following conditions:
|
|
1530
|
+
//
|
|
1531
|
+
// The above copyright notice and this permission notice shall be included
|
|
1532
|
+
// in all copies or substantial portions of the Software.
|
|
1533
|
+
//
|
|
1534
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
1535
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
1536
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
1537
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
1538
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
1539
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
1540
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1541
|
+
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
var R = typeof Reflect === 'object' ? Reflect : null
|
|
1545
|
+
var ReflectApply = R && typeof R.apply === 'function'
|
|
1546
|
+
? R.apply
|
|
1547
|
+
: function ReflectApply(target, receiver, args) {
|
|
1548
|
+
return Function.prototype.apply.call(target, receiver, args);
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
var ReflectOwnKeys
|
|
1552
|
+
if (R && typeof R.ownKeys === 'function') {
|
|
1553
|
+
ReflectOwnKeys = R.ownKeys
|
|
1554
|
+
} else if (Object.getOwnPropertySymbols) {
|
|
1555
|
+
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
|
1556
|
+
return Object.getOwnPropertyNames(target)
|
|
1557
|
+
.concat(Object.getOwnPropertySymbols(target));
|
|
1558
|
+
};
|
|
1559
|
+
} else {
|
|
1560
|
+
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
|
1561
|
+
return Object.getOwnPropertyNames(target);
|
|
1562
|
+
};
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
function ProcessEmitWarning(warning) {
|
|
1566
|
+
if (console && console.warn) console.warn(warning);
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {
|
|
1570
|
+
return value !== value;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
function EventEmitter() {
|
|
1574
|
+
EventEmitter.init.call(this);
|
|
1575
|
+
}
|
|
1576
|
+
module.exports = EventEmitter;
|
|
1577
|
+
module.exports.once = once;
|
|
1578
|
+
|
|
1579
|
+
// Backwards-compat with node 0.10.x
|
|
1580
|
+
EventEmitter.EventEmitter = EventEmitter;
|
|
1581
|
+
|
|
1582
|
+
EventEmitter.prototype._events = undefined;
|
|
1583
|
+
EventEmitter.prototype._eventsCount = 0;
|
|
1584
|
+
EventEmitter.prototype._maxListeners = undefined;
|
|
1585
|
+
|
|
1586
|
+
// By default EventEmitters will print a warning if more than 10 listeners are
|
|
1587
|
+
// added to it. This is a useful default which helps finding memory leaks.
|
|
1588
|
+
var defaultMaxListeners = 10;
|
|
1589
|
+
|
|
1590
|
+
function checkListener(listener) {
|
|
1591
|
+
if (typeof listener !== 'function') {
|
|
1592
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
|
|
1597
|
+
enumerable: true,
|
|
1598
|
+
get: function() {
|
|
1599
|
+
return defaultMaxListeners;
|
|
1600
|
+
},
|
|
1601
|
+
set: function(arg) {
|
|
1602
|
+
if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {
|
|
1603
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.');
|
|
1604
|
+
}
|
|
1605
|
+
defaultMaxListeners = arg;
|
|
1606
|
+
}
|
|
1607
|
+
});
|
|
1608
|
+
|
|
1609
|
+
EventEmitter.init = function() {
|
|
1610
|
+
|
|
1611
|
+
if (this._events === undefined ||
|
|
1612
|
+
this._events === Object.getPrototypeOf(this)._events) {
|
|
1613
|
+
this._events = Object.create(null);
|
|
1614
|
+
this._eventsCount = 0;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
this._maxListeners = this._maxListeners || undefined;
|
|
1618
|
+
};
|
|
1619
|
+
|
|
1620
|
+
// Obviously not all Emitters should be limited to 10. This function allows
|
|
1621
|
+
// that to be increased. Set to zero for unlimited.
|
|
1622
|
+
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
1623
|
+
if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {
|
|
1624
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.');
|
|
1625
|
+
}
|
|
1626
|
+
this._maxListeners = n;
|
|
1627
|
+
return this;
|
|
1628
|
+
};
|
|
1629
|
+
|
|
1630
|
+
function _getMaxListeners(that) {
|
|
1631
|
+
if (that._maxListeners === undefined)
|
|
1632
|
+
return EventEmitter.defaultMaxListeners;
|
|
1633
|
+
return that._maxListeners;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
1637
|
+
return _getMaxListeners(this);
|
|
1638
|
+
};
|
|
1639
|
+
|
|
1640
|
+
EventEmitter.prototype.emit = function emit(type) {
|
|
1641
|
+
var args = [];
|
|
1642
|
+
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
|
|
1643
|
+
var doError = (type === 'error');
|
|
1644
|
+
|
|
1645
|
+
var events = this._events;
|
|
1646
|
+
if (events !== undefined)
|
|
1647
|
+
doError = (doError && events.error === undefined);
|
|
1648
|
+
else if (!doError)
|
|
1649
|
+
return false;
|
|
1650
|
+
|
|
1651
|
+
// If there is no 'error' event listener then throw.
|
|
1652
|
+
if (doError) {
|
|
1653
|
+
var er;
|
|
1654
|
+
if (args.length > 0)
|
|
1655
|
+
er = args[0];
|
|
1656
|
+
if (er instanceof Error) {
|
|
1657
|
+
// Note: The comments on the `throw` lines are intentional, they show
|
|
1658
|
+
// up in Node's output if this results in an unhandled exception.
|
|
1659
|
+
throw er; // Unhandled 'error' event
|
|
1660
|
+
}
|
|
1661
|
+
// At least give some kind of context to the user
|
|
1662
|
+
var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));
|
|
1663
|
+
err.context = er;
|
|
1664
|
+
throw err; // Unhandled 'error' event
|
|
1665
|
+
}
|
|
1666
|
+
|
|
1667
|
+
var handler = events[type];
|
|
1668
|
+
|
|
1669
|
+
if (handler === undefined)
|
|
1670
|
+
return false;
|
|
1671
|
+
|
|
1672
|
+
if (typeof handler === 'function') {
|
|
1673
|
+
ReflectApply(handler, this, args);
|
|
1674
|
+
} else {
|
|
1675
|
+
var len = handler.length;
|
|
1676
|
+
var listeners = arrayClone(handler, len);
|
|
1677
|
+
for (var i = 0; i < len; ++i)
|
|
1678
|
+
ReflectApply(listeners[i], this, args);
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
return true;
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
function _addListener(target, type, listener, prepend) {
|
|
1685
|
+
var m;
|
|
1686
|
+
var events;
|
|
1687
|
+
var existing;
|
|
1688
|
+
|
|
1689
|
+
checkListener(listener);
|
|
1690
|
+
|
|
1691
|
+
events = target._events;
|
|
1692
|
+
if (events === undefined) {
|
|
1693
|
+
events = target._events = Object.create(null);
|
|
1694
|
+
target._eventsCount = 0;
|
|
1695
|
+
} else {
|
|
1696
|
+
// To avoid recursion in the case that type === "newListener"! Before
|
|
1697
|
+
// adding it to the listeners, first emit "newListener".
|
|
1698
|
+
if (events.newListener !== undefined) {
|
|
1699
|
+
target.emit('newListener', type,
|
|
1700
|
+
listener.listener ? listener.listener : listener);
|
|
1701
|
+
|
|
1702
|
+
// Re-assign `events` because a newListener handler could have caused the
|
|
1703
|
+
// this._events to be assigned to a new object
|
|
1704
|
+
events = target._events;
|
|
1705
|
+
}
|
|
1706
|
+
existing = events[type];
|
|
1707
|
+
}
|
|
1708
|
+
|
|
1709
|
+
if (existing === undefined) {
|
|
1710
|
+
// Optimize the case of one listener. Don't need the extra array object.
|
|
1711
|
+
existing = events[type] = listener;
|
|
1712
|
+
++target._eventsCount;
|
|
1713
|
+
} else {
|
|
1714
|
+
if (typeof existing === 'function') {
|
|
1715
|
+
// Adding the second element, need to change to array.
|
|
1716
|
+
existing = events[type] =
|
|
1717
|
+
prepend ? [listener, existing] : [existing, listener];
|
|
1718
|
+
// If we've already got an array, just append.
|
|
1719
|
+
} else if (prepend) {
|
|
1720
|
+
existing.unshift(listener);
|
|
1721
|
+
} else {
|
|
1722
|
+
existing.push(listener);
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
// Check for listener leak
|
|
1726
|
+
m = _getMaxListeners(target);
|
|
1727
|
+
if (m > 0 && existing.length > m && !existing.warned) {
|
|
1728
|
+
existing.warned = true;
|
|
1729
|
+
// No error code for this since it is a Warning
|
|
1730
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
1731
|
+
var w = new Error('Possible EventEmitter memory leak detected. ' +
|
|
1732
|
+
existing.length + ' ' + String(type) + ' listeners ' +
|
|
1733
|
+
'added. Use emitter.setMaxListeners() to ' +
|
|
1734
|
+
'increase limit');
|
|
1735
|
+
w.name = 'MaxListenersExceededWarning';
|
|
1736
|
+
w.emitter = target;
|
|
1737
|
+
w.type = type;
|
|
1738
|
+
w.count = existing.length;
|
|
1739
|
+
ProcessEmitWarning(w);
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
return target;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
|
1747
|
+
return _addListener(this, type, listener, false);
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
1751
|
+
|
|
1752
|
+
EventEmitter.prototype.prependListener =
|
|
1753
|
+
function prependListener(type, listener) {
|
|
1754
|
+
return _addListener(this, type, listener, true);
|
|
1755
|
+
};
|
|
1756
|
+
|
|
1757
|
+
function onceWrapper() {
|
|
1758
|
+
if (!this.fired) {
|
|
1759
|
+
this.target.removeListener(this.type, this.wrapFn);
|
|
1760
|
+
this.fired = true;
|
|
1761
|
+
if (arguments.length === 0)
|
|
1762
|
+
return this.listener.call(this.target);
|
|
1763
|
+
return this.listener.apply(this.target, arguments);
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
function _onceWrap(target, type, listener) {
|
|
1768
|
+
var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };
|
|
1769
|
+
var wrapped = onceWrapper.bind(state);
|
|
1770
|
+
wrapped.listener = listener;
|
|
1771
|
+
state.wrapFn = wrapped;
|
|
1772
|
+
return wrapped;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
EventEmitter.prototype.once = function once(type, listener) {
|
|
1776
|
+
checkListener(listener);
|
|
1777
|
+
this.on(type, _onceWrap(this, type, listener));
|
|
1778
|
+
return this;
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1781
|
+
EventEmitter.prototype.prependOnceListener =
|
|
1782
|
+
function prependOnceListener(type, listener) {
|
|
1783
|
+
checkListener(listener);
|
|
1784
|
+
this.prependListener(type, _onceWrap(this, type, listener));
|
|
1785
|
+
return this;
|
|
1786
|
+
};
|
|
1787
|
+
|
|
1788
|
+
// Emits a 'removeListener' event if and only if the listener was removed.
|
|
1789
|
+
EventEmitter.prototype.removeListener =
|
|
1790
|
+
function removeListener(type, listener) {
|
|
1791
|
+
var list, events, position, i, originalListener;
|
|
1792
|
+
|
|
1793
|
+
checkListener(listener);
|
|
1794
|
+
|
|
1795
|
+
events = this._events;
|
|
1796
|
+
if (events === undefined)
|
|
1797
|
+
return this;
|
|
1798
|
+
|
|
1799
|
+
list = events[type];
|
|
1800
|
+
if (list === undefined)
|
|
1801
|
+
return this;
|
|
1802
|
+
|
|
1803
|
+
if (list === listener || list.listener === listener) {
|
|
1804
|
+
if (--this._eventsCount === 0)
|
|
1805
|
+
this._events = Object.create(null);
|
|
1806
|
+
else {
|
|
1807
|
+
delete events[type];
|
|
1808
|
+
if (events.removeListener)
|
|
1809
|
+
this.emit('removeListener', type, list.listener || listener);
|
|
1810
|
+
}
|
|
1811
|
+
} else if (typeof list !== 'function') {
|
|
1812
|
+
position = -1;
|
|
1813
|
+
|
|
1814
|
+
for (i = list.length - 1; i >= 0; i--) {
|
|
1815
|
+
if (list[i] === listener || list[i].listener === listener) {
|
|
1816
|
+
originalListener = list[i].listener;
|
|
1817
|
+
position = i;
|
|
1818
|
+
break;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
if (position < 0)
|
|
1823
|
+
return this;
|
|
1824
|
+
|
|
1825
|
+
if (position === 0)
|
|
1826
|
+
list.shift();
|
|
1827
|
+
else {
|
|
1828
|
+
spliceOne(list, position);
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
if (list.length === 1)
|
|
1832
|
+
events[type] = list[0];
|
|
1833
|
+
|
|
1834
|
+
if (events.removeListener !== undefined)
|
|
1835
|
+
this.emit('removeListener', type, originalListener || listener);
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
return this;
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1841
|
+
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
|
1842
|
+
|
|
1843
|
+
EventEmitter.prototype.removeAllListeners =
|
|
1844
|
+
function removeAllListeners(type) {
|
|
1845
|
+
var listeners, events, i;
|
|
1846
|
+
|
|
1847
|
+
events = this._events;
|
|
1848
|
+
if (events === undefined)
|
|
1849
|
+
return this;
|
|
1850
|
+
|
|
1851
|
+
// not listening for removeListener, no need to emit
|
|
1852
|
+
if (events.removeListener === undefined) {
|
|
1853
|
+
if (arguments.length === 0) {
|
|
1854
|
+
this._events = Object.create(null);
|
|
1855
|
+
this._eventsCount = 0;
|
|
1856
|
+
} else if (events[type] !== undefined) {
|
|
1857
|
+
if (--this._eventsCount === 0)
|
|
1858
|
+
this._events = Object.create(null);
|
|
1859
|
+
else
|
|
1860
|
+
delete events[type];
|
|
1861
|
+
}
|
|
1862
|
+
return this;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
// emit removeListener for all listeners on all events
|
|
1866
|
+
if (arguments.length === 0) {
|
|
1867
|
+
var keys = Object.keys(events);
|
|
1868
|
+
var key;
|
|
1869
|
+
for (i = 0; i < keys.length; ++i) {
|
|
1870
|
+
key = keys[i];
|
|
1871
|
+
if (key === 'removeListener') continue;
|
|
1872
|
+
this.removeAllListeners(key);
|
|
1873
|
+
}
|
|
1874
|
+
this.removeAllListeners('removeListener');
|
|
1875
|
+
this._events = Object.create(null);
|
|
1876
|
+
this._eventsCount = 0;
|
|
1877
|
+
return this;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
listeners = events[type];
|
|
1881
|
+
|
|
1882
|
+
if (typeof listeners === 'function') {
|
|
1883
|
+
this.removeListener(type, listeners);
|
|
1884
|
+
} else if (listeners !== undefined) {
|
|
1885
|
+
// LIFO order
|
|
1886
|
+
for (i = listeners.length - 1; i >= 0; i--) {
|
|
1887
|
+
this.removeListener(type, listeners[i]);
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
return this;
|
|
1892
|
+
};
|
|
1893
|
+
|
|
1894
|
+
function _listeners(target, type, unwrap) {
|
|
1895
|
+
var events = target._events;
|
|
1896
|
+
|
|
1897
|
+
if (events === undefined)
|
|
1898
|
+
return [];
|
|
1899
|
+
|
|
1900
|
+
var evlistener = events[type];
|
|
1901
|
+
if (evlistener === undefined)
|
|
1902
|
+
return [];
|
|
1903
|
+
|
|
1904
|
+
if (typeof evlistener === 'function')
|
|
1905
|
+
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
|
1906
|
+
|
|
1907
|
+
return unwrap ?
|
|
1908
|
+
unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
EventEmitter.prototype.listeners = function listeners(type) {
|
|
1912
|
+
return _listeners(this, type, true);
|
|
1913
|
+
};
|
|
1914
|
+
|
|
1915
|
+
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
|
1916
|
+
return _listeners(this, type, false);
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
EventEmitter.listenerCount = function(emitter, type) {
|
|
1920
|
+
if (typeof emitter.listenerCount === 'function') {
|
|
1921
|
+
return emitter.listenerCount(type);
|
|
1922
|
+
} else {
|
|
1923
|
+
return listenerCount.call(emitter, type);
|
|
1924
|
+
}
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
EventEmitter.prototype.listenerCount = listenerCount;
|
|
1928
|
+
function listenerCount(type) {
|
|
1929
|
+
var events = this._events;
|
|
1930
|
+
|
|
1931
|
+
if (events !== undefined) {
|
|
1932
|
+
var evlistener = events[type];
|
|
1933
|
+
|
|
1934
|
+
if (typeof evlistener === 'function') {
|
|
1935
|
+
return 1;
|
|
1936
|
+
} else if (evlistener !== undefined) {
|
|
1937
|
+
return evlistener.length;
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
|
|
1941
|
+
return 0;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
EventEmitter.prototype.eventNames = function eventNames() {
|
|
1945
|
+
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
1946
|
+
};
|
|
1947
|
+
|
|
1948
|
+
function arrayClone(arr, n) {
|
|
1949
|
+
var copy = new Array(n);
|
|
1950
|
+
for (var i = 0; i < n; ++i)
|
|
1951
|
+
copy[i] = arr[i];
|
|
1952
|
+
return copy;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
function spliceOne(list, index) {
|
|
1956
|
+
for (; index + 1 < list.length; index++)
|
|
1957
|
+
list[index] = list[index + 1];
|
|
1958
|
+
list.pop();
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
function unwrapListeners(arr) {
|
|
1962
|
+
var ret = new Array(arr.length);
|
|
1963
|
+
for (var i = 0; i < ret.length; ++i) {
|
|
1964
|
+
ret[i] = arr[i].listener || arr[i];
|
|
1965
|
+
}
|
|
1966
|
+
return ret;
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
function once(emitter, name) {
|
|
1970
|
+
return new Promise(function (resolve, reject) {
|
|
1971
|
+
function errorListener(err) {
|
|
1972
|
+
emitter.removeListener(name, resolver);
|
|
1973
|
+
reject(err);
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
function resolver() {
|
|
1977
|
+
if (typeof emitter.removeListener === 'function') {
|
|
1978
|
+
emitter.removeListener('error', errorListener);
|
|
1979
|
+
}
|
|
1980
|
+
resolve([].slice.call(arguments));
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
1984
|
+
if (name !== 'error') {
|
|
1985
|
+
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
1986
|
+
}
|
|
1987
|
+
});
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
1991
|
+
if (typeof emitter.on === 'function') {
|
|
1992
|
+
eventTargetAgnosticAddListener(emitter, 'error', handler, flags);
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
1997
|
+
if (typeof emitter.on === 'function') {
|
|
1998
|
+
if (flags.once) {
|
|
1999
|
+
emitter.once(name, listener);
|
|
2000
|
+
} else {
|
|
2001
|
+
emitter.on(name, listener);
|
|
2002
|
+
}
|
|
2003
|
+
} else if (typeof emitter.addEventListener === 'function') {
|
|
2004
|
+
// EventTarget does not have `error` event semantics like Node
|
|
2005
|
+
// EventEmitters, we do not listen for `error` events here.
|
|
2006
|
+
emitter.addEventListener(name, function wrapListener(arg) {
|
|
2007
|
+
// IE does not have builtin `{ once: true }` support so we
|
|
2008
|
+
// have to do it manually.
|
|
2009
|
+
if (flags.once) {
|
|
2010
|
+
emitter.removeEventListener(name, wrapListener);
|
|
2011
|
+
}
|
|
2012
|
+
listener(arg);
|
|
2013
|
+
});
|
|
2014
|
+
} else {
|
|
2015
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
|
|
2020
|
+
/***/ })
|
|
2021
|
+
|
|
2022
|
+
/******/ });
|
|
2023
|
+
/************************************************************************/
|
|
2024
|
+
/******/ // The module cache
|
|
2025
|
+
/******/ var __webpack_module_cache__ = {};
|
|
2026
|
+
/******/
|
|
2027
|
+
/******/ // The require function
|
|
2028
|
+
/******/ function __webpack_require__(moduleId) {
|
|
2029
|
+
/******/ // Check if module is in cache
|
|
2030
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
2031
|
+
/******/ if (cachedModule !== undefined) {
|
|
2032
|
+
/******/ return cachedModule.exports;
|
|
2033
|
+
/******/ }
|
|
2034
|
+
/******/ // Create a new module (and put it into the cache)
|
|
2035
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
2036
|
+
/******/ // no module.id needed
|
|
2037
|
+
/******/ // no module.loaded needed
|
|
2038
|
+
/******/ exports: {}
|
|
2039
|
+
/******/ };
|
|
2040
|
+
/******/
|
|
2041
|
+
/******/ // Execute the module function
|
|
2042
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2043
|
+
/******/
|
|
2044
|
+
/******/ // Return the exports of the module
|
|
2045
|
+
/******/ return module.exports;
|
|
2046
|
+
/******/ }
|
|
2047
|
+
/******/
|
|
2048
|
+
/************************************************************************/
|
|
2049
|
+
/******/
|
|
2050
|
+
/******/ // startup
|
|
2051
|
+
/******/ // Load entry module and return exports
|
|
2052
|
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
|
2053
|
+
/******/ var __webpack_exports__ = __webpack_require__("./index.js");
|
|
2054
|
+
/******/
|
|
2055
|
+
/******/ return __webpack_exports__;
|
|
2056
|
+
/******/ })()
|
|
2057
|
+
;
|
|
2058
|
+
});
|
|
2059
|
+
//# sourceMappingURL=opossum.map
|