From c422057f5f9dd1f04ff95f0944fab542e61724d6 Mon Sep 17 00:00:00 2001 From: Nicolas Dextraze Date: Mon, 30 Jan 2023 15:08:46 -0500 Subject: [PATCH] start with release-21.10 code changes --- .gitignore | 1 + .nvmrc | 1 + README.md | 13 +- build-and-test.sh | 11 + certs/ca/ca.crt | 23 + certs/ca/ca.key | 27 + certs/eventstore-local.crt | 20 + certs/eventstore.p12 | Bin 0 -> 2445 bytes certs/node1/node1.crt | 24 + certs/node1/node1.key | 27 + certs/node2/node2.crt | 24 + certs/node2/node2.key | 27 + certs/node3/node3.crt | 24 + certs/node3/node3.key | 27 + docker-compose-cluster.yaml | 155 +- docker-compose-single.yaml | 46 +- package-lock.json | 9971 +++++------------ package.json | 31 +- .../appendToStreamOperation.js | 4 +- .../commitTransactionOperation.js | 4 +- src/clientOperations/deleteStreamOperation.js | 4 +- src/clientOperations/operationBase.js | 8 +- .../readAllEventsBackwardOperation.js | 4 +- .../readAllEventsForwardOperation.js | 4 +- src/clientOperations/readEventOperation.js | 4 +- .../readStreamEventsBackwardOperation.js | 4 +- .../readStreamEventsForwardOperation.js | 4 +- .../startTransactionOperation.js | 4 +- src/clientOperations/subscriptionOperation.js | 8 +- .../transactionalWriteOperation.js | 4 +- src/core/cluster/clusterDiscoverer.js | 4 +- src/core/cluster/clusterInfo.js | 27 +- src/eventStoreConnection.js | 13 +- src/messages/messages.js | 6138 +++++++--- src/messages/messages.proto | 106 +- src/projections/projectionsClient.js | 6 +- src/projections/projectionsManager.js | 7 +- test/common/base_test.js | 4 +- test/connection_test.js | 15 +- test/persistentSubscription_test.js | 2 +- test/projections_test.js | 4 +- 41 files changed, 8003 insertions(+), 8831 deletions(-) create mode 100644 .nvmrc create mode 100755 build-and-test.sh create mode 100644 certs/ca/ca.crt create mode 100644 certs/ca/ca.key create mode 100644 certs/eventstore-local.crt create mode 100644 certs/eventstore.p12 create mode 100644 certs/node1/node1.crt create mode 100644 certs/node1/node1.key create mode 100644 certs/node2/node2.crt create mode 100644 certs/node2/node2.key create mode 100644 certs/node3/node3.crt create mode 100644 certs/node3/node3.key diff --git a/.gitignore b/.gitignore index 3738e01..cc0f257 100644 --- a/.gitignore +++ b/.gitignore @@ -34,6 +34,7 @@ node_modules # InteliJ .idea/workspace.xml +.idea/shelf .vscode lib/ diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..eea150f --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v14.21.2 diff --git a/README.md b/README.md index 77d9c18..0068b2f 100644 --- a/README.md +++ b/README.md @@ -24,14 +24,23 @@ If you want to learn more about EventSourcing/EventModeling, you can join one of Install using `npm install node-eventstore-client` +Versions to install to match EventStore versions: + +- 0.1.x for ES prior to 3.9.4 +- 0.2.x for ES from 3.9.4 to 5.x +- 20.10.x for ES 20.10 LTS +- 21.10.x for ES 21.10 LTS + +*I am working on making version match LTS and latest release of EventStore so that TCP protocol matches* + ### Dependencies -- Node.js >= 4.0 +- Node.js >= 14 - Modules: [long](https://www.npmjs.org/package/long), [protobufjs](https://www.npmjs.org/package/protobufjs), [uuid](https://www.npmjs.org/package/uuid), [strict-event-emitter-types](https://www.npmjs.com/package/strict-event-emitter-types) (installed via `npm install`) ### Install and run an Eventstore on localhost -See https://eventstore.org/docs/introduction/4.1.0/ +See https://eventstore.com *Note: If you are using a version of EventStore prior to 3.9.4, you need to use version 0.1.x of this package `npm install node-eventstore-client@^0.1`.* diff --git a/build-and-test.sh b/build-and-test.sh new file mode 100755 index 0000000..dfd0533 --- /dev/null +++ b/build-and-test.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -e + +if [[ -d /var/code/src ]]; then + cp -R /var/code/{src,test,*.js,*.json} . +fi + +npm i +npm run build +npm run test-debug diff --git a/certs/ca/ca.crt b/certs/ca/ca.crt new file mode 100644 index 0000000..3b9829b --- /dev/null +++ b/certs/ca/ca.crt @@ -0,0 +1,23 @@ +-----BEGIN CERTIFICATE----- +MIIDzTCCArWgAwIBAgIRAJD0c8z8ITssbEkzjx4ZmRowDQYJKoZIhvcNAQELBQAw +YjELMAkGA1UEBhMCVUsxGDAWBgNVBAoTD0V2ZW50IFN0b3JlIEx0ZDE5MDcGA1UE +AxMwRXZlbnRTdG9yZURCIENBIDkwZjQ3M2NjZmMyMTNiMmM2YzQ5MzM4ZjFlMTk5 +OTFhMB4XDTIyMTAyMjEzNTA1N1oXDTI3MTAyMjEzNTA1N1owYjELMAkGA1UEBhMC +VUsxGDAWBgNVBAoTD0V2ZW50IFN0b3JlIEx0ZDE5MDcGA1UEAxMwRXZlbnRTdG9y +ZURCIENBIDkwZjQ3M2NjZmMyMTNiMmM2YzQ5MzM4ZjFlMTk5OTFhMIIBIjANBgkq +hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA17JM4jAG4fM4dtA6mpatLVkYhS42wwHC +RbG7dQINSE9wMKpoy2u4sDvZQrsudOvdeclPkIL1JgUtk7lDlqRMXZ6HnP7zTCKn +SQCXzvc3IIU0cGlkffuIS/kuAGBePvmmTwFE3ByDneydlHpSUGEvQY1KEAKwpgSO +LX1NtthP3kKT+bq0NdQlgOjm9dEkSYWwfCM7Of9cJdh8bCO4zJ1taGqchxluWlpo +DJL6TTHsZDvDjhfzBxhjuRax4S8B8xLaq6LirTFEFGpqFBhqzGGhRl42ZylKqVo9 +fKhhywwq81ItROmB14OGKa8gyJi7pWGSKRI4M6Ngn89D50Q49K1QdQIDAQABo34w +fDAOBgNVHQ8BAf8EBAMCAQYwEgYDVR0TAQH/BAgwBgEB/wIBAjApBgNVHQ4EIgQg +/3vmZ5JvcSlcqyaNXgrQZ5FOXlZ9HvYr9x+Tbrs3Mx4wKwYDVR0jBCQwIoAg/3vm +Z5JvcSlcqyaNXgrQZ5FOXlZ9HvYr9x+Tbrs3Mx4wDQYJKoZIhvcNAQELBQADggEB +AIMQR/3BHnVYAuG6DSdDPVYkPR9Fvwi9G9U1nybMHY9uSnEOp6yASrRc/cD7pIbP +Ax7cvD5f0829fAUFupXtp2T/yNOA7/eis7l6Y0ZZf+QEk9XhZXHVTFLFDb9Fyc6r ++i/lXnatGsYwOns0RFSG6tzxi2lxUPwlXauacwTBW4jrphtn0vC3q/n85JOEi2ib +aIlXaXUTREJFiFnS22/SX4dSRaeimL34rrd9AjX53Ne6pUiVBGgd2aSUkBh65EYk +VCIZwuWLx0jgcT8NI/EeId7FN4CWq73dze5eY2QU00rXidyYDeC2aZcU5e2RTQqn +5dGqFGAd/xCopGYdWfusqKM= +-----END CERTIFICATE----- diff --git a/certs/ca/ca.key b/certs/ca/ca.key new file mode 100644 index 0000000..98c8bd0 --- /dev/null +++ b/certs/ca/ca.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpQIBAAKCAQEA17JM4jAG4fM4dtA6mpatLVkYhS42wwHCRbG7dQINSE9wMKpo +y2u4sDvZQrsudOvdeclPkIL1JgUtk7lDlqRMXZ6HnP7zTCKnSQCXzvc3IIU0cGlk +ffuIS/kuAGBePvmmTwFE3ByDneydlHpSUGEvQY1KEAKwpgSOLX1NtthP3kKT+bq0 +NdQlgOjm9dEkSYWwfCM7Of9cJdh8bCO4zJ1taGqchxluWlpoDJL6TTHsZDvDjhfz +BxhjuRax4S8B8xLaq6LirTFEFGpqFBhqzGGhRl42ZylKqVo9fKhhywwq81ItROmB +14OGKa8gyJi7pWGSKRI4M6Ngn89D50Q49K1QdQIDAQABAoIBAQCbeiKBSC0t4avp +uN8FX2clMPvDxDQlDLeElUCSbxAz907fRXaUaumN3xYUS+iIzxuuFbYMbNlYtpLL +0NcvVu7U7NjECeJGFxSOQqcqwHg0MNBD1zRgu1bbrJnEG7LTohCHElsYblVRGKXd +yO5ckjEGB1pDgCzk/pOdppzGF9Y6Vl/6WfZQgdGV6B1Qh9Vxs+1CGbK/6YqMM3av +9AJTEXgXbHOPyqNwixjxihpz79hXx0lOznL/CeosHKj7+ZY/knWZcDBmNq3ZA3Nz +w3p0fDkBtY7zQglh5nTSYoLtpcJvzkAI8uD6eJ4ThwIGUbLlvq0c3yaHZwIqrmEq +py09FA8BAoGBAPnuy+ehTBXV5k8icPZjI50Bjr5Alres01OjHxAA5bZJACwVbjMQ +a2464yb6DMA6NDrUevfHvKn3rw8OoceNrlaEua0qE5IweRpROf+ENqW9Yhcg4O1G +bSUPf5M1JusCSznAJu+gKsqHq0pTtdssh8Xb655xgd3gNMi0lLPlw5+tAoGBANzu +vidC8LRH+4JRrb+7PUZi1AR8vtCpabkLuVe7AZJl1wXFvYJTyFcW/e0WTvETcclf +9dhy1c0lH44571L4kpKRRKF4U3lcESbiLPDwjvfnls1rYzfzjY1YWoERwGYxL54H +2BBYPjKocnHZOnyiBxYn4ysK2O3dYlFxgJy/1GzpAoGBAM4HzW1HqRoC91Va1fY2 +aaA/LXWmdtg5DwhOWwftRXAMI6kzjWFo8rauspxp2uMH2BB7Ildp/xu6A0SNUk3X +fNTzmsCmA/YqIVrRhNcfHZFpWhgo0WKoAMdhTFCEq21lua+EuFQnG79TMaAW+74O +qmovzb8SYPUPo1OkkUTvbmENAoGAODTg2Zo1JJhfiyL+ghW/nAWOjOmzneBLzlEG +QSSJXNZd4tEQynRINqfZyBRx1vEsdJ/eKsfkTsGQCp4AneoxV+pvPGkhS3G5x1up +NU7uAHHBstcMMfLbY0dEFywN97GxvJGgTWA1yquCGia6s3SBOwjAyXWEBNfaqH+o +ybgf8ekCgYEA3/Vx/CZ/VB0Fr47cpZGckJWH6lDWkzBEcaAT22VYlhL4CZ0CRDWj +6+LSiQDuI3+JwEhZlIkTvfZSo5bhNeUHoEL+15yg2RvsWFzorDxBfvZ//29BQg/Q +bN+vlKHpn7V7T9LQg/Tp107mfW6Z/TG4UYIVJyxY/JUjXjQLcFPvTVE= +-----END RSA PRIVATE KEY----- diff --git a/certs/eventstore-local.crt b/certs/eventstore-local.crt new file mode 100644 index 0000000..6770d1b --- /dev/null +++ b/certs/eventstore-local.crt @@ -0,0 +1,20 @@ +-----BEGIN CERTIFICATE----- +MIIDSzCCAjMCFAxEesn/oIrU2T7DOU9cWCyoCCqfMA0GCSqGSIb3DQEBCwUAMGIx +CzAJBgNVBAYTAkNBMQswCQYDVQQIDAJCQzESMBAGA1UEBwwJVmFuY291dmVyMRcw +FQYDVQQKDA5BZGFwdGVjaCBHcm91cDEZMBcGA1UEAwwQZXZlbnRzdG9yZS5sb2Nh +bDAeFw0yMTA1MDYyMDAyMzZaFw0zMTA1MDQyMDAyMzZaMGIxCzAJBgNVBAYTAkNB +MQswCQYDVQQIDAJCQzESMBAGA1UEBwwJVmFuY291dmVyMRcwFQYDVQQKDA5BZGFw +dGVjaCBHcm91cDEZMBcGA1UEAwwQZXZlbnRzdG9yZS5sb2NhbDCCASIwDQYJKoZI +hvcNAQEBBQADggEPADCCAQoCggEBANbNrVQ91TFVsrfFV39/1MjxM/UIP78FaX+S +kxAzcpAJKP9PbHLwFXxkl0Bam+3ekE6+hc3qT8o4ksOdzwz+dJbdZF8gblLda7vq +JnPjkAZuhojRLPfXvaJZbManEkB30+JIvb/XWhMf34+kvyZaOnKqidzNAuLAFQ+6 +KCCXYnTUFimumr6AsrZvA9UzN3edrk1pqxMYNT+8MBOUnNfkdHX78aTzdWvq4+Ro ++58MT3NpqdI+1cY423JlG2qj8PAqPsgdE4XvmtqDtLndH+VflR1M1Rkn41cofgSh +lo7PE2SNn4hSv8m+1HJMfcegJEXKE3LIGHJtV6qT6S+pRtJd9mcCAwEAATANBgkq +hkiG9w0BAQsFAAOCAQEAlhKziHmYm81vrx+EHqIZXvmoUp3I1A9STvFqUdHrv9sa +8tKD7wW0owTVaxXBW3380ZFRpG3JVJFUgOyFIhi4IccWoqVsBCE0BBR96tlRXrKT +UZTAHLEk/SdLL+qfhKgY7F7+M9Wtf5HldiRfNoTqYn6YVXMJMgcwehhHho/fCHzj +tzOMfKFjGAq+n8cScLrTaW92JbbxjFPJJ7uQDH4OjAHx6pT885+RJf0rNqboAErA +lRLcEjtihslWKD7nelOlJE1egkum/m7MLVFpZPqEBp+x1zXdwacENwIhiRrQQhKi +8Qw36BuSCZ3CZK18kGyhtxl/uUP/wx7XXc1U0W2Wtw== +-----END CERTIFICATE----- diff --git a/certs/eventstore.p12 b/certs/eventstore.p12 new file mode 100644 index 0000000000000000000000000000000000000000..4c12c12da8633d1e07db966870ff8db2e41a206d GIT binary patch literal 2445 zcmY+EX*3&%8it7kNr)}AOR0TNg{G<`_7F>n+N(OQs%mRDbgXHqb_}YPs8UO5DMcj+ z2CW!NEv?$OMkS+`iamDIIp^Lx_x||Kch2*k^Zt8YBoX`&z{!Oqg6+A%YDu^xHa{m1 zXCV=c1ros*f8g^-A{XnQh`W%;MgM`O0h}B^-pD@*CsLXl^6v&dPHrR&$lFG~t;4Ww z>;nLJIpT?2uP`JoiACQ&U%|BT&=%qG{SH)zMV;RBk|?Iw_#;XlsvMvd>8Q0`Vz`Q) zm)3vbkj3xSdviIYNJgu1&eB&Q0{`GFWu<$S?i<6M5Ye=dkCHN!e$He3eH{=Jiwcc7 zKUOK$82w#aLPRG?s-hen&9o9`lD;m-omUmc2rZ#rUF8tPz2t5diE^R+?%s7T&bHld zcHaAD<-a62jhbRVi_T!J6E^ZftSZUWKi~QbYBL_!>H&_Ov>?6OEEU7~iqyb<>}p-Q z8dG91Jz;oCgn$-k@z!2th?%AEoVuQgj@iICJMx68`07^Ip)oX_yZ7AFF%hv}T5q}} zapw+bL0-yN7-Ez8NBs3n`mZ@J$eiPerv6??8aZ~Y9?aTzGs9{L%5l0Mbseyu#M@$M0_=OE#$9XVoSZo7LfuhDu}_?r z_^Z;3cCMwBucIc3qYVz^L{!5s8Qaf(#%v7jySGRFq+=4HOl~!7RXII!T%%FuN9esd zlpXVEC>e3fesU~cn~8e%20$^wpK*H2n_DFw#Pew#3L+uHC#KDcsk}`wr>`R7;1&Fr z%LF;r(9z4YIO69p`xFFM8T}H$2m3_ksomG(k7ch)o>srw`DrrXHazs;*g@Anh%|u6p^6Og8Trd2~@CUweY(FNNN0BMWVoMxEZee z$(W{PXU2*?@21P0{l>a3vN$<1rGAZKcKe(04ORgtJLNu`;vYGa11$NY$NJ}~8ILQBr?HuR9v!m9H?QZd{oX%$ z$_dX_=SLDj#{VOBArYhlB!aYlV6`8o#0~wA<`7OmArZKWBm$TI&wj4I?dS7reCmfT z+56jmAQ9MIJKMVQZDpjY^o+*bZgE}0MxAO$<*uMQxVh9OW=gFt<>DXv6w_lLuOw>l zPCI7BRmRU8ws#H;zqj4e#xR?UToegk6evn4N+SNUC8%iAUO)0=qnjM!oZ5b3%mO>3N=a8hxM(T6;pqF&tKPd zV^hmlkmxIdpOvP{t&`K+Dt++}Nr+aa?2XqGWLd_-$rb1eo7{DYB@cyQ@p(+BR*p+u zg?GfzMQ;NGt`(LK;yQh8h2Lw7SuilsFY#tmv5e+v8Q$8ryEF7LTT%=|Z@l~9l8k4A zvbD)L55O7iTWWv^(?nG+OEmH^`E`a{@B&uyCp0XMtAORqxL?A^7?m}*0|~rm#kF^x zmOV6iq$VksNvoSR_t-5c%D#({T3)uSwS}9ZFZycAL)1Ej#QjZa|Q4jwrlY}IU z+k12yu4J|#O_$b05iCV$V~f}+e@#2pYcevr%_L$`v(}E%D}89Dq^gj@TcPn>^3-H! zg#^$`Pf@AM%u^%Qo@7^0K9e$;wP5yixpfRmNS9Oe>XStmvU7AgA zh$q#1!Dt+XsDT~bQj)%*pVk}wiO>pX?k{*BIfLQyk#f(1F7osm-kQ}5NaSSoT6cU; zmcDMkPEiBEn=iJ z(g|0?Y#izPrw7!!yvs_--SPF__FvLQFk*}3ZC_iSCl$D+`Ryq@OG6zr%e>9_DPc0* zlxzS^2Wd~&1lUvIA!c;hkI%jxm1hRZv2usAs)zt?r zCpJDh^nq?ekm0YgVpA}cBizCO%lO$_=yjr-#Zirl8>He_=*D>ctw=2QaUhH!uUp|0 zzO%8Qw~#>?@Owoz<~VkV;_UdPtzWS=5#%*>GPq%0clnml`^CeKZB6wm^C#hZZH~%< zr1;H!sfg-`hT@aLTIIn+120tO_&u0_ah~GQuAAqbNF*;P6Hnw2xgrheN7>vTDnVMr zHM9A)@Vd(R{Muk*B=#gw^3tX0f*0F10kh^iYY=(KumQf1z6cOC@0%F5ucVNR4Au!W zAvy7@4UWAuKcUle=WE>4Nn2m4Y)7dVj!gm~4j*w|Rul*icC7MCr38T;oLbDi zMU{YTOvP8^S)?2i%nee9aRDSj96 1.10.0", "js-yaml": "^3.13.1", - "lcov-parse": "^0.0.10", + "lcov-parse": "^1.0.0", "log-driver": "^1.2.7", - "minimist": "^1.2.0", - "request": "^2.86.0" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - } + "minimist": "^1.2.5", + "request": "^2.88.2" } }, "cp-file": { @@ -3122,169 +1798,99 @@ "nested-error-stacks": "^2.0.0", "pify": "^4.0.1", "safe-buffer": "^5.0.1" - } - }, - "create-ecdh": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.3.tgz", - "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "elliptic": "^6.0.0" - } - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "cross-spawn": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz", - "integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "which": "^1.2.9" - } - }, - "crypto-browserify": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", - "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", - "dev": true, - "requires": { - "browserify-cipher": "^1.0.0", - "browserify-sign": "^4.0.0", - "create-ecdh": "^4.0.0", - "create-hash": "^1.1.0", - "create-hmac": "^1.1.0", - "diffie-hellman": "^5.0.0", - "inherits": "^2.0.1", - "pbkdf2": "^3.0.3", - "public-encrypt": "^4.0.0", - "randombytes": "^2.0.0", - "randomfill": "^1.0.3" - } - }, - "cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "requires": { - "cssom": "~0.3.6" }, "dependencies": { - "cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", "dev": true } } }, - "cyclist": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", - "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=", - "dev": true + "cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } }, "dashdash": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", "dev": true, "requires": { "assert-plus": "^1.0.0" } }, - "data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dev": true, - "requires": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - } - }, "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dev": true, "requires": { - "ms": "^2.1.1" + "ms": "2.1.2" } }, "decamelize": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true - }, - "decimal.js": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.0.tgz", - "integrity": "sha512-vDPw+rDgn3bZe1+F/pyEwb1oMG2XTlRVgAa6B4KccTEpYgF8w6eQllVbQcfIJnZyvzFtFpxnpGtx8dd7DJp/Rw==", + "integrity": "sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==", "dev": true }, "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", + "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "dev": true + }, + "dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", "dev": true }, "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" }, "deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.0.tgz", + "integrity": "sha512-z2wJZXrmeHdvYJp/Ux55wIjqo81G5Bp4c+oELTW+7ar6SogWHajt5a9gO3s3IDaGSAXjDk0vlQKN3rms8ab3og==", "dev": true }, "default-require-extensions": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-2.0.0.tgz", - "integrity": "sha1-9fj7sYp9bVCyH2QfZJ67Uiz+JPc=", + "integrity": "sha512-B0n2zDIXpzLzKeoEozorDSa1cHc1t0NjmxP0zuAxbizNU2MBqYJJKYXrrFdKuQliojXynrxgd7l4ahfg/+aA5g==", "dev": true, "requires": { "strip-bom": "^3.0.0" + }, + "dependencies": { + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true + } } }, "define-property": { @@ -3331,23 +1937,13 @@ "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", "dev": true }, - "des.js": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", - "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, "detect-file": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", - "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", + "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==", "dev": true }, "detect-newline": { @@ -3359,65 +1955,25 @@ "diff": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/diff/-/diff-1.4.0.tgz", - "integrity": "sha1-fyjS657nsVqX79ic5j3P2qPMur8=", + "integrity": "sha512-VzVc42hMZbYU9Sx/ltb7KYuQ6pqAw+cbFWVy4XKdkuEL2CFaRLGEnISPs7YdzaUGpi+CpIqvRmu7hPQ4T7EQ5w==", "dev": true }, "diff-sequences": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.3.0.tgz", - "integrity": "sha512-5j5vdRcw3CNctePNYN0Wy2e/JbWT6cAYnXv5OuqPhDpyCGc0uLu2TK0zOCJWNB9kOIfYMSpIulRaDgIi4HJ6Ig==", + "version": "29.3.1", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.3.1.tgz", + "integrity": "sha512-hlM3QR272NXCi4pq+N4Kok4kOp6EsgOM3ZSpJI7Da3UAs+Ttsi8MRmB6trM/lhyzUxGfOgnpkHtgqm5Q/CTcfQ==", "dev": true }, - "diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - } - }, "domain-browser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", "dev": true }, - "domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "dev": true, - "requires": { - "webidl-conversions": "^5.0.0" - }, - "dependencies": { - "webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true - } - } - }, - "duplexify": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", - "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", - "dev": true, - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - } - }, "ecc-jsbn": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", "dev": true, "requires": { "jsbn": "~0.1.0", @@ -3425,86 +1981,54 @@ } }, "ejs": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/ejs/-/ejs-2.7.1.tgz", - "integrity": "sha512-kS/gEPzZs3Y1rRsbGX4UOSjtP/CeJP0CxSNZHYxGfVM/VgLcv0ZqM7C45YyTj2DI2g7+P9Dd24C+IMIg6D0nYQ==", + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-2.7.4.tgz", + "integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==", "dev": true }, - "elliptic": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.1.tgz", - "integrity": "sha512-xvJINNLbTeWQjrl6X+7eQCrIy/YPv5XCpKW6kB5mKvtnGILoLDcySuwomfdzt0BMdLNVnuRNTuzKNHj0bva1Cg==", - "dev": true, - "requires": { - "bn.js": "^4.4.0", - "brorand": "^1.0.1", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.0", - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.0" - } + "electron-to-chromium": { + "version": "1.4.284", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", + "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", + "dev": true }, "emittery": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.1.tgz", - "integrity": "sha512-d34LN4L6h18Bzz9xpoku2nPwKxCPlPMr3EEKTkoEBi+1/+b0lcRkRJ1UVyyZaKNeqGR3swcGl6s390DNO4YVgQ==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true }, "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, "emojis-list": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", - "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", "dev": true }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, "enhanced-resolve": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.1.tgz", - "integrity": "sha512-98p2zE+rL7/g/DzMHMTF4zZlCgeVdJ7yr6xzEpJRYwFYrGi9ANdn5DnJURg6RpBkyk60XYDnWIv51VfIhfNGuA==", + "version": "5.12.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz", + "integrity": "sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "memory-fs": "^0.5.0", - "tapable": "^1.0.0" - }, - "dependencies": { - "memory-fs": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz", - "integrity": "sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==", - "dev": true, - "requires": { - "errno": "^0.1.3", - "readable-stream": "^2.0.1" - } - } + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" } }, "entities": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz", - "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==", - "dev": true + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", + "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==" }, "errno": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", - "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz", + "integrity": "sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==", "dev": true, "requires": { "prr": "~1.0.1" @@ -3519,151 +2043,144 @@ "is-arrayish": "^0.2.1" } }, + "es-module-lexer": { + "version": "0.9.3", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-0.9.3.tgz", + "integrity": "sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ==", + "dev": true + }, "es6-error": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", "dev": true }, + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true + }, "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "dev": true }, "escodegen": { "version": "1.14.3", "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", - "dev": true, "requires": { "esprima": "^4.0.1", "estraverse": "^4.2.0", "esutils": "^2.0.2", "optionator": "^0.8.1", "source-map": "~0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } } }, "eslint-scope": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.3.tgz", - "integrity": "sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", "dev": true, "requires": { - "esrecurse": "^4.1.0", + "esrecurse": "^4.3.0", "estraverse": "^4.1.1" } }, + "eslint-visitor-keys": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", + "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==" + }, "esm": { "version": "3.2.25", "resolved": "https://registry.npmjs.org/esm/-/esm-3.2.25.tgz", "integrity": "sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA==", "dev": true }, + "espree": { + "version": "9.4.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", + "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "requires": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.3.0" + } + }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" }, "esrecurse": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", - "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "dev": true, "requires": { - "estraverse": "^4.1.0" + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true + } } }, "estraverse": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==" }, "esutils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" }, "events": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.0.0.tgz", - "integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", "dev": true }, "events-to-array": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/events-to-array/-/events-to-array-1.1.2.tgz", - "integrity": "sha1-LUH1Y+H+QA7Uli/hpNXGp1Od9/Y=", - "dev": true - }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, - "exec-sh": { - "version": "0.3.4", - "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.4.tgz", - "integrity": "sha512-sEFIkc61v75sWeOe72qyrqg2Qg0OuLESziUDk/O/z2qgS15y2gWVFrI6f2Qn/qw/0/NCfCEsmNA4zOjkwEZT1A==", + "integrity": "sha512-inRWzRY7nG+aXZxBzEqYKB3HPgwflZRopAjDCHv0whhRx+MTUr1ei0ICZUypdyE0HRm4L2d5VEcIqLD6yl+BFA==", "dev": true }, "execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, "requires": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - } + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" } }, "exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true }, "expand-brackets": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "integrity": "sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA==", "dev": true, "requires": { "debug": "^2.3.3", @@ -3687,7 +2204,7 @@ "define-property": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -3696,7 +2213,7 @@ "extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -3705,7 +2222,7 @@ "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true } } @@ -3713,51 +2230,23 @@ "expand-tilde": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", - "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", + "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==", "dev": true, "requires": { "homedir-polyfill": "^1.0.1" } }, "expect": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/expect/-/expect-26.4.2.tgz", - "integrity": "sha512-IlJ3X52Z0lDHm7gjEp+m76uX46ldH5VpqmU0006vqDju/285twh7zaWMRhs67VpQhBwjjMchk+p5aA0VkERCAA==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.4.1.tgz", + "integrity": "sha512-OKrGESHOaMxK3b6zxIq9SOW8kEXztKff/Dvg88j4xIJxur1hspEbedVkR3GpHe5LO+WB2Qw7OWN0RMTdp6as5A==", "dev": true, "requires": { - "@jest/types": "^26.3.0", - "ansi-styles": "^4.0.0", - "jest-get-type": "^26.3.0", - "jest-matcher-utils": "^26.4.2", - "jest-message-util": "^26.3.0", - "jest-regex-util": "^26.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } + "@jest/expect-utils": "^29.4.1", + "jest-get-type": "^29.2.0", + "jest-matcher-utils": "^29.4.1", + "jest-message-util": "^29.4.1", + "jest-util": "^29.4.1" } }, "extend": { @@ -3769,7 +2258,7 @@ "extend-shallow": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "integrity": "sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q==", "dev": true, "requires": { "assign-symbols": "^1.0.0", @@ -3806,7 +2295,7 @@ "define-property": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", "dev": true, "requires": { "is-descriptor": "^1.0.0" @@ -3815,7 +2304,7 @@ "extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -3855,63 +2344,42 @@ "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", "dev": true }, "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "dev": true }, "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, "fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "fb-watchman": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", - "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, "requires": { "bser": "2.1.1" } }, - "figgy-pudding": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.1.tgz", - "integrity": "sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w==", - "dev": true - }, "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } + "to-regex-range": "^5.0.1" } }, "find-cache-dir": { @@ -3923,15 +2391,77 @@ "commondir": "^1.0.1", "make-dir": "^2.0.0", "pkg-dir": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true + }, + "pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, + "requires": { + "find-up": "^3.0.0" + } + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } } }, "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "requires": { - "locate-path": "^3.0.0" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" } }, "findup-sync": { @@ -3944,38 +2474,170 @@ "is-glob": "^4.0.0", "micromatch": "^3.0.4", "resolve-dir": "^1.0.1" - } - }, - "flush-write-stream": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.1.1.tgz", - "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "readable-stream": "^2.3.6" + }, + "dependencies": { + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "dev": true, + "requires": { + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg==", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + } } }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==", "dev": true }, "foreground-child": { "version": "1.5.6", "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-1.5.6.tgz", - "integrity": "sha1-T9ca0t/elnibmApcCilZN8svXOk=", + "integrity": "sha512-3TOY+4TKV0Ml83PXJQY+JFQaHNV38lzQDIzzXYg1kWdBLenGgoZhAs0CKgzI31vi2pWEpQMq/Yi4bpKwCPkw7g==", "dev": true, "requires": { "cross-spawn": "^4", "signal-exit": "^3.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-4.0.2.tgz", + "integrity": "sha512-yAXz/pA1tD8Gtg2S98Ekf/sewp3Lcp3YoFKJ4Hkp5h5yLWnKVTDU0kwjKJ8NDCYcfTLfyGkzTikst+jWypT1iA==", + "dev": true, + "requires": { + "lru-cache": "^4.0.1", + "which": "^1.2.9" + } + }, + "lru-cache": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", + "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "dev": true, + "requires": { + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==", + "dev": true + } } }, "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", "dev": true }, "form-data": { @@ -3992,593 +2654,35 @@ "fragment-cache": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "integrity": "sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA==", "dev": true, "requires": { "map-cache": "^0.2.2" } }, - "from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" - } - }, "fs-exists-cached": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-exists-cached/-/fs-exists-cached-1.0.0.tgz", - "integrity": "sha1-zyVVTKBQ3EmuZla0HeQiWJidy84=", + "integrity": "sha512-kSxoARUDn4F2RPXX48UXnaFKwVU7Ivd/6qpzZL29MCDmr9sTvybv4gFCp+qaI4fM9m0z9fgz/yJvi56GAz+BZg==", "dev": true }, - "fs-write-stream-atomic": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", - "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "iferr": "^0.1.5", - "imurmurhash": "^0.1.4", - "readable-stream": "1 || 2" - } - }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, "fsevents": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.9.tgz", - "integrity": "sha512-oeyj2H3EjjonWcFjD5NvZNE9Rqe4UW+nQBU2HNeKw0koVLEFIhtyETyAakeAM3de7Z/SW5kcA+fZUait9EApnw==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "dev": true, - "optional": true, - "requires": { - "nan": "^2.12.1", - "node-pre-gyp": "^0.12.0" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "debug": { - "version": "4.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ms": "^2.1.1" - } - }, - "deep-extend": { - "version": "0.6.0", - "bundled": true, - "dev": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "glob": { - "version": "7.1.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.24", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore-walk": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "ini": { - "version": "1.3.5", - "bundled": true, - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true, - "optional": true - }, - "minipass": { - "version": "2.3.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.2.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "needle": { - "version": "2.3.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "debug": "^4.1.0", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.12.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.4.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.8", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "rimraf": { - "version": "2.6.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "glob": "^7.1.3" - } - }, - "safe-buffer": { - "version": "5.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "bundled": true, - "dev": true, - "optional": true - }, - "semver": { - "version": "5.7.0", - "bundled": true, - "dev": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "tar": { - "version": "4.4.8", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.3.4", - "minizlib": "^1.1.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "yallist": { - "version": "3.0.3", - "bundled": true, - "dev": true, - "optional": true - } - } + "optional": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true }, "function-loop": { "version": "1.0.2", @@ -4587,9 +2691,9 @@ "dev": true }, "gensync": { - "version": "1.0.0-beta.1", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz", - "integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==", + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true }, "get-caller-file": { @@ -4605,63 +2709,44 @@ "dev": true }, "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true }, "get-value": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "integrity": "sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==", "dev": true }, "getpass": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", "dev": true, "requires": { "assert-plus": "^1.0.0" } }, "glob": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.5.tgz", - "integrity": "sha512-J9dlskqUXK1OeTOYBEn5s8aMukWMwWfs+rPTn/jn50Ux4MNXVhubL1wu/j2t+H4NVI+cXEcCaYellqaPVGXNqQ==", - "dev": true, + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", + "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" } }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "dev": true, - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - }, - "dependencies": { - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "dev": true, - "requires": { - "is-extglob": "^2.1.0" - } - } - } + "glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true }, "global-modules": { "version": "2.0.0", @@ -4682,13 +2767,22 @@ "kind-of": "^6.0.2", "which": "^1.3.1" } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } } } }, "global-prefix": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", - "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=", + "integrity": "sha512-5lsx1NUDHtSjfg0eHlmYvZKv8/nVqX4ckFbM+FrGcQ+04KWcWFo9P5MxPZYSzUvyzmdTbI7Eix8Q4IbELDqzKg==", "dev": true, "requires": { "expand-tilde": "^2.0.2", @@ -4696,6 +2790,17 @@ "ini": "^1.3.4", "is-windows": "^1.0.1", "which": "^1.2.14" + }, + "dependencies": { + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } } }, "globals": { @@ -4705,70 +2810,44 @@ "dev": true }, "graceful-fs": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", - "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==", - "dev": true - }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, - "growly": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", - "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", - "dev": true, - "optional": true - }, - "handlebars": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.1.tgz", - "integrity": "sha512-C29UoFzHe9yM61lOsIlCE5/mQVGrnIOrOq7maQl76L7tYPCgC1og0Ajt6uWnX4ZTxBPnjw+CUvawphwCfJgUnA==", - "dev": true, - "requires": { - "neo-async": "^2.6.0", - "optimist": "^0.6.1", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" }, "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", "dev": true }, "har-validator": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", - "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", "dev": true, "requires": { - "ajv": "^6.5.5", + "ajv": "^6.12.3", "har-schema": "^2.0.0" } }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } + }, "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, "has-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "integrity": "sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw==", "dev": true, "requires": { "get-value": "^2.0.6", @@ -4779,17 +2858,37 @@ "has-values": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "integrity": "sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ==", "dev": true, "requires": { "is-number": "^3.0.0", "kind-of": "^4.0.0" }, "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg==", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, "kind-of": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "integrity": "sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw==", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -4797,44 +2896,21 @@ } } }, - "hash-base": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", - "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, "hasha": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/hasha/-/hasha-3.0.0.tgz", - "integrity": "sha1-UqMvq4Vp1BymmmH/GiFPjrfIvTk=", + "integrity": "sha512-w0Kz8lJFBoyaurBiNrIvxPqr/gJ6fOfSkpAPOepN3oECqGJag37xPbOv57izi/KP8auHgNYxn5fXtAb+1LsJ6w==", "dev": true, "requires": { "is-stream": "^1.0.1" - } - }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", - "dev": true, - "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" + }, + "dependencies": { + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", + "dev": true + } } }, "homedir-polyfill": { @@ -4847,20 +2923,11 @@ } }, "hosted-git-info": { - "version": "2.8.5", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.5.tgz", - "integrity": "sha512-kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg==", + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, - "html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dev": true, - "requires": { - "whatwg-encoding": "^1.0.5" - } - }, "html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", @@ -4870,7 +2937,7 @@ "http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", "dev": true, "requires": { "assert-plus": "^1.0.0", @@ -4878,66 +2945,32 @@ "sshpk": "^1.7.0" } }, - "https-browserify": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", - "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", - "dev": true - }, "human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", - "dev": true - }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ieee754": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.13.tgz", - "integrity": "sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==", - "dev": true - }, - "iferr": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", - "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true }, "import-local": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", - "integrity": "sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", "dev": true, "requires": { - "pkg-dir": "^3.0.0", - "resolve-cwd": "^2.0.0" + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" } }, "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "infer-owner": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", - "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true }, "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "requires": { "once": "^1.3.0", "wrappy": "1" @@ -4946,37 +2979,24 @@ "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", "dev": true }, "interpret": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", - "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", - "dev": true - }, - "invert-kv": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", - "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", - "dev": true - }, - "ip-regex": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-2.1.0.tgz", - "integrity": "sha1-+ni/XS5pE8kRzp+BnuUUa7bYROk=", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", "dev": true }, "is-accessor-descriptor": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -4985,7 +3005,7 @@ "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -4996,37 +3016,28 @@ "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "dev": true, - "requires": { - "binary-extensions": "^1.0.0" - } - }, "is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, - "is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "is-core-module": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", + "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", "dev": true, "requires": { - "ci-info": "^2.0.0" + "has": "^1.0.3" } }, "is-data-descriptor": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -5035,7 +3046,7 @@ "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -5062,29 +3073,22 @@ } } }, - "is-docker": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz", - "integrity": "sha512-ZOoqiXfEwtGknTiuDEy8pN2CfE3TxMHprvNer1mXiqwkOT77Rw3YVrUQ52EqAOU3QAWDQ+bQdx7HJzrv7LS2Hw==", - "dev": true, - "optional": true - }, "is-extendable": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", "dev": true }, "is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "dev": true }, "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true }, "is-generator-fn": { @@ -5094,33 +3098,19 @@ "dev": true }, "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "dev": true, "requires": { "is-extglob": "^2.1.1" } }, "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true }, "is-plain-object": { "version": "2.0.4", @@ -5131,22 +3121,16 @@ "isobject": "^3.0.1" } }, - "is-potential-custom-element-name": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz", - "integrity": "sha1-DFLlS8yjkbssSUsh6GJtczbG45c=", - "dev": true - }, "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", "dev": true }, "is-windows": { @@ -5155,40 +3139,34 @@ "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", "dev": true }, - "is-wsl": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", - "dev": true - }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", "dev": true }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, "isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", "dev": true }, "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", "dev": true }, "istanbul-lib-coverage": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", - "integrity": "sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", "dev": true }, "istanbul-lib-hook": { @@ -5201,1970 +3179,559 @@ } }, "istanbul-lib-instrument": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz", - "integrity": "sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, "requires": { - "@babel/generator": "^7.4.0", - "@babel/parser": "^7.4.3", - "@babel/template": "^7.4.0", - "@babel/traverse": "^7.4.3", - "@babel/types": "^7.4.0", - "istanbul-lib-coverage": "^2.0.5", - "semver": "^6.0.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" } }, "istanbul-lib-report": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz", - "integrity": "sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", "dev": true, "requires": { - "istanbul-lib-coverage": "^2.0.5", - "make-dir": "^2.1.0", - "supports-color": "^6.1.0" - }, - "dependencies": { - "supports-color": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", - "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" } }, "istanbul-lib-source-maps": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz", - "integrity": "sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, "requires": { "debug": "^4.1.1", - "istanbul-lib-coverage": "^2.0.5", - "make-dir": "^2.1.0", - "rimraf": "^2.6.3", + "istanbul-lib-coverage": "^3.0.0", "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } } }, "istanbul-reports": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.2.6.tgz", - "integrity": "sha512-SKi4rnMyLBKe0Jy2uUdx28h8oG7ph2PPuQPvIAh31d+Ci+lSiEu4C+h3oBPuJ9+mPKhOyW0M8gY4U5NM1WLeXA==", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", "dev": true, "requires": { - "handlebars": "^4.1.2" + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" } }, "jest": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest/-/jest-26.4.2.tgz", - "integrity": "sha512-LLCjPrUh98Ik8CzW8LLVnSCfLaiY+wbK53U7VxnFSX7Q+kWC4noVeDvGWIFw0Amfq1lq2VfGm7YHWSLBV62MJw==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.4.1.tgz", + "integrity": "sha512-cknimw7gAXPDOmj0QqztlxVtBVCw2lYY9CeIE5N6kD+kET1H4H79HSNISJmijb1HF+qk+G+ploJgiDi5k/fRlg==", "dev": true, "requires": { - "@jest/core": "^26.4.2", + "@jest/core": "^29.4.1", + "@jest/types": "^29.4.1", "import-local": "^3.0.2", - "jest-cli": "^26.4.2" + "jest-cli": "^29.4.1" }, "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "import-local": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", - "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, "jest-cli": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.4.2.tgz", - "integrity": "sha512-zb+lGd/SfrPvoRSC/0LWdaWCnscXc1mGYW//NP4/tmBvRPT3VntZ2jtKUONsRi59zc5JqmsSajA9ewJKFYp8Cw==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.4.1.tgz", + "integrity": "sha512-jz7GDIhtxQ37M+9dlbv5K+/FVcIo1O/b1sX3cJgzlQUf/3VG25nvuWzlDC4F1FLLzUThJeWLu8I7JF9eWpuURQ==", "dev": true, "requires": { - "@jest/core": "^26.4.2", - "@jest/test-result": "^26.3.0", - "@jest/types": "^26.3.0", + "@jest/core": "^29.4.1", + "@jest/test-result": "^29.4.1", + "@jest/types": "^29.4.1", "chalk": "^4.0.0", "exit": "^0.1.2", - "graceful-fs": "^4.2.4", + "graceful-fs": "^4.2.9", "import-local": "^3.0.2", - "is-ci": "^2.0.0", - "jest-config": "^26.4.2", - "jest-util": "^26.3.0", - "jest-validate": "^26.4.2", + "jest-config": "^29.4.1", + "jest-util": "^29.4.1", + "jest-validate": "^29.4.1", "prompts": "^2.0.1", - "yargs": "^15.3.1" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - } - }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - } - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, - "string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "yargs": "^17.3.1" } } } }, "jest-changed-files": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.3.0.tgz", - "integrity": "sha512-1C4R4nijgPltX6fugKxM4oQ18zimS7LqQ+zTTY8lMCMFPrxqBFb7KJH0Z2fRQJvw2Slbaipsqq7s1mgX5Iot+g==", + "version": "29.4.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.4.0.tgz", + "integrity": "sha512-rnI1oPxgFghoz32Y8eZsGJMjW54UlqT17ycQeCEktcxxwqqKdlj9afl8LNeO0Pbu+h2JQHThQP0BzS67eTRx4w==", "dev": true, "requires": { - "@jest/types": "^26.3.0", - "execa": "^4.0.0", - "throat": "^5.0.0" + "execa": "^5.0.0", + "p-limit": "^3.1.0" }, "dependencies": { - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "yocto-queue": "^0.1.0" } - }, - "execa": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.0.3.tgz", - "integrity": "sha512-WFDXGHckXPWZX19t1kCsXzOpqX9LWYNqn4C+HqZlk/V0imTkzJZqf87ZBhvpHaftERYknpk0fjSylnXVlVgI0A==", + } + } + }, + "jest-circus": { + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.4.1.tgz", + "integrity": "sha512-v02NuL5crMNY4CGPHBEflLzl4v91NFb85a+dH9a1pUNx6Xjggrd8l9pPy4LZ1VYNRXlb+f65+7O/MSIbLir6pA==", + "dev": true, + "requires": { + "@jest/environment": "^29.4.1", + "@jest/expect": "^29.4.1", + "@jest/test-result": "^29.4.1", + "@jest/types": "^29.4.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.4.1", + "jest-matcher-utils": "^29.4.1", + "jest-message-util": "^29.4.1", + "jest-runtime": "^29.4.1", + "jest-snapshot": "^29.4.1", + "jest-util": "^29.4.1", + "p-limit": "^3.1.0", + "pretty-format": "^29.4.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "dependencies": { + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", - "strip-final-newline": "^2.0.0" - } - }, - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "is-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz", - "integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw==", - "dev": true - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "requires": { - "path-key": "^3.0.0" - } - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" + "yocto-queue": "^0.1.0" } } } }, "jest-config": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.4.2.tgz", - "integrity": "sha512-QBf7YGLuToiM8PmTnJEdRxyYy3mHWLh24LJZKVdXZ2PNdizSe1B/E8bVm+HYcjbEzGuVXDv/di+EzdO/6Gq80A==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.4.1.tgz", + "integrity": "sha512-g7p3q4NuXiM4hrS4XFATTkd+2z0Ml2RhFmFPM8c3WyKwVDNszbl4E7cV7WIx1YZeqqCtqbtTtZhGZWJlJqngzg==", "dev": true, "requires": { - "@babel/core": "^7.1.0", - "@jest/test-sequencer": "^26.4.2", - "@jest/types": "^26.3.0", - "babel-jest": "^26.3.0", + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.4.1", + "@jest/types": "^29.4.1", + "babel-jest": "^29.4.1", "chalk": "^4.0.0", + "ci-info": "^3.2.0", "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.4", - "jest-environment-jsdom": "^26.3.0", - "jest-environment-node": "^26.3.0", - "jest-get-type": "^26.3.0", - "jest-jasmine2": "^26.4.2", - "jest-regex-util": "^26.0.0", - "jest-resolve": "^26.4.0", - "jest-util": "^26.3.0", - "jest-validate": "^26.4.2", - "micromatch": "^4.0.2", - "pretty-format": "^26.4.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.0.5" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - } + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.4.1", + "jest-environment-node": "^29.4.1", + "jest-get-type": "^29.2.0", + "jest-regex-util": "^29.2.0", + "jest-resolve": "^29.4.1", + "jest-runner": "^29.4.1", + "jest-util": "^29.4.1", + "jest-validate": "^29.4.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.4.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" } }, "jest-diff": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.4.2.tgz", - "integrity": "sha512-6T1XQY8U28WH0Z5rGpQ+VqZSZz8EN8rZcBtfvXaOkbwxIEeRre6qnuZQlbY1AJ4MKDxQF8EkrCvK+hL/VkyYLQ==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.4.1.tgz", + "integrity": "sha512-uazdl2g331iY56CEyfbNA0Ut7Mn2ulAG5vUaEHXycf1L6IPyuImIxSz4F0VYBKi7LYIuxOwTZzK3wh5jHzASMw==", "dev": true, "requires": { "chalk": "^4.0.0", - "diff-sequences": "^26.3.0", - "jest-get-type": "^26.3.0", - "pretty-format": "^26.4.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "diff-sequences": "^29.3.1", + "jest-get-type": "^29.2.0", + "pretty-format": "^29.4.1" } }, "jest-docblock": { - "version": "26.0.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", - "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", + "version": "29.2.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.2.0.tgz", + "integrity": "sha512-bkxUsxTgWQGbXV5IENmfiIuqZhJcyvF7tU4zJ/7ioTutdz4ToB5Yx6JOFBpgI+TphRY4lhOyCWGNH/QFQh5T6A==", "dev": true, "requires": { "detect-newline": "^3.0.0" } }, "jest-each": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.4.2.tgz", - "integrity": "sha512-p15rt8r8cUcRY0Mvo1fpkOGYm7iI8S6ySxgIdfh3oOIv+gHwrHTy5VWCGOecWUhDsit4Nz8avJWdT07WLpbwDA==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.4.1.tgz", + "integrity": "sha512-QlYFiX3llJMWUV0BtWht/esGEz9w+0i7BHwODKCze7YzZzizgExB9MOfiivF/vVT0GSQ8wXLhvHXh3x2fVD4QQ==", "dev": true, "requires": { - "@jest/types": "^26.3.0", + "@jest/types": "^29.4.1", "chalk": "^4.0.0", - "jest-get-type": "^26.3.0", - "jest-util": "^26.3.0", - "pretty-format": "^26.4.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-environment-jsdom": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.3.0.tgz", - "integrity": "sha512-zra8He2btIMJkAzvLaiZ9QwEPGEetbxqmjEBQwhH3CA+Hhhu0jSiEJxnJMbX28TGUvPLxBt/zyaTLrOPF4yMJA==", - "dev": true, - "requires": { - "@jest/environment": "^26.3.0", - "@jest/fake-timers": "^26.3.0", - "@jest/types": "^26.3.0", - "@types/node": "*", - "jest-mock": "^26.3.0", - "jest-util": "^26.3.0", - "jsdom": "^16.2.2" + "jest-get-type": "^29.2.0", + "jest-util": "^29.4.1", + "pretty-format": "^29.4.1" } }, "jest-environment-node": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.3.0.tgz", - "integrity": "sha512-c9BvYoo+FGcMj5FunbBgtBnbR5qk3uky8PKyRVpSfe2/8+LrNQMiXX53z6q2kY+j15SkjQCOSL/6LHnCPLVHNw==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.4.1.tgz", + "integrity": "sha512-x/H2kdVgxSkxWAIlIh9MfMuBa0hZySmfsC5lCsWmWr6tZySP44ediRKDUiNggX/eHLH7Cd5ZN10Rw+XF5tXsqg==", "dev": true, "requires": { - "@jest/environment": "^26.3.0", - "@jest/fake-timers": "^26.3.0", - "@jest/types": "^26.3.0", + "@jest/environment": "^29.4.1", + "@jest/fake-timers": "^29.4.1", + "@jest/types": "^29.4.1", "@types/node": "*", - "jest-mock": "^26.3.0", - "jest-util": "^26.3.0" + "jest-mock": "^29.4.1", + "jest-util": "^29.4.1" } }, "jest-get-type": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", - "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", + "version": "29.2.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.2.0.tgz", + "integrity": "sha512-uXNJlg8hKFEnDgFsrCjznB+sTxdkuqiCL6zMgA75qEbAJjJYTs9XPrvDctrEig2GDow22T/LvHgO57iJhXB/UA==", "dev": true }, "jest-haste-map": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.3.0.tgz", - "integrity": "sha512-DHWBpTJgJhLLGwE5Z1ZaqLTYqeODQIZpby0zMBsCU9iRFHYyhklYqP4EiG73j5dkbaAdSZhgB938mL51Q5LeZA==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.4.1.tgz", + "integrity": "sha512-imTjcgfVVTvg02khXL11NNLTx9ZaofbAWhilrMg/G8dIkp+HYCswhxf0xxJwBkfhWb3e8dwbjuWburvxmcr58w==", "dev": true, "requires": { - "@jest/types": "^26.3.0", - "@types/graceful-fs": "^4.1.2", + "@jest/types": "^29.4.1", + "@types/graceful-fs": "^4.1.3", "@types/node": "*", "anymatch": "^3.0.3", "fb-watchman": "^2.0.0", - "fsevents": "^2.1.2", - "graceful-fs": "^4.2.4", - "jest-regex-util": "^26.0.0", - "jest-serializer": "^26.3.0", - "jest-util": "^26.3.0", - "jest-worker": "^26.3.0", - "micromatch": "^4.0.2", - "sane": "^4.0.3", - "walker": "^1.0.7" - }, - "dependencies": { - "anymatch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", - "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "fsevents": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", - "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", - "dev": true, - "optional": true - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.0.5" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - } - } - }, - "jest-jasmine2": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.4.2.tgz", - "integrity": "sha512-z7H4EpCldHN1J8fNgsja58QftxBSL+JcwZmaXIvV9WKIM+x49F4GLHu/+BQh2kzRKHAgaN/E82od+8rTOBPyPA==", - "dev": true, - "requires": { - "@babel/traverse": "^7.1.0", - "@jest/environment": "^26.3.0", - "@jest/source-map": "^26.3.0", - "@jest/test-result": "^26.3.0", - "@jest/types": "^26.3.0", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^26.4.2", - "is-generator-fn": "^2.0.0", - "jest-each": "^26.4.2", - "jest-matcher-utils": "^26.4.2", - "jest-message-util": "^26.3.0", - "jest-runtime": "^26.4.2", - "jest-snapshot": "^26.4.2", - "jest-util": "^26.3.0", - "pretty-format": "^26.4.2", - "throat": "^5.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.2.0", + "jest-util": "^29.4.1", + "jest-worker": "^29.4.1", + "micromatch": "^4.0.4", + "walker": "^1.0.8" } }, "jest-leak-detector": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.4.2.tgz", - "integrity": "sha512-akzGcxwxtE+9ZJZRW+M2o+nTNnmQZxrHJxX/HjgDaU5+PLmY1qnQPnMjgADPGCRPhB+Yawe1iij0REe+k/aHoA==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.4.1.tgz", + "integrity": "sha512-akpZv7TPyGMnH2RimOCgy+hPmWZf55EyFUvymQ4LMsQP8xSPlZumCPtXGoDhFNhUE2039RApZkTQDKU79p/FiQ==", "dev": true, "requires": { - "jest-get-type": "^26.3.0", - "pretty-format": "^26.4.2" + "jest-get-type": "^29.2.0", + "pretty-format": "^29.4.1" } }, "jest-matcher-utils": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.4.2.tgz", - "integrity": "sha512-KcbNqWfWUG24R7tu9WcAOKKdiXiXCbMvQYT6iodZ9k1f7065k0keUOW6XpJMMvah+hTfqkhJhRXmA3r3zMAg0Q==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.4.1.tgz", + "integrity": "sha512-k5h0u8V4nAEy6lSACepxL/rw78FLDkBnXhZVgFneVpnJONhb2DhZj/Gv4eNe+1XqQ5IhgUcqj745UwH0HJmMnA==", "dev": true, "requires": { "chalk": "^4.0.0", - "jest-diff": "^26.4.2", - "jest-get-type": "^26.3.0", - "pretty-format": "^26.4.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "jest-diff": "^29.4.1", + "jest-get-type": "^29.2.0", + "pretty-format": "^29.4.1" } }, "jest-message-util": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.3.0.tgz", - "integrity": "sha512-xIavRYqr4/otGOiLxLZGj3ieMmjcNE73Ui+LdSW/Y790j5acqCsAdDiLIbzHCZMpN07JOENRWX5DcU+OQ+TjTA==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.4.1.tgz", + "integrity": "sha512-H4/I0cXUaLeCw6FM+i4AwCnOwHRgitdaUFOdm49022YD5nfyr8C/DrbXOBEyJaj+w/y0gGJ57klssOaUiLLQGQ==", "dev": true, "requires": { - "@babel/code-frame": "^7.0.0", - "@jest/types": "^26.3.0", - "@types/stack-utils": "^1.0.1", + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.4.1", + "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "micromatch": "^4.0.2", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.4.1", "slash": "^3.0.0", - "stack-utils": "^2.0.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.0.5" - } - }, - "stack-utils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.2.tgz", - "integrity": "sha512-0H7QK2ECz3fyZMzQ8rH0j2ykpfbnd20BFtfg/SqVC2+sCTtcw0aDTGB7dk+de4U4uUeuz6nOtJcrkFFLG1B0Rg==", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - } + "stack-utils": "^2.0.3" } }, "jest-mock": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.3.0.tgz", - "integrity": "sha512-PeaRrg8Dc6mnS35gOo/CbZovoDPKAeB1FICZiuagAgGvbWdNNyjQjkOaGUa/3N3JtpQ/Mh9P4A2D4Fv51NnP8Q==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.4.1.tgz", + "integrity": "sha512-MwA4hQ7zBOcgVCVnsM8TzaFLVUD/pFWTfbkY953Y81L5ret3GFRZtmPmRFAjKQSdCKoJvvqOu6Bvfpqlwwb0dQ==", "dev": true, "requires": { - "@jest/types": "^26.3.0", - "@types/node": "*" + "@jest/types": "^29.4.1", + "@types/node": "*", + "jest-util": "^29.4.1" } }, "jest-pnp-resolver": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", - "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true }, "jest-regex-util": { - "version": "26.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", - "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", + "version": "29.2.0", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.2.0.tgz", + "integrity": "sha512-6yXn0kg2JXzH30cr2NlThF+70iuO/3irbaB4mh5WyqNIvLLP+B6sFdluO1/1RJmslyh/f9osnefECflHvTbwVA==", "dev": true }, "jest-resolve": { - "version": "26.4.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.4.0.tgz", - "integrity": "sha512-bn/JoZTEXRSlEx3+SfgZcJAVuTMOksYq9xe9O6s4Ekg84aKBObEaVXKOEilULRqviSLAYJldnoWV9c07kwtiCg==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.4.1.tgz", + "integrity": "sha512-j/ZFNV2lm9IJ2wmlq1uYK0Y/1PiyDq9g4HEGsNTNr3viRbJdV+8Lf1SXIiLZXFvyiisu0qUyIXGBnw+OKWkJwQ==", "dev": true, "requires": { - "@jest/types": "^26.3.0", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.4.1", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^26.3.0", - "read-pkg-up": "^7.0.1", - "resolve": "^1.17.0", + "jest-util": "^29.4.1", + "jest-validate": "^29.4.1", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", "slash": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "parse-json": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.1.0.tgz", - "integrity": "sha512-+mi/lmVVNKFNVyLXV31ERiy2CY5E1/F6QtJFEzoChPRwwngMNXRDQ9GJ5WdE2Z2P4AujsOi0/+2qHID68KwfIQ==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "dependencies": { - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - } - } - }, - "read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "requires": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - } - }, - "resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "dev": true, - "requires": { - "path-parse": "^1.0.6" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } } }, "jest-resolve-dependencies": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.4.2.tgz", - "integrity": "sha512-ADHaOwqEcVc71uTfySzSowA/RdxUpCxhxa2FNLiin9vWLB1uLPad3we+JSSROq5+SrL9iYPdZZF8bdKM7XABTQ==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.4.1.tgz", + "integrity": "sha512-Y3QG3M1ncAMxfjbYgtqNXC5B595zmB6e//p/qpA/58JkQXu/IpLDoLeOa8YoYfsSglBKQQzNUqtfGJJT/qLmJg==", "dev": true, "requires": { - "@jest/types": "^26.3.0", - "jest-regex-util": "^26.0.0", - "jest-snapshot": "^26.4.2" + "jest-regex-util": "^29.2.0", + "jest-snapshot": "^29.4.1" } }, "jest-runner": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.4.2.tgz", - "integrity": "sha512-FgjDHeVknDjw1gRAYaoUoShe1K3XUuFMkIaXbdhEys+1O4bEJS8Avmn4lBwoMfL8O5oFTdWYKcf3tEJyyYyk8g==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.4.1.tgz", + "integrity": "sha512-8d6XXXi7GtHmsHrnaqBKWxjKb166Eyj/ksSaUYdcBK09VbjPwIgWov1VwSmtupCIz8q1Xv4Qkzt/BTo3ZqiCeg==", "dev": true, "requires": { - "@jest/console": "^26.3.0", - "@jest/environment": "^26.3.0", - "@jest/test-result": "^26.3.0", - "@jest/types": "^26.3.0", + "@jest/console": "^29.4.1", + "@jest/environment": "^29.4.1", + "@jest/test-result": "^29.4.1", + "@jest/transform": "^29.4.1", + "@jest/types": "^29.4.1", "@types/node": "*", "chalk": "^4.0.0", - "emittery": "^0.7.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-config": "^26.4.2", - "jest-docblock": "^26.0.0", - "jest-haste-map": "^26.3.0", - "jest-leak-detector": "^26.4.2", - "jest-message-util": "^26.3.0", - "jest-resolve": "^26.4.0", - "jest-runtime": "^26.4.2", - "jest-util": "^26.3.0", - "jest-worker": "^26.3.0", - "source-map-support": "^0.5.6", - "throat": "^5.0.0" + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.2.0", + "jest-environment-node": "^29.4.1", + "jest-haste-map": "^29.4.1", + "jest-leak-detector": "^29.4.1", + "jest-message-util": "^29.4.1", + "jest-resolve": "^29.4.1", + "jest-runtime": "^29.4.1", + "jest-util": "^29.4.1", + "jest-watcher": "^29.4.1", + "jest-worker": "^29.4.1", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" }, "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" + "yocto-queue": "^0.1.0" } } } }, "jest-runtime": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.4.2.tgz", - "integrity": "sha512-4Pe7Uk5a80FnbHwSOk7ojNCJvz3Ks2CNQWT5Z7MJo4tX0jb3V/LThKvD9tKPNVNyeMH98J/nzGlcwc00R2dSHQ==", - "dev": true, - "requires": { - "@jest/console": "^26.3.0", - "@jest/environment": "^26.3.0", - "@jest/fake-timers": "^26.3.0", - "@jest/globals": "^26.4.2", - "@jest/source-map": "^26.3.0", - "@jest/test-result": "^26.3.0", - "@jest/transform": "^26.3.0", - "@jest/types": "^26.3.0", - "@types/yargs": "^15.0.0", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.4", - "jest-config": "^26.4.2", - "jest-haste-map": "^26.3.0", - "jest-message-util": "^26.3.0", - "jest-mock": "^26.3.0", - "jest-regex-util": "^26.0.0", - "jest-resolve": "^26.4.0", - "jest-snapshot": "^26.4.2", - "jest-util": "^26.3.0", - "jest-validate": "^26.4.2", - "slash": "^3.0.0", - "strip-bom": "^4.0.0", - "yargs": "^15.3.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "string-width": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", - "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - }, - "strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - }, - "yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "requires": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - } - }, - "yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } - } - } - }, - "jest-serializer": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.3.0.tgz", - "integrity": "sha512-IDRBQBLPlKa4flg77fqg0n/pH87tcRKwe8zxOVTWISxGpPHYkRZ1dXKyh04JOja7gppc60+soKVZ791mruVdow==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.4.1.tgz", + "integrity": "sha512-UXTMU9uKu2GjYwTtoAw5rn4STxWw/nadOfW7v1sx6LaJYa3V/iymdCLQM6xy3+7C6mY8GfX22vKpgxY171UIoA==", "dev": true, "requires": { + "@jest/environment": "^29.4.1", + "@jest/fake-timers": "^29.4.1", + "@jest/globals": "^29.4.1", + "@jest/source-map": "^29.2.0", + "@jest/test-result": "^29.4.1", + "@jest/transform": "^29.4.1", + "@jest/types": "^29.4.1", "@types/node": "*", - "graceful-fs": "^4.2.4" + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.4.1", + "jest-message-util": "^29.4.1", + "jest-mock": "^29.4.1", + "jest-regex-util": "^29.2.0", + "jest-resolve": "^29.4.1", + "jest-snapshot": "^29.4.1", + "jest-util": "^29.4.1", + "semver": "^7.3.5", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" }, "dependencies": { - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true } } }, "jest-snapshot": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.4.2.tgz", - "integrity": "sha512-N6Uub8FccKlf5SBFnL2Ri/xofbaA68Cc3MGjP/NuwgnsvWh+9hLIR/DhrxbSiKXMY9vUW5dI6EW1eHaDHqe9sg==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.4.1.tgz", + "integrity": "sha512-l4iV8EjGgQWVz3ee/LR9sULDk2pCkqb71bjvlqn+qp90lFwpnulHj4ZBT8nm1hA1C5wowXLc7MGnw321u0tsYA==", "dev": true, "requires": { - "@babel/types": "^7.0.0", - "@jest/types": "^26.3.0", - "@types/prettier": "^2.0.0", + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.4.1", + "@jest/transform": "^29.4.1", + "@jest/types": "^29.4.1", + "@types/babel__traverse": "^7.0.6", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^26.4.2", - "graceful-fs": "^4.2.4", - "jest-diff": "^26.4.2", - "jest-get-type": "^26.3.0", - "jest-haste-map": "^26.3.0", - "jest-matcher-utils": "^26.4.2", - "jest-message-util": "^26.3.0", - "jest-resolve": "^26.4.0", + "expect": "^29.4.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.4.1", + "jest-get-type": "^29.2.0", + "jest-haste-map": "^29.4.1", + "jest-matcher-utils": "^29.4.1", + "jest-message-util": "^29.4.1", + "jest-util": "^29.4.1", "natural-compare": "^1.4.0", - "pretty-format": "^26.4.2", - "semver": "^7.3.2" + "pretty-format": "^29.4.1", + "semver": "^7.3.5" }, "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" + "yallist": "^4.0.0" } }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, "semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "lru-cache": "^6.0.0" } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true } } }, "jest-util": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.3.0.tgz", - "integrity": "sha512-4zpn6bwV0+AMFN0IYhH/wnzIQzRaYVrz1A8sYnRnj4UXDXbOVtWmlaZkO9mipFqZ13okIfN87aDoJWB7VH6hcw==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.4.1.tgz", + "integrity": "sha512-bQy9FPGxVutgpN4VRc0hk6w7Hx/m6L53QxpDreTZgJd9gfx/AV2MjyPde9tGyZRINAUrSv57p2inGBu2dRLmkQ==", "dev": true, "requires": { - "@jest/types": "^26.3.0", + "@jest/types": "^29.4.1", "@types/node": "*", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "micromatch": "^4.0.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "graceful-fs": { - "version": "4.2.4", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", - "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.0.5" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - } + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" } }, "jest-validate": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.4.2.tgz", - "integrity": "sha512-blft+xDX7XXghfhY0mrsBCYhX365n8K5wNDC4XAcNKqqjEzsRUSXP44m6PL0QJEW2crxQFLLztVnJ4j7oPlQrQ==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.4.1.tgz", + "integrity": "sha512-qNZXcZQdIQx4SfUB/atWnI4/I2HUvhz8ajOSYUu40CSmf9U5emil8EDHgE7M+3j9/pavtk3knlZBDsgFvv/SWw==", "dev": true, "requires": { - "@jest/types": "^26.3.0", - "camelcase": "^6.0.0", + "@jest/types": "^29.4.1", + "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^26.3.0", + "jest-get-type": "^29.2.0", "leven": "^3.1.0", - "pretty-format": "^26.4.2" + "pretty-format": "^29.4.1" }, "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, "camelcase": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.0.0.tgz", - "integrity": "sha512-8KMDF1Vz2gzOq54ONPJS65IvTUaB1cHJ2DMM7MbPmLZljDH1qpzzLsWdiN9pHh6qvkRVDTi/07+eNGch/oLU4w==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } } } }, "jest-watcher": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.3.0.tgz", - "integrity": "sha512-XnLdKmyCGJ3VoF6G/p5ohbJ04q/vv5aH9ENI+i6BL0uu9WWB6Z7Z2lhQQk0d2AVZcRGp1yW+/TsoToMhBFPRdQ==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.4.1.tgz", + "integrity": "sha512-vFOzflGFs27nU6h8dpnVRER3O2rFtL+VMEwnG0H3KLHcllLsU8y9DchSh0AL/Rg5nN1/wSiQ+P4ByMGpuybaVw==", "dev": true, "requires": { - "@jest/test-result": "^26.3.0", - "@jest/types": "^26.3.0", + "@jest/test-result": "^29.4.1", + "@jest/types": "^29.4.1", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "jest-util": "^26.3.0", + "emittery": "^0.13.1", + "jest-util": "^29.4.1", "string-length": "^4.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } } }, "jest-worker": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.3.0.tgz", - "integrity": "sha512-Vmpn2F6IASefL+DVBhPzI2J9/GJUsqzomdeN+P+dK8/jKxbh8R3BtFnx3FIta7wYlPU62cpJMJQo4kuOowcMnw==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.4.1.tgz", + "integrity": "sha512-O9doU/S1EBe+yp/mstQ0VpPwpv0Clgn68TkNwGxL6/usX/KUW9Arnn4ag8C3jc6qHcXznhsT5Na1liYzAsuAbQ==", "dev": true, "requires": { "@types/node": "*", + "jest-util": "^29.4.1", "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" + "supports-color": "^8.0.0" }, "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "requires": { "has-flag": "^4.0.0" @@ -7179,9 +3746,9 @@ "dev": true }, "js-yaml": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", - "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "requires": { "argparse": "^1.0.7", @@ -7189,132 +3756,45 @@ } }, "js2xmlparser": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.0.tgz", - "integrity": "sha512-WuNgdZOXVmBk5kUPMcTcVUpbGRzLfNkv7+7APq7WiDihpXVKrgxo6wwRpRl9OQeEBgKCVk9mR7RbzrnNWC8oBw==", - "dev": true, + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", + "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", "requires": { - "xmlcreate": "^2.0.0" + "xmlcreate": "^2.0.4" } }, "jsbn": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", "dev": true }, "jsdoc": { - "version": "3.6.3", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.6.3.tgz", - "integrity": "sha512-Yf1ZKA3r9nvtMWHO1kEuMZTlHOF8uoQ0vyo5eH7SQy5YeIiHM+B0DgKnn+X6y6KDYZcF7G2SPkKF+JORCXWE/A==", - "dev": true, + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.0.tgz", + "integrity": "sha512-tzTgkklbWKrlaQL2+e3NNgLcZu3NaK2vsHRx7tyHQ+H5jcB9Gx0txSd2eJWlMC/xU1+7LQu4s58Ry0RkuaEQVg==", "requires": { - "@babel/parser": "^7.4.4", - "bluebird": "^3.5.4", - "catharsis": "^0.8.11", + "@babel/parser": "^7.9.4", + "@jsdoc/salty": "^0.2.1", + "@types/markdown-it": "^12.2.3", + "bluebird": "^3.7.2", + "catharsis": "^0.9.0", "escape-string-regexp": "^2.0.0", - "js2xmlparser": "^4.0.0", + "js2xmlparser": "^4.0.2", "klaw": "^3.0.0", - "markdown-it": "^8.4.2", - "markdown-it-anchor": "^5.0.2", - "marked": "^0.7.0", - "mkdirp": "^0.5.1", + "markdown-it": "^12.3.2", + "markdown-it-anchor": "^8.4.1", + "marked": "^4.0.10", + "mkdirp": "^1.0.4", "requizzle": "^0.2.3", - "strip-json-comments": "^3.0.1", - "taffydb": "2.6.2", - "underscore": "~1.9.1" - } - }, - "jsdom": { - "version": "16.4.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.4.0.tgz", - "integrity": "sha512-lYMm3wYdgPhrl7pDcRmvzPhhrGVBeVhPIqeHjzeiHN3DFmD1RBpbExbi8vU7BJdH8VAZYovR8DMt0PNNDM7k8w==", - "dev": true, - "requires": { - "abab": "^2.0.3", - "acorn": "^7.1.1", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.2.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.0", - "domexception": "^2.0.1", - "escodegen": "^1.14.1", - "html-encoding-sniffer": "^2.0.1", - "is-potential-custom-element-name": "^1.0.0", - "nwsapi": "^2.2.0", - "parse5": "5.1.1", - "request": "^2.88.2", - "request-promise-native": "^1.0.8", - "saxes": "^5.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^3.0.1", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0", - "ws": "^7.2.3", - "xml-name-validator": "^3.0.0" + "strip-json-comments": "^3.1.0", + "underscore": "~1.13.2" }, "dependencies": { - "acorn": { - "version": "7.4.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.0.tgz", - "integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==", - "dev": true - }, - "request": { - "version": "2.88.2", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", - "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", - "dev": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.5.0", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" - }, - "dependencies": { - "tough-cookie": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", - "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", - "dev": true, - "requires": { - "psl": "^1.1.28", - "punycode": "^2.1.1" - } - } - } - }, - "tough-cookie": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-3.0.1.tgz", - "integrity": "sha512-yQyJ0u4pZsv9D4clxO69OEjLWYw+jbgspjTue4lTQZLfV0c5l1VmK2y1JK8E9ahdpltPOaAThPcp5nKPUgSnsg==", - "dev": true, - "requires": { - "ip-regex": "^2.1.0", - "psl": "^1.1.28", - "punycode": "^2.1.1" - } + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" } } }, @@ -7337,9 +3817,9 @@ "dev": true }, "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", "dev": true }, "json-schema-traverse": { @@ -7351,49 +3831,37 @@ "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", "dev": true }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", - "dev": true, - "requires": { - "minimist": "^1.2.0" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - } - } + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true }, "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", "dev": true, "requires": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", - "json-schema": "0.2.3", + "json-schema": "0.4.0", "verror": "1.10.0" } }, "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true }, "klaw": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", - "dev": true, "requires": { "graceful-fs": "^4.1.9" } @@ -7404,19 +3872,10 @@ "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true }, - "lcid": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", - "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", - "dev": true, - "requires": { - "invert-kv": "^2.0.0" - } - }, "lcov-parse": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz", - "integrity": "sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM=", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-1.0.0.tgz", + "integrity": "sha512-aprLII/vPzuQvYZnDRU78Fns9I2Ag3gi4Ipga/hxnVMCZC8DnR2nI7XBqrPoywGfxqIx/DgarGvDJZAD3YBTgQ==", "dev": true }, "leven": { @@ -7428,24 +3887,22 @@ "levn": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", "requires": { "prelude-ls": "~1.1.2", "type-check": "~0.3.2" } }, "lines-and-columns": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true }, "linkify-it": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-2.2.0.tgz", - "integrity": "sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==", - "dev": true, + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", + "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", "requires": { "uc.micro": "^1.0.1" } @@ -7453,7 +3910,7 @@ "load-json-file": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "integrity": "sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw==", "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -7462,57 +3919,76 @@ "strip-bom": "^3.0.0" }, "dependencies": { + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw==", + "dev": true, + "requires": { + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" + } + }, "pify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", + "dev": true + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "dev": true } } }, "loader-runner": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.4.0.tgz", - "integrity": "sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", "dev": true }, "loader-utils": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.2.3.tgz", - "integrity": "sha512-fkpz8ejdnEMG3s37wGL07iSBDg99O9D5yflE9RGNH3hRdx9SOwYfnGYdZOUIZitN8E+E2vkq3MUMYMvPYl5ZZA==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.2.tgz", + "integrity": "sha512-I5d00Pd/jwMD2QCduo657+YM/6L3KZu++pmX9VFncxaxvHcru9jx1lBaFft+r4Mt2jK0Yhp41XlRAihzPxHNCg==", "dev": true, "requires": { "big.js": "^5.2.2", - "emojis-list": "^2.0.0", + "emojis-list": "^3.0.0", "json5": "^1.0.1" + }, + "dependencies": { + "json5": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", + "dev": true, + "requires": { + "minimist": "^1.2.0" + } + } } }, "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "p-locate": "^4.1.0" } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "lodash.flattendeep": { "version": "4.4.0", "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", - "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", - "dev": true - }, - "lodash.sortby": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", - "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "integrity": "sha512-uHaJFihxmJcEX3kT4I23ABqKKalJ/zDrDg0lsFtc1h+3uw49SIJ5beyhx5ExVRti3AvKoOJngIj7xz3oylPdWQ==", "dev": true }, "log-driver": { @@ -7522,132 +3998,96 @@ "dev": true }, "long": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", - "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=" + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.1.tgz", + "integrity": "sha512-GKSNGeNAtw8IryjjkhZxuKB3JzlcLTwjtiQCHKvqQet81I93kXslhDQruGI/QsddO83mcDToBVy7GqGS/zYf/A==" }, "lru-cache": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", - "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" + "yallist": "^3.0.2" } }, "make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", "dev": true, "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" + "semver": "^6.0.0" } }, "make-error": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", - "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", "dev": true }, "makeerror": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", - "integrity": "sha1-4BpckQnyr3lmDk6LlYd5AYT1qWw=", + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, "requires": { - "tmpl": "1.0.x" - } - }, - "mamacro": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/mamacro/-/mamacro-0.0.3.tgz", - "integrity": "sha512-qMEwh+UujcQ+kbz3T6V+wAmO2U8veoq2w+3wY8MquqwVA3jChfwY+Tk52GZKDfACEPjuZ7r2oJLejwpt8jtwTA==", - "dev": true - }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dev": true, - "requires": { - "p-defer": "^1.0.0" + "tmpl": "1.0.5" } }, "map-cache": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "integrity": "sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg==", "dev": true }, "map-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "integrity": "sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w==", "dev": true, "requires": { "object-visit": "^1.0.0" } }, "markdown-it": { - "version": "8.4.2", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-8.4.2.tgz", - "integrity": "sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==", - "dev": true, + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", + "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", "requires": { - "argparse": "^1.0.7", - "entities": "~1.1.1", - "linkify-it": "^2.0.0", + "argparse": "^2.0.1", + "entities": "~2.1.0", + "linkify-it": "^3.0.1", "mdurl": "^1.0.1", "uc.micro": "^1.0.5" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + } } }, "markdown-it-anchor": { - "version": "5.2.5", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-5.2.5.tgz", - "integrity": "sha512-xLIjLQmtym3QpoY9llBgApknl7pxAcN3WDRc2d3rwpl+/YvDZHPmKscGs+L6E05xf2KrCXPBvosWt7MZukwSpQ==", - "dev": true + "version": "8.6.6", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.6.tgz", + "integrity": "sha512-jRW30YGywD2ESXDc+l17AiritL0uVaSnWsb26f+68qaW9zgbIIr1f4v2Nsvc0+s0Z2N3uX6t/yAw7BwCQ1wMsA==" }, "marked": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", - "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", - "dev": true - }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } + "version": "4.2.12", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.2.12.tgz", + "integrity": "sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw==" }, "mdurl": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha1-/oWy7HWlkDfyrf7BAP1sYBdhFS4=", - "dev": true - }, - "mem": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", - "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", - "dev": true, - "requires": { - "map-age-cleaner": "^0.1.1", - "mimic-fn": "^2.0.0", - "p-is-promise": "^2.0.0" - } + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==" }, "memory-fs": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", - "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.5.0.tgz", + "integrity": "sha512-jA0rdU5KoQMC0e6ppoNRtpp6vjFq6+NY7r8hywnC7V+1Xj/MtHwGIbB1QaK/dunyjWteJzmkpd7ooeWg10T7GA==", "dev": true, "requires": { "errno": "^0.1.3", @@ -7661,14 +4101,6 @@ "dev": true, "requires": { "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } } }, "merge-stream": { @@ -7678,49 +4110,28 @@ "dev": true }, "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", "dev": true, "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "dev": true, - "requires": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" + "braces": "^3.0.2", + "picomatch": "^2.3.1" } }, "mime-db": { - "version": "1.40.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", - "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", "dev": true }, "mime-types": { - "version": "2.1.24", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", - "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, "requires": { - "mime-db": "1.40.0" + "mime-db": "1.52.0" } }, "mimic-fn": { @@ -7729,32 +4140,18 @@ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", - "dev": true - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=", - "dev": true - }, "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz", + "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" }, "minipass": { "version": "2.9.0", @@ -7764,32 +4161,6 @@ "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" - }, - "dependencies": { - "yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - } - } - }, - "mississippi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-3.0.0.tgz", - "integrity": "sha512-x471SsVjUtBRtcvd4BzKE9kFC+/2TeWgKCgw0bZcw1b9l2X3QX5vCWgF+KaZaYm87Ss//rHnWryupDrgLvmSkA==", - "dev": true, - "requires": { - "concat-stream": "^1.5.0", - "duplexify": "^3.4.2", - "end-of-stream": "^1.1.0", - "flush-write-stream": "^1.0.0", - "from2": "^2.1.0", - "parallel-transform": "^1.1.0", - "pump": "^3.0.0", - "pumpify": "^1.3.3", - "stream-each": "^1.1.0", - "through2": "^2.0.0" } }, "mixin-deep": { @@ -7814,27 +4185,9 @@ } }, "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "move-concurrently": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", - "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", - "dev": true, - "requires": { - "aproba": "^1.1.1", - "copy-concurrently": "^1.0.0", - "fs-write-stream-atomic": "^1.0.8", - "mkdirp": "^0.5.1", - "rimraf": "^2.5.4", - "run-queue": "^1.0.3" - } + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" }, "ms": { "version": "2.1.2", @@ -7842,13 +4195,6 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", "dev": true }, - "nan": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", - "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==", - "dev": true, - "optional": true - }, "nanomatch": { "version": "1.2.13", "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", @@ -7871,19 +4217,19 @@ "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, "neo-async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz", - "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, "nested-error-stacks": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/nested-error-stacks/-/nested-error-stacks-2.1.0.tgz", - "integrity": "sha512-AO81vsIO1k1sM4Zrd6Hu7regmJN1NSiAja10gc4bX3F0wd+9rQmcuHQaHVQCYIEC8iFXnE+mavh23GOt7wBgug==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/nested-error-stacks/-/nested-error-stacks-2.1.1.tgz", + "integrity": "sha512-9iN1ka/9zmX1ZvLV9ewJYEk9h7RyRRtqdK0woXcqohu8EWIerfPUjYJPg0ULy0UqP7cslmdGc8xKDJcojlKiaw==", "dev": true }, "nice-try": { @@ -7895,105 +4241,15 @@ "node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", "dev": true }, - "node-libs-browser": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.2.1.tgz", - "integrity": "sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q==", - "dev": true, - "requires": { - "assert": "^1.1.1", - "browserify-zlib": "^0.2.0", - "buffer": "^4.3.0", - "console-browserify": "^1.1.0", - "constants-browserify": "^1.0.0", - "crypto-browserify": "^3.11.0", - "domain-browser": "^1.1.1", - "events": "^3.0.0", - "https-browserify": "^1.0.0", - "os-browserify": "^0.3.0", - "path-browserify": "0.0.1", - "process": "^0.11.10", - "punycode": "^1.2.4", - "querystring-es3": "^0.2.0", - "readable-stream": "^2.3.3", - "stream-browserify": "^2.0.1", - "stream-http": "^2.7.2", - "string_decoder": "^1.0.0", - "timers-browserify": "^2.0.4", - "tty-browserify": "0.0.0", - "url": "^0.11.0", - "util": "^0.11.0", - "vm-browserify": "^1.0.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - } - } - }, - "node-modules-regexp": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz", - "integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=", + "node-releases": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz", + "integrity": "sha512-dFSmB8fFHEH/s81Xi+Y/15DQY6VHW81nXRj86EMSL3lmuTmK1e+aT4wrFCkTbm+gSwkw4KpX+rT/pMM2c1mF+A==", "dev": true }, - "node-notifier": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.0.tgz", - "integrity": "sha512-46z7DUmcjoYdaWyXouuFNNfUo6eFa94t23c53c+lG/9Cvauk4a98rAUp9672X5dxGdQmLpPzTxzu8f/OeEPaFA==", - "dev": true, - "optional": true, - "requires": { - "growly": "^1.3.0", - "is-wsl": "^2.2.0", - "semver": "^7.3.2", - "shellwords": "^0.1.1", - "uuid": "^8.3.0", - "which": "^2.0.2" - }, - "dependencies": { - "is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "optional": true, - "requires": { - "is-docker": "^2.0.0" - } - }, - "semver": { - "version": "7.3.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", - "integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==", - "dev": true, - "optional": true - }, - "uuid": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.0.tgz", - "integrity": "sha512-fX6Z5o4m6XsXBdli9g7DtWgAx+osMsRRZFKma1mIUsLCz6vRvv+pz5VNbyu9UEDzpMWulZfvpgb/cmDXVulYFQ==", - "dev": true, - "optional": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "optional": true, - "requires": { - "isexe": "^2.0.0" - } - } - } - }, "nodeunit": { "version": "0.11.3", "resolved": "https://registry.npmjs.org/nodeunit/-/nodeunit-0.11.3.tgz", @@ -8014,6 +4270,14 @@ "resolve": "^1.10.0", "semver": "2 || 3 || 4 || 5", "validate-npm-package-license": "^3.0.1" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } } }, "normalize-path": { @@ -8023,20 +4287,14 @@ "dev": true }, "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, "requires": { - "path-key": "^2.0.0" + "path-key": "^3.0.0" } }, - "nwsapi": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", - "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", - "dev": true - }, "nyc": { "version": "14.1.1", "resolved": "https://registry.npmjs.org/nyc/-/nyc-14.1.1.tgz", @@ -8068,6 +4326,277 @@ "uuid": "^3.3.2", "yargs": "^13.2.2", "yargs-parser": "^13.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "dev": true, + "requires": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "dev": true + }, + "istanbul-lib-coverage": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.5.tgz", + "integrity": "sha512-8aXznuEPCJvGnMSRft4udDRDtb1V3pkQkMMI5LI+6HuQz5oQ4J2UFn1H82raA3qJtyOLkkwVqICBQkjnGtn5mA==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-3.3.0.tgz", + "integrity": "sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA==", + "dev": true, + "requires": { + "@babel/generator": "^7.4.0", + "@babel/parser": "^7.4.3", + "@babel/template": "^7.4.0", + "@babel/traverse": "^7.4.3", + "@babel/types": "^7.4.0", + "istanbul-lib-coverage": "^2.0.5", + "semver": "^6.0.0" + } + }, + "istanbul-lib-report": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-2.0.8.tgz", + "integrity": "sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^2.0.5", + "make-dir": "^2.1.0", + "supports-color": "^6.1.0" + } + }, + "istanbul-lib-source-maps": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-3.0.6.tgz", + "integrity": "sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^2.0.5", + "make-dir": "^2.1.0", + "rimraf": "^2.6.3", + "source-map": "^0.6.1" + } + }, + "istanbul-reports": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.2.7.tgz", + "integrity": "sha512-uu1F/L1o5Y6LzPVSVZXNOoD/KXpJue9aeLRd0sM9uMXfZvzomB0WxVamWb5ue8kA2vVWEmW7EG+A5n3f1kqHKg==", + "dev": true, + "requires": { + "html-escaper": "^2.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "dev": true, + "requires": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "dependencies": { + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + } + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true + }, + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + }, + "supports-color": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", + "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + }, + "test-exclude": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-5.2.3.tgz", + "integrity": "sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g==", + "dev": true, + "requires": { + "glob": "^7.1.3", + "minimatch": "^3.0.4", + "read-pkg-up": "^4.0.0", + "require-main-filename": "^2.0.0" + } + }, + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "dev": true + }, + "wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + } + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, + "yargs": { + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", + "dev": true, + "requires": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + } + }, + "yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } } }, "oauth-sign": { @@ -8076,16 +4605,10 @@ "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", "dev": true }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, "object-copy": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "integrity": "sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ==", "dev": true, "requires": { "copy-descriptor": "^0.1.0", @@ -8096,7 +4619,7 @@ "define-property": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -8105,7 +4628,7 @@ "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -8116,7 +4639,7 @@ "object-visit": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "integrity": "sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA==", "dev": true, "requires": { "isobject": "^3.0.0" @@ -8125,7 +4648,7 @@ "object.pick": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "integrity": "sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ==", "dev": true, "requires": { "isobject": "^3.0.1" @@ -8134,8 +4657,7 @@ "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "requires": { "wrappy": "1" } @@ -8150,26 +4672,15 @@ } }, "opener": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.1.tgz", - "integrity": "sha512-goYSy5c2UXE4Ra1xixabeVh1guIX/ZV/YokJksb6q2lubWu6UbvPQ20p542/sFIll1nl8JnCyK9oBaOcCWXwvA==", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", + "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", "dev": true }, - "optimist": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", - "dev": true, - "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" - } - }, "optionator": { "version": "0.8.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, "requires": { "deep-is": "~0.1.3", "fast-levenshtein": "~2.0.6", @@ -8179,84 +4690,43 @@ "word-wrap": "~1.2.3" } }, - "os-browserify": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", - "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", - "dev": true - }, "os-homedir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "integrity": "sha512-B5JU3cabzk8c67mRRd3ECmROafjYMXbuzlwtqdM8IbS8ktlTix8aFGb2bAGKrSRIlnfKwovGUUr72JUPyOb6kQ==", "dev": true }, - "os-locale": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", - "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", - "dev": true, - "requires": { - "execa": "^1.0.0", - "lcid": "^2.0.0", - "mem": "^4.0.0" - } - }, "own-or": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/own-or/-/own-or-1.0.0.tgz", - "integrity": "sha1-Tod/vtqaLsgAD7wLyuOWRe6L+Nw=", + "integrity": "sha512-NfZr5+Tdf6MB8UI9GLvKRs4cXY8/yB0w3xtt84xFdWy8hkGjn+JFc60VhzS/hFRfbyxFcGYMTjnF4Me+RbbqrA==", "dev": true }, "own-or-env": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/own-or-env/-/own-or-env-1.0.1.tgz", - "integrity": "sha512-y8qULRbRAlL6x2+M0vIe7jJbJx/kmUTzYonRAa2ayesR2qWLswninkVyeJe4x3IEXhdgoNodzjQRKAoEs6Fmrw==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/own-or-env/-/own-or-env-1.0.2.tgz", + "integrity": "sha512-NQ7v0fliWtK7Lkb+WdFqe6ky9XAzYmlkXthQrBbzlYbmFKoAYbDDcwmOm6q8kOuwSRXW8bdL5ORksploUJmWgw==", "dev": true, "requires": { "own-or": "^1.0.0" } }, - "p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", - "dev": true - }, - "p-each-series": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.1.0.tgz", - "integrity": "sha512-ZuRs1miPT4HrjFa+9fRfOFXxGJfORgelKV9f9nNOWw2gl6gVsRaVDOQP0+MI0G0wGKns1Yacsu0GjOFbTK0JFQ==", - "dev": true - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", - "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", - "dev": true - }, "p-limit": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", - "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "requires": { "p-try": "^2.0.0" } }, "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "requires": { - "p-limit": "^2.0.0" + "p-limit": "^2.2.0" } }, "p-try": { @@ -8277,99 +4747,51 @@ "release-zalgo": "^1.0.0" } }, - "pako": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.10.tgz", - "integrity": "sha512-0DTvPVU3ed8+HNXOu5Bs+o//Mbdj9VNQMUOe9oKCwh8l0GNwpTDMKCWbRjgtD291AWnkAgkqA/LOnQS8AmS1tw==", - "dev": true - }, - "parallel-transform": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.2.0.tgz", - "integrity": "sha512-P2vSmIu38uIlvdcU7fDkyrxj33gTUy/ABO5ZUbGowxNCopBq/OoD42bP4UmMrJoPyk4Uqf0mu3mtWBhHCZD8yg==", - "dev": true, - "requires": { - "cyclist": "^1.0.1", - "inherits": "^2.0.3", - "readable-stream": "^2.1.5" - } - }, - "parse-asn1": { - "version": "5.1.5", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.5.tgz", - "integrity": "sha512-jkMYn1dcJqF6d5CpU689bq7w/b5ALS9ROVSpQDPrZsqqesUJii9qutvoT5ltGedNXMO2e16YUWIghG9KxaViTQ==", - "dev": true, - "requires": { - "asn1.js": "^4.0.0", - "browserify-aes": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.0", - "pbkdf2": "^3.0.3", - "safe-buffer": "^5.1.1" - } - }, "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", "dev": true, "requires": { + "@babel/code-frame": "^7.0.0", "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" } }, "parse-passwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", - "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", - "dev": true - }, - "parse5": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-5.1.1.tgz", - "integrity": "sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug==", + "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", "dev": true }, "pascalcase": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true - }, - "path-browserify": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", - "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", - "dev": true - }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "integrity": "sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw==", "dev": true }, "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" }, "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, "path-type": { @@ -8384,34 +4806,27 @@ "pify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", "dev": true } } }, - "pbkdf2": { - "version": "3.0.17", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", - "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", - "dev": true, - "requires": { - "create-hash": "^1.1.2", - "create-hmac": "^1.1.4", - "ripemd160": "^2.0.1", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", + "dev": true + }, + "picocolors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", + "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", "dev": true }, "picomatch": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true }, "pify": { @@ -8421,112 +4836,70 @@ "dev": true }, "pirates": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.1.tgz", - "integrity": "sha512-WuNqLTbMI3tmfef2TKxlQmAiLHKtFhlsCZnPIpuv2Ow0RDVO8lfy1Opf4NUzlMXLjPl+Men7AuVdX6TA+s+uGA==", - "dev": true, - "requires": { - "node-modules-regexp": "^1.0.0" - } + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", + "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "dev": true }, "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, "requires": { - "find-up": "^3.0.0" + "find-up": "^4.0.0" } }, "posix-character-classes": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "integrity": "sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg==", "dev": true }, "prelude-ls": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==" }, "pretty-format": { - "version": "26.4.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.4.2.tgz", - "integrity": "sha512-zK6Gd8zDsEiVydOCGLkoBoZuqv8VTiHyAbKznXe/gaph/DAeZOmit9yMfgIz5adIgAMMs5XfoYSwAX3jcCO1tA==", + "version": "29.4.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.4.1.tgz", + "integrity": "sha512-dt/Z761JUVsrIKaY215o1xQJBGlSmTx/h4cSqXqjHLnU1+Kt+mavVE7UgqJJO5ukx5HjSswHfmXz4LjS2oIJfg==", "dev": true, "requires": { - "@jest/types": "^26.3.0", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", - "react-is": "^16.12.0" + "@jest/schemas": "^29.4.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", - "dev": true, - "requires": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true } } }, - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", - "dev": true - }, "process-nextick-args": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", "dev": true }, - "promise-inflight": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", - "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", - "dev": true - }, "prompts": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.3.2.tgz", - "integrity": "sha512-Q06uKs2CkNYVID0VqwfAl9mipo99zkBv/n2JtWY89Yxa3ZabWSrs0e2KTudKVa3peLUvYXMefDqIleLPVUBZMA==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, "requires": { "kleur": "^3.0.3", - "sisteransi": "^1.0.4" + "sisteransi": "^1.0.5" } }, "protobufjs": { - "version": "6.8.8", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz", - "integrity": "sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.0.tgz", + "integrity": "sha512-hYCqTDuII4iJ4stZqiuGCSU8xxWl5JeXYpwARGtn/tWcKCAro6h3WQz+xpsNbXW0UYqpmTQFEyFWO0G0Kjt64g==", "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -8538,115 +4911,111 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.0", - "@types/node": "^10.1.0", - "long": "^4.0.0" + "@types/node": ">=13.7.0", + "long": "^5.0.0" + } + }, + "protobufjs-cli": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.0.tgz", + "integrity": "sha512-VXMQn+z3yG2WbN2E+mx5vcyIHF7yJSg2jqyqfxcZLWNOSTqUzSSgAE5vu04/JEpwxTI04JGyrZRDHC36wr04uw==", + "requires": { + "chalk": "^4.0.0", + "escodegen": "^1.13.0", + "espree": "^9.0.0", + "estraverse": "^5.1.0", + "glob": "^8.0.0", + "jsdoc": "^4.0.0", + "minimist": "^1.2.0", + "semver": "^7.1.2", + "tmp": "^0.2.1", + "uglify-js": "^3.7.7" }, "dependencies": { - "@types/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz", - "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "requires": { + "balanced-match": "^1.0.0" + } }, - "@types/node": { - "version": "10.17.3", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.3.tgz", - "integrity": "sha512-QZ9CjUB3QoA3f2afw3utKlfRPhpmufB7jC2+oDhLWnXqoyx333fhKSQDLQu2EK7OE0a15X67eYiRAaJsHXrpMA==" + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==" }, - "long": { + "glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + } + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "semver": { + "version": "7.3.8", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", + "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" } } }, "prr": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", - "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", + "integrity": "sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==", "dev": true }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", "dev": true }, "psl": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.4.0.tgz", - "integrity": "sha512-HZzqCGPecFLyoRj5HLfuDSKYTJkAfB5thKBIkRHtGjWwY7p1dAyveIbXIq4tO0KYfDF2tHqPUgY9SDnGm00uFw==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", "dev": true }, - "public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "dev": true, - "requires": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "pumpify": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", - "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", - "dev": true, - "requires": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" - }, - "dependencies": { - "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - } - } - }, "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", + "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==", "dev": true }, "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true - }, - "querystring": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", - "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", - "dev": true - }, - "querystring-es3": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", - "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", "dev": true }, "randombytes": { @@ -8658,26 +5027,16 @@ "safe-buffer": "^5.1.0" } }, - "randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "dev": true, - "requires": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", "dev": true }, "read-pkg": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", - "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "integrity": "sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA==", "dev": true, "requires": { "load-json-file": "^4.0.0", @@ -8693,12 +5052,48 @@ "requires": { "find-up": "^3.0.0", "read-pkg": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true + } } }, "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", "dev": true, "requires": { "core-util-is": "~1.0.0", @@ -8718,17 +5113,6 @@ } } }, - "readdirp": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", - "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" - } - }, "regex-not": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", @@ -8742,34 +5126,28 @@ "release-zalgo": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", - "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", + "integrity": "sha512-gUAyHVHPPC5wdqX/LG4LWtRYtgjxyX78oanFNTMMyFEfOqdC54s3eE82imuWKbOeqYht2CrNf64Qb8vgmmtZGA==", "dev": true, "requires": { "es6-error": "^4.0.1" } }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, "repeat-element": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", - "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", + "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", "dev": true }, "repeat-string": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", "dev": true }, "request": { - "version": "2.88.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", - "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", "dev": true, "requires": { "aws-sign2": "~0.7.0", @@ -8779,7 +5157,7 @@ "extend": "~3.0.2", "forever-agent": "~0.6.1", "form-data": "~2.3.2", - "har-validator": "~5.1.0", + "har-validator": "~5.1.3", "http-signature": "~1.2.0", "is-typedarray": "~1.0.0", "isstream": "~0.1.2", @@ -8789,43 +5167,23 @@ "performance-now": "^2.1.0", "qs": "~6.5.2", "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", + "tough-cookie": "~2.5.0", "tunnel-agent": "^0.6.0", "uuid": "^3.3.2" - } - }, - "request-promise-core": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz", - "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==", - "dev": true, - "requires": { - "lodash": "^4.17.19" }, "dependencies": { - "lodash": { - "version": "4.17.20", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", - "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", "dev": true } } }, - "request-promise-native": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/request-promise-native/-/request-promise-native-1.0.9.tgz", - "integrity": "sha512-wcW+sIUiWnKgNY0dqCpOZkUbF/I+YPi+f09JZIDa39Ec+q82CpSYniDp+ISgTTbKmnpJWASeJBPZmoxH84wt3g==", - "dev": true, - "requires": { - "request-promise-core": "1.1.4", - "stealthy-require": "^1.1.1", - "tough-cookie": "^2.3.3" - } - }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true }, "require-main-filename": { @@ -8835,44 +5193,37 @@ "dev": true }, "requizzle": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.3.tgz", - "integrity": "sha512-YanoyJjykPxGHii0fZP0uUPEXpvqfBDxWV7s6GKAiiOsiqhX6vHNyW3Qzdmqp/iq/ExbhaGbVrjB4ruEVSM4GQ==", - "dev": true, + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", + "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", "requires": { - "lodash": "^4.17.14" + "lodash": "^4.17.21" } }, "resolve": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz", - "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", + "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", "dev": true, "requires": { - "path-parse": "^1.0.6" + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" } }, "resolve-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", - "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, "requires": { - "resolve-from": "^3.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true - } + "resolve-from": "^5.0.0" } }, "resolve-dir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", - "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=", + "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==", "dev": true, "requires": { "expand-tilde": "^2.0.0", @@ -8893,15 +5244,21 @@ } }, "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true }, "resolve-url": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "integrity": "sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==", + "dev": true + }, + "resolve.exports": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.0.tgz", + "integrity": "sha512-6K/gDlqgQscOlg9fSRpWstA8sYe8rbELsSTNpx+3kTrsVCzvSl0zIvRErM7fdl9ERWDsKnrLnwB+Ne89918XOg==", "dev": true }, "ret": { @@ -8919,41 +5276,16 @@ "glob": "^7.1.3" } }, - "ripemd160": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", - "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", - "dev": true, - "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" - } - }, - "rsvp": { - "version": "4.8.5", - "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", - "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", - "dev": true - }, - "run-queue": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", - "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", - "dev": true, - "requires": { - "aproba": "^1.1.1" - } - }, "safe-buffer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", - "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "dev": true }, "safe-regex": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "integrity": "sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg==", "dev": true, "requires": { "ret": "~0.1.10" @@ -8965,67 +5297,36 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true }, - "sane": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", - "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", - "dev": true, - "requires": { - "@cnakazawa/watch": "^1.0.3", - "anymatch": "^2.0.0", - "capture-exit": "^2.0.0", - "exec-sh": "^0.3.2", - "execa": "^1.0.0", - "fb-watchman": "^2.0.0", - "micromatch": "^3.1.4", - "minimist": "^1.1.1", - "walker": "~1.0.5" - }, - "dependencies": { - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - } - } - }, - "saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "requires": { - "xmlchars": "^2.2.0" - } - }, "schema-utils": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-1.0.0.tgz", - "integrity": "sha512-i27Mic4KovM/lnGsy8whRCHhc7VicJajAjTrYg11K9zfZXnYIt4k5F+kZkwjnrhKzLic/HLU4j11mjsz2G/75g==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-3.1.1.tgz", + "integrity": "sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw==", "dev": true, "requires": { - "ajv": "^6.1.0", - "ajv-errors": "^1.0.0", - "ajv-keywords": "^3.1.0" + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" } }, "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true }, "serialize-javascript": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.9.1.tgz", - "integrity": "sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==", - "dev": true + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.1.tgz", + "integrity": "sha512-owoXEFjWRllis8/M1Q+Cw5k8ZH40e3zhp/ovX+Xr/vi1qj6QesbyXXViFbpNvWvPNAD62SutwEXavefrLJWj7w==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } }, "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "dev": true }, "set-value": { @@ -9043,7 +5344,7 @@ "extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -9051,48 +5352,25 @@ } } }, - "setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", - "dev": true - }, - "sha.js": { - "version": "2.4.11", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", - "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, "requires": { - "shebang-regex": "^1.0.0" + "shebang-regex": "^3.0.0" } }, "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, - "shellwords": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", - "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", - "dev": true, - "optional": true - }, "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, "sisteransi": { @@ -9135,7 +5413,7 @@ "define-property": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -9144,7 +5422,7 @@ "extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -9153,7 +5431,13 @@ "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", "dev": true } } @@ -9172,7 +5456,7 @@ "define-property": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "integrity": "sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA==", "dev": true, "requires": { "is-descriptor": "^1.0.0" @@ -9221,7 +5505,7 @@ "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -9229,25 +5513,18 @@ } } }, - "source-list-map": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.1.tgz", - "integrity": "sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw==", - "dev": true - }, "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" }, "source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", + "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", "dev": true, "requires": { - "atob": "^2.1.1", + "atob": "^2.1.2", "decode-uri-component": "^0.2.0", "resolve-url": "^0.2.1", "source-map-url": "^0.4.0", @@ -9255,27 +5532,19 @@ } }, "source-map-support": { - "version": "0.5.16", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.16.tgz", - "integrity": "sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==", + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } } }, "source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", + "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", "dev": true }, "spawn-wrap": { @@ -9290,12 +5559,32 @@ "rimraf": "^2.6.2", "signal-exit": "^3.0.2", "which": "^1.3.0" + }, + "dependencies": { + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "requires": { + "minimist": "^1.2.6" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + } } }, "spdx-correct": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", - "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", + "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", "dev": true, "requires": { "spdx-expression-parse": "^3.0.0", @@ -9303,15 +5592,15 @@ } }, "spdx-exceptions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", + "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", "dev": true }, "spdx-expression-parse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", + "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", "dev": true, "requires": { "spdx-exceptions": "^2.1.0", @@ -9319,9 +5608,9 @@ } }, "spdx-license-ids": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz", - "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", + "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==", "dev": true }, "split-string": { @@ -9336,13 +5625,13 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true }, "sshpk": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", - "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz", + "integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==", "dev": true, "requires": { "asn1": "~0.2.3", @@ -9356,25 +5645,27 @@ "tweetnacl": "~0.14.0" } }, - "ssri": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-6.0.1.tgz", - "integrity": "sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA==", + "stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, "requires": { - "figgy-pudding": "^3.5.1" + "escape-string-regexp": "^2.0.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + } } }, - "stack-utils": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.2.tgz", - "integrity": "sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==", - "dev": true - }, "static-extend": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "integrity": "sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==", "dev": true, "requires": { "define-property": "^0.2.5", @@ -9384,7 +5675,7 @@ "define-property": { "version": "0.2.5", "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "integrity": "sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA==", "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -9392,92 +5683,30 @@ } } }, - "stealthy-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", - "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=", - "dev": true - }, - "stream-browserify": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", - "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", - "dev": true, - "requires": { - "inherits": "~2.0.1", - "readable-stream": "^2.0.2" - } - }, - "stream-each": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", - "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "stream-shift": "^1.0.0" - } - }, - "stream-http": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", - "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", - "dev": true, - "requires": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.3.6", - "to-arraybuffer": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", - "dev": true - }, "strict-event-emitter-types": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/strict-event-emitter-types/-/strict-event-emitter-types-1.2.0.tgz", "integrity": "sha512-KqQQvQapOVn99SI/L6tEnW2mDXWddzlr+D1AAmiaXqI7Annq2hbfac8XnZzZHXOV50dCKtUsw1OCNjCezFHAMw==" }, "string-length": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.1.tgz", - "integrity": "sha512-PKyXUd0LK0ePjSOnWn34V2uD6acUWev9uy0Ft05k0E8xRW+SKcA0F7eMr7h5xlzfn+4O3N+55rduYyet3Jk+jw==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, "requires": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - } } }, "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" } }, "string_decoder": { @@ -9498,24 +5727,18 @@ } }, "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, "requires": { - "ansi-regex": "^4.1.0" + "ansi-regex": "^5.0.1" } }, "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true }, "strip-final-newline": { @@ -9525,57 +5748,22 @@ "dev": true }, "strip-json-comments": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.0.1.tgz", - "integrity": "sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw==", - "dev": true + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" }, "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "requires": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" } }, - "supports-hyperlinks": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz", - "integrity": "sha512-zoE5/e+dnEijk6ASB6/qrK+oYdm2do1hjoLWrqUC/8WEIW1gbxFcKuBof7sW8ArN6e+AYvsE8HBGiVRWL/F5CA==", - "dev": true, - "requires": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "taffydb": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.6.2.tgz", - "integrity": "sha1-fLy2S1oUG2ou/CxdLGe04VCyomg=", + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, "tap": { @@ -9618,6 +5806,43 @@ "typescript": "^3.3.3", "write-file-atomic": "^2.4.2", "yapool": "^1.0.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + }, + "mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "requires": { + "minimist": "^1.2.6" + } + }, + "stack-utils": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.5.tgz", + "integrity": "sha512-KZiTzuV3CnSnSvgMRrARVCj+Ht7rMbauGDK0LdVFRGyenwdylpajAp4Q0i6SX8rEmbTpMMf6ryq2gb8pPq2WgQ==", + "dev": true, + "requires": { + "escape-string-regexp": "^2.0.0" + } + }, + "write-file-atomic": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", + "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" + } + } } }, "tap-mocha-reporter": { @@ -9646,16 +5871,10 @@ "ms": "2.0.0" } }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", "dev": true }, "tap-parser": { @@ -9683,100 +5902,79 @@ } }, "tapable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", - "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", + "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", "dev": true }, - "terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "dev": true, - "requires": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - } - }, "terser": { - "version": "4.3.9", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.3.9.tgz", - "integrity": "sha512-NFGMpHjlzmyOtPL+fDw3G7+6Ueh/sz4mkaUYa4lJCxOPTNzd0Uj0aZJOmsDYoSQyfuVoWDMSWTPU3huyOm2zdA==", + "version": "5.16.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.16.2.tgz", + "integrity": "sha512-JKuM+KvvWVqT7muHVyrwv7FVRPnmHDwF6XwoIxdbF5Witi0vu99RYpxDexpJndXt3jbZZmmWr2/mQa6HvSNdSg==", "dev": true, "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", "commander": "^2.20.0", - "source-map": "~0.6.1", - "source-map-support": "~0.5.12" + "source-map-support": "~0.5.20" }, "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } } } }, "terser-webpack-plugin": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.1.tgz", - "integrity": "sha512-ZXmmfiwtCLfz8WKZyYUuuHf3dMYEjg8NrjHMb0JqHVHVOSkzp3cW2/XG1fP3tRhqEqSzMwzzRQGtAPbs4Cncxg==", + "version": "5.3.6", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz", + "integrity": "sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ==", "dev": true, "requires": { - "cacache": "^12.0.2", - "find-cache-dir": "^2.1.0", - "is-wsl": "^1.1.0", - "schema-utils": "^1.0.0", - "serialize-javascript": "^1.7.0", - "source-map": "^0.6.1", - "terser": "^4.1.2", - "webpack-sources": "^1.4.0", - "worker-farm": "^1.7.0" + "@jridgewell/trace-mapping": "^0.3.14", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.0", + "terser": "^5.14.1" }, "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true + "jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } } } }, "test-exclude": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-5.2.3.tgz", - "integrity": "sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, "requires": { - "glob": "^7.1.3", - "minimatch": "^3.0.4", - "read-pkg-up": "^4.0.0", - "require-main-filename": "^2.0.0" - } - }, - "throat": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", - "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", - "dev": true - }, - "through2": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", - "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", - "dev": true, - "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" - } - }, - "timers-browserify": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.11.tgz", - "integrity": "sha512-60aV6sgJ5YEbzUdn9c8kYGIqOubPoUdqQCul3SBAsRCZ40s6Y5cMcrW4dt3/k/EsbLVJNl9n6Vz3fTc+k2GeKQ==", - "dev": true, - "requires": { - "setimmediate": "^1.0.4" + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" } }, "tmatch": { @@ -9785,28 +5983,40 @@ "integrity": "sha512-Ynn2Gsp+oCvYScQXeV+cCs7citRDilq0qDXA6tuvFwDgiYyyaq7D5vKUlAPezzZR5NDobc/QMeN6e5guOYmvxg==", "dev": true }, - "tmpl": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", - "integrity": "sha1-I2QN17QtAEM5ERQIIOXPRA5SHdE=", - "dev": true + "tmp": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.1.tgz", + "integrity": "sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==", + "requires": { + "rimraf": "^3.0.0" + }, + "dependencies": { + "rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "requires": { + "glob": "^7.1.3" + } + } + } }, - "to-arraybuffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", - "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, "to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", "dev": true }, "to-object-path": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "integrity": "sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg==", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -9815,7 +6025,7 @@ "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -9836,66 +6046,58 @@ } }, "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" + "is-number": "^7.0.0" } }, "tough-cookie": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", - "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", - "dev": true, - "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" - }, - "dependencies": { - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - } - } - }, - "tr46": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.0.2.tgz", - "integrity": "sha512-3n1qG+/5kg+jrbTzwAykB5yRYtQCTqOGKq5U5PE3b0a1/mzo6snDhjGS0zJVJunO0NrT3Dg1MLy5TjWP/UJppg==", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", "dev": true, "requires": { + "psl": "^1.1.28", "punycode": "^2.1.1" } }, "trivial-deferred": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/trivial-deferred/-/trivial-deferred-1.0.1.tgz", - "integrity": "sha1-N21NKdlR1jaKb3oK6FwvTV4GWPM=", + "integrity": "sha512-dagAKX7vaesNNAwOc9Np9C2mJ+7YopF4lk+jE2JML9ta4kZ91Y6UruJNH65bLRYoUROD8EY+Pmi44qQWwXR7sw==", "dev": true }, "ts-node": { - "version": "8.4.1", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.4.1.tgz", - "integrity": "sha512-5LpRN+mTiCs7lI5EtbXmF/HfMeCjzt7DH9CZwtkr6SywStrNQC723wG+aOWFiLNn7zT3kD/RnFqi3ZUfr4l5Qw==", + "version": "8.10.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz", + "integrity": "sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA==", "dev": true, "requires": { "arg": "^4.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", - "source-map-support": "^0.5.6", - "yn": "^3.0.0" + "source-map-support": "^0.5.17", + "yn": "3.1.1" }, "dependencies": { "diff": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.1.tgz", - "integrity": "sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", "dev": true + }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } } } }, @@ -9905,22 +6107,10 @@ "integrity": "sha512-jxyxgKVKa4Bh5dPcO42TJL22lIvfd9LOVJwdovKOnJa4TLLrHxquK+DlGm4rkGmrcur+GRx+x4oW00O2pY/fFw==", "dev": true }, - "tslib": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", - "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", - "dev": true - }, - "tty-browserify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", - "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", - "dev": true - }, "tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", "dev": true, "requires": { "safe-buffer": "^5.0.1" @@ -9929,14 +6119,13 @@ "tweetnacl": { "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", "dev": true }, "type-check": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", "requires": { "prelude-ls": "~1.1.2" } @@ -9948,68 +6137,36 @@ "dev": true }, "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "requires": { - "is-typedarray": "^1.0.0" - } - }, "typescript": { - "version": "3.6.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.4.tgz", - "integrity": "sha512-unoCll1+l+YK4i4F8f22TaNVPRHcD9PA3yCuZ8g5e0qGqlVlJ/8FSateOLLSagn+Yg5+ZwuPkL8LFUc0Jcvksg==", + "version": "3.9.10", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", + "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", "dev": true }, "uc.micro": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", - "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", - "dev": true + "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==" }, "uglify-js": { - "version": "3.6.6", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.6.tgz", - "integrity": "sha512-q3Zusqd028P8MdbarqL0I1snTZ7+IbIWiKUXVZyXMVdOSxOG2FFqLXyGlgYSqYu46SR7tR3Sk0xqN1VtvxGWnQ==", - "dev": true, - "optional": true, - "requires": { - "commander": "~2.20.3", - "source-map": "~0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } - } + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==" }, "underscore": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.9.1.tgz", - "integrity": "sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==", - "dev": true + "version": "1.13.6", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", + "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==" }, "unicode-length": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/unicode-length/-/unicode-length-1.0.3.tgz", - "integrity": "sha1-Wtp6f+1RhBpBijKM8UlHisg1irs=", + "integrity": "sha512-rZKNhIqioUp7H49afr26tivLDCvUSqOXwmwEEnsCwnPX67S1CYbOL45Y5IP3K/XHN73/lg21HlrB8SNlYXKQTg==", "dev": true, "requires": { "punycode": "^1.3.2", @@ -10019,19 +6176,19 @@ "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", "dev": true }, "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", "dev": true }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==", "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -10051,28 +6208,10 @@ "set-value": "^2.0.1" } }, - "unique-filename": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", - "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", - "dev": true, - "requires": { - "unique-slug": "^2.0.0" - } - }, - "unique-slug": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", - "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4" - } - }, "unset-value": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "integrity": "sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ==", "dev": true, "requires": { "has-value": "^0.3.1", @@ -10082,7 +6221,7 @@ "has-value": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "integrity": "sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q==", "dev": true, "requires": { "get-value": "^2.0.3", @@ -10093,7 +6232,7 @@ "isobject": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "integrity": "sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA==", "dev": true, "requires": { "isarray": "1.0.0" @@ -10104,21 +6243,25 @@ "has-values": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "integrity": "sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ==", "dev": true } } }, - "upath": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/upath/-/upath-1.2.0.tgz", - "integrity": "sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg==", - "dev": true + "update-browserslist-db": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", + "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "dev": true, + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } }, "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, "requires": { "punycode": "^2.1.0" @@ -10127,82 +6270,47 @@ "urix": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "integrity": "sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg==", "dev": true }, - "url": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", - "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", - "dev": true, - "requires": { - "punycode": "1.3.2", - "querystring": "0.2.0" - }, - "dependencies": { - "punycode": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", - "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", - "dev": true - } - } - }, "use": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", "dev": true }, - "util": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/util/-/util-0.11.1.tgz", - "integrity": "sha512-HShAsny+zS2TZfaXxD9tYj4HQGlBezXZMZuM/S5PKLLoZkShZiGk9o5CzukI1LVHZvjdvZ2Sj1aW/Ndn2NB/HQ==", - "dev": true, - "requires": { - "inherits": "2.0.3" - }, - "dependencies": { - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true - } - } - }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, "uuid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz", - "integrity": "sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==" + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz", + "integrity": "sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==" }, "v8-compile-cache": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.0.3.tgz", - "integrity": "sha512-CNmdbwQMBjwr9Gsmohvm0pbL954tJrNzf6gWL3K+QMQf00PF7ERGrEiLgjuU3mKreLC2MeGhUsNV9ybTbLgd3w==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", + "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", "dev": true }, "v8-to-istanbul": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-5.0.1.tgz", - "integrity": "sha512-mbDNjuDajqYe3TXFk5qxcQy8L1msXNE37WTlLoqqpBfRsimbNcrlhQlDPntmECEcUvdC+AQ8CyMMf6EUx1r74Q==", + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.0.1.tgz", + "integrity": "sha512-74Y4LqY74kLE6IFyIjPtkSTWzUZmj8tdHT9Ii/26dvQ6K9Dl2NbEfj0XgU2sHCtKgt5VupqhlO/5aWuqS+IY1w==", "dev": true, "requires": { + "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" + "convert-source-map": "^1.6.0" }, "dependencies": { - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", "dev": true } } @@ -10220,7 +6328,7 @@ "verror": { "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", "dev": true, "requires": { "assert-plus": "^1.0.0", @@ -10228,106 +6336,139 @@ "extsprintf": "^1.2.0" } }, - "vm-browserify": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.0.tgz", - "integrity": "sha512-iq+S7vZJE60yejDYM0ek6zg308+UZsdtPExWP9VZoCFCz1zkJoXFnAX7aZfd/ZwrkidzdUZL0C/ryW+JwAiIGw==", - "dev": true - }, - "w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "dev": true, - "requires": { - "browser-process-hrtime": "^1.0.0" - } - }, - "w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dev": true, - "requires": { - "xml-name-validator": "^3.0.0" - } - }, "walker": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.7.tgz", - "integrity": "sha1-L3+bj9ENZ3JisYqITijRlhjgKPs=", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, "requires": { - "makeerror": "1.0.x" + "makeerror": "1.0.12" } }, "watchpack": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", - "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", + "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==", "dev": true, "requires": { - "chokidar": "^2.0.2", - "graceful-fs": "^4.1.2", - "neo-async": "^2.5.0" + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" } }, - "webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true - }, "webpack": { - "version": "4.41.2", - "resolved": "https://registry.npmjs.org/webpack/-/webpack-4.41.2.tgz", - "integrity": "sha512-Zhw69edTGfbz9/8JJoyRQ/pq8FYUoY0diOXqW0T6yhgdhCv6wr0hra5DwwWexNRns2Z2+gsnrNcbe9hbGBgk/A==", + "version": "5.75.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.75.0.tgz", + "integrity": "sha512-piaIaoVJlqMsPtX/+3KTTO6jfvrSYgauFVdt8cr9LTHKmcq/AMd4mhzsiP7ZF/PGRNPGA8336jldh9l2Kt2ogQ==", "dev": true, "requires": { - "@webassemblyjs/ast": "1.8.5", - "@webassemblyjs/helper-module-context": "1.8.5", - "@webassemblyjs/wasm-edit": "1.8.5", - "@webassemblyjs/wasm-parser": "1.8.5", - "acorn": "^6.2.1", - "ajv": "^6.10.2", - "ajv-keywords": "^3.4.1", + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^0.0.51", + "@webassemblyjs/ast": "1.11.1", + "@webassemblyjs/wasm-edit": "1.11.1", + "@webassemblyjs/wasm-parser": "1.11.1", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", "chrome-trace-event": "^1.0.2", - "enhanced-resolve": "^4.1.0", - "eslint-scope": "^4.0.3", - "json-parse-better-errors": "^1.0.2", - "loader-runner": "^2.4.0", - "loader-utils": "^1.2.3", - "memory-fs": "^0.4.1", - "micromatch": "^3.1.10", - "mkdirp": "^0.5.1", - "neo-async": "^2.6.1", - "node-libs-browser": "^2.2.1", - "schema-utils": "^1.0.0", - "tapable": "^1.1.3", - "terser-webpack-plugin": "^1.4.1", - "watchpack": "^1.6.0", - "webpack-sources": "^1.4.1" + "enhanced-resolve": "^5.10.0", + "es-module-lexer": "^0.9.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.0", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.1.3", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" } }, "webpack-cli": { - "version": "3.3.10", - "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.10.tgz", - "integrity": "sha512-u1dgND9+MXaEt74sJR4PR7qkPxXUSQ0RXYq8x1L6Jg1MYVEmGPrH6Ah6C4arD4r0J1P5HKjRqpab36k0eIzPqg==", + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/webpack-cli/-/webpack-cli-3.3.12.tgz", + "integrity": "sha512-NVWBaz9k839ZH/sinurM+HcDvJOTXwSjYp1ku+5XKeOC03z8v5QitnK/x+lAxGXFyhdayoIf/GOpv85z3/xPag==", "dev": true, "requires": { - "chalk": "2.4.2", - "cross-spawn": "6.0.5", - "enhanced-resolve": "4.1.0", - "findup-sync": "3.0.0", - "global-modules": "2.0.0", - "import-local": "2.0.0", - "interpret": "1.2.0", - "loader-utils": "1.2.3", - "supports-color": "6.1.0", - "v8-compile-cache": "2.0.3", - "yargs": "13.2.4" + "chalk": "^2.4.2", + "cross-spawn": "^6.0.5", + "enhanced-resolve": "^4.1.1", + "findup-sync": "^3.0.0", + "global-modules": "^2.0.0", + "import-local": "^2.0.0", + "interpret": "^1.4.0", + "loader-utils": "^1.4.0", + "supports-color": "^6.1.0", + "v8-compile-cache": "^2.1.1", + "yargs": "^13.3.2" }, "dependencies": { + "ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "dev": true + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } + } + } + }, + "cliui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz", + "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", + "dev": true, + "requires": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + } + }, + "color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, "cross-spawn": { "version": "6.0.5", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", @@ -10341,17 +6482,150 @@ "which": "^1.2.9" } }, + "emoji-regex": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", + "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", + "dev": true + }, "enhanced-resolve": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.1.0.tgz", - "integrity": "sha512-F/7vkyTtyc/llOIn8oWclcB25KdRaiPBpZYDgJHgh/UHtpgT2p2eldQgtQnLtUvfMKPKxbRaQM/hHkvLHt1Vng==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-4.5.0.tgz", + "integrity": "sha512-Nv9m36S/vxpsI+Hc4/ZGRs0n9mXqSWGGq49zxb/cJfPAQMbUtttJAlNPS4AQzaBdw/pKskw5bMbekT/Y7W/Wlg==", "dev": true, "requires": { "graceful-fs": "^4.1.2", - "memory-fs": "^0.4.0", + "memory-fs": "^0.5.0", "tapable": "^1.0.0" } }, + "find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "dev": true, + "requires": { + "locate-path": "^3.0.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true + }, + "import-local": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-2.0.0.tgz", + "integrity": "sha512-b6s04m3O+s3CGSbqDIyP4R6aAwAeYlVq9+WUWep6iHa8ETRf9yei1U48C5MmfJmV9AiLYYBKPMq/W+/WRpQmCQ==", + "dev": true, + "requires": { + "pkg-dir": "^3.0.0", + "resolve-cwd": "^2.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "dev": true + }, + "locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "dev": true, + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "dev": true, + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", + "dev": true + }, + "pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "dev": true, + "requires": { + "find-up": "^3.0.0" + } + }, + "resolve-cwd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", + "integrity": "sha512-ccu8zQTrzVr954472aUVPLEcB3YpKSYR3cg/3lo1okzobPBM+1INXBbBZlDbnI/hbEocnf8j0QVo43hQKrbchg==", + "dev": true, + "requires": { + "resolve-from": "^3.0.0" + } + }, + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==", + "dev": true + }, + "semver": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", + "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", + "dev": true, + "requires": { + "shebang-regex": "^1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "dev": true + }, + "string-width": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", + "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", + "dev": true, + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dev": true, + "requires": { + "ansi-regex": "^4.1.0" + } + }, "supports-color": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz", @@ -10361,75 +6635,78 @@ "has-flag": "^3.0.0" } }, + "tapable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-1.1.3.tgz", + "integrity": "sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==", + "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "wrap-ansi": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", + "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + } + }, + "y18n": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", + "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", + "dev": true + }, "yargs": { - "version": "13.2.4", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.4.tgz", - "integrity": "sha512-HG/DWAJa1PAnHT9JAhNa8AbAv3FPaiLzioSjCcmuXXhP8MlpHO5vwls4g4j6n30Z74GVQj8Xa62dWVx1QCGklg==", + "version": "13.3.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.2.tgz", + "integrity": "sha512-AX3Zw5iPruN5ie6xGRIDgqkT+ZhnRlZMLMHAs8tg7nRruy2Nb+i5o9bwghAogtM08q1dpr2LVoS8KSTMYpWXUw==", "dev": true, "requires": { "cliui": "^5.0.0", "find-up": "^3.0.0", "get-caller-file": "^2.0.1", - "os-locale": "^3.1.0", "require-directory": "^2.1.1", "require-main-filename": "^2.0.0", "set-blocking": "^2.0.0", "string-width": "^3.0.0", "which-module": "^2.0.0", "y18n": "^4.0.0", - "yargs-parser": "^13.1.0" + "yargs-parser": "^13.1.2" + } + }, + "yargs-parser": { + "version": "13.1.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.2.tgz", + "integrity": "sha512-3lbsNRf/j+A4QuSZfDRA7HRSfWrzO0YjqTJd5kjAq37Zep1CEgaYmrH9Q3GwPiB9cHyd1Y1UwggGhJGoxipbzg==", + "dev": true, + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" } } } }, "webpack-sources": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", - "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", - "dev": true, - "requires": { - "source-list-map": "^2.0.0", - "source-map": "~0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "requires": { - "iconv-lite": "0.4.24" - } - }, - "whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.2.3.tgz", + "integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==", "dev": true }, - "whatwg-url": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.2.2.tgz", - "integrity": "sha512-PcVnO6NiewhkmzV0qn7A+UZ9Xx4maNTI+O+TShmfE4pqjoCMwUMjkvoNhNHPTvgR7QH9Xt3R13iHuWy2sToFxQ==", - "dev": true, - "requires": { - "lodash.sortby": "^4.7.0", - "tr46": "^2.0.2", - "webidl-conversions": "^6.1.0" - } - }, "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, "requires": { "isexe": "^2.0.0" @@ -10438,139 +6715,95 @@ "which-module": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "integrity": "sha512-B+enWhmw6cjfVC7kS8Pj9pCrKSc5txArRyaYGe088shv/FGWH+0Rjx/xPgtsWfsUtS27FkP697E4DDhgrgoc0Q==", "dev": true }, "word-wrap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true - }, - "wordwrap": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", - "dev": true - }, - "worker-farm": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.7.0.tgz", - "integrity": "sha512-rvw3QTZc8lAxyVrqcSGVm5yP/IJ2UcB3U0graE3LCFoZ0Yn2x4EoVSqJKdB/T5M+FLcRPjz4TDacRf3OCfNUzw==", - "dev": true, - "requires": { - "errno": "~0.1.7" - } + "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==" }, "wrap-ansi": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz", - "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" } }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "write-file-atomic": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", - "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.0.tgz", + "integrity": "sha512-R7NYMnHSlV42K54lwY9lvW6MnSm1HSJqZL3xiSgi9E7//FYaI74r2G0rd+/X6VAMkHEdzxQaU5HUOXWUz5kA/w==", "dev": true, "requires": { - "graceful-fs": "^4.1.11", "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" + "signal-exit": "^3.0.7" } }, - "ws": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz", - "integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==", - "dev": true - }, - "xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, "xmlcreate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.1.tgz", - "integrity": "sha512-MjGsXhKG8YjTKrDCXseFo3ClbMGvUD4en29H2Cev1dv4P/chlpw6KdYmlCWDkhosBVKRDjM836+3e3pm1cBNJA==", - "dev": true - }, - "xtend": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "dev": true + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", + "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==" }, "y18n": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", - "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true }, "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true }, "yapool": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/yapool/-/yapool-1.0.0.tgz", - "integrity": "sha1-9pPymjFbUNmp2iZGp6ZkXJaYW2o=", + "integrity": "sha512-RONBZndo8Lo8pKPfORRxr2DIk2NZKIml654o4kaIu7RXVxQCKsAN6AqrcoZsI3h+2H5YO2mD/04Wy4LbAgd+Pg==", "dev": true }, "yargs": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.0.tgz", - "integrity": "sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA==", + "version": "17.6.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", + "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", "dev": true, "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.1" + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" } }, "yargs-parser": { - "version": "13.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz", - "integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==", - "dev": true, - "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - } + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true }, "yn": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true } } } diff --git a/package.json b/package.json index 3ee85c1..1dc2fee 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,18 @@ { "name": "node-eventstore-client", - "version": "0.2.17", + "version": "21.10.0", "description": "A port of the EventStore .Net ClientAPI to Node.js", "main": "index.js", "types": "index.d.ts", "engines": { - "node": ">=5.10" + "node": ">=14", + "npm": ">=6" }, "engineStrict": true, "scripts": { "clean": "rm -f lib/dist.js", "prebuild": "npm run clean", - "build": "webpack -o ./lib/dist.js", + "build": "webpack", "pretest": "npm run build", "test": "nodeunit", "test-debug": "TESTS_VERBOSE_LOGGING=1 nodeunit", @@ -23,10 +24,10 @@ "compose:cluster:start": "docker-compose -f docker-compose-cluster.yaml up --build -d", "compose:single:stop": "docker-compose -f docker-compose-single.yaml down -v --remove-orphans", "compose:cluster:stop": "docker-compose -f docker-compose-cluster.yaml down -v --remove-orphans", - "compose:wait": "while [[ \"$(curl -s -o /dev/null -w ''%{http_code}'' localhost:2113/ping)\" != \"200\" ]]; do sleep 5; done", - "compose:single:test": "docker-compose -f docker-compose-single.yaml exec nodejs bash -c \"npm i && npm run build && EVENTSTORE_CONNECTION_TYPE=tcp EVENTSTORE_HOST=192.168.33.10 npm run test-debug\"", - "compose:cluster:test": "docker-compose -f docker-compose-cluster.yaml exec nodejs bash -c \"npm i && npm run build && EVENTSTORE_CONNECTION_TYPE=gossip EVENTSTORE_HOST=192.168.33.10 EVENTSTORE_HOST_1=192.168.33.10 EVENTSTORE_HOST_2=192.168.33.11 EVENTSTORE_HOST_3=192.168.33.12 npm run test-debug\"", - "compose:gossip:test": "docker-compose -f docker-compose-cluster.yaml exec nodejs bash -c \"npm i && npm run build && EVENTSTORE_CONNECTION_TYPE=dns EVENTSTORE_HOST=192.168.33.10 npm run test-debug\"", + "compose:wait": "while [ \"$(curl -s -o /dev/null -w ''%{http_code}'' -k https://localhost:2113/ping)\" != \"200\" ]; do sleep 5; done", + "compose:single:test": "docker-compose -f docker-compose-single.yaml exec nodejs bash -c \"EVENTSTORE_CONNECTION_TYPE=tcp EVENTSTORE_HOST=192.168.33.10 ./build-and-test.sh\"", + "compose:gossip:test": "docker-compose -f docker-compose-cluster.yaml exec nodejs bash -c \"EVENTSTORE_CONNECTION_TYPE=gossip EVENTSTORE_HOST=192.168.33.10 EVENTSTORE_HOST_1=192.168.33.10 EVENTSTORE_HOST_2=192.168.33.11 EVENTSTORE_HOST_3=192.168.33.12 ./build-and-test.sh\"", + "compose:cluster:test": "docker-compose -f docker-compose-cluster.yaml exec nodejs bash -c \"EVENTSTORE_CONNECTION_TYPE=dns EVENTSTORE_HOST=cluster.tests.node-eventstore-client.local ./build-and-test.sh\"", "prepublishOnly": "npm run build && npm run gendocs", "gendocs": "rm -rf docs && jsdoc src -r -d docs" }, @@ -58,18 +59,18 @@ }, "homepage": "https://github.com/nicdex/node-eventstore-client#readme", "dependencies": { - "@types/long": "^3.0.32", - "@types/node": ">=5.10", - "long": "^3.2.0", - "protobufjs": "^6.8.8", + "@types/node": ">=14", + "long": "^5.2.0", + "protobufjs": "^7.1.2", + "protobufjs-cli": "^1.0.2", "strict-event-emitter-types": "^1.2.0", - "uuid": "^3.0.1" + "uuid": "^9.0.0" }, "devDependencies": { - "jest": "^26.4.2", - "jsdoc": "^3.6.3", + "jest": "^29.4.1", + "jsdoc": "^4.0.0", "nodeunit": "^0.11.3", - "webpack": "^4.41.2", + "webpack": "^5.75.0", "webpack-cli": "^3.3.10" } } diff --git a/src/clientOperations/appendToStreamOperation.js b/src/clientOperations/appendToStreamOperation.js index 3e556b4..6ea0b62 100644 --- a/src/clientOperations/appendToStreamOperation.js +++ b/src/clientOperations/appendToStreamOperation.js @@ -37,7 +37,7 @@ AppendToStreamOperation.prototype._createRequestDto = function() { eventStreamId: this._stream, expectedVersion: this._expectedVersion, events: dtos, - requireMaster: this._requireMaster}); + requireLeader: this._requireMaster}); }; AppendToStreamOperation.prototype._inspectResponse = function(response) { @@ -79,4 +79,4 @@ AppendToStreamOperation.prototype.toString = function() { return util.format("Stream: %s, ExpectedVersion: %d", this._stream, this._expectedVersion); }; -module.exports = AppendToStreamOperation; \ No newline at end of file +module.exports = AppendToStreamOperation; diff --git a/src/clientOperations/commitTransactionOperation.js b/src/clientOperations/commitTransactionOperation.js index 56f0d06..b3fc59e 100644 --- a/src/clientOperations/commitTransactionOperation.js +++ b/src/clientOperations/commitTransactionOperation.js @@ -24,7 +24,7 @@ util.inherits(CommitTransactionOperation, OperationBase); CommitTransactionOperation.prototype._createRequestDto = function() { return new ClientMessage.TransactionCommit({ transactionId: this._transactionId, - requireMaster: this._requireMaster + requireLeader: this._requireMaster }); }; @@ -66,4 +66,4 @@ CommitTransactionOperation.prototype.toString = function() { return util.format("TransactionId: %s", this._transactionId); }; -module.exports = CommitTransactionOperation; \ No newline at end of file +module.exports = CommitTransactionOperation; diff --git a/src/clientOperations/deleteStreamOperation.js b/src/clientOperations/deleteStreamOperation.js index b499f07..7a2bc26 100644 --- a/src/clientOperations/deleteStreamOperation.js +++ b/src/clientOperations/deleteStreamOperation.js @@ -27,7 +27,7 @@ DeleteStreamOperation.prototype._createRequestDto = function() { return new ClientMessage.DeleteStream({ eventStreamId: this._stream, expectedVersion: this._expectedVersion, - requireMaster: this._requireMaster, + requireLeader: this._requireMaster, hardDelete: this._hardDelete }); }; @@ -69,4 +69,4 @@ DeleteStreamOperation.prototype.toString = function() { return util.format("Stream: %s, ExpectedVersion: %s.", this._stream, this._expectedVersion); }; -module.exports = DeleteStreamOperation; \ No newline at end of file +module.exports = DeleteStreamOperation; diff --git a/src/clientOperations/operationBase.js b/src/clientOperations/operationBase.js index bdbfccc..8e6b86d 100644 --- a/src/clientOperations/operationBase.js +++ b/src/clientOperations/operationBase.js @@ -117,9 +117,9 @@ OperationBase.prototype._inspectNotHandled = function(pkg) case ClientMessage.NotHandled.NotHandledReason.TooBusy: return new InspectionResult(InspectionDecision.Retry, "NotHandled - TooBusy"); - case ClientMessage.NotHandled.NotHandledReason.NotMaster: - var masterInfo = ClientMessage.NotHandled.MasterInfo.decode(message.additionalInfo); - return new InspectionResult(InspectionDecision.Reconnect, "NotHandled - NotMaster", + case ClientMessage.NotHandled.NotHandledReason.NotLeader: + var masterInfo = ClientMessage.NotHandled.LeaderInfo.decode(message.additionalInfo); + return new InspectionResult(InspectionDecision.Reconnect, "NotHandled - NotLeader", {host: masterInfo.externalTcpAddress, port: masterInfo.externalTcpPort}, {host: masterInfo.externalSecureTcpAddress, port: masterInfo.externalSecureTcpPort}); @@ -145,4 +145,4 @@ OperationBase.prototype._inspectUnexpectedCommand = function(pkg, expectedComman }; -module.exports = OperationBase; \ No newline at end of file +module.exports = OperationBase; diff --git a/src/clientOperations/readAllEventsBackwardOperation.js b/src/clientOperations/readAllEventsBackwardOperation.js index 6a1620a..709b21a 100644 --- a/src/clientOperations/readAllEventsBackwardOperation.js +++ b/src/clientOperations/readAllEventsBackwardOperation.js @@ -29,7 +29,7 @@ ReadAllEventsBackwardOperation.prototype._createRequestDto = function() { preparePosition: this._position.preparePosition, maxCount: this._maxCount, resolveLinkTos: this._resolveLinkTos, - requireMaster: this._requireMaster + requireLeader: this._requireMaster }); }; @@ -64,4 +64,4 @@ ReadAllEventsBackwardOperation.prototype.toString = function() { this._position, this._maxCount, this._resolveLinkTos, this._requireMaster); }; -module.exports = ReadAllEventsBackwardOperation; \ No newline at end of file +module.exports = ReadAllEventsBackwardOperation; diff --git a/src/clientOperations/readAllEventsForwardOperation.js b/src/clientOperations/readAllEventsForwardOperation.js index f95854a..d46bdf8 100644 --- a/src/clientOperations/readAllEventsForwardOperation.js +++ b/src/clientOperations/readAllEventsForwardOperation.js @@ -29,7 +29,7 @@ ReadAllEventsForwardOperation.prototype._createRequestDto = function() { preparePosition: this._position.preparePosition, maxCount: this._maxCount, resolveLinkTos: this._resolveLinkTos, - requireMaster: this._requireMaster + requireLeader: this._requireMaster }); }; @@ -64,4 +64,4 @@ ReadAllEventsForwardOperation.prototype.toString = function() { this._position, this._maxCount, this._resolveLinkTos, this._requireMaster); }; -module.exports = ReadAllEventsForwardOperation; \ No newline at end of file +module.exports = ReadAllEventsForwardOperation; diff --git a/src/clientOperations/readEventOperation.js b/src/clientOperations/readEventOperation.js index f4f2776..dfaa097 100644 --- a/src/clientOperations/readEventOperation.js +++ b/src/clientOperations/readEventOperation.js @@ -25,7 +25,7 @@ ReadEventOperation.prototype._createRequestDto = function() { eventStreamId: this._stream, eventNumber: this._eventNumber, resolveLinkTos: this._resolveLinkTos, - requireMaster: this._requireMaster + requireLeader: this._requireMaster }); }; @@ -81,4 +81,4 @@ ReadEventOperation.prototype.toString = function() { this._stream, this._eventNumber, this._resolveLinkTos, this._requireMaster); }; -module.exports = ReadEventOperation; \ No newline at end of file +module.exports = ReadEventOperation; diff --git a/src/clientOperations/readStreamEventsBackwardOperation.js b/src/clientOperations/readStreamEventsBackwardOperation.js index 2d75808..3aa9d63 100644 --- a/src/clientOperations/readStreamEventsBackwardOperation.js +++ b/src/clientOperations/readStreamEventsBackwardOperation.js @@ -31,7 +31,7 @@ ReadStreamEventsBackwardOperation.prototype._createRequestDto = function() { fromEventNumber: this._fromEventNumber, maxCount: this._maxCount, resolveLinkTos: this._resolveLinkTos, - requireMaster: this._requireMaster + requireLeader: this._requireMaster }); }; @@ -76,4 +76,4 @@ ReadStreamEventsBackwardOperation.prototype.toString = function() { this._stream, this._fromEventNumber, this._maxCount, this._resolveLinkTos, this._requireMaster); }; -module.exports = ReadStreamEventsBackwardOperation; \ No newline at end of file +module.exports = ReadStreamEventsBackwardOperation; diff --git a/src/clientOperations/readStreamEventsForwardOperation.js b/src/clientOperations/readStreamEventsForwardOperation.js index 364c9a2..f4cd925 100644 --- a/src/clientOperations/readStreamEventsForwardOperation.js +++ b/src/clientOperations/readStreamEventsForwardOperation.js @@ -31,7 +31,7 @@ ReadStreamEventsForwardOperation.prototype._createRequestDto = function() { fromEventNumber: this._fromEventNumber, maxCount: this._maxCount, resolveLinkTos: this._resolveLinkTos, - requireMaster: this._requireMaster + requireLeader: this._requireMaster }); }; @@ -76,4 +76,4 @@ ReadStreamEventsForwardOperation.prototype.toString = function() { this._stream, this._fromEventNumber, this._maxCount, this._resolveLinkTos, this._requireMaster); }; -module.exports = ReadStreamEventsForwardOperation; \ No newline at end of file +module.exports = ReadStreamEventsForwardOperation; diff --git a/src/clientOperations/startTransactionOperation.js b/src/clientOperations/startTransactionOperation.js index e86e7f7..389941c 100644 --- a/src/clientOperations/startTransactionOperation.js +++ b/src/clientOperations/startTransactionOperation.js @@ -25,7 +25,7 @@ StartTransactionOperation.prototype._createRequestDto = function() { return new ClientMessage.TransactionStart({ eventStreamId: this._stream, expectedVersion: this._expectedVersion, - requireMaster: this._requireMaster + requireLeader: this._requireMaster }); }; @@ -66,4 +66,4 @@ StartTransactionOperation.prototype.toString = function() { return util.format("Stream: %s, ExpectedVersion: %d", this._stream, this._expectedVersion); }; -module.exports = StartTransactionOperation; \ No newline at end of file +module.exports = StartTransactionOperation; diff --git a/src/clientOperations/subscriptionOperation.js b/src/clientOperations/subscriptionOperation.js index ebb8023..07e5c84 100644 --- a/src/clientOperations/subscriptionOperation.js +++ b/src/clientOperations/subscriptionOperation.js @@ -137,9 +137,9 @@ SubscriptionOperation.prototype.inspectPackage = function(pkg) { case ClientMessage.NotHandled.NotHandledReason.TooBusy: return new InspectionResult(InspectionDecision.Retry, "NotHandled - TooBusy"); - case ClientMessage.NotHandled.NotHandledReason.NotMaster: - var masterInfo = ClientMessage.NotHandled.MasterInfo.decode(message.additionalInfo); - return new InspectionResult(InspectionDecision.Reconnect, "NotHandled - NotMaster", + case ClientMessage.NotHandled.NotHandledReason.NotLeader: + var masterInfo = ClientMessage.NotHandled.LeaderInfo.decode(message.additionalInfo); + return new InspectionResult(InspectionDecision.Reconnect, "NotHandled - NotLeader", {host: masterInfo.externalTcpAddress, port: masterInfo.externalTcpPort}, {host: masterInfo.externalSecureTcpAddress, port: masterInfo.externalSecureTcpPort}); @@ -279,4 +279,4 @@ SubscriptionOperation.prototype.toString = function() { }; -module.exports = SubscriptionOperation; \ No newline at end of file +module.exports = SubscriptionOperation; diff --git a/src/clientOperations/transactionalWriteOperation.js b/src/clientOperations/transactionalWriteOperation.js index 952e0dc..d81cf84 100644 --- a/src/clientOperations/transactionalWriteOperation.js +++ b/src/clientOperations/transactionalWriteOperation.js @@ -32,7 +32,7 @@ TransactionalWriteOperation.prototype._createRequestDto = function() { return new ClientMessage.TransactionWrite({ transactionId: this._transactionId, events: dtos, - requireMaster: this._requireMaster + requireLeader: this._requireMaster }); }; @@ -64,4 +64,4 @@ TransactionalWriteOperation.prototype.toString = function() { return util.format("TransactionId: %s", this._transactionId); }; -module.exports = TransactionalWriteOperation; \ No newline at end of file +module.exports = TransactionalWriteOperation; diff --git a/src/core/cluster/clusterDiscoverer.js b/src/core/cluster/clusterDiscoverer.js index 281f0ae..24f876a 100644 --- a/src/core/cluster/clusterDiscoverer.js +++ b/src/core/cluster/clusterDiscoverer.js @@ -78,7 +78,7 @@ ClusterDiscoverer.prototype._getGossipCandidates = async function (managerExtern this._settings.seeds && this._settings.seeds.length > 0 ? this._settings.seeds : (await this._resolveDns(this._settings.clusterDns)).map( - (address) => new GossipSeed({ host: address, port: managerExternalHttpPort }, undefined) + (address) => new GossipSeed({ host: address, port: managerExternalHttpPort }, address, this._settings.clusterDns) ); return shuffle(gossipSeeds); }; @@ -109,12 +109,14 @@ ClusterDiscoverer.prototype._resolveDns = async function (clusterDns) { * @returns {Promise.} */ ClusterDiscoverer.prototype._clusterInfo = async function (candidate, timeout) { + var self = this; return new Promise((resolve, reject) => { const options = { host: candidate.endPoint.host, port: candidate.endPoint.port, path: '/gossip?format=json', timeout: timeout, + rejectUnauthorized: self._settings.rejectUnauthorized }; if (candidate.hostHeader) { options.headers = { diff --git a/src/core/cluster/clusterInfo.js b/src/core/cluster/clusterInfo.js index 38c8db5..3979acf 100644 --- a/src/core/cluster/clusterInfo.js +++ b/src/core/cluster/clusterInfo.js @@ -2,16 +2,21 @@ const MemberInfo = require('./memberInfo.js'); const VNodeStates = Object.freeze({ Initializing: 0, - Unknown: 1, - PreReplica: 2, - CatchingUp: 3, - Clone: 4, - Slave: 5, - PreMaster: 6, - Master: 7, - Manager: 8, - ShuttingDown: 9, - Shutdown: 10 + DiscoverLeader: 1, + Unknown: 2, + PreReplica: 3, + CatchingUp: 4, + Clone: 5, + Follower: 6, + PreLeader: 7, + Leader: 8, + Manager: 9, + ShuttingDown: 10, + Shutdown: 11, + ReadOnlyLeaderless: 12, + PreReadOnlyReplica: 13, + ReadOnlyReplica: 14, + ResigningLeader: 15, }); function ClusterInfo(members) { @@ -33,4 +38,4 @@ ClusterInfo.prototype._getBestNode = function () { })[0]; } -module.exports = ClusterInfo; \ No newline at end of file +module.exports = ClusterInfo; diff --git a/src/eventStoreConnection.js b/src/eventStoreConnection.js index 7b2abc6..6a2ef18 100644 --- a/src/eventStoreConnection.js +++ b/src/eventStoreConnection.js @@ -6,6 +6,7 @@ var ensure = require('./common/utils/ensure'); const util = require('util'); const http = require('http'); +const https = require('https'); const dns = require('dns'); const dnsService = { @@ -95,13 +96,14 @@ function createFromClusterDns(connectionSettings, clusterDns, externalGossipPort managerExternalHttpPort: externalGossipPort, maxDiscoverAttempts: mergedSettings.maxDiscoverAttempts, discoverDelay: mergedSettings.discoverDelay, - gossipTimeout: mergedSettings.gossipTimeout + gossipTimeout: mergedSettings.gossipTimeout, + rejectUnauthorized: connectionSettings.useSslConnection ? connectionSettings.validateServer : undefined }; var endPointDiscoverer = new ClusterDiscoverer( mergedSettings.log, clusterSettings, dnsService, - http + connectionSettings.useSslConnection ? https : http ); return new EventStoreNodeConnection(mergedSettings, clusterSettings, endPointDiscoverer, connectionName); } @@ -116,13 +118,14 @@ function createFromGossipSeeds(connectionSettings, gossipSeeds, connectionName) externalGossipPort: 0, maxDiscoverAttempts: mergedSettings.maxDiscoverAttempts, discoverDelay: mergedSettings.discoverDelay, - gossipTimeout: mergedSettings.gossipTimeout + gossipTimeout: mergedSettings.gossipTimeout, + rejectUnauthorized: connectionSettings.useSslConnection ? connectionSettings.validateServer : undefined }; var endPointDiscoverer = new ClusterDiscoverer( mergedSettings.log, clusterSettings, dnsService, - http + connectionSettings.useSslConnection ? https : http ); return new EventStoreNodeConnection(mergedSettings, clusterSettings, endPointDiscoverer, connectionName); } @@ -162,4 +165,4 @@ module.exports.create = function(settings, endPointOrGossipSeeds, connectionName if (typeof endPointOrGossipSeeds === 'object') return createFromTcpEndpoint(settings, endPointOrGossipSeeds, connectionName); if (typeof endPointOrGossipSeeds === 'string') return createFromStringEndpoint(settings, endPointOrGossipSeeds, connectionName); throw new TypeError('endPointOrGossipSeeds must be an object, a string or an array.'); -}; \ No newline at end of file +}; diff --git a/src/messages/messages.js b/src/messages/messages.js index b19fea6..f386ff8 100644 --- a/src/messages/messages.js +++ b/src/messages/messages.js @@ -1,60 +1,57 @@ /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ (function(global, factory) { /* global define, require, module */ - /* CommonJS */if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("../utils/modules")); + /* AMD */ if (typeof define === 'function' && define.amd) + define(["protobufjs/minimal"], factory); -})(this, function($moduleUtil) { + /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) + module.exports = factory(require("protobufjs/minimal"), require("../utils/modules")); + +})(this, function($protobuf, $moduleUtil) { "use strict"; // This fixes bug #91 by giving us an isolate copy of protobufjs library so any tampering with it doesn't affect us - var $moduleName = 'protobufjs/minimal'; - var $id = require.resolve($moduleName); - var $uncached = $moduleUtil.uncache($id); - var $protobuf = require($moduleName); - if ($uncached) { - $moduleUtil.recache($uncached); - } else { - $moduleUtil.uncache($id); - } + var old = $moduleUtil.uncache(require.resolve('protobufjs/minimal')); + $protobuf = require('protobufjs/minimal'); + $moduleUtil.recache(old); // Common aliases var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; - + // Exported root namespace var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); - + $root.EventStore = (function() { - + /** * Namespace EventStore. * @exports EventStore * @namespace */ var EventStore = {}; - + EventStore.Client = (function() { - + /** * Namespace Client. * @memberof EventStore * @namespace */ var Client = {}; - + Client.Messages = (function() { - + /** * Namespace Messages. * @memberof EventStore.Client * @namespace */ var Messages = {}; - + /** * OperationResult enum. * @name EventStore.Client.Messages.OperationResult - * @enum {string} + * @enum {number} * @property {number} Success=0 Success value * @property {number} PrepareTimeout=1 PrepareTimeout value * @property {number} CommitTimeout=2 CommitTimeout value @@ -76,9 +73,9 @@ values[valuesById[7] = "AccessDenied"] = 7; return values; })(); - + Messages.NewEvent = (function() { - + /** * Properties of a NewEvent. * @memberof EventStore.Client.Messages @@ -90,7 +87,7 @@ * @property {Uint8Array} data NewEvent data * @property {Uint8Array|null} [metadata] NewEvent metadata */ - + /** * Constructs a new NewEvent. * @memberof EventStore.Client.Messages @@ -105,7 +102,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * NewEvent eventId. * @member {Uint8Array} eventId @@ -113,7 +110,7 @@ * @instance */ NewEvent.prototype.eventId = $util.newBuffer([]); - + /** * NewEvent eventType. * @member {string} eventType @@ -121,7 +118,7 @@ * @instance */ NewEvent.prototype.eventType = ""; - + /** * NewEvent dataContentType. * @member {number} dataContentType @@ -129,7 +126,7 @@ * @instance */ NewEvent.prototype.dataContentType = 0; - + /** * NewEvent metadataContentType. * @member {number} metadataContentType @@ -137,7 +134,7 @@ * @instance */ NewEvent.prototype.metadataContentType = 0; - + /** * NewEvent data. * @member {Uint8Array} data @@ -145,7 +142,7 @@ * @instance */ NewEvent.prototype.data = $util.newBuffer([]); - + /** * NewEvent metadata. * @member {Uint8Array} metadata @@ -153,7 +150,7 @@ * @instance */ NewEvent.prototype.metadata = $util.newBuffer([]); - + /** * Creates a new NewEvent instance using the specified properties. * @function create @@ -165,7 +162,7 @@ NewEvent.create = function create(properties) { return new NewEvent(properties); }; - + /** * Encodes the specified NewEvent message. Does not implicitly {@link EventStore.Client.Messages.NewEvent.verify|verify} messages. * @function encode @@ -183,11 +180,11 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.dataContentType); writer.uint32(/* id 4, wireType 0 =*/32).int32(message.metadataContentType); writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); - if (message.metadata != null && message.hasOwnProperty("metadata")) + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.metadata); return writer; }; - + /** * Encodes the specified NewEvent message, length delimited. Does not implicitly {@link EventStore.Client.Messages.NewEvent.verify|verify} messages. * @function encodeDelimited @@ -200,7 +197,7 @@ NewEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a NewEvent message from the specified reader or buffer. * @function decode @@ -219,24 +216,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventId = reader.bytes(); - break; - case 2: - message.eventType = reader.string(); - break; - case 3: - message.dataContentType = reader.int32(); - break; - case 4: - message.metadataContentType = reader.int32(); - break; - case 5: - message.data = reader.bytes(); - break; - case 6: - message.metadata = reader.bytes(); - break; + case 1: { + message.eventId = reader.bytes(); + break; + } + case 2: { + message.eventType = reader.string(); + break; + } + case 3: { + message.dataContentType = reader.int32(); + break; + } + case 4: { + message.metadataContentType = reader.int32(); + break; + } + case 5: { + message.data = reader.bytes(); + break; + } + case 6: { + message.metadata = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -254,7 +257,7 @@ throw $util.ProtocolError("missing required 'data'", { instance: message }); return message; }; - + /** * Decodes a NewEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -270,7 +273,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a NewEvent message. * @function verify @@ -297,7 +300,7 @@ return "metadata: buffer expected"; return null; }; - + /** * Creates a NewEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -313,7 +316,7 @@ if (object.eventId != null) if (typeof object.eventId === "string") $util.base64.decode(object.eventId, message.eventId = $util.newBuffer($util.base64.length(object.eventId)), 0); - else if (object.eventId.length) + else if (object.eventId.length >= 0) message.eventId = object.eventId; if (object.eventType != null) message.eventType = String(object.eventType); @@ -324,16 +327,16 @@ if (object.data != null) if (typeof object.data === "string") $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) + else if (object.data.length >= 0) message.data = object.data; if (object.metadata != null) if (typeof object.metadata === "string") $util.base64.decode(object.metadata, message.metadata = $util.newBuffer($util.base64.length(object.metadata)), 0); - else if (object.metadata.length) + else if (object.metadata.length >= 0) message.metadata = object.metadata; return message; }; - + /** * Creates a plain object from a NewEvent message. Also converts values to other types if specified. * @function toObject @@ -387,7 +390,7 @@ object.metadata = options.bytes === String ? $util.base64.encode(message.metadata, 0, message.metadata.length) : options.bytes === Array ? Array.prototype.slice.call(message.metadata) : message.metadata; return object; }; - + /** * Converts this NewEvent to JSON. * @function toJSON @@ -398,28 +401,43 @@ NewEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for NewEvent + * @function getTypeUrl + * @memberof EventStore.Client.Messages.NewEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NewEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.NewEvent"; + }; + return NewEvent; })(); - + Messages.EventRecord = (function() { - + /** * Properties of an EventRecord. * @memberof EventStore.Client.Messages * @interface IEventRecord * @property {string} eventStreamId EventRecord eventStreamId - * @property {number|Long} eventNumber EventRecord eventNumber + * @property {Long} eventNumber EventRecord eventNumber * @property {Uint8Array} eventId EventRecord eventId * @property {string} eventType EventRecord eventType * @property {number} dataContentType EventRecord dataContentType * @property {number} metadataContentType EventRecord metadataContentType * @property {Uint8Array} data EventRecord data * @property {Uint8Array|null} [metadata] EventRecord metadata - * @property {number|Long|null} [created] EventRecord created - * @property {number|Long|null} [createdEpoch] EventRecord createdEpoch + * @property {Long|null} [created] EventRecord created + * @property {Long|null} [createdEpoch] EventRecord createdEpoch */ - + /** * Constructs a new EventRecord. * @memberof EventStore.Client.Messages @@ -434,7 +452,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * EventRecord eventStreamId. * @member {string} eventStreamId @@ -442,15 +460,15 @@ * @instance */ EventRecord.prototype.eventStreamId = ""; - + /** * EventRecord eventNumber. - * @member {number|Long} eventNumber + * @member {Long} eventNumber * @memberof EventStore.Client.Messages.EventRecord * @instance */ EventRecord.prototype.eventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * EventRecord eventId. * @member {Uint8Array} eventId @@ -458,7 +476,7 @@ * @instance */ EventRecord.prototype.eventId = $util.newBuffer([]); - + /** * EventRecord eventType. * @member {string} eventType @@ -466,7 +484,7 @@ * @instance */ EventRecord.prototype.eventType = ""; - + /** * EventRecord dataContentType. * @member {number} dataContentType @@ -474,7 +492,7 @@ * @instance */ EventRecord.prototype.dataContentType = 0; - + /** * EventRecord metadataContentType. * @member {number} metadataContentType @@ -482,7 +500,7 @@ * @instance */ EventRecord.prototype.metadataContentType = 0; - + /** * EventRecord data. * @member {Uint8Array} data @@ -490,7 +508,7 @@ * @instance */ EventRecord.prototype.data = $util.newBuffer([]); - + /** * EventRecord metadata. * @member {Uint8Array} metadata @@ -498,23 +516,23 @@ * @instance */ EventRecord.prototype.metadata = $util.newBuffer([]); - + /** * EventRecord created. - * @member {number|Long} created + * @member {Long} created * @memberof EventStore.Client.Messages.EventRecord * @instance */ EventRecord.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * EventRecord createdEpoch. - * @member {number|Long} createdEpoch + * @member {Long} createdEpoch * @memberof EventStore.Client.Messages.EventRecord * @instance */ EventRecord.prototype.createdEpoch = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * Creates a new EventRecord instance using the specified properties. * @function create @@ -526,7 +544,7 @@ EventRecord.create = function create(properties) { return new EventRecord(properties); }; - + /** * Encodes the specified EventRecord message. Does not implicitly {@link EventStore.Client.Messages.EventRecord.verify|verify} messages. * @function encode @@ -546,15 +564,15 @@ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.dataContentType); writer.uint32(/* id 6, wireType 0 =*/48).int32(message.metadataContentType); writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.data); - if (message.metadata != null && message.hasOwnProperty("metadata")) + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.metadata); - if (message.created != null && message.hasOwnProperty("created")) + if (message.created != null && Object.hasOwnProperty.call(message, "created")) writer.uint32(/* id 9, wireType 0 =*/72).int64(message.created); - if (message.createdEpoch != null && message.hasOwnProperty("createdEpoch")) + if (message.createdEpoch != null && Object.hasOwnProperty.call(message, "createdEpoch")) writer.uint32(/* id 10, wireType 0 =*/80).int64(message.createdEpoch); return writer; }; - + /** * Encodes the specified EventRecord message, length delimited. Does not implicitly {@link EventStore.Client.Messages.EventRecord.verify|verify} messages. * @function encodeDelimited @@ -567,7 +585,7 @@ EventRecord.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes an EventRecord message from the specified reader or buffer. * @function decode @@ -586,36 +604,46 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventStreamId = reader.string(); - break; - case 2: - message.eventNumber = reader.int64(); - break; - case 3: - message.eventId = reader.bytes(); - break; - case 4: - message.eventType = reader.string(); - break; - case 5: - message.dataContentType = reader.int32(); - break; - case 6: - message.metadataContentType = reader.int32(); - break; - case 7: - message.data = reader.bytes(); - break; - case 8: - message.metadata = reader.bytes(); - break; - case 9: - message.created = reader.int64(); - break; - case 10: - message.createdEpoch = reader.int64(); - break; + case 1: { + message.eventStreamId = reader.string(); + break; + } + case 2: { + message.eventNumber = reader.int64(); + break; + } + case 3: { + message.eventId = reader.bytes(); + break; + } + case 4: { + message.eventType = reader.string(); + break; + } + case 5: { + message.dataContentType = reader.int32(); + break; + } + case 6: { + message.metadataContentType = reader.int32(); + break; + } + case 7: { + message.data = reader.bytes(); + break; + } + case 8: { + message.metadata = reader.bytes(); + break; + } + case 9: { + message.created = reader.int64(); + break; + } + case 10: { + message.createdEpoch = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -637,7 +665,7 @@ throw $util.ProtocolError("missing required 'data'", { instance: message }); return message; }; - + /** * Decodes an EventRecord message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -653,7 +681,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies an EventRecord message. * @function verify @@ -690,7 +718,7 @@ return "createdEpoch: integer|Long expected"; return null; }; - + /** * Creates an EventRecord message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -717,7 +745,7 @@ if (object.eventId != null) if (typeof object.eventId === "string") $util.base64.decode(object.eventId, message.eventId = $util.newBuffer($util.base64.length(object.eventId)), 0); - else if (object.eventId.length) + else if (object.eventId.length >= 0) message.eventId = object.eventId; if (object.eventType != null) message.eventType = String(object.eventType); @@ -728,12 +756,12 @@ if (object.data != null) if (typeof object.data === "string") $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length) + else if (object.data.length >= 0) message.data = object.data; if (object.metadata != null) if (typeof object.metadata === "string") $util.base64.decode(object.metadata, message.metadata = $util.newBuffer($util.base64.length(object.metadata)), 0); - else if (object.metadata.length) + else if (object.metadata.length >= 0) message.metadata = object.metadata; if (object.created != null) if ($util.Long) @@ -755,7 +783,7 @@ message.createdEpoch = new $util.LongBits(object.createdEpoch.low >>> 0, object.createdEpoch.high >>> 0).toNumber(); return message; }; - + /** * Creates a plain object from an EventRecord message. Also converts values to other types if specified. * @function toObject @@ -842,7 +870,7 @@ object.createdEpoch = options.longs === String ? $util.Long.prototype.toString.call(message.createdEpoch) : options.longs === Number ? new $util.LongBits(message.createdEpoch.low >>> 0, message.createdEpoch.high >>> 0).toNumber() : message.createdEpoch; return object; }; - + /** * Converts this EventRecord to JSON. * @function toJSON @@ -853,12 +881,27 @@ EventRecord.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for EventRecord + * @function getTypeUrl + * @memberof EventStore.Client.Messages.EventRecord + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EventRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.EventRecord"; + }; + return EventRecord; })(); - + Messages.ResolvedIndexedEvent = (function() { - + /** * Properties of a ResolvedIndexedEvent. * @memberof EventStore.Client.Messages @@ -866,7 +909,7 @@ * @property {EventStore.Client.Messages.IEventRecord|null} [event] ResolvedIndexedEvent event * @property {EventStore.Client.Messages.IEventRecord|null} [link] ResolvedIndexedEvent link */ - + /** * Constructs a new ResolvedIndexedEvent. * @memberof EventStore.Client.Messages @@ -881,7 +924,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * ResolvedIndexedEvent event. * @member {EventStore.Client.Messages.IEventRecord|null|undefined} event @@ -889,7 +932,7 @@ * @instance */ ResolvedIndexedEvent.prototype.event = null; - + /** * ResolvedIndexedEvent link. * @member {EventStore.Client.Messages.IEventRecord|null|undefined} link @@ -897,7 +940,7 @@ * @instance */ ResolvedIndexedEvent.prototype.link = null; - + /** * Creates a new ResolvedIndexedEvent instance using the specified properties. * @function create @@ -909,7 +952,7 @@ ResolvedIndexedEvent.create = function create(properties) { return new ResolvedIndexedEvent(properties); }; - + /** * Encodes the specified ResolvedIndexedEvent message. Does not implicitly {@link EventStore.Client.Messages.ResolvedIndexedEvent.verify|verify} messages. * @function encode @@ -922,13 +965,13 @@ ResolvedIndexedEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && message.hasOwnProperty("event")) + if (message.event != null && Object.hasOwnProperty.call(message, "event")) $root.EventStore.Client.Messages.EventRecord.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.link != null && message.hasOwnProperty("link")) + if (message.link != null && Object.hasOwnProperty.call(message, "link")) $root.EventStore.Client.Messages.EventRecord.encode(message.link, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; - + /** * Encodes the specified ResolvedIndexedEvent message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ResolvedIndexedEvent.verify|verify} messages. * @function encodeDelimited @@ -941,7 +984,7 @@ ResolvedIndexedEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ResolvedIndexedEvent message from the specified reader or buffer. * @function decode @@ -960,12 +1003,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.event = $root.EventStore.Client.Messages.EventRecord.decode(reader, reader.uint32()); - break; - case 2: - message.link = $root.EventStore.Client.Messages.EventRecord.decode(reader, reader.uint32()); - break; + case 1: { + message.event = $root.EventStore.Client.Messages.EventRecord.decode(reader, reader.uint32()); + break; + } + case 2: { + message.link = $root.EventStore.Client.Messages.EventRecord.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -973,7 +1018,7 @@ } return message; }; - + /** * Decodes a ResolvedIndexedEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -989,7 +1034,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ResolvedIndexedEvent message. * @function verify @@ -1013,7 +1058,7 @@ } return null; }; - + /** * Creates a ResolvedIndexedEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -1038,7 +1083,7 @@ } return message; }; - + /** * Creates a plain object from a ResolvedIndexedEvent message. Also converts values to other types if specified. * @function toObject @@ -1062,7 +1107,7 @@ object.link = $root.EventStore.Client.Messages.EventRecord.toObject(message.link, options); return object; }; - + /** * Converts this ResolvedIndexedEvent to JSON. * @function toJSON @@ -1073,22 +1118,37 @@ ResolvedIndexedEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ResolvedIndexedEvent + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ResolvedIndexedEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResolvedIndexedEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ResolvedIndexedEvent"; + }; + return ResolvedIndexedEvent; })(); - + Messages.ResolvedEvent = (function() { - + /** * Properties of a ResolvedEvent. * @memberof EventStore.Client.Messages * @interface IResolvedEvent * @property {EventStore.Client.Messages.IEventRecord|null} [event] ResolvedEvent event * @property {EventStore.Client.Messages.IEventRecord|null} [link] ResolvedEvent link - * @property {number|Long} commitPosition ResolvedEvent commitPosition - * @property {number|Long} preparePosition ResolvedEvent preparePosition + * @property {Long} commitPosition ResolvedEvent commitPosition + * @property {Long} preparePosition ResolvedEvent preparePosition */ - + /** * Constructs a new ResolvedEvent. * @memberof EventStore.Client.Messages @@ -1103,7 +1163,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * ResolvedEvent event. * @member {EventStore.Client.Messages.IEventRecord|null|undefined} event @@ -1111,7 +1171,7 @@ * @instance */ ResolvedEvent.prototype.event = null; - + /** * ResolvedEvent link. * @member {EventStore.Client.Messages.IEventRecord|null|undefined} link @@ -1119,23 +1179,23 @@ * @instance */ ResolvedEvent.prototype.link = null; - + /** * ResolvedEvent commitPosition. - * @member {number|Long} commitPosition + * @member {Long} commitPosition * @memberof EventStore.Client.Messages.ResolvedEvent * @instance */ ResolvedEvent.prototype.commitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ResolvedEvent preparePosition. - * @member {number|Long} preparePosition + * @member {Long} preparePosition * @memberof EventStore.Client.Messages.ResolvedEvent * @instance */ ResolvedEvent.prototype.preparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * Creates a new ResolvedEvent instance using the specified properties. * @function create @@ -1147,7 +1207,7 @@ ResolvedEvent.create = function create(properties) { return new ResolvedEvent(properties); }; - + /** * Encodes the specified ResolvedEvent message. Does not implicitly {@link EventStore.Client.Messages.ResolvedEvent.verify|verify} messages. * @function encode @@ -1160,15 +1220,15 @@ ResolvedEvent.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.event != null && message.hasOwnProperty("event")) + if (message.event != null && Object.hasOwnProperty.call(message, "event")) $root.EventStore.Client.Messages.EventRecord.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.link != null && message.hasOwnProperty("link")) + if (message.link != null && Object.hasOwnProperty.call(message, "link")) $root.EventStore.Client.Messages.EventRecord.encode(message.link, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); writer.uint32(/* id 3, wireType 0 =*/24).int64(message.commitPosition); writer.uint32(/* id 4, wireType 0 =*/32).int64(message.preparePosition); return writer; }; - + /** * Encodes the specified ResolvedEvent message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ResolvedEvent.verify|verify} messages. * @function encodeDelimited @@ -1181,7 +1241,7 @@ ResolvedEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ResolvedEvent message from the specified reader or buffer. * @function decode @@ -1200,18 +1260,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.event = $root.EventStore.Client.Messages.EventRecord.decode(reader, reader.uint32()); - break; - case 2: - message.link = $root.EventStore.Client.Messages.EventRecord.decode(reader, reader.uint32()); - break; - case 3: - message.commitPosition = reader.int64(); - break; - case 4: - message.preparePosition = reader.int64(); - break; + case 1: { + message.event = $root.EventStore.Client.Messages.EventRecord.decode(reader, reader.uint32()); + break; + } + case 2: { + message.link = $root.EventStore.Client.Messages.EventRecord.decode(reader, reader.uint32()); + break; + } + case 3: { + message.commitPosition = reader.int64(); + break; + } + case 4: { + message.preparePosition = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -1223,7 +1287,7 @@ throw $util.ProtocolError("missing required 'preparePosition'", { instance: message }); return message; }; - + /** * Decodes a ResolvedEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -1239,7 +1303,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ResolvedEvent message. * @function verify @@ -1267,7 +1331,7 @@ return "preparePosition: integer|Long expected"; return null; }; - + /** * Creates a ResolvedEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -1310,7 +1374,7 @@ message.preparePosition = new $util.LongBits(object.preparePosition.low >>> 0, object.preparePosition.high >>> 0).toNumber(); return message; }; - + /** * Creates a plain object from a ResolvedEvent message. Also converts values to other types if specified. * @function toObject @@ -1354,7 +1418,7 @@ object.preparePosition = options.longs === String ? $util.Long.prototype.toString.call(message.preparePosition) : options.longs === Number ? new $util.LongBits(message.preparePosition.low >>> 0, message.preparePosition.high >>> 0).toNumber() : message.preparePosition; return object; }; - + /** * Converts this ResolvedEvent to JSON. * @function toJSON @@ -1365,22 +1429,37 @@ ResolvedEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ResolvedEvent + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ResolvedEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResolvedEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ResolvedEvent"; + }; + return ResolvedEvent; })(); - + Messages.WriteEvents = (function() { - + /** * Properties of a WriteEvents. * @memberof EventStore.Client.Messages * @interface IWriteEvents * @property {string} eventStreamId WriteEvents eventStreamId - * @property {number|Long} expectedVersion WriteEvents expectedVersion + * @property {Long} expectedVersion WriteEvents expectedVersion * @property {Array.|null} [events] WriteEvents events - * @property {boolean} requireMaster WriteEvents requireMaster + * @property {boolean} requireLeader WriteEvents requireLeader */ - + /** * Constructs a new WriteEvents. * @memberof EventStore.Client.Messages @@ -1396,7 +1475,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * WriteEvents eventStreamId. * @member {string} eventStreamId @@ -1404,15 +1483,15 @@ * @instance */ WriteEvents.prototype.eventStreamId = ""; - + /** * WriteEvents expectedVersion. - * @member {number|Long} expectedVersion + * @member {Long} expectedVersion * @memberof EventStore.Client.Messages.WriteEvents * @instance */ WriteEvents.prototype.expectedVersion = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * WriteEvents events. * @member {Array.} events @@ -1420,15 +1499,15 @@ * @instance */ WriteEvents.prototype.events = $util.emptyArray; - + /** - * WriteEvents requireMaster. - * @member {boolean} requireMaster + * WriteEvents requireLeader. + * @member {boolean} requireLeader * @memberof EventStore.Client.Messages.WriteEvents * @instance */ - WriteEvents.prototype.requireMaster = false; - + WriteEvents.prototype.requireLeader = false; + /** * Creates a new WriteEvents instance using the specified properties. * @function create @@ -1440,7 +1519,7 @@ WriteEvents.create = function create(properties) { return new WriteEvents(properties); }; - + /** * Encodes the specified WriteEvents message. Does not implicitly {@link EventStore.Client.Messages.WriteEvents.verify|verify} messages. * @function encode @@ -1458,10 +1537,10 @@ if (message.events != null && message.events.length) for (var i = 0; i < message.events.length; ++i) $root.EventStore.Client.Messages.NewEvent.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.requireMaster); + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.requireLeader); return writer; }; - + /** * Encodes the specified WriteEvents message, length delimited. Does not implicitly {@link EventStore.Client.Messages.WriteEvents.verify|verify} messages. * @function encodeDelimited @@ -1474,7 +1553,7 @@ WriteEvents.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a WriteEvents message from the specified reader or buffer. * @function decode @@ -1493,20 +1572,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventStreamId = reader.string(); - break; - case 2: - message.expectedVersion = reader.int64(); - break; - case 3: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.EventStore.Client.Messages.NewEvent.decode(reader, reader.uint32())); - break; - case 4: - message.requireMaster = reader.bool(); - break; + case 1: { + message.eventStreamId = reader.string(); + break; + } + case 2: { + message.expectedVersion = reader.int64(); + break; + } + case 3: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.EventStore.Client.Messages.NewEvent.decode(reader, reader.uint32())); + break; + } + case 4: { + message.requireLeader = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -1516,11 +1599,11 @@ throw $util.ProtocolError("missing required 'eventStreamId'", { instance: message }); if (!message.hasOwnProperty("expectedVersion")) throw $util.ProtocolError("missing required 'expectedVersion'", { instance: message }); - if (!message.hasOwnProperty("requireMaster")) - throw $util.ProtocolError("missing required 'requireMaster'", { instance: message }); + if (!message.hasOwnProperty("requireLeader")) + throw $util.ProtocolError("missing required 'requireLeader'", { instance: message }); return message; }; - + /** * Decodes a WriteEvents message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -1536,7 +1619,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a WriteEvents message. * @function verify @@ -1561,11 +1644,11 @@ return "events." + error; } } - if (typeof message.requireMaster !== "boolean") - return "requireMaster: boolean expected"; + if (typeof message.requireLeader !== "boolean") + return "requireLeader: boolean expected"; return null; }; - + /** * Creates a WriteEvents message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -1599,11 +1682,11 @@ message.events[i] = $root.EventStore.Client.Messages.NewEvent.fromObject(object.events[i]); } } - if (object.requireMaster != null) - message.requireMaster = Boolean(object.requireMaster); + if (object.requireLeader != null) + message.requireLeader = Boolean(object.requireLeader); return message; }; - + /** * Creates a plain object from a WriteEvents message. Also converts values to other types if specified. * @function toObject @@ -1626,7 +1709,7 @@ object.expectedVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.expectedVersion = options.longs === String ? "0" : 0; - object.requireMaster = false; + object.requireLeader = false; } if (message.eventStreamId != null && message.hasOwnProperty("eventStreamId")) object.eventStreamId = message.eventStreamId; @@ -1640,11 +1723,11 @@ for (var j = 0; j < message.events.length; ++j) object.events[j] = $root.EventStore.Client.Messages.NewEvent.toObject(message.events[j], options); } - if (message.requireMaster != null && message.hasOwnProperty("requireMaster")) - object.requireMaster = message.requireMaster; + if (message.requireLeader != null && message.hasOwnProperty("requireLeader")) + object.requireLeader = message.requireLeader; return object; }; - + /** * Converts this WriteEvents to JSON. * @function toJSON @@ -1655,25 +1738,40 @@ WriteEvents.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for WriteEvents + * @function getTypeUrl + * @memberof EventStore.Client.Messages.WriteEvents + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WriteEvents.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.WriteEvents"; + }; + return WriteEvents; })(); - + Messages.WriteEventsCompleted = (function() { - + /** * Properties of a WriteEventsCompleted. * @memberof EventStore.Client.Messages * @interface IWriteEventsCompleted * @property {EventStore.Client.Messages.OperationResult} result WriteEventsCompleted result * @property {string|null} [message] WriteEventsCompleted message - * @property {number|Long} firstEventNumber WriteEventsCompleted firstEventNumber - * @property {number|Long} lastEventNumber WriteEventsCompleted lastEventNumber - * @property {number|Long|null} [preparePosition] WriteEventsCompleted preparePosition - * @property {number|Long|null} [commitPosition] WriteEventsCompleted commitPosition - * @property {number|Long|null} [currentVersion] WriteEventsCompleted currentVersion + * @property {Long} firstEventNumber WriteEventsCompleted firstEventNumber + * @property {Long} lastEventNumber WriteEventsCompleted lastEventNumber + * @property {Long|null} [preparePosition] WriteEventsCompleted preparePosition + * @property {Long|null} [commitPosition] WriteEventsCompleted commitPosition + * @property {Long|null} [currentVersion] WriteEventsCompleted currentVersion */ - + /** * Constructs a new WriteEventsCompleted. * @memberof EventStore.Client.Messages @@ -1688,7 +1786,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * WriteEventsCompleted result. * @member {EventStore.Client.Messages.OperationResult} result @@ -1696,7 +1794,7 @@ * @instance */ WriteEventsCompleted.prototype.result = 0; - + /** * WriteEventsCompleted message. * @member {string} message @@ -1704,47 +1802,47 @@ * @instance */ WriteEventsCompleted.prototype.message = ""; - + /** * WriteEventsCompleted firstEventNumber. - * @member {number|Long} firstEventNumber + * @member {Long} firstEventNumber * @memberof EventStore.Client.Messages.WriteEventsCompleted * @instance */ WriteEventsCompleted.prototype.firstEventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * WriteEventsCompleted lastEventNumber. - * @member {number|Long} lastEventNumber + * @member {Long} lastEventNumber * @memberof EventStore.Client.Messages.WriteEventsCompleted * @instance */ WriteEventsCompleted.prototype.lastEventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * WriteEventsCompleted preparePosition. - * @member {number|Long} preparePosition + * @member {Long} preparePosition * @memberof EventStore.Client.Messages.WriteEventsCompleted * @instance */ WriteEventsCompleted.prototype.preparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * WriteEventsCompleted commitPosition. - * @member {number|Long} commitPosition + * @member {Long} commitPosition * @memberof EventStore.Client.Messages.WriteEventsCompleted * @instance */ WriteEventsCompleted.prototype.commitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * WriteEventsCompleted currentVersion. - * @member {number|Long} currentVersion + * @member {Long} currentVersion * @memberof EventStore.Client.Messages.WriteEventsCompleted * @instance */ WriteEventsCompleted.prototype.currentVersion = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * Creates a new WriteEventsCompleted instance using the specified properties. * @function create @@ -1756,7 +1854,7 @@ WriteEventsCompleted.create = function create(properties) { return new WriteEventsCompleted(properties); }; - + /** * Encodes the specified WriteEventsCompleted message. Does not implicitly {@link EventStore.Client.Messages.WriteEventsCompleted.verify|verify} messages. * @function encode @@ -1770,19 +1868,19 @@ if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); writer.uint32(/* id 3, wireType 0 =*/24).int64(message.firstEventNumber); writer.uint32(/* id 4, wireType 0 =*/32).int64(message.lastEventNumber); - if (message.preparePosition != null && message.hasOwnProperty("preparePosition")) + if (message.preparePosition != null && Object.hasOwnProperty.call(message, "preparePosition")) writer.uint32(/* id 5, wireType 0 =*/40).int64(message.preparePosition); - if (message.commitPosition != null && message.hasOwnProperty("commitPosition")) + if (message.commitPosition != null && Object.hasOwnProperty.call(message, "commitPosition")) writer.uint32(/* id 6, wireType 0 =*/48).int64(message.commitPosition); - if (message.currentVersion != null && message.hasOwnProperty("currentVersion")) + if (message.currentVersion != null && Object.hasOwnProperty.call(message, "currentVersion")) writer.uint32(/* id 7, wireType 0 =*/56).int64(message.currentVersion); return writer; }; - + /** * Encodes the specified WriteEventsCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.WriteEventsCompleted.verify|verify} messages. * @function encodeDelimited @@ -1795,7 +1893,7 @@ WriteEventsCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a WriteEventsCompleted message from the specified reader or buffer. * @function decode @@ -1814,27 +1912,34 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - message.firstEventNumber = reader.int64(); - break; - case 4: - message.lastEventNumber = reader.int64(); - break; - case 5: - message.preparePosition = reader.int64(); - break; - case 6: - message.commitPosition = reader.int64(); - break; - case 7: - message.currentVersion = reader.int64(); - break; + case 1: { + message.result = reader.int32(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + case 3: { + message.firstEventNumber = reader.int64(); + break; + } + case 4: { + message.lastEventNumber = reader.int64(); + break; + } + case 5: { + message.preparePosition = reader.int64(); + break; + } + case 6: { + message.commitPosition = reader.int64(); + break; + } + case 7: { + message.currentVersion = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -1848,7 +1953,7 @@ throw $util.ProtocolError("missing required 'lastEventNumber'", { instance: message }); return message; }; - + /** * Decodes a WriteEventsCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -1864,7 +1969,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a WriteEventsCompleted message. * @function verify @@ -1907,7 +2012,7 @@ return "currentVersion: integer|Long expected"; return null; }; - + /** * Creates a WriteEventsCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -1921,6 +2026,12 @@ return object; var message = new $root.EventStore.Client.Messages.WriteEventsCompleted(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -2003,7 +2114,7 @@ message.currentVersion = new $util.LongBits(object.currentVersion.low >>> 0, object.currentVersion.high >>> 0).toNumber(); return message; }; - + /** * Creates a plain object from a WriteEventsCompleted message. Also converts values to other types if specified. * @function toObject @@ -2047,7 +2158,7 @@ object.currentVersion = options.longs === String ? "0" : 0; } if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; if (message.firstEventNumber != null && message.hasOwnProperty("firstEventNumber")) @@ -2077,7 +2188,7 @@ object.currentVersion = options.longs === String ? $util.Long.prototype.toString.call(message.currentVersion) : options.longs === Number ? new $util.LongBits(message.currentVersion.low >>> 0, message.currentVersion.high >>> 0).toNumber() : message.currentVersion; return object; }; - + /** * Converts this WriteEventsCompleted to JSON. * @function toJSON @@ -2088,22 +2199,37 @@ WriteEventsCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for WriteEventsCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.WriteEventsCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WriteEventsCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.WriteEventsCompleted"; + }; + return WriteEventsCompleted; })(); - + Messages.DeleteStream = (function() { - + /** * Properties of a DeleteStream. * @memberof EventStore.Client.Messages * @interface IDeleteStream * @property {string} eventStreamId DeleteStream eventStreamId - * @property {number|Long} expectedVersion DeleteStream expectedVersion - * @property {boolean} requireMaster DeleteStream requireMaster + * @property {Long} expectedVersion DeleteStream expectedVersion + * @property {boolean} requireLeader DeleteStream requireLeader * @property {boolean|null} [hardDelete] DeleteStream hardDelete */ - + /** * Constructs a new DeleteStream. * @memberof EventStore.Client.Messages @@ -2118,7 +2244,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * DeleteStream eventStreamId. * @member {string} eventStreamId @@ -2126,23 +2252,23 @@ * @instance */ DeleteStream.prototype.eventStreamId = ""; - + /** * DeleteStream expectedVersion. - * @member {number|Long} expectedVersion + * @member {Long} expectedVersion * @memberof EventStore.Client.Messages.DeleteStream * @instance */ DeleteStream.prototype.expectedVersion = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** - * DeleteStream requireMaster. - * @member {boolean} requireMaster + * DeleteStream requireLeader. + * @member {boolean} requireLeader * @memberof EventStore.Client.Messages.DeleteStream * @instance */ - DeleteStream.prototype.requireMaster = false; - + DeleteStream.prototype.requireLeader = false; + /** * DeleteStream hardDelete. * @member {boolean} hardDelete @@ -2150,7 +2276,7 @@ * @instance */ DeleteStream.prototype.hardDelete = false; - + /** * Creates a new DeleteStream instance using the specified properties. * @function create @@ -2162,7 +2288,7 @@ DeleteStream.create = function create(properties) { return new DeleteStream(properties); }; - + /** * Encodes the specified DeleteStream message. Does not implicitly {@link EventStore.Client.Messages.DeleteStream.verify|verify} messages. * @function encode @@ -2177,12 +2303,12 @@ writer = $Writer.create(); writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventStreamId); writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expectedVersion); - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.requireMaster); - if (message.hardDelete != null && message.hasOwnProperty("hardDelete")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.requireLeader); + if (message.hardDelete != null && Object.hasOwnProperty.call(message, "hardDelete")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.hardDelete); return writer; }; - + /** * Encodes the specified DeleteStream message, length delimited. Does not implicitly {@link EventStore.Client.Messages.DeleteStream.verify|verify} messages. * @function encodeDelimited @@ -2195,7 +2321,7 @@ DeleteStream.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a DeleteStream message from the specified reader or buffer. * @function decode @@ -2214,18 +2340,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventStreamId = reader.string(); - break; - case 2: - message.expectedVersion = reader.int64(); - break; - case 3: - message.requireMaster = reader.bool(); - break; - case 4: - message.hardDelete = reader.bool(); - break; + case 1: { + message.eventStreamId = reader.string(); + break; + } + case 2: { + message.expectedVersion = reader.int64(); + break; + } + case 3: { + message.requireLeader = reader.bool(); + break; + } + case 4: { + message.hardDelete = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -2235,11 +2365,11 @@ throw $util.ProtocolError("missing required 'eventStreamId'", { instance: message }); if (!message.hasOwnProperty("expectedVersion")) throw $util.ProtocolError("missing required 'expectedVersion'", { instance: message }); - if (!message.hasOwnProperty("requireMaster")) - throw $util.ProtocolError("missing required 'requireMaster'", { instance: message }); + if (!message.hasOwnProperty("requireLeader")) + throw $util.ProtocolError("missing required 'requireLeader'", { instance: message }); return message; }; - + /** * Decodes a DeleteStream message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -2255,7 +2385,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a DeleteStream message. * @function verify @@ -2271,14 +2401,14 @@ return "eventStreamId: string expected"; if (!$util.isInteger(message.expectedVersion) && !(message.expectedVersion && $util.isInteger(message.expectedVersion.low) && $util.isInteger(message.expectedVersion.high))) return "expectedVersion: integer|Long expected"; - if (typeof message.requireMaster !== "boolean") - return "requireMaster: boolean expected"; + if (typeof message.requireLeader !== "boolean") + return "requireLeader: boolean expected"; if (message.hardDelete != null && message.hasOwnProperty("hardDelete")) if (typeof message.hardDelete !== "boolean") return "hardDelete: boolean expected"; return null; }; - + /** * Creates a DeleteStream message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -2302,13 +2432,13 @@ message.expectedVersion = object.expectedVersion; else if (typeof object.expectedVersion === "object") message.expectedVersion = new $util.LongBits(object.expectedVersion.low >>> 0, object.expectedVersion.high >>> 0).toNumber(); - if (object.requireMaster != null) - message.requireMaster = Boolean(object.requireMaster); + if (object.requireLeader != null) + message.requireLeader = Boolean(object.requireLeader); if (object.hardDelete != null) message.hardDelete = Boolean(object.hardDelete); return message; }; - + /** * Creates a plain object from a DeleteStream message. Also converts values to other types if specified. * @function toObject @@ -2329,7 +2459,7 @@ object.expectedVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.expectedVersion = options.longs === String ? "0" : 0; - object.requireMaster = false; + object.requireLeader = false; object.hardDelete = false; } if (message.eventStreamId != null && message.hasOwnProperty("eventStreamId")) @@ -2339,13 +2469,13 @@ object.expectedVersion = options.longs === String ? String(message.expectedVersion) : message.expectedVersion; else object.expectedVersion = options.longs === String ? $util.Long.prototype.toString.call(message.expectedVersion) : options.longs === Number ? new $util.LongBits(message.expectedVersion.low >>> 0, message.expectedVersion.high >>> 0).toNumber() : message.expectedVersion; - if (message.requireMaster != null && message.hasOwnProperty("requireMaster")) - object.requireMaster = message.requireMaster; + if (message.requireLeader != null && message.hasOwnProperty("requireLeader")) + object.requireLeader = message.requireLeader; if (message.hardDelete != null && message.hasOwnProperty("hardDelete")) object.hardDelete = message.hardDelete; return object; }; - + /** * Converts this DeleteStream to JSON. * @function toJSON @@ -2356,22 +2486,38 @@ DeleteStream.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for DeleteStream + * @function getTypeUrl + * @memberof EventStore.Client.Messages.DeleteStream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.DeleteStream"; + }; + return DeleteStream; })(); - + Messages.DeleteStreamCompleted = (function() { - + /** * Properties of a DeleteStreamCompleted. * @memberof EventStore.Client.Messages * @interface IDeleteStreamCompleted * @property {EventStore.Client.Messages.OperationResult} result DeleteStreamCompleted result * @property {string|null} [message] DeleteStreamCompleted message - * @property {number|Long|null} [preparePosition] DeleteStreamCompleted preparePosition - * @property {number|Long|null} [commitPosition] DeleteStreamCompleted commitPosition + * @property {Long|null} [preparePosition] DeleteStreamCompleted preparePosition + * @property {Long|null} [commitPosition] DeleteStreamCompleted commitPosition + * @property {Long|null} [currentVersion] DeleteStreamCompleted currentVersion */ - + /** * Constructs a new DeleteStreamCompleted. * @memberof EventStore.Client.Messages @@ -2386,7 +2532,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * DeleteStreamCompleted result. * @member {EventStore.Client.Messages.OperationResult} result @@ -2394,7 +2540,7 @@ * @instance */ DeleteStreamCompleted.prototype.result = 0; - + /** * DeleteStreamCompleted message. * @member {string} message @@ -2402,23 +2548,31 @@ * @instance */ DeleteStreamCompleted.prototype.message = ""; - + /** * DeleteStreamCompleted preparePosition. - * @member {number|Long} preparePosition + * @member {Long} preparePosition * @memberof EventStore.Client.Messages.DeleteStreamCompleted * @instance */ DeleteStreamCompleted.prototype.preparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * DeleteStreamCompleted commitPosition. - * @member {number|Long} commitPosition + * @member {Long} commitPosition * @memberof EventStore.Client.Messages.DeleteStreamCompleted * @instance */ DeleteStreamCompleted.prototype.commitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + + /** + * DeleteStreamCompleted currentVersion. + * @member {Long} currentVersion + * @memberof EventStore.Client.Messages.DeleteStreamCompleted + * @instance + */ + DeleteStreamCompleted.prototype.currentVersion = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Creates a new DeleteStreamCompleted instance using the specified properties. * @function create @@ -2430,7 +2584,7 @@ DeleteStreamCompleted.create = function create(properties) { return new DeleteStreamCompleted(properties); }; - + /** * Encodes the specified DeleteStreamCompleted message. Does not implicitly {@link EventStore.Client.Messages.DeleteStreamCompleted.verify|verify} messages. * @function encode @@ -2444,15 +2598,17 @@ if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.preparePosition != null && message.hasOwnProperty("preparePosition")) + if (message.preparePosition != null && Object.hasOwnProperty.call(message, "preparePosition")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.preparePosition); - if (message.commitPosition != null && message.hasOwnProperty("commitPosition")) + if (message.commitPosition != null && Object.hasOwnProperty.call(message, "commitPosition")) writer.uint32(/* id 4, wireType 0 =*/32).int64(message.commitPosition); + if (message.currentVersion != null && Object.hasOwnProperty.call(message, "currentVersion")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.currentVersion); return writer; }; - + /** * Encodes the specified DeleteStreamCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.DeleteStreamCompleted.verify|verify} messages. * @function encodeDelimited @@ -2465,7 +2621,7 @@ DeleteStreamCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a DeleteStreamCompleted message from the specified reader or buffer. * @function decode @@ -2484,18 +2640,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - message.preparePosition = reader.int64(); - break; - case 4: - message.commitPosition = reader.int64(); - break; + case 1: { + message.result = reader.int32(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + case 3: { + message.preparePosition = reader.int64(); + break; + } + case 4: { + message.commitPosition = reader.int64(); + break; + } + case 5: { + message.currentVersion = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -2505,7 +2669,7 @@ throw $util.ProtocolError("missing required 'result'", { instance: message }); return message; }; - + /** * Decodes a DeleteStreamCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -2521,7 +2685,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a DeleteStreamCompleted message. * @function verify @@ -2555,9 +2719,12 @@ if (message.commitPosition != null && message.hasOwnProperty("commitPosition")) if (!$util.isInteger(message.commitPosition) && !(message.commitPosition && $util.isInteger(message.commitPosition.low) && $util.isInteger(message.commitPosition.high))) return "commitPosition: integer|Long expected"; + if (message.currentVersion != null && message.hasOwnProperty("currentVersion")) + if (!$util.isInteger(message.currentVersion) && !(message.currentVersion && $util.isInteger(message.currentVersion.low) && $util.isInteger(message.currentVersion.high))) + return "currentVersion: integer|Long expected"; return null; }; - + /** * Creates a DeleteStreamCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -2571,6 +2738,12 @@ return object; var message = new $root.EventStore.Client.Messages.DeleteStreamCompleted(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -2624,9 +2797,18 @@ message.commitPosition = object.commitPosition; else if (typeof object.commitPosition === "object") message.commitPosition = new $util.LongBits(object.commitPosition.low >>> 0, object.commitPosition.high >>> 0).toNumber(); + if (object.currentVersion != null) + if ($util.Long) + (message.currentVersion = $util.Long.fromValue(object.currentVersion)).unsigned = false; + else if (typeof object.currentVersion === "string") + message.currentVersion = parseInt(object.currentVersion, 10); + else if (typeof object.currentVersion === "number") + message.currentVersion = object.currentVersion; + else if (typeof object.currentVersion === "object") + message.currentVersion = new $util.LongBits(object.currentVersion.low >>> 0, object.currentVersion.high >>> 0).toNumber(); return message; }; - + /** * Creates a plain object from a DeleteStreamCompleted message. Also converts values to other types if specified. * @function toObject @@ -2653,9 +2835,14 @@ object.commitPosition = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.commitPosition = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.currentVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.currentVersion = options.longs === String ? "0" : 0; } if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; if (message.preparePosition != null && message.hasOwnProperty("preparePosition")) @@ -2668,9 +2855,14 @@ object.commitPosition = options.longs === String ? String(message.commitPosition) : message.commitPosition; else object.commitPosition = options.longs === String ? $util.Long.prototype.toString.call(message.commitPosition) : options.longs === Number ? new $util.LongBits(message.commitPosition.low >>> 0, message.commitPosition.high >>> 0).toNumber() : message.commitPosition; + if (message.currentVersion != null && message.hasOwnProperty("currentVersion")) + if (typeof message.currentVersion === "number") + object.currentVersion = options.longs === String ? String(message.currentVersion) : message.currentVersion; + else + object.currentVersion = options.longs === String ? $util.Long.prototype.toString.call(message.currentVersion) : options.longs === Number ? new $util.LongBits(message.currentVersion.low >>> 0, message.currentVersion.high >>> 0).toNumber() : message.currentVersion; return object; }; - + /** * Converts this DeleteStreamCompleted to JSON. * @function toJSON @@ -2681,21 +2873,36 @@ DeleteStreamCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for DeleteStreamCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.DeleteStreamCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteStreamCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.DeleteStreamCompleted"; + }; + return DeleteStreamCompleted; })(); - + Messages.TransactionStart = (function() { - + /** * Properties of a TransactionStart. * @memberof EventStore.Client.Messages * @interface ITransactionStart * @property {string} eventStreamId TransactionStart eventStreamId - * @property {number|Long} expectedVersion TransactionStart expectedVersion - * @property {boolean} requireMaster TransactionStart requireMaster + * @property {Long} expectedVersion TransactionStart expectedVersion + * @property {boolean} requireLeader TransactionStart requireLeader */ - + /** * Constructs a new TransactionStart. * @memberof EventStore.Client.Messages @@ -2710,7 +2917,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * TransactionStart eventStreamId. * @member {string} eventStreamId @@ -2718,23 +2925,23 @@ * @instance */ TransactionStart.prototype.eventStreamId = ""; - + /** * TransactionStart expectedVersion. - * @member {number|Long} expectedVersion + * @member {Long} expectedVersion * @memberof EventStore.Client.Messages.TransactionStart * @instance */ TransactionStart.prototype.expectedVersion = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** - * TransactionStart requireMaster. - * @member {boolean} requireMaster + * TransactionStart requireLeader. + * @member {boolean} requireLeader * @memberof EventStore.Client.Messages.TransactionStart * @instance */ - TransactionStart.prototype.requireMaster = false; - + TransactionStart.prototype.requireLeader = false; + /** * Creates a new TransactionStart instance using the specified properties. * @function create @@ -2746,7 +2953,7 @@ TransactionStart.create = function create(properties) { return new TransactionStart(properties); }; - + /** * Encodes the specified TransactionStart message. Does not implicitly {@link EventStore.Client.Messages.TransactionStart.verify|verify} messages. * @function encode @@ -2761,10 +2968,10 @@ writer = $Writer.create(); writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventStreamId); writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expectedVersion); - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.requireMaster); + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.requireLeader); return writer; }; - + /** * Encodes the specified TransactionStart message, length delimited. Does not implicitly {@link EventStore.Client.Messages.TransactionStart.verify|verify} messages. * @function encodeDelimited @@ -2777,7 +2984,7 @@ TransactionStart.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a TransactionStart message from the specified reader or buffer. * @function decode @@ -2796,15 +3003,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventStreamId = reader.string(); - break; - case 2: - message.expectedVersion = reader.int64(); - break; - case 3: - message.requireMaster = reader.bool(); - break; + case 1: { + message.eventStreamId = reader.string(); + break; + } + case 2: { + message.expectedVersion = reader.int64(); + break; + } + case 3: { + message.requireLeader = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -2814,11 +3024,11 @@ throw $util.ProtocolError("missing required 'eventStreamId'", { instance: message }); if (!message.hasOwnProperty("expectedVersion")) throw $util.ProtocolError("missing required 'expectedVersion'", { instance: message }); - if (!message.hasOwnProperty("requireMaster")) - throw $util.ProtocolError("missing required 'requireMaster'", { instance: message }); + if (!message.hasOwnProperty("requireLeader")) + throw $util.ProtocolError("missing required 'requireLeader'", { instance: message }); return message; }; - + /** * Decodes a TransactionStart message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -2834,7 +3044,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a TransactionStart message. * @function verify @@ -2850,11 +3060,11 @@ return "eventStreamId: string expected"; if (!$util.isInteger(message.expectedVersion) && !(message.expectedVersion && $util.isInteger(message.expectedVersion.low) && $util.isInteger(message.expectedVersion.high))) return "expectedVersion: integer|Long expected"; - if (typeof message.requireMaster !== "boolean") - return "requireMaster: boolean expected"; + if (typeof message.requireLeader !== "boolean") + return "requireLeader: boolean expected"; return null; }; - + /** * Creates a TransactionStart message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -2878,11 +3088,11 @@ message.expectedVersion = object.expectedVersion; else if (typeof object.expectedVersion === "object") message.expectedVersion = new $util.LongBits(object.expectedVersion.low >>> 0, object.expectedVersion.high >>> 0).toNumber(); - if (object.requireMaster != null) - message.requireMaster = Boolean(object.requireMaster); + if (object.requireLeader != null) + message.requireLeader = Boolean(object.requireLeader); return message; }; - + /** * Creates a plain object from a TransactionStart message. Also converts values to other types if specified. * @function toObject @@ -2903,7 +3113,7 @@ object.expectedVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.expectedVersion = options.longs === String ? "0" : 0; - object.requireMaster = false; + object.requireLeader = false; } if (message.eventStreamId != null && message.hasOwnProperty("eventStreamId")) object.eventStreamId = message.eventStreamId; @@ -2912,11 +3122,11 @@ object.expectedVersion = options.longs === String ? String(message.expectedVersion) : message.expectedVersion; else object.expectedVersion = options.longs === String ? $util.Long.prototype.toString.call(message.expectedVersion) : options.longs === Number ? new $util.LongBits(message.expectedVersion.low >>> 0, message.expectedVersion.high >>> 0).toNumber() : message.expectedVersion; - if (message.requireMaster != null && message.hasOwnProperty("requireMaster")) - object.requireMaster = message.requireMaster; + if (message.requireLeader != null && message.hasOwnProperty("requireLeader")) + object.requireLeader = message.requireLeader; return object; }; - + /** * Converts this TransactionStart to JSON. * @function toJSON @@ -2927,21 +3137,36 @@ TransactionStart.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for TransactionStart + * @function getTypeUrl + * @memberof EventStore.Client.Messages.TransactionStart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransactionStart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.TransactionStart"; + }; + return TransactionStart; })(); - + Messages.TransactionStartCompleted = (function() { - + /** * Properties of a TransactionStartCompleted. * @memberof EventStore.Client.Messages * @interface ITransactionStartCompleted - * @property {number|Long} transactionId TransactionStartCompleted transactionId + * @property {Long} transactionId TransactionStartCompleted transactionId * @property {EventStore.Client.Messages.OperationResult} result TransactionStartCompleted result * @property {string|null} [message] TransactionStartCompleted message */ - + /** * Constructs a new TransactionStartCompleted. * @memberof EventStore.Client.Messages @@ -2956,15 +3181,15 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * TransactionStartCompleted transactionId. - * @member {number|Long} transactionId + * @member {Long} transactionId * @memberof EventStore.Client.Messages.TransactionStartCompleted * @instance */ TransactionStartCompleted.prototype.transactionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * TransactionStartCompleted result. * @member {EventStore.Client.Messages.OperationResult} result @@ -2972,7 +3197,7 @@ * @instance */ TransactionStartCompleted.prototype.result = 0; - + /** * TransactionStartCompleted message. * @member {string} message @@ -2980,7 +3205,7 @@ * @instance */ TransactionStartCompleted.prototype.message = ""; - + /** * Creates a new TransactionStartCompleted instance using the specified properties. * @function create @@ -2992,7 +3217,7 @@ TransactionStartCompleted.create = function create(properties) { return new TransactionStartCompleted(properties); }; - + /** * Encodes the specified TransactionStartCompleted message. Does not implicitly {@link EventStore.Client.Messages.TransactionStartCompleted.verify|verify} messages. * @function encode @@ -3007,11 +3232,11 @@ writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transactionId); writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); return writer; }; - + /** * Encodes the specified TransactionStartCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.TransactionStartCompleted.verify|verify} messages. * @function encodeDelimited @@ -3024,7 +3249,7 @@ TransactionStartCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a TransactionStartCompleted message from the specified reader or buffer. * @function decode @@ -3043,15 +3268,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.transactionId = reader.int64(); - break; - case 2: - message.result = reader.int32(); - break; - case 3: - message.message = reader.string(); - break; + case 1: { + message.transactionId = reader.int64(); + break; + } + case 2: { + message.result = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -3063,7 +3291,7 @@ throw $util.ProtocolError("missing required 'result'", { instance: message }); return message; }; - + /** * Decodes a TransactionStartCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -3079,7 +3307,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a TransactionStartCompleted message. * @function verify @@ -3111,7 +3339,7 @@ return "message: string expected"; return null; }; - + /** * Creates a TransactionStartCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -3134,6 +3362,12 @@ else if (typeof object.transactionId === "object") message.transactionId = new $util.LongBits(object.transactionId.low >>> 0, object.transactionId.high >>> 0).toNumber(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -3171,7 +3405,7 @@ message.message = String(object.message); return message; }; - + /** * Creates a plain object from a TransactionStartCompleted message. Also converts values to other types if specified. * @function toObject @@ -3200,12 +3434,12 @@ else object.transactionId = options.longs === String ? $util.Long.prototype.toString.call(message.transactionId) : options.longs === Number ? new $util.LongBits(message.transactionId.low >>> 0, message.transactionId.high >>> 0).toNumber() : message.transactionId; if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; return object; }; - + /** * Converts this TransactionStartCompleted to JSON. * @function toJSON @@ -3216,21 +3450,36 @@ TransactionStartCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for TransactionStartCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.TransactionStartCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransactionStartCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.TransactionStartCompleted"; + }; + return TransactionStartCompleted; })(); - + Messages.TransactionWrite = (function() { - + /** * Properties of a TransactionWrite. * @memberof EventStore.Client.Messages * @interface ITransactionWrite - * @property {number|Long} transactionId TransactionWrite transactionId + * @property {Long} transactionId TransactionWrite transactionId * @property {Array.|null} [events] TransactionWrite events - * @property {boolean} requireMaster TransactionWrite requireMaster + * @property {boolean} requireLeader TransactionWrite requireLeader */ - + /** * Constructs a new TransactionWrite. * @memberof EventStore.Client.Messages @@ -3246,15 +3495,15 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * TransactionWrite transactionId. - * @member {number|Long} transactionId + * @member {Long} transactionId * @memberof EventStore.Client.Messages.TransactionWrite * @instance */ TransactionWrite.prototype.transactionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * TransactionWrite events. * @member {Array.} events @@ -3262,15 +3511,15 @@ * @instance */ TransactionWrite.prototype.events = $util.emptyArray; - + /** - * TransactionWrite requireMaster. - * @member {boolean} requireMaster + * TransactionWrite requireLeader. + * @member {boolean} requireLeader * @memberof EventStore.Client.Messages.TransactionWrite * @instance */ - TransactionWrite.prototype.requireMaster = false; - + TransactionWrite.prototype.requireLeader = false; + /** * Creates a new TransactionWrite instance using the specified properties. * @function create @@ -3282,7 +3531,7 @@ TransactionWrite.create = function create(properties) { return new TransactionWrite(properties); }; - + /** * Encodes the specified TransactionWrite message. Does not implicitly {@link EventStore.Client.Messages.TransactionWrite.verify|verify} messages. * @function encode @@ -3299,10 +3548,10 @@ if (message.events != null && message.events.length) for (var i = 0; i < message.events.length; ++i) $root.EventStore.Client.Messages.NewEvent.encode(message.events[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.requireMaster); + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.requireLeader); return writer; }; - + /** * Encodes the specified TransactionWrite message, length delimited. Does not implicitly {@link EventStore.Client.Messages.TransactionWrite.verify|verify} messages. * @function encodeDelimited @@ -3315,7 +3564,7 @@ TransactionWrite.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a TransactionWrite message from the specified reader or buffer. * @function decode @@ -3334,17 +3583,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.transactionId = reader.int64(); - break; - case 2: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.EventStore.Client.Messages.NewEvent.decode(reader, reader.uint32())); - break; - case 3: - message.requireMaster = reader.bool(); - break; + case 1: { + message.transactionId = reader.int64(); + break; + } + case 2: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.EventStore.Client.Messages.NewEvent.decode(reader, reader.uint32())); + break; + } + case 3: { + message.requireLeader = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -3352,11 +3604,11 @@ } if (!message.hasOwnProperty("transactionId")) throw $util.ProtocolError("missing required 'transactionId'", { instance: message }); - if (!message.hasOwnProperty("requireMaster")) - throw $util.ProtocolError("missing required 'requireMaster'", { instance: message }); + if (!message.hasOwnProperty("requireLeader")) + throw $util.ProtocolError("missing required 'requireLeader'", { instance: message }); return message; }; - + /** * Decodes a TransactionWrite message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -3372,7 +3624,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a TransactionWrite message. * @function verify @@ -3395,11 +3647,11 @@ return "events." + error; } } - if (typeof message.requireMaster !== "boolean") - return "requireMaster: boolean expected"; + if (typeof message.requireLeader !== "boolean") + return "requireLeader: boolean expected"; return null; }; - + /** * Creates a TransactionWrite message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -3431,11 +3683,11 @@ message.events[i] = $root.EventStore.Client.Messages.NewEvent.fromObject(object.events[i]); } } - if (object.requireMaster != null) - message.requireMaster = Boolean(object.requireMaster); + if (object.requireLeader != null) + message.requireLeader = Boolean(object.requireLeader); return message; }; - + /** * Creates a plain object from a TransactionWrite message. Also converts values to other types if specified. * @function toObject @@ -3457,7 +3709,7 @@ object.transactionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.transactionId = options.longs === String ? "0" : 0; - object.requireMaster = false; + object.requireLeader = false; } if (message.transactionId != null && message.hasOwnProperty("transactionId")) if (typeof message.transactionId === "number") @@ -3469,11 +3721,11 @@ for (var j = 0; j < message.events.length; ++j) object.events[j] = $root.EventStore.Client.Messages.NewEvent.toObject(message.events[j], options); } - if (message.requireMaster != null && message.hasOwnProperty("requireMaster")) - object.requireMaster = message.requireMaster; + if (message.requireLeader != null && message.hasOwnProperty("requireLeader")) + object.requireLeader = message.requireLeader; return object; }; - + /** * Converts this TransactionWrite to JSON. * @function toJSON @@ -3484,21 +3736,36 @@ TransactionWrite.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for TransactionWrite + * @function getTypeUrl + * @memberof EventStore.Client.Messages.TransactionWrite + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransactionWrite.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.TransactionWrite"; + }; + return TransactionWrite; })(); - + Messages.TransactionWriteCompleted = (function() { - + /** * Properties of a TransactionWriteCompleted. * @memberof EventStore.Client.Messages * @interface ITransactionWriteCompleted - * @property {number|Long} transactionId TransactionWriteCompleted transactionId + * @property {Long} transactionId TransactionWriteCompleted transactionId * @property {EventStore.Client.Messages.OperationResult} result TransactionWriteCompleted result * @property {string|null} [message] TransactionWriteCompleted message */ - + /** * Constructs a new TransactionWriteCompleted. * @memberof EventStore.Client.Messages @@ -3513,15 +3780,15 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * TransactionWriteCompleted transactionId. - * @member {number|Long} transactionId + * @member {Long} transactionId * @memberof EventStore.Client.Messages.TransactionWriteCompleted * @instance */ TransactionWriteCompleted.prototype.transactionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * TransactionWriteCompleted result. * @member {EventStore.Client.Messages.OperationResult} result @@ -3529,7 +3796,7 @@ * @instance */ TransactionWriteCompleted.prototype.result = 0; - + /** * TransactionWriteCompleted message. * @member {string} message @@ -3537,7 +3804,7 @@ * @instance */ TransactionWriteCompleted.prototype.message = ""; - + /** * Creates a new TransactionWriteCompleted instance using the specified properties. * @function create @@ -3549,7 +3816,7 @@ TransactionWriteCompleted.create = function create(properties) { return new TransactionWriteCompleted(properties); }; - + /** * Encodes the specified TransactionWriteCompleted message. Does not implicitly {@link EventStore.Client.Messages.TransactionWriteCompleted.verify|verify} messages. * @function encode @@ -3564,11 +3831,11 @@ writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transactionId); writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); return writer; }; - + /** * Encodes the specified TransactionWriteCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.TransactionWriteCompleted.verify|verify} messages. * @function encodeDelimited @@ -3581,7 +3848,7 @@ TransactionWriteCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a TransactionWriteCompleted message from the specified reader or buffer. * @function decode @@ -3600,15 +3867,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.transactionId = reader.int64(); - break; - case 2: - message.result = reader.int32(); - break; - case 3: - message.message = reader.string(); - break; + case 1: { + message.transactionId = reader.int64(); + break; + } + case 2: { + message.result = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -3620,7 +3890,7 @@ throw $util.ProtocolError("missing required 'result'", { instance: message }); return message; }; - + /** * Decodes a TransactionWriteCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -3636,7 +3906,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a TransactionWriteCompleted message. * @function verify @@ -3668,7 +3938,7 @@ return "message: string expected"; return null; }; - + /** * Creates a TransactionWriteCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -3691,6 +3961,12 @@ else if (typeof object.transactionId === "object") message.transactionId = new $util.LongBits(object.transactionId.low >>> 0, object.transactionId.high >>> 0).toNumber(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -3728,7 +4004,7 @@ message.message = String(object.message); return message; }; - + /** * Creates a plain object from a TransactionWriteCompleted message. Also converts values to other types if specified. * @function toObject @@ -3757,12 +4033,12 @@ else object.transactionId = options.longs === String ? $util.Long.prototype.toString.call(message.transactionId) : options.longs === Number ? new $util.LongBits(message.transactionId.low >>> 0, message.transactionId.high >>> 0).toNumber() : message.transactionId; if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; return object; }; - + /** * Converts this TransactionWriteCompleted to JSON. * @function toJSON @@ -3773,20 +4049,35 @@ TransactionWriteCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for TransactionWriteCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.TransactionWriteCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransactionWriteCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.TransactionWriteCompleted"; + }; + return TransactionWriteCompleted; })(); - + Messages.TransactionCommit = (function() { - + /** * Properties of a TransactionCommit. * @memberof EventStore.Client.Messages * @interface ITransactionCommit - * @property {number|Long} transactionId TransactionCommit transactionId - * @property {boolean} requireMaster TransactionCommit requireMaster + * @property {Long} transactionId TransactionCommit transactionId + * @property {boolean} requireLeader TransactionCommit requireLeader */ - + /** * Constructs a new TransactionCommit. * @memberof EventStore.Client.Messages @@ -3801,23 +4092,23 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * TransactionCommit transactionId. - * @member {number|Long} transactionId + * @member {Long} transactionId * @memberof EventStore.Client.Messages.TransactionCommit * @instance */ TransactionCommit.prototype.transactionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** - * TransactionCommit requireMaster. - * @member {boolean} requireMaster + * TransactionCommit requireLeader. + * @member {boolean} requireLeader * @memberof EventStore.Client.Messages.TransactionCommit * @instance */ - TransactionCommit.prototype.requireMaster = false; - + TransactionCommit.prototype.requireLeader = false; + /** * Creates a new TransactionCommit instance using the specified properties. * @function create @@ -3829,7 +4120,7 @@ TransactionCommit.create = function create(properties) { return new TransactionCommit(properties); }; - + /** * Encodes the specified TransactionCommit message. Does not implicitly {@link EventStore.Client.Messages.TransactionCommit.verify|verify} messages. * @function encode @@ -3843,10 +4134,10 @@ if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transactionId); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.requireMaster); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.requireLeader); return writer; }; - + /** * Encodes the specified TransactionCommit message, length delimited. Does not implicitly {@link EventStore.Client.Messages.TransactionCommit.verify|verify} messages. * @function encodeDelimited @@ -3859,7 +4150,7 @@ TransactionCommit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a TransactionCommit message from the specified reader or buffer. * @function decode @@ -3878,12 +4169,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.transactionId = reader.int64(); - break; - case 2: - message.requireMaster = reader.bool(); - break; + case 1: { + message.transactionId = reader.int64(); + break; + } + case 2: { + message.requireLeader = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -3891,11 +4184,11 @@ } if (!message.hasOwnProperty("transactionId")) throw $util.ProtocolError("missing required 'transactionId'", { instance: message }); - if (!message.hasOwnProperty("requireMaster")) - throw $util.ProtocolError("missing required 'requireMaster'", { instance: message }); + if (!message.hasOwnProperty("requireLeader")) + throw $util.ProtocolError("missing required 'requireLeader'", { instance: message }); return message; }; - + /** * Decodes a TransactionCommit message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -3911,7 +4204,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a TransactionCommit message. * @function verify @@ -3925,11 +4218,11 @@ return "object expected"; if (!$util.isInteger(message.transactionId) && !(message.transactionId && $util.isInteger(message.transactionId.low) && $util.isInteger(message.transactionId.high))) return "transactionId: integer|Long expected"; - if (typeof message.requireMaster !== "boolean") - return "requireMaster: boolean expected"; + if (typeof message.requireLeader !== "boolean") + return "requireLeader: boolean expected"; return null; }; - + /** * Creates a TransactionCommit message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -3951,11 +4244,11 @@ message.transactionId = object.transactionId; else if (typeof object.transactionId === "object") message.transactionId = new $util.LongBits(object.transactionId.low >>> 0, object.transactionId.high >>> 0).toNumber(); - if (object.requireMaster != null) - message.requireMaster = Boolean(object.requireMaster); + if (object.requireLeader != null) + message.requireLeader = Boolean(object.requireLeader); return message; }; - + /** * Creates a plain object from a TransactionCommit message. Also converts values to other types if specified. * @function toObject @@ -3975,18 +4268,18 @@ object.transactionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.transactionId = options.longs === String ? "0" : 0; - object.requireMaster = false; + object.requireLeader = false; } if (message.transactionId != null && message.hasOwnProperty("transactionId")) if (typeof message.transactionId === "number") object.transactionId = options.longs === String ? String(message.transactionId) : message.transactionId; else object.transactionId = options.longs === String ? $util.Long.prototype.toString.call(message.transactionId) : options.longs === Number ? new $util.LongBits(message.transactionId.low >>> 0, message.transactionId.high >>> 0).toNumber() : message.transactionId; - if (message.requireMaster != null && message.hasOwnProperty("requireMaster")) - object.requireMaster = message.requireMaster; + if (message.requireLeader != null && message.hasOwnProperty("requireLeader")) + object.requireLeader = message.requireLeader; return object; }; - + /** * Converts this TransactionCommit to JSON. * @function toJSON @@ -3997,25 +4290,40 @@ TransactionCommit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for TransactionCommit + * @function getTypeUrl + * @memberof EventStore.Client.Messages.TransactionCommit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransactionCommit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.TransactionCommit"; + }; + return TransactionCommit; })(); - + Messages.TransactionCommitCompleted = (function() { - + /** * Properties of a TransactionCommitCompleted. * @memberof EventStore.Client.Messages * @interface ITransactionCommitCompleted - * @property {number|Long} transactionId TransactionCommitCompleted transactionId + * @property {Long} transactionId TransactionCommitCompleted transactionId * @property {EventStore.Client.Messages.OperationResult} result TransactionCommitCompleted result * @property {string|null} [message] TransactionCommitCompleted message - * @property {number|Long} firstEventNumber TransactionCommitCompleted firstEventNumber - * @property {number|Long} lastEventNumber TransactionCommitCompleted lastEventNumber - * @property {number|Long|null} [preparePosition] TransactionCommitCompleted preparePosition - * @property {number|Long|null} [commitPosition] TransactionCommitCompleted commitPosition + * @property {Long} firstEventNumber TransactionCommitCompleted firstEventNumber + * @property {Long} lastEventNumber TransactionCommitCompleted lastEventNumber + * @property {Long|null} [preparePosition] TransactionCommitCompleted preparePosition + * @property {Long|null} [commitPosition] TransactionCommitCompleted commitPosition */ - + /** * Constructs a new TransactionCommitCompleted. * @memberof EventStore.Client.Messages @@ -4030,15 +4338,15 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * TransactionCommitCompleted transactionId. - * @member {number|Long} transactionId + * @member {Long} transactionId * @memberof EventStore.Client.Messages.TransactionCommitCompleted * @instance */ TransactionCommitCompleted.prototype.transactionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * TransactionCommitCompleted result. * @member {EventStore.Client.Messages.OperationResult} result @@ -4046,7 +4354,7 @@ * @instance */ TransactionCommitCompleted.prototype.result = 0; - + /** * TransactionCommitCompleted message. * @member {string} message @@ -4054,39 +4362,39 @@ * @instance */ TransactionCommitCompleted.prototype.message = ""; - + /** * TransactionCommitCompleted firstEventNumber. - * @member {number|Long} firstEventNumber + * @member {Long} firstEventNumber * @memberof EventStore.Client.Messages.TransactionCommitCompleted * @instance */ TransactionCommitCompleted.prototype.firstEventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * TransactionCommitCompleted lastEventNumber. - * @member {number|Long} lastEventNumber + * @member {Long} lastEventNumber * @memberof EventStore.Client.Messages.TransactionCommitCompleted * @instance */ TransactionCommitCompleted.prototype.lastEventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * TransactionCommitCompleted preparePosition. - * @member {number|Long} preparePosition + * @member {Long} preparePosition * @memberof EventStore.Client.Messages.TransactionCommitCompleted * @instance */ TransactionCommitCompleted.prototype.preparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * TransactionCommitCompleted commitPosition. - * @member {number|Long} commitPosition + * @member {Long} commitPosition * @memberof EventStore.Client.Messages.TransactionCommitCompleted * @instance */ TransactionCommitCompleted.prototype.commitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * Creates a new TransactionCommitCompleted instance using the specified properties. * @function create @@ -4098,7 +4406,7 @@ TransactionCommitCompleted.create = function create(properties) { return new TransactionCommitCompleted(properties); }; - + /** * Encodes the specified TransactionCommitCompleted message. Does not implicitly {@link EventStore.Client.Messages.TransactionCommitCompleted.verify|verify} messages. * @function encode @@ -4113,17 +4421,17 @@ writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int64(message.transactionId); writer.uint32(/* id 2, wireType 0 =*/16).int32(message.result); - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); writer.uint32(/* id 4, wireType 0 =*/32).int64(message.firstEventNumber); writer.uint32(/* id 5, wireType 0 =*/40).int64(message.lastEventNumber); - if (message.preparePosition != null && message.hasOwnProperty("preparePosition")) + if (message.preparePosition != null && Object.hasOwnProperty.call(message, "preparePosition")) writer.uint32(/* id 6, wireType 0 =*/48).int64(message.preparePosition); - if (message.commitPosition != null && message.hasOwnProperty("commitPosition")) + if (message.commitPosition != null && Object.hasOwnProperty.call(message, "commitPosition")) writer.uint32(/* id 7, wireType 0 =*/56).int64(message.commitPosition); return writer; }; - + /** * Encodes the specified TransactionCommitCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.TransactionCommitCompleted.verify|verify} messages. * @function encodeDelimited @@ -4136,7 +4444,7 @@ TransactionCommitCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a TransactionCommitCompleted message from the specified reader or buffer. * @function decode @@ -4155,27 +4463,34 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.transactionId = reader.int64(); - break; - case 2: - message.result = reader.int32(); - break; - case 3: - message.message = reader.string(); - break; - case 4: - message.firstEventNumber = reader.int64(); - break; - case 5: - message.lastEventNumber = reader.int64(); - break; - case 6: - message.preparePosition = reader.int64(); - break; - case 7: - message.commitPosition = reader.int64(); - break; + case 1: { + message.transactionId = reader.int64(); + break; + } + case 2: { + message.result = reader.int32(); + break; + } + case 3: { + message.message = reader.string(); + break; + } + case 4: { + message.firstEventNumber = reader.int64(); + break; + } + case 5: { + message.lastEventNumber = reader.int64(); + break; + } + case 6: { + message.preparePosition = reader.int64(); + break; + } + case 7: { + message.commitPosition = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -4191,7 +4506,7 @@ throw $util.ProtocolError("missing required 'lastEventNumber'", { instance: message }); return message; }; - + /** * Decodes a TransactionCommitCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -4207,7 +4522,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a TransactionCommitCompleted message. * @function verify @@ -4249,7 +4564,7 @@ return "commitPosition: integer|Long expected"; return null; }; - + /** * Creates a TransactionCommitCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -4272,6 +4587,12 @@ else if (typeof object.transactionId === "object") message.transactionId = new $util.LongBits(object.transactionId.low >>> 0, object.transactionId.high >>> 0).toNumber(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -4345,7 +4666,7 @@ message.commitPosition = new $util.LongBits(object.commitPosition.low >>> 0, object.commitPosition.high >>> 0).toNumber(); return message; }; - + /** * Creates a plain object from a TransactionCommitCompleted message. Also converts values to other types if specified. * @function toObject @@ -4394,7 +4715,7 @@ else object.transactionId = options.longs === String ? $util.Long.prototype.toString.call(message.transactionId) : options.longs === Number ? new $util.LongBits(message.transactionId.low >>> 0, message.transactionId.high >>> 0).toNumber() : message.transactionId; if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.OperationResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.OperationResult[message.result] : message.result; if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; if (message.firstEventNumber != null && message.hasOwnProperty("firstEventNumber")) @@ -4419,7 +4740,7 @@ object.commitPosition = options.longs === String ? $util.Long.prototype.toString.call(message.commitPosition) : options.longs === Number ? new $util.LongBits(message.commitPosition.low >>> 0, message.commitPosition.high >>> 0).toNumber() : message.commitPosition; return object; }; - + /** * Converts this TransactionCommitCompleted to JSON. * @function toJSON @@ -4430,22 +4751,37 @@ TransactionCommitCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for TransactionCommitCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.TransactionCommitCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TransactionCommitCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.TransactionCommitCompleted"; + }; + return TransactionCommitCompleted; })(); - + Messages.ReadEvent = (function() { - + /** * Properties of a ReadEvent. * @memberof EventStore.Client.Messages * @interface IReadEvent * @property {string} eventStreamId ReadEvent eventStreamId - * @property {number|Long} eventNumber ReadEvent eventNumber + * @property {Long} eventNumber ReadEvent eventNumber * @property {boolean} resolveLinkTos ReadEvent resolveLinkTos - * @property {boolean} requireMaster ReadEvent requireMaster + * @property {boolean} requireLeader ReadEvent requireLeader */ - + /** * Constructs a new ReadEvent. * @memberof EventStore.Client.Messages @@ -4460,7 +4796,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * ReadEvent eventStreamId. * @member {string} eventStreamId @@ -4468,15 +4804,15 @@ * @instance */ ReadEvent.prototype.eventStreamId = ""; - + /** * ReadEvent eventNumber. - * @member {number|Long} eventNumber + * @member {Long} eventNumber * @memberof EventStore.Client.Messages.ReadEvent * @instance */ ReadEvent.prototype.eventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadEvent resolveLinkTos. * @member {boolean} resolveLinkTos @@ -4484,15 +4820,15 @@ * @instance */ ReadEvent.prototype.resolveLinkTos = false; - + /** - * ReadEvent requireMaster. - * @member {boolean} requireMaster + * ReadEvent requireLeader. + * @member {boolean} requireLeader * @memberof EventStore.Client.Messages.ReadEvent * @instance */ - ReadEvent.prototype.requireMaster = false; - + ReadEvent.prototype.requireLeader = false; + /** * Creates a new ReadEvent instance using the specified properties. * @function create @@ -4504,7 +4840,7 @@ ReadEvent.create = function create(properties) { return new ReadEvent(properties); }; - + /** * Encodes the specified ReadEvent message. Does not implicitly {@link EventStore.Client.Messages.ReadEvent.verify|verify} messages. * @function encode @@ -4520,10 +4856,10 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventStreamId); writer.uint32(/* id 2, wireType 0 =*/16).int64(message.eventNumber); writer.uint32(/* id 3, wireType 0 =*/24).bool(message.resolveLinkTos); - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.requireMaster); + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.requireLeader); return writer; }; - + /** * Encodes the specified ReadEvent message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ReadEvent.verify|verify} messages. * @function encodeDelimited @@ -4536,7 +4872,7 @@ ReadEvent.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ReadEvent message from the specified reader or buffer. * @function decode @@ -4555,18 +4891,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventStreamId = reader.string(); - break; - case 2: - message.eventNumber = reader.int64(); - break; - case 3: - message.resolveLinkTos = reader.bool(); - break; - case 4: - message.requireMaster = reader.bool(); - break; + case 1: { + message.eventStreamId = reader.string(); + break; + } + case 2: { + message.eventNumber = reader.int64(); + break; + } + case 3: { + message.resolveLinkTos = reader.bool(); + break; + } + case 4: { + message.requireLeader = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -4578,11 +4918,11 @@ throw $util.ProtocolError("missing required 'eventNumber'", { instance: message }); if (!message.hasOwnProperty("resolveLinkTos")) throw $util.ProtocolError("missing required 'resolveLinkTos'", { instance: message }); - if (!message.hasOwnProperty("requireMaster")) - throw $util.ProtocolError("missing required 'requireMaster'", { instance: message }); + if (!message.hasOwnProperty("requireLeader")) + throw $util.ProtocolError("missing required 'requireLeader'", { instance: message }); return message; }; - + /** * Decodes a ReadEvent message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -4598,7 +4938,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ReadEvent message. * @function verify @@ -4616,11 +4956,11 @@ return "eventNumber: integer|Long expected"; if (typeof message.resolveLinkTos !== "boolean") return "resolveLinkTos: boolean expected"; - if (typeof message.requireMaster !== "boolean") - return "requireMaster: boolean expected"; + if (typeof message.requireLeader !== "boolean") + return "requireLeader: boolean expected"; return null; }; - + /** * Creates a ReadEvent message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -4646,11 +4986,11 @@ message.eventNumber = new $util.LongBits(object.eventNumber.low >>> 0, object.eventNumber.high >>> 0).toNumber(); if (object.resolveLinkTos != null) message.resolveLinkTos = Boolean(object.resolveLinkTos); - if (object.requireMaster != null) - message.requireMaster = Boolean(object.requireMaster); + if (object.requireLeader != null) + message.requireLeader = Boolean(object.requireLeader); return message; }; - + /** * Creates a plain object from a ReadEvent message. Also converts values to other types if specified. * @function toObject @@ -4672,7 +5012,7 @@ } else object.eventNumber = options.longs === String ? "0" : 0; object.resolveLinkTos = false; - object.requireMaster = false; + object.requireLeader = false; } if (message.eventStreamId != null && message.hasOwnProperty("eventStreamId")) object.eventStreamId = message.eventStreamId; @@ -4683,11 +5023,11 @@ object.eventNumber = options.longs === String ? $util.Long.prototype.toString.call(message.eventNumber) : options.longs === Number ? new $util.LongBits(message.eventNumber.low >>> 0, message.eventNumber.high >>> 0).toNumber() : message.eventNumber; if (message.resolveLinkTos != null && message.hasOwnProperty("resolveLinkTos")) object.resolveLinkTos = message.resolveLinkTos; - if (message.requireMaster != null && message.hasOwnProperty("requireMaster")) - object.requireMaster = message.requireMaster; + if (message.requireLeader != null && message.hasOwnProperty("requireLeader")) + object.requireLeader = message.requireLeader; return object; }; - + /** * Converts this ReadEvent to JSON. * @function toJSON @@ -4698,12 +5038,27 @@ ReadEvent.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ReadEvent + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ReadEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReadEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ReadEvent"; + }; + return ReadEvent; })(); - + Messages.ReadEventCompleted = (function() { - + /** * Properties of a ReadEventCompleted. * @memberof EventStore.Client.Messages @@ -4712,7 +5067,7 @@ * @property {EventStore.Client.Messages.IResolvedIndexedEvent} event ReadEventCompleted event * @property {string|null} [error] ReadEventCompleted error */ - + /** * Constructs a new ReadEventCompleted. * @memberof EventStore.Client.Messages @@ -4727,7 +5082,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * ReadEventCompleted result. * @member {EventStore.Client.Messages.ReadEventCompleted.ReadEventResult} result @@ -4735,7 +5090,7 @@ * @instance */ ReadEventCompleted.prototype.result = 0; - + /** * ReadEventCompleted event. * @member {EventStore.Client.Messages.IResolvedIndexedEvent} event @@ -4743,7 +5098,7 @@ * @instance */ ReadEventCompleted.prototype.event = null; - + /** * ReadEventCompleted error. * @member {string} error @@ -4751,7 +5106,7 @@ * @instance */ ReadEventCompleted.prototype.error = ""; - + /** * Creates a new ReadEventCompleted instance using the specified properties. * @function create @@ -4763,7 +5118,7 @@ ReadEventCompleted.create = function create(properties) { return new ReadEventCompleted(properties); }; - + /** * Encodes the specified ReadEventCompleted message. Does not implicitly {@link EventStore.Client.Messages.ReadEventCompleted.verify|verify} messages. * @function encode @@ -4778,11 +5133,11 @@ writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); $root.EventStore.Client.Messages.ResolvedIndexedEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.error); return writer; }; - + /** * Encodes the specified ReadEventCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ReadEventCompleted.verify|verify} messages. * @function encodeDelimited @@ -4795,7 +5150,7 @@ ReadEventCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ReadEventCompleted message from the specified reader or buffer. * @function decode @@ -4814,15 +5169,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - case 2: - message.event = $root.EventStore.Client.Messages.ResolvedIndexedEvent.decode(reader, reader.uint32()); - break; - case 3: - message.error = reader.string(); - break; + case 1: { + message.result = reader.int32(); + break; + } + case 2: { + message.event = $root.EventStore.Client.Messages.ResolvedIndexedEvent.decode(reader, reader.uint32()); + break; + } + case 3: { + message.error = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -4834,7 +5192,7 @@ throw $util.ProtocolError("missing required 'event'", { instance: message }); return message; }; - + /** * Decodes a ReadEventCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -4850,7 +5208,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ReadEventCompleted message. * @function verify @@ -4883,7 +5241,7 @@ return "error: string expected"; return null; }; - + /** * Creates a ReadEventCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -4897,6 +5255,12 @@ return object; var message = new $root.EventStore.Client.Messages.ReadEventCompleted(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -4931,7 +5295,7 @@ message.error = String(object.error); return message; }; - + /** * Creates a plain object from a ReadEventCompleted message. Also converts values to other types if specified. * @function toObject @@ -4951,14 +5315,14 @@ object.error = ""; } if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.ReadEventCompleted.ReadEventResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.ReadEventCompleted.ReadEventResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.ReadEventCompleted.ReadEventResult[message.result] : message.result; if (message.event != null && message.hasOwnProperty("event")) object.event = $root.EventStore.Client.Messages.ResolvedIndexedEvent.toObject(message.event, options); if (message.error != null && message.hasOwnProperty("error")) object.error = message.error; return object; }; - + /** * Converts this ReadEventCompleted to JSON. * @function toJSON @@ -4969,11 +5333,26 @@ ReadEventCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ReadEventCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ReadEventCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReadEventCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ReadEventCompleted"; + }; + /** * ReadEventResult enum. * @name EventStore.Client.Messages.ReadEventCompleted.ReadEventResult - * @enum {string} + * @enum {number} * @property {number} Success=0 Success value * @property {number} NotFound=1 NotFound value * @property {number} NoStream=2 NoStream value @@ -4991,23 +5370,23 @@ values[valuesById[5] = "AccessDenied"] = 5; return values; })(); - + return ReadEventCompleted; })(); - + Messages.ReadStreamEvents = (function() { - + /** * Properties of a ReadStreamEvents. * @memberof EventStore.Client.Messages * @interface IReadStreamEvents * @property {string} eventStreamId ReadStreamEvents eventStreamId - * @property {number|Long} fromEventNumber ReadStreamEvents fromEventNumber + * @property {Long} fromEventNumber ReadStreamEvents fromEventNumber * @property {number} maxCount ReadStreamEvents maxCount * @property {boolean} resolveLinkTos ReadStreamEvents resolveLinkTos - * @property {boolean} requireMaster ReadStreamEvents requireMaster + * @property {boolean} requireLeader ReadStreamEvents requireLeader */ - + /** * Constructs a new ReadStreamEvents. * @memberof EventStore.Client.Messages @@ -5022,7 +5401,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * ReadStreamEvents eventStreamId. * @member {string} eventStreamId @@ -5030,15 +5409,15 @@ * @instance */ ReadStreamEvents.prototype.eventStreamId = ""; - + /** * ReadStreamEvents fromEventNumber. - * @member {number|Long} fromEventNumber + * @member {Long} fromEventNumber * @memberof EventStore.Client.Messages.ReadStreamEvents * @instance */ ReadStreamEvents.prototype.fromEventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadStreamEvents maxCount. * @member {number} maxCount @@ -5046,7 +5425,7 @@ * @instance */ ReadStreamEvents.prototype.maxCount = 0; - + /** * ReadStreamEvents resolveLinkTos. * @member {boolean} resolveLinkTos @@ -5054,15 +5433,15 @@ * @instance */ ReadStreamEvents.prototype.resolveLinkTos = false; - + /** - * ReadStreamEvents requireMaster. - * @member {boolean} requireMaster + * ReadStreamEvents requireLeader. + * @member {boolean} requireLeader * @memberof EventStore.Client.Messages.ReadStreamEvents * @instance */ - ReadStreamEvents.prototype.requireMaster = false; - + ReadStreamEvents.prototype.requireLeader = false; + /** * Creates a new ReadStreamEvents instance using the specified properties. * @function create @@ -5074,7 +5453,7 @@ ReadStreamEvents.create = function create(properties) { return new ReadStreamEvents(properties); }; - + /** * Encodes the specified ReadStreamEvents message. Does not implicitly {@link EventStore.Client.Messages.ReadStreamEvents.verify|verify} messages. * @function encode @@ -5091,10 +5470,10 @@ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.fromEventNumber); writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxCount); writer.uint32(/* id 4, wireType 0 =*/32).bool(message.resolveLinkTos); - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.requireMaster); + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.requireLeader); return writer; }; - + /** * Encodes the specified ReadStreamEvents message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ReadStreamEvents.verify|verify} messages. * @function encodeDelimited @@ -5107,7 +5486,7 @@ ReadStreamEvents.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ReadStreamEvents message from the specified reader or buffer. * @function decode @@ -5126,21 +5505,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventStreamId = reader.string(); - break; - case 2: - message.fromEventNumber = reader.int64(); - break; - case 3: - message.maxCount = reader.int32(); - break; - case 4: - message.resolveLinkTos = reader.bool(); - break; - case 5: - message.requireMaster = reader.bool(); - break; + case 1: { + message.eventStreamId = reader.string(); + break; + } + case 2: { + message.fromEventNumber = reader.int64(); + break; + } + case 3: { + message.maxCount = reader.int32(); + break; + } + case 4: { + message.resolveLinkTos = reader.bool(); + break; + } + case 5: { + message.requireLeader = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -5154,11 +5538,11 @@ throw $util.ProtocolError("missing required 'maxCount'", { instance: message }); if (!message.hasOwnProperty("resolveLinkTos")) throw $util.ProtocolError("missing required 'resolveLinkTos'", { instance: message }); - if (!message.hasOwnProperty("requireMaster")) - throw $util.ProtocolError("missing required 'requireMaster'", { instance: message }); + if (!message.hasOwnProperty("requireLeader")) + throw $util.ProtocolError("missing required 'requireLeader'", { instance: message }); return message; }; - + /** * Decodes a ReadStreamEvents message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -5174,7 +5558,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ReadStreamEvents message. * @function verify @@ -5194,11 +5578,11 @@ return "maxCount: integer expected"; if (typeof message.resolveLinkTos !== "boolean") return "resolveLinkTos: boolean expected"; - if (typeof message.requireMaster !== "boolean") - return "requireMaster: boolean expected"; + if (typeof message.requireLeader !== "boolean") + return "requireLeader: boolean expected"; return null; }; - + /** * Creates a ReadStreamEvents message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -5226,11 +5610,11 @@ message.maxCount = object.maxCount | 0; if (object.resolveLinkTos != null) message.resolveLinkTos = Boolean(object.resolveLinkTos); - if (object.requireMaster != null) - message.requireMaster = Boolean(object.requireMaster); + if (object.requireLeader != null) + message.requireLeader = Boolean(object.requireLeader); return message; }; - + /** * Creates a plain object from a ReadStreamEvents message. Also converts values to other types if specified. * @function toObject @@ -5253,7 +5637,7 @@ object.fromEventNumber = options.longs === String ? "0" : 0; object.maxCount = 0; object.resolveLinkTos = false; - object.requireMaster = false; + object.requireLeader = false; } if (message.eventStreamId != null && message.hasOwnProperty("eventStreamId")) object.eventStreamId = message.eventStreamId; @@ -5266,11 +5650,11 @@ object.maxCount = message.maxCount; if (message.resolveLinkTos != null && message.hasOwnProperty("resolveLinkTos")) object.resolveLinkTos = message.resolveLinkTos; - if (message.requireMaster != null && message.hasOwnProperty("requireMaster")) - object.requireMaster = message.requireMaster; + if (message.requireLeader != null && message.hasOwnProperty("requireLeader")) + object.requireLeader = message.requireLeader; return object; }; - + /** * Converts this ReadStreamEvents to JSON. * @function toJSON @@ -5281,25 +5665,40 @@ ReadStreamEvents.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ReadStreamEvents + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ReadStreamEvents + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReadStreamEvents.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ReadStreamEvents"; + }; + return ReadStreamEvents; })(); - + Messages.ReadStreamEventsCompleted = (function() { - + /** * Properties of a ReadStreamEventsCompleted. * @memberof EventStore.Client.Messages * @interface IReadStreamEventsCompleted * @property {Array.|null} [events] ReadStreamEventsCompleted events * @property {EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult} result ReadStreamEventsCompleted result - * @property {number|Long} nextEventNumber ReadStreamEventsCompleted nextEventNumber - * @property {number|Long} lastEventNumber ReadStreamEventsCompleted lastEventNumber + * @property {Long} nextEventNumber ReadStreamEventsCompleted nextEventNumber + * @property {Long} lastEventNumber ReadStreamEventsCompleted lastEventNumber * @property {boolean} isEndOfStream ReadStreamEventsCompleted isEndOfStream - * @property {number|Long} lastCommitPosition ReadStreamEventsCompleted lastCommitPosition + * @property {Long} lastCommitPosition ReadStreamEventsCompleted lastCommitPosition * @property {string|null} [error] ReadStreamEventsCompleted error */ - + /** * Constructs a new ReadStreamEventsCompleted. * @memberof EventStore.Client.Messages @@ -5315,7 +5714,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * ReadStreamEventsCompleted events. * @member {Array.} events @@ -5323,7 +5722,7 @@ * @instance */ ReadStreamEventsCompleted.prototype.events = $util.emptyArray; - + /** * ReadStreamEventsCompleted result. * @member {EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult} result @@ -5331,23 +5730,23 @@ * @instance */ ReadStreamEventsCompleted.prototype.result = 0; - + /** * ReadStreamEventsCompleted nextEventNumber. - * @member {number|Long} nextEventNumber + * @member {Long} nextEventNumber * @memberof EventStore.Client.Messages.ReadStreamEventsCompleted * @instance */ ReadStreamEventsCompleted.prototype.nextEventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadStreamEventsCompleted lastEventNumber. - * @member {number|Long} lastEventNumber + * @member {Long} lastEventNumber * @memberof EventStore.Client.Messages.ReadStreamEventsCompleted * @instance */ ReadStreamEventsCompleted.prototype.lastEventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadStreamEventsCompleted isEndOfStream. * @member {boolean} isEndOfStream @@ -5355,15 +5754,15 @@ * @instance */ ReadStreamEventsCompleted.prototype.isEndOfStream = false; - + /** * ReadStreamEventsCompleted lastCommitPosition. - * @member {number|Long} lastCommitPosition + * @member {Long} lastCommitPosition * @memberof EventStore.Client.Messages.ReadStreamEventsCompleted * @instance */ ReadStreamEventsCompleted.prototype.lastCommitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadStreamEventsCompleted error. * @member {string} error @@ -5371,7 +5770,7 @@ * @instance */ ReadStreamEventsCompleted.prototype.error = ""; - + /** * Creates a new ReadStreamEventsCompleted instance using the specified properties. * @function create @@ -5383,7 +5782,7 @@ ReadStreamEventsCompleted.create = function create(properties) { return new ReadStreamEventsCompleted(properties); }; - + /** * Encodes the specified ReadStreamEventsCompleted message. Does not implicitly {@link EventStore.Client.Messages.ReadStreamEventsCompleted.verify|verify} messages. * @function encode @@ -5404,11 +5803,11 @@ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.lastEventNumber); writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isEndOfStream); writer.uint32(/* id 6, wireType 0 =*/48).int64(message.lastCommitPosition); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.error); return writer; }; - + /** * Encodes the specified ReadStreamEventsCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ReadStreamEventsCompleted.verify|verify} messages. * @function encodeDelimited @@ -5421,7 +5820,7 @@ ReadStreamEventsCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ReadStreamEventsCompleted message from the specified reader or buffer. * @function decode @@ -5440,29 +5839,36 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.EventStore.Client.Messages.ResolvedIndexedEvent.decode(reader, reader.uint32())); - break; - case 2: - message.result = reader.int32(); - break; - case 3: - message.nextEventNumber = reader.int64(); - break; - case 4: - message.lastEventNumber = reader.int64(); - break; - case 5: - message.isEndOfStream = reader.bool(); - break; - case 6: - message.lastCommitPosition = reader.int64(); - break; - case 7: - message.error = reader.string(); - break; + case 1: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.EventStore.Client.Messages.ResolvedIndexedEvent.decode(reader, reader.uint32())); + break; + } + case 2: { + message.result = reader.int32(); + break; + } + case 3: { + message.nextEventNumber = reader.int64(); + break; + } + case 4: { + message.lastEventNumber = reader.int64(); + break; + } + case 5: { + message.isEndOfStream = reader.bool(); + break; + } + case 6: { + message.lastCommitPosition = reader.int64(); + break; + } + case 7: { + message.error = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -5480,7 +5886,7 @@ throw $util.ProtocolError("missing required 'lastCommitPosition'", { instance: message }); return message; }; - + /** * Decodes a ReadStreamEventsCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -5496,7 +5902,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ReadStreamEventsCompleted message. * @function verify @@ -5541,7 +5947,7 @@ return "error: string expected"; return null; }; - + /** * Creates a ReadStreamEventsCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -5565,6 +5971,12 @@ } } switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -5623,7 +6035,7 @@ message.error = String(object.error); return message; }; - + /** * Creates a plain object from a ReadStreamEventsCompleted message. Also converts values to other types if specified. * @function toObject @@ -5665,7 +6077,7 @@ object.events[j] = $root.EventStore.Client.Messages.ResolvedIndexedEvent.toObject(message.events[j], options); } if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult[message.result] : message.result; if (message.nextEventNumber != null && message.hasOwnProperty("nextEventNumber")) if (typeof message.nextEventNumber === "number") object.nextEventNumber = options.longs === String ? String(message.nextEventNumber) : message.nextEventNumber; @@ -5687,7 +6099,7 @@ object.error = message.error; return object; }; - + /** * Converts this ReadStreamEventsCompleted to JSON. * @function toJSON @@ -5698,11 +6110,26 @@ ReadStreamEventsCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ReadStreamEventsCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ReadStreamEventsCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReadStreamEventsCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ReadStreamEventsCompleted"; + }; + /** * ReadStreamResult enum. * @name EventStore.Client.Messages.ReadStreamEventsCompleted.ReadStreamResult - * @enum {string} + * @enum {number} * @property {number} Success=0 Success value * @property {number} NoStream=1 NoStream value * @property {number} StreamDeleted=2 StreamDeleted value @@ -5720,23 +6147,23 @@ values[valuesById[5] = "AccessDenied"] = 5; return values; })(); - + return ReadStreamEventsCompleted; })(); - + Messages.ReadAllEvents = (function() { - + /** * Properties of a ReadAllEvents. * @memberof EventStore.Client.Messages * @interface IReadAllEvents - * @property {number|Long} commitPosition ReadAllEvents commitPosition - * @property {number|Long} preparePosition ReadAllEvents preparePosition + * @property {Long} commitPosition ReadAllEvents commitPosition + * @property {Long} preparePosition ReadAllEvents preparePosition * @property {number} maxCount ReadAllEvents maxCount * @property {boolean} resolveLinkTos ReadAllEvents resolveLinkTos - * @property {boolean} requireMaster ReadAllEvents requireMaster + * @property {boolean} requireLeader ReadAllEvents requireLeader */ - + /** * Constructs a new ReadAllEvents. * @memberof EventStore.Client.Messages @@ -5751,23 +6178,23 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * ReadAllEvents commitPosition. - * @member {number|Long} commitPosition + * @member {Long} commitPosition * @memberof EventStore.Client.Messages.ReadAllEvents * @instance */ ReadAllEvents.prototype.commitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadAllEvents preparePosition. - * @member {number|Long} preparePosition + * @member {Long} preparePosition * @memberof EventStore.Client.Messages.ReadAllEvents * @instance */ ReadAllEvents.prototype.preparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadAllEvents maxCount. * @member {number} maxCount @@ -5775,7 +6202,7 @@ * @instance */ ReadAllEvents.prototype.maxCount = 0; - + /** * ReadAllEvents resolveLinkTos. * @member {boolean} resolveLinkTos @@ -5783,15 +6210,15 @@ * @instance */ ReadAllEvents.prototype.resolveLinkTos = false; - + /** - * ReadAllEvents requireMaster. - * @member {boolean} requireMaster + * ReadAllEvents requireLeader. + * @member {boolean} requireLeader * @memberof EventStore.Client.Messages.ReadAllEvents * @instance */ - ReadAllEvents.prototype.requireMaster = false; - + ReadAllEvents.prototype.requireLeader = false; + /** * Creates a new ReadAllEvents instance using the specified properties. * @function create @@ -5803,7 +6230,7 @@ ReadAllEvents.create = function create(properties) { return new ReadAllEvents(properties); }; - + /** * Encodes the specified ReadAllEvents message. Does not implicitly {@link EventStore.Client.Messages.ReadAllEvents.verify|verify} messages. * @function encode @@ -5820,10 +6247,10 @@ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.preparePosition); writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxCount); writer.uint32(/* id 4, wireType 0 =*/32).bool(message.resolveLinkTos); - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.requireMaster); + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.requireLeader); return writer; }; - + /** * Encodes the specified ReadAllEvents message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ReadAllEvents.verify|verify} messages. * @function encodeDelimited @@ -5836,7 +6263,7 @@ ReadAllEvents.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ReadAllEvents message from the specified reader or buffer. * @function decode @@ -5855,21 +6282,26 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.commitPosition = reader.int64(); - break; - case 2: - message.preparePosition = reader.int64(); - break; - case 3: - message.maxCount = reader.int32(); - break; - case 4: - message.resolveLinkTos = reader.bool(); - break; - case 5: - message.requireMaster = reader.bool(); - break; + case 1: { + message.commitPosition = reader.int64(); + break; + } + case 2: { + message.preparePosition = reader.int64(); + break; + } + case 3: { + message.maxCount = reader.int32(); + break; + } + case 4: { + message.resolveLinkTos = reader.bool(); + break; + } + case 5: { + message.requireLeader = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -5883,11 +6315,11 @@ throw $util.ProtocolError("missing required 'maxCount'", { instance: message }); if (!message.hasOwnProperty("resolveLinkTos")) throw $util.ProtocolError("missing required 'resolveLinkTos'", { instance: message }); - if (!message.hasOwnProperty("requireMaster")) - throw $util.ProtocolError("missing required 'requireMaster'", { instance: message }); + if (!message.hasOwnProperty("requireLeader")) + throw $util.ProtocolError("missing required 'requireLeader'", { instance: message }); return message; }; - + /** * Decodes a ReadAllEvents message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -5903,7 +6335,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ReadAllEvents message. * @function verify @@ -5923,11 +6355,11 @@ return "maxCount: integer expected"; if (typeof message.resolveLinkTos !== "boolean") return "resolveLinkTos: boolean expected"; - if (typeof message.requireMaster !== "boolean") - return "requireMaster: boolean expected"; + if (typeof message.requireLeader !== "boolean") + return "requireLeader: boolean expected"; return null; }; - + /** * Creates a ReadAllEvents message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -5962,11 +6394,11 @@ message.maxCount = object.maxCount | 0; if (object.resolveLinkTos != null) message.resolveLinkTos = Boolean(object.resolveLinkTos); - if (object.requireMaster != null) - message.requireMaster = Boolean(object.requireMaster); + if (object.requireLeader != null) + message.requireLeader = Boolean(object.requireLeader); return message; }; - + /** * Creates a plain object from a ReadAllEvents message. Also converts values to other types if specified. * @function toObject @@ -5993,7 +6425,7 @@ object.preparePosition = options.longs === String ? "0" : 0; object.maxCount = 0; object.resolveLinkTos = false; - object.requireMaster = false; + object.requireLeader = false; } if (message.commitPosition != null && message.hasOwnProperty("commitPosition")) if (typeof message.commitPosition === "number") @@ -6009,11 +6441,11 @@ object.maxCount = message.maxCount; if (message.resolveLinkTos != null && message.hasOwnProperty("resolveLinkTos")) object.resolveLinkTos = message.resolveLinkTos; - if (message.requireMaster != null && message.hasOwnProperty("requireMaster")) - object.requireMaster = message.requireMaster; + if (message.requireLeader != null && message.hasOwnProperty("requireLeader")) + object.requireLeader = message.requireLeader; return object; }; - + /** * Converts this ReadAllEvents to JSON. * @function toJSON @@ -6024,25 +6456,40 @@ ReadAllEvents.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ReadAllEvents + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ReadAllEvents + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReadAllEvents.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ReadAllEvents"; + }; + return ReadAllEvents; })(); - + Messages.ReadAllEventsCompleted = (function() { - + /** * Properties of a ReadAllEventsCompleted. * @memberof EventStore.Client.Messages * @interface IReadAllEventsCompleted - * @property {number|Long} commitPosition ReadAllEventsCompleted commitPosition - * @property {number|Long} preparePosition ReadAllEventsCompleted preparePosition + * @property {Long} commitPosition ReadAllEventsCompleted commitPosition + * @property {Long} preparePosition ReadAllEventsCompleted preparePosition * @property {Array.|null} [events] ReadAllEventsCompleted events - * @property {number|Long} nextCommitPosition ReadAllEventsCompleted nextCommitPosition - * @property {number|Long} nextPreparePosition ReadAllEventsCompleted nextPreparePosition + * @property {Long} nextCommitPosition ReadAllEventsCompleted nextCommitPosition + * @property {Long} nextPreparePosition ReadAllEventsCompleted nextPreparePosition * @property {EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult|null} [result] ReadAllEventsCompleted result * @property {string|null} [error] ReadAllEventsCompleted error */ - + /** * Constructs a new ReadAllEventsCompleted. * @memberof EventStore.Client.Messages @@ -6058,23 +6505,23 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * ReadAllEventsCompleted commitPosition. - * @member {number|Long} commitPosition + * @member {Long} commitPosition * @memberof EventStore.Client.Messages.ReadAllEventsCompleted * @instance */ ReadAllEventsCompleted.prototype.commitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadAllEventsCompleted preparePosition. - * @member {number|Long} preparePosition + * @member {Long} preparePosition * @memberof EventStore.Client.Messages.ReadAllEventsCompleted * @instance */ ReadAllEventsCompleted.prototype.preparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadAllEventsCompleted events. * @member {Array.} events @@ -6082,23 +6529,23 @@ * @instance */ ReadAllEventsCompleted.prototype.events = $util.emptyArray; - + /** * ReadAllEventsCompleted nextCommitPosition. - * @member {number|Long} nextCommitPosition + * @member {Long} nextCommitPosition * @memberof EventStore.Client.Messages.ReadAllEventsCompleted * @instance */ ReadAllEventsCompleted.prototype.nextCommitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadAllEventsCompleted nextPreparePosition. - * @member {number|Long} nextPreparePosition + * @member {Long} nextPreparePosition * @memberof EventStore.Client.Messages.ReadAllEventsCompleted * @instance */ ReadAllEventsCompleted.prototype.nextPreparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * ReadAllEventsCompleted result. * @member {EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult} result @@ -6106,7 +6553,7 @@ * @instance */ ReadAllEventsCompleted.prototype.result = 0; - + /** * ReadAllEventsCompleted error. * @member {string} error @@ -6114,7 +6561,7 @@ * @instance */ ReadAllEventsCompleted.prototype.error = ""; - + /** * Creates a new ReadAllEventsCompleted instance using the specified properties. * @function create @@ -6126,7 +6573,7 @@ ReadAllEventsCompleted.create = function create(properties) { return new ReadAllEventsCompleted(properties); }; - + /** * Encodes the specified ReadAllEventsCompleted message. Does not implicitly {@link EventStore.Client.Messages.ReadAllEventsCompleted.verify|verify} messages. * @function encode @@ -6146,13 +6593,13 @@ $root.EventStore.Client.Messages.ResolvedEvent.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); writer.uint32(/* id 4, wireType 0 =*/32).int64(message.nextCommitPosition); writer.uint32(/* id 5, wireType 0 =*/40).int64(message.nextPreparePosition); - if (message.result != null && message.hasOwnProperty("result")) + if (message.result != null && Object.hasOwnProperty.call(message, "result")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.result); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && Object.hasOwnProperty.call(message, "error")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.error); return writer; }; - + /** * Encodes the specified ReadAllEventsCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ReadAllEventsCompleted.verify|verify} messages. * @function encodeDelimited @@ -6165,7 +6612,7 @@ ReadAllEventsCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ReadAllEventsCompleted message from the specified reader or buffer. * @function decode @@ -6184,29 +6631,36 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.commitPosition = reader.int64(); - break; - case 2: - message.preparePosition = reader.int64(); - break; - case 3: - if (!(message.events && message.events.length)) - message.events = []; - message.events.push($root.EventStore.Client.Messages.ResolvedEvent.decode(reader, reader.uint32())); - break; - case 4: - message.nextCommitPosition = reader.int64(); - break; - case 5: - message.nextPreparePosition = reader.int64(); - break; - case 6: - message.result = reader.int32(); - break; - case 7: - message.error = reader.string(); - break; + case 1: { + message.commitPosition = reader.int64(); + break; + } + case 2: { + message.preparePosition = reader.int64(); + break; + } + case 3: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.EventStore.Client.Messages.ResolvedEvent.decode(reader, reader.uint32())); + break; + } + case 4: { + message.nextCommitPosition = reader.int64(); + break; + } + case 5: { + message.nextPreparePosition = reader.int64(); + break; + } + case 6: { + message.result = reader.int32(); + break; + } + case 7: { + message.error = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -6222,7 +6676,7 @@ throw $util.ProtocolError("missing required 'nextPreparePosition'", { instance: message }); return message; }; - + /** * Decodes a ReadAllEventsCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -6238,7 +6692,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ReadAllEventsCompleted message. * @function verify @@ -6282,7 +6736,7 @@ return "error: string expected"; return null; }; - + /** * Creates a ReadAllEventsCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -6342,6 +6796,12 @@ else if (typeof object.nextPreparePosition === "object") message.nextPreparePosition = new $util.LongBits(object.nextPreparePosition.low >>> 0, object.nextPreparePosition.high >>> 0).toNumber(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -6363,7 +6823,7 @@ message.error = String(object.error); return message; }; - + /** * Creates a plain object from a ReadAllEventsCompleted message. Also converts values to other types if specified. * @function toObject @@ -6429,12 +6889,12 @@ else object.nextPreparePosition = options.longs === String ? $util.Long.prototype.toString.call(message.nextPreparePosition) : options.longs === Number ? new $util.LongBits(message.nextPreparePosition.low >>> 0, message.nextPreparePosition.high >>> 0).toNumber() : message.nextPreparePosition; if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult[message.result] : message.result; if (message.error != null && message.hasOwnProperty("error")) object.error = message.error; return object; }; - + /** * Converts this ReadAllEventsCompleted to JSON. * @function toJSON @@ -6445,11 +6905,26 @@ ReadAllEventsCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ReadAllEventsCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ReadAllEventsCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReadAllEventsCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ReadAllEventsCompleted"; + }; + /** * ReadAllResult enum. * @name EventStore.Client.Messages.ReadAllEventsCompleted.ReadAllResult - * @enum {string} + * @enum {number} * @property {number} Success=0 Success value * @property {number} NotModified=1 NotModified value * @property {number} Error=2 Error value @@ -6463,12 +6938,1211 @@ values[valuesById[3] = "AccessDenied"] = 3; return values; })(); - + return ReadAllEventsCompleted; })(); - + + Messages.Filter = (function() { + + /** + * Properties of a Filter. + * @memberof EventStore.Client.Messages + * @interface IFilter + * @property {EventStore.Client.Messages.Filter.FilterContext} context Filter context + * @property {EventStore.Client.Messages.Filter.FilterType} type Filter type + * @property {Array.|null} [data] Filter data + */ + + /** + * Constructs a new Filter. + * @memberof EventStore.Client.Messages + * @classdesc Represents a Filter. + * @implements IFilter + * @constructor + * @param {EventStore.Client.Messages.IFilter=} [properties] Properties to set + */ + function Filter(properties) { + this.data = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Filter context. + * @member {EventStore.Client.Messages.Filter.FilterContext} context + * @memberof EventStore.Client.Messages.Filter + * @instance + */ + Filter.prototype.context = 0; + + /** + * Filter type. + * @member {EventStore.Client.Messages.Filter.FilterType} type + * @memberof EventStore.Client.Messages.Filter + * @instance + */ + Filter.prototype.type = 0; + + /** + * Filter data. + * @member {Array.} data + * @memberof EventStore.Client.Messages.Filter + * @instance + */ + Filter.prototype.data = $util.emptyArray; + + /** + * Creates a new Filter instance using the specified properties. + * @function create + * @memberof EventStore.Client.Messages.Filter + * @static + * @param {EventStore.Client.Messages.IFilter=} [properties] Properties to set + * @returns {EventStore.Client.Messages.Filter} Filter instance + */ + Filter.create = function create(properties) { + return new Filter(properties); + }; + + /** + * Encodes the specified Filter message. Does not implicitly {@link EventStore.Client.Messages.Filter.verify|verify} messages. + * @function encode + * @memberof EventStore.Client.Messages.Filter + * @static + * @param {EventStore.Client.Messages.IFilter} message Filter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Filter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.context); + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); + if (message.data != null && message.data.length) + for (var i = 0; i < message.data.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.data[i]); + return writer; + }; + + /** + * Encodes the specified Filter message, length delimited. Does not implicitly {@link EventStore.Client.Messages.Filter.verify|verify} messages. + * @function encodeDelimited + * @memberof EventStore.Client.Messages.Filter + * @static + * @param {EventStore.Client.Messages.IFilter} message Filter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Filter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Filter message from the specified reader or buffer. + * @function decode + * @memberof EventStore.Client.Messages.Filter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {EventStore.Client.Messages.Filter} Filter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Filter.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventStore.Client.Messages.Filter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.context = reader.int32(); + break; + } + case 2: { + message.type = reader.int32(); + break; + } + case 3: { + if (!(message.data && message.data.length)) + message.data = []; + message.data.push(reader.string()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("context")) + throw $util.ProtocolError("missing required 'context'", { instance: message }); + if (!message.hasOwnProperty("type")) + throw $util.ProtocolError("missing required 'type'", { instance: message }); + return message; + }; + + /** + * Decodes a Filter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof EventStore.Client.Messages.Filter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {EventStore.Client.Messages.Filter} Filter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Filter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Filter message. + * @function verify + * @memberof EventStore.Client.Messages.Filter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Filter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + switch (message.context) { + default: + return "context: enum value expected"; + case 0: + case 1: + break; + } + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + break; + } + if (message.data != null && message.hasOwnProperty("data")) { + if (!Array.isArray(message.data)) + return "data: array expected"; + for (var i = 0; i < message.data.length; ++i) + if (!$util.isString(message.data[i])) + return "data: string[] expected"; + } + return null; + }; + + /** + * Creates a Filter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof EventStore.Client.Messages.Filter + * @static + * @param {Object.} object Plain object + * @returns {EventStore.Client.Messages.Filter} Filter + */ + Filter.fromObject = function fromObject(object) { + if (object instanceof $root.EventStore.Client.Messages.Filter) + return object; + var message = new $root.EventStore.Client.Messages.Filter(); + switch (object.context) { + default: + if (typeof object.context === "number") { + message.context = object.context; + break; + } + break; + case "StreamId": + case 0: + message.context = 0; + break; + case "EventType": + case 1: + message.context = 1; + break; + } + switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; + case "Regex": + case 0: + message.type = 0; + break; + case "Prefix": + case 1: + message.type = 1; + break; + } + if (object.data) { + if (!Array.isArray(object.data)) + throw TypeError(".EventStore.Client.Messages.Filter.data: array expected"); + message.data = []; + for (var i = 0; i < object.data.length; ++i) + message.data[i] = String(object.data[i]); + } + return message; + }; + + /** + * Creates a plain object from a Filter message. Also converts values to other types if specified. + * @function toObject + * @memberof EventStore.Client.Messages.Filter + * @static + * @param {EventStore.Client.Messages.Filter} message Filter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Filter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.data = []; + if (options.defaults) { + object.context = options.enums === String ? "StreamId" : 0; + object.type = options.enums === String ? "Regex" : 0; + } + if (message.context != null && message.hasOwnProperty("context")) + object.context = options.enums === String ? $root.EventStore.Client.Messages.Filter.FilterContext[message.context] === undefined ? message.context : $root.EventStore.Client.Messages.Filter.FilterContext[message.context] : message.context; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.EventStore.Client.Messages.Filter.FilterType[message.type] === undefined ? message.type : $root.EventStore.Client.Messages.Filter.FilterType[message.type] : message.type; + if (message.data && message.data.length) { + object.data = []; + for (var j = 0; j < message.data.length; ++j) + object.data[j] = message.data[j]; + } + return object; + }; + + /** + * Converts this Filter to JSON. + * @function toJSON + * @memberof EventStore.Client.Messages.Filter + * @instance + * @returns {Object.} JSON object + */ + Filter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for Filter + * @function getTypeUrl + * @memberof EventStore.Client.Messages.Filter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Filter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.Filter"; + }; + + /** + * FilterContext enum. + * @name EventStore.Client.Messages.Filter.FilterContext + * @enum {number} + * @property {number} StreamId=0 StreamId value + * @property {number} EventType=1 EventType value + */ + Filter.FilterContext = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "StreamId"] = 0; + values[valuesById[1] = "EventType"] = 1; + return values; + })(); + + /** + * FilterType enum. + * @name EventStore.Client.Messages.Filter.FilterType + * @enum {number} + * @property {number} Regex=0 Regex value + * @property {number} Prefix=1 Prefix value + */ + Filter.FilterType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "Regex"] = 0; + values[valuesById[1] = "Prefix"] = 1; + return values; + })(); + + return Filter; + })(); + + Messages.FilteredReadAllEvents = (function() { + + /** + * Properties of a FilteredReadAllEvents. + * @memberof EventStore.Client.Messages + * @interface IFilteredReadAllEvents + * @property {Long} commitPosition FilteredReadAllEvents commitPosition + * @property {Long} preparePosition FilteredReadAllEvents preparePosition + * @property {number} maxCount FilteredReadAllEvents maxCount + * @property {number|null} [maxSearchWindow] FilteredReadAllEvents maxSearchWindow + * @property {boolean} resolveLinkTos FilteredReadAllEvents resolveLinkTos + * @property {boolean} requireLeader FilteredReadAllEvents requireLeader + * @property {EventStore.Client.Messages.IFilter} filter FilteredReadAllEvents filter + */ + + /** + * Constructs a new FilteredReadAllEvents. + * @memberof EventStore.Client.Messages + * @classdesc Represents a FilteredReadAllEvents. + * @implements IFilteredReadAllEvents + * @constructor + * @param {EventStore.Client.Messages.IFilteredReadAllEvents=} [properties] Properties to set + */ + function FilteredReadAllEvents(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FilteredReadAllEvents commitPosition. + * @member {Long} commitPosition + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @instance + */ + FilteredReadAllEvents.prototype.commitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * FilteredReadAllEvents preparePosition. + * @member {Long} preparePosition + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @instance + */ + FilteredReadAllEvents.prototype.preparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * FilteredReadAllEvents maxCount. + * @member {number} maxCount + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @instance + */ + FilteredReadAllEvents.prototype.maxCount = 0; + + /** + * FilteredReadAllEvents maxSearchWindow. + * @member {number} maxSearchWindow + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @instance + */ + FilteredReadAllEvents.prototype.maxSearchWindow = 0; + + /** + * FilteredReadAllEvents resolveLinkTos. + * @member {boolean} resolveLinkTos + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @instance + */ + FilteredReadAllEvents.prototype.resolveLinkTos = false; + + /** + * FilteredReadAllEvents requireLeader. + * @member {boolean} requireLeader + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @instance + */ + FilteredReadAllEvents.prototype.requireLeader = false; + + /** + * FilteredReadAllEvents filter. + * @member {EventStore.Client.Messages.IFilter} filter + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @instance + */ + FilteredReadAllEvents.prototype.filter = null; + + /** + * Creates a new FilteredReadAllEvents instance using the specified properties. + * @function create + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @static + * @param {EventStore.Client.Messages.IFilteredReadAllEvents=} [properties] Properties to set + * @returns {EventStore.Client.Messages.FilteredReadAllEvents} FilteredReadAllEvents instance + */ + FilteredReadAllEvents.create = function create(properties) { + return new FilteredReadAllEvents(properties); + }; + + /** + * Encodes the specified FilteredReadAllEvents message. Does not implicitly {@link EventStore.Client.Messages.FilteredReadAllEvents.verify|verify} messages. + * @function encode + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @static + * @param {EventStore.Client.Messages.IFilteredReadAllEvents} message FilteredReadAllEvents message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FilteredReadAllEvents.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.commitPosition); + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.preparePosition); + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxCount); + if (message.maxSearchWindow != null && Object.hasOwnProperty.call(message, "maxSearchWindow")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxSearchWindow); + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.resolveLinkTos); + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.requireLeader); + $root.EventStore.Client.Messages.Filter.encode(message.filter, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FilteredReadAllEvents message, length delimited. Does not implicitly {@link EventStore.Client.Messages.FilteredReadAllEvents.verify|verify} messages. + * @function encodeDelimited + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @static + * @param {EventStore.Client.Messages.IFilteredReadAllEvents} message FilteredReadAllEvents message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FilteredReadAllEvents.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FilteredReadAllEvents message from the specified reader or buffer. + * @function decode + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {EventStore.Client.Messages.FilteredReadAllEvents} FilteredReadAllEvents + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FilteredReadAllEvents.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventStore.Client.Messages.FilteredReadAllEvents(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.commitPosition = reader.int64(); + break; + } + case 2: { + message.preparePosition = reader.int64(); + break; + } + case 3: { + message.maxCount = reader.int32(); + break; + } + case 4: { + message.maxSearchWindow = reader.int32(); + break; + } + case 5: { + message.resolveLinkTos = reader.bool(); + break; + } + case 6: { + message.requireLeader = reader.bool(); + break; + } + case 7: { + message.filter = $root.EventStore.Client.Messages.Filter.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("commitPosition")) + throw $util.ProtocolError("missing required 'commitPosition'", { instance: message }); + if (!message.hasOwnProperty("preparePosition")) + throw $util.ProtocolError("missing required 'preparePosition'", { instance: message }); + if (!message.hasOwnProperty("maxCount")) + throw $util.ProtocolError("missing required 'maxCount'", { instance: message }); + if (!message.hasOwnProperty("resolveLinkTos")) + throw $util.ProtocolError("missing required 'resolveLinkTos'", { instance: message }); + if (!message.hasOwnProperty("requireLeader")) + throw $util.ProtocolError("missing required 'requireLeader'", { instance: message }); + if (!message.hasOwnProperty("filter")) + throw $util.ProtocolError("missing required 'filter'", { instance: message }); + return message; + }; + + /** + * Decodes a FilteredReadAllEvents message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {EventStore.Client.Messages.FilteredReadAllEvents} FilteredReadAllEvents + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FilteredReadAllEvents.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FilteredReadAllEvents message. + * @function verify + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FilteredReadAllEvents.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isInteger(message.commitPosition) && !(message.commitPosition && $util.isInteger(message.commitPosition.low) && $util.isInteger(message.commitPosition.high))) + return "commitPosition: integer|Long expected"; + if (!$util.isInteger(message.preparePosition) && !(message.preparePosition && $util.isInteger(message.preparePosition.low) && $util.isInteger(message.preparePosition.high))) + return "preparePosition: integer|Long expected"; + if (!$util.isInteger(message.maxCount)) + return "maxCount: integer expected"; + if (message.maxSearchWindow != null && message.hasOwnProperty("maxSearchWindow")) + if (!$util.isInteger(message.maxSearchWindow)) + return "maxSearchWindow: integer expected"; + if (typeof message.resolveLinkTos !== "boolean") + return "resolveLinkTos: boolean expected"; + if (typeof message.requireLeader !== "boolean") + return "requireLeader: boolean expected"; + { + var error = $root.EventStore.Client.Messages.Filter.verify(message.filter); + if (error) + return "filter." + error; + } + return null; + }; + + /** + * Creates a FilteredReadAllEvents message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @static + * @param {Object.} object Plain object + * @returns {EventStore.Client.Messages.FilteredReadAllEvents} FilteredReadAllEvents + */ + FilteredReadAllEvents.fromObject = function fromObject(object) { + if (object instanceof $root.EventStore.Client.Messages.FilteredReadAllEvents) + return object; + var message = new $root.EventStore.Client.Messages.FilteredReadAllEvents(); + if (object.commitPosition != null) + if ($util.Long) + (message.commitPosition = $util.Long.fromValue(object.commitPosition)).unsigned = false; + else if (typeof object.commitPosition === "string") + message.commitPosition = parseInt(object.commitPosition, 10); + else if (typeof object.commitPosition === "number") + message.commitPosition = object.commitPosition; + else if (typeof object.commitPosition === "object") + message.commitPosition = new $util.LongBits(object.commitPosition.low >>> 0, object.commitPosition.high >>> 0).toNumber(); + if (object.preparePosition != null) + if ($util.Long) + (message.preparePosition = $util.Long.fromValue(object.preparePosition)).unsigned = false; + else if (typeof object.preparePosition === "string") + message.preparePosition = parseInt(object.preparePosition, 10); + else if (typeof object.preparePosition === "number") + message.preparePosition = object.preparePosition; + else if (typeof object.preparePosition === "object") + message.preparePosition = new $util.LongBits(object.preparePosition.low >>> 0, object.preparePosition.high >>> 0).toNumber(); + if (object.maxCount != null) + message.maxCount = object.maxCount | 0; + if (object.maxSearchWindow != null) + message.maxSearchWindow = object.maxSearchWindow | 0; + if (object.resolveLinkTos != null) + message.resolveLinkTos = Boolean(object.resolveLinkTos); + if (object.requireLeader != null) + message.requireLeader = Boolean(object.requireLeader); + if (object.filter != null) { + if (typeof object.filter !== "object") + throw TypeError(".EventStore.Client.Messages.FilteredReadAllEvents.filter: object expected"); + message.filter = $root.EventStore.Client.Messages.Filter.fromObject(object.filter); + } + return message; + }; + + /** + * Creates a plain object from a FilteredReadAllEvents message. Also converts values to other types if specified. + * @function toObject + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @static + * @param {EventStore.Client.Messages.FilteredReadAllEvents} message FilteredReadAllEvents + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FilteredReadAllEvents.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.commitPosition = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.commitPosition = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.preparePosition = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.preparePosition = options.longs === String ? "0" : 0; + object.maxCount = 0; + object.maxSearchWindow = 0; + object.resolveLinkTos = false; + object.requireLeader = false; + object.filter = null; + } + if (message.commitPosition != null && message.hasOwnProperty("commitPosition")) + if (typeof message.commitPosition === "number") + object.commitPosition = options.longs === String ? String(message.commitPosition) : message.commitPosition; + else + object.commitPosition = options.longs === String ? $util.Long.prototype.toString.call(message.commitPosition) : options.longs === Number ? new $util.LongBits(message.commitPosition.low >>> 0, message.commitPosition.high >>> 0).toNumber() : message.commitPosition; + if (message.preparePosition != null && message.hasOwnProperty("preparePosition")) + if (typeof message.preparePosition === "number") + object.preparePosition = options.longs === String ? String(message.preparePosition) : message.preparePosition; + else + object.preparePosition = options.longs === String ? $util.Long.prototype.toString.call(message.preparePosition) : options.longs === Number ? new $util.LongBits(message.preparePosition.low >>> 0, message.preparePosition.high >>> 0).toNumber() : message.preparePosition; + if (message.maxCount != null && message.hasOwnProperty("maxCount")) + object.maxCount = message.maxCount; + if (message.maxSearchWindow != null && message.hasOwnProperty("maxSearchWindow")) + object.maxSearchWindow = message.maxSearchWindow; + if (message.resolveLinkTos != null && message.hasOwnProperty("resolveLinkTos")) + object.resolveLinkTos = message.resolveLinkTos; + if (message.requireLeader != null && message.hasOwnProperty("requireLeader")) + object.requireLeader = message.requireLeader; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = $root.EventStore.Client.Messages.Filter.toObject(message.filter, options); + return object; + }; + + /** + * Converts this FilteredReadAllEvents to JSON. + * @function toJSON + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @instance + * @returns {Object.} JSON object + */ + FilteredReadAllEvents.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FilteredReadAllEvents + * @function getTypeUrl + * @memberof EventStore.Client.Messages.FilteredReadAllEvents + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FilteredReadAllEvents.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.FilteredReadAllEvents"; + }; + + return FilteredReadAllEvents; + })(); + + Messages.FilteredReadAllEventsCompleted = (function() { + + /** + * Properties of a FilteredReadAllEventsCompleted. + * @memberof EventStore.Client.Messages + * @interface IFilteredReadAllEventsCompleted + * @property {Long} commitPosition FilteredReadAllEventsCompleted commitPosition + * @property {Long} preparePosition FilteredReadAllEventsCompleted preparePosition + * @property {Array.|null} [events] FilteredReadAllEventsCompleted events + * @property {Long} nextCommitPosition FilteredReadAllEventsCompleted nextCommitPosition + * @property {Long} nextPreparePosition FilteredReadAllEventsCompleted nextPreparePosition + * @property {boolean} isEndOfStream FilteredReadAllEventsCompleted isEndOfStream + * @property {EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult|null} [result] FilteredReadAllEventsCompleted result + * @property {string|null} [error] FilteredReadAllEventsCompleted error + */ + + /** + * Constructs a new FilteredReadAllEventsCompleted. + * @memberof EventStore.Client.Messages + * @classdesc Represents a FilteredReadAllEventsCompleted. + * @implements IFilteredReadAllEventsCompleted + * @constructor + * @param {EventStore.Client.Messages.IFilteredReadAllEventsCompleted=} [properties] Properties to set + */ + function FilteredReadAllEventsCompleted(properties) { + this.events = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FilteredReadAllEventsCompleted commitPosition. + * @member {Long} commitPosition + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @instance + */ + FilteredReadAllEventsCompleted.prototype.commitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * FilteredReadAllEventsCompleted preparePosition. + * @member {Long} preparePosition + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @instance + */ + FilteredReadAllEventsCompleted.prototype.preparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * FilteredReadAllEventsCompleted events. + * @member {Array.} events + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @instance + */ + FilteredReadAllEventsCompleted.prototype.events = $util.emptyArray; + + /** + * FilteredReadAllEventsCompleted nextCommitPosition. + * @member {Long} nextCommitPosition + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @instance + */ + FilteredReadAllEventsCompleted.prototype.nextCommitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * FilteredReadAllEventsCompleted nextPreparePosition. + * @member {Long} nextPreparePosition + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @instance + */ + FilteredReadAllEventsCompleted.prototype.nextPreparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * FilteredReadAllEventsCompleted isEndOfStream. + * @member {boolean} isEndOfStream + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @instance + */ + FilteredReadAllEventsCompleted.prototype.isEndOfStream = false; + + /** + * FilteredReadAllEventsCompleted result. + * @member {EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult} result + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @instance + */ + FilteredReadAllEventsCompleted.prototype.result = 0; + + /** + * FilteredReadAllEventsCompleted error. + * @member {string} error + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @instance + */ + FilteredReadAllEventsCompleted.prototype.error = ""; + + /** + * Creates a new FilteredReadAllEventsCompleted instance using the specified properties. + * @function create + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @static + * @param {EventStore.Client.Messages.IFilteredReadAllEventsCompleted=} [properties] Properties to set + * @returns {EventStore.Client.Messages.FilteredReadAllEventsCompleted} FilteredReadAllEventsCompleted instance + */ + FilteredReadAllEventsCompleted.create = function create(properties) { + return new FilteredReadAllEventsCompleted(properties); + }; + + /** + * Encodes the specified FilteredReadAllEventsCompleted message. Does not implicitly {@link EventStore.Client.Messages.FilteredReadAllEventsCompleted.verify|verify} messages. + * @function encode + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @static + * @param {EventStore.Client.Messages.IFilteredReadAllEventsCompleted} message FilteredReadAllEventsCompleted message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FilteredReadAllEventsCompleted.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.commitPosition); + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.preparePosition); + if (message.events != null && message.events.length) + for (var i = 0; i < message.events.length; ++i) + $root.EventStore.Client.Messages.ResolvedEvent.encode(message.events[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.nextCommitPosition); + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.nextPreparePosition); + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isEndOfStream); + if (message.result != null && Object.hasOwnProperty.call(message, "result")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.result); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.error); + return writer; + }; + + /** + * Encodes the specified FilteredReadAllEventsCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.FilteredReadAllEventsCompleted.verify|verify} messages. + * @function encodeDelimited + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @static + * @param {EventStore.Client.Messages.IFilteredReadAllEventsCompleted} message FilteredReadAllEventsCompleted message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FilteredReadAllEventsCompleted.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FilteredReadAllEventsCompleted message from the specified reader or buffer. + * @function decode + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {EventStore.Client.Messages.FilteredReadAllEventsCompleted} FilteredReadAllEventsCompleted + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FilteredReadAllEventsCompleted.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventStore.Client.Messages.FilteredReadAllEventsCompleted(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.commitPosition = reader.int64(); + break; + } + case 2: { + message.preparePosition = reader.int64(); + break; + } + case 3: { + if (!(message.events && message.events.length)) + message.events = []; + message.events.push($root.EventStore.Client.Messages.ResolvedEvent.decode(reader, reader.uint32())); + break; + } + case 4: { + message.nextCommitPosition = reader.int64(); + break; + } + case 5: { + message.nextPreparePosition = reader.int64(); + break; + } + case 6: { + message.isEndOfStream = reader.bool(); + break; + } + case 7: { + message.result = reader.int32(); + break; + } + case 8: { + message.error = reader.string(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("commitPosition")) + throw $util.ProtocolError("missing required 'commitPosition'", { instance: message }); + if (!message.hasOwnProperty("preparePosition")) + throw $util.ProtocolError("missing required 'preparePosition'", { instance: message }); + if (!message.hasOwnProperty("nextCommitPosition")) + throw $util.ProtocolError("missing required 'nextCommitPosition'", { instance: message }); + if (!message.hasOwnProperty("nextPreparePosition")) + throw $util.ProtocolError("missing required 'nextPreparePosition'", { instance: message }); + if (!message.hasOwnProperty("isEndOfStream")) + throw $util.ProtocolError("missing required 'isEndOfStream'", { instance: message }); + return message; + }; + + /** + * Decodes a FilteredReadAllEventsCompleted message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {EventStore.Client.Messages.FilteredReadAllEventsCompleted} FilteredReadAllEventsCompleted + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FilteredReadAllEventsCompleted.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FilteredReadAllEventsCompleted message. + * @function verify + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FilteredReadAllEventsCompleted.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isInteger(message.commitPosition) && !(message.commitPosition && $util.isInteger(message.commitPosition.low) && $util.isInteger(message.commitPosition.high))) + return "commitPosition: integer|Long expected"; + if (!$util.isInteger(message.preparePosition) && !(message.preparePosition && $util.isInteger(message.preparePosition.low) && $util.isInteger(message.preparePosition.high))) + return "preparePosition: integer|Long expected"; + if (message.events != null && message.hasOwnProperty("events")) { + if (!Array.isArray(message.events)) + return "events: array expected"; + for (var i = 0; i < message.events.length; ++i) { + var error = $root.EventStore.Client.Messages.ResolvedEvent.verify(message.events[i]); + if (error) + return "events." + error; + } + } + if (!$util.isInteger(message.nextCommitPosition) && !(message.nextCommitPosition && $util.isInteger(message.nextCommitPosition.low) && $util.isInteger(message.nextCommitPosition.high))) + return "nextCommitPosition: integer|Long expected"; + if (!$util.isInteger(message.nextPreparePosition) && !(message.nextPreparePosition && $util.isInteger(message.nextPreparePosition.low) && $util.isInteger(message.nextPreparePosition.high))) + return "nextPreparePosition: integer|Long expected"; + if (typeof message.isEndOfStream !== "boolean") + return "isEndOfStream: boolean expected"; + if (message.result != null && message.hasOwnProperty("result")) + switch (message.result) { + default: + return "result: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.error != null && message.hasOwnProperty("error")) + if (!$util.isString(message.error)) + return "error: string expected"; + return null; + }; + + /** + * Creates a FilteredReadAllEventsCompleted message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @static + * @param {Object.} object Plain object + * @returns {EventStore.Client.Messages.FilteredReadAllEventsCompleted} FilteredReadAllEventsCompleted + */ + FilteredReadAllEventsCompleted.fromObject = function fromObject(object) { + if (object instanceof $root.EventStore.Client.Messages.FilteredReadAllEventsCompleted) + return object; + var message = new $root.EventStore.Client.Messages.FilteredReadAllEventsCompleted(); + if (object.commitPosition != null) + if ($util.Long) + (message.commitPosition = $util.Long.fromValue(object.commitPosition)).unsigned = false; + else if (typeof object.commitPosition === "string") + message.commitPosition = parseInt(object.commitPosition, 10); + else if (typeof object.commitPosition === "number") + message.commitPosition = object.commitPosition; + else if (typeof object.commitPosition === "object") + message.commitPosition = new $util.LongBits(object.commitPosition.low >>> 0, object.commitPosition.high >>> 0).toNumber(); + if (object.preparePosition != null) + if ($util.Long) + (message.preparePosition = $util.Long.fromValue(object.preparePosition)).unsigned = false; + else if (typeof object.preparePosition === "string") + message.preparePosition = parseInt(object.preparePosition, 10); + else if (typeof object.preparePosition === "number") + message.preparePosition = object.preparePosition; + else if (typeof object.preparePosition === "object") + message.preparePosition = new $util.LongBits(object.preparePosition.low >>> 0, object.preparePosition.high >>> 0).toNumber(); + if (object.events) { + if (!Array.isArray(object.events)) + throw TypeError(".EventStore.Client.Messages.FilteredReadAllEventsCompleted.events: array expected"); + message.events = []; + for (var i = 0; i < object.events.length; ++i) { + if (typeof object.events[i] !== "object") + throw TypeError(".EventStore.Client.Messages.FilteredReadAllEventsCompleted.events: object expected"); + message.events[i] = $root.EventStore.Client.Messages.ResolvedEvent.fromObject(object.events[i]); + } + } + if (object.nextCommitPosition != null) + if ($util.Long) + (message.nextCommitPosition = $util.Long.fromValue(object.nextCommitPosition)).unsigned = false; + else if (typeof object.nextCommitPosition === "string") + message.nextCommitPosition = parseInt(object.nextCommitPosition, 10); + else if (typeof object.nextCommitPosition === "number") + message.nextCommitPosition = object.nextCommitPosition; + else if (typeof object.nextCommitPosition === "object") + message.nextCommitPosition = new $util.LongBits(object.nextCommitPosition.low >>> 0, object.nextCommitPosition.high >>> 0).toNumber(); + if (object.nextPreparePosition != null) + if ($util.Long) + (message.nextPreparePosition = $util.Long.fromValue(object.nextPreparePosition)).unsigned = false; + else if (typeof object.nextPreparePosition === "string") + message.nextPreparePosition = parseInt(object.nextPreparePosition, 10); + else if (typeof object.nextPreparePosition === "number") + message.nextPreparePosition = object.nextPreparePosition; + else if (typeof object.nextPreparePosition === "object") + message.nextPreparePosition = new $util.LongBits(object.nextPreparePosition.low >>> 0, object.nextPreparePosition.high >>> 0).toNumber(); + if (object.isEndOfStream != null) + message.isEndOfStream = Boolean(object.isEndOfStream); + switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; + case "Success": + case 0: + message.result = 0; + break; + case "NotModified": + case 1: + message.result = 1; + break; + case "Error": + case 2: + message.result = 2; + break; + case "AccessDenied": + case 3: + message.result = 3; + break; + } + if (object.error != null) + message.error = String(object.error); + return message; + }; + + /** + * Creates a plain object from a FilteredReadAllEventsCompleted message. Also converts values to other types if specified. + * @function toObject + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @static + * @param {EventStore.Client.Messages.FilteredReadAllEventsCompleted} message FilteredReadAllEventsCompleted + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FilteredReadAllEventsCompleted.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.events = []; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.commitPosition = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.commitPosition = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.preparePosition = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.preparePosition = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.nextCommitPosition = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.nextCommitPosition = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.nextPreparePosition = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.nextPreparePosition = options.longs === String ? "0" : 0; + object.isEndOfStream = false; + object.result = options.enums === String ? "Success" : 0; + object.error = ""; + } + if (message.commitPosition != null && message.hasOwnProperty("commitPosition")) + if (typeof message.commitPosition === "number") + object.commitPosition = options.longs === String ? String(message.commitPosition) : message.commitPosition; + else + object.commitPosition = options.longs === String ? $util.Long.prototype.toString.call(message.commitPosition) : options.longs === Number ? new $util.LongBits(message.commitPosition.low >>> 0, message.commitPosition.high >>> 0).toNumber() : message.commitPosition; + if (message.preparePosition != null && message.hasOwnProperty("preparePosition")) + if (typeof message.preparePosition === "number") + object.preparePosition = options.longs === String ? String(message.preparePosition) : message.preparePosition; + else + object.preparePosition = options.longs === String ? $util.Long.prototype.toString.call(message.preparePosition) : options.longs === Number ? new $util.LongBits(message.preparePosition.low >>> 0, message.preparePosition.high >>> 0).toNumber() : message.preparePosition; + if (message.events && message.events.length) { + object.events = []; + for (var j = 0; j < message.events.length; ++j) + object.events[j] = $root.EventStore.Client.Messages.ResolvedEvent.toObject(message.events[j], options); + } + if (message.nextCommitPosition != null && message.hasOwnProperty("nextCommitPosition")) + if (typeof message.nextCommitPosition === "number") + object.nextCommitPosition = options.longs === String ? String(message.nextCommitPosition) : message.nextCommitPosition; + else + object.nextCommitPosition = options.longs === String ? $util.Long.prototype.toString.call(message.nextCommitPosition) : options.longs === Number ? new $util.LongBits(message.nextCommitPosition.low >>> 0, message.nextCommitPosition.high >>> 0).toNumber() : message.nextCommitPosition; + if (message.nextPreparePosition != null && message.hasOwnProperty("nextPreparePosition")) + if (typeof message.nextPreparePosition === "number") + object.nextPreparePosition = options.longs === String ? String(message.nextPreparePosition) : message.nextPreparePosition; + else + object.nextPreparePosition = options.longs === String ? $util.Long.prototype.toString.call(message.nextPreparePosition) : options.longs === Number ? new $util.LongBits(message.nextPreparePosition.low >>> 0, message.nextPreparePosition.high >>> 0).toNumber() : message.nextPreparePosition; + if (message.isEndOfStream != null && message.hasOwnProperty("isEndOfStream")) + object.isEndOfStream = message.isEndOfStream; + if (message.result != null && message.hasOwnProperty("result")) + object.result = options.enums === String ? $root.EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult[message.result] : message.result; + if (message.error != null && message.hasOwnProperty("error")) + object.error = message.error; + return object; + }; + + /** + * Converts this FilteredReadAllEventsCompleted to JSON. + * @function toJSON + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @instance + * @returns {Object.} JSON object + */ + FilteredReadAllEventsCompleted.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FilteredReadAllEventsCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.FilteredReadAllEventsCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FilteredReadAllEventsCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.FilteredReadAllEventsCompleted"; + }; + + /** + * FilteredReadAllResult enum. + * @name EventStore.Client.Messages.FilteredReadAllEventsCompleted.FilteredReadAllResult + * @enum {number} + * @property {number} Success=0 Success value + * @property {number} NotModified=1 NotModified value + * @property {number} Error=2 Error value + * @property {number} AccessDenied=3 AccessDenied value + */ + FilteredReadAllEventsCompleted.FilteredReadAllResult = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "Success"] = 0; + values[valuesById[1] = "NotModified"] = 1; + values[valuesById[2] = "Error"] = 2; + values[valuesById[3] = "AccessDenied"] = 3; + return values; + })(); + + return FilteredReadAllEventsCompleted; + })(); + Messages.CreatePersistentSubscription = (function() { - + /** * Properties of a CreatePersistentSubscription. * @memberof EventStore.Client.Messages @@ -6476,7 +8150,7 @@ * @property {string} subscriptionGroupName CreatePersistentSubscription subscriptionGroupName * @property {string} eventStreamId CreatePersistentSubscription eventStreamId * @property {boolean} resolveLinkTos CreatePersistentSubscription resolveLinkTos - * @property {number|Long} startFrom CreatePersistentSubscription startFrom + * @property {Long} startFrom CreatePersistentSubscription startFrom * @property {number} messageTimeoutMilliseconds CreatePersistentSubscription messageTimeoutMilliseconds * @property {boolean} recordStatistics CreatePersistentSubscription recordStatistics * @property {number} liveBufferSize CreatePersistentSubscription liveBufferSize @@ -6490,7 +8164,7 @@ * @property {number} subscriberMaxCount CreatePersistentSubscription subscriberMaxCount * @property {string|null} [namedConsumerStrategy] CreatePersistentSubscription namedConsumerStrategy */ - + /** * Constructs a new CreatePersistentSubscription. * @memberof EventStore.Client.Messages @@ -6505,7 +8179,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * CreatePersistentSubscription subscriptionGroupName. * @member {string} subscriptionGroupName @@ -6513,7 +8187,7 @@ * @instance */ CreatePersistentSubscription.prototype.subscriptionGroupName = ""; - + /** * CreatePersistentSubscription eventStreamId. * @member {string} eventStreamId @@ -6521,7 +8195,7 @@ * @instance */ CreatePersistentSubscription.prototype.eventStreamId = ""; - + /** * CreatePersistentSubscription resolveLinkTos. * @member {boolean} resolveLinkTos @@ -6529,15 +8203,15 @@ * @instance */ CreatePersistentSubscription.prototype.resolveLinkTos = false; - + /** * CreatePersistentSubscription startFrom. - * @member {number|Long} startFrom + * @member {Long} startFrom * @memberof EventStore.Client.Messages.CreatePersistentSubscription * @instance */ CreatePersistentSubscription.prototype.startFrom = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * CreatePersistentSubscription messageTimeoutMilliseconds. * @member {number} messageTimeoutMilliseconds @@ -6545,7 +8219,7 @@ * @instance */ CreatePersistentSubscription.prototype.messageTimeoutMilliseconds = 0; - + /** * CreatePersistentSubscription recordStatistics. * @member {boolean} recordStatistics @@ -6553,7 +8227,7 @@ * @instance */ CreatePersistentSubscription.prototype.recordStatistics = false; - + /** * CreatePersistentSubscription liveBufferSize. * @member {number} liveBufferSize @@ -6561,7 +8235,7 @@ * @instance */ CreatePersistentSubscription.prototype.liveBufferSize = 0; - + /** * CreatePersistentSubscription readBatchSize. * @member {number} readBatchSize @@ -6569,7 +8243,7 @@ * @instance */ CreatePersistentSubscription.prototype.readBatchSize = 0; - + /** * CreatePersistentSubscription bufferSize. * @member {number} bufferSize @@ -6577,7 +8251,7 @@ * @instance */ CreatePersistentSubscription.prototype.bufferSize = 0; - + /** * CreatePersistentSubscription maxRetryCount. * @member {number} maxRetryCount @@ -6585,7 +8259,7 @@ * @instance */ CreatePersistentSubscription.prototype.maxRetryCount = 0; - + /** * CreatePersistentSubscription preferRoundRobin. * @member {boolean} preferRoundRobin @@ -6593,7 +8267,7 @@ * @instance */ CreatePersistentSubscription.prototype.preferRoundRobin = false; - + /** * CreatePersistentSubscription checkpointAfterTime. * @member {number} checkpointAfterTime @@ -6601,7 +8275,7 @@ * @instance */ CreatePersistentSubscription.prototype.checkpointAfterTime = 0; - + /** * CreatePersistentSubscription checkpointMaxCount. * @member {number} checkpointMaxCount @@ -6609,7 +8283,7 @@ * @instance */ CreatePersistentSubscription.prototype.checkpointMaxCount = 0; - + /** * CreatePersistentSubscription checkpointMinCount. * @member {number} checkpointMinCount @@ -6617,7 +8291,7 @@ * @instance */ CreatePersistentSubscription.prototype.checkpointMinCount = 0; - + /** * CreatePersistentSubscription subscriberMaxCount. * @member {number} subscriberMaxCount @@ -6625,7 +8299,7 @@ * @instance */ CreatePersistentSubscription.prototype.subscriberMaxCount = 0; - + /** * CreatePersistentSubscription namedConsumerStrategy. * @member {string} namedConsumerStrategy @@ -6633,7 +8307,7 @@ * @instance */ CreatePersistentSubscription.prototype.namedConsumerStrategy = ""; - + /** * Creates a new CreatePersistentSubscription instance using the specified properties. * @function create @@ -6645,7 +8319,7 @@ CreatePersistentSubscription.create = function create(properties) { return new CreatePersistentSubscription(properties); }; - + /** * Encodes the specified CreatePersistentSubscription message. Does not implicitly {@link EventStore.Client.Messages.CreatePersistentSubscription.verify|verify} messages. * @function encode @@ -6673,11 +8347,11 @@ writer.uint32(/* id 13, wireType 0 =*/104).int32(message.checkpointMaxCount); writer.uint32(/* id 14, wireType 0 =*/112).int32(message.checkpointMinCount); writer.uint32(/* id 15, wireType 0 =*/120).int32(message.subscriberMaxCount); - if (message.namedConsumerStrategy != null && message.hasOwnProperty("namedConsumerStrategy")) + if (message.namedConsumerStrategy != null && Object.hasOwnProperty.call(message, "namedConsumerStrategy")) writer.uint32(/* id 16, wireType 2 =*/130).string(message.namedConsumerStrategy); return writer; }; - + /** * Encodes the specified CreatePersistentSubscription message, length delimited. Does not implicitly {@link EventStore.Client.Messages.CreatePersistentSubscription.verify|verify} messages. * @function encodeDelimited @@ -6690,7 +8364,7 @@ CreatePersistentSubscription.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a CreatePersistentSubscription message from the specified reader or buffer. * @function decode @@ -6709,54 +8383,70 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.subscriptionGroupName = reader.string(); - break; - case 2: - message.eventStreamId = reader.string(); - break; - case 3: - message.resolveLinkTos = reader.bool(); - break; - case 4: - message.startFrom = reader.int64(); - break; - case 5: - message.messageTimeoutMilliseconds = reader.int32(); - break; - case 6: - message.recordStatistics = reader.bool(); - break; - case 7: - message.liveBufferSize = reader.int32(); - break; - case 8: - message.readBatchSize = reader.int32(); - break; - case 9: - message.bufferSize = reader.int32(); - break; - case 10: - message.maxRetryCount = reader.int32(); - break; - case 11: - message.preferRoundRobin = reader.bool(); - break; - case 12: - message.checkpointAfterTime = reader.int32(); - break; - case 13: - message.checkpointMaxCount = reader.int32(); - break; - case 14: - message.checkpointMinCount = reader.int32(); - break; - case 15: - message.subscriberMaxCount = reader.int32(); - break; - case 16: - message.namedConsumerStrategy = reader.string(); - break; + case 1: { + message.subscriptionGroupName = reader.string(); + break; + } + case 2: { + message.eventStreamId = reader.string(); + break; + } + case 3: { + message.resolveLinkTos = reader.bool(); + break; + } + case 4: { + message.startFrom = reader.int64(); + break; + } + case 5: { + message.messageTimeoutMilliseconds = reader.int32(); + break; + } + case 6: { + message.recordStatistics = reader.bool(); + break; + } + case 7: { + message.liveBufferSize = reader.int32(); + break; + } + case 8: { + message.readBatchSize = reader.int32(); + break; + } + case 9: { + message.bufferSize = reader.int32(); + break; + } + case 10: { + message.maxRetryCount = reader.int32(); + break; + } + case 11: { + message.preferRoundRobin = reader.bool(); + break; + } + case 12: { + message.checkpointAfterTime = reader.int32(); + break; + } + case 13: { + message.checkpointMaxCount = reader.int32(); + break; + } + case 14: { + message.checkpointMinCount = reader.int32(); + break; + } + case 15: { + message.subscriberMaxCount = reader.int32(); + break; + } + case 16: { + message.namedConsumerStrategy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -6794,7 +8484,7 @@ throw $util.ProtocolError("missing required 'subscriberMaxCount'", { instance: message }); return message; }; - + /** * Decodes a CreatePersistentSubscription message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -6810,7 +8500,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a CreatePersistentSubscription message. * @function verify @@ -6857,7 +8547,7 @@ return "namedConsumerStrategy: string expected"; return null; }; - + /** * Creates a CreatePersistentSubscription message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -6911,7 +8601,7 @@ message.namedConsumerStrategy = String(object.namedConsumerStrategy); return message; }; - + /** * Creates a plain object from a CreatePersistentSubscription message. Also converts values to other types if specified. * @function toObject @@ -6984,7 +8674,7 @@ object.namedConsumerStrategy = message.namedConsumerStrategy; return object; }; - + /** * Converts this CreatePersistentSubscription to JSON. * @function toJSON @@ -6995,12 +8685,27 @@ CreatePersistentSubscription.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for CreatePersistentSubscription + * @function getTypeUrl + * @memberof EventStore.Client.Messages.CreatePersistentSubscription + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreatePersistentSubscription.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.CreatePersistentSubscription"; + }; + return CreatePersistentSubscription; })(); - + Messages.DeletePersistentSubscription = (function() { - + /** * Properties of a DeletePersistentSubscription. * @memberof EventStore.Client.Messages @@ -7008,7 +8713,7 @@ * @property {string} subscriptionGroupName DeletePersistentSubscription subscriptionGroupName * @property {string} eventStreamId DeletePersistentSubscription eventStreamId */ - + /** * Constructs a new DeletePersistentSubscription. * @memberof EventStore.Client.Messages @@ -7023,7 +8728,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * DeletePersistentSubscription subscriptionGroupName. * @member {string} subscriptionGroupName @@ -7031,7 +8736,7 @@ * @instance */ DeletePersistentSubscription.prototype.subscriptionGroupName = ""; - + /** * DeletePersistentSubscription eventStreamId. * @member {string} eventStreamId @@ -7039,7 +8744,7 @@ * @instance */ DeletePersistentSubscription.prototype.eventStreamId = ""; - + /** * Creates a new DeletePersistentSubscription instance using the specified properties. * @function create @@ -7051,7 +8756,7 @@ DeletePersistentSubscription.create = function create(properties) { return new DeletePersistentSubscription(properties); }; - + /** * Encodes the specified DeletePersistentSubscription message. Does not implicitly {@link EventStore.Client.Messages.DeletePersistentSubscription.verify|verify} messages. * @function encode @@ -7068,7 +8773,7 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventStreamId); return writer; }; - + /** * Encodes the specified DeletePersistentSubscription message, length delimited. Does not implicitly {@link EventStore.Client.Messages.DeletePersistentSubscription.verify|verify} messages. * @function encodeDelimited @@ -7081,7 +8786,7 @@ DeletePersistentSubscription.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a DeletePersistentSubscription message from the specified reader or buffer. * @function decode @@ -7100,12 +8805,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.subscriptionGroupName = reader.string(); - break; - case 2: - message.eventStreamId = reader.string(); - break; + case 1: { + message.subscriptionGroupName = reader.string(); + break; + } + case 2: { + message.eventStreamId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -7117,7 +8824,7 @@ throw $util.ProtocolError("missing required 'eventStreamId'", { instance: message }); return message; }; - + /** * Decodes a DeletePersistentSubscription message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -7133,7 +8840,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a DeletePersistentSubscription message. * @function verify @@ -7151,7 +8858,7 @@ return "eventStreamId: string expected"; return null; }; - + /** * Creates a DeletePersistentSubscription message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -7170,7 +8877,7 @@ message.eventStreamId = String(object.eventStreamId); return message; }; - + /** * Creates a plain object from a DeletePersistentSubscription message. Also converts values to other types if specified. * @function toObject @@ -7194,7 +8901,7 @@ object.eventStreamId = message.eventStreamId; return object; }; - + /** * Converts this DeletePersistentSubscription to JSON. * @function toJSON @@ -7205,12 +8912,27 @@ DeletePersistentSubscription.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for DeletePersistentSubscription + * @function getTypeUrl + * @memberof EventStore.Client.Messages.DeletePersistentSubscription + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeletePersistentSubscription.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.DeletePersistentSubscription"; + }; + return DeletePersistentSubscription; })(); - + Messages.UpdatePersistentSubscription = (function() { - + /** * Properties of an UpdatePersistentSubscription. * @memberof EventStore.Client.Messages @@ -7218,7 +8940,7 @@ * @property {string} subscriptionGroupName UpdatePersistentSubscription subscriptionGroupName * @property {string} eventStreamId UpdatePersistentSubscription eventStreamId * @property {boolean} resolveLinkTos UpdatePersistentSubscription resolveLinkTos - * @property {number|Long} startFrom UpdatePersistentSubscription startFrom + * @property {Long} startFrom UpdatePersistentSubscription startFrom * @property {number} messageTimeoutMilliseconds UpdatePersistentSubscription messageTimeoutMilliseconds * @property {boolean} recordStatistics UpdatePersistentSubscription recordStatistics * @property {number} liveBufferSize UpdatePersistentSubscription liveBufferSize @@ -7232,7 +8954,7 @@ * @property {number} subscriberMaxCount UpdatePersistentSubscription subscriberMaxCount * @property {string|null} [namedConsumerStrategy] UpdatePersistentSubscription namedConsumerStrategy */ - + /** * Constructs a new UpdatePersistentSubscription. * @memberof EventStore.Client.Messages @@ -7247,7 +8969,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * UpdatePersistentSubscription subscriptionGroupName. * @member {string} subscriptionGroupName @@ -7255,7 +8977,7 @@ * @instance */ UpdatePersistentSubscription.prototype.subscriptionGroupName = ""; - + /** * UpdatePersistentSubscription eventStreamId. * @member {string} eventStreamId @@ -7263,7 +8985,7 @@ * @instance */ UpdatePersistentSubscription.prototype.eventStreamId = ""; - + /** * UpdatePersistentSubscription resolveLinkTos. * @member {boolean} resolveLinkTos @@ -7271,15 +8993,15 @@ * @instance */ UpdatePersistentSubscription.prototype.resolveLinkTos = false; - + /** * UpdatePersistentSubscription startFrom. - * @member {number|Long} startFrom + * @member {Long} startFrom * @memberof EventStore.Client.Messages.UpdatePersistentSubscription * @instance */ UpdatePersistentSubscription.prototype.startFrom = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * UpdatePersistentSubscription messageTimeoutMilliseconds. * @member {number} messageTimeoutMilliseconds @@ -7287,7 +9009,7 @@ * @instance */ UpdatePersistentSubscription.prototype.messageTimeoutMilliseconds = 0; - + /** * UpdatePersistentSubscription recordStatistics. * @member {boolean} recordStatistics @@ -7295,7 +9017,7 @@ * @instance */ UpdatePersistentSubscription.prototype.recordStatistics = false; - + /** * UpdatePersistentSubscription liveBufferSize. * @member {number} liveBufferSize @@ -7303,7 +9025,7 @@ * @instance */ UpdatePersistentSubscription.prototype.liveBufferSize = 0; - + /** * UpdatePersistentSubscription readBatchSize. * @member {number} readBatchSize @@ -7311,7 +9033,7 @@ * @instance */ UpdatePersistentSubscription.prototype.readBatchSize = 0; - + /** * UpdatePersistentSubscription bufferSize. * @member {number} bufferSize @@ -7319,7 +9041,7 @@ * @instance */ UpdatePersistentSubscription.prototype.bufferSize = 0; - + /** * UpdatePersistentSubscription maxRetryCount. * @member {number} maxRetryCount @@ -7327,7 +9049,7 @@ * @instance */ UpdatePersistentSubscription.prototype.maxRetryCount = 0; - + /** * UpdatePersistentSubscription preferRoundRobin. * @member {boolean} preferRoundRobin @@ -7335,7 +9057,7 @@ * @instance */ UpdatePersistentSubscription.prototype.preferRoundRobin = false; - + /** * UpdatePersistentSubscription checkpointAfterTime. * @member {number} checkpointAfterTime @@ -7343,7 +9065,7 @@ * @instance */ UpdatePersistentSubscription.prototype.checkpointAfterTime = 0; - + /** * UpdatePersistentSubscription checkpointMaxCount. * @member {number} checkpointMaxCount @@ -7351,7 +9073,7 @@ * @instance */ UpdatePersistentSubscription.prototype.checkpointMaxCount = 0; - + /** * UpdatePersistentSubscription checkpointMinCount. * @member {number} checkpointMinCount @@ -7359,7 +9081,7 @@ * @instance */ UpdatePersistentSubscription.prototype.checkpointMinCount = 0; - + /** * UpdatePersistentSubscription subscriberMaxCount. * @member {number} subscriberMaxCount @@ -7367,7 +9089,7 @@ * @instance */ UpdatePersistentSubscription.prototype.subscriberMaxCount = 0; - + /** * UpdatePersistentSubscription namedConsumerStrategy. * @member {string} namedConsumerStrategy @@ -7375,7 +9097,7 @@ * @instance */ UpdatePersistentSubscription.prototype.namedConsumerStrategy = ""; - + /** * Creates a new UpdatePersistentSubscription instance using the specified properties. * @function create @@ -7387,7 +9109,7 @@ UpdatePersistentSubscription.create = function create(properties) { return new UpdatePersistentSubscription(properties); }; - + /** * Encodes the specified UpdatePersistentSubscription message. Does not implicitly {@link EventStore.Client.Messages.UpdatePersistentSubscription.verify|verify} messages. * @function encode @@ -7415,11 +9137,11 @@ writer.uint32(/* id 13, wireType 0 =*/104).int32(message.checkpointMaxCount); writer.uint32(/* id 14, wireType 0 =*/112).int32(message.checkpointMinCount); writer.uint32(/* id 15, wireType 0 =*/120).int32(message.subscriberMaxCount); - if (message.namedConsumerStrategy != null && message.hasOwnProperty("namedConsumerStrategy")) + if (message.namedConsumerStrategy != null && Object.hasOwnProperty.call(message, "namedConsumerStrategy")) writer.uint32(/* id 16, wireType 2 =*/130).string(message.namedConsumerStrategy); return writer; }; - + /** * Encodes the specified UpdatePersistentSubscription message, length delimited. Does not implicitly {@link EventStore.Client.Messages.UpdatePersistentSubscription.verify|verify} messages. * @function encodeDelimited @@ -7432,7 +9154,7 @@ UpdatePersistentSubscription.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes an UpdatePersistentSubscription message from the specified reader or buffer. * @function decode @@ -7451,54 +9173,70 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.subscriptionGroupName = reader.string(); - break; - case 2: - message.eventStreamId = reader.string(); - break; - case 3: - message.resolveLinkTos = reader.bool(); - break; - case 4: - message.startFrom = reader.int64(); - break; - case 5: - message.messageTimeoutMilliseconds = reader.int32(); - break; - case 6: - message.recordStatistics = reader.bool(); - break; - case 7: - message.liveBufferSize = reader.int32(); - break; - case 8: - message.readBatchSize = reader.int32(); - break; - case 9: - message.bufferSize = reader.int32(); - break; - case 10: - message.maxRetryCount = reader.int32(); - break; - case 11: - message.preferRoundRobin = reader.bool(); - break; - case 12: - message.checkpointAfterTime = reader.int32(); - break; - case 13: - message.checkpointMaxCount = reader.int32(); - break; - case 14: - message.checkpointMinCount = reader.int32(); - break; - case 15: - message.subscriberMaxCount = reader.int32(); - break; - case 16: - message.namedConsumerStrategy = reader.string(); - break; + case 1: { + message.subscriptionGroupName = reader.string(); + break; + } + case 2: { + message.eventStreamId = reader.string(); + break; + } + case 3: { + message.resolveLinkTos = reader.bool(); + break; + } + case 4: { + message.startFrom = reader.int64(); + break; + } + case 5: { + message.messageTimeoutMilliseconds = reader.int32(); + break; + } + case 6: { + message.recordStatistics = reader.bool(); + break; + } + case 7: { + message.liveBufferSize = reader.int32(); + break; + } + case 8: { + message.readBatchSize = reader.int32(); + break; + } + case 9: { + message.bufferSize = reader.int32(); + break; + } + case 10: { + message.maxRetryCount = reader.int32(); + break; + } + case 11: { + message.preferRoundRobin = reader.bool(); + break; + } + case 12: { + message.checkpointAfterTime = reader.int32(); + break; + } + case 13: { + message.checkpointMaxCount = reader.int32(); + break; + } + case 14: { + message.checkpointMinCount = reader.int32(); + break; + } + case 15: { + message.subscriberMaxCount = reader.int32(); + break; + } + case 16: { + message.namedConsumerStrategy = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -7536,7 +9274,7 @@ throw $util.ProtocolError("missing required 'subscriberMaxCount'", { instance: message }); return message; }; - + /** * Decodes an UpdatePersistentSubscription message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -7552,7 +9290,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies an UpdatePersistentSubscription message. * @function verify @@ -7599,7 +9337,7 @@ return "namedConsumerStrategy: string expected"; return null; }; - + /** * Creates an UpdatePersistentSubscription message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -7653,7 +9391,7 @@ message.namedConsumerStrategy = String(object.namedConsumerStrategy); return message; }; - + /** * Creates a plain object from an UpdatePersistentSubscription message. Also converts values to other types if specified. * @function toObject @@ -7726,7 +9464,7 @@ object.namedConsumerStrategy = message.namedConsumerStrategy; return object; }; - + /** * Converts this UpdatePersistentSubscription to JSON. * @function toJSON @@ -7737,12 +9475,27 @@ UpdatePersistentSubscription.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for UpdatePersistentSubscription + * @function getTypeUrl + * @memberof EventStore.Client.Messages.UpdatePersistentSubscription + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdatePersistentSubscription.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.UpdatePersistentSubscription"; + }; + return UpdatePersistentSubscription; })(); - + Messages.UpdatePersistentSubscriptionCompleted = (function() { - + /** * Properties of an UpdatePersistentSubscriptionCompleted. * @memberof EventStore.Client.Messages @@ -7750,7 +9503,7 @@ * @property {EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult} result UpdatePersistentSubscriptionCompleted result * @property {string|null} [reason] UpdatePersistentSubscriptionCompleted reason */ - + /** * Constructs a new UpdatePersistentSubscriptionCompleted. * @memberof EventStore.Client.Messages @@ -7765,7 +9518,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * UpdatePersistentSubscriptionCompleted result. * @member {EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult} result @@ -7773,7 +9526,7 @@ * @instance */ UpdatePersistentSubscriptionCompleted.prototype.result = 0; - + /** * UpdatePersistentSubscriptionCompleted reason. * @member {string} reason @@ -7781,7 +9534,7 @@ * @instance */ UpdatePersistentSubscriptionCompleted.prototype.reason = ""; - + /** * Creates a new UpdatePersistentSubscriptionCompleted instance using the specified properties. * @function create @@ -7793,7 +9546,7 @@ UpdatePersistentSubscriptionCompleted.create = function create(properties) { return new UpdatePersistentSubscriptionCompleted(properties); }; - + /** * Encodes the specified UpdatePersistentSubscriptionCompleted message. Does not implicitly {@link EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.verify|verify} messages. * @function encode @@ -7807,11 +9560,11 @@ if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); - if (message.reason != null && message.hasOwnProperty("reason")) + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.reason); return writer; }; - + /** * Encodes the specified UpdatePersistentSubscriptionCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.verify|verify} messages. * @function encodeDelimited @@ -7824,7 +9577,7 @@ UpdatePersistentSubscriptionCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes an UpdatePersistentSubscriptionCompleted message from the specified reader or buffer. * @function decode @@ -7843,12 +9596,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - case 2: - message.reason = reader.string(); - break; + case 1: { + message.result = reader.int32(); + break; + } + case 2: { + message.reason = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -7858,7 +9613,7 @@ throw $util.ProtocolError("missing required 'result'", { instance: message }); return message; }; - + /** * Decodes an UpdatePersistentSubscriptionCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -7874,7 +9629,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies an UpdatePersistentSubscriptionCompleted message. * @function verify @@ -7900,7 +9655,7 @@ return "reason: string expected"; return null; }; - + /** * Creates an UpdatePersistentSubscriptionCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -7914,6 +9669,12 @@ return object; var message = new $root.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -7935,7 +9696,7 @@ message.reason = String(object.reason); return message; }; - + /** * Creates a plain object from an UpdatePersistentSubscriptionCompleted message. Also converts values to other types if specified. * @function toObject @@ -7954,12 +9715,12 @@ object.reason = ""; } if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult[message.result] : message.result; if (message.reason != null && message.hasOwnProperty("reason")) object.reason = message.reason; return object; }; - + /** * Converts this UpdatePersistentSubscriptionCompleted to JSON. * @function toJSON @@ -7970,11 +9731,26 @@ UpdatePersistentSubscriptionCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for UpdatePersistentSubscriptionCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdatePersistentSubscriptionCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted"; + }; + /** * UpdatePersistentSubscriptionResult enum. * @name EventStore.Client.Messages.UpdatePersistentSubscriptionCompleted.UpdatePersistentSubscriptionResult - * @enum {string} + * @enum {number} * @property {number} Success=0 Success value * @property {number} DoesNotExist=1 DoesNotExist value * @property {number} Fail=2 Fail value @@ -7988,12 +9764,12 @@ values[valuesById[3] = "AccessDenied"] = 3; return values; })(); - + return UpdatePersistentSubscriptionCompleted; })(); - + Messages.CreatePersistentSubscriptionCompleted = (function() { - + /** * Properties of a CreatePersistentSubscriptionCompleted. * @memberof EventStore.Client.Messages @@ -8001,7 +9777,7 @@ * @property {EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult} result CreatePersistentSubscriptionCompleted result * @property {string|null} [reason] CreatePersistentSubscriptionCompleted reason */ - + /** * Constructs a new CreatePersistentSubscriptionCompleted. * @memberof EventStore.Client.Messages @@ -8016,7 +9792,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * CreatePersistentSubscriptionCompleted result. * @member {EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult} result @@ -8024,7 +9800,7 @@ * @instance */ CreatePersistentSubscriptionCompleted.prototype.result = 0; - + /** * CreatePersistentSubscriptionCompleted reason. * @member {string} reason @@ -8032,7 +9808,7 @@ * @instance */ CreatePersistentSubscriptionCompleted.prototype.reason = ""; - + /** * Creates a new CreatePersistentSubscriptionCompleted instance using the specified properties. * @function create @@ -8044,7 +9820,7 @@ CreatePersistentSubscriptionCompleted.create = function create(properties) { return new CreatePersistentSubscriptionCompleted(properties); }; - + /** * Encodes the specified CreatePersistentSubscriptionCompleted message. Does not implicitly {@link EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.verify|verify} messages. * @function encode @@ -8058,11 +9834,11 @@ if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); - if (message.reason != null && message.hasOwnProperty("reason")) + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.reason); return writer; }; - + /** * Encodes the specified CreatePersistentSubscriptionCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.verify|verify} messages. * @function encodeDelimited @@ -8075,7 +9851,7 @@ CreatePersistentSubscriptionCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a CreatePersistentSubscriptionCompleted message from the specified reader or buffer. * @function decode @@ -8094,12 +9870,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - case 2: - message.reason = reader.string(); - break; + case 1: { + message.result = reader.int32(); + break; + } + case 2: { + message.reason = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -8109,7 +9887,7 @@ throw $util.ProtocolError("missing required 'result'", { instance: message }); return message; }; - + /** * Decodes a CreatePersistentSubscriptionCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -8125,7 +9903,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a CreatePersistentSubscriptionCompleted message. * @function verify @@ -8151,7 +9929,7 @@ return "reason: string expected"; return null; }; - + /** * Creates a CreatePersistentSubscriptionCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -8165,6 +9943,12 @@ return object; var message = new $root.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -8186,7 +9970,7 @@ message.reason = String(object.reason); return message; }; - + /** * Creates a plain object from a CreatePersistentSubscriptionCompleted message. Also converts values to other types if specified. * @function toObject @@ -8205,12 +9989,12 @@ object.reason = ""; } if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult[message.result] : message.result; if (message.reason != null && message.hasOwnProperty("reason")) object.reason = message.reason; return object; }; - + /** * Converts this CreatePersistentSubscriptionCompleted to JSON. * @function toJSON @@ -8221,11 +10005,26 @@ CreatePersistentSubscriptionCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for CreatePersistentSubscriptionCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.CreatePersistentSubscriptionCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreatePersistentSubscriptionCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.CreatePersistentSubscriptionCompleted"; + }; + /** * CreatePersistentSubscriptionResult enum. * @name EventStore.Client.Messages.CreatePersistentSubscriptionCompleted.CreatePersistentSubscriptionResult - * @enum {string} + * @enum {number} * @property {number} Success=0 Success value * @property {number} AlreadyExists=1 AlreadyExists value * @property {number} Fail=2 Fail value @@ -8239,12 +10038,12 @@ values[valuesById[3] = "AccessDenied"] = 3; return values; })(); - + return CreatePersistentSubscriptionCompleted; })(); - + Messages.DeletePersistentSubscriptionCompleted = (function() { - + /** * Properties of a DeletePersistentSubscriptionCompleted. * @memberof EventStore.Client.Messages @@ -8252,7 +10051,7 @@ * @property {EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult} result DeletePersistentSubscriptionCompleted result * @property {string|null} [reason] DeletePersistentSubscriptionCompleted reason */ - + /** * Constructs a new DeletePersistentSubscriptionCompleted. * @memberof EventStore.Client.Messages @@ -8267,7 +10066,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * DeletePersistentSubscriptionCompleted result. * @member {EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult} result @@ -8275,7 +10074,7 @@ * @instance */ DeletePersistentSubscriptionCompleted.prototype.result = 0; - + /** * DeletePersistentSubscriptionCompleted reason. * @member {string} reason @@ -8283,7 +10082,7 @@ * @instance */ DeletePersistentSubscriptionCompleted.prototype.reason = ""; - + /** * Creates a new DeletePersistentSubscriptionCompleted instance using the specified properties. * @function create @@ -8295,7 +10094,7 @@ DeletePersistentSubscriptionCompleted.create = function create(properties) { return new DeletePersistentSubscriptionCompleted(properties); }; - + /** * Encodes the specified DeletePersistentSubscriptionCompleted message. Does not implicitly {@link EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.verify|verify} messages. * @function encode @@ -8309,11 +10108,11 @@ if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); - if (message.reason != null && message.hasOwnProperty("reason")) + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.reason); return writer; }; - + /** * Encodes the specified DeletePersistentSubscriptionCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.verify|verify} messages. * @function encodeDelimited @@ -8326,7 +10125,7 @@ DeletePersistentSubscriptionCompleted.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a DeletePersistentSubscriptionCompleted message from the specified reader or buffer. * @function decode @@ -8345,12 +10144,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - case 2: - message.reason = reader.string(); - break; + case 1: { + message.result = reader.int32(); + break; + } + case 2: { + message.reason = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -8360,7 +10161,7 @@ throw $util.ProtocolError("missing required 'result'", { instance: message }); return message; }; - + /** * Decodes a DeletePersistentSubscriptionCompleted message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -8376,7 +10177,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a DeletePersistentSubscriptionCompleted message. * @function verify @@ -8402,7 +10203,7 @@ return "reason: string expected"; return null; }; - + /** * Creates a DeletePersistentSubscriptionCompleted message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -8416,6 +10217,12 @@ return object; var message = new $root.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted(); switch (object.result) { + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; case "Success": case 0: message.result = 0; @@ -8437,7 +10244,7 @@ message.reason = String(object.reason); return message; }; - + /** * Creates a plain object from a DeletePersistentSubscriptionCompleted message. Also converts values to other types if specified. * @function toObject @@ -8456,12 +10263,12 @@ object.reason = ""; } if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult[message.result] : message.result; + object.result = options.enums === String ? $root.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult[message.result] : message.result; if (message.reason != null && message.hasOwnProperty("reason")) object.reason = message.reason; return object; }; - + /** * Converts this DeletePersistentSubscriptionCompleted to JSON. * @function toJSON @@ -8472,11 +10279,26 @@ DeletePersistentSubscriptionCompleted.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for DeletePersistentSubscriptionCompleted + * @function getTypeUrl + * @memberof EventStore.Client.Messages.DeletePersistentSubscriptionCompleted + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeletePersistentSubscriptionCompleted.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.DeletePersistentSubscriptionCompleted"; + }; + /** * DeletePersistentSubscriptionResult enum. * @name EventStore.Client.Messages.DeletePersistentSubscriptionCompleted.DeletePersistentSubscriptionResult - * @enum {string} + * @enum {number} * @property {number} Success=0 Success value * @property {number} DoesNotExist=1 DoesNotExist value * @property {number} Fail=2 Fail value @@ -8490,12 +10312,12 @@ values[valuesById[3] = "AccessDenied"] = 3; return values; })(); - + return DeletePersistentSubscriptionCompleted; })(); - + Messages.ConnectToPersistentSubscription = (function() { - + /** * Properties of a ConnectToPersistentSubscription. * @memberof EventStore.Client.Messages @@ -8504,7 +10326,7 @@ * @property {string} eventStreamId ConnectToPersistentSubscription eventStreamId * @property {number} allowedInFlightMessages ConnectToPersistentSubscription allowedInFlightMessages */ - + /** * Constructs a new ConnectToPersistentSubscription. * @memberof EventStore.Client.Messages @@ -8519,7 +10341,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * ConnectToPersistentSubscription subscriptionId. * @member {string} subscriptionId @@ -8527,7 +10349,7 @@ * @instance */ ConnectToPersistentSubscription.prototype.subscriptionId = ""; - + /** * ConnectToPersistentSubscription eventStreamId. * @member {string} eventStreamId @@ -8535,7 +10357,7 @@ * @instance */ ConnectToPersistentSubscription.prototype.eventStreamId = ""; - + /** * ConnectToPersistentSubscription allowedInFlightMessages. * @member {number} allowedInFlightMessages @@ -8543,7 +10365,7 @@ * @instance */ ConnectToPersistentSubscription.prototype.allowedInFlightMessages = 0; - + /** * Creates a new ConnectToPersistentSubscription instance using the specified properties. * @function create @@ -8555,7 +10377,7 @@ ConnectToPersistentSubscription.create = function create(properties) { return new ConnectToPersistentSubscription(properties); }; - + /** * Encodes the specified ConnectToPersistentSubscription message. Does not implicitly {@link EventStore.Client.Messages.ConnectToPersistentSubscription.verify|verify} messages. * @function encode @@ -8573,7 +10395,7 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.allowedInFlightMessages); return writer; }; - + /** * Encodes the specified ConnectToPersistentSubscription message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ConnectToPersistentSubscription.verify|verify} messages. * @function encodeDelimited @@ -8586,7 +10408,7 @@ ConnectToPersistentSubscription.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ConnectToPersistentSubscription message from the specified reader or buffer. * @function decode @@ -8605,15 +10427,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.subscriptionId = reader.string(); - break; - case 2: - message.eventStreamId = reader.string(); - break; - case 3: - message.allowedInFlightMessages = reader.int32(); - break; + case 1: { + message.subscriptionId = reader.string(); + break; + } + case 2: { + message.eventStreamId = reader.string(); + break; + } + case 3: { + message.allowedInFlightMessages = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -8627,7 +10452,7 @@ throw $util.ProtocolError("missing required 'allowedInFlightMessages'", { instance: message }); return message; }; - + /** * Decodes a ConnectToPersistentSubscription message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -8643,7 +10468,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ConnectToPersistentSubscription message. * @function verify @@ -8663,7 +10488,7 @@ return "allowedInFlightMessages: integer expected"; return null; }; - + /** * Creates a ConnectToPersistentSubscription message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -8684,7 +10509,7 @@ message.allowedInFlightMessages = object.allowedInFlightMessages | 0; return message; }; - + /** * Creates a plain object from a ConnectToPersistentSubscription message. Also converts values to other types if specified. * @function toObject @@ -8711,7 +10536,7 @@ object.allowedInFlightMessages = message.allowedInFlightMessages; return object; }; - + /** * Converts this ConnectToPersistentSubscription to JSON. * @function toJSON @@ -8722,12 +10547,27 @@ ConnectToPersistentSubscription.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ConnectToPersistentSubscription + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ConnectToPersistentSubscription + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConnectToPersistentSubscription.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ConnectToPersistentSubscription"; + }; + return ConnectToPersistentSubscription; })(); - + Messages.PersistentSubscriptionAckEvents = (function() { - + /** * Properties of a PersistentSubscriptionAckEvents. * @memberof EventStore.Client.Messages @@ -8735,7 +10575,7 @@ * @property {string} subscriptionId PersistentSubscriptionAckEvents subscriptionId * @property {Array.|null} [processedEventIds] PersistentSubscriptionAckEvents processedEventIds */ - + /** * Constructs a new PersistentSubscriptionAckEvents. * @memberof EventStore.Client.Messages @@ -8751,7 +10591,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * PersistentSubscriptionAckEvents subscriptionId. * @member {string} subscriptionId @@ -8759,7 +10599,7 @@ * @instance */ PersistentSubscriptionAckEvents.prototype.subscriptionId = ""; - + /** * PersistentSubscriptionAckEvents processedEventIds. * @member {Array.} processedEventIds @@ -8767,7 +10607,7 @@ * @instance */ PersistentSubscriptionAckEvents.prototype.processedEventIds = $util.emptyArray; - + /** * Creates a new PersistentSubscriptionAckEvents instance using the specified properties. * @function create @@ -8779,7 +10619,7 @@ PersistentSubscriptionAckEvents.create = function create(properties) { return new PersistentSubscriptionAckEvents(properties); }; - + /** * Encodes the specified PersistentSubscriptionAckEvents message. Does not implicitly {@link EventStore.Client.Messages.PersistentSubscriptionAckEvents.verify|verify} messages. * @function encode @@ -8798,7 +10638,7 @@ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.processedEventIds[i]); return writer; }; - + /** * Encodes the specified PersistentSubscriptionAckEvents message, length delimited. Does not implicitly {@link EventStore.Client.Messages.PersistentSubscriptionAckEvents.verify|verify} messages. * @function encodeDelimited @@ -8811,7 +10651,7 @@ PersistentSubscriptionAckEvents.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a PersistentSubscriptionAckEvents message from the specified reader or buffer. * @function decode @@ -8830,14 +10670,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.subscriptionId = reader.string(); - break; - case 2: - if (!(message.processedEventIds && message.processedEventIds.length)) - message.processedEventIds = []; - message.processedEventIds.push(reader.bytes()); - break; + case 1: { + message.subscriptionId = reader.string(); + break; + } + case 2: { + if (!(message.processedEventIds && message.processedEventIds.length)) + message.processedEventIds = []; + message.processedEventIds.push(reader.bytes()); + break; + } default: reader.skipType(tag & 7); break; @@ -8847,7 +10689,7 @@ throw $util.ProtocolError("missing required 'subscriptionId'", { instance: message }); return message; }; - + /** * Decodes a PersistentSubscriptionAckEvents message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -8863,7 +10705,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a PersistentSubscriptionAckEvents message. * @function verify @@ -8886,7 +10728,7 @@ } return null; }; - + /** * Creates a PersistentSubscriptionAckEvents message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -8908,12 +10750,12 @@ for (var i = 0; i < object.processedEventIds.length; ++i) if (typeof object.processedEventIds[i] === "string") $util.base64.decode(object.processedEventIds[i], message.processedEventIds[i] = $util.newBuffer($util.base64.length(object.processedEventIds[i])), 0); - else if (object.processedEventIds[i].length) + else if (object.processedEventIds[i].length >= 0) message.processedEventIds[i] = object.processedEventIds[i]; } return message; }; - + /** * Creates a plain object from a PersistentSubscriptionAckEvents message. Also converts values to other types if specified. * @function toObject @@ -8940,7 +10782,7 @@ } return object; }; - + /** * Converts this PersistentSubscriptionAckEvents to JSON. * @function toJSON @@ -8951,12 +10793,27 @@ PersistentSubscriptionAckEvents.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for PersistentSubscriptionAckEvents + * @function getTypeUrl + * @memberof EventStore.Client.Messages.PersistentSubscriptionAckEvents + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PersistentSubscriptionAckEvents.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.PersistentSubscriptionAckEvents"; + }; + return PersistentSubscriptionAckEvents; })(); - + Messages.PersistentSubscriptionNakEvents = (function() { - + /** * Properties of a PersistentSubscriptionNakEvents. * @memberof EventStore.Client.Messages @@ -8966,7 +10823,7 @@ * @property {string|null} [message] PersistentSubscriptionNakEvents message * @property {EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction} action PersistentSubscriptionNakEvents action */ - + /** * Constructs a new PersistentSubscriptionNakEvents. * @memberof EventStore.Client.Messages @@ -8982,7 +10839,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * PersistentSubscriptionNakEvents subscriptionId. * @member {string} subscriptionId @@ -8990,7 +10847,7 @@ * @instance */ PersistentSubscriptionNakEvents.prototype.subscriptionId = ""; - + /** * PersistentSubscriptionNakEvents processedEventIds. * @member {Array.} processedEventIds @@ -8998,7 +10855,7 @@ * @instance */ PersistentSubscriptionNakEvents.prototype.processedEventIds = $util.emptyArray; - + /** * PersistentSubscriptionNakEvents message. * @member {string} message @@ -9006,7 +10863,7 @@ * @instance */ PersistentSubscriptionNakEvents.prototype.message = ""; - + /** * PersistentSubscriptionNakEvents action. * @member {EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction} action @@ -9014,7 +10871,7 @@ * @instance */ PersistentSubscriptionNakEvents.prototype.action = 0; - + /** * Creates a new PersistentSubscriptionNakEvents instance using the specified properties. * @function create @@ -9026,7 +10883,7 @@ PersistentSubscriptionNakEvents.create = function create(properties) { return new PersistentSubscriptionNakEvents(properties); }; - + /** * Encodes the specified PersistentSubscriptionNakEvents message. Does not implicitly {@link EventStore.Client.Messages.PersistentSubscriptionNakEvents.verify|verify} messages. * @function encode @@ -9043,12 +10900,12 @@ if (message.processedEventIds != null && message.processedEventIds.length) for (var i = 0; i < message.processedEventIds.length; ++i) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.processedEventIds[i]); - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action); return writer; }; - + /** * Encodes the specified PersistentSubscriptionNakEvents message, length delimited. Does not implicitly {@link EventStore.Client.Messages.PersistentSubscriptionNakEvents.verify|verify} messages. * @function encodeDelimited @@ -9061,7 +10918,7 @@ PersistentSubscriptionNakEvents.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a PersistentSubscriptionNakEvents message from the specified reader or buffer. * @function decode @@ -9080,20 +10937,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.subscriptionId = reader.string(); - break; - case 2: - if (!(message.processedEventIds && message.processedEventIds.length)) - message.processedEventIds = []; - message.processedEventIds.push(reader.bytes()); - break; - case 3: - message.message = reader.string(); - break; - case 4: - message.action = reader.int32(); - break; + case 1: { + message.subscriptionId = reader.string(); + break; + } + case 2: { + if (!(message.processedEventIds && message.processedEventIds.length)) + message.processedEventIds = []; + message.processedEventIds.push(reader.bytes()); + break; + } + case 3: { + message.message = reader.string(); + break; + } + case 4: { + message.action = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -9105,7 +10966,7 @@ throw $util.ProtocolError("missing required 'action'", { instance: message }); return message; }; - + /** * Decodes a PersistentSubscriptionNakEvents message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -9121,7 +10982,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a PersistentSubscriptionNakEvents message. * @function verify @@ -9157,7 +11018,7 @@ } return null; }; - + /** * Creates a PersistentSubscriptionNakEvents message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -9179,12 +11040,18 @@ for (var i = 0; i < object.processedEventIds.length; ++i) if (typeof object.processedEventIds[i] === "string") $util.base64.decode(object.processedEventIds[i], message.processedEventIds[i] = $util.newBuffer($util.base64.length(object.processedEventIds[i])), 0); - else if (object.processedEventIds[i].length) + else if (object.processedEventIds[i].length >= 0) message.processedEventIds[i] = object.processedEventIds[i]; } if (object.message != null) message.message = String(object.message); switch (object.action) { + default: + if (typeof object.action === "number") { + message.action = object.action; + break; + } + break; case "Unknown": case 0: message.action = 0; @@ -9208,7 +11075,7 @@ } return message; }; - + /** * Creates a plain object from a PersistentSubscriptionNakEvents message. Also converts values to other types if specified. * @function toObject @@ -9239,10 +11106,10 @@ if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction[message.action] : message.action; + object.action = options.enums === String ? $root.EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction[message.action] === undefined ? message.action : $root.EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction[message.action] : message.action; return object; }; - + /** * Converts this PersistentSubscriptionNakEvents to JSON. * @function toJSON @@ -9253,11 +11120,26 @@ PersistentSubscriptionNakEvents.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for PersistentSubscriptionNakEvents + * @function getTypeUrl + * @memberof EventStore.Client.Messages.PersistentSubscriptionNakEvents + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PersistentSubscriptionNakEvents.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.PersistentSubscriptionNakEvents"; + }; + /** * NakAction enum. * @name EventStore.Client.Messages.PersistentSubscriptionNakEvents.NakAction - * @enum {string} + * @enum {number} * @property {number} Unknown=0 Unknown value * @property {number} Park=1 Park value * @property {number} Retry=2 Retry value @@ -9273,21 +11155,21 @@ values[valuesById[4] = "Stop"] = 4; return values; })(); - + return PersistentSubscriptionNakEvents; })(); - + Messages.PersistentSubscriptionConfirmation = (function() { - + /** * Properties of a PersistentSubscriptionConfirmation. * @memberof EventStore.Client.Messages * @interface IPersistentSubscriptionConfirmation - * @property {number|Long} lastCommitPosition PersistentSubscriptionConfirmation lastCommitPosition + * @property {Long} lastCommitPosition PersistentSubscriptionConfirmation lastCommitPosition * @property {string} subscriptionId PersistentSubscriptionConfirmation subscriptionId - * @property {number|Long|null} [lastEventNumber] PersistentSubscriptionConfirmation lastEventNumber + * @property {Long|null} [lastEventNumber] PersistentSubscriptionConfirmation lastEventNumber */ - + /** * Constructs a new PersistentSubscriptionConfirmation. * @memberof EventStore.Client.Messages @@ -9302,15 +11184,15 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * PersistentSubscriptionConfirmation lastCommitPosition. - * @member {number|Long} lastCommitPosition + * @member {Long} lastCommitPosition * @memberof EventStore.Client.Messages.PersistentSubscriptionConfirmation * @instance */ PersistentSubscriptionConfirmation.prototype.lastCommitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * PersistentSubscriptionConfirmation subscriptionId. * @member {string} subscriptionId @@ -9318,15 +11200,15 @@ * @instance */ PersistentSubscriptionConfirmation.prototype.subscriptionId = ""; - + /** * PersistentSubscriptionConfirmation lastEventNumber. - * @member {number|Long} lastEventNumber + * @member {Long} lastEventNumber * @memberof EventStore.Client.Messages.PersistentSubscriptionConfirmation * @instance */ PersistentSubscriptionConfirmation.prototype.lastEventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * Creates a new PersistentSubscriptionConfirmation instance using the specified properties. * @function create @@ -9338,7 +11220,7 @@ PersistentSubscriptionConfirmation.create = function create(properties) { return new PersistentSubscriptionConfirmation(properties); }; - + /** * Encodes the specified PersistentSubscriptionConfirmation message. Does not implicitly {@link EventStore.Client.Messages.PersistentSubscriptionConfirmation.verify|verify} messages. * @function encode @@ -9353,11 +11235,11 @@ writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastCommitPosition); writer.uint32(/* id 2, wireType 2 =*/18).string(message.subscriptionId); - if (message.lastEventNumber != null && message.hasOwnProperty("lastEventNumber")) + if (message.lastEventNumber != null && Object.hasOwnProperty.call(message, "lastEventNumber")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastEventNumber); return writer; }; - + /** * Encodes the specified PersistentSubscriptionConfirmation message, length delimited. Does not implicitly {@link EventStore.Client.Messages.PersistentSubscriptionConfirmation.verify|verify} messages. * @function encodeDelimited @@ -9370,7 +11252,7 @@ PersistentSubscriptionConfirmation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a PersistentSubscriptionConfirmation message from the specified reader or buffer. * @function decode @@ -9389,15 +11271,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.lastCommitPosition = reader.int64(); - break; - case 2: - message.subscriptionId = reader.string(); - break; - case 3: - message.lastEventNumber = reader.int64(); - break; + case 1: { + message.lastCommitPosition = reader.int64(); + break; + } + case 2: { + message.subscriptionId = reader.string(); + break; + } + case 3: { + message.lastEventNumber = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -9409,7 +11294,7 @@ throw $util.ProtocolError("missing required 'subscriptionId'", { instance: message }); return message; }; - + /** * Decodes a PersistentSubscriptionConfirmation message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -9425,7 +11310,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a PersistentSubscriptionConfirmation message. * @function verify @@ -9446,7 +11331,7 @@ return "lastEventNumber: integer|Long expected"; return null; }; - + /** * Creates a PersistentSubscriptionConfirmation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -9481,7 +11366,7 @@ message.lastEventNumber = new $util.LongBits(object.lastEventNumber.low >>> 0, object.lastEventNumber.high >>> 0).toNumber(); return message; }; - + /** * Creates a plain object from a PersistentSubscriptionConfirmation message. Also converts values to other types if specified. * @function toObject @@ -9522,7 +11407,7 @@ object.lastEventNumber = options.longs === String ? $util.Long.prototype.toString.call(message.lastEventNumber) : options.longs === Number ? new $util.LongBits(message.lastEventNumber.low >>> 0, message.lastEventNumber.high >>> 0).toNumber() : message.lastEventNumber; return object; }; - + /** * Converts this PersistentSubscriptionConfirmation to JSON. * @function toJSON @@ -9533,19 +11418,35 @@ PersistentSubscriptionConfirmation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for PersistentSubscriptionConfirmation + * @function getTypeUrl + * @memberof EventStore.Client.Messages.PersistentSubscriptionConfirmation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PersistentSubscriptionConfirmation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.PersistentSubscriptionConfirmation"; + }; + return PersistentSubscriptionConfirmation; })(); - + Messages.PersistentSubscriptionStreamEventAppeared = (function() { - + /** * Properties of a PersistentSubscriptionStreamEventAppeared. * @memberof EventStore.Client.Messages * @interface IPersistentSubscriptionStreamEventAppeared * @property {EventStore.Client.Messages.IResolvedIndexedEvent} event PersistentSubscriptionStreamEventAppeared event + * @property {number|null} [retryCount] PersistentSubscriptionStreamEventAppeared retryCount */ - + /** * Constructs a new PersistentSubscriptionStreamEventAppeared. * @memberof EventStore.Client.Messages @@ -9560,7 +11461,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * PersistentSubscriptionStreamEventAppeared event. * @member {EventStore.Client.Messages.IResolvedIndexedEvent} event @@ -9568,7 +11469,15 @@ * @instance */ PersistentSubscriptionStreamEventAppeared.prototype.event = null; - + + /** + * PersistentSubscriptionStreamEventAppeared retryCount. + * @member {number} retryCount + * @memberof EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared + * @instance + */ + PersistentSubscriptionStreamEventAppeared.prototype.retryCount = 0; + /** * Creates a new PersistentSubscriptionStreamEventAppeared instance using the specified properties. * @function create @@ -9580,7 +11489,7 @@ PersistentSubscriptionStreamEventAppeared.create = function create(properties) { return new PersistentSubscriptionStreamEventAppeared(properties); }; - + /** * Encodes the specified PersistentSubscriptionStreamEventAppeared message. Does not implicitly {@link EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared.verify|verify} messages. * @function encode @@ -9594,9 +11503,11 @@ if (!writer) writer = $Writer.create(); $root.EventStore.Client.Messages.ResolvedIndexedEvent.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.retryCount != null && Object.hasOwnProperty.call(message, "retryCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.retryCount); return writer; }; - + /** * Encodes the specified PersistentSubscriptionStreamEventAppeared message, length delimited. Does not implicitly {@link EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared.verify|verify} messages. * @function encodeDelimited @@ -9609,7 +11520,7 @@ PersistentSubscriptionStreamEventAppeared.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a PersistentSubscriptionStreamEventAppeared message from the specified reader or buffer. * @function decode @@ -9628,9 +11539,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.event = $root.EventStore.Client.Messages.ResolvedIndexedEvent.decode(reader, reader.uint32()); - break; + case 1: { + message.event = $root.EventStore.Client.Messages.ResolvedIndexedEvent.decode(reader, reader.uint32()); + break; + } + case 2: { + message.retryCount = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -9640,7 +11556,7 @@ throw $util.ProtocolError("missing required 'event'", { instance: message }); return message; }; - + /** * Decodes a PersistentSubscriptionStreamEventAppeared message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -9656,7 +11572,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a PersistentSubscriptionStreamEventAppeared message. * @function verify @@ -9673,9 +11589,12 @@ if (error) return "event." + error; } + if (message.retryCount != null && message.hasOwnProperty("retryCount")) + if (!$util.isInteger(message.retryCount)) + return "retryCount: integer expected"; return null; }; - + /** * Creates a PersistentSubscriptionStreamEventAppeared message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -9693,9 +11612,11 @@ throw TypeError(".EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared.event: object expected"); message.event = $root.EventStore.Client.Messages.ResolvedIndexedEvent.fromObject(object.event); } + if (object.retryCount != null) + message.retryCount = object.retryCount | 0; return message; }; - + /** * Creates a plain object from a PersistentSubscriptionStreamEventAppeared message. Also converts values to other types if specified. * @function toObject @@ -9709,13 +11630,17 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.event = null; + object.retryCount = 0; + } if (message.event != null && message.hasOwnProperty("event")) object.event = $root.EventStore.Client.Messages.ResolvedIndexedEvent.toObject(message.event, options); + if (message.retryCount != null && message.hasOwnProperty("retryCount")) + object.retryCount = message.retryCount; return object; }; - + /** * Converts this PersistentSubscriptionStreamEventAppeared to JSON. * @function toJSON @@ -9726,12 +11651,27 @@ PersistentSubscriptionStreamEventAppeared.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for PersistentSubscriptionStreamEventAppeared + * @function getTypeUrl + * @memberof EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PersistentSubscriptionStreamEventAppeared.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.PersistentSubscriptionStreamEventAppeared"; + }; + return PersistentSubscriptionStreamEventAppeared; })(); - + Messages.SubscribeToStream = (function() { - + /** * Properties of a SubscribeToStream. * @memberof EventStore.Client.Messages @@ -9739,7 +11679,7 @@ * @property {string} eventStreamId SubscribeToStream eventStreamId * @property {boolean} resolveLinkTos SubscribeToStream resolveLinkTos */ - + /** * Constructs a new SubscribeToStream. * @memberof EventStore.Client.Messages @@ -9754,7 +11694,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * SubscribeToStream eventStreamId. * @member {string} eventStreamId @@ -9762,7 +11702,7 @@ * @instance */ SubscribeToStream.prototype.eventStreamId = ""; - + /** * SubscribeToStream resolveLinkTos. * @member {boolean} resolveLinkTos @@ -9770,7 +11710,7 @@ * @instance */ SubscribeToStream.prototype.resolveLinkTos = false; - + /** * Creates a new SubscribeToStream instance using the specified properties. * @function create @@ -9782,7 +11722,7 @@ SubscribeToStream.create = function create(properties) { return new SubscribeToStream(properties); }; - + /** * Encodes the specified SubscribeToStream message. Does not implicitly {@link EventStore.Client.Messages.SubscribeToStream.verify|verify} messages. * @function encode @@ -9799,7 +11739,7 @@ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.resolveLinkTos); return writer; }; - + /** * Encodes the specified SubscribeToStream message, length delimited. Does not implicitly {@link EventStore.Client.Messages.SubscribeToStream.verify|verify} messages. * @function encodeDelimited @@ -9812,7 +11752,7 @@ SubscribeToStream.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a SubscribeToStream message from the specified reader or buffer. * @function decode @@ -9831,12 +11771,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.eventStreamId = reader.string(); - break; - case 2: - message.resolveLinkTos = reader.bool(); - break; + case 1: { + message.eventStreamId = reader.string(); + break; + } + case 2: { + message.resolveLinkTos = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -9848,7 +11790,7 @@ throw $util.ProtocolError("missing required 'resolveLinkTos'", { instance: message }); return message; }; - + /** * Decodes a SubscribeToStream message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -9864,7 +11806,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a SubscribeToStream message. * @function verify @@ -9882,7 +11824,7 @@ return "resolveLinkTos: boolean expected"; return null; }; - + /** * Creates a SubscribeToStream message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -9901,7 +11843,7 @@ message.resolveLinkTos = Boolean(object.resolveLinkTos); return message; }; - + /** * Creates a plain object from a SubscribeToStream message. Also converts values to other types if specified. * @function toObject @@ -9925,7 +11867,7 @@ object.resolveLinkTos = message.resolveLinkTos; return object; }; - + /** * Converts this SubscribeToStream to JSON. * @function toJSON @@ -9936,20 +11878,569 @@ SubscribeToStream.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for SubscribeToStream + * @function getTypeUrl + * @memberof EventStore.Client.Messages.SubscribeToStream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscribeToStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.SubscribeToStream"; + }; + return SubscribeToStream; })(); - + + Messages.FilteredSubscribeToStream = (function() { + + /** + * Properties of a FilteredSubscribeToStream. + * @memberof EventStore.Client.Messages + * @interface IFilteredSubscribeToStream + * @property {string} eventStreamId FilteredSubscribeToStream eventStreamId + * @property {boolean} resolveLinkTos FilteredSubscribeToStream resolveLinkTos + * @property {EventStore.Client.Messages.IFilter} filter FilteredSubscribeToStream filter + * @property {number} checkpointInterval FilteredSubscribeToStream checkpointInterval + */ + + /** + * Constructs a new FilteredSubscribeToStream. + * @memberof EventStore.Client.Messages + * @classdesc Represents a FilteredSubscribeToStream. + * @implements IFilteredSubscribeToStream + * @constructor + * @param {EventStore.Client.Messages.IFilteredSubscribeToStream=} [properties] Properties to set + */ + function FilteredSubscribeToStream(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FilteredSubscribeToStream eventStreamId. + * @member {string} eventStreamId + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @instance + */ + FilteredSubscribeToStream.prototype.eventStreamId = ""; + + /** + * FilteredSubscribeToStream resolveLinkTos. + * @member {boolean} resolveLinkTos + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @instance + */ + FilteredSubscribeToStream.prototype.resolveLinkTos = false; + + /** + * FilteredSubscribeToStream filter. + * @member {EventStore.Client.Messages.IFilter} filter + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @instance + */ + FilteredSubscribeToStream.prototype.filter = null; + + /** + * FilteredSubscribeToStream checkpointInterval. + * @member {number} checkpointInterval + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @instance + */ + FilteredSubscribeToStream.prototype.checkpointInterval = 0; + + /** + * Creates a new FilteredSubscribeToStream instance using the specified properties. + * @function create + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @static + * @param {EventStore.Client.Messages.IFilteredSubscribeToStream=} [properties] Properties to set + * @returns {EventStore.Client.Messages.FilteredSubscribeToStream} FilteredSubscribeToStream instance + */ + FilteredSubscribeToStream.create = function create(properties) { + return new FilteredSubscribeToStream(properties); + }; + + /** + * Encodes the specified FilteredSubscribeToStream message. Does not implicitly {@link EventStore.Client.Messages.FilteredSubscribeToStream.verify|verify} messages. + * @function encode + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @static + * @param {EventStore.Client.Messages.IFilteredSubscribeToStream} message FilteredSubscribeToStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FilteredSubscribeToStream.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.eventStreamId); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.resolveLinkTos); + $root.EventStore.Client.Messages.Filter.encode(message.filter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.checkpointInterval); + return writer; + }; + + /** + * Encodes the specified FilteredSubscribeToStream message, length delimited. Does not implicitly {@link EventStore.Client.Messages.FilteredSubscribeToStream.verify|verify} messages. + * @function encodeDelimited + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @static + * @param {EventStore.Client.Messages.IFilteredSubscribeToStream} message FilteredSubscribeToStream message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FilteredSubscribeToStream.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FilteredSubscribeToStream message from the specified reader or buffer. + * @function decode + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {EventStore.Client.Messages.FilteredSubscribeToStream} FilteredSubscribeToStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FilteredSubscribeToStream.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventStore.Client.Messages.FilteredSubscribeToStream(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.eventStreamId = reader.string(); + break; + } + case 2: { + message.resolveLinkTos = reader.bool(); + break; + } + case 3: { + message.filter = $root.EventStore.Client.Messages.Filter.decode(reader, reader.uint32()); + break; + } + case 4: { + message.checkpointInterval = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("eventStreamId")) + throw $util.ProtocolError("missing required 'eventStreamId'", { instance: message }); + if (!message.hasOwnProperty("resolveLinkTos")) + throw $util.ProtocolError("missing required 'resolveLinkTos'", { instance: message }); + if (!message.hasOwnProperty("filter")) + throw $util.ProtocolError("missing required 'filter'", { instance: message }); + if (!message.hasOwnProperty("checkpointInterval")) + throw $util.ProtocolError("missing required 'checkpointInterval'", { instance: message }); + return message; + }; + + /** + * Decodes a FilteredSubscribeToStream message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {EventStore.Client.Messages.FilteredSubscribeToStream} FilteredSubscribeToStream + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FilteredSubscribeToStream.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FilteredSubscribeToStream message. + * @function verify + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FilteredSubscribeToStream.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.eventStreamId)) + return "eventStreamId: string expected"; + if (typeof message.resolveLinkTos !== "boolean") + return "resolveLinkTos: boolean expected"; + { + var error = $root.EventStore.Client.Messages.Filter.verify(message.filter); + if (error) + return "filter." + error; + } + if (!$util.isInteger(message.checkpointInterval)) + return "checkpointInterval: integer expected"; + return null; + }; + + /** + * Creates a FilteredSubscribeToStream message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @static + * @param {Object.} object Plain object + * @returns {EventStore.Client.Messages.FilteredSubscribeToStream} FilteredSubscribeToStream + */ + FilteredSubscribeToStream.fromObject = function fromObject(object) { + if (object instanceof $root.EventStore.Client.Messages.FilteredSubscribeToStream) + return object; + var message = new $root.EventStore.Client.Messages.FilteredSubscribeToStream(); + if (object.eventStreamId != null) + message.eventStreamId = String(object.eventStreamId); + if (object.resolveLinkTos != null) + message.resolveLinkTos = Boolean(object.resolveLinkTos); + if (object.filter != null) { + if (typeof object.filter !== "object") + throw TypeError(".EventStore.Client.Messages.FilteredSubscribeToStream.filter: object expected"); + message.filter = $root.EventStore.Client.Messages.Filter.fromObject(object.filter); + } + if (object.checkpointInterval != null) + message.checkpointInterval = object.checkpointInterval | 0; + return message; + }; + + /** + * Creates a plain object from a FilteredSubscribeToStream message. Also converts values to other types if specified. + * @function toObject + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @static + * @param {EventStore.Client.Messages.FilteredSubscribeToStream} message FilteredSubscribeToStream + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FilteredSubscribeToStream.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.eventStreamId = ""; + object.resolveLinkTos = false; + object.filter = null; + object.checkpointInterval = 0; + } + if (message.eventStreamId != null && message.hasOwnProperty("eventStreamId")) + object.eventStreamId = message.eventStreamId; + if (message.resolveLinkTos != null && message.hasOwnProperty("resolveLinkTos")) + object.resolveLinkTos = message.resolveLinkTos; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = $root.EventStore.Client.Messages.Filter.toObject(message.filter, options); + if (message.checkpointInterval != null && message.hasOwnProperty("checkpointInterval")) + object.checkpointInterval = message.checkpointInterval; + return object; + }; + + /** + * Converts this FilteredSubscribeToStream to JSON. + * @function toJSON + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @instance + * @returns {Object.} JSON object + */ + FilteredSubscribeToStream.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for FilteredSubscribeToStream + * @function getTypeUrl + * @memberof EventStore.Client.Messages.FilteredSubscribeToStream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FilteredSubscribeToStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.FilteredSubscribeToStream"; + }; + + return FilteredSubscribeToStream; + })(); + + Messages.CheckpointReached = (function() { + + /** + * Properties of a CheckpointReached. + * @memberof EventStore.Client.Messages + * @interface ICheckpointReached + * @property {Long} commitPosition CheckpointReached commitPosition + * @property {Long} preparePosition CheckpointReached preparePosition + */ + + /** + * Constructs a new CheckpointReached. + * @memberof EventStore.Client.Messages + * @classdesc Represents a CheckpointReached. + * @implements ICheckpointReached + * @constructor + * @param {EventStore.Client.Messages.ICheckpointReached=} [properties] Properties to set + */ + function CheckpointReached(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CheckpointReached commitPosition. + * @member {Long} commitPosition + * @memberof EventStore.Client.Messages.CheckpointReached + * @instance + */ + CheckpointReached.prototype.commitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * CheckpointReached preparePosition. + * @member {Long} preparePosition + * @memberof EventStore.Client.Messages.CheckpointReached + * @instance + */ + CheckpointReached.prototype.preparePosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new CheckpointReached instance using the specified properties. + * @function create + * @memberof EventStore.Client.Messages.CheckpointReached + * @static + * @param {EventStore.Client.Messages.ICheckpointReached=} [properties] Properties to set + * @returns {EventStore.Client.Messages.CheckpointReached} CheckpointReached instance + */ + CheckpointReached.create = function create(properties) { + return new CheckpointReached(properties); + }; + + /** + * Encodes the specified CheckpointReached message. Does not implicitly {@link EventStore.Client.Messages.CheckpointReached.verify|verify} messages. + * @function encode + * @memberof EventStore.Client.Messages.CheckpointReached + * @static + * @param {EventStore.Client.Messages.ICheckpointReached} message CheckpointReached message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckpointReached.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.commitPosition); + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.preparePosition); + return writer; + }; + + /** + * Encodes the specified CheckpointReached message, length delimited. Does not implicitly {@link EventStore.Client.Messages.CheckpointReached.verify|verify} messages. + * @function encodeDelimited + * @memberof EventStore.Client.Messages.CheckpointReached + * @static + * @param {EventStore.Client.Messages.ICheckpointReached} message CheckpointReached message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CheckpointReached.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CheckpointReached message from the specified reader or buffer. + * @function decode + * @memberof EventStore.Client.Messages.CheckpointReached + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {EventStore.Client.Messages.CheckpointReached} CheckpointReached + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckpointReached.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventStore.Client.Messages.CheckpointReached(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.commitPosition = reader.int64(); + break; + } + case 2: { + message.preparePosition = reader.int64(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("commitPosition")) + throw $util.ProtocolError("missing required 'commitPosition'", { instance: message }); + if (!message.hasOwnProperty("preparePosition")) + throw $util.ProtocolError("missing required 'preparePosition'", { instance: message }); + return message; + }; + + /** + * Decodes a CheckpointReached message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof EventStore.Client.Messages.CheckpointReached + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {EventStore.Client.Messages.CheckpointReached} CheckpointReached + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CheckpointReached.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CheckpointReached message. + * @function verify + * @memberof EventStore.Client.Messages.CheckpointReached + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CheckpointReached.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isInteger(message.commitPosition) && !(message.commitPosition && $util.isInteger(message.commitPosition.low) && $util.isInteger(message.commitPosition.high))) + return "commitPosition: integer|Long expected"; + if (!$util.isInteger(message.preparePosition) && !(message.preparePosition && $util.isInteger(message.preparePosition.low) && $util.isInteger(message.preparePosition.high))) + return "preparePosition: integer|Long expected"; + return null; + }; + + /** + * Creates a CheckpointReached message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof EventStore.Client.Messages.CheckpointReached + * @static + * @param {Object.} object Plain object + * @returns {EventStore.Client.Messages.CheckpointReached} CheckpointReached + */ + CheckpointReached.fromObject = function fromObject(object) { + if (object instanceof $root.EventStore.Client.Messages.CheckpointReached) + return object; + var message = new $root.EventStore.Client.Messages.CheckpointReached(); + if (object.commitPosition != null) + if ($util.Long) + (message.commitPosition = $util.Long.fromValue(object.commitPosition)).unsigned = false; + else if (typeof object.commitPosition === "string") + message.commitPosition = parseInt(object.commitPosition, 10); + else if (typeof object.commitPosition === "number") + message.commitPosition = object.commitPosition; + else if (typeof object.commitPosition === "object") + message.commitPosition = new $util.LongBits(object.commitPosition.low >>> 0, object.commitPosition.high >>> 0).toNumber(); + if (object.preparePosition != null) + if ($util.Long) + (message.preparePosition = $util.Long.fromValue(object.preparePosition)).unsigned = false; + else if (typeof object.preparePosition === "string") + message.preparePosition = parseInt(object.preparePosition, 10); + else if (typeof object.preparePosition === "number") + message.preparePosition = object.preparePosition; + else if (typeof object.preparePosition === "object") + message.preparePosition = new $util.LongBits(object.preparePosition.low >>> 0, object.preparePosition.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a CheckpointReached message. Also converts values to other types if specified. + * @function toObject + * @memberof EventStore.Client.Messages.CheckpointReached + * @static + * @param {EventStore.Client.Messages.CheckpointReached} message CheckpointReached + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CheckpointReached.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.commitPosition = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.commitPosition = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.preparePosition = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.preparePosition = options.longs === String ? "0" : 0; + } + if (message.commitPosition != null && message.hasOwnProperty("commitPosition")) + if (typeof message.commitPosition === "number") + object.commitPosition = options.longs === String ? String(message.commitPosition) : message.commitPosition; + else + object.commitPosition = options.longs === String ? $util.Long.prototype.toString.call(message.commitPosition) : options.longs === Number ? new $util.LongBits(message.commitPosition.low >>> 0, message.commitPosition.high >>> 0).toNumber() : message.commitPosition; + if (message.preparePosition != null && message.hasOwnProperty("preparePosition")) + if (typeof message.preparePosition === "number") + object.preparePosition = options.longs === String ? String(message.preparePosition) : message.preparePosition; + else + object.preparePosition = options.longs === String ? $util.Long.prototype.toString.call(message.preparePosition) : options.longs === Number ? new $util.LongBits(message.preparePosition.low >>> 0, message.preparePosition.high >>> 0).toNumber() : message.preparePosition; + return object; + }; + + /** + * Converts this CheckpointReached to JSON. + * @function toJSON + * @memberof EventStore.Client.Messages.CheckpointReached + * @instance + * @returns {Object.} JSON object + */ + CheckpointReached.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CheckpointReached + * @function getTypeUrl + * @memberof EventStore.Client.Messages.CheckpointReached + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CheckpointReached.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.CheckpointReached"; + }; + + return CheckpointReached; + })(); + Messages.SubscriptionConfirmation = (function() { - + /** * Properties of a SubscriptionConfirmation. * @memberof EventStore.Client.Messages * @interface ISubscriptionConfirmation - * @property {number|Long} lastCommitPosition SubscriptionConfirmation lastCommitPosition - * @property {number|Long|null} [lastEventNumber] SubscriptionConfirmation lastEventNumber + * @property {Long} lastCommitPosition SubscriptionConfirmation lastCommitPosition + * @property {Long|null} [lastEventNumber] SubscriptionConfirmation lastEventNumber */ - + /** * Constructs a new SubscriptionConfirmation. * @memberof EventStore.Client.Messages @@ -9964,23 +12455,23 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * SubscriptionConfirmation lastCommitPosition. - * @member {number|Long} lastCommitPosition + * @member {Long} lastCommitPosition * @memberof EventStore.Client.Messages.SubscriptionConfirmation * @instance */ SubscriptionConfirmation.prototype.lastCommitPosition = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * SubscriptionConfirmation lastEventNumber. - * @member {number|Long} lastEventNumber + * @member {Long} lastEventNumber * @memberof EventStore.Client.Messages.SubscriptionConfirmation * @instance */ SubscriptionConfirmation.prototype.lastEventNumber = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - + /** * Creates a new SubscriptionConfirmation instance using the specified properties. * @function create @@ -9992,7 +12483,7 @@ SubscriptionConfirmation.create = function create(properties) { return new SubscriptionConfirmation(properties); }; - + /** * Encodes the specified SubscriptionConfirmation message. Does not implicitly {@link EventStore.Client.Messages.SubscriptionConfirmation.verify|verify} messages. * @function encode @@ -10006,11 +12497,11 @@ if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastCommitPosition); - if (message.lastEventNumber != null && message.hasOwnProperty("lastEventNumber")) + if (message.lastEventNumber != null && Object.hasOwnProperty.call(message, "lastEventNumber")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastEventNumber); return writer; }; - + /** * Encodes the specified SubscriptionConfirmation message, length delimited. Does not implicitly {@link EventStore.Client.Messages.SubscriptionConfirmation.verify|verify} messages. * @function encodeDelimited @@ -10023,7 +12514,7 @@ SubscriptionConfirmation.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a SubscriptionConfirmation message from the specified reader or buffer. * @function decode @@ -10042,12 +12533,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.lastCommitPosition = reader.int64(); - break; - case 2: - message.lastEventNumber = reader.int64(); - break; + case 1: { + message.lastCommitPosition = reader.int64(); + break; + } + case 2: { + message.lastEventNumber = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -10057,7 +12550,7 @@ throw $util.ProtocolError("missing required 'lastCommitPosition'", { instance: message }); return message; }; - + /** * Decodes a SubscriptionConfirmation message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -10073,7 +12566,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a SubscriptionConfirmation message. * @function verify @@ -10092,7 +12585,7 @@ return "lastEventNumber: integer|Long expected"; return null; }; - + /** * Creates a SubscriptionConfirmation message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -10125,7 +12618,7 @@ message.lastEventNumber = new $util.LongBits(object.lastEventNumber.low >>> 0, object.lastEventNumber.high >>> 0).toNumber(); return message; }; - + /** * Creates a plain object from a SubscriptionConfirmation message. Also converts values to other types if specified. * @function toObject @@ -10163,7 +12656,7 @@ object.lastEventNumber = options.longs === String ? $util.Long.prototype.toString.call(message.lastEventNumber) : options.longs === Number ? new $util.LongBits(message.lastEventNumber.low >>> 0, message.lastEventNumber.high >>> 0).toNumber() : message.lastEventNumber; return object; }; - + /** * Converts this SubscriptionConfirmation to JSON. * @function toJSON @@ -10174,19 +12667,34 @@ SubscriptionConfirmation.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for SubscriptionConfirmation + * @function getTypeUrl + * @memberof EventStore.Client.Messages.SubscriptionConfirmation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionConfirmation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.SubscriptionConfirmation"; + }; + return SubscriptionConfirmation; })(); - + Messages.StreamEventAppeared = (function() { - + /** * Properties of a StreamEventAppeared. * @memberof EventStore.Client.Messages * @interface IStreamEventAppeared * @property {EventStore.Client.Messages.IResolvedEvent} event StreamEventAppeared event */ - + /** * Constructs a new StreamEventAppeared. * @memberof EventStore.Client.Messages @@ -10201,7 +12709,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * StreamEventAppeared event. * @member {EventStore.Client.Messages.IResolvedEvent} event @@ -10209,7 +12717,7 @@ * @instance */ StreamEventAppeared.prototype.event = null; - + /** * Creates a new StreamEventAppeared instance using the specified properties. * @function create @@ -10221,7 +12729,7 @@ StreamEventAppeared.create = function create(properties) { return new StreamEventAppeared(properties); }; - + /** * Encodes the specified StreamEventAppeared message. Does not implicitly {@link EventStore.Client.Messages.StreamEventAppeared.verify|verify} messages. * @function encode @@ -10237,7 +12745,7 @@ $root.EventStore.Client.Messages.ResolvedEvent.encode(message.event, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; - + /** * Encodes the specified StreamEventAppeared message, length delimited. Does not implicitly {@link EventStore.Client.Messages.StreamEventAppeared.verify|verify} messages. * @function encodeDelimited @@ -10250,7 +12758,7 @@ StreamEventAppeared.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a StreamEventAppeared message from the specified reader or buffer. * @function decode @@ -10269,9 +12777,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.event = $root.EventStore.Client.Messages.ResolvedEvent.decode(reader, reader.uint32()); - break; + case 1: { + message.event = $root.EventStore.Client.Messages.ResolvedEvent.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -10281,7 +12790,7 @@ throw $util.ProtocolError("missing required 'event'", { instance: message }); return message; }; - + /** * Decodes a StreamEventAppeared message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -10297,7 +12806,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a StreamEventAppeared message. * @function verify @@ -10316,7 +12825,7 @@ } return null; }; - + /** * Creates a StreamEventAppeared message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -10336,7 +12845,7 @@ } return message; }; - + /** * Creates a plain object from a StreamEventAppeared message. Also converts values to other types if specified. * @function toObject @@ -10356,7 +12865,7 @@ object.event = $root.EventStore.Client.Messages.ResolvedEvent.toObject(message.event, options); return object; }; - + /** * Converts this StreamEventAppeared to JSON. * @function toJSON @@ -10367,18 +12876,33 @@ StreamEventAppeared.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for StreamEventAppeared + * @function getTypeUrl + * @memberof EventStore.Client.Messages.StreamEventAppeared + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StreamEventAppeared.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.StreamEventAppeared"; + }; + return StreamEventAppeared; })(); - + Messages.UnsubscribeFromStream = (function() { - + /** * Properties of an UnsubscribeFromStream. * @memberof EventStore.Client.Messages * @interface IUnsubscribeFromStream */ - + /** * Constructs a new UnsubscribeFromStream. * @memberof EventStore.Client.Messages @@ -10393,7 +12917,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * Creates a new UnsubscribeFromStream instance using the specified properties. * @function create @@ -10405,7 +12929,7 @@ UnsubscribeFromStream.create = function create(properties) { return new UnsubscribeFromStream(properties); }; - + /** * Encodes the specified UnsubscribeFromStream message. Does not implicitly {@link EventStore.Client.Messages.UnsubscribeFromStream.verify|verify} messages. * @function encode @@ -10420,7 +12944,7 @@ writer = $Writer.create(); return writer; }; - + /** * Encodes the specified UnsubscribeFromStream message, length delimited. Does not implicitly {@link EventStore.Client.Messages.UnsubscribeFromStream.verify|verify} messages. * @function encodeDelimited @@ -10433,7 +12957,7 @@ UnsubscribeFromStream.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes an UnsubscribeFromStream message from the specified reader or buffer. * @function decode @@ -10459,7 +12983,7 @@ } return message; }; - + /** * Decodes an UnsubscribeFromStream message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -10475,7 +12999,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies an UnsubscribeFromStream message. * @function verify @@ -10489,7 +13013,7 @@ return "object expected"; return null; }; - + /** * Creates an UnsubscribeFromStream message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -10503,7 +13027,7 @@ return object; return new $root.EventStore.Client.Messages.UnsubscribeFromStream(); }; - + /** * Creates a plain object from an UnsubscribeFromStream message. Also converts values to other types if specified. * @function toObject @@ -10516,7 +13040,7 @@ UnsubscribeFromStream.toObject = function toObject() { return {}; }; - + /** * Converts this UnsubscribeFromStream to JSON. * @function toJSON @@ -10527,19 +13051,34 @@ UnsubscribeFromStream.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for UnsubscribeFromStream + * @function getTypeUrl + * @memberof EventStore.Client.Messages.UnsubscribeFromStream + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UnsubscribeFromStream.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.UnsubscribeFromStream"; + }; + return UnsubscribeFromStream; })(); - + Messages.SubscriptionDropped = (function() { - + /** * Properties of a SubscriptionDropped. * @memberof EventStore.Client.Messages * @interface ISubscriptionDropped * @property {EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason|null} [reason] SubscriptionDropped reason */ - + /** * Constructs a new SubscriptionDropped. * @memberof EventStore.Client.Messages @@ -10554,7 +13093,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * SubscriptionDropped reason. * @member {EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason} reason @@ -10562,7 +13101,7 @@ * @instance */ SubscriptionDropped.prototype.reason = 0; - + /** * Creates a new SubscriptionDropped instance using the specified properties. * @function create @@ -10574,7 +13113,7 @@ SubscriptionDropped.create = function create(properties) { return new SubscriptionDropped(properties); }; - + /** * Encodes the specified SubscriptionDropped message. Does not implicitly {@link EventStore.Client.Messages.SubscriptionDropped.verify|verify} messages. * @function encode @@ -10587,11 +13126,11 @@ SubscriptionDropped.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.reason != null && message.hasOwnProperty("reason")) + if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reason); return writer; }; - + /** * Encodes the specified SubscriptionDropped message, length delimited. Does not implicitly {@link EventStore.Client.Messages.SubscriptionDropped.verify|verify} messages. * @function encodeDelimited @@ -10604,7 +13143,7 @@ SubscriptionDropped.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a SubscriptionDropped message from the specified reader or buffer. * @function decode @@ -10623,9 +13162,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.reason = reader.int32(); - break; + case 1: { + message.reason = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -10633,7 +13173,7 @@ } return message; }; - + /** * Decodes a SubscriptionDropped message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -10649,7 +13189,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a SubscriptionDropped message. * @function verify @@ -10674,7 +13214,7 @@ } return null; }; - + /** * Creates a SubscriptionDropped message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -10688,6 +13228,12 @@ return object; var message = new $root.EventStore.Client.Messages.SubscriptionDropped(); switch (object.reason) { + default: + if (typeof object.reason === "number") { + message.reason = object.reason; + break; + } + break; case "Unsubscribed": case 0: message.reason = 0; @@ -10711,7 +13257,7 @@ } return message; }; - + /** * Creates a plain object from a SubscriptionDropped message. Also converts values to other types if specified. * @function toObject @@ -10728,10 +13274,10 @@ if (options.defaults) object.reason = options.enums === String ? "Unsubscribed" : 0; if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = options.enums === String ? $root.EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason[message.reason] : message.reason; + object.reason = options.enums === String ? $root.EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason[message.reason] === undefined ? message.reason : $root.EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason[message.reason] : message.reason; return object; }; - + /** * Converts this SubscriptionDropped to JSON. * @function toJSON @@ -10742,11 +13288,26 @@ SubscriptionDropped.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for SubscriptionDropped + * @function getTypeUrl + * @memberof EventStore.Client.Messages.SubscriptionDropped + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SubscriptionDropped.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.SubscriptionDropped"; + }; + /** * SubscriptionDropReason enum. * @name EventStore.Client.Messages.SubscriptionDropped.SubscriptionDropReason - * @enum {string} + * @enum {number} * @property {number} Unsubscribed=0 Unsubscribed value * @property {number} AccessDenied=1 AccessDenied value * @property {number} NotFound=2 NotFound value @@ -10762,12 +13323,12 @@ values[valuesById[4] = "SubscriberMaxCountReached"] = 4; return values; })(); - + return SubscriptionDropped; })(); - + Messages.NotHandled = (function() { - + /** * Properties of a NotHandled. * @memberof EventStore.Client.Messages @@ -10775,7 +13336,7 @@ * @property {EventStore.Client.Messages.NotHandled.NotHandledReason} reason NotHandled reason * @property {Uint8Array|null} [additionalInfo] NotHandled additionalInfo */ - + /** * Constructs a new NotHandled. * @memberof EventStore.Client.Messages @@ -10790,7 +13351,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * NotHandled reason. * @member {EventStore.Client.Messages.NotHandled.NotHandledReason} reason @@ -10798,7 +13359,7 @@ * @instance */ NotHandled.prototype.reason = 0; - + /** * NotHandled additionalInfo. * @member {Uint8Array} additionalInfo @@ -10806,7 +13367,7 @@ * @instance */ NotHandled.prototype.additionalInfo = $util.newBuffer([]); - + /** * Creates a new NotHandled instance using the specified properties. * @function create @@ -10818,7 +13379,7 @@ NotHandled.create = function create(properties) { return new NotHandled(properties); }; - + /** * Encodes the specified NotHandled message. Does not implicitly {@link EventStore.Client.Messages.NotHandled.verify|verify} messages. * @function encode @@ -10832,11 +13393,11 @@ if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reason); - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.additionalInfo); return writer; }; - + /** * Encodes the specified NotHandled message, length delimited. Does not implicitly {@link EventStore.Client.Messages.NotHandled.verify|verify} messages. * @function encodeDelimited @@ -10849,7 +13410,7 @@ NotHandled.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a NotHandled message from the specified reader or buffer. * @function decode @@ -10868,12 +13429,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.reason = reader.int32(); - break; - case 2: - message.additionalInfo = reader.bytes(); - break; + case 1: { + message.reason = reader.int32(); + break; + } + case 2: { + message.additionalInfo = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -10883,7 +13446,7 @@ throw $util.ProtocolError("missing required 'reason'", { instance: message }); return message; }; - + /** * Decodes a NotHandled message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -10899,7 +13462,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a NotHandled message. * @function verify @@ -10917,6 +13480,7 @@ case 0: case 1: case 2: + case 3: break; } if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) @@ -10924,7 +13488,7 @@ return "additionalInfo: buffer expected"; return null; }; - + /** * Creates a NotHandled message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -10938,6 +13502,12 @@ return object; var message = new $root.EventStore.Client.Messages.NotHandled(); switch (object.reason) { + default: + if (typeof object.reason === "number") { + message.reason = object.reason; + break; + } + break; case "NotReady": case 0: message.reason = 0; @@ -10946,19 +13516,23 @@ case 1: message.reason = 1; break; - case "NotMaster": + case "NotLeader": case 2: message.reason = 2; break; + case "IsReadOnly": + case 3: + message.reason = 3; + break; } if (object.additionalInfo != null) if (typeof object.additionalInfo === "string") $util.base64.decode(object.additionalInfo, message.additionalInfo = $util.newBuffer($util.base64.length(object.additionalInfo)), 0); - else if (object.additionalInfo.length) + else if (object.additionalInfo.length >= 0) message.additionalInfo = object.additionalInfo; return message; }; - + /** * Creates a plain object from a NotHandled message. Also converts values to other types if specified. * @function toObject @@ -10983,12 +13557,12 @@ } } if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = options.enums === String ? $root.EventStore.Client.Messages.NotHandled.NotHandledReason[message.reason] : message.reason; + object.reason = options.enums === String ? $root.EventStore.Client.Messages.NotHandled.NotHandledReason[message.reason] === undefined ? message.reason : $root.EventStore.Client.Messages.NotHandled.NotHandledReason[message.reason] : message.reason; if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) object.additionalInfo = options.bytes === String ? $util.base64.encode(message.additionalInfo, 0, message.additionalInfo.length) : options.bytes === Array ? Array.prototype.slice.call(message.additionalInfo) : message.additionalInfo; return object; }; - + /** * Converts this NotHandled to JSON. * @function toJSON @@ -10999,235 +13573,258 @@ NotHandled.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for NotHandled + * @function getTypeUrl + * @memberof EventStore.Client.Messages.NotHandled + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotHandled.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.NotHandled"; + }; + /** * NotHandledReason enum. * @name EventStore.Client.Messages.NotHandled.NotHandledReason - * @enum {string} + * @enum {number} * @property {number} NotReady=0 NotReady value * @property {number} TooBusy=1 TooBusy value - * @property {number} NotMaster=2 NotMaster value + * @property {number} NotLeader=2 NotLeader value + * @property {number} IsReadOnly=3 IsReadOnly value */ NotHandled.NotHandledReason = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "NotReady"] = 0; values[valuesById[1] = "TooBusy"] = 1; - values[valuesById[2] = "NotMaster"] = 2; + values[valuesById[2] = "NotLeader"] = 2; + values[valuesById[3] = "IsReadOnly"] = 3; return values; })(); - - NotHandled.MasterInfo = (function() { - + + NotHandled.LeaderInfo = (function() { + /** - * Properties of a MasterInfo. + * Properties of a LeaderInfo. * @memberof EventStore.Client.Messages.NotHandled - * @interface IMasterInfo - * @property {string} externalTcpAddress MasterInfo externalTcpAddress - * @property {number} externalTcpPort MasterInfo externalTcpPort - * @property {string} externalHttpAddress MasterInfo externalHttpAddress - * @property {number} externalHttpPort MasterInfo externalHttpPort - * @property {string|null} [externalSecureTcpAddress] MasterInfo externalSecureTcpAddress - * @property {number|null} [externalSecureTcpPort] MasterInfo externalSecureTcpPort + * @interface ILeaderInfo + * @property {string|null} [externalTcpAddress] LeaderInfo externalTcpAddress + * @property {number|null} [externalTcpPort] LeaderInfo externalTcpPort + * @property {string} httpAddress LeaderInfo httpAddress + * @property {number} httpPort LeaderInfo httpPort + * @property {string|null} [externalSecureTcpAddress] LeaderInfo externalSecureTcpAddress + * @property {number|null} [externalSecureTcpPort] LeaderInfo externalSecureTcpPort */ - + /** - * Constructs a new MasterInfo. + * Constructs a new LeaderInfo. * @memberof EventStore.Client.Messages.NotHandled - * @classdesc Represents a MasterInfo. - * @implements IMasterInfo + * @classdesc Represents a LeaderInfo. + * @implements ILeaderInfo * @constructor - * @param {EventStore.Client.Messages.NotHandled.IMasterInfo=} [properties] Properties to set + * @param {EventStore.Client.Messages.NotHandled.ILeaderInfo=} [properties] Properties to set */ - function MasterInfo(properties) { + function LeaderInfo(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** - * MasterInfo externalTcpAddress. + * LeaderInfo externalTcpAddress. * @member {string} externalTcpAddress - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @instance */ - MasterInfo.prototype.externalTcpAddress = ""; - + LeaderInfo.prototype.externalTcpAddress = ""; + /** - * MasterInfo externalTcpPort. + * LeaderInfo externalTcpPort. * @member {number} externalTcpPort - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @instance */ - MasterInfo.prototype.externalTcpPort = 0; - + LeaderInfo.prototype.externalTcpPort = 0; + /** - * MasterInfo externalHttpAddress. - * @member {string} externalHttpAddress - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * LeaderInfo httpAddress. + * @member {string} httpAddress + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @instance */ - MasterInfo.prototype.externalHttpAddress = ""; - + LeaderInfo.prototype.httpAddress = ""; + /** - * MasterInfo externalHttpPort. - * @member {number} externalHttpPort - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * LeaderInfo httpPort. + * @member {number} httpPort + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @instance */ - MasterInfo.prototype.externalHttpPort = 0; - + LeaderInfo.prototype.httpPort = 0; + /** - * MasterInfo externalSecureTcpAddress. + * LeaderInfo externalSecureTcpAddress. * @member {string} externalSecureTcpAddress - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @instance */ - MasterInfo.prototype.externalSecureTcpAddress = ""; - + LeaderInfo.prototype.externalSecureTcpAddress = ""; + /** - * MasterInfo externalSecureTcpPort. + * LeaderInfo externalSecureTcpPort. * @member {number} externalSecureTcpPort - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @instance */ - MasterInfo.prototype.externalSecureTcpPort = 0; - + LeaderInfo.prototype.externalSecureTcpPort = 0; + /** - * Creates a new MasterInfo instance using the specified properties. + * Creates a new LeaderInfo instance using the specified properties. * @function create - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @static - * @param {EventStore.Client.Messages.NotHandled.IMasterInfo=} [properties] Properties to set - * @returns {EventStore.Client.Messages.NotHandled.MasterInfo} MasterInfo instance + * @param {EventStore.Client.Messages.NotHandled.ILeaderInfo=} [properties] Properties to set + * @returns {EventStore.Client.Messages.NotHandled.LeaderInfo} LeaderInfo instance */ - MasterInfo.create = function create(properties) { - return new MasterInfo(properties); + LeaderInfo.create = function create(properties) { + return new LeaderInfo(properties); }; - + /** - * Encodes the specified MasterInfo message. Does not implicitly {@link EventStore.Client.Messages.NotHandled.MasterInfo.verify|verify} messages. + * Encodes the specified LeaderInfo message. Does not implicitly {@link EventStore.Client.Messages.NotHandled.LeaderInfo.verify|verify} messages. * @function encode - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @static - * @param {EventStore.Client.Messages.NotHandled.IMasterInfo} message MasterInfo message or plain object to encode + * @param {EventStore.Client.Messages.NotHandled.ILeaderInfo} message LeaderInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterInfo.encode = function encode(message, writer) { + LeaderInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.externalTcpAddress); - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.externalTcpPort); - writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalHttpAddress); - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.externalHttpPort); - if (message.externalSecureTcpAddress != null && message.hasOwnProperty("externalSecureTcpAddress")) + if (message.externalTcpAddress != null && Object.hasOwnProperty.call(message, "externalTcpAddress")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.externalTcpAddress); + if (message.externalTcpPort != null && Object.hasOwnProperty.call(message, "externalTcpPort")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.externalTcpPort); + writer.uint32(/* id 3, wireType 2 =*/26).string(message.httpAddress); + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.httpPort); + if (message.externalSecureTcpAddress != null && Object.hasOwnProperty.call(message, "externalSecureTcpAddress")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.externalSecureTcpAddress); - if (message.externalSecureTcpPort != null && message.hasOwnProperty("externalSecureTcpPort")) + if (message.externalSecureTcpPort != null && Object.hasOwnProperty.call(message, "externalSecureTcpPort")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.externalSecureTcpPort); return writer; }; - + /** - * Encodes the specified MasterInfo message, length delimited. Does not implicitly {@link EventStore.Client.Messages.NotHandled.MasterInfo.verify|verify} messages. + * Encodes the specified LeaderInfo message, length delimited. Does not implicitly {@link EventStore.Client.Messages.NotHandled.LeaderInfo.verify|verify} messages. * @function encodeDelimited - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @static - * @param {EventStore.Client.Messages.NotHandled.IMasterInfo} message MasterInfo message or plain object to encode + * @param {EventStore.Client.Messages.NotHandled.ILeaderInfo} message LeaderInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterInfo.encodeDelimited = function encodeDelimited(message, writer) { + LeaderInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** - * Decodes a MasterInfo message from the specified reader or buffer. + * Decodes a LeaderInfo message from the specified reader or buffer. * @function decode - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {EventStore.Client.Messages.NotHandled.MasterInfo} MasterInfo + * @returns {EventStore.Client.Messages.NotHandled.LeaderInfo} LeaderInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterInfo.decode = function decode(reader, length) { + LeaderInfo.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventStore.Client.Messages.NotHandled.MasterInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventStore.Client.Messages.NotHandled.LeaderInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.externalTcpAddress = reader.string(); - break; - case 2: - message.externalTcpPort = reader.int32(); - break; - case 3: - message.externalHttpAddress = reader.string(); - break; - case 4: - message.externalHttpPort = reader.int32(); - break; - case 5: - message.externalSecureTcpAddress = reader.string(); - break; - case 6: - message.externalSecureTcpPort = reader.int32(); - break; + case 1: { + message.externalTcpAddress = reader.string(); + break; + } + case 2: { + message.externalTcpPort = reader.int32(); + break; + } + case 3: { + message.httpAddress = reader.string(); + break; + } + case 4: { + message.httpPort = reader.int32(); + break; + } + case 5: { + message.externalSecureTcpAddress = reader.string(); + break; + } + case 6: { + message.externalSecureTcpPort = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; } } - if (!message.hasOwnProperty("externalTcpAddress")) - throw $util.ProtocolError("missing required 'externalTcpAddress'", { instance: message }); - if (!message.hasOwnProperty("externalTcpPort")) - throw $util.ProtocolError("missing required 'externalTcpPort'", { instance: message }); - if (!message.hasOwnProperty("externalHttpAddress")) - throw $util.ProtocolError("missing required 'externalHttpAddress'", { instance: message }); - if (!message.hasOwnProperty("externalHttpPort")) - throw $util.ProtocolError("missing required 'externalHttpPort'", { instance: message }); + if (!message.hasOwnProperty("httpAddress")) + throw $util.ProtocolError("missing required 'httpAddress'", { instance: message }); + if (!message.hasOwnProperty("httpPort")) + throw $util.ProtocolError("missing required 'httpPort'", { instance: message }); return message; }; - + /** - * Decodes a MasterInfo message from the specified reader or buffer, length delimited. + * Decodes a LeaderInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {EventStore.Client.Messages.NotHandled.MasterInfo} MasterInfo + * @returns {EventStore.Client.Messages.NotHandled.LeaderInfo} LeaderInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MasterInfo.decodeDelimited = function decodeDelimited(reader) { + LeaderInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** - * Verifies a MasterInfo message. + * Verifies a LeaderInfo message. * @function verify - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MasterInfo.verify = function verify(message) { + LeaderInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (!$util.isString(message.externalTcpAddress)) - return "externalTcpAddress: string expected"; - if (!$util.isInteger(message.externalTcpPort)) - return "externalTcpPort: integer expected"; - if (!$util.isString(message.externalHttpAddress)) - return "externalHttpAddress: string expected"; - if (!$util.isInteger(message.externalHttpPort)) - return "externalHttpPort: integer expected"; + if (message.externalTcpAddress != null && message.hasOwnProperty("externalTcpAddress")) + if (!$util.isString(message.externalTcpAddress)) + return "externalTcpAddress: string expected"; + if (message.externalTcpPort != null && message.hasOwnProperty("externalTcpPort")) + if (!$util.isInteger(message.externalTcpPort)) + return "externalTcpPort: integer expected"; + if (!$util.isString(message.httpAddress)) + return "httpAddress: string expected"; + if (!$util.isInteger(message.httpPort)) + return "httpPort: integer expected"; if (message.externalSecureTcpAddress != null && message.hasOwnProperty("externalSecureTcpAddress")) if (!$util.isString(message.externalSecureTcpAddress)) return "externalSecureTcpAddress: string expected"; @@ -11236,52 +13833,52 @@ return "externalSecureTcpPort: integer expected"; return null; }; - + /** - * Creates a MasterInfo message from a plain object. Also converts values to their respective internal types. + * Creates a LeaderInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @static * @param {Object.} object Plain object - * @returns {EventStore.Client.Messages.NotHandled.MasterInfo} MasterInfo + * @returns {EventStore.Client.Messages.NotHandled.LeaderInfo} LeaderInfo */ - MasterInfo.fromObject = function fromObject(object) { - if (object instanceof $root.EventStore.Client.Messages.NotHandled.MasterInfo) + LeaderInfo.fromObject = function fromObject(object) { + if (object instanceof $root.EventStore.Client.Messages.NotHandled.LeaderInfo) return object; - var message = new $root.EventStore.Client.Messages.NotHandled.MasterInfo(); + var message = new $root.EventStore.Client.Messages.NotHandled.LeaderInfo(); if (object.externalTcpAddress != null) message.externalTcpAddress = String(object.externalTcpAddress); if (object.externalTcpPort != null) message.externalTcpPort = object.externalTcpPort | 0; - if (object.externalHttpAddress != null) - message.externalHttpAddress = String(object.externalHttpAddress); - if (object.externalHttpPort != null) - message.externalHttpPort = object.externalHttpPort | 0; + if (object.httpAddress != null) + message.httpAddress = String(object.httpAddress); + if (object.httpPort != null) + message.httpPort = object.httpPort | 0; if (object.externalSecureTcpAddress != null) message.externalSecureTcpAddress = String(object.externalSecureTcpAddress); if (object.externalSecureTcpPort != null) message.externalSecureTcpPort = object.externalSecureTcpPort | 0; return message; }; - + /** - * Creates a plain object from a MasterInfo message. Also converts values to other types if specified. + * Creates a plain object from a LeaderInfo message. Also converts values to other types if specified. * @function toObject - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @static - * @param {EventStore.Client.Messages.NotHandled.MasterInfo} message MasterInfo + * @param {EventStore.Client.Messages.NotHandled.LeaderInfo} message LeaderInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterInfo.toObject = function toObject(message, options) { + LeaderInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.externalTcpAddress = ""; object.externalTcpPort = 0; - object.externalHttpAddress = ""; - object.externalHttpPort = 0; + object.httpAddress = ""; + object.httpPort = 0; object.externalSecureTcpAddress = ""; object.externalSecureTcpPort = 0; } @@ -11289,42 +13886,57 @@ object.externalTcpAddress = message.externalTcpAddress; if (message.externalTcpPort != null && message.hasOwnProperty("externalTcpPort")) object.externalTcpPort = message.externalTcpPort; - if (message.externalHttpAddress != null && message.hasOwnProperty("externalHttpAddress")) - object.externalHttpAddress = message.externalHttpAddress; - if (message.externalHttpPort != null && message.hasOwnProperty("externalHttpPort")) - object.externalHttpPort = message.externalHttpPort; + if (message.httpAddress != null && message.hasOwnProperty("httpAddress")) + object.httpAddress = message.httpAddress; + if (message.httpPort != null && message.hasOwnProperty("httpPort")) + object.httpPort = message.httpPort; if (message.externalSecureTcpAddress != null && message.hasOwnProperty("externalSecureTcpAddress")) object.externalSecureTcpAddress = message.externalSecureTcpAddress; if (message.externalSecureTcpPort != null && message.hasOwnProperty("externalSecureTcpPort")) object.externalSecureTcpPort = message.externalSecureTcpPort; return object; }; - + /** - * Converts this MasterInfo to JSON. + * Converts this LeaderInfo to JSON. * @function toJSON - * @memberof EventStore.Client.Messages.NotHandled.MasterInfo + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo * @instance * @returns {Object.} JSON object */ - MasterInfo.prototype.toJSON = function toJSON() { + LeaderInfo.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - - return MasterInfo; + + /** + * Gets the default type url for LeaderInfo + * @function getTypeUrl + * @memberof EventStore.Client.Messages.NotHandled.LeaderInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LeaderInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.NotHandled.LeaderInfo"; + }; + + return LeaderInfo; })(); - + return NotHandled; })(); - + Messages.ScavengeDatabase = (function() { - + /** * Properties of a ScavengeDatabase. * @memberof EventStore.Client.Messages * @interface IScavengeDatabase */ - + /** * Constructs a new ScavengeDatabase. * @memberof EventStore.Client.Messages @@ -11339,7 +13951,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * Creates a new ScavengeDatabase instance using the specified properties. * @function create @@ -11351,7 +13963,7 @@ ScavengeDatabase.create = function create(properties) { return new ScavengeDatabase(properties); }; - + /** * Encodes the specified ScavengeDatabase message. Does not implicitly {@link EventStore.Client.Messages.ScavengeDatabase.verify|verify} messages. * @function encode @@ -11366,7 +13978,7 @@ writer = $Writer.create(); return writer; }; - + /** * Encodes the specified ScavengeDatabase message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ScavengeDatabase.verify|verify} messages. * @function encodeDelimited @@ -11379,7 +13991,7 @@ ScavengeDatabase.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ScavengeDatabase message from the specified reader or buffer. * @function decode @@ -11405,7 +14017,7 @@ } return message; }; - + /** * Decodes a ScavengeDatabase message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -11421,7 +14033,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ScavengeDatabase message. * @function verify @@ -11435,7 +14047,7 @@ return "object expected"; return null; }; - + /** * Creates a ScavengeDatabase message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -11449,7 +14061,7 @@ return object; return new $root.EventStore.Client.Messages.ScavengeDatabase(); }; - + /** * Creates a plain object from a ScavengeDatabase message. Also converts values to other types if specified. * @function toObject @@ -11462,7 +14074,7 @@ ScavengeDatabase.toObject = function toObject() { return {}; }; - + /** * Converts this ScavengeDatabase to JSON. * @function toJSON @@ -11473,144 +14085,135 @@ ScavengeDatabase.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ScavengeDatabase + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ScavengeDatabase + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ScavengeDatabase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ScavengeDatabase"; + }; + return ScavengeDatabase; })(); - - Messages.ScavengeDatabaseCompleted = (function() { - + + Messages.ScavengeDatabaseResponse = (function() { + /** - * Properties of a ScavengeDatabaseCompleted. + * Properties of a ScavengeDatabaseResponse. * @memberof EventStore.Client.Messages - * @interface IScavengeDatabaseCompleted - * @property {EventStore.Client.Messages.ScavengeDatabaseCompleted.ScavengeResult} result ScavengeDatabaseCompleted result - * @property {string|null} [error] ScavengeDatabaseCompleted error - * @property {number} totalTimeMs ScavengeDatabaseCompleted totalTimeMs - * @property {number|Long} totalSpaceSaved ScavengeDatabaseCompleted totalSpaceSaved + * @interface IScavengeDatabaseResponse + * @property {EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult} result ScavengeDatabaseResponse result + * @property {string|null} [scavengeId] ScavengeDatabaseResponse scavengeId */ - + /** - * Constructs a new ScavengeDatabaseCompleted. + * Constructs a new ScavengeDatabaseResponse. * @memberof EventStore.Client.Messages - * @classdesc Represents a ScavengeDatabaseCompleted. - * @implements IScavengeDatabaseCompleted + * @classdesc Represents a ScavengeDatabaseResponse. + * @implements IScavengeDatabaseResponse * @constructor - * @param {EventStore.Client.Messages.IScavengeDatabaseCompleted=} [properties] Properties to set + * @param {EventStore.Client.Messages.IScavengeDatabaseResponse=} [properties] Properties to set */ - function ScavengeDatabaseCompleted(properties) { + function ScavengeDatabaseResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** - * ScavengeDatabaseCompleted result. - * @member {EventStore.Client.Messages.ScavengeDatabaseCompleted.ScavengeResult} result - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * ScavengeDatabaseResponse result. + * @member {EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult} result + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @instance */ - ScavengeDatabaseCompleted.prototype.result = 0; - + ScavengeDatabaseResponse.prototype.result = 0; + /** - * ScavengeDatabaseCompleted error. - * @member {string} error - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * ScavengeDatabaseResponse scavengeId. + * @member {string} scavengeId + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @instance */ - ScavengeDatabaseCompleted.prototype.error = ""; - + ScavengeDatabaseResponse.prototype.scavengeId = ""; + /** - * ScavengeDatabaseCompleted totalTimeMs. - * @member {number} totalTimeMs - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted - * @instance - */ - ScavengeDatabaseCompleted.prototype.totalTimeMs = 0; - - /** - * ScavengeDatabaseCompleted totalSpaceSaved. - * @member {number|Long} totalSpaceSaved - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted - * @instance - */ - ScavengeDatabaseCompleted.prototype.totalSpaceSaved = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new ScavengeDatabaseCompleted instance using the specified properties. + * Creates a new ScavengeDatabaseResponse instance using the specified properties. * @function create - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @static - * @param {EventStore.Client.Messages.IScavengeDatabaseCompleted=} [properties] Properties to set - * @returns {EventStore.Client.Messages.ScavengeDatabaseCompleted} ScavengeDatabaseCompleted instance + * @param {EventStore.Client.Messages.IScavengeDatabaseResponse=} [properties] Properties to set + * @returns {EventStore.Client.Messages.ScavengeDatabaseResponse} ScavengeDatabaseResponse instance */ - ScavengeDatabaseCompleted.create = function create(properties) { - return new ScavengeDatabaseCompleted(properties); + ScavengeDatabaseResponse.create = function create(properties) { + return new ScavengeDatabaseResponse(properties); }; - + /** - * Encodes the specified ScavengeDatabaseCompleted message. Does not implicitly {@link EventStore.Client.Messages.ScavengeDatabaseCompleted.verify|verify} messages. + * Encodes the specified ScavengeDatabaseResponse message. Does not implicitly {@link EventStore.Client.Messages.ScavengeDatabaseResponse.verify|verify} messages. * @function encode - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @static - * @param {EventStore.Client.Messages.IScavengeDatabaseCompleted} message ScavengeDatabaseCompleted message or plain object to encode + * @param {EventStore.Client.Messages.IScavengeDatabaseResponse} message ScavengeDatabaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ScavengeDatabaseCompleted.encode = function encode(message, writer) { + ScavengeDatabaseResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int32(message.result); - if (message.error != null && message.hasOwnProperty("error")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.error); - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.totalTimeMs); - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.totalSpaceSaved); + if (message.scavengeId != null && Object.hasOwnProperty.call(message, "scavengeId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.scavengeId); return writer; }; - + /** - * Encodes the specified ScavengeDatabaseCompleted message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ScavengeDatabaseCompleted.verify|verify} messages. + * Encodes the specified ScavengeDatabaseResponse message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ScavengeDatabaseResponse.verify|verify} messages. * @function encodeDelimited - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @static - * @param {EventStore.Client.Messages.IScavengeDatabaseCompleted} message ScavengeDatabaseCompleted message or plain object to encode + * @param {EventStore.Client.Messages.IScavengeDatabaseResponse} message ScavengeDatabaseResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ScavengeDatabaseCompleted.encodeDelimited = function encodeDelimited(message, writer) { + ScavengeDatabaseResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** - * Decodes a ScavengeDatabaseCompleted message from the specified reader or buffer. + * Decodes a ScavengeDatabaseResponse message from the specified reader or buffer. * @function decode - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {EventStore.Client.Messages.ScavengeDatabaseCompleted} ScavengeDatabaseCompleted + * @returns {EventStore.Client.Messages.ScavengeDatabaseResponse} ScavengeDatabaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ScavengeDatabaseCompleted.decode = function decode(reader, length) { + ScavengeDatabaseResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventStore.Client.Messages.ScavengeDatabaseCompleted(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EventStore.Client.Messages.ScavengeDatabaseResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.result = reader.int32(); - break; - case 2: - message.error = reader.string(); - break; - case 3: - message.totalTimeMs = reader.int32(); - break; - case 4: - message.totalSpaceSaved = reader.int64(); - break; + case 1: { + message.result = reader.int32(); + break; + } + case 2: { + message.scavengeId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -11618,38 +14221,34 @@ } if (!message.hasOwnProperty("result")) throw $util.ProtocolError("missing required 'result'", { instance: message }); - if (!message.hasOwnProperty("totalTimeMs")) - throw $util.ProtocolError("missing required 'totalTimeMs'", { instance: message }); - if (!message.hasOwnProperty("totalSpaceSaved")) - throw $util.ProtocolError("missing required 'totalSpaceSaved'", { instance: message }); return message; }; - + /** - * Decodes a ScavengeDatabaseCompleted message from the specified reader or buffer, length delimited. + * Decodes a ScavengeDatabaseResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {EventStore.Client.Messages.ScavengeDatabaseCompleted} ScavengeDatabaseCompleted + * @returns {EventStore.Client.Messages.ScavengeDatabaseResponse} ScavengeDatabaseResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ScavengeDatabaseCompleted.decodeDelimited = function decodeDelimited(reader) { + ScavengeDatabaseResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** - * Verifies a ScavengeDatabaseCompleted message. + * Verifies a ScavengeDatabaseResponse message. * @function verify - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ScavengeDatabaseCompleted.verify = function verify(message) { + ScavengeDatabaseResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; switch (message.result) { @@ -11660,30 +14259,32 @@ case 2: break; } - if (message.error != null && message.hasOwnProperty("error")) - if (!$util.isString(message.error)) - return "error: string expected"; - if (!$util.isInteger(message.totalTimeMs)) - return "totalTimeMs: integer expected"; - if (!$util.isInteger(message.totalSpaceSaved) && !(message.totalSpaceSaved && $util.isInteger(message.totalSpaceSaved.low) && $util.isInteger(message.totalSpaceSaved.high))) - return "totalSpaceSaved: integer|Long expected"; + if (message.scavengeId != null && message.hasOwnProperty("scavengeId")) + if (!$util.isString(message.scavengeId)) + return "scavengeId: string expected"; return null; }; - + /** - * Creates a ScavengeDatabaseCompleted message from a plain object. Also converts values to their respective internal types. + * Creates a ScavengeDatabaseResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @static * @param {Object.} object Plain object - * @returns {EventStore.Client.Messages.ScavengeDatabaseCompleted} ScavengeDatabaseCompleted + * @returns {EventStore.Client.Messages.ScavengeDatabaseResponse} ScavengeDatabaseResponse */ - ScavengeDatabaseCompleted.fromObject = function fromObject(object) { - if (object instanceof $root.EventStore.Client.Messages.ScavengeDatabaseCompleted) + ScavengeDatabaseResponse.fromObject = function fromObject(object) { + if (object instanceof $root.EventStore.Client.Messages.ScavengeDatabaseResponse) return object; - var message = new $root.EventStore.Client.Messages.ScavengeDatabaseCompleted(); + var message = new $root.EventStore.Client.Messages.ScavengeDatabaseResponse(); switch (object.result) { - case "Success": + default: + if (typeof object.result === "number") { + message.result = object.result; + break; + } + break; + case "Started": case 0: message.result = 0; break; @@ -11691,96 +14292,87 @@ case 1: message.result = 1; break; - case "Failed": + case "Unauthorized": case 2: message.result = 2; break; } - if (object.error != null) - message.error = String(object.error); - if (object.totalTimeMs != null) - message.totalTimeMs = object.totalTimeMs | 0; - if (object.totalSpaceSaved != null) - if ($util.Long) - (message.totalSpaceSaved = $util.Long.fromValue(object.totalSpaceSaved)).unsigned = false; - else if (typeof object.totalSpaceSaved === "string") - message.totalSpaceSaved = parseInt(object.totalSpaceSaved, 10); - else if (typeof object.totalSpaceSaved === "number") - message.totalSpaceSaved = object.totalSpaceSaved; - else if (typeof object.totalSpaceSaved === "object") - message.totalSpaceSaved = new $util.LongBits(object.totalSpaceSaved.low >>> 0, object.totalSpaceSaved.high >>> 0).toNumber(); + if (object.scavengeId != null) + message.scavengeId = String(object.scavengeId); return message; }; - + /** - * Creates a plain object from a ScavengeDatabaseCompleted message. Also converts values to other types if specified. + * Creates a plain object from a ScavengeDatabaseResponse message. Also converts values to other types if specified. * @function toObject - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @static - * @param {EventStore.Client.Messages.ScavengeDatabaseCompleted} message ScavengeDatabaseCompleted + * @param {EventStore.Client.Messages.ScavengeDatabaseResponse} message ScavengeDatabaseResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ScavengeDatabaseCompleted.toObject = function toObject(message, options) { + ScavengeDatabaseResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.result = options.enums === String ? "Success" : 0; - object.error = ""; - object.totalTimeMs = 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.totalSpaceSaved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.totalSpaceSaved = options.longs === String ? "0" : 0; + object.result = options.enums === String ? "Started" : 0; + object.scavengeId = ""; } if (message.result != null && message.hasOwnProperty("result")) - object.result = options.enums === String ? $root.EventStore.Client.Messages.ScavengeDatabaseCompleted.ScavengeResult[message.result] : message.result; - if (message.error != null && message.hasOwnProperty("error")) - object.error = message.error; - if (message.totalTimeMs != null && message.hasOwnProperty("totalTimeMs")) - object.totalTimeMs = message.totalTimeMs; - if (message.totalSpaceSaved != null && message.hasOwnProperty("totalSpaceSaved")) - if (typeof message.totalSpaceSaved === "number") - object.totalSpaceSaved = options.longs === String ? String(message.totalSpaceSaved) : message.totalSpaceSaved; - else - object.totalSpaceSaved = options.longs === String ? $util.Long.prototype.toString.call(message.totalSpaceSaved) : options.longs === Number ? new $util.LongBits(message.totalSpaceSaved.low >>> 0, message.totalSpaceSaved.high >>> 0).toNumber() : message.totalSpaceSaved; + object.result = options.enums === String ? $root.EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult[message.result] === undefined ? message.result : $root.EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult[message.result] : message.result; + if (message.scavengeId != null && message.hasOwnProperty("scavengeId")) + object.scavengeId = message.scavengeId; return object; }; - + /** - * Converts this ScavengeDatabaseCompleted to JSON. + * Converts this ScavengeDatabaseResponse to JSON. * @function toJSON - * @memberof EventStore.Client.Messages.ScavengeDatabaseCompleted + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse * @instance * @returns {Object.} JSON object */ - ScavengeDatabaseCompleted.prototype.toJSON = function toJSON() { + ScavengeDatabaseResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ScavengeDatabaseResponse + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ScavengeDatabaseResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ScavengeDatabaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ScavengeDatabaseResponse"; + }; + /** * ScavengeResult enum. - * @name EventStore.Client.Messages.ScavengeDatabaseCompleted.ScavengeResult - * @enum {string} - * @property {number} Success=0 Success value + * @name EventStore.Client.Messages.ScavengeDatabaseResponse.ScavengeResult + * @enum {number} + * @property {number} Started=0 Started value * @property {number} InProgress=1 InProgress value - * @property {number} Failed=2 Failed value + * @property {number} Unauthorized=2 Unauthorized value */ - ScavengeDatabaseCompleted.ScavengeResult = (function() { + ScavengeDatabaseResponse.ScavengeResult = (function() { var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "Success"] = 0; + values[valuesById[0] = "Started"] = 0; values[valuesById[1] = "InProgress"] = 1; - values[valuesById[2] = "Failed"] = 2; + values[valuesById[2] = "Unauthorized"] = 2; return values; })(); - - return ScavengeDatabaseCompleted; + + return ScavengeDatabaseResponse; })(); - + Messages.IdentifyClient = (function() { - + /** * Properties of an IdentifyClient. * @memberof EventStore.Client.Messages @@ -11788,7 +14380,7 @@ * @property {number} version IdentifyClient version * @property {string|null} [connectionName] IdentifyClient connectionName */ - + /** * Constructs a new IdentifyClient. * @memberof EventStore.Client.Messages @@ -11803,7 +14395,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * IdentifyClient version. * @member {number} version @@ -11811,7 +14403,7 @@ * @instance */ IdentifyClient.prototype.version = 0; - + /** * IdentifyClient connectionName. * @member {string} connectionName @@ -11819,7 +14411,7 @@ * @instance */ IdentifyClient.prototype.connectionName = ""; - + /** * Creates a new IdentifyClient instance using the specified properties. * @function create @@ -11831,7 +14423,7 @@ IdentifyClient.create = function create(properties) { return new IdentifyClient(properties); }; - + /** * Encodes the specified IdentifyClient message. Does not implicitly {@link EventStore.Client.Messages.IdentifyClient.verify|verify} messages. * @function encode @@ -11845,11 +14437,11 @@ if (!writer) writer = $Writer.create(); writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); - if (message.connectionName != null && message.hasOwnProperty("connectionName")) + if (message.connectionName != null && Object.hasOwnProperty.call(message, "connectionName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.connectionName); return writer; }; - + /** * Encodes the specified IdentifyClient message, length delimited. Does not implicitly {@link EventStore.Client.Messages.IdentifyClient.verify|verify} messages. * @function encodeDelimited @@ -11862,7 +14454,7 @@ IdentifyClient.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes an IdentifyClient message from the specified reader or buffer. * @function decode @@ -11881,12 +14473,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.version = reader.int32(); - break; - case 2: - message.connectionName = reader.string(); - break; + case 1: { + message.version = reader.int32(); + break; + } + case 2: { + message.connectionName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -11896,7 +14490,7 @@ throw $util.ProtocolError("missing required 'version'", { instance: message }); return message; }; - + /** * Decodes an IdentifyClient message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -11912,7 +14506,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies an IdentifyClient message. * @function verify @@ -11931,7 +14525,7 @@ return "connectionName: string expected"; return null; }; - + /** * Creates an IdentifyClient message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -11950,7 +14544,7 @@ message.connectionName = String(object.connectionName); return message; }; - + /** * Creates a plain object from an IdentifyClient message. Also converts values to other types if specified. * @function toObject @@ -11974,7 +14568,7 @@ object.connectionName = message.connectionName; return object; }; - + /** * Converts this IdentifyClient to JSON. * @function toJSON @@ -11985,18 +14579,33 @@ IdentifyClient.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for IdentifyClient + * @function getTypeUrl + * @memberof EventStore.Client.Messages.IdentifyClient + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IdentifyClient.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.IdentifyClient"; + }; + return IdentifyClient; })(); - + Messages.ClientIdentified = (function() { - + /** * Properties of a ClientIdentified. * @memberof EventStore.Client.Messages * @interface IClientIdentified */ - + /** * Constructs a new ClientIdentified. * @memberof EventStore.Client.Messages @@ -12011,7 +14620,7 @@ if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } - + /** * Creates a new ClientIdentified instance using the specified properties. * @function create @@ -12023,7 +14632,7 @@ ClientIdentified.create = function create(properties) { return new ClientIdentified(properties); }; - + /** * Encodes the specified ClientIdentified message. Does not implicitly {@link EventStore.Client.Messages.ClientIdentified.verify|verify} messages. * @function encode @@ -12038,7 +14647,7 @@ writer = $Writer.create(); return writer; }; - + /** * Encodes the specified ClientIdentified message, length delimited. Does not implicitly {@link EventStore.Client.Messages.ClientIdentified.verify|verify} messages. * @function encodeDelimited @@ -12051,7 +14660,7 @@ ClientIdentified.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; - + /** * Decodes a ClientIdentified message from the specified reader or buffer. * @function decode @@ -12077,7 +14686,7 @@ } return message; }; - + /** * Decodes a ClientIdentified message from the specified reader or buffer, length delimited. * @function decodeDelimited @@ -12093,7 +14702,7 @@ reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - + /** * Verifies a ClientIdentified message. * @function verify @@ -12107,7 +14716,7 @@ return "object expected"; return null; }; - + /** * Creates a ClientIdentified message from a plain object. Also converts values to their respective internal types. * @function fromObject @@ -12121,7 +14730,7 @@ return object; return new $root.EventStore.Client.Messages.ClientIdentified(); }; - + /** * Creates a plain object from a ClientIdentified message. Also converts values to other types if specified. * @function toObject @@ -12134,7 +14743,7 @@ ClientIdentified.toObject = function toObject() { return {}; }; - + /** * Converts this ClientIdentified to JSON. * @function toJSON @@ -12145,16 +14754,31 @@ ClientIdentified.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - + + /** + * Gets the default type url for ClientIdentified + * @function getTypeUrl + * @memberof EventStore.Client.Messages.ClientIdentified + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ClientIdentified.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/EventStore.Client.Messages.ClientIdentified"; + }; + return ClientIdentified; })(); - + return Messages; })(); - + return Client; })(); - + return EventStore; })(); diff --git a/src/messages/messages.proto b/src/messages/messages.proto index 30314c4..7c95448 100644 --- a/src/messages/messages.proto +++ b/src/messages/messages.proto @@ -1,3 +1,5 @@ +syntax = "proto2"; + package EventStore.Client.Messages; enum OperationResult @@ -50,7 +52,7 @@ message WriteEvents { required string event_stream_id = 1; required int64 expected_version = 2; repeated NewEvent events = 3; - required bool require_master = 4; + required bool require_leader = 4; } message WriteEventsCompleted { @@ -66,7 +68,7 @@ message WriteEventsCompleted { message DeleteStream { required string event_stream_id = 1; required int64 expected_version = 2; - required bool require_master = 3; + required bool require_leader = 3; optional bool hard_delete = 4; } @@ -75,12 +77,13 @@ message DeleteStreamCompleted { optional string message = 2; optional int64 prepare_position = 3; optional int64 commit_position = 4; + optional int64 current_version = 5; } message TransactionStart { required string event_stream_id = 1; required int64 expected_version = 2; - required bool require_master = 3; + required bool require_leader = 3; } message TransactionStartCompleted { @@ -92,7 +95,7 @@ message TransactionStartCompleted { message TransactionWrite { required int64 transaction_id = 1; repeated NewEvent events = 2; - required bool require_master = 3; + required bool require_leader = 3; } message TransactionWriteCompleted { @@ -103,7 +106,7 @@ message TransactionWriteCompleted { message TransactionCommit { required int64 transaction_id = 1; - required bool require_master = 2; + required bool require_leader = 2; } message TransactionCommitCompleted { @@ -120,7 +123,7 @@ message ReadEvent { required string event_stream_id = 1; required int64 event_number = 2; required bool resolve_link_tos = 3; - required bool require_master = 4; + required bool require_leader = 4; } message ReadEventCompleted { @@ -145,7 +148,7 @@ message ReadStreamEvents { required int64 from_event_number = 2; required int32 max_count = 3; required bool resolve_link_tos = 4; - required bool require_master = 5; + required bool require_leader = 5; } message ReadStreamEventsCompleted { @@ -174,7 +177,7 @@ message ReadAllEvents { required int64 prepare_position = 2; required int32 max_count = 3; required bool resolve_link_tos = 4; - required bool require_master = 5; + required bool require_leader = 5; } message ReadAllEventsCompleted { @@ -196,6 +199,54 @@ message ReadAllEventsCompleted { optional string error = 7; } +message Filter{ + + enum FilterContext { + StreamId = 0; + EventType = 1; + + } + + enum FilterType { + Regex = 0; + Prefix = 1; + } + + required FilterContext context = 1; + required FilterType type = 2; + repeated string data = 3; +} + +message FilteredReadAllEvents { + required int64 commit_position = 1; + required int64 prepare_position = 2; + required int32 max_count = 3; + optional int32 max_search_window = 4; + required bool resolve_link_tos = 5; + required bool require_leader = 6; + required Filter filter = 7; +} + +message FilteredReadAllEventsCompleted { + + enum FilteredReadAllResult { + Success = 0; + NotModified = 1; + Error = 2; + AccessDenied = 3; + } + + required int64 commit_position = 1; + required int64 prepare_position = 2; + repeated ResolvedEvent events = 3; + required int64 next_commit_position = 4; + required int64 next_prepare_position = 5; + required bool is_end_of_stream = 6; + + optional FilteredReadAllResult result = 7 [default = Success]; + optional string error = 8; +} + message CreatePersistentSubscription { required string subscription_group_name = 1; required string event_stream_id = 2; @@ -307,6 +358,7 @@ message PersistentSubscriptionConfirmation { message PersistentSubscriptionStreamEventAppeared { required ResolvedIndexedEvent event = 1; + optional int32 retryCount = 2; } message SubscribeToStream { @@ -314,6 +366,18 @@ message SubscribeToStream { required bool resolve_link_tos = 2; } +message FilteredSubscribeToStream { + required string event_stream_id = 1; + required bool resolve_link_tos = 2; + required Filter filter = 3; + required int32 checkpoint_interval = 4; +} + +message CheckpointReached { + required int64 commit_position = 1; + required int64 prepare_position = 2; +} + message SubscriptionConfirmation { required int64 last_commit_position = 1; optional int64 last_event_number = 2; @@ -344,17 +408,18 @@ message NotHandled { enum NotHandledReason { NotReady = 0; TooBusy = 1; - NotMaster = 2; + NotLeader = 2; + IsReadOnly = 3; } required NotHandledReason reason = 1; optional bytes additional_info = 2; - message MasterInfo { - required string external_tcp_address = 1; - required int32 external_tcp_port = 2; - required string external_http_address = 3; - required int32 external_http_port = 4; + message LeaderInfo { + optional string external_tcp_address = 1; + optional int32 external_tcp_port = 2; + required string http_address = 3; + required int32 http_port = 4; optional string external_secure_tcp_address = 5; optional int32 external_secure_tcp_port = 6; } @@ -363,18 +428,17 @@ message NotHandled { message ScavengeDatabase { } -message ScavengeDatabaseCompleted { +message ScavengeDatabaseResponse { enum ScavengeResult { - Success = 0; + Started = 0; InProgress = 1; - Failed = 2; + Unauthorized = 2; } required ScavengeResult result = 1; - optional string error = 2; - required int32 total_time_ms = 3; - required int64 total_space_saved = 4; + optional string scavengeId = 2; + } message IdentifyClient { @@ -383,4 +447,4 @@ message IdentifyClient { } message ClientIdentified { -} \ No newline at end of file +} diff --git a/src/projections/projectionsClient.js b/src/projections/projectionsClient.js index 35829cb..0640549 100644 --- a/src/projections/projectionsClient.js +++ b/src/projections/projectionsClient.js @@ -15,9 +15,10 @@ function safeParseJson(json) { } } -function ProjectionsClient(log, operationTimeout) { +function ProjectionsClient(log, operationTimeout, rejectUnauthorized) { this._log = log; this._operationTimeout = operationTimeout; + this._rejectUnauthorized = typeof rejectUnauthorized === 'undefined' ? true : !!rejectUnauthorized; } ProjectionsClient.prototype.enable = function(httpEndPoint, name, userCredentials) { @@ -118,6 +119,9 @@ ProjectionsClient.prototype.request = function(method, _url, data, userCredentia if (userCredentials) { options.auth = [userCredentials.username, userCredentials.password].join(':'); } + if (!this._rejectUnauthorized) { + options.rejectUnauthorized = false; + } var self = this; return new Promise(function (resolve, reject) { const timeout = setTimeout(function () { diff --git a/src/projections/projectionsManager.js b/src/projections/projectionsManager.js index da04ef2..1992213 100644 --- a/src/projections/projectionsManager.js +++ b/src/projections/projectionsManager.js @@ -6,12 +6,13 @@ const ProjectionsClient = require('./projectionsClient'); * @param {Logger} log Instance of Logger to use for logging. * @param {string} httpEndPoint HTTP endpoint of an Event Store server. * @param {number} operationTimeout Operation timeout in milliseconds. + * @param {boolean} [rejectUnauthorized] Reject authorized SSL certs (if using SSL) - set to false is using self-signed certs * @constructor */ -function ProjectionsManager(log, httpEndPoint, operationTimeout) { +function ProjectionsManager(log, httpEndPoint, operationTimeout, rejectUnauthorized) { ensure.notNull(log, "log"); ensure.notNull(httpEndPoint, "httpEndPoint"); - this._client = new ProjectionsClient(log, operationTimeout); + this._client = new ProjectionsClient(log, operationTimeout, rejectUnauthorized); this._httpEndPoint = httpEndPoint; } @@ -211,4 +212,4 @@ ProjectionsManager.prototype.delete = function(name, deleteEmittedStreams, delet return this._client.delete(this._httpEndPoint, name, deleteEmittedStreams, deleteStateStream, deleteCheckpointStream, userCredentials); }; -module.exports = ProjectionsManager; \ No newline at end of file +module.exports = ProjectionsManager; diff --git a/test/common/base_test.js b/test/common/base_test.js index 88a49a2..5bce42c 100644 --- a/test/common/base_test.js +++ b/test/common/base_test.js @@ -12,6 +12,8 @@ protobufJS.configure(); var settings = { log: new NoopLogger(), + useSslConnection: true, + validateServer: false }; if (process.env.TESTS_VERBOSE_LOGGING === '1') { settings.verboseLogging = true; @@ -53,7 +55,7 @@ function setUpWithGossipSeeds(cb) { } function setUpWithDns(cb) { - var clusterDns = 'discover://eventstore.local:2113'; + var clusterDns = 'discover://' + process.env.EVENTSTORE_HOST + ':2113'; this.log = settings.log; this.testStreamName = 'test-' + uuid.v4(); var connected = false; diff --git a/test/connection_test.js b/test/connection_test.js index a2d94e9..5923576 100644 --- a/test/connection_test.js +++ b/test/connection_test.js @@ -27,7 +27,7 @@ switch(evenstStoreType){ done(); }); conn.on('error', done); - + function done(err) { conn.close(); if (err) return test.done(err); @@ -41,7 +41,7 @@ switch(evenstStoreType){ new GossipSeed({host: '1.2.3.4', port: 1113}), new GossipSeed({host: '2.3.4.5', port: 2113}), new GossipSeed({host: '3.4.5.6', port: 3113}) - ]; + ]; var conn = client.EventStoreConnection.create(testBase.settings({maxDiscoverAttempts: 1}), gossipSeeds); conn.connect() .catch(function (err) { @@ -62,7 +62,7 @@ switch(evenstStoreType){ case 'dns': module.exports['Connect to Cluster using dns discover'] = function (test) { test.expect(1); - var clusterDns = 'discover://eventstore.local:2113'; + var clusterDns = 'discover://' + process.env.EVENTSTORE_HOST + ':2113'; var conn = client.EventStoreConnection.create(testBase.settings(), clusterDns); conn.connect() .catch(function(err) { @@ -73,7 +73,7 @@ switch(evenstStoreType){ done(); }); conn.on('error', done); - + function done(err) { conn.close(); if (err) return test.done(err); @@ -83,7 +83,7 @@ switch(evenstStoreType){ module.exports['Connect To Cluster with bad dns discover'] = function (test) { test.expect(3); - var clusterDns = 'discover://eventstore-bad.local:2113'; + var clusterDns = 'discover://abc.def.com:2113'; var conn = client.EventStoreConnection.create(testBase.settings({maxDiscoverAttempts: 1}), clusterDns); conn.connect() .catch(function (err) { @@ -91,6 +91,7 @@ switch(evenstStoreType){ }); conn.on('connected', function () { test.ok(false, 'Should not be able to connect.'); + conn.close(); }); conn.on('error', function (err) { test.ok(err.message.indexOf('Failed to discover candidate in 1 attempts') === 0, 'Wrong expected reason.'); @@ -116,7 +117,7 @@ switch(evenstStoreType){ done(); }); conn.on('error', done); - + function done(err) { conn.close(); if (err) return test.done(err); @@ -144,7 +145,7 @@ switch(evenstStoreType){ test.done(); }); }; - + module.exports['Create a connection with tcp://host:port string'] = function (test) { var conn = client.createConnection({}, `tcp://${process.env.EVENTSTORE_HOST || 'localhost'}:1113`); conn.close(); diff --git a/test/persistentSubscription_test.js b/test/persistentSubscription_test.js index 4fd40f4..9f1d717 100644 --- a/test/persistentSubscription_test.js +++ b/test/persistentSubscription_test.js @@ -41,7 +41,7 @@ module.exports = { done(); } var self = this; - this.conn.connectToPersistentSubscription(testStreamName, 'consumer-1', eventAppeared, subscriptionDropped) + this.conn.connectToPersistentSubscription(testStreamName, 'consumer-1', eventAppeared, subscriptionDropped, adminCredentials) .then(function(subscription) { test.ok(subscription, "Subscription is null."); return self.conn.appendToStream(testStreamName, client.expectedVersion.any, [createRandomEvent(), createRandomEvent()]); diff --git a/test/projections_test.js b/test/projections_test.js index 5ff603d..58a6e99 100644 --- a/test/projections_test.js +++ b/test/projections_test.js @@ -2,7 +2,7 @@ const client = require('../lib/dist'); const userCredentials = new client.UserCredentials('admin', 'changeit'); const log = new client.NoopLogger(); -const httpEndpoint = `http://${process.env.EVENTSTORE_HOST || "localhost"}:2113`; +const httpEndpoint = `https://${process.env.EVENTSTORE_HOST || "localhost"}:2113`; const operationTimeout = 5000; const simpleProjection = "\ @@ -21,7 +21,7 @@ fromStream('$stats-127.0.0.1:2113')\ module.exports = { setUp: function(cb) { - this.projectionsManager = new client.ProjectionsManager(log, httpEndpoint, operationTimeout); + this.projectionsManager = new client.ProjectionsManager(log, httpEndpoint, operationTimeout, false); cb(); }, 'Create One Time Projection Happy Path': function(test) {