From d141401377e496a4cdf6a2fad5d7aaa539a9ac8c Mon Sep 17 00:00:00 2001 From: sean-attewell Date: Sun, 19 May 2019 17:43:23 +0100 Subject: [PATCH 1/4] one off test payment working --- .gitignore | 4 + package.json | 27 ++++ stripe-server.js | 23 +++ yarn.lock | 385 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 439 insertions(+) create mode 100644 .gitignore create mode 100644 package.json create mode 100644 stripe-server.js create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..51a1fc1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.DS_Store +node_modules/ +.env +yarn-error.log diff --git a/package.json b/package.json new file mode 100644 index 0000000..38e825b --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "labseu1-db-BE", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "start": "node stripe-server.js", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/labseu1-db/labseu1-db-BE.git" + }, + "keywords": [], + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/labseu1-db/labseu1-db-BE/issues" + }, + "homepage": "https://github.com/labseu1-db/labseu1-db-BE#readme", + "dependencies": { + "body-parser": "^1.19.0", + "cors": "^2.8.5", + "express": "^4.17.0", + "stripe": "^7.0.0" + } +} diff --git a/stripe-server.js b/stripe-server.js new file mode 100644 index 0000000..7d3cc5f --- /dev/null +++ b/stripe-server.js @@ -0,0 +1,23 @@ +const app = require('express')(); +const stripe = require('stripe')('sk_test_Fp1czcN7sosPfrOFPrZz1Ddu00JL3WqPgd'); +const cors = require('cors'); + +app.use(require('body-parser').text()); +app.use(cors()); + +app.post('/charge', async (req, res) => { + try { + let { status } = await stripe.charges.create({ + amount: 2000, // in cents + currency: 'usd', + description: 'An example charge', + source: req.body + }); + + res.json({ status }); + } catch (err) { + res.status(500).end(); + } +}); + +app.listen(9000, () => console.log('Listening on port 9000')); diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..8cc6336 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,385 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +accepts@~1.3.7: + version "1.3.7" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" + integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA== + dependencies: + mime-types "~2.1.24" + negotiator "0.6.2" + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= + +body-parser@1.19.0, body-parser@^1.19.0: + version "1.19.0" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" + integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== + dependencies: + bytes "3.1.0" + content-type "~1.0.4" + debug "2.6.9" + depd "~1.1.2" + http-errors "1.7.2" + iconv-lite "0.4.24" + on-finished "~2.3.0" + qs "6.7.0" + raw-body "2.4.0" + type-is "~1.6.17" + +bytes@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" + integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== + +content-disposition@0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" + integrity sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g== + dependencies: + safe-buffer "5.1.2" + +content-type@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" + integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= + +cookie@0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" + integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== + +cors@^2.8.5: + version "2.8.5" + resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.5.tgz#eac11da51592dd86b9f06f6e7ac293b3df875d29" + integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== + dependencies: + object-assign "^4" + vary "^1" + +debug@2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= + +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= + +express@^4.17.0: + version "4.17.0" + resolved "https://registry.yarnpkg.com/express/-/express-4.17.0.tgz#288af62228a73f4c8ea2990ba3b791bb87cd4438" + integrity sha512-1Z7/t3Z5ZnBG252gKUPyItc4xdeaA0X934ca2ewckAsVsw9EG71i++ZHZPYnus8g/s5Bty8IMpSVEuRkmwwPRQ== + dependencies: + accepts "~1.3.7" + array-flatten "1.1.1" + body-parser "1.19.0" + content-disposition "0.5.3" + content-type "~1.0.4" + cookie "0.4.0" + cookie-signature "1.0.6" + debug "2.6.9" + depd "~1.1.2" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "~1.1.2" + fresh "0.5.2" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "~2.3.0" + parseurl "~1.3.3" + path-to-regexp "0.1.7" + proxy-addr "~2.0.5" + qs "6.7.0" + range-parser "~1.2.1" + safe-buffer "5.1.2" + send "0.17.1" + serve-static "1.14.1" + setprototypeof "1.1.1" + statuses "~1.5.0" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +finalhandler@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" + integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.3" + statuses "~1.5.0" + unpipe "~1.0.0" + +forwarded@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" + integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= + +http-errors@1.7.2, http-errors@~1.7.2: + version "1.7.2" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" + integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.1" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.0" + +iconv-lite@0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +inherits@2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= + +ipaddr.js@1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.0.tgz#37df74e430a0e47550fe54a2defe30d8acd95f65" + integrity sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA== + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs= + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= + +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= + +mime-db@1.40.0: + version "1.40.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.40.0.tgz#a65057e998db090f732a68f6c276d387d4126c32" + integrity sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA== + +mime-types@~2.1.24: + version "2.1.24" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.24.tgz#b6f8d0b3e951efb77dedeca194cff6d16f676f81" + integrity sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ== + dependencies: + mime-db "1.40.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +ms@2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" + integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== + +negotiator@0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" + integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== + +object-assign@^4: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= + dependencies: + ee-first "1.1.1" + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" + integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= + +proxy-addr@~2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.5.tgz#34cbd64a2d81f4b1fd21e76f9f06c8a45299ee34" + integrity sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ== + dependencies: + forwarded "~0.1.2" + ipaddr.js "1.9.0" + +qs@6.7.0, qs@^6.6.0: + version "6.7.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" + integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" + integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== + dependencies: + bytes "3.1.0" + http-errors "1.7.2" + iconv-lite "0.4.24" + unpipe "1.0.0" + +safe-buffer@5.1.2, safe-buffer@^5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +"safer-buffer@>= 2.1.2 < 3": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +send@0.17.1: + version "0.17.1" + resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" + integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== + dependencies: + debug "2.6.9" + depd "~1.1.2" + destroy "~1.0.4" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "~1.7.2" + mime "1.6.0" + ms "2.1.1" + on-finished "~2.3.0" + range-parser "~1.2.1" + statuses "~1.5.0" + +serve-static@1.14.1: + version "1.14.1" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" + integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.17.1" + +setprototypeof@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" + integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== + +"statuses@>= 1.5.0 < 2", statuses@~1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= + +stripe@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/stripe/-/stripe-7.0.0.tgz#6761e7ef03e28f7c1d773abbdd6431c78b2b4fbb" + integrity sha512-2CzGN1oHqEoEYxo5H5t7/pd/3NdmK1f4ZJSXKa+mBfWh3yqTpKscxKU5ZbH9NpdvE7n5awkwj1oygaMwfi9dOw== + dependencies: + lodash.isplainobject "^4.0.6" + qs "^6.6.0" + safe-buffer "^5.1.1" + uuid "^3.3.2" + +toidentifier@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" + integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== + +type-is@~1.6.17, type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= + +uuid@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" + integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA== + +vary@^1, vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= From 76243580fe9b135d4e1483766b85fe46d0903bcd Mon Sep 17 00:00:00 2001 From: sean-attewell Date: Mon, 20 May 2019 19:18:09 +0100 Subject: [PATCH 2/4] firebase function hosting working --- .firebaserc | 6 + firebase-debug.log | 619 +++++++++ firebase.json | 11 + functions/.gitignore | 1 + functions/firebase-debug.log | 160 +++ functions/index.js | 29 + functions/middleware.js | 6 + functions/package-lock.json | 2457 ++++++++++++++++++++++++++++++++++ functions/package.json | 25 + functions/yarn.lock | 1984 +++++++++++++++++++++++++++ public/404.html | 33 + public/index.html | 65 + stripe-server.js | 2 + 13 files changed, 5398 insertions(+) create mode 100644 .firebaserc create mode 100644 firebase-debug.log create mode 100644 firebase.json create mode 100644 functions/.gitignore create mode 100644 functions/firebase-debug.log create mode 100644 functions/index.js create mode 100644 functions/middleware.js create mode 100644 functions/package-lock.json create mode 100644 functions/package.json create mode 100644 functions/yarn.lock create mode 100644 public/404.html create mode 100644 public/index.html diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..3baea4c --- /dev/null +++ b/.firebaserc @@ -0,0 +1,6 @@ +{ + "projects": { + "default": "labseu1-db-test2", + "labseu1-db-test": "labseu1-db-test" + } +} \ No newline at end of file diff --git a/firebase-debug.log b/firebase-debug.log new file mode 100644 index 0000000..2f596d2 --- /dev/null +++ b/firebase-debug.log @@ -0,0 +1,619 @@ +[debug] [2019-05-20T14:08:09.370Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:08:09.372Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:08:09.372Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:08:09.372Z] Platform: win32 +[debug] [2019-05-20T14:08:09.372Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:08:09.374Z] Time: Mon May 20 2019 15:08:09 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:08:09.374Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:08:09.382Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:08:09.382Z] > authorizing via signed-in user +[debug] [2019-05-20T14:08:09.382Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:08:09.384Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"] +[debug] [2019-05-20T14:08:09.384Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token + +[debug] [2019-05-20T14:08:09.584Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:08:09.600Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:08:10.392Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:08:10.393Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:08:11.112Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:08:11.118Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:08:11.118Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:08:11.344Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:08:11.447Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:08:11.871Z] Functions runtime initialized. +[debug] [2019-05-20T14:08:11.871Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:08:12.673Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:9:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:14:12.234Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers +[debug] [2019-05-20T14:14:13.699Z] Functions runtime initialized. +[debug] [2019-05-20T14:14:13.699Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:14:14.463Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.use is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:8:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:14:20.685Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:14:20.688Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:14:20.688Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:14:20.688Z] Platform: win32 +[debug] [2019-05-20T14:14:20.688Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:14:20.689Z] Time: Mon May 20 2019 15:14:20 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:14:20.690Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:14:20.698Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:14:20.699Z] > authorizing via signed-in user +[debug] [2019-05-20T14:14:20.699Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:14:20.700Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:14:21.517Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:14:21.518Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:14:22.244Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:14:22.250Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:14:22.250Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:14:22.515Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:14:22.586Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:14:22.995Z] Functions runtime initialized. +[debug] [2019-05-20T14:14:22.996Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:14:23.721Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.use is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:8:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:18:25.373Z] File D:\mango\labseu1-db-BE\functions\middleware.js changed, reloading triggers +[debug] [2019-05-20T14:18:26.823Z] Functions runtime initialized. +[debug] [2019-05-20T14:18:26.824Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:18:27.602Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.use is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:8:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:18:56.213Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers +[debug] [2019-05-20T14:18:57.660Z] Functions runtime initialized. +[debug] [2019-05-20T14:18:57.661Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:18:58.414Z] firebase-admin has been stubbed. +[warn] ! Error: Cannot find module 'helmet' + at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) + at Function.Module._load (internal/modules/cjs/loader.js:507:25) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at Object. (D:\mango\labseu1-db-BE\functions\middleware.js:2:16) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:19:02.522Z] File D:\mango\labseu1-db-BE\functions\middleware.js changed, reloading triggers +[debug] [2019-05-20T14:19:03.951Z] Functions runtime initialized. +[debug] [2019-05-20T14:19:03.951Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:19:04.685Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.use is not a function + at module.exports.app (D:\mango\labseu1-db-BE\functions\middleware.js:4:7) + at Object. (D:\mango\labseu1-db-BE\functions\index.js:7:1) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:19:32.669Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:19:32.671Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:19:32.671Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:19:32.671Z] Platform: win32 +[debug] [2019-05-20T14:19:32.671Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:19:32.673Z] Time: Mon May 20 2019 15:19:32 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:19:32.673Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:19:32.681Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:19:32.682Z] > authorizing via signed-in user +[debug] [2019-05-20T14:19:32.682Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:19:32.683Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:19:33.474Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:19:33.475Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:19:34.203Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:19:34.209Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:19:34.210Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:19:34.460Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:19:34.522Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:19:34.936Z] Functions runtime initialized. +[debug] [2019-05-20T14:19:34.936Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:19:35.660Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.use is not a function + at module.exports.app (D:\mango\labseu1-db-BE\functions\middleware.js:4:7) + at Object. (D:\mango\labseu1-db-BE\functions\index.js:7:1) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:20:41.656Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers +[debug] [2019-05-20T14:20:43.089Z] Functions runtime initialized. +[debug] [2019-05-20T14:20:43.090Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:20:46.262Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:20:46.265Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:20:46.265Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:20:46.265Z] Platform: win32 +[debug] [2019-05-20T14:20:46.265Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:20:46.267Z] Time: Mon May 20 2019 15:20:46 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:20:46.267Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:20:46.275Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:20:46.276Z] > authorizing via signed-in user +[debug] [2019-05-20T14:20:46.276Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:20:46.278Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:20:47.044Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:20:47.046Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:20:47.770Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:20:47.776Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:20:47.776Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:20:48.012Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:20:48.075Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:20:48.518Z] Functions runtime initialized. +[debug] [2019-05-20T14:20:48.518Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:20:49.242Z] firebase-admin has been stubbed. +[warn] ! Error: Cannot find module '../middleware.js/index.js' + at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) + at Function.Module._load (internal/modules/cjs/loader.js:507:25) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at Object. (D:\mango\labseu1-db-BE\functions\index.js:4:29) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:21:01.328Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers +[debug] [2019-05-20T14:21:02.798Z] Functions runtime initialized. +[debug] [2019-05-20T14:21:02.798Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:21:06.082Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:21:06.084Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:21:06.084Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:21:06.084Z] Platform: win32 +[debug] [2019-05-20T14:21:06.084Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:21:06.086Z] Time: Mon May 20 2019 15:21:06 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:21:06.086Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:21:06.094Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:21:06.094Z] > authorizing via signed-in user +[debug] [2019-05-20T14:21:06.094Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:21:06.096Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:21:06.844Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:21:06.846Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:21:07.563Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:21:07.569Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:21:07.569Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:21:07.811Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:21:07.871Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:21:08.319Z] Functions runtime initialized. +[debug] [2019-05-20T14:21:08.320Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:21:09.035Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.use is not a function + at module.exports.app (D:\mango\labseu1-db-BE\middleware.js:4:7) + at Object. (D:\mango\labseu1-db-BE\functions\index.js:7:1) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:21:25.102Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers +[debug] [2019-05-20T14:21:26.603Z] Functions runtime initialized. +[debug] [2019-05-20T14:21:26.604Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:21:27.373Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:13:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:21:30.083Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:21:30.086Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:21:30.086Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:21:30.086Z] Platform: win32 +[debug] [2019-05-20T14:21:30.086Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:21:30.088Z] Time: Mon May 20 2019 15:21:30 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:21:30.088Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:21:30.096Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:21:30.097Z] > authorizing via signed-in user +[debug] [2019-05-20T14:21:30.097Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:21:30.098Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:21:30.891Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:21:30.893Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:21:31.614Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:21:31.620Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:21:31.621Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:21:31.845Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:21:31.910Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:21:32.334Z] Functions runtime initialized. +[debug] [2019-05-20T14:21:32.334Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:21:33.059Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:13:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:23:28.800Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:23:28.802Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:23:28.802Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:23:28.802Z] Platform: win32 +[debug] [2019-05-20T14:23:28.802Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:23:28.804Z] Time: Mon May 20 2019 15:23:28 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:23:28.804Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:23:28.813Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:23:28.813Z] > authorizing via signed-in user +[debug] [2019-05-20T14:23:28.813Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:23:28.815Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:23:29.603Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:23:29.604Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:23:30.329Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:23:30.335Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:23:30.335Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:23:30.565Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:23:30.637Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:23:31.078Z] Functions runtime initialized. +[debug] [2019-05-20T14:23:31.078Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:23:31.815Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:13:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:47:05.520Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:47:05.522Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:47:05.523Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:47:05.523Z] Platform: win32 +[debug] [2019-05-20T14:47:05.523Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:47:05.524Z] Time: Mon May 20 2019 15:47:05 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:47:05.524Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:47:05.532Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:47:05.533Z] > authorizing via signed-in user +[debug] [2019-05-20T14:47:05.533Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:47:05.534Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:47:06.329Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:47:06.331Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:47:07.073Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:47:07.079Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:47:07.079Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:47:07.299Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:47:07.415Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:47:07.821Z] Functions runtime initialized. +[debug] [2019-05-20T14:47:07.821Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:47:08.541Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:48:38.668Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers +[debug] [2019-05-20T14:48:40.120Z] Functions runtime initialized. +[debug] [2019-05-20T14:48:40.121Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:48:40.860Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:48:48.708Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:48:48.710Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:48:48.710Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:48:48.710Z] Platform: win32 +[debug] [2019-05-20T14:48:48.711Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:48:48.712Z] Time: Mon May 20 2019 15:48:48 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:48:48.712Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:48:48.721Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:48:48.722Z] > authorizing via signed-in user +[debug] [2019-05-20T14:48:48.722Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:48:48.724Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:48:49.510Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:48:49.514Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:48:50.242Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:48:50.249Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:48:50.250Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:48:50.465Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:48:50.548Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:48:50.964Z] Functions runtime initialized. +[debug] [2019-05-20T14:48:50.964Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:48:51.728Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T14:49:08.301Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers +[debug] [2019-05-20T14:49:09.761Z] Functions runtime initialized. +[debug] [2019-05-20T14:49:09.762Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:49:10.523Z] firebase-admin has been stubbed. +[debug] [2019-05-20T14:49:13.562Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T14:49:13.564Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T14:49:13.564Z] CLI Version: 6.10.0 +[debug] [2019-05-20T14:49:13.565Z] Platform: win32 +[debug] [2019-05-20T14:49:13.565Z] Node Version: v10.15.0 +[debug] [2019-05-20T14:49:13.566Z] Time: Mon May 20 2019 15:49:13 GMT+0100 (British Summer Time) +[debug] [2019-05-20T14:49:13.566Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T14:49:13.575Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T14:49:13.576Z] > authorizing via signed-in user +[debug] [2019-05-20T14:49:13.576Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T14:49:13.578Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T14:49:14.363Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T14:49:14.365Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T14:49:15.095Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T14:49:15.101Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T14:49:15.101Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T14:49:15.315Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T14:49:15.396Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T14:49:15.844Z] Functions runtime initialized. +[debug] [2019-05-20T14:49:15.845Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T14:49:16.610Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T15:02:24.895Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers +[debug] [2019-05-20T15:02:26.363Z] Functions runtime initialized. +[debug] [2019-05-20T15:02:26.363Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T15:02:27.134Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.use is not a function + at module.exports.app (D:\mango\labseu1-db-BE\middleware.js:4:7) + at Object. (D:\mango\labseu1-db-BE\functions\index.js:8:1) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T15:02:54.519Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers +[debug] [2019-05-20T15:02:55.976Z] Functions runtime initialized. +[debug] [2019-05-20T15:02:55.977Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T15:02:56.845Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. +[debug] [2019-05-20T15:53:37.724Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T15:53:37.727Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T15:53:37.727Z] CLI Version: 6.10.0 +[debug] [2019-05-20T15:53:37.727Z] Platform: win32 +[debug] [2019-05-20T15:53:37.727Z] Node Version: v10.15.0 +[debug] [2019-05-20T15:53:37.729Z] Time: Mon May 20 2019 16:53:37 GMT+0100 (British Summer Time) +[debug] [2019-05-20T15:53:37.729Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T15:53:37.738Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T15:53:37.738Z] > authorizing via signed-in user +[debug] [2019-05-20T15:53:37.738Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T15:53:37.740Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"] +[debug] [2019-05-20T15:53:37.740Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token + +[debug] [2019-05-20T15:53:37.951Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T15:53:37.961Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T15:53:38.745Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T15:53:38.746Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T15:53:39.496Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T15:53:39.502Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T15:53:39.503Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T15:53:39.816Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T15:53:39.886Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T15:53:40.341Z] Functions runtime initialized. +[debug] [2019-05-20T15:53:40.341Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T15:53:41.174Z] firebase-admin has been stubbed. +[warn] ! TypeError: app.post is not a function + at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) + at Module._compile (internal/modules/cjs/loader.js:689:30) + at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) + at Module.load (internal/modules/cjs/loader.js:599:32) + at tryModuleLoad (internal/modules/cjs/loader.js:538:12) + at Function.Module._load (internal/modules/cjs/loader.js:530:3) + at Module.require (internal/modules/cjs/loader.js:637:17) + at require (internal/modules/cjs/helpers.js:22:18) + at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 + at Generator.next () +[warn] ! Your function was killed because it raised an unhandled error. diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..97d2218 --- /dev/null +++ b/firebase.json @@ -0,0 +1,11 @@ +{ + "hosting": { + "public": "public", + "rewrites": [ + { + "source": "/charge", + "function": "app" + } + ] + } +} diff --git a/functions/.gitignore b/functions/.gitignore new file mode 100644 index 0000000..40b878d --- /dev/null +++ b/functions/.gitignore @@ -0,0 +1 @@ +node_modules/ \ No newline at end of file diff --git a/functions/firebase-debug.log b/functions/firebase-debug.log new file mode 100644 index 0000000..29ec6a9 --- /dev/null +++ b/functions/firebase-debug.log @@ -0,0 +1,160 @@ +[debug] [2019-05-20T15:59:11.973Z] ---------------------------------------------------------------------- +[debug] [2019-05-20T15:59:11.976Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting +[debug] [2019-05-20T15:59:11.976Z] CLI Version: 6.10.0 +[debug] [2019-05-20T15:59:11.976Z] Platform: win32 +[debug] [2019-05-20T15:59:11.976Z] Node Version: v10.15.0 +[debug] [2019-05-20T15:59:11.977Z] Time: Mon May 20 2019 16:59:11 GMT+0100 (British Summer Time) +[debug] [2019-05-20T15:59:11.977Z] ---------------------------------------------------------------------- +[debug] +[debug] [2019-05-20T15:59:11.987Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] +[debug] [2019-05-20T15:59:11.987Z] > authorizing via signed-in user +[debug] [2019-05-20T15:59:11.988Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] +[debug] [2019-05-20T15:59:11.989Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions + +[debug] [2019-05-20T15:59:12.771Z] <<< HTTP RESPONSE 200 +[debug] [2019-05-20T15:59:12.774Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test + +[debug] [2019-05-20T15:59:13.522Z] <<< HTTP RESPONSE 200 +[warn] ! Your requested "node" version "8" doesn't match your global version "10" +[debug] [2019-05-20T15:59:13.531Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig + +[debug] [2019-05-20T15:59:13.532Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig + +[debug] [2019-05-20T15:59:13.797Z] <<< HTTP RESPONSE 200 +[info] + functions: Emulator started at http://localhost:5001 +[debug] [2019-05-20T15:59:13.855Z] <<< HTTP RESPONSE 200 +[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... +[info] i hosting: Serving hosting files from: public +[info] + hosting: Local server: http://localhost:5000 +[debug] [2019-05-20T15:59:14.282Z] Functions runtime initialized. +[debug] [2019-05-20T15:59:14.282Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T15:59:15.017Z] firebase-admin has been stubbed. +[info] i functions: HTTP trigger initialized at http://localhost:5001/labseu1-db-test/us-central1/app +[debug] [2019-05-20T16:14:41.783Z] Accepted request GET /labseu1-db-test/us-central1/app --> app +[debug] [2019-05-20T16:14:42.284Z] Functions runtime initialized. +[info] i functions: Beginning execution of "app" +[debug] [2019-05-20T16:14:42.286Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T16:14:43.042Z] firebase-admin has been stubbed. +[debug] [2019-05-20T16:14:43.202Z] Trigger "app" has been found, beginning invocation! +[debug] [2019-05-20T16:14:43.203Z] +[debug] [2019-05-20T16:14:43.203Z] Running app in mode HTTPS +[info] i Your code has been provided a "firebase-admin" instance. +[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. + - Learn more: https://firebase.google.com/docs/admin/setup +[debug] [2019-05-20T16:14:43.209Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\7948"} +[debug] [2019-05-20T16:14:43.209Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\7948"} +[debug] [2019-05-20T16:14:43.216Z] Ephemeral server used! +[debug] [2019-05-20T16:14:43.223Z] Ephemeral server survived. +[info] i functions: Finished "app" in ~1s +[debug] [2019-05-20T16:18:32.538Z] Accepted request POST /labseu1-db-test/us-central1/app --> app +[debug] [2019-05-20T16:18:32.940Z] Functions runtime initialized. +[info] i functions: Beginning execution of "app" +[debug] [2019-05-20T16:18:32.941Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T16:18:33.686Z] firebase-admin has been stubbed. +[debug] [2019-05-20T16:18:33.838Z] Trigger "app" has been found, beginning invocation! +[debug] [2019-05-20T16:18:33.838Z] +[debug] [2019-05-20T16:18:33.839Z] Running app in mode HTTPS +[info] i Your code has been provided a "firebase-admin" instance. +[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. + - Learn more: https://firebase.google.com/docs/admin/setup +[debug] [2019-05-20T16:18:33.844Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\9276"} +[debug] [2019-05-20T16:18:33.845Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\9276"} +[debug] [2019-05-20T16:18:33.864Z] Ephemeral server used! +[debug] [2019-05-20T16:18:33.869Z] Ephemeral server survived. +[info] i functions: Finished "app" in ~1s +[debug] [2019-05-20T16:20:03.613Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app +[debug] [2019-05-20T16:20:04.036Z] Functions runtime initialized. +[info] i functions: Beginning execution of "app" +[debug] [2019-05-20T16:20:04.037Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T16:20:04.778Z] firebase-admin has been stubbed. +[debug] [2019-05-20T16:20:04.931Z] Trigger "app" has been found, beginning invocation! +[debug] [2019-05-20T16:20:04.931Z] +[debug] [2019-05-20T16:20:04.931Z] Running app in mode HTTPS +[info] i Your code has been provided a "firebase-admin" instance. +[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. + - Learn more: https://firebase.google.com/docs/admin/setup +[debug] [2019-05-20T16:20:04.937Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\22700"} +[debug] [2019-05-20T16:20:04.938Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\22700"} +[debug] [2019-05-20T16:20:04.956Z] Ephemeral server used! +[debug] [2019-05-20T16:20:04.966Z] Ephemeral server survived. +[info] i functions: Finished "app" in ~1s +[debug] [2019-05-20T16:29:11.388Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app +[debug] [2019-05-20T16:29:11.799Z] Functions runtime initialized. +[info] i functions: Beginning execution of "app" +[debug] [2019-05-20T16:29:11.800Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T16:29:12.563Z] firebase-admin has been stubbed. +[debug] [2019-05-20T16:29:12.726Z] Trigger "app" has been found, beginning invocation! +[debug] [2019-05-20T16:29:12.726Z] +[debug] [2019-05-20T16:29:12.726Z] Running app in mode HTTPS +[info] i Your code has been provided a "firebase-admin" instance. +[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. + - Learn more: https://firebase.google.com/docs/admin/setup +[debug] [2019-05-20T16:29:12.733Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\10828"} +[debug] [2019-05-20T16:29:12.733Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\10828"} +[debug] [2019-05-20T16:29:12.750Z] Ephemeral server used! +[debug] [2019-05-20T16:29:12.759Z] Ephemeral server survived. +[info] i functions: Finished "app" in ~1s +[debug] [2019-05-20T16:57:06.720Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app +[debug] [2019-05-20T16:57:07.140Z] Functions runtime initialized. +[info] i functions: Beginning execution of "app" +[debug] [2019-05-20T16:57:07.141Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T16:57:07.899Z] firebase-admin has been stubbed. +[debug] [2019-05-20T16:57:08.068Z] Trigger "app" has been found, beginning invocation! +[debug] [2019-05-20T16:57:08.068Z] +[debug] [2019-05-20T16:57:08.068Z] Running app in mode HTTPS +[info] i Your code has been provided a "firebase-admin" instance. +[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. + - Learn more: https://firebase.google.com/docs/admin/setup +[debug] [2019-05-20T16:57:08.074Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\20064"} +[debug] [2019-05-20T16:57:08.074Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\20064"} +[debug] [2019-05-20T16:57:08.092Z] Ephemeral server used! +[debug] [2019-05-20T16:57:08.100Z] Ephemeral server survived. +[info] i functions: Finished "app" in ~1s +[debug] [2019-05-20T17:01:51.009Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app +[debug] [2019-05-20T17:01:51.443Z] Functions runtime initialized. +[info] i functions: Beginning execution of "app" +[debug] [2019-05-20T17:01:51.444Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T17:01:52.198Z] firebase-admin has been stubbed. +[debug] [2019-05-20T17:01:52.356Z] Trigger "app" has been found, beginning invocation! +[debug] [2019-05-20T17:01:52.356Z] +[debug] [2019-05-20T17:01:52.356Z] Running app in mode HTTPS +[info] i Your code has been provided a "firebase-admin" instance. +[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. + - Learn more: https://firebase.google.com/docs/admin/setup +[debug] [2019-05-20T17:01:52.362Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\21748"} +[debug] [2019-05-20T17:01:52.362Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\21748"} +[debug] [2019-05-20T17:01:52.381Z] Ephemeral server used! +[debug] [2019-05-20T17:01:52.390Z] Ephemeral server survived. +[info] i functions: Finished "app" in ~1s +[debug] [2019-05-20T17:28:35.391Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app +[debug] [2019-05-20T17:28:35.859Z] Functions runtime initialized. +[info] i functions: Beginning execution of "app" +[debug] [2019-05-20T17:28:35.861Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T17:28:36.636Z] firebase-admin has been stubbed. +[debug] [2019-05-20T17:28:36.801Z] Trigger "app" has been found, beginning invocation! +[debug] [2019-05-20T17:28:36.802Z] +[debug] [2019-05-20T17:28:36.802Z] Running app in mode HTTPS +[info] i Your code has been provided a "firebase-admin" instance. +[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. + - Learn more: https://firebase.google.com/docs/admin/setup +[debug] [2019-05-20T17:28:36.808Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\20680"} +[debug] [2019-05-20T17:28:36.809Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\20680"} +[debug] [2019-05-20T17:28:36.827Z] Ephemeral server used! +[debug] [2019-05-20T17:28:36.836Z] Ephemeral server survived. +[info] i functions: Finished "app" in ~1s +[debug] [2019-05-20T17:43:44.709Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app +[debug] [2019-05-20T17:43:45.130Z] Functions runtime initialized. +[info] i functions: Beginning execution of "app" +[debug] [2019-05-20T17:43:45.131Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} +[debug] [2019-05-20T17:43:45.849Z] firebase-admin has been stubbed. +[debug] [2019-05-20T17:43:46.007Z] Trigger "app" has been found, beginning invocation! +[debug] [2019-05-20T17:43:46.008Z] +[debug] [2019-05-20T17:43:46.008Z] Running app in mode HTTPS +[info] i Your code has been provided a "firebase-admin" instance. +[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. + - Learn more: https://firebase.google.com/docs/admin/setup +[debug] [2019-05-20T17:43:46.013Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\16908"} +[debug] [2019-05-20T17:43:46.013Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\16908"} +[debug] [2019-05-20T17:43:46.031Z] Ephemeral server used! +[debug] [2019-05-20T17:43:46.040Z] Ephemeral server survived. +[info] i functions: Finished "app" in ~1s diff --git a/functions/index.js b/functions/index.js new file mode 100644 index 0000000..d7af0aa --- /dev/null +++ b/functions/index.js @@ -0,0 +1,29 @@ +const functions = require('firebase-functions'); +// const admin = require('firebase-admin'); +const express = require('express'); +const stripe = require('stripe')('sk_test_Fp1czcN7sosPfrOFPrZz1Ddu00JL3WqPgd'); +const configureMiddleware = require('./middleware.js'); + +const app = express(); +configureMiddleware(app); + +// // Create and Deploy Your First Cloud Functions +// // https://firebase.google.com/docs/functions/write-firebase-functions +// + +app.post('/charge', async (req, res) => { + try { + let { status } = await stripe.charges.create({ + amount: 2000, // in cents + currency: 'usd', + description: 'An example charge', + source: req.body + }); + + res.json({ status }); + } catch (err) { + res.status(500).end(); + } +}); + +exports.app = functions.https.onRequest(app); diff --git a/functions/middleware.js b/functions/middleware.js new file mode 100644 index 0000000..bbbc065 --- /dev/null +++ b/functions/middleware.js @@ -0,0 +1,6 @@ +const cors = require('cors'); + +module.exports = app => { + app.use(cors()); + app.use(require('body-parser').text()); +}; diff --git a/functions/package-lock.json b/functions/package-lock.json new file mode 100644 index 0000000..4cc9318 --- /dev/null +++ b/functions/package-lock.json @@ -0,0 +1,2457 @@ +{ + "name": "functions", + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "@firebase/app": { + "version": "0.3.17", + "resolved": "https://registry.npmjs.org/@firebase/app/-/app-0.3.17.tgz", + "integrity": "sha512-/8lDeeIxgdCIMffrfBPQ3bcdSkF8bx4KCp8pKMPOG/HYKoeM8I9eP4zlzxL5ABzRjvcdhK9KOYOn0jRrNrGD9g==", + "requires": { + "@firebase/app-types": "0.3.10", + "@firebase/util": "0.2.14", + "dom-storage": "2.1.0", + "tslib": "1.9.3", + "xmlhttprequest": "1.8.0" + } + }, + "@firebase/app-types": { + "version": "0.3.10", + "resolved": "https://registry.npmjs.org/@firebase/app-types/-/app-types-0.3.10.tgz", + "integrity": "sha512-l+5BJtSQopalBXiY/YuSaB9KF9PnDj37FLV0Sx3qJjh5B3IthCuZbPc1Vpbbbee/QZgudl0G212BBsUMGHP+fQ==" + }, + "@firebase/database": { + "version": "0.3.20", + "resolved": "https://registry.npmjs.org/@firebase/database/-/database-0.3.20.tgz", + "integrity": "sha512-fZHRIlRQlND/UrzI1beUTRKfktjMvMEiUOar6ylFZqOj2KNVO4CrF95UGqRl0HBGhZzlBKzaDYAcJze2D6C4+Q==", + "requires": { + "@firebase/database-types": "0.3.11", + "@firebase/logger": "0.1.13", + "@firebase/util": "0.2.14", + "faye-websocket": "0.11.1", + "tslib": "1.9.3" + } + }, + "@firebase/database-types": { + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/@firebase/database-types/-/database-types-0.3.11.tgz", + "integrity": "sha512-iRAZzs7Zlmmvh7r0XlR1MAO6I6bm1HjW9m1ytfJ6E/8+zItHnbVH4iiVVkC39r1wMGrtPMz8FiIUWoaasPF5dA==" + }, + "@firebase/logger": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@firebase/logger/-/logger-0.1.13.tgz", + "integrity": "sha512-wIbLwQ2oJCkvHIE7J3FDxpScKY84fSctEEjOi0PB+Yn2dN8AwqtM7YF8rtcY8cxntv8dyR+i7GNg1Nd89cGxkA==" + }, + "@firebase/util": { + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/@firebase/util/-/util-0.2.14.tgz", + "integrity": "sha512-2ke1Lra0R5T+5ucCMWft/IB2rI/IzumHHYm9aqrM9lJ3XURiWmBHAYrvaPVP7///gDhJAo+NNDUCAJH/Y4PmvA==", + "requires": { + "tslib": "1.9.3" + } + }, + "@google-cloud/common": { + "version": "0.32.1", + "resolved": "https://registry.npmjs.org/@google-cloud/common/-/common-0.32.1.tgz", + "integrity": "sha512-bLdPzFvvBMtVkwsoBtygE9oUm3yrNmPa71gvOgucYI/GqvNP2tb6RYsDHPq98kvignhcgHGDI5wyNgxaCo8bKQ==", + "optional": true, + "requires": { + "@google-cloud/projectify": "^0.3.3", + "@google-cloud/promisify": "^0.4.0", + "@types/request": "^2.48.1", + "arrify": "^2.0.0", + "duplexify": "^3.6.0", + "ent": "^2.2.0", + "extend": "^3.0.2", + "google-auth-library": "^3.1.1", + "pify": "^4.0.1", + "retry-request": "^4.0.0", + "teeny-request": "^3.11.3" + }, + "dependencies": { + "arrify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", + "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", + "optional": true + } + } + }, + "@google-cloud/firestore": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@google-cloud/firestore/-/firestore-1.3.0.tgz", + "integrity": "sha512-KUKcHUU+FwwBmJH1LqJcd+XtLPzMcS/Vni6/WCJGHBGrOBmXCey4i3Gc41ZsuSk1Qx4msH5f+4h0b3t6YLyydg==", + "optional": true, + "requires": { + "bun": "^0.0.12", + "deep-equal": "^1.0.1", + "functional-red-black-tree": "^1.0.1", + "google-gax": "^0.25.0", + "lodash.merge": "^4.6.1", + "through2": "^3.0.0" + } + }, + "@google-cloud/paginator": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@google-cloud/paginator/-/paginator-0.2.0.tgz", + "integrity": "sha512-2ZSARojHDhkLvQ+CS32K+iUhBsWg3AEw+uxtqblA7xoCABDyhpj99FPp35xy6A+XlzMhOSrHHaxFE+t6ZTQq0w==", + "optional": true, + "requires": { + "arrify": "^1.0.1", + "extend": "^3.0.1", + "split-array-stream": "^2.0.0", + "stream-events": "^1.0.4" + } + }, + "@google-cloud/projectify": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@google-cloud/projectify/-/projectify-0.3.3.tgz", + "integrity": "sha512-7522YHQ4IhaafgSunsFF15nG0TGVmxgXidy9cITMe+256RgqfcrfWphiMufW+Ou4kqagW/u3yxwbzVEW3dk2Uw==", + "optional": true + }, + "@google-cloud/promisify": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@google-cloud/promisify/-/promisify-0.4.0.tgz", + "integrity": "sha512-4yAHDC52TEMCNcMzVC8WlqnKKKq+Ssi2lXoUg9zWWkZ6U6tq9ZBRYLHHCRdfU+EU9YJsVmivwGcKYCjRGjnf4Q==" + }, + "@google-cloud/storage": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@google-cloud/storage/-/storage-2.5.0.tgz", + "integrity": "sha512-q1mwB6RUebIahbA3eriRs8DbG2Ij81Ynb9k8hMqTPkmbd8/S6Z0d6hVvfPmnyvX9Ej13IcmEYIbymuq/RBLghA==", + "optional": true, + "requires": { + "@google-cloud/common": "^0.32.0", + "@google-cloud/paginator": "^0.2.0", + "@google-cloud/promisify": "^0.4.0", + "arrify": "^1.0.0", + "async": "^2.0.1", + "compressible": "^2.0.12", + "concat-stream": "^2.0.0", + "date-and-time": "^0.6.3", + "duplexify": "^3.5.0", + "extend": "^3.0.0", + "gcs-resumable-upload": "^1.0.0", + "hash-stream-validation": "^0.2.1", + "mime": "^2.2.0", + "mime-types": "^2.0.8", + "onetime": "^5.1.0", + "pumpify": "^1.5.1", + "snakeize": "^0.1.0", + "stream-events": "^1.0.1", + "teeny-request": "^3.11.3", + "through2": "^3.0.0", + "xdg-basedir": "^3.0.0" + } + }, + "@grpc/grpc-js": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-0.3.6.tgz", + "integrity": "sha512-SmLNuPGlUur64bNS9aHZguqWDVQ8+Df1CGn+xsh7l6T2wiP5ArOMlywZ3TZo6z/rwKtGQgUJY9ZrPYUmHEXd/Q==", + "optional": true, + "requires": { + "semver": "^5.5.0" + }, + "dependencies": { + "semver": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", + "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", + "optional": true + } + } + }, + "@grpc/proto-loader": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.4.0.tgz", + "integrity": "sha512-Jm6o+75uWT7E6+lt8edg4J1F/9+BedOjaMgwE14pxS/AO43/0ZqK+rCLVVrXLoExwSAZvgvOD2B0ivy3Spsspw==", + "optional": true, + "requires": { + "lodash.camelcase": "^4.3.0", + "protobufjs": "^6.8.6" + } + }, + "@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" + }, + "@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" + }, + "@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "requires": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" + }, + "@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" + }, + "@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" + }, + "@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + }, + "@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + }, + "@types/body-parser": { + "version": "1.17.0", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.17.0.tgz", + "integrity": "sha512-a2+YeUjPkztKJu5aIF2yArYFQQp8d51wZ7DavSHjFuY1mqVgidGyzEQ41JIVNy82fXj8yPgy2vJmfIywgESW6w==", + "requires": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "@types/caseless": { + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.2.tgz", + "integrity": "sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w==", + "optional": true + }, + "@types/connect": { + "version": "3.4.32", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.32.tgz", + "integrity": "sha512-4r8qa0quOvh7lGD0pre62CAb1oni1OO6ecJLGCezTmhQ8Fz50Arx9RUszryR8KlgK6avuSXvviL6yWyViQABOg==", + "requires": { + "@types/node": "*" + } + }, + "@types/cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-GmK8AKu8i+s+EChK/uZ5IbrXPcPaQKWaNSGevDT/7o3gFObwSUQwqb1jMqxuo+YPvj0ckGzINI+EO7EHcmJjKg==", + "requires": { + "@types/express": "*" + } + }, + "@types/express": { + "version": "4.16.1", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.16.1.tgz", + "integrity": "sha512-V0clmJow23WeyblmACoxbHBu2JKlE5TiIme6Lem14FnPW9gsttyHtk6wq7njcdIWH1njAaFgR8gW09lgY98gQg==", + "requires": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "*", + "@types/serve-static": "*" + } + }, + "@types/express-serve-static-core": { + "version": "4.16.4", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.16.4.tgz", + "integrity": "sha512-x/8h6FHm14rPWnW2HP5likD/rsqJ3t/77OWx2PLxym0hXbeBWQmcPyHmwX+CtCQpjIfgrUdEoDFcLPwPZWiqzQ==", + "requires": { + "@types/node": "*", + "@types/range-parser": "*" + } + }, + "@types/form-data": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.1.tgz", + "integrity": "sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ==", + "optional": true, + "requires": { + "@types/node": "*" + } + }, + "@types/jsonwebtoken": { + "version": "7.2.8", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-7.2.8.tgz", + "integrity": "sha512-XENN3YzEB8D6TiUww0O8SRznzy1v+77lH7UmuN54xq/IHIsyWjWOzZuFFTtoiRuaE782uAoRwBe/wwow+vQXZw==", + "requires": { + "@types/node": "*" + } + }, + "@types/lodash": { + "version": "4.14.129", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.129.tgz", + "integrity": "sha512-oYaV0eSlnOacOr7i4X1FFdH8ttSlb57gu3I9MuStIv2CYkISEY84dNHYsC3bF6sNH7qYcu1BtVrCtQ8Q4KPTfQ==" + }, + "@types/long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz", + "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" + }, + "@types/mime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.1.tgz", + "integrity": "sha512-FwI9gX75FgVBJ7ywgnq/P7tw+/o1GUbtP0KzbtusLigAOgIgNISRK0ZPl4qertvXSIE8YbsVJueQ90cDt9YYyw==" + }, + "@types/node": { + "version": "8.10.48", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.48.tgz", + "integrity": "sha512-c35YEBTkL4rzXY2ucpSKy+UYHjUBIIkuJbWYbsGIrKLEWU5dgJMmLkkIb3qeC3O3Tpb1ZQCwecscvJTDjDjkRw==" + }, + "@types/range-parser": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.3.tgz", + "integrity": "sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA==" + }, + "@types/request": { + "version": "2.48.1", + "resolved": "https://registry.npmjs.org/@types/request/-/request-2.48.1.tgz", + "integrity": "sha512-ZgEZ1TiD+KGA9LiAAPPJL68Id2UWfeSO62ijSXZjFJArVV+2pKcsVHmrcu+1oiE3q6eDGiFiSolRc4JHoerBBg==", + "optional": true, + "requires": { + "@types/caseless": "*", + "@types/form-data": "*", + "@types/node": "*", + "@types/tough-cookie": "*" + } + }, + "@types/serve-static": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.13.2.tgz", + "integrity": "sha512-/BZ4QRLpH/bNYgZgwhKEh+5AsboDBcUdlBYgzoLX0fpj3Y2gp6EApyOlM3bK53wQS/OE1SrdSYBAbux2D1528Q==", + "requires": { + "@types/express-serve-static-core": "*", + "@types/mime": "*" + } + }, + "@types/tough-cookie": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.5.tgz", + "integrity": "sha512-SCcK7mvGi3+ZNz833RRjFIxrn4gI1PPR3NtuIS+6vMkvmsGjosqTJwRt5bAEFLRz+wtJMWv8+uOnZf2hi2QXTg==", + "optional": true + }, + "abort-controller": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", + "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "requires": { + "event-target-shim": "^5.0.0" + } + }, + "accepts": { + "version": "1.3.7", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", + "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "requires": { + "mime-types": "~2.1.24", + "negotiator": "0.6.2" + } + }, + "agent-base": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.2.1.tgz", + "integrity": "sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg==", + "requires": { + "es6-promisify": "^5.0.0" + } + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + }, + "array-flatten": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" + }, + "ascli": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz", + "integrity": "sha1-vPpZdKYvGOgcq660lzKrSoj5Brw=", + "requires": { + "colour": "~0.7.1", + "optjs": "~3.2.2" + } + }, + "async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz", + "integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==", + "optional": true, + "requires": { + "lodash": "^4.17.11" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "base64-js": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", + "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==" + }, + "bignumber.js": { + "version": "7.2.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-7.2.1.tgz", + "integrity": "sha512-S4XzBk5sMB+Rcb/LNcpzXr57VRTxgAvaAEDAl1AwRx27j00hT84O6OkteE7u8UB3NuaaygCRrEpqox4uDOrbdQ==" + }, + "body-parser": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", + "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", + "requires": { + "bytes": "3.1.0", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "~1.1.2", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "on-finished": "~2.3.0", + "qs": "6.7.0", + "raw-body": "2.4.0", + "type-is": "~1.6.17" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "optional": true + }, + "bun": { + "version": "0.0.12", + "resolved": "https://registry.npmjs.org/bun/-/bun-0.0.12.tgz", + "integrity": "sha512-Toms18J9DqnT+IfWkwxVTB2EaBprHvjlMWrTIsfX4xbu3ZBqVBwrERU0em1IgtRe04wT+wJxMlKHZok24hrcSQ==", + "optional": true, + "requires": { + "readable-stream": "~1.0.32" + } + }, + "bytebuffer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", + "integrity": "sha1-WC7qSxqHO20CCkjVjfhfC7ps/d0=", + "requires": { + "long": "~3" + }, + "dependencies": { + "long": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", + "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=" + } + } + }, + "bytes": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", + "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" + }, + "camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=" + }, + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" + } + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" + }, + "colour": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/colour/-/colour-0.7.1.tgz", + "integrity": "sha1-nLFpkX7F0SwHNtPoaFdG3xyt93g=" + }, + "compressible": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.17.tgz", + "integrity": "sha512-BGHeLCK1GV7j1bSmQQAi26X+GgWcTjLr/0tzSvMCl3LH1w1IJ4PFSPoV5316b30cneTziC+B1a+3OjoSUcQYmw==", + "optional": true, + "requires": { + "mime-db": ">= 1.40.0 < 2" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "concat-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz", + "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==", + "optional": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.0.2", + "typedarray": "^0.0.6" + }, + "dependencies": { + "readable-stream": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.3.0.tgz", + "integrity": "sha512-EsI+s3k3XsW+fU8fQACLN59ky34AZ14LoeVZpYwmZvldCFo0r0gnelwF2TcMjLor/BTL5aDJVBMkss0dthToPw==", + "optional": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "string_decoder": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz", + "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", + "optional": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "configstore": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-4.0.0.tgz", + "integrity": "sha512-CmquAXFBocrzaSM8mtGPMM/HiWmyIpr4CcJl/rgY2uCObZ/S7cKU0silxslqJejl+t/T9HS8E0PUNQD81JGUEQ==", + "optional": true, + "requires": { + "dot-prop": "^4.1.0", + "graceful-fs": "^4.1.2", + "make-dir": "^1.0.0", + "unique-string": "^1.0.0", + "write-file-atomic": "^2.0.0", + "xdg-basedir": "^3.0.0" + } + }, + "content-disposition": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", + "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", + "requires": { + "safe-buffer": "5.1.2" + } + }, + "content-type": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + }, + "cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" + }, + "cookie-signature": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "cors": { + "version": "2.8.5", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "requires": { + "object-assign": "^4", + "vary": "^1" + } + }, + "crypto-random-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", + "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", + "optional": true + }, + "date-and-time": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/date-and-time/-/date-and-time-0.6.3.tgz", + "integrity": "sha512-lcWy3AXDRJOD7MplwZMmNSRM//kZtJaLz4n6D1P5z9wEmZGBKhJRBIr1Xs9KNQJmdXPblvgffynYji4iylUTcA==", + "optional": true + }, + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "requires": { + "ms": "^2.1.1" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" + }, + "deep-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", + "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", + "optional": true + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + }, + "destroy": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", + "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" + }, + "dom-storage": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/dom-storage/-/dom-storage-2.1.0.tgz", + "integrity": "sha512-g6RpyWXzl0RR6OTElHKBl7nwnK87GUyZMYC7JWsB/IA73vpqK2K6LT39x4VepLxlSsWBFrPVLnsSR5Jyty0+2Q==" + }, + "dot-prop": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", + "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", + "optional": true, + "requires": { + "is-obj": "^1.0.0" + } + }, + "duplexify": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", + "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", + "requires": { + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "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==", + "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" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" + }, + "encodeurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" + }, + "end-of-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", + "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "requires": { + "once": "^1.4.0" + } + }, + "ent": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", + "integrity": "sha1-6WQhkyWiHQX0RGai9obtbOX13R0=", + "optional": true + }, + "es6-promise": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.6.tgz", + "integrity": "sha512-aRVgGdnmW2OiySVPUC9e6m+plolMAJKjZnQlCwNSuK5yQ0JN61DZSO1X1Ufd1foqWRAlig0rhduTCHe7sVtK5Q==" + }, + "es6-promisify": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", + "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", + "requires": { + "es6-promise": "^4.0.3" + } + }, + "escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" + }, + "etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" + }, + "event-target-shim": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", + "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" + }, + "express": { + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/express/-/express-4.17.0.tgz", + "integrity": "sha512-1Z7/t3Z5ZnBG252gKUPyItc4xdeaA0X934ca2ewckAsVsw9EG71i++ZHZPYnus8g/s5Bty8IMpSVEuRkmwwPRQ==", + "requires": { + "accepts": "~1.3.7", + "array-flatten": "1.1.1", + "body-parser": "1.19.0", + "content-disposition": "0.5.3", + "content-type": "~1.0.4", + "cookie": "0.4.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "~1.1.2", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "~1.1.2", + "fresh": "0.5.2", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.5", + "qs": "6.7.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.1.2", + "send": "0.17.1", + "serve-static": "1.14.1", + "setprototypeof": "1.1.1", + "statuses": "~1.5.0", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "fast-text-encoding": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fast-text-encoding/-/fast-text-encoding-1.0.0.tgz", + "integrity": "sha512-R9bHCvweUxxwkDwhjav5vxpFvdPGlVngtqmx4pIZfSUhM/Q4NiIUHB456BAf+Q1Nwu3HEZYONtu+Rya+af4jiQ==" + }, + "faye-websocket": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.1.tgz", + "integrity": "sha1-8O/hjE9W5PQK/H4Gxxn9XuYYjzg=", + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "finalhandler": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", + "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "~2.3.0", + "parseurl": "~1.3.3", + "statuses": "~1.5.0", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "firebase-admin": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/firebase-admin/-/firebase-admin-7.0.0.tgz", + "integrity": "sha512-uYJVRuq8/b9PeJrgZwE2OIfr/MQAVhWxUpOa4AnWEEjzM7hzw2CQjY2iFzH6o0/7rTyAiGeFPQQQLBMg/xuQ6w==", + "requires": { + "@firebase/app": "^0.3.4", + "@firebase/database": "^0.3.6", + "@google-cloud/firestore": "^1.0.1", + "@google-cloud/storage": "^2.3.0", + "@types/node": "^8.0.53", + "jsonwebtoken": "8.1.0", + "node-forge": "0.7.4" + } + }, + "firebase-functions": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/firebase-functions/-/firebase-functions-2.3.1.tgz", + "integrity": "sha512-MPeuzGFLS63VqfGErgf+kbZinXE4SoK+jxXh1NBWrjYUjXlOJBKRmVNAFJoQB8wzCvOtBuDYjGcnBNz6sKXsfw==", + "requires": { + "@types/cors": "^2.8.1", + "@types/express": "^4.11.1", + "@types/jsonwebtoken": "^7.2.6", + "@types/lodash": "^4.14.34", + "cors": "^2.8.4", + "express": "^4.16.2", + "jsonwebtoken": "^8.2.1", + "lodash": "^4.6.1" + }, + "dependencies": { + "jsonwebtoken": { + "version": "8.5.1", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz", + "integrity": "sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w==", + "requires": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^5.6.0" + } + }, + "semver": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", + "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==" + } + } + }, + "firebase-functions-test": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/firebase-functions-test/-/firebase-functions-test-0.1.6.tgz", + "integrity": "sha512-sITLbQunI75gL690qFOq4mqxUEcdETEbY4HcLFawWVJC3PmlSFt81mhfZjJe45GJTt1+7xeowaHQx3jpnoPNpA==", + "dev": true, + "requires": { + "@types/lodash": "^4.14.104", + "lodash": "^4.17.5" + } + }, + "forwarded": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", + "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" + }, + "fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "optional": true + }, + "gaxios": { + "version": "1.8.4", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-1.8.4.tgz", + "integrity": "sha512-BoENMnu1Gav18HcpV9IleMPZ9exM+AvUjrAOV4Mzs/vfz2Lu/ABv451iEXByKiMPn2M140uul1txXCg83sAENw==", + "requires": { + "abort-controller": "^3.0.0", + "extend": "^3.0.2", + "https-proxy-agent": "^2.2.1", + "node-fetch": "^2.3.0" + } + }, + "gcp-metadata": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-1.0.0.tgz", + "integrity": "sha512-Q6HrgfrCQeEircnNP3rCcEgiDv7eF9+1B+1MMgpE190+/+0mjQR8PxeOaRgxZWmdDAF9EIryHB9g1moPiw1SbQ==", + "requires": { + "gaxios": "^1.0.2", + "json-bigint": "^0.3.0" + } + }, + "gcs-resumable-upload": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/gcs-resumable-upload/-/gcs-resumable-upload-1.1.0.tgz", + "integrity": "sha512-uBz7uHqp44xjSDzG3kLbOYZDjxxR/UAGbB47A0cC907W6yd2LkcyFDTHg+bjivkHMwiJlKv4guVWcjPCk2zScg==", + "optional": true, + "requires": { + "abort-controller": "^2.0.2", + "configstore": "^4.0.0", + "gaxios": "^1.5.0", + "google-auth-library": "^3.0.0", + "pumpify": "^1.5.1", + "stream-events": "^1.0.4" + }, + "dependencies": { + "abort-controller": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-2.0.3.tgz", + "integrity": "sha512-EPSq5wr2aFyAZ1PejJB32IX9Qd4Nwus+adnp7STYFM5/23nLPBazqZ1oor6ZqbH+4otaaGXTlC8RN5hq3C8w9Q==", + "optional": true, + "requires": { + "event-target-shim": "^5.0.0" + } + } + } + }, + "glob": { + "version": "7.1.4", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", + "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", + "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" + } + }, + "google-auth-library": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-3.1.2.tgz", + "integrity": "sha512-cDQMzTotwyWMrg5jRO7q0A4TL/3GWBgO7I7q5xGKNiiFf9SmGY/OJ1YsLMgI2MVHHsEGyrqYnbnmV1AE+Z6DnQ==", + "requires": { + "base64-js": "^1.3.0", + "fast-text-encoding": "^1.0.0", + "gaxios": "^1.2.1", + "gcp-metadata": "^1.0.0", + "gtoken": "^2.3.2", + "https-proxy-agent": "^2.2.1", + "jws": "^3.1.5", + "lru-cache": "^5.0.0", + "semver": "^5.5.0" + }, + "dependencies": { + "semver": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", + "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==" + } + } + }, + "google-gax": { + "version": "0.25.6", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.25.6.tgz", + "integrity": "sha512-+CVtOSLQt42mwVvJJirhBiAvWsp8zKeb9zW5Wy3wyvb3VG9OugHzZpwvYO9D4yNPPspe7L9CpIs80I5nUJlS8w==", + "optional": true, + "requires": { + "@grpc/grpc-js": "^0.3.0", + "@grpc/proto-loader": "^0.4.0", + "duplexify": "^3.6.0", + "google-auth-library": "^3.0.0", + "google-proto-files": "^0.20.0", + "grpc": "^1.16.0", + "grpc-gcp": "^0.1.1", + "is-stream-ended": "^0.1.4", + "lodash.at": "^4.6.0", + "lodash.has": "^4.5.2", + "protobufjs": "^6.8.8", + "retry-request": "^4.0.0", + "semver": "^6.0.0", + "walkdir": "^0.3.2" + } + }, + "google-p12-pem": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-1.0.4.tgz", + "integrity": "sha512-SwLAUJqUfTB2iS+wFfSS/G9p7bt4eWcc2LyfvmUXe7cWp6p3mpxDo6LLI29MXdU6wvPcQ/up298X7GMC5ylAlA==", + "requires": { + "node-forge": "^0.8.0", + "pify": "^4.0.0" + }, + "dependencies": { + "node-forge": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.8.3.tgz", + "integrity": "sha512-5lv9UKmvTBog+m4AWL8XpZnr3WbNKxYL2M77i903ylY/huJIooSTDHyUWQ/OppFuKQpAGMk6qNtDymSJNRIEIg==" + } + } + }, + "google-proto-files": { + "version": "0.20.0", + "resolved": "https://registry.npmjs.org/google-proto-files/-/google-proto-files-0.20.0.tgz", + "integrity": "sha512-ORU+XhOeDv/UPtnCYLkO1ItmfhRCRPR3ZoeVQ7GfVzEs7PVitPIhsYlY5ZzG8XXnsdmtK27ENurfQ1jhAWpZHg==", + "optional": true, + "requires": { + "@google-cloud/promisify": "^0.4.0", + "protobufjs": "^6.8.0", + "walkdir": "^0.3.0" + } + }, + "graceful-fs": { + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==" + }, + "grpc": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.20.3.tgz", + "integrity": "sha512-GsEsi0NVj6usS/xor8pF/xDbDiwZQR59aZl5NUZ59Sy2bdPQFZ3UePr5wevZjHboirRCIQCKRI1cCgvSWUe2ag==", + "requires": { + "lodash.camelcase": "^4.3.0", + "lodash.clone": "^4.5.0", + "nan": "^2.13.2", + "node-pre-gyp": "^0.13.0", + "protobufjs": "^5.0.3" + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "bundled": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true + }, + "aproba": { + "version": "1.2.0", + "bundled": true + }, + "are-we-there-yet": { + "version": "1.1.5", + "bundled": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" + } + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "chownr": { + "version": "1.1.1", + "bundled": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true + }, + "deep-extend": { + "version": "0.6.0", + "bundled": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true + }, + "detect-libc": { + "version": "1.0.3", + "bundled": true + }, + "fs-minipass": { + "version": "1.2.5", + "bundled": true, + "requires": { + "minipass": "^2.2.1" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true + }, + "gauge": { + "version": "2.7.4", + "bundled": 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" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true + }, + "iconv-lite": { + "version": "0.4.23", + "bundled": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ignore-walk": { + "version": "3.0.1", + "bundled": true, + "requires": { + "minimatch": "^3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true + }, + "ini": { + "version": "1.3.5", + "bundled": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "bundled": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.0", + "bundled": true + }, + "minipass": { + "version": "2.3.5", + "bundled": true, + "requires": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "minizlib": { + "version": "1.2.1", + "bundled": true, + "requires": { + "minipass": "^2.2.1" + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "requires": { + "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "bundled": true + } + } + }, + "needle": { + "version": "2.3.1", + "bundled": true, + "requires": { + "debug": "^4.1.0", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + }, + "dependencies": { + "debug": { + "version": "4.1.1", + "bundled": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.1", + "bundled": true + } + } + }, + "node-pre-gyp": { + "version": "0.13.0", + "bundled": 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, + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" + } + }, + "npm-bundled": { + "version": "1.0.6", + "bundled": true + }, + "npm-packlist": { + "version": "1.4.1", + "bundled": true, + "requires": { + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": 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 + }, + "object-assign": { + "version": "4.1.1", + "bundled": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "requires": { + "wrappy": "1" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true + }, + "osenv": { + "version": "0.1.5", + "bundled": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true + }, + "process-nextick-args": { + "version": "2.0.0", + "bundled": true + }, + "protobufjs": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.3.tgz", + "integrity": "sha512-55Kcx1MhPZX0zTbVosMQEO5R6/rikNXd9b6RQK4KSPcrSIIwoXTtebIczUrXlwaSrbz4x8XUVThGPob1n8I4QA==", + "requires": { + "ascli": "~1", + "bytebuffer": "~5", + "glob": "^7.0.5", + "yargs": "^3.10.0" + } + }, + "rc": { + "version": "1.2.8", + "bundled": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + } + }, + "readable-stream": { + "version": "2.3.6", + "bundled": 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, + "requires": { + "glob": "^7.1.3" + }, + "dependencies": { + "glob": { + "version": "7.1.3", + "bundled": 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" + } + } + } + }, + "safe-buffer": { + "version": "5.1.2", + "bundled": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true + }, + "sax": { + "version": "1.2.4", + "bundled": true + }, + "semver": { + "version": "5.7.0", + "bundled": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true + }, + "string-width": { + "version": "1.0.2", + "bundled": 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, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true + }, + "tar": { + "version": "4.4.8", + "bundled": 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 + }, + "wide-align": { + "version": "1.1.3", + "bundled": true, + "requires": { + "string-width": "^1.0.2 || 2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true + }, + "yallist": { + "version": "3.0.3", + "bundled": true + } + } + }, + "grpc-gcp": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/grpc-gcp/-/grpc-gcp-0.1.1.tgz", + "integrity": "sha512-MAt0Ae9QuL2Lbbt2d+kDta5AxqRD1JVXtBcJuQKp9GeFL5TxPw/hxIyDNyivPjKEXjbG3cBGwSE3CXq6a3KHEQ==", + "optional": true, + "requires": { + "grpc": "^1.16.0", + "protobufjs": "^6.8.8" + } + }, + "gtoken": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-2.3.3.tgz", + "integrity": "sha512-EaB49bu/TCoNeQjhCYKI/CurooBKkGxIqFHsWABW0b25fobBYVTMe84A8EBVVZhl8emiUdNypil9huMOTmyAnw==", + "requires": { + "gaxios": "^1.0.4", + "google-p12-pem": "^1.0.0", + "jws": "^3.1.5", + "mime": "^2.2.0", + "pify": "^4.0.0" + } + }, + "hash-stream-validation": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz", + "integrity": "sha1-7Mm5l7IYvluzEphii7gHhptz3NE=", + "optional": true, + "requires": { + "through2": "^2.0.0" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "optional": 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==", + "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" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "optional": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "optional": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + } + } + }, + "http-errors": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", + "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + } + }, + "http-parser-js": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.0.tgz", + "integrity": "sha512-cZdEF7r4gfRIq7ezX9J0T+kQmJNOub71dWbgAXVHDct80TKP4MCETtZQ31xyv38UwgzkWPYF/Xc0ge55dW9Z9w==" + }, + "https-proxy-agent": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz", + "integrity": "sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ==", + "requires": { + "agent-base": "^4.1.0", + "debug": "^3.1.0" + } + }, + "iconv-lite": { + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "optional": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" + }, + "ipaddr.js": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.0.tgz", + "integrity": "sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA==" + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "optional": true + }, + "is-stream-ended": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz", + "integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==", + "optional": true + }, + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "optional": true + }, + "json-bigint": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-0.3.0.tgz", + "integrity": "sha1-DM2RLEuCcNBfBW+9E4FLU9OCWx4=", + "requires": { + "bignumber.js": "^7.0.0" + } + }, + "jsonwebtoken": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-8.1.0.tgz", + "integrity": "sha1-xjl80uX9WD1lwAeoPce7eOaYK4M=", + "requires": { + "jws": "^3.1.4", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.0.0", + "xtend": "^4.0.1" + } + }, + "jwa": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz", + "integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==", + "requires": { + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "jws": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "requires": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "requires": { + "invert-kv": "^1.0.0" + } + }, + "lodash": { + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" + }, + "lodash.at": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.at/-/lodash.at-4.6.0.tgz", + "integrity": "sha1-k83OZk8KGZTqM9181A4jr9EbD/g=", + "optional": true + }, + "lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=" + }, + "lodash.clone": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clone/-/lodash.clone-4.5.0.tgz", + "integrity": "sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y=" + }, + "lodash.has": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/lodash.has/-/lodash.has-4.5.2.tgz", + "integrity": "sha1-0Z9NwQlQWMzL4rDN9O4P5Ko3yGI=", + "optional": true + }, + "lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" + }, + "lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY=" + }, + "lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha1-YZwK89A/iwTDH1iChAt3sRzWg0M=" + }, + "lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w=" + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=" + }, + "lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" + }, + "lodash.merge": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.1.tgz", + "integrity": "sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ==", + "optional": true + }, + "lodash.once": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha1-DdOXEhPHxW34gJd9UEyI+0cal6w=" + }, + "long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "requires": { + "yallist": "^3.0.2" + } + }, + "make-dir": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", + "optional": true, + "requires": { + "pify": "^3.0.0" + }, + "dependencies": { + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "optional": true + } + } + }, + "media-typer": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" + }, + "mime": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.3.tgz", + "integrity": "sha512-QgrPRJfE+riq5TPZMcHZOtm8c6K/yYrMbKIoRfapfiGLxS8OTeIfRhUGW5LU7MlRa52KOAGCfUNruqLrIBvWZw==" + }, + "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==" + }, + "mime-types": { + "version": "2.1.24", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", + "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", + "requires": { + "mime-db": "1.40.0" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "optional": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" + }, + "nan": { + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", + "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==" + }, + "negotiator": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", + "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" + }, + "node-fetch": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz", + "integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==" + }, + "node-forge": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.4.tgz", + "integrity": "sha512-8Df0906+tq/omxuCZD6PqhPaQDYuyJ1d+VITgxoIA8zvQd1ru+nMJcDChHH324MWitIgbVkAkQoGEEVJNpn/PA==" + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, + "on-finished": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", + "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", + "requires": { + "ee-first": "1.1.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz", + "integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==", + "optional": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "optjs": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/optjs/-/optjs-3.2.2.tgz", + "integrity": "sha1-aabOicRCpEQDFBrS+bNwvVu29O4=" + }, + "os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "requires": { + "lcid": "^1.0.0" + } + }, + "parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + }, + "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=" + }, + "path-to-regexp": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", + "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" + }, + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" + }, + "protobufjs": { + "version": "6.8.8", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz", + "integrity": "sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@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" + }, + "dependencies": { + "@types/node": { + "version": "10.14.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.7.tgz", + "integrity": "sha512-on4MmIDgHXiuJDELPk1NFaKVUxxCFr37tm8E9yN6rAiF5Pzp/9bBfBHkoexqRiY+hk/Z04EJU9kKEb59YqJ82A==" + } + } + }, + "proxy-addr": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.5.tgz", + "integrity": "sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ==", + "requires": { + "forwarded": "~0.1.2", + "ipaddr.js": "1.9.0" + } + }, + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "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==", + "requires": { + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" + } + }, + "qs": { + "version": "6.7.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", + "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" + }, + "range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + }, + "raw-body": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", + "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", + "requires": { + "bytes": "3.1.0", + "http-errors": "1.7.2", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "optional": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "retry-request": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-4.0.0.tgz", + "integrity": "sha512-S4HNLaWcMP6r8E4TMH52Y7/pM8uNayOcTDDQNBwsCccL1uI+Ol2TljxRDPzaNfbhOB30+XWP5NnZkB3LiJxi1w==", + "optional": true, + "requires": { + "through2": "^2.0.0" + }, + "dependencies": { + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "optional": 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==", + "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" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "optional": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "optional": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + } + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "semver": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.0.0.tgz", + "integrity": "sha512-0UewU+9rFapKFnlbirLi3byoOuhrSsli/z/ihNnvM24vgF+8sNBiI1LZPBSH9wJKUwaUbw+s3hToDLCXkrghrQ==", + "optional": true + }, + "send": { + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", + "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", + "requires": { + "debug": "2.6.9", + "depd": "~1.1.2", + "destroy": "~1.0.4", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "~1.7.2", + "mime": "1.6.0", + "ms": "2.1.1", + "on-finished": "~2.3.0", + "range-parser": "~1.2.1", + "statuses": "~1.5.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + } + } + }, + "serve-static": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", + "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.17.1" + } + }, + "setprototypeof": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", + "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "optional": true + }, + "snakeize": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/snakeize/-/snakeize-0.1.0.tgz", + "integrity": "sha1-EMCI2LWOsHazIpu1oE4jLOEmQi0=", + "optional": true + }, + "split-array-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/split-array-stream/-/split-array-stream-2.0.0.tgz", + "integrity": "sha512-hmMswlVY91WvGMxs0k8MRgq8zb2mSen4FmDNc5AFiTWtrBpdZN6nwD6kROVe4vNL+ywrvbCKsWVCnEd4riELIg==", + "optional": true, + "requires": { + "is-stream-ended": "^0.1.4" + } + }, + "statuses": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", + "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" + }, + "stream-events": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/stream-events/-/stream-events-1.0.5.tgz", + "integrity": "sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg==", + "requires": { + "stubs": "^3.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=" + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "optional": true + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "stubs": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/stubs/-/stubs-3.0.0.tgz", + "integrity": "sha1-6NK6H6nJBXAwPAMLaQD31fiavls=" + }, + "teeny-request": { + "version": "3.11.3", + "resolved": "https://registry.npmjs.org/teeny-request/-/teeny-request-3.11.3.tgz", + "integrity": "sha512-CKncqSF7sH6p4rzCgkb/z/Pcos5efl0DmolzvlqRQUNcpRIruOhY9+T1FsIlyEbfWd7MsFpodROOwHYh2BaXzw==", + "requires": { + "https-proxy-agent": "^2.2.1", + "node-fetch": "^2.2.0", + "uuid": "^3.3.2" + } + }, + "through2": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz", + "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", + "optional": true, + "requires": { + "readable-stream": "2 || 3" + }, + "dependencies": { + "readable-stream": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.3.0.tgz", + "integrity": "sha512-EsI+s3k3XsW+fU8fQACLN59ky34AZ14LoeVZpYwmZvldCFo0r0gnelwF2TcMjLor/BTL5aDJVBMkss0dthToPw==", + "optional": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "string_decoder": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz", + "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==", + "optional": true, + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "toidentifier": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" + }, + "tslib": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.3.tgz", + "integrity": "sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==" + }, + "type-is": { + "version": "1.6.18", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "optional": true + }, + "unique-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", + "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", + "optional": true, + "requires": { + "crypto-random-string": "^1.0.0" + } + }, + "unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "utils-merge": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" + }, + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + }, + "vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" + }, + "walkdir": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/walkdir/-/walkdir-0.3.2.tgz", + "integrity": "sha512-0Twghia4Z5wDGDYWURlhZmI47GvERMCsXIu0QZWVVZyW9ZjpbbZvD9Zy9M6cWiQQRRbAcYajIyKNavaZZDt1Uw==" + }, + "websocket-driver": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz", + "integrity": "sha1-DK+dLXVdk67gSdS90NP+LMoqJOs=", + "requires": { + "http-parser-js": ">=0.4.0", + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.3.tgz", + "integrity": "sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg==" + }, + "window-size": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", + "integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=" + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "write-file-atomic": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.2.tgz", + "integrity": "sha512-s0b6vB3xIVRLWywa6X9TOMA7k9zio0TMOsl9ZnDkliA/cfJlpHXAscj0gbHVJiTdIuAYpIyqS5GW91fqm6gG5g==", + "optional": true, + "requires": { + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" + } + }, + "xdg-basedir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", + "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=" + }, + "xmlhttprequest": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", + "integrity": "sha1-Z/4HXFwk/vOfnWX197f+dRcZaPw=" + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=" + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" + }, + "yallist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", + "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==" + }, + "yargs": { + "version": "3.32.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", + "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", + "requires": { + "camelcase": "^2.0.1", + "cliui": "^3.0.3", + "decamelize": "^1.1.1", + "os-locale": "^1.4.0", + "string-width": "^1.0.1", + "window-size": "^0.1.4", + "y18n": "^3.2.0" + } + } + } +} diff --git a/functions/package.json b/functions/package.json new file mode 100644 index 0000000..2d63890 --- /dev/null +++ b/functions/package.json @@ -0,0 +1,25 @@ +{ + "name": "functions", + "description": "Cloud Functions for Firebase", + "scripts": { + "serve": "firebase serve --only functions", + "shell": "firebase functions:shell", + "start": "npm run shell", + "deploy": "firebase deploy --only functions", + "logs": "firebase functions:log" + }, + "engines": { + "node": "8" + }, + "dependencies": { + "cors": "^2.8.5", + "express": "^4.17.0", + "firebase-admin": "~7.0.0", + "firebase-functions": "^2.3.0", + "stripe": "^7.0.0" + }, + "devDependencies": { + "firebase-functions-test": "^0.1.6" + }, + "private": true +} diff --git a/functions/yarn.lock b/functions/yarn.lock new file mode 100644 index 0000000..945696d --- /dev/null +++ b/functions/yarn.lock @@ -0,0 +1,1984 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@firebase/app-types@0.3.10": + version "0.3.10" + resolved "https://registry.yarnpkg.com/@firebase/app-types/-/app-types-0.3.10.tgz#8f6d24d80bf833622b53ed26eaa04cfa9dd0f2f3" + integrity sha512-l+5BJtSQopalBXiY/YuSaB9KF9PnDj37FLV0Sx3qJjh5B3IthCuZbPc1Vpbbbee/QZgudl0G212BBsUMGHP+fQ== + +"@firebase/app@^0.3.4": + version "0.3.17" + resolved "https://registry.yarnpkg.com/@firebase/app/-/app-0.3.17.tgz#491dc3bc1a2837bbb4869161cc9852cfc04da891" + integrity sha512-/8lDeeIxgdCIMffrfBPQ3bcdSkF8bx4KCp8pKMPOG/HYKoeM8I9eP4zlzxL5ABzRjvcdhK9KOYOn0jRrNrGD9g== + dependencies: + "@firebase/app-types" "0.3.10" + "@firebase/util" "0.2.14" + dom-storage "2.1.0" + tslib "1.9.3" + xmlhttprequest "1.8.0" + +"@firebase/database-types@0.3.11": + version "0.3.11" + resolved "https://registry.yarnpkg.com/@firebase/database-types/-/database-types-0.3.11.tgz#6bfcaca8e14e7d6bb67d723f0c2d7febbeefa054" + integrity sha512-iRAZzs7Zlmmvh7r0XlR1MAO6I6bm1HjW9m1ytfJ6E/8+zItHnbVH4iiVVkC39r1wMGrtPMz8FiIUWoaasPF5dA== + +"@firebase/database@^0.3.6": + version "0.3.20" + resolved "https://registry.yarnpkg.com/@firebase/database/-/database-0.3.20.tgz#6851d8ef3229aeb7bcbe5e851434672abae43ee4" + integrity sha512-fZHRIlRQlND/UrzI1beUTRKfktjMvMEiUOar6ylFZqOj2KNVO4CrF95UGqRl0HBGhZzlBKzaDYAcJze2D6C4+Q== + dependencies: + "@firebase/database-types" "0.3.11" + "@firebase/logger" "0.1.13" + "@firebase/util" "0.2.14" + faye-websocket "0.11.1" + tslib "1.9.3" + +"@firebase/logger@0.1.13": + version "0.1.13" + resolved "https://registry.yarnpkg.com/@firebase/logger/-/logger-0.1.13.tgz#8e4847a0d5b77cedd8dcf4c6a8e4b98de7297e6b" + integrity sha512-wIbLwQ2oJCkvHIE7J3FDxpScKY84fSctEEjOi0PB+Yn2dN8AwqtM7YF8rtcY8cxntv8dyR+i7GNg1Nd89cGxkA== + +"@firebase/util@0.2.14": + version "0.2.14" + resolved "https://registry.yarnpkg.com/@firebase/util/-/util-0.2.14.tgz#c22911407453436d0f472c8d408791a6bd5feb9c" + integrity sha512-2ke1Lra0R5T+5ucCMWft/IB2rI/IzumHHYm9aqrM9lJ3XURiWmBHAYrvaPVP7///gDhJAo+NNDUCAJH/Y4PmvA== + dependencies: + tslib "1.9.3" + +"@google-cloud/common@^0.32.0": + version "0.32.1" + resolved "https://registry.yarnpkg.com/@google-cloud/common/-/common-0.32.1.tgz#6a32c340172cea3db6674d0e0e34e78740a0073f" + integrity sha512-bLdPzFvvBMtVkwsoBtygE9oUm3yrNmPa71gvOgucYI/GqvNP2tb6RYsDHPq98kvignhcgHGDI5wyNgxaCo8bKQ== + dependencies: + "@google-cloud/projectify" "^0.3.3" + "@google-cloud/promisify" "^0.4.0" + "@types/request" "^2.48.1" + arrify "^2.0.0" + duplexify "^3.6.0" + ent "^2.2.0" + extend "^3.0.2" + google-auth-library "^3.1.1" + pify "^4.0.1" + retry-request "^4.0.0" + teeny-request "^3.11.3" + +"@google-cloud/firestore@^1.0.1": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@google-cloud/firestore/-/firestore-1.3.0.tgz#193c4a3a1021c1b44c7f9a06f5e0bd49485f566a" + integrity sha512-KUKcHUU+FwwBmJH1LqJcd+XtLPzMcS/Vni6/WCJGHBGrOBmXCey4i3Gc41ZsuSk1Qx4msH5f+4h0b3t6YLyydg== + dependencies: + bun "^0.0.12" + deep-equal "^1.0.1" + functional-red-black-tree "^1.0.1" + google-gax "^0.25.0" + lodash.merge "^4.6.1" + through2 "^3.0.0" + +"@google-cloud/paginator@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@google-cloud/paginator/-/paginator-0.2.0.tgz#eab2e6aa4b81df7418f6c51e2071f64dab2c2fa5" + integrity sha512-2ZSARojHDhkLvQ+CS32K+iUhBsWg3AEw+uxtqblA7xoCABDyhpj99FPp35xy6A+XlzMhOSrHHaxFE+t6ZTQq0w== + dependencies: + arrify "^1.0.1" + extend "^3.0.1" + split-array-stream "^2.0.0" + stream-events "^1.0.4" + +"@google-cloud/projectify@^0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@google-cloud/projectify/-/projectify-0.3.3.tgz#bde9103d50b20a3ea3337df8c6783a766e70d41d" + integrity sha512-7522YHQ4IhaafgSunsFF15nG0TGVmxgXidy9cITMe+256RgqfcrfWphiMufW+Ou4kqagW/u3yxwbzVEW3dk2Uw== + +"@google-cloud/promisify@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@google-cloud/promisify/-/promisify-0.4.0.tgz#4fbfcf4d85bb6a2e4ccf05aa63d2b10d6c9aad9b" + integrity sha512-4yAHDC52TEMCNcMzVC8WlqnKKKq+Ssi2lXoUg9zWWkZ6U6tq9ZBRYLHHCRdfU+EU9YJsVmivwGcKYCjRGjnf4Q== + +"@google-cloud/storage@^2.3.0": + version "2.5.0" + resolved "https://registry.yarnpkg.com/@google-cloud/storage/-/storage-2.5.0.tgz#9dd3566d8155cf5ba0c212208f69f9ecd47fbd7e" + integrity sha512-q1mwB6RUebIahbA3eriRs8DbG2Ij81Ynb9k8hMqTPkmbd8/S6Z0d6hVvfPmnyvX9Ej13IcmEYIbymuq/RBLghA== + dependencies: + "@google-cloud/common" "^0.32.0" + "@google-cloud/paginator" "^0.2.0" + "@google-cloud/promisify" "^0.4.0" + arrify "^1.0.0" + async "^2.0.1" + compressible "^2.0.12" + concat-stream "^2.0.0" + date-and-time "^0.6.3" + duplexify "^3.5.0" + extend "^3.0.0" + gcs-resumable-upload "^1.0.0" + hash-stream-validation "^0.2.1" + mime "^2.2.0" + mime-types "^2.0.8" + onetime "^5.1.0" + pumpify "^1.5.1" + snakeize "^0.1.0" + stream-events "^1.0.1" + teeny-request "^3.11.3" + through2 "^3.0.0" + xdg-basedir "^3.0.0" + +"@grpc/grpc-js@^0.3.0": + version "0.3.6" + resolved "https://registry.yarnpkg.com/@grpc/grpc-js/-/grpc-js-0.3.6.tgz#d9b52043907170d38e06711d9477fde29ab46fa8" + integrity sha512-SmLNuPGlUur64bNS9aHZguqWDVQ8+Df1CGn+xsh7l6T2wiP5ArOMlywZ3TZo6z/rwKtGQgUJY9ZrPYUmHEXd/Q== + dependencies: + semver "^5.5.0" + +"@grpc/proto-loader@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@grpc/proto-loader/-/proto-loader-0.4.0.tgz#a823a51eb2fde58369bef1deb5445fd808d70901" + integrity sha512-Jm6o+75uWT7E6+lt8edg4J1F/9+BedOjaMgwE14pxS/AO43/0ZqK+rCLVVrXLoExwSAZvgvOD2B0ivy3Spsspw== + dependencies: + lodash.camelcase "^4.3.0" + protobufjs "^6.8.6" + +"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" + integrity sha1-m4sMxmPWaafY9vXQiToU00jzD78= + +"@protobufjs/base64@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735" + integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg== + +"@protobufjs/codegen@^2.0.4": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb" + integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg== + +"@protobufjs/eventemitter@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70" + integrity sha1-NVy8mLr61ZePntCV85diHx0Ga3A= + +"@protobufjs/fetch@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45" + integrity sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU= + dependencies: + "@protobufjs/aspromise" "^1.1.1" + "@protobufjs/inquire" "^1.1.0" + +"@protobufjs/float@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1" + integrity sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E= + +"@protobufjs/inquire@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089" + integrity sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik= + +"@protobufjs/path@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d" + integrity sha1-bMKyDFya1q0NzP0hynZz2Nf79o0= + +"@protobufjs/pool@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54" + integrity sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q= + +"@protobufjs/utf8@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" + integrity sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA= + +"@types/body-parser@*": + version "1.17.0" + resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.17.0.tgz#9f5c9d9bd04bb54be32d5eb9fc0d8c974e6cf58c" + integrity sha512-a2+YeUjPkztKJu5aIF2yArYFQQp8d51wZ7DavSHjFuY1mqVgidGyzEQ41JIVNy82fXj8yPgy2vJmfIywgESW6w== + dependencies: + "@types/connect" "*" + "@types/node" "*" + +"@types/caseless@*": + version "0.12.2" + resolved "https://registry.yarnpkg.com/@types/caseless/-/caseless-0.12.2.tgz#f65d3d6389e01eeb458bd54dc8f52b95a9463bc8" + integrity sha512-6ckxMjBBD8URvjB6J3NcnuAn5Pkl7t3TizAg+xdlzzQGSPSmBcXf8KoIH0ua/i+tio+ZRUHEXp0HEmvaR4kt0w== + +"@types/connect@*": + version "3.4.32" + resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.32.tgz#aa0e9616b9435ccad02bc52b5b454ffc2c70ba28" + integrity sha512-4r8qa0quOvh7lGD0pre62CAb1oni1OO6ecJLGCezTmhQ8Fz50Arx9RUszryR8KlgK6avuSXvviL6yWyViQABOg== + dependencies: + "@types/node" "*" + +"@types/cors@^2.8.1": + version "2.8.5" + resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.5.tgz#c0c54c4e643e1d943d447292f2baf9dc82cfc8ec" + integrity sha512-GmK8AKu8i+s+EChK/uZ5IbrXPcPaQKWaNSGevDT/7o3gFObwSUQwqb1jMqxuo+YPvj0ckGzINI+EO7EHcmJjKg== + dependencies: + "@types/express" "*" + +"@types/express-serve-static-core@*": + version "4.16.4" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.16.4.tgz#56bb8be4559401d68af4a3624ae9dd3166103e60" + integrity sha512-x/8h6FHm14rPWnW2HP5likD/rsqJ3t/77OWx2PLxym0hXbeBWQmcPyHmwX+CtCQpjIfgrUdEoDFcLPwPZWiqzQ== + dependencies: + "@types/node" "*" + "@types/range-parser" "*" + +"@types/express@*", "@types/express@^4.11.1": + version "4.16.1" + resolved "https://registry.yarnpkg.com/@types/express/-/express-4.16.1.tgz#d756bd1a85c34d87eaf44c888bad27ba8a4b7cf0" + integrity sha512-V0clmJow23WeyblmACoxbHBu2JKlE5TiIme6Lem14FnPW9gsttyHtk6wq7njcdIWH1njAaFgR8gW09lgY98gQg== + dependencies: + "@types/body-parser" "*" + "@types/express-serve-static-core" "*" + "@types/serve-static" "*" + +"@types/form-data@*": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@types/form-data/-/form-data-2.2.1.tgz#ee2b3b8eaa11c0938289953606b745b738c54b1e" + integrity sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ== + dependencies: + "@types/node" "*" + +"@types/jsonwebtoken@^7.2.6": + version "7.2.8" + resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-7.2.8.tgz#8d199dab4ddb5bba3234f8311b804d2027af2b3a" + integrity sha512-XENN3YzEB8D6TiUww0O8SRznzy1v+77lH7UmuN54xq/IHIsyWjWOzZuFFTtoiRuaE782uAoRwBe/wwow+vQXZw== + dependencies: + "@types/node" "*" + +"@types/lodash@^4.14.104", "@types/lodash@^4.14.34": + version "4.14.129" + resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.129.tgz#9aaca391db126802482655c48dd79a814488202f" + integrity sha512-oYaV0eSlnOacOr7i4X1FFdH8ttSlb57gu3I9MuStIv2CYkISEY84dNHYsC3bF6sNH7qYcu1BtVrCtQ8Q4KPTfQ== + +"@types/long@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@types/long/-/long-4.0.0.tgz#719551d2352d301ac8b81db732acb6bdc28dbdef" + integrity sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q== + +"@types/mime@*": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.1.tgz#dc488842312a7f075149312905b5e3c0b054c79d" + integrity sha512-FwI9gX75FgVBJ7ywgnq/P7tw+/o1GUbtP0KzbtusLigAOgIgNISRK0ZPl4qertvXSIE8YbsVJueQ90cDt9YYyw== + +"@types/node@*": + version "12.0.2" + resolved "https://registry.yarnpkg.com/@types/node/-/node-12.0.2.tgz#3452a24edf9fea138b48fad4a0a028a683da1e40" + integrity sha512-5tabW/i+9mhrfEOUcLDu2xBPsHJ+X5Orqy9FKpale3SjDA17j5AEpYq5vfy3oAeAHGcvANRCO3NV3d2D6q3NiA== + +"@types/node@^10.1.0": + version "10.14.7" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.14.7.tgz#1854f0a9aa8d2cd6818d607b3d091346c6730362" + integrity sha512-on4MmIDgHXiuJDELPk1NFaKVUxxCFr37tm8E9yN6rAiF5Pzp/9bBfBHkoexqRiY+hk/Z04EJU9kKEb59YqJ82A== + +"@types/node@^8.0.53": + version "8.10.48" + resolved "https://registry.yarnpkg.com/@types/node/-/node-8.10.48.tgz#e385073561643a9ba6199a1985ffc03530f90781" + integrity sha512-c35YEBTkL4rzXY2ucpSKy+UYHjUBIIkuJbWYbsGIrKLEWU5dgJMmLkkIb3qeC3O3Tpb1ZQCwecscvJTDjDjkRw== + +"@types/range-parser@*": + version "1.2.3" + resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.3.tgz#7ee330ba7caafb98090bece86a5ee44115904c2c" + integrity sha512-ewFXqrQHlFsgc09MK5jP5iR7vumV/BYayNC6PgJO2LPe8vrnNFyjQjSppfEngITi0qvfKtzFvgKymGheFM9UOA== + +"@types/request@^2.48.1": + version "2.48.1" + resolved "https://registry.yarnpkg.com/@types/request/-/request-2.48.1.tgz#e402d691aa6670fbbff1957b15f1270230ab42fa" + integrity sha512-ZgEZ1TiD+KGA9LiAAPPJL68Id2UWfeSO62ijSXZjFJArVV+2pKcsVHmrcu+1oiE3q6eDGiFiSolRc4JHoerBBg== + dependencies: + "@types/caseless" "*" + "@types/form-data" "*" + "@types/node" "*" + "@types/tough-cookie" "*" + +"@types/serve-static@*": + version "1.13.2" + resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.2.tgz#f5ac4d7a6420a99a6a45af4719f4dcd8cd907a48" + integrity sha512-/BZ4QRLpH/bNYgZgwhKEh+5AsboDBcUdlBYgzoLX0fpj3Y2gp6EApyOlM3bK53wQS/OE1SrdSYBAbux2D1528Q== + dependencies: + "@types/express-serve-static-core" "*" + "@types/mime" "*" + +"@types/tough-cookie@*": + version "2.3.5" + resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-2.3.5.tgz#9da44ed75571999b65c37b60c9b2b88db54c585d" + integrity sha512-SCcK7mvGi3+ZNz833RRjFIxrn4gI1PPR3NtuIS+6vMkvmsGjosqTJwRt5bAEFLRz+wtJMWv8+uOnZf2hi2QXTg== + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +abort-controller@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-2.0.3.tgz#b174827a732efadff81227ed4b8d1cc569baf20a" + integrity sha512-EPSq5wr2aFyAZ1PejJB32IX9Qd4Nwus+adnp7STYFM5/23nLPBazqZ1oor6ZqbH+4otaaGXTlC8RN5hq3C8w9Q== + dependencies: + event-target-shim "^5.0.0" + +abort-controller@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" + integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg== + dependencies: + event-target-shim "^5.0.0" + +accepts@~1.3.7: + version "1.3.7" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" + integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA== + dependencies: + mime-types "~2.1.24" + negotiator "0.6.2" + +agent-base@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.2.1.tgz#d89e5999f797875674c07d87f260fc41e83e8ca9" + integrity sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg== + dependencies: + es6-promisify "^5.0.0" + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= + +ansi-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" + integrity sha1-7QMXwyIGT3lGbAKWa922Bas32Zg= + +aproba@^1.0.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" + integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== + +are-we-there-yet@~1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" + integrity sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w== + dependencies: + delegates "^1.0.0" + readable-stream "^2.0.6" + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= + +arrify@^1.0.0, arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= + +arrify@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-2.0.1.tgz#c9655e9331e0abcd588d2a7cad7e9956f66701fa" + integrity sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug== + +ascli@~1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/ascli/-/ascli-1.0.1.tgz#bcfa5974a62f18e81cabaeb49732ab4a88f906bc" + integrity sha1-vPpZdKYvGOgcq660lzKrSoj5Brw= + dependencies: + colour "~0.7.1" + optjs "~3.2.2" + +async@^2.0.1: + version "2.6.2" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.2.tgz#18330ea7e6e313887f5d2f2a904bac6fe4dd5381" + integrity sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg== + dependencies: + lodash "^4.17.11" + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + +base64-js@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.0.tgz#cab1e6118f051095e58b5281aea8c1cd22bfc0e3" + integrity sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw== + +bignumber.js@^7.0.0: + version "7.2.1" + resolved "https://registry.yarnpkg.com/bignumber.js/-/bignumber.js-7.2.1.tgz#80c048759d826800807c4bfd521e50edbba57a5f" + integrity sha512-S4XzBk5sMB+Rcb/LNcpzXr57VRTxgAvaAEDAl1AwRx27j00hT84O6OkteE7u8UB3NuaaygCRrEpqox4uDOrbdQ== + +body-parser@1.19.0: + version "1.19.0" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" + integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== + dependencies: + bytes "3.1.0" + content-type "~1.0.4" + debug "2.6.9" + depd "~1.1.2" + http-errors "1.7.2" + iconv-lite "0.4.24" + on-finished "~2.3.0" + qs "6.7.0" + raw-body "2.4.0" + type-is "~1.6.17" + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +buffer-equal-constant-time@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" + integrity sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk= + +buffer-from@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" + integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== + +bun@^0.0.12: + version "0.0.12" + resolved "https://registry.yarnpkg.com/bun/-/bun-0.0.12.tgz#d54fae69f895557f275423bc14b404030b20a5fc" + integrity sha512-Toms18J9DqnT+IfWkwxVTB2EaBprHvjlMWrTIsfX4xbu3ZBqVBwrERU0em1IgtRe04wT+wJxMlKHZok24hrcSQ== + dependencies: + readable-stream "~1.0.32" + +bytebuffer@~5: + version "5.0.1" + resolved "https://registry.yarnpkg.com/bytebuffer/-/bytebuffer-5.0.1.tgz#582eea4b1a873b6d020a48d58df85f0bba6cfddd" + integrity sha1-WC7qSxqHO20CCkjVjfhfC7ps/d0= + dependencies: + long "~3" + +bytes@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" + integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== + +camelcase@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-2.1.1.tgz#7c1d16d679a1bbe59ca02cacecfb011e201f5a1f" + integrity sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8= + +chownr@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.1.tgz#54726b8b8fff4df053c42187e801fb4412df1494" + integrity sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g== + +cliui@^3.0.3: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" + integrity sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0= + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrap-ansi "^2.0.0" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= + +colour@~0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/colour/-/colour-0.7.1.tgz#9cb169917ec5d12c0736d3e8685746df1cadf778" + integrity sha1-nLFpkX7F0SwHNtPoaFdG3xyt93g= + +compressible@^2.0.12: + version "2.0.17" + resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.17.tgz#6e8c108a16ad58384a977f3a482ca20bff2f38c1" + integrity sha512-BGHeLCK1GV7j1bSmQQAi26X+GgWcTjLr/0tzSvMCl3LH1w1IJ4PFSPoV5316b30cneTziC+B1a+3OjoSUcQYmw== + dependencies: + mime-db ">= 1.40.0 < 2" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +concat-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-2.0.0.tgz#414cf5af790a48c60ab9be4527d56d5e41133cb1" + integrity sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A== + dependencies: + buffer-from "^1.0.0" + inherits "^2.0.3" + readable-stream "^3.0.2" + typedarray "^0.0.6" + +configstore@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/configstore/-/configstore-4.0.0.tgz#5933311e95d3687efb592c528b922d9262d227e7" + integrity sha512-CmquAXFBocrzaSM8mtGPMM/HiWmyIpr4CcJl/rgY2uCObZ/S7cKU0silxslqJejl+t/T9HS8E0PUNQD81JGUEQ== + dependencies: + dot-prop "^4.1.0" + graceful-fs "^4.1.2" + make-dir "^1.0.0" + unique-string "^1.0.0" + write-file-atomic "^2.0.0" + xdg-basedir "^3.0.0" + +console-control-strings@^1.0.0, console-control-strings@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= + +content-disposition@0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" + integrity sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g== + dependencies: + safe-buffer "5.1.2" + +content-type@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" + integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= + +cookie@0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" + integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== + +core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + +cors@^2.8.4, cors@^2.8.5: + version "2.8.5" + resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.5.tgz#eac11da51592dd86b9f06f6e7ac293b3df875d29" + integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== + dependencies: + object-assign "^4" + vary "^1" + +crypto-random-string@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-1.0.0.tgz#a230f64f568310e1498009940790ec99545bca7e" + integrity sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4= + +date-and-time@^0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/date-and-time/-/date-and-time-0.6.3.tgz#2daee52df67c28bd93bce862756ac86b68cf4237" + integrity sha512-lcWy3AXDRJOD7MplwZMmNSRM//kZtJaLz4n6D1P5z9wEmZGBKhJRBIr1Xs9KNQJmdXPblvgffynYji4iylUTcA== + +debug@2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@^3.1.0, debug@^3.2.6: + version "3.2.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" + integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== + dependencies: + ms "^2.1.1" + +decamelize@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +deep-equal@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" + integrity sha1-9dJgKStmDghO/0zbyfCK0yR0SLU= + +deep-extend@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" + integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== + +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + integrity sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o= + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= + +destroy@~1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" + integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= + +detect-libc@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" + integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= + +dom-storage@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/dom-storage/-/dom-storage-2.1.0.tgz#00fb868bc9201357ea243c7bcfd3304c1e34ea39" + integrity sha512-g6RpyWXzl0RR6OTElHKBl7nwnK87GUyZMYC7JWsB/IA73vpqK2K6LT39x4VepLxlSsWBFrPVLnsSR5Jyty0+2Q== + +dot-prop@^4.1.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.0.tgz#1f19e0c2e1aa0e32797c49799f2837ac6af69c57" + integrity sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ== + dependencies: + is-obj "^1.0.0" + +duplexify@^3.5.0, duplexify@^3.6.0: + version "3.7.1" + resolved "https://registry.yarnpkg.com/duplexify/-/duplexify-3.7.1.tgz#2a4df5317f6ccfd91f86d6fd25d8d8a103b88309" + integrity sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g== + dependencies: + end-of-stream "^1.0.0" + inherits "^2.0.1" + readable-stream "^2.0.0" + stream-shift "^1.0.0" + +ecdsa-sig-formatter@1.0.11: + version "1.0.11" + resolved "https://registry.yarnpkg.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz#ae0f0fa2d85045ef14a817daa3ce9acd0489e5bf" + integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== + dependencies: + safe-buffer "^5.0.1" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= + +end-of-stream@^1.0.0, end-of-stream@^1.1.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" + integrity sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q== + dependencies: + once "^1.4.0" + +ent@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d" + integrity sha1-6WQhkyWiHQX0RGai9obtbOX13R0= + +es6-promise@^4.0.3: + version "4.2.6" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.6.tgz#b685edd8258886365ea62b57d30de28fadcd974f" + integrity sha512-aRVgGdnmW2OiySVPUC9e6m+plolMAJKjZnQlCwNSuK5yQ0JN61DZSO1X1Ufd1foqWRAlig0rhduTCHe7sVtK5Q== + +es6-promisify@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" + integrity sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM= + dependencies: + es6-promise "^4.0.3" + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= + +event-target-shim@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789" + integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ== + +express@^4.16.2, express@^4.17.0: + version "4.17.0" + resolved "https://registry.yarnpkg.com/express/-/express-4.17.0.tgz#288af62228a73f4c8ea2990ba3b791bb87cd4438" + integrity sha512-1Z7/t3Z5ZnBG252gKUPyItc4xdeaA0X934ca2ewckAsVsw9EG71i++ZHZPYnus8g/s5Bty8IMpSVEuRkmwwPRQ== + dependencies: + accepts "~1.3.7" + array-flatten "1.1.1" + body-parser "1.19.0" + content-disposition "0.5.3" + content-type "~1.0.4" + cookie "0.4.0" + cookie-signature "1.0.6" + debug "2.6.9" + depd "~1.1.2" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "~1.1.2" + fresh "0.5.2" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "~2.3.0" + parseurl "~1.3.3" + path-to-regexp "0.1.7" + proxy-addr "~2.0.5" + qs "6.7.0" + range-parser "~1.2.1" + safe-buffer "5.1.2" + send "0.17.1" + serve-static "1.14.1" + setprototypeof "1.1.1" + statuses "~1.5.0" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +extend@^3.0.0, extend@^3.0.1, extend@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +fast-text-encoding@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fast-text-encoding/-/fast-text-encoding-1.0.0.tgz#3e5ce8293409cfaa7177a71b9ca84e1b1e6f25ef" + integrity sha512-R9bHCvweUxxwkDwhjav5vxpFvdPGlVngtqmx4pIZfSUhM/Q4NiIUHB456BAf+Q1Nwu3HEZYONtu+Rya+af4jiQ== + +faye-websocket@0.11.1: + version "0.11.1" + resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.1.tgz#f0efe18c4f56e4f40afc7e06c719fd5ee6188f38" + integrity sha1-8O/hjE9W5PQK/H4Gxxn9XuYYjzg= + dependencies: + websocket-driver ">=0.5.1" + +finalhandler@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" + integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.3" + statuses "~1.5.0" + unpipe "~1.0.0" + +firebase-admin@~7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/firebase-admin/-/firebase-admin-7.0.0.tgz#0075c650f3bf7f009eb320477683a011074765dc" + integrity sha512-uYJVRuq8/b9PeJrgZwE2OIfr/MQAVhWxUpOa4AnWEEjzM7hzw2CQjY2iFzH6o0/7rTyAiGeFPQQQLBMg/xuQ6w== + dependencies: + "@firebase/app" "^0.3.4" + "@firebase/database" "^0.3.6" + "@types/node" "^8.0.53" + jsonwebtoken "8.1.0" + node-forge "0.7.4" + optionalDependencies: + "@google-cloud/firestore" "^1.0.1" + "@google-cloud/storage" "^2.3.0" + +firebase-functions-test@^0.1.6: + version "0.1.6" + resolved "https://registry.yarnpkg.com/firebase-functions-test/-/firebase-functions-test-0.1.6.tgz#4c880e927c87fad32d5c6377e17b2cab9eda10bf" + integrity sha512-sITLbQunI75gL690qFOq4mqxUEcdETEbY4HcLFawWVJC3PmlSFt81mhfZjJe45GJTt1+7xeowaHQx3jpnoPNpA== + dependencies: + "@types/lodash" "^4.14.104" + lodash "^4.17.5" + +firebase-functions@^2.3.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/firebase-functions/-/firebase-functions-2.3.1.tgz#6ad741cb5f38f4ed1a679607ffdbec68fa11127f" + integrity sha512-MPeuzGFLS63VqfGErgf+kbZinXE4SoK+jxXh1NBWrjYUjXlOJBKRmVNAFJoQB8wzCvOtBuDYjGcnBNz6sKXsfw== + dependencies: + "@types/cors" "^2.8.1" + "@types/express" "^4.11.1" + "@types/jsonwebtoken" "^7.2.6" + "@types/lodash" "^4.14.34" + cors "^2.8.4" + express "^4.16.2" + jsonwebtoken "^8.2.1" + lodash "^4.6.1" + +forwarded@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" + integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= + +fs-minipass@^1.2.5: + version "1.2.6" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-1.2.6.tgz#2c5cc30ded81282bfe8a0d7c7c1853ddeb102c07" + integrity sha512-crhvyXcMejjv3Z5d2Fa9sf5xLYVCF5O1c71QxbVnbLsmYMBEvDAftewesN/HhY03YRoA7zOMxjNGrF5svGaaeQ== + dependencies: + minipass "^2.2.1" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + +gauge@~2.7.3: + version "2.7.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" + integrity sha1-LANAXHU4w51+s3sxcCLjJfsBi/c= + dependencies: + 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" + +gaxios@^1.0.2, gaxios@^1.0.4, gaxios@^1.2.1, gaxios@^1.5.0: + version "1.8.4" + resolved "https://registry.yarnpkg.com/gaxios/-/gaxios-1.8.4.tgz#e08c34fe93c0a9b67a52b7b9e7a64e6435f9a339" + integrity sha512-BoENMnu1Gav18HcpV9IleMPZ9exM+AvUjrAOV4Mzs/vfz2Lu/ABv451iEXByKiMPn2M140uul1txXCg83sAENw== + dependencies: + abort-controller "^3.0.0" + extend "^3.0.2" + https-proxy-agent "^2.2.1" + node-fetch "^2.3.0" + +gcp-metadata@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/gcp-metadata/-/gcp-metadata-1.0.0.tgz#5212440229fa099fc2f7c2a5cdcb95575e9b2ca6" + integrity sha512-Q6HrgfrCQeEircnNP3rCcEgiDv7eF9+1B+1MMgpE190+/+0mjQR8PxeOaRgxZWmdDAF9EIryHB9g1moPiw1SbQ== + dependencies: + gaxios "^1.0.2" + json-bigint "^0.3.0" + +gcs-resumable-upload@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/gcs-resumable-upload/-/gcs-resumable-upload-1.1.0.tgz#2b06f5876dcf60f18a309343f79ed951aff01399" + integrity sha512-uBz7uHqp44xjSDzG3kLbOYZDjxxR/UAGbB47A0cC907W6yd2LkcyFDTHg+bjivkHMwiJlKv4guVWcjPCk2zScg== + dependencies: + abort-controller "^2.0.2" + configstore "^4.0.0" + gaxios "^1.5.0" + google-auth-library "^3.0.0" + pumpify "^1.5.1" + stream-events "^1.0.4" + +glob@^7.0.5, glob@^7.1.3: + version "7.1.4" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" + integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== + dependencies: + 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" + +google-auth-library@^3.0.0, google-auth-library@^3.1.1: + version "3.1.2" + resolved "https://registry.yarnpkg.com/google-auth-library/-/google-auth-library-3.1.2.tgz#ff2f88cd5cd2118a57bd3d5ad3c093c8837fc350" + integrity sha512-cDQMzTotwyWMrg5jRO7q0A4TL/3GWBgO7I7q5xGKNiiFf9SmGY/OJ1YsLMgI2MVHHsEGyrqYnbnmV1AE+Z6DnQ== + dependencies: + base64-js "^1.3.0" + fast-text-encoding "^1.0.0" + gaxios "^1.2.1" + gcp-metadata "^1.0.0" + gtoken "^2.3.2" + https-proxy-agent "^2.2.1" + jws "^3.1.5" + lru-cache "^5.0.0" + semver "^5.5.0" + +google-gax@^0.25.0: + version "0.25.6" + resolved "https://registry.yarnpkg.com/google-gax/-/google-gax-0.25.6.tgz#5ea5c743933ba957da63951bc828aef91fb69340" + integrity sha512-+CVtOSLQt42mwVvJJirhBiAvWsp8zKeb9zW5Wy3wyvb3VG9OugHzZpwvYO9D4yNPPspe7L9CpIs80I5nUJlS8w== + dependencies: + "@grpc/grpc-js" "^0.3.0" + "@grpc/proto-loader" "^0.4.0" + duplexify "^3.6.0" + google-auth-library "^3.0.0" + google-proto-files "^0.20.0" + grpc "^1.16.0" + grpc-gcp "^0.1.1" + is-stream-ended "^0.1.4" + lodash.at "^4.6.0" + lodash.has "^4.5.2" + protobufjs "^6.8.8" + retry-request "^4.0.0" + semver "^6.0.0" + walkdir "^0.3.2" + +google-p12-pem@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/google-p12-pem/-/google-p12-pem-1.0.4.tgz#b77fb833a2eb9f7f3c689e2e54f095276f777605" + integrity sha512-SwLAUJqUfTB2iS+wFfSS/G9p7bt4eWcc2LyfvmUXe7cWp6p3mpxDo6LLI29MXdU6wvPcQ/up298X7GMC5ylAlA== + dependencies: + node-forge "^0.8.0" + pify "^4.0.0" + +google-proto-files@^0.20.0: + version "0.20.0" + resolved "https://registry.yarnpkg.com/google-proto-files/-/google-proto-files-0.20.0.tgz#dfcd1635a0c3f00f49ca057462cf369108ff4b5e" + integrity sha512-ORU+XhOeDv/UPtnCYLkO1ItmfhRCRPR3ZoeVQ7GfVzEs7PVitPIhsYlY5ZzG8XXnsdmtK27ENurfQ1jhAWpZHg== + dependencies: + "@google-cloud/promisify" "^0.4.0" + protobufjs "^6.8.0" + walkdir "^0.3.0" + +graceful-fs@^4.1.11, graceful-fs@^4.1.2: + version "4.1.15" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00" + integrity sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA== + +grpc-gcp@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/grpc-gcp/-/grpc-gcp-0.1.1.tgz#a11be8a7e7a6edf5f636b44a6a24fb4cc028f71f" + integrity sha512-MAt0Ae9QuL2Lbbt2d+kDta5AxqRD1JVXtBcJuQKp9GeFL5TxPw/hxIyDNyivPjKEXjbG3cBGwSE3CXq6a3KHEQ== + dependencies: + grpc "^1.16.0" + protobufjs "^6.8.8" + +grpc@^1.16.0: + version "1.20.3" + resolved "https://registry.yarnpkg.com/grpc/-/grpc-1.20.3.tgz#a74d36718f1e89c4a64f2fb9441199c3c8f78978" + integrity sha512-GsEsi0NVj6usS/xor8pF/xDbDiwZQR59aZl5NUZ59Sy2bdPQFZ3UePr5wevZjHboirRCIQCKRI1cCgvSWUe2ag== + dependencies: + lodash.camelcase "^4.3.0" + lodash.clone "^4.5.0" + nan "^2.13.2" + node-pre-gyp "^0.13.0" + protobufjs "^5.0.3" + +gtoken@^2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/gtoken/-/gtoken-2.3.3.tgz#8a7fe155c5ce0c4b71c886cfb282a9060d94a641" + integrity sha512-EaB49bu/TCoNeQjhCYKI/CurooBKkGxIqFHsWABW0b25fobBYVTMe84A8EBVVZhl8emiUdNypil9huMOTmyAnw== + dependencies: + gaxios "^1.0.4" + google-p12-pem "^1.0.0" + jws "^3.1.5" + mime "^2.2.0" + pify "^4.0.0" + +has-unicode@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= + +hash-stream-validation@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/hash-stream-validation/-/hash-stream-validation-0.2.1.tgz#ecc9b997b218be5bb31298628bb807869b73dcd1" + integrity sha1-7Mm5l7IYvluzEphii7gHhptz3NE= + dependencies: + through2 "^2.0.0" + +http-errors@1.7.2, http-errors@~1.7.2: + version "1.7.2" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" + integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.1" + statuses ">= 1.5.0 < 2" + toidentifier "1.0.0" + +http-parser-js@>=0.4.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.0.tgz#d65edbede84349d0dc30320815a15d39cc3cbbd8" + integrity sha512-cZdEF7r4gfRIq7ezX9J0T+kQmJNOub71dWbgAXVHDct80TKP4MCETtZQ31xyv38UwgzkWPYF/Xc0ge55dW9Z9w== + +https-proxy-agent@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz#51552970fa04d723e04c56d04178c3f92592bbc0" + integrity sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ== + dependencies: + agent-base "^4.1.0" + debug "^3.1.0" + +iconv-lite@0.4.24, iconv-lite@^0.4.4: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ignore-walk@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" + integrity sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ== + dependencies: + minimatch "^3.0.4" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1, inherits@~2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= + +ini@~1.3.0: + version "1.3.5" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" + integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + integrity sha1-EEqOSqym09jNFXqO+L+rLXo//bY= + +ipaddr.js@1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.0.tgz#37df74e430a0e47550fe54a2defe30d8acd95f65" + integrity sha512-M4Sjn6N/+O6/IXSJseKqHoFc+5FdGJ22sXqnjTpdZweHK64MzEPAyQZyEU3R/KRv2GLoa7nNtg/C2Ev6m7z+eA== + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + integrity sha1-754xOG8DGn8NZDr4L95QxFfvAMs= + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= + +is-obj@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f" + integrity sha1-PkcprB9f3gJc19g6iW2rn09n2w8= + +is-stream-ended@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/is-stream-ended/-/is-stream-ended-0.1.4.tgz#f50224e95e06bce0e356d440a4827cd35b267eda" + integrity sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw== + +isarray@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-0.0.1.tgz#8a18acfca9a8f4177e09abfc6038939b05d1eedf" + integrity sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8= + +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + +json-bigint@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/json-bigint/-/json-bigint-0.3.0.tgz#0ccd912c4b8270d05f056fbd13814b53d3825b1e" + integrity sha1-DM2RLEuCcNBfBW+9E4FLU9OCWx4= + dependencies: + bignumber.js "^7.0.0" + +jsonwebtoken@8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.1.0.tgz#c6397cd2e5fd583d65c007a83dc7bb78e6982b83" + integrity sha1-xjl80uX9WD1lwAeoPce7eOaYK4M= + dependencies: + jws "^3.1.4" + lodash.includes "^4.3.0" + lodash.isboolean "^3.0.3" + lodash.isinteger "^4.0.4" + lodash.isnumber "^3.0.3" + lodash.isplainobject "^4.0.6" + lodash.isstring "^4.0.1" + lodash.once "^4.0.0" + ms "^2.0.0" + xtend "^4.0.1" + +jsonwebtoken@^8.2.1: + version "8.5.1" + resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz#00e71e0b8df54c2121a1f26137df2280673bcc0d" + integrity sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w== + dependencies: + jws "^3.2.2" + lodash.includes "^4.3.0" + lodash.isboolean "^3.0.3" + lodash.isinteger "^4.0.4" + lodash.isnumber "^3.0.3" + lodash.isplainobject "^4.0.6" + lodash.isstring "^4.0.1" + lodash.once "^4.0.0" + ms "^2.1.1" + semver "^5.6.0" + +jwa@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jwa/-/jwa-1.4.1.tgz#743c32985cb9e98655530d53641b66c8645b039a" + integrity sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA== + dependencies: + buffer-equal-constant-time "1.0.1" + ecdsa-sig-formatter "1.0.11" + safe-buffer "^5.0.1" + +jws@^3.1.4, jws@^3.1.5, jws@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/jws/-/jws-3.2.2.tgz#001099f3639468c9414000e99995fa52fb478304" + integrity sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA== + dependencies: + jwa "^1.4.1" + safe-buffer "^5.0.1" + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + integrity sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU= + dependencies: + invert-kv "^1.0.0" + +lodash.at@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/lodash.at/-/lodash.at-4.6.0.tgz#93cdce664f0a1994ea33dd7cd40e23afd11b0ff8" + integrity sha1-k83OZk8KGZTqM9181A4jr9EbD/g= + +lodash.camelcase@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6" + integrity sha1-soqmKIorn8ZRA1x3EfZathkDMaY= + +lodash.clone@^4.5.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/lodash.clone/-/lodash.clone-4.5.0.tgz#195870450f5a13192478df4bc3d23d2dea1907b6" + integrity sha1-GVhwRQ9aExkkeN9Lw9I9LeoZB7Y= + +lodash.has@^4.5.2: + version "4.5.2" + resolved "https://registry.yarnpkg.com/lodash.has/-/lodash.has-4.5.2.tgz#d19f4dc1095058cccbe2b0cdf4ee0fe4aa37c862" + integrity sha1-0Z9NwQlQWMzL4rDN9O4P5Ko3yGI= + +lodash.includes@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" + integrity sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8= + +lodash.isboolean@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6" + integrity sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY= + +lodash.isinteger@^4.0.4: + version "4.0.4" + resolved "https://registry.yarnpkg.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343" + integrity sha1-YZwK89A/iwTDH1iChAt3sRzWg0M= + +lodash.isnumber@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz#3ce76810c5928d03352301ac287317f11c0b1ffc" + integrity sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w= + +lodash.isplainobject@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" + integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs= + +lodash.isstring@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" + integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE= + +lodash.merge@^4.6.1: + version "4.6.1" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.1.tgz#adc25d9cb99b9391c59624f379fbba60d7111d54" + integrity sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ== + +lodash.once@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" + integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= + +lodash@^4.17.11, lodash@^4.17.5, lodash@^4.6.1: + version "4.17.11" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" + integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== + +long@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/long/-/long-4.0.0.tgz#9a7b71cfb7d361a194ea555241c92f7468d5bf28" + integrity sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA== + +long@~3: + version "3.2.0" + resolved "https://registry.yarnpkg.com/long/-/long-3.2.0.tgz#d821b7138ca1cb581c172990ef14db200b5c474b" + integrity sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s= + +lru-cache@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +make-dir@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" + integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== + dependencies: + pify "^3.0.0" + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= + +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= + +mime-db@1.40.0, "mime-db@>= 1.40.0 < 2": + version "1.40.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.40.0.tgz#a65057e998db090f732a68f6c276d387d4126c32" + integrity sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA== + +mime-types@^2.0.8, mime-types@~2.1.24: + version "2.1.24" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.24.tgz#b6f8d0b3e951efb77dedeca194cff6d16f676f81" + integrity sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ== + dependencies: + mime-db "1.40.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mime@^2.2.0: + version "2.4.3" + resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.3.tgz#229687331e86f68924e6cb59e1cdd937f18275fe" + integrity sha512-QgrPRJfE+riq5TPZMcHZOtm8c6K/yYrMbKIoRfapfiGLxS8OTeIfRhUGW5LU7MlRa52KOAGCfUNruqLrIBvWZw== + +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimist@0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= + +minimist@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= + +minipass@^2.2.1, minipass@^2.3.4: + version "2.3.5" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-2.3.5.tgz#cacebe492022497f656b0f0f51e2682a9ed2d848" + integrity sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA== + dependencies: + safe-buffer "^5.1.2" + yallist "^3.0.0" + +minizlib@^1.1.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-1.2.1.tgz#dd27ea6136243c7c880684e8672bb3a45fd9b614" + integrity sha512-7+4oTUOWKg7AuL3vloEWekXY2/D20cevzsrNT2kGWm+39J9hGTCBv8VI5Pm5lXZ/o3/mdR4f8rflAPhnQb8mPA== + dependencies: + minipass "^2.2.1" + +mkdirp@^0.5.0, mkdirp@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= + dependencies: + minimist "0.0.8" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +ms@2.1.1, ms@^2.0.0, ms@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" + integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== + +nan@^2.13.2: + version "2.14.0" + resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c" + integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg== + +needle@^2.2.1: + version "2.4.0" + resolved "https://registry.yarnpkg.com/needle/-/needle-2.4.0.tgz#6833e74975c444642590e15a750288c5f939b57c" + integrity sha512-4Hnwzr3mi5L97hMYeNl8wRW/Onhy4nUKR/lVemJ8gJedxxUyBLm9kkrDColJvoSfwi0jCNhD+xCdOtiGDQiRZg== + dependencies: + debug "^3.2.6" + iconv-lite "^0.4.4" + sax "^1.2.4" + +negotiator@0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" + integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== + +node-fetch@^2.2.0, node-fetch@^2.3.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.0.tgz#e633456386d4aa55863f676a7ab0daa8fdecb0fd" + integrity sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA== + +node-forge@0.7.4: + version "0.7.4" + resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.7.4.tgz#8e6e9f563a1e32213aa7508cded22aa791dbf986" + integrity sha512-8Df0906+tq/omxuCZD6PqhPaQDYuyJ1d+VITgxoIA8zvQd1ru+nMJcDChHH324MWitIgbVkAkQoGEEVJNpn/PA== + +node-forge@^0.8.0: + version "0.8.3" + resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.8.3.tgz#c714c51d9f95b13fee8039bf78da3195efef5b64" + integrity sha512-5lv9UKmvTBog+m4AWL8XpZnr3WbNKxYL2M77i903ylY/huJIooSTDHyUWQ/OppFuKQpAGMk6qNtDymSJNRIEIg== + +node-pre-gyp@^0.13.0: + version "0.13.0" + resolved "https://registry.yarnpkg.com/node-pre-gyp/-/node-pre-gyp-0.13.0.tgz#df9ab7b68dd6498137717838e4f92a33fc9daa42" + integrity sha512-Md1D3xnEne8b/HGVQkZZwV27WUi1ZRuZBij24TNaZwUPU3ZAFtvT6xxJGaUVillfmMKnn5oD1HoGsp2Ftik7SQ== + dependencies: + 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@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + integrity sha1-0NRoWv1UFRk8jHUFYC0NF81kR00= + dependencies: + abbrev "1" + osenv "^0.1.4" + +npm-bundled@^1.0.1: + version "1.0.6" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.6.tgz#e7ba9aadcef962bb61248f91721cd932b3fe6bdd" + integrity sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g== + +npm-packlist@^1.1.6: + version "1.4.1" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-1.4.1.tgz#19064cdf988da80ea3cee45533879d90192bbfbc" + integrity sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw== + dependencies: + ignore-walk "^3.0.1" + npm-bundled "^1.0.1" + +npmlog@^4.0.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" + integrity sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg== + dependencies: + 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@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + integrity sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0= + +object-assign@^4, object-assign@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= + dependencies: + ee-first "1.1.1" + +once@^1.3.0, once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +onetime@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.0.tgz#fff0f3c91617fe62bb50189636e99ac8a6df7be5" + integrity sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q== + dependencies: + mimic-fn "^2.1.0" + +optjs@~3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/optjs/-/optjs-3.2.2.tgz#69a6ce89c442a44403141ad2f9b370bd5bb6f4ee" + integrity sha1-aabOicRCpEQDFBrS+bNwvVu29O4= + +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= + +os-locale@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" + integrity sha1-IPnxeuKe00XoveWDsT0gCYA8FNk= + dependencies: + lcid "^1.0.0" + +os-tmpdir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + +osenv@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" + integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= + +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= + +pify@^4.0.0, pify@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +process-nextick-args@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa" + integrity sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw== + +protobufjs@^5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-5.0.3.tgz#e4dfe9fb67c90b2630d15868249bcc4961467a17" + integrity sha512-55Kcx1MhPZX0zTbVosMQEO5R6/rikNXd9b6RQK4KSPcrSIIwoXTtebIczUrXlwaSrbz4x8XUVThGPob1n8I4QA== + dependencies: + ascli "~1" + bytebuffer "~5" + glob "^7.0.5" + yargs "^3.10.0" + +protobufjs@^6.8.0, protobufjs@^6.8.6, protobufjs@^6.8.8: + version "6.8.8" + resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-6.8.8.tgz#c8b4f1282fd7a90e6f5b109ed11c84af82908e7c" + integrity sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw== + dependencies: + "@protobufjs/aspromise" "^1.1.2" + "@protobufjs/base64" "^1.1.2" + "@protobufjs/codegen" "^2.0.4" + "@protobufjs/eventemitter" "^1.1.0" + "@protobufjs/fetch" "^1.1.0" + "@protobufjs/float" "^1.0.2" + "@protobufjs/inquire" "^1.1.0" + "@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" + +proxy-addr@~2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.5.tgz#34cbd64a2d81f4b1fd21e76f9f06c8a45299ee34" + integrity sha512-t/7RxHXPH6cJtP0pRG6smSr9QJidhB+3kXu0KgXnbGYMgzEnUxRQ4/LDdfOwZEMyIh3/xHb8PX3t+lfL9z+YVQ== + dependencies: + forwarded "~0.1.2" + ipaddr.js "1.9.0" + +pump@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" + integrity sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +pumpify@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce" + integrity sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ== + dependencies: + duplexify "^3.6.0" + inherits "^2.0.3" + pump "^2.0.0" + +qs@6.7.0, qs@^6.6.0: + version "6.7.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" + integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" + integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== + dependencies: + bytes "3.1.0" + http-errors "1.7.2" + iconv-lite "0.4.24" + unpipe "1.0.0" + +rc@^1.2.7: + version "1.2.8" + resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" + integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== + dependencies: + deep-extend "^0.6.0" + ini "~1.3.0" + minimist "^1.2.0" + strip-json-comments "~2.0.1" + +"readable-stream@2 || 3", readable-stream@^3.0.2: + version "3.3.0" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.3.0.tgz#cb8011aad002eb717bf040291feba8569c986fb9" + integrity sha512-EsI+s3k3XsW+fU8fQACLN59ky34AZ14LoeVZpYwmZvldCFo0r0gnelwF2TcMjLor/BTL5aDJVBMkss0dthToPw== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readable-stream@^2.0.0, readable-stream@^2.0.6, readable-stream@~2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" + integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== + dependencies: + 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" + +readable-stream@~1.0.32: + version "1.0.34" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-1.0.34.tgz#125820e34bc842d2f2aaafafe4c2916ee32c157c" + integrity sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw= + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "0.0.1" + string_decoder "~0.10.x" + +retry-request@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/retry-request/-/retry-request-4.0.0.tgz#5c366166279b3e10e9d7aa13274467a05cb69290" + integrity sha512-S4HNLaWcMP6r8E4TMH52Y7/pM8uNayOcTDDQNBwsCccL1uI+Ol2TljxRDPzaNfbhOB30+XWP5NnZkB3LiJxi1w== + dependencies: + through2 "^2.0.0" + +rimraf@^2.6.1: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + +safe-buffer@5.1.2, safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +"safer-buffer@>= 2.1.2 < 3": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sax@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9" + integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw== + +semver@^5.3.0, semver@^5.5.0, semver@^5.6.0: + version "5.7.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" + integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== + +semver@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.0.0.tgz#05e359ee571e5ad7ed641a6eec1e547ba52dea65" + integrity sha512-0UewU+9rFapKFnlbirLi3byoOuhrSsli/z/ihNnvM24vgF+8sNBiI1LZPBSH9wJKUwaUbw+s3hToDLCXkrghrQ== + +send@0.17.1: + version "0.17.1" + resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" + integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== + dependencies: + debug "2.6.9" + depd "~1.1.2" + destroy "~1.0.4" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "~1.7.2" + mime "1.6.0" + ms "2.1.1" + on-finished "~2.3.0" + range-parser "~1.2.1" + statuses "~1.5.0" + +serve-static@1.14.1: + version "1.14.1" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" + integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.17.1" + +set-blocking@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + +setprototypeof@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" + integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== + +signal-exit@^3.0.0, signal-exit@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" + integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= + +snakeize@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/snakeize/-/snakeize-0.1.0.tgz#10c088d8b58eb076b3229bb5a04e232ce126422d" + integrity sha1-EMCI2LWOsHazIpu1oE4jLOEmQi0= + +split-array-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/split-array-stream/-/split-array-stream-2.0.0.tgz#85a4f8bfe14421d7bca7f33a6d176d0c076a53b1" + integrity sha512-hmMswlVY91WvGMxs0k8MRgq8zb2mSen4FmDNc5AFiTWtrBpdZN6nwD6kROVe4vNL+ywrvbCKsWVCnEd4riELIg== + dependencies: + is-stream-ended "^0.1.4" + +"statuses@>= 1.5.0 < 2", statuses@~1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= + +stream-events@^1.0.1, stream-events@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/stream-events/-/stream-events-1.0.5.tgz#bbc898ec4df33a4902d892333d47da9bf1c406d5" + integrity sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg== + dependencies: + stubs "^3.0.0" + +stream-shift@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/stream-shift/-/stream-shift-1.0.0.tgz#d5c752825e5367e786f78e18e445ea223a155952" + integrity sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI= + +string-width@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + integrity sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M= + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +"string-width@^1.0.2 || 2": + version "2.1.1" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" + integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^4.0.0" + +string_decoder@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.2.0.tgz#fe86e738b19544afe70469243b2a1ee9240eae8d" + integrity sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w== + dependencies: + safe-buffer "~5.1.0" + +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + integrity sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ= + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" + integrity sha1-qEeQIusaw2iocTibY1JixQXuNo8= + dependencies: + ansi-regex "^3.0.0" + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= + +stripe@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/stripe/-/stripe-7.0.0.tgz#6761e7ef03e28f7c1d773abbdd6431c78b2b4fbb" + integrity sha512-2CzGN1oHqEoEYxo5H5t7/pd/3NdmK1f4ZJSXKa+mBfWh3yqTpKscxKU5ZbH9NpdvE7n5awkwj1oygaMwfi9dOw== + dependencies: + lodash.isplainobject "^4.0.6" + qs "^6.6.0" + safe-buffer "^5.1.1" + uuid "^3.3.2" + +stubs@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/stubs/-/stubs-3.0.0.tgz#e8d2ba1fa9c90570303c030b6900f7d5f89abe5b" + integrity sha1-6NK6H6nJBXAwPAMLaQD31fiavls= + +tar@^4: + version "4.4.8" + resolved "https://registry.yarnpkg.com/tar/-/tar-4.4.8.tgz#b19eec3fde2a96e64666df9fdb40c5ca1bc3747d" + integrity sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ== + dependencies: + 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" + +teeny-request@^3.11.3: + version "3.11.3" + resolved "https://registry.yarnpkg.com/teeny-request/-/teeny-request-3.11.3.tgz#335c629f7645e5d6599362df2f3230c4cbc23a55" + integrity sha512-CKncqSF7sH6p4rzCgkb/z/Pcos5efl0DmolzvlqRQUNcpRIruOhY9+T1FsIlyEbfWd7MsFpodROOwHYh2BaXzw== + dependencies: + https-proxy-agent "^2.2.1" + node-fetch "^2.2.0" + uuid "^3.3.2" + +through2@^2.0.0: + version "2.0.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" + integrity sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ== + dependencies: + readable-stream "~2.3.6" + xtend "~4.0.1" + +through2@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/through2/-/through2-3.0.1.tgz#39276e713c3302edf9e388dd9c812dd3b825bd5a" + integrity sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww== + dependencies: + readable-stream "2 || 3" + +toidentifier@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" + integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== + +tslib@1.9.3: + version "1.9.3" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286" + integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ== + +type-is@~1.6.17, type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= + +unique-string@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-1.0.0.tgz#9e1057cca851abb93398f8b33ae187b99caec11a" + integrity sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo= + dependencies: + crypto-random-string "^1.0.0" + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= + +util-deprecate@^1.0.1, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= + +uuid@^3.3.2: + version "3.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" + integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA== + +vary@^1, vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= + +walkdir@^0.3.0, walkdir@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/walkdir/-/walkdir-0.3.2.tgz#ac8437a288c295656848ebc19981ebc677a5f590" + integrity sha512-0Twghia4Z5wDGDYWURlhZmI47GvERMCsXIu0QZWVVZyW9ZjpbbZvD9Zy9M6cWiQQRRbAcYajIyKNavaZZDt1Uw== + +websocket-driver@>=0.5.1: + version "0.7.0" + resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.0.tgz#0caf9d2d755d93aee049d4bdd0d3fe2cca2a24eb" + integrity sha1-DK+dLXVdk67gSdS90NP+LMoqJOs= + dependencies: + http-parser-js ">=0.4.0" + websocket-extensions ">=0.1.1" + +websocket-extensions@>=0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.3.tgz#5d2ff22977003ec687a4b87073dfbbac146ccf29" + integrity sha512-nqHUnMXmBzT0w570r2JpJxfiSD1IzoI+HGVdd3aZ0yNi3ngvQ4jv1dtHt5VGxfI2yj5yqImPhOK4vmIh2xMbGg== + +wide-align@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.3.tgz#ae074e6bdc0c14a431e804e624549c633b000457" + integrity sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA== + dependencies: + string-width "^1.0.2 || 2" + +window-size@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.4.tgz#f8e1aa1ee5a53ec5bf151ffa09742a6ad7697876" + integrity sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY= + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + integrity sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU= + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-atomic@^2.0.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.4.2.tgz#a7181706dfba17855d221140a9c06e15fcdd87b9" + integrity sha512-s0b6vB3xIVRLWywa6X9TOMA7k9zio0TMOsl9ZnDkliA/cfJlpHXAscj0gbHVJiTdIuAYpIyqS5GW91fqm6gG5g== + dependencies: + graceful-fs "^4.1.11" + imurmurhash "^0.1.4" + signal-exit "^3.0.2" + +xdg-basedir@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-3.0.0.tgz#496b2cc109eca8dbacfe2dc72b603c17c5870ad4" + integrity sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ= + +xmlhttprequest@1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz#67fe075c5c24fef39f9d65f5f7b7fe75171968fc" + integrity sha1-Z/4HXFwk/vOfnWX197f+dRcZaPw= + +xtend@^4.0.1, xtend@~4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + integrity sha1-pcbVMr5lbiPbgg77lDofBJmNY68= + +y18n@^3.2.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + integrity sha1-bRX7qITAhnnA136I53WegR4H+kE= + +yallist@^3.0.0, yallist@^3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.3.tgz#b4b049e314be545e3ce802236d6cd22cd91c3de9" + integrity sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A== + +yargs@^3.10.0: + version "3.32.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.32.0.tgz#03088e9ebf9e756b69751611d2a5ef591482c995" + integrity sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU= + dependencies: + camelcase "^2.0.1" + cliui "^3.0.3" + decamelize "^1.1.1" + os-locale "^1.4.0" + string-width "^1.0.1" + window-size "^0.1.4" + y18n "^3.2.0" diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..829eda8 --- /dev/null +++ b/public/404.html @@ -0,0 +1,33 @@ + + + + + + Page Not Found + + + + +
+

404

+

Page Not Found

+

The specified file was not found on this website. Please check the URL for mistakes and try again.

+

Why am I seeing this?

+

This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html file in your project's configured public directory.

+
+ + diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..d850fd6 --- /dev/null +++ b/public/index.html @@ -0,0 +1,65 @@ + + + + + + Welcome to Firebase Hosting + + + + + + + + + + + + + + +
+

Welcome

+

Firebase Hosting Setup Complete

+

You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!

+ Open Hosting Documentation +
+

Firebase SDK Loading…

+ + + + diff --git a/stripe-server.js b/stripe-server.js index 7d3cc5f..64284fb 100644 --- a/stripe-server.js +++ b/stripe-server.js @@ -1,3 +1,5 @@ +// *** USE ONLY FOR LOCALCHOSTING IF NOT USING FIREBASE FUNCTION HOSTING *** + const app = require('express')(); const stripe = require('stripe')('sk_test_Fp1czcN7sosPfrOFPrZz1Ddu00JL3WqPgd'); const cors = require('cors'); From 6e43510a521f16b7149d8876d65116dd6f19a9e1 Mon Sep 17 00:00:00 2001 From: sean-attewell Date: Tue, 21 May 2019 12:33:22 +0100 Subject: [PATCH 3/4] delted files at Samars request --- functions/firebase-debug.log | 160 ----------------------------------- 1 file changed, 160 deletions(-) delete mode 100644 functions/firebase-debug.log diff --git a/functions/firebase-debug.log b/functions/firebase-debug.log deleted file mode 100644 index 29ec6a9..0000000 --- a/functions/firebase-debug.log +++ /dev/null @@ -1,160 +0,0 @@ -[debug] [2019-05-20T15:59:11.973Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T15:59:11.976Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T15:59:11.976Z] CLI Version: 6.10.0 -[debug] [2019-05-20T15:59:11.976Z] Platform: win32 -[debug] [2019-05-20T15:59:11.976Z] Node Version: v10.15.0 -[debug] [2019-05-20T15:59:11.977Z] Time: Mon May 20 2019 16:59:11 GMT+0100 (British Summer Time) -[debug] [2019-05-20T15:59:11.977Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T15:59:11.987Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T15:59:11.987Z] > authorizing via signed-in user -[debug] [2019-05-20T15:59:11.988Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T15:59:11.989Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T15:59:12.771Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T15:59:12.774Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T15:59:13.522Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T15:59:13.531Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T15:59:13.532Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T15:59:13.797Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T15:59:13.855Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T15:59:14.282Z] Functions runtime initialized. -[debug] [2019-05-20T15:59:14.282Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T15:59:15.017Z] firebase-admin has been stubbed. -[info] i functions: HTTP trigger initialized at http://localhost:5001/labseu1-db-test/us-central1/app -[debug] [2019-05-20T16:14:41.783Z] Accepted request GET /labseu1-db-test/us-central1/app --> app -[debug] [2019-05-20T16:14:42.284Z] Functions runtime initialized. -[info] i functions: Beginning execution of "app" -[debug] [2019-05-20T16:14:42.286Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T16:14:43.042Z] firebase-admin has been stubbed. -[debug] [2019-05-20T16:14:43.202Z] Trigger "app" has been found, beginning invocation! -[debug] [2019-05-20T16:14:43.203Z] -[debug] [2019-05-20T16:14:43.203Z] Running app in mode HTTPS -[info] i Your code has been provided a "firebase-admin" instance. -[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. - - Learn more: https://firebase.google.com/docs/admin/setup -[debug] [2019-05-20T16:14:43.209Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\7948"} -[debug] [2019-05-20T16:14:43.209Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\7948"} -[debug] [2019-05-20T16:14:43.216Z] Ephemeral server used! -[debug] [2019-05-20T16:14:43.223Z] Ephemeral server survived. -[info] i functions: Finished "app" in ~1s -[debug] [2019-05-20T16:18:32.538Z] Accepted request POST /labseu1-db-test/us-central1/app --> app -[debug] [2019-05-20T16:18:32.940Z] Functions runtime initialized. -[info] i functions: Beginning execution of "app" -[debug] [2019-05-20T16:18:32.941Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T16:18:33.686Z] firebase-admin has been stubbed. -[debug] [2019-05-20T16:18:33.838Z] Trigger "app" has been found, beginning invocation! -[debug] [2019-05-20T16:18:33.838Z] -[debug] [2019-05-20T16:18:33.839Z] Running app in mode HTTPS -[info] i Your code has been provided a "firebase-admin" instance. -[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. - - Learn more: https://firebase.google.com/docs/admin/setup -[debug] [2019-05-20T16:18:33.844Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\9276"} -[debug] [2019-05-20T16:18:33.845Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\9276"} -[debug] [2019-05-20T16:18:33.864Z] Ephemeral server used! -[debug] [2019-05-20T16:18:33.869Z] Ephemeral server survived. -[info] i functions: Finished "app" in ~1s -[debug] [2019-05-20T16:20:03.613Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app -[debug] [2019-05-20T16:20:04.036Z] Functions runtime initialized. -[info] i functions: Beginning execution of "app" -[debug] [2019-05-20T16:20:04.037Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T16:20:04.778Z] firebase-admin has been stubbed. -[debug] [2019-05-20T16:20:04.931Z] Trigger "app" has been found, beginning invocation! -[debug] [2019-05-20T16:20:04.931Z] -[debug] [2019-05-20T16:20:04.931Z] Running app in mode HTTPS -[info] i Your code has been provided a "firebase-admin" instance. -[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. - - Learn more: https://firebase.google.com/docs/admin/setup -[debug] [2019-05-20T16:20:04.937Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\22700"} -[debug] [2019-05-20T16:20:04.938Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\22700"} -[debug] [2019-05-20T16:20:04.956Z] Ephemeral server used! -[debug] [2019-05-20T16:20:04.966Z] Ephemeral server survived. -[info] i functions: Finished "app" in ~1s -[debug] [2019-05-20T16:29:11.388Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app -[debug] [2019-05-20T16:29:11.799Z] Functions runtime initialized. -[info] i functions: Beginning execution of "app" -[debug] [2019-05-20T16:29:11.800Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T16:29:12.563Z] firebase-admin has been stubbed. -[debug] [2019-05-20T16:29:12.726Z] Trigger "app" has been found, beginning invocation! -[debug] [2019-05-20T16:29:12.726Z] -[debug] [2019-05-20T16:29:12.726Z] Running app in mode HTTPS -[info] i Your code has been provided a "firebase-admin" instance. -[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. - - Learn more: https://firebase.google.com/docs/admin/setup -[debug] [2019-05-20T16:29:12.733Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\10828"} -[debug] [2019-05-20T16:29:12.733Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\10828"} -[debug] [2019-05-20T16:29:12.750Z] Ephemeral server used! -[debug] [2019-05-20T16:29:12.759Z] Ephemeral server survived. -[info] i functions: Finished "app" in ~1s -[debug] [2019-05-20T16:57:06.720Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app -[debug] [2019-05-20T16:57:07.140Z] Functions runtime initialized. -[info] i functions: Beginning execution of "app" -[debug] [2019-05-20T16:57:07.141Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T16:57:07.899Z] firebase-admin has been stubbed. -[debug] [2019-05-20T16:57:08.068Z] Trigger "app" has been found, beginning invocation! -[debug] [2019-05-20T16:57:08.068Z] -[debug] [2019-05-20T16:57:08.068Z] Running app in mode HTTPS -[info] i Your code has been provided a "firebase-admin" instance. -[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. - - Learn more: https://firebase.google.com/docs/admin/setup -[debug] [2019-05-20T16:57:08.074Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\20064"} -[debug] [2019-05-20T16:57:08.074Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\20064"} -[debug] [2019-05-20T16:57:08.092Z] Ephemeral server used! -[debug] [2019-05-20T16:57:08.100Z] Ephemeral server survived. -[info] i functions: Finished "app" in ~1s -[debug] [2019-05-20T17:01:51.009Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app -[debug] [2019-05-20T17:01:51.443Z] Functions runtime initialized. -[info] i functions: Beginning execution of "app" -[debug] [2019-05-20T17:01:51.444Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T17:01:52.198Z] firebase-admin has been stubbed. -[debug] [2019-05-20T17:01:52.356Z] Trigger "app" has been found, beginning invocation! -[debug] [2019-05-20T17:01:52.356Z] -[debug] [2019-05-20T17:01:52.356Z] Running app in mode HTTPS -[info] i Your code has been provided a "firebase-admin" instance. -[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. - - Learn more: https://firebase.google.com/docs/admin/setup -[debug] [2019-05-20T17:01:52.362Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\21748"} -[debug] [2019-05-20T17:01:52.362Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\21748"} -[debug] [2019-05-20T17:01:52.381Z] Ephemeral server used! -[debug] [2019-05-20T17:01:52.390Z] Ephemeral server survived. -[info] i functions: Finished "app" in ~1s -[debug] [2019-05-20T17:28:35.391Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app -[debug] [2019-05-20T17:28:35.859Z] Functions runtime initialized. -[info] i functions: Beginning execution of "app" -[debug] [2019-05-20T17:28:35.861Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T17:28:36.636Z] firebase-admin has been stubbed. -[debug] [2019-05-20T17:28:36.801Z] Trigger "app" has been found, beginning invocation! -[debug] [2019-05-20T17:28:36.802Z] -[debug] [2019-05-20T17:28:36.802Z] Running app in mode HTTPS -[info] i Your code has been provided a "firebase-admin" instance. -[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. - - Learn more: https://firebase.google.com/docs/admin/setup -[debug] [2019-05-20T17:28:36.808Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\20680"} -[debug] [2019-05-20T17:28:36.809Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\20680"} -[debug] [2019-05-20T17:28:36.827Z] Ephemeral server used! -[debug] [2019-05-20T17:28:36.836Z] Ephemeral server survived. -[info] i functions: Finished "app" in ~1s -[debug] [2019-05-20T17:43:44.709Z] Accepted request POST /labseu1-db-test/us-central1/app/charge --> app -[debug] [2019-05-20T17:43:45.130Z] Functions runtime initialized. -[info] i functions: Beginning execution of "app" -[debug] [2019-05-20T17:43:45.131Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T17:43:45.849Z] firebase-admin has been stubbed. -[debug] [2019-05-20T17:43:46.007Z] Trigger "app" has been found, beginning invocation! -[debug] [2019-05-20T17:43:46.008Z] -[debug] [2019-05-20T17:43:46.008Z] Running app in mode HTTPS -[info] i Your code has been provided a "firebase-admin" instance. -[info] i Your code does not appear to initialize the 'firebase-admin' module, so we've done it automatically. - - Learn more: https://firebase.google.com/docs/admin/setup -[debug] [2019-05-20T17:43:46.013Z] {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\16908"} -[debug] [2019-05-20T17:43:46.013Z] [functions] Runtime ready! Sending request! {"socketPath":"\\\\?\\pipe\\D:\\mango\\labseu1-db-BE\\functions\\16908"} -[debug] [2019-05-20T17:43:46.031Z] Ephemeral server used! -[debug] [2019-05-20T17:43:46.040Z] Ephemeral server survived. -[info] i functions: Finished "app" in ~1s From a41e3f0067036809205e04fa0219769adbb521f3 Mon Sep 17 00:00:00 2001 From: sean-attewell Date: Tue, 21 May 2019 12:56:41 +0100 Subject: [PATCH 4/4] deleted files --- firebase-debug.log | 619 --------------------------------------------- package.json | 27 -- stripe-server.js | 25 -- 3 files changed, 671 deletions(-) delete mode 100644 firebase-debug.log delete mode 100644 package.json delete mode 100644 stripe-server.js diff --git a/firebase-debug.log b/firebase-debug.log deleted file mode 100644 index 2f596d2..0000000 --- a/firebase-debug.log +++ /dev/null @@ -1,619 +0,0 @@ -[debug] [2019-05-20T14:08:09.370Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:08:09.372Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:08:09.372Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:08:09.372Z] Platform: win32 -[debug] [2019-05-20T14:08:09.372Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:08:09.374Z] Time: Mon May 20 2019 15:08:09 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:08:09.374Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:08:09.382Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:08:09.382Z] > authorizing via signed-in user -[debug] [2019-05-20T14:08:09.382Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:08:09.384Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"] -[debug] [2019-05-20T14:08:09.384Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token - -[debug] [2019-05-20T14:08:09.584Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:08:09.600Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:08:10.392Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:08:10.393Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:08:11.112Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:08:11.118Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:08:11.118Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:08:11.344Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:08:11.447Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:08:11.871Z] Functions runtime initialized. -[debug] [2019-05-20T14:08:11.871Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:08:12.673Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:9:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:14:12.234Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers -[debug] [2019-05-20T14:14:13.699Z] Functions runtime initialized. -[debug] [2019-05-20T14:14:13.699Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:14:14.463Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.use is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:8:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:14:20.685Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:14:20.688Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:14:20.688Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:14:20.688Z] Platform: win32 -[debug] [2019-05-20T14:14:20.688Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:14:20.689Z] Time: Mon May 20 2019 15:14:20 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:14:20.690Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:14:20.698Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:14:20.699Z] > authorizing via signed-in user -[debug] [2019-05-20T14:14:20.699Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:14:20.700Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:14:21.517Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:14:21.518Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:14:22.244Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:14:22.250Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:14:22.250Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:14:22.515Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:14:22.586Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:14:22.995Z] Functions runtime initialized. -[debug] [2019-05-20T14:14:22.996Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:14:23.721Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.use is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:8:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:18:25.373Z] File D:\mango\labseu1-db-BE\functions\middleware.js changed, reloading triggers -[debug] [2019-05-20T14:18:26.823Z] Functions runtime initialized. -[debug] [2019-05-20T14:18:26.824Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:18:27.602Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.use is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:8:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:18:56.213Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers -[debug] [2019-05-20T14:18:57.660Z] Functions runtime initialized. -[debug] [2019-05-20T14:18:57.661Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:18:58.414Z] firebase-admin has been stubbed. -[warn] ! Error: Cannot find module 'helmet' - at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) - at Function.Module._load (internal/modules/cjs/loader.js:507:25) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at Object. (D:\mango\labseu1-db-BE\functions\middleware.js:2:16) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:19:02.522Z] File D:\mango\labseu1-db-BE\functions\middleware.js changed, reloading triggers -[debug] [2019-05-20T14:19:03.951Z] Functions runtime initialized. -[debug] [2019-05-20T14:19:03.951Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:19:04.685Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.use is not a function - at module.exports.app (D:\mango\labseu1-db-BE\functions\middleware.js:4:7) - at Object. (D:\mango\labseu1-db-BE\functions\index.js:7:1) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:19:32.669Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:19:32.671Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:19:32.671Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:19:32.671Z] Platform: win32 -[debug] [2019-05-20T14:19:32.671Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:19:32.673Z] Time: Mon May 20 2019 15:19:32 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:19:32.673Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:19:32.681Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:19:32.682Z] > authorizing via signed-in user -[debug] [2019-05-20T14:19:32.682Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:19:32.683Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:19:33.474Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:19:33.475Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:19:34.203Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:19:34.209Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:19:34.210Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:19:34.460Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:19:34.522Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:19:34.936Z] Functions runtime initialized. -[debug] [2019-05-20T14:19:34.936Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:19:35.660Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.use is not a function - at module.exports.app (D:\mango\labseu1-db-BE\functions\middleware.js:4:7) - at Object. (D:\mango\labseu1-db-BE\functions\index.js:7:1) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:20:41.656Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers -[debug] [2019-05-20T14:20:43.089Z] Functions runtime initialized. -[debug] [2019-05-20T14:20:43.090Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:20:46.262Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:20:46.265Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:20:46.265Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:20:46.265Z] Platform: win32 -[debug] [2019-05-20T14:20:46.265Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:20:46.267Z] Time: Mon May 20 2019 15:20:46 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:20:46.267Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:20:46.275Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:20:46.276Z] > authorizing via signed-in user -[debug] [2019-05-20T14:20:46.276Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:20:46.278Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:20:47.044Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:20:47.046Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:20:47.770Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:20:47.776Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:20:47.776Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:20:48.012Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:20:48.075Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:20:48.518Z] Functions runtime initialized. -[debug] [2019-05-20T14:20:48.518Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:20:49.242Z] firebase-admin has been stubbed. -[warn] ! Error: Cannot find module '../middleware.js/index.js' - at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) - at Function.Module._load (internal/modules/cjs/loader.js:507:25) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at Object. (D:\mango\labseu1-db-BE\functions\index.js:4:29) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:21:01.328Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers -[debug] [2019-05-20T14:21:02.798Z] Functions runtime initialized. -[debug] [2019-05-20T14:21:02.798Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:21:06.082Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:21:06.084Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:21:06.084Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:21:06.084Z] Platform: win32 -[debug] [2019-05-20T14:21:06.084Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:21:06.086Z] Time: Mon May 20 2019 15:21:06 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:21:06.086Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:21:06.094Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:21:06.094Z] > authorizing via signed-in user -[debug] [2019-05-20T14:21:06.094Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:21:06.096Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:21:06.844Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:21:06.846Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:21:07.563Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:21:07.569Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:21:07.569Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:21:07.811Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:21:07.871Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:21:08.319Z] Functions runtime initialized. -[debug] [2019-05-20T14:21:08.320Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:21:09.035Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.use is not a function - at module.exports.app (D:\mango\labseu1-db-BE\middleware.js:4:7) - at Object. (D:\mango\labseu1-db-BE\functions\index.js:7:1) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:21:25.102Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers -[debug] [2019-05-20T14:21:26.603Z] Functions runtime initialized. -[debug] [2019-05-20T14:21:26.604Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:21:27.373Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:13:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:21:30.083Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:21:30.086Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:21:30.086Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:21:30.086Z] Platform: win32 -[debug] [2019-05-20T14:21:30.086Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:21:30.088Z] Time: Mon May 20 2019 15:21:30 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:21:30.088Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:21:30.096Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:21:30.097Z] > authorizing via signed-in user -[debug] [2019-05-20T14:21:30.097Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:21:30.098Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:21:30.891Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:21:30.893Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:21:31.614Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:21:31.620Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:21:31.621Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:21:31.845Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:21:31.910Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:21:32.334Z] Functions runtime initialized. -[debug] [2019-05-20T14:21:32.334Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:21:33.059Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:13:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:23:28.800Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:23:28.802Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:23:28.802Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:23:28.802Z] Platform: win32 -[debug] [2019-05-20T14:23:28.802Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:23:28.804Z] Time: Mon May 20 2019 15:23:28 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:23:28.804Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:23:28.813Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:23:28.813Z] > authorizing via signed-in user -[debug] [2019-05-20T14:23:28.813Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:23:28.815Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:23:29.603Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:23:29.604Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:23:30.329Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:23:30.335Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:23:30.335Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:23:30.565Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:23:30.637Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:23:31.078Z] Functions runtime initialized. -[debug] [2019-05-20T14:23:31.078Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:23:31.815Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:13:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:47:05.520Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:47:05.522Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:47:05.523Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:47:05.523Z] Platform: win32 -[debug] [2019-05-20T14:47:05.523Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:47:05.524Z] Time: Mon May 20 2019 15:47:05 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:47:05.524Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:47:05.532Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:47:05.533Z] > authorizing via signed-in user -[debug] [2019-05-20T14:47:05.533Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:47:05.534Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:47:06.329Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:47:06.331Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:47:07.073Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:47:07.079Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:47:07.079Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:47:07.299Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:47:07.415Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:47:07.821Z] Functions runtime initialized. -[debug] [2019-05-20T14:47:07.821Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:47:08.541Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:48:38.668Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers -[debug] [2019-05-20T14:48:40.120Z] Functions runtime initialized. -[debug] [2019-05-20T14:48:40.121Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:48:40.860Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:48:48.708Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:48:48.710Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:48:48.710Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:48:48.710Z] Platform: win32 -[debug] [2019-05-20T14:48:48.711Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:48:48.712Z] Time: Mon May 20 2019 15:48:48 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:48:48.712Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:48:48.721Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:48:48.722Z] > authorizing via signed-in user -[debug] [2019-05-20T14:48:48.722Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:48:48.724Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:48:49.510Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:48:49.514Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:48:50.242Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:48:50.249Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:48:50.250Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:48:50.465Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:48:50.548Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:48:50.964Z] Functions runtime initialized. -[debug] [2019-05-20T14:48:50.964Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:48:51.728Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T14:49:08.301Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers -[debug] [2019-05-20T14:49:09.761Z] Functions runtime initialized. -[debug] [2019-05-20T14:49:09.762Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:49:10.523Z] firebase-admin has been stubbed. -[debug] [2019-05-20T14:49:13.562Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T14:49:13.564Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T14:49:13.564Z] CLI Version: 6.10.0 -[debug] [2019-05-20T14:49:13.565Z] Platform: win32 -[debug] [2019-05-20T14:49:13.565Z] Node Version: v10.15.0 -[debug] [2019-05-20T14:49:13.566Z] Time: Mon May 20 2019 15:49:13 GMT+0100 (British Summer Time) -[debug] [2019-05-20T14:49:13.566Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T14:49:13.575Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T14:49:13.576Z] > authorizing via signed-in user -[debug] [2019-05-20T14:49:13.576Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T14:49:13.578Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T14:49:14.363Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T14:49:14.365Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T14:49:15.095Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T14:49:15.101Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T14:49:15.101Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T14:49:15.315Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T14:49:15.396Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T14:49:15.844Z] Functions runtime initialized. -[debug] [2019-05-20T14:49:15.845Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T14:49:16.610Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T15:02:24.895Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers -[debug] [2019-05-20T15:02:26.363Z] Functions runtime initialized. -[debug] [2019-05-20T15:02:26.363Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T15:02:27.134Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.use is not a function - at module.exports.app (D:\mango\labseu1-db-BE\middleware.js:4:7) - at Object. (D:\mango\labseu1-db-BE\functions\index.js:8:1) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T15:02:54.519Z] File D:\mango\labseu1-db-BE\functions\index.js changed, reloading triggers -[debug] [2019-05-20T15:02:55.976Z] Functions runtime initialized. -[debug] [2019-05-20T15:02:55.977Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T15:02:56.845Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. -[debug] [2019-05-20T15:53:37.724Z] ---------------------------------------------------------------------- -[debug] [2019-05-20T15:53:37.727Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve --only functions,hosting -[debug] [2019-05-20T15:53:37.727Z] CLI Version: 6.10.0 -[debug] [2019-05-20T15:53:37.727Z] Platform: win32 -[debug] [2019-05-20T15:53:37.727Z] Node Version: v10.15.0 -[debug] [2019-05-20T15:53:37.729Z] Time: Mon May 20 2019 16:53:37 GMT+0100 (British Summer Time) -[debug] [2019-05-20T15:53:37.729Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-05-20T15:53:37.738Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-05-20T15:53:37.738Z] > authorizing via signed-in user -[debug] [2019-05-20T15:53:37.738Z] [iam] checking project labseu1-db-test for permissions ["firebase.projects.get"] -[debug] [2019-05-20T15:53:37.740Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"] -[debug] [2019-05-20T15:53:37.740Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token - -[debug] [2019-05-20T15:53:37.951Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T15:53:37.961Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test:testIamPermissions - -[debug] [2019-05-20T15:53:38.745Z] <<< HTTP RESPONSE 200 -[debug] [2019-05-20T15:53:38.746Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/labseu1-db-test - -[debug] [2019-05-20T15:53:39.496Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-05-20T15:53:39.502Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917/clients/_:getWebAppConfig - -[debug] [2019-05-20T15:53:39.503Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/280261803917:getServerAppConfig - -[debug] [2019-05-20T15:53:39.816Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-05-20T15:53:39.886Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "D:\mango\labseu1-db-BE\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: public -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-05-20T15:53:40.341Z] Functions runtime initialized. -[debug] [2019-05-20T15:53:40.341Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[debug] [2019-05-20T15:53:41.174Z] firebase-admin has been stubbed. -[warn] ! TypeError: app.post is not a function - at Object. (D:\mango\labseu1-db-BE\functions\index.js:14:5) - at Module._compile (internal/modules/cjs/loader.js:689:30) - at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) - at Module.load (internal/modules/cjs/loader.js:599:32) - at tryModuleLoad (internal/modules/cjs/loader.js:538:12) - at Function.Module._load (internal/modules/cjs/loader.js:530:3) - at Module.require (internal/modules/cjs/loader.js:637:17) - at require (internal/modules/cjs/helpers.js:22:18) - at C:\Users\Sean\AppData\Roaming\npm\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:459:29 - at Generator.next () -[warn] ! Your function was killed because it raised an unhandled error. diff --git a/package.json b/package.json deleted file mode 100644 index 38e825b..0000000 --- a/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "labseu1-db-BE", - "version": "1.0.0", - "description": "", - "main": "index.js", - "scripts": { - "start": "node stripe-server.js", - "test": "echo \"Error: no test specified\" && exit 1" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/labseu1-db/labseu1-db-BE.git" - }, - "keywords": [], - "author": "", - "license": "ISC", - "bugs": { - "url": "https://github.com/labseu1-db/labseu1-db-BE/issues" - }, - "homepage": "https://github.com/labseu1-db/labseu1-db-BE#readme", - "dependencies": { - "body-parser": "^1.19.0", - "cors": "^2.8.5", - "express": "^4.17.0", - "stripe": "^7.0.0" - } -} diff --git a/stripe-server.js b/stripe-server.js deleted file mode 100644 index 64284fb..0000000 --- a/stripe-server.js +++ /dev/null @@ -1,25 +0,0 @@ -// *** USE ONLY FOR LOCALCHOSTING IF NOT USING FIREBASE FUNCTION HOSTING *** - -const app = require('express')(); -const stripe = require('stripe')('sk_test_Fp1czcN7sosPfrOFPrZz1Ddu00JL3WqPgd'); -const cors = require('cors'); - -app.use(require('body-parser').text()); -app.use(cors()); - -app.post('/charge', async (req, res) => { - try { - let { status } = await stripe.charges.create({ - amount: 2000, // in cents - currency: 'usd', - description: 'An example charge', - source: req.body - }); - - res.json({ status }); - } catch (err) { - res.status(500).end(); - } -}); - -app.listen(9000, () => console.log('Listening on port 9000'));