├── LICENSE ├── README.md ├── razorpay-backend ├── .gitignore ├── app.js ├── logo.svg ├── package-lock.json └── package.json └── razorpay-frontend ├── .gitignore ├── README.md ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── App.css ├── App.js ├── App.test.js ├── index.css ├── index.js ├── logo.svg ├── serviceWorker.js └── setupTests.js └── yarn.lock /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Rajat Sablok 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nodejs-razorpay 2 | 3 | > 4 | > A simple Node.js application with React frontend for making payments with Razorpay 5 | 6 | --- 7 | 8 | ## Features 9 | 10 | - Payment gateway using Razorpay API 11 | 12 | ## Instructions to run 13 | 14 | ``` 15 | $ git clone https://github.com/RajatSablok/nodejs-razorpay.git 16 | $ cd nodejs-razorpay 17 | $ cd razorpay-backend 18 | $ npm install 19 | ``` 20 | 21 | Create a .env file in this directory and add your 'RAZORPAY_KEY_ID' and 'RAZORPAY_KEY_SECRET' in it. You can get these from your Razorpay dashboard. 22 | 23 | ``` 24 | $ npm start 25 | $ cd .. 26 | $ cd razorpay-frontend 27 | $ npm install 28 | $ npm start 29 | ``` 30 | 31 | ## Contributors 32 | 33 | - Rajat Sablok 34 | 35 | ## License 36 | 37 | [![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org) 38 | -------------------------------------------------------------------------------- /razorpay-backend/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .env 3 | -------------------------------------------------------------------------------- /razorpay-backend/app.js: -------------------------------------------------------------------------------- 1 | const express = require("express"); 2 | const path = require("path"); 3 | const Razorpay = require("razorpay"); 4 | const shortid = require("shortid"); 5 | const bodyParser = require("body-parser"); 6 | const crypto = require("crypto"); 7 | const cors = require("cors"); 8 | 9 | require("dotenv").config(); 10 | 11 | const app = express(); 12 | 13 | app.use(cors()); 14 | app.use(bodyParser.json()); 15 | 16 | var razorpay = new Razorpay({ 17 | key_id: process.env.RAZORPAY_KEY_ID, 18 | key_secret: process.env.RAZORPAY_KEY_SECRET, 19 | }); 20 | 21 | app.get("/logo.svg", (req, res) => { 22 | res.sendFile(path.join(__dirname, "logo.svg")); 23 | }); 24 | 25 | app.post("/verification", (req, res) => { 26 | const secret = "razorpaysecret"; 27 | 28 | console.log(req.body); 29 | 30 | const shasum = crypto.createHmac("sha256", secret); 31 | shasum.update(JSON.stringify(req.body)); 32 | const digest = shasum.digest("hex"); 33 | 34 | console.log(digest, req.headers["x-razorpay-signature"]); 35 | 36 | if (digest === req.headers["x-razorpay-signature"]) { 37 | console.log("request is legit"); 38 | res.status(200).json({ 39 | message: "OK", 40 | }); 41 | } else { 42 | res.status(403).json({ message: "Invalid" }); 43 | } 44 | }); 45 | 46 | app.post("/razorpay", async (req, res) => { 47 | const payment_capture = 1; 48 | const amount = 500; 49 | const currency = "INR"; 50 | 51 | const options = { 52 | amount, 53 | currency, 54 | receipt: shortid.generate(), 55 | payment_capture, 56 | }; 57 | 58 | try { 59 | const response = await razorpay.orders.create(options); 60 | console.log(response); 61 | res.status(200).json({ 62 | id: response.id, 63 | currency: response.currency, 64 | amount: response.amount, 65 | }); 66 | } catch (err) { 67 | console.log(err); 68 | } 69 | }); 70 | 71 | const PORT = process.env.PORT || 1337; 72 | 73 | app.listen(PORT, () => { 74 | console.log(`Listening on ${PORT}`); 75 | }); 76 | -------------------------------------------------------------------------------- /razorpay-backend/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /razorpay-backend/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "razorpay-backend", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@sindresorhus/is": { 8 | "version": "0.14.0", 9 | "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", 10 | "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" 11 | }, 12 | "@szmarczak/http-timer": { 13 | "version": "1.1.2", 14 | "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", 15 | "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", 16 | "requires": { 17 | "defer-to-connect": "^1.0.1" 18 | } 19 | }, 20 | "@types/color-name": { 21 | "version": "1.1.1", 22 | "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", 23 | "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" 24 | }, 25 | "abbrev": { 26 | "version": "1.1.1", 27 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 28 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" 29 | }, 30 | "accepts": { 31 | "version": "1.3.7", 32 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 33 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 34 | "requires": { 35 | "mime-types": "~2.1.24", 36 | "negotiator": "0.6.2" 37 | } 38 | }, 39 | "ajv": { 40 | "version": "6.12.3", 41 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.3.tgz", 42 | "integrity": "sha512-4K0cK3L1hsqk9xIb2z9vs/XU+PGJZ9PNpJRDS9YLzmNdX6jmVPfamLvTJr0aDAusnHyCHO6MjzlkAsgtqp9teA==", 43 | "requires": { 44 | "fast-deep-equal": "^3.1.1", 45 | "fast-json-stable-stringify": "^2.0.0", 46 | "json-schema-traverse": "^0.4.1", 47 | "uri-js": "^4.2.2" 48 | } 49 | }, 50 | "ansi-align": { 51 | "version": "3.0.0", 52 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", 53 | "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", 54 | "requires": { 55 | "string-width": "^3.0.0" 56 | }, 57 | "dependencies": { 58 | "string-width": { 59 | "version": "3.1.0", 60 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 61 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 62 | "requires": { 63 | "emoji-regex": "^7.0.1", 64 | "is-fullwidth-code-point": "^2.0.0", 65 | "strip-ansi": "^5.1.0" 66 | } 67 | } 68 | } 69 | }, 70 | "ansi-regex": { 71 | "version": "4.1.0", 72 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 73 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" 74 | }, 75 | "ansi-styles": { 76 | "version": "4.2.1", 77 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", 78 | "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", 79 | "requires": { 80 | "@types/color-name": "^1.1.1", 81 | "color-convert": "^2.0.1" 82 | } 83 | }, 84 | "anymatch": { 85 | "version": "3.1.1", 86 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", 87 | "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", 88 | "requires": { 89 | "normalize-path": "^3.0.0", 90 | "picomatch": "^2.0.4" 91 | } 92 | }, 93 | "array-flatten": { 94 | "version": "1.1.1", 95 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 96 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 97 | }, 98 | "asap": { 99 | "version": "2.0.6", 100 | "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", 101 | "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" 102 | }, 103 | "asn1": { 104 | "version": "0.2.4", 105 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", 106 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", 107 | "requires": { 108 | "safer-buffer": "~2.1.0" 109 | } 110 | }, 111 | "assert-plus": { 112 | "version": "1.0.0", 113 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 114 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 115 | }, 116 | "asynckit": { 117 | "version": "0.4.0", 118 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 119 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 120 | }, 121 | "aws-sign2": { 122 | "version": "0.7.0", 123 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 124 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" 125 | }, 126 | "aws4": { 127 | "version": "1.10.0", 128 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz", 129 | "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==" 130 | }, 131 | "balanced-match": { 132 | "version": "1.0.0", 133 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 134 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 135 | }, 136 | "bcrypt-pbkdf": { 137 | "version": "1.0.2", 138 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", 139 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", 140 | "requires": { 141 | "tweetnacl": "^0.14.3" 142 | } 143 | }, 144 | "binary-extensions": { 145 | "version": "2.1.0", 146 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", 147 | "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==" 148 | }, 149 | "bluebird": { 150 | "version": "3.7.2", 151 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", 152 | "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" 153 | }, 154 | "body-parser": { 155 | "version": "1.19.0", 156 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 157 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 158 | "requires": { 159 | "bytes": "3.1.0", 160 | "content-type": "~1.0.4", 161 | "debug": "2.6.9", 162 | "depd": "~1.1.2", 163 | "http-errors": "1.7.2", 164 | "iconv-lite": "0.4.24", 165 | "on-finished": "~2.3.0", 166 | "qs": "6.7.0", 167 | "raw-body": "2.4.0", 168 | "type-is": "~1.6.17" 169 | } 170 | }, 171 | "boxen": { 172 | "version": "4.2.0", 173 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", 174 | "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", 175 | "requires": { 176 | "ansi-align": "^3.0.0", 177 | "camelcase": "^5.3.1", 178 | "chalk": "^3.0.0", 179 | "cli-boxes": "^2.2.0", 180 | "string-width": "^4.1.0", 181 | "term-size": "^2.1.0", 182 | "type-fest": "^0.8.1", 183 | "widest-line": "^3.1.0" 184 | } 185 | }, 186 | "brace-expansion": { 187 | "version": "1.1.11", 188 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 189 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 190 | "requires": { 191 | "balanced-match": "^1.0.0", 192 | "concat-map": "0.0.1" 193 | } 194 | }, 195 | "braces": { 196 | "version": "3.0.2", 197 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 198 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 199 | "requires": { 200 | "fill-range": "^7.0.1" 201 | } 202 | }, 203 | "bytes": { 204 | "version": "3.1.0", 205 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 206 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 207 | }, 208 | "cacheable-request": { 209 | "version": "6.1.0", 210 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", 211 | "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", 212 | "requires": { 213 | "clone-response": "^1.0.2", 214 | "get-stream": "^5.1.0", 215 | "http-cache-semantics": "^4.0.0", 216 | "keyv": "^3.0.0", 217 | "lowercase-keys": "^2.0.0", 218 | "normalize-url": "^4.1.0", 219 | "responselike": "^1.0.2" 220 | }, 221 | "dependencies": { 222 | "get-stream": { 223 | "version": "5.1.0", 224 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", 225 | "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", 226 | "requires": { 227 | "pump": "^3.0.0" 228 | } 229 | }, 230 | "lowercase-keys": { 231 | "version": "2.0.0", 232 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", 233 | "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" 234 | } 235 | } 236 | }, 237 | "camelcase": { 238 | "version": "5.3.1", 239 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 240 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" 241 | }, 242 | "caseless": { 243 | "version": "0.12.0", 244 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 245 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 246 | }, 247 | "chalk": { 248 | "version": "3.0.0", 249 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", 250 | "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", 251 | "requires": { 252 | "ansi-styles": "^4.1.0", 253 | "supports-color": "^7.1.0" 254 | }, 255 | "dependencies": { 256 | "has-flag": { 257 | "version": "4.0.0", 258 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 259 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" 260 | }, 261 | "supports-color": { 262 | "version": "7.1.0", 263 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", 264 | "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", 265 | "requires": { 266 | "has-flag": "^4.0.0" 267 | } 268 | } 269 | } 270 | }, 271 | "chokidar": { 272 | "version": "3.4.0", 273 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.0.tgz", 274 | "integrity": "sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ==", 275 | "requires": { 276 | "anymatch": "~3.1.1", 277 | "braces": "~3.0.2", 278 | "fsevents": "~2.1.2", 279 | "glob-parent": "~5.1.0", 280 | "is-binary-path": "~2.1.0", 281 | "is-glob": "~4.0.1", 282 | "normalize-path": "~3.0.0", 283 | "readdirp": "~3.4.0" 284 | } 285 | }, 286 | "ci-info": { 287 | "version": "2.0.0", 288 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", 289 | "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" 290 | }, 291 | "cli-boxes": { 292 | "version": "2.2.0", 293 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.0.tgz", 294 | "integrity": "sha512-gpaBrMAizVEANOpfZp/EEUixTXDyGt7DFzdK5hU+UbWt/J0lB0w20ncZj59Z9a93xHb9u12zF5BS6i9RKbtg4w==" 295 | }, 296 | "clone-response": { 297 | "version": "1.0.2", 298 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 299 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 300 | "requires": { 301 | "mimic-response": "^1.0.0" 302 | } 303 | }, 304 | "color-convert": { 305 | "version": "2.0.1", 306 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 307 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 308 | "requires": { 309 | "color-name": "~1.1.4" 310 | } 311 | }, 312 | "color-name": { 313 | "version": "1.1.4", 314 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 315 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 316 | }, 317 | "combined-stream": { 318 | "version": "1.0.8", 319 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 320 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 321 | "requires": { 322 | "delayed-stream": "~1.0.0" 323 | } 324 | }, 325 | "concat-map": { 326 | "version": "0.0.1", 327 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 328 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 329 | }, 330 | "configstore": { 331 | "version": "5.0.1", 332 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", 333 | "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", 334 | "requires": { 335 | "dot-prop": "^5.2.0", 336 | "graceful-fs": "^4.1.2", 337 | "make-dir": "^3.0.0", 338 | "unique-string": "^2.0.0", 339 | "write-file-atomic": "^3.0.0", 340 | "xdg-basedir": "^4.0.0" 341 | } 342 | }, 343 | "content-disposition": { 344 | "version": "0.5.3", 345 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 346 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 347 | "requires": { 348 | "safe-buffer": "5.1.2" 349 | } 350 | }, 351 | "content-type": { 352 | "version": "1.0.4", 353 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 354 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 355 | }, 356 | "cookie": { 357 | "version": "0.4.0", 358 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 359 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 360 | }, 361 | "cookie-signature": { 362 | "version": "1.0.6", 363 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 364 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 365 | }, 366 | "core-util-is": { 367 | "version": "1.0.2", 368 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 369 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 370 | }, 371 | "cors": { 372 | "version": "2.8.5", 373 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 374 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 375 | "requires": { 376 | "object-assign": "^4", 377 | "vary": "^1" 378 | } 379 | }, 380 | "crypto-random-string": { 381 | "version": "2.0.0", 382 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", 383 | "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==" 384 | }, 385 | "dashdash": { 386 | "version": "1.14.1", 387 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 388 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 389 | "requires": { 390 | "assert-plus": "^1.0.0" 391 | } 392 | }, 393 | "debug": { 394 | "version": "2.6.9", 395 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 396 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 397 | "requires": { 398 | "ms": "2.0.0" 399 | } 400 | }, 401 | "decompress-response": { 402 | "version": "3.3.0", 403 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 404 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 405 | "requires": { 406 | "mimic-response": "^1.0.0" 407 | } 408 | }, 409 | "deep-extend": { 410 | "version": "0.6.0", 411 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 412 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" 413 | }, 414 | "defer-to-connect": { 415 | "version": "1.1.3", 416 | "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", 417 | "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" 418 | }, 419 | "delayed-stream": { 420 | "version": "1.0.0", 421 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 422 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 423 | }, 424 | "depd": { 425 | "version": "1.1.2", 426 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 427 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 428 | }, 429 | "destroy": { 430 | "version": "1.0.4", 431 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 432 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 433 | }, 434 | "dot-prop": { 435 | "version": "5.2.0", 436 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz", 437 | "integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==", 438 | "requires": { 439 | "is-obj": "^2.0.0" 440 | } 441 | }, 442 | "dotenv": { 443 | "version": "8.2.0", 444 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", 445 | "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==", 446 | "dev": true 447 | }, 448 | "duplexer3": { 449 | "version": "0.1.4", 450 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 451 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" 452 | }, 453 | "ecc-jsbn": { 454 | "version": "0.1.2", 455 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", 456 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", 457 | "requires": { 458 | "jsbn": "~0.1.0", 459 | "safer-buffer": "^2.1.0" 460 | } 461 | }, 462 | "ee-first": { 463 | "version": "1.1.1", 464 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 465 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 466 | }, 467 | "emoji-regex": { 468 | "version": "7.0.3", 469 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 470 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" 471 | }, 472 | "encodeurl": { 473 | "version": "1.0.2", 474 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 475 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 476 | }, 477 | "end-of-stream": { 478 | "version": "1.4.4", 479 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 480 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 481 | "requires": { 482 | "once": "^1.4.0" 483 | } 484 | }, 485 | "escape-goat": { 486 | "version": "2.1.1", 487 | "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", 488 | "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==" 489 | }, 490 | "escape-html": { 491 | "version": "1.0.3", 492 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 493 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 494 | }, 495 | "etag": { 496 | "version": "1.8.1", 497 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 498 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 499 | }, 500 | "express": { 501 | "version": "4.17.1", 502 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 503 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 504 | "requires": { 505 | "accepts": "~1.3.7", 506 | "array-flatten": "1.1.1", 507 | "body-parser": "1.19.0", 508 | "content-disposition": "0.5.3", 509 | "content-type": "~1.0.4", 510 | "cookie": "0.4.0", 511 | "cookie-signature": "1.0.6", 512 | "debug": "2.6.9", 513 | "depd": "~1.1.2", 514 | "encodeurl": "~1.0.2", 515 | "escape-html": "~1.0.3", 516 | "etag": "~1.8.1", 517 | "finalhandler": "~1.1.2", 518 | "fresh": "0.5.2", 519 | "merge-descriptors": "1.0.1", 520 | "methods": "~1.1.2", 521 | "on-finished": "~2.3.0", 522 | "parseurl": "~1.3.3", 523 | "path-to-regexp": "0.1.7", 524 | "proxy-addr": "~2.0.5", 525 | "qs": "6.7.0", 526 | "range-parser": "~1.2.1", 527 | "safe-buffer": "5.1.2", 528 | "send": "0.17.1", 529 | "serve-static": "1.14.1", 530 | "setprototypeof": "1.1.1", 531 | "statuses": "~1.5.0", 532 | "type-is": "~1.6.18", 533 | "utils-merge": "1.0.1", 534 | "vary": "~1.1.2" 535 | } 536 | }, 537 | "extend": { 538 | "version": "3.0.2", 539 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 540 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" 541 | }, 542 | "extsprintf": { 543 | "version": "1.3.0", 544 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 545 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 546 | }, 547 | "fast-deep-equal": { 548 | "version": "3.1.3", 549 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 550 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" 551 | }, 552 | "fast-json-stable-stringify": { 553 | "version": "2.1.0", 554 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 555 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" 556 | }, 557 | "fill-range": { 558 | "version": "7.0.1", 559 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 560 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 561 | "requires": { 562 | "to-regex-range": "^5.0.1" 563 | } 564 | }, 565 | "finalhandler": { 566 | "version": "1.1.2", 567 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 568 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 569 | "requires": { 570 | "debug": "2.6.9", 571 | "encodeurl": "~1.0.2", 572 | "escape-html": "~1.0.3", 573 | "on-finished": "~2.3.0", 574 | "parseurl": "~1.3.3", 575 | "statuses": "~1.5.0", 576 | "unpipe": "~1.0.0" 577 | } 578 | }, 579 | "forever-agent": { 580 | "version": "0.6.1", 581 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 582 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 583 | }, 584 | "form-data": { 585 | "version": "2.3.3", 586 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", 587 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", 588 | "requires": { 589 | "asynckit": "^0.4.0", 590 | "combined-stream": "^1.0.6", 591 | "mime-types": "^2.1.12" 592 | } 593 | }, 594 | "forwarded": { 595 | "version": "0.1.2", 596 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 597 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 598 | }, 599 | "fresh": { 600 | "version": "0.5.2", 601 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 602 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 603 | }, 604 | "fsevents": { 605 | "version": "2.1.3", 606 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", 607 | "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", 608 | "optional": true 609 | }, 610 | "get-stream": { 611 | "version": "4.1.0", 612 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 613 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 614 | "requires": { 615 | "pump": "^3.0.0" 616 | } 617 | }, 618 | "getpass": { 619 | "version": "0.1.7", 620 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 621 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 622 | "requires": { 623 | "assert-plus": "^1.0.0" 624 | } 625 | }, 626 | "glob-parent": { 627 | "version": "5.1.1", 628 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", 629 | "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", 630 | "requires": { 631 | "is-glob": "^4.0.1" 632 | } 633 | }, 634 | "global-dirs": { 635 | "version": "2.0.1", 636 | "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz", 637 | "integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==", 638 | "requires": { 639 | "ini": "^1.3.5" 640 | } 641 | }, 642 | "got": { 643 | "version": "9.6.0", 644 | "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", 645 | "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", 646 | "requires": { 647 | "@sindresorhus/is": "^0.14.0", 648 | "@szmarczak/http-timer": "^1.1.2", 649 | "cacheable-request": "^6.0.0", 650 | "decompress-response": "^3.3.0", 651 | "duplexer3": "^0.1.4", 652 | "get-stream": "^4.1.0", 653 | "lowercase-keys": "^1.0.1", 654 | "mimic-response": "^1.0.1", 655 | "p-cancelable": "^1.0.0", 656 | "to-readable-stream": "^1.0.0", 657 | "url-parse-lax": "^3.0.0" 658 | } 659 | }, 660 | "graceful-fs": { 661 | "version": "4.2.4", 662 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", 663 | "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==" 664 | }, 665 | "har-schema": { 666 | "version": "2.0.0", 667 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 668 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" 669 | }, 670 | "har-validator": { 671 | "version": "5.1.3", 672 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", 673 | "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", 674 | "requires": { 675 | "ajv": "^6.5.5", 676 | "har-schema": "^2.0.0" 677 | } 678 | }, 679 | "has-flag": { 680 | "version": "3.0.0", 681 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 682 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 683 | }, 684 | "has-yarn": { 685 | "version": "2.1.0", 686 | "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", 687 | "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==" 688 | }, 689 | "http-cache-semantics": { 690 | "version": "4.1.0", 691 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", 692 | "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" 693 | }, 694 | "http-errors": { 695 | "version": "1.7.2", 696 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 697 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 698 | "requires": { 699 | "depd": "~1.1.2", 700 | "inherits": "2.0.3", 701 | "setprototypeof": "1.1.1", 702 | "statuses": ">= 1.5.0 < 2", 703 | "toidentifier": "1.0.0" 704 | } 705 | }, 706 | "http-signature": { 707 | "version": "1.2.0", 708 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 709 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 710 | "requires": { 711 | "assert-plus": "^1.0.0", 712 | "jsprim": "^1.2.2", 713 | "sshpk": "^1.7.0" 714 | } 715 | }, 716 | "iconv-lite": { 717 | "version": "0.4.24", 718 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 719 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 720 | "requires": { 721 | "safer-buffer": ">= 2.1.2 < 3" 722 | } 723 | }, 724 | "ignore-by-default": { 725 | "version": "1.0.1", 726 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 727 | "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=" 728 | }, 729 | "import-lazy": { 730 | "version": "2.1.0", 731 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", 732 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=" 733 | }, 734 | "imurmurhash": { 735 | "version": "0.1.4", 736 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 737 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" 738 | }, 739 | "inherits": { 740 | "version": "2.0.3", 741 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 742 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 743 | }, 744 | "ini": { 745 | "version": "1.3.5", 746 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 747 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" 748 | }, 749 | "ipaddr.js": { 750 | "version": "1.9.1", 751 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 752 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 753 | }, 754 | "is-binary-path": { 755 | "version": "2.1.0", 756 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 757 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 758 | "requires": { 759 | "binary-extensions": "^2.0.0" 760 | } 761 | }, 762 | "is-ci": { 763 | "version": "2.0.0", 764 | "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", 765 | "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", 766 | "requires": { 767 | "ci-info": "^2.0.0" 768 | } 769 | }, 770 | "is-extglob": { 771 | "version": "2.1.1", 772 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 773 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" 774 | }, 775 | "is-fullwidth-code-point": { 776 | "version": "2.0.0", 777 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 778 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 779 | }, 780 | "is-glob": { 781 | "version": "4.0.1", 782 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 783 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 784 | "requires": { 785 | "is-extglob": "^2.1.1" 786 | } 787 | }, 788 | "is-installed-globally": { 789 | "version": "0.3.2", 790 | "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", 791 | "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", 792 | "requires": { 793 | "global-dirs": "^2.0.1", 794 | "is-path-inside": "^3.0.1" 795 | } 796 | }, 797 | "is-npm": { 798 | "version": "4.0.0", 799 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", 800 | "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==" 801 | }, 802 | "is-number": { 803 | "version": "7.0.0", 804 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 805 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" 806 | }, 807 | "is-obj": { 808 | "version": "2.0.0", 809 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", 810 | "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" 811 | }, 812 | "is-path-inside": { 813 | "version": "3.0.2", 814 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz", 815 | "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==" 816 | }, 817 | "is-typedarray": { 818 | "version": "1.0.0", 819 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 820 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 821 | }, 822 | "is-yarn-global": { 823 | "version": "0.3.0", 824 | "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", 825 | "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" 826 | }, 827 | "isstream": { 828 | "version": "0.1.2", 829 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 830 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 831 | }, 832 | "jsbn": { 833 | "version": "0.1.1", 834 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 835 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" 836 | }, 837 | "json-buffer": { 838 | "version": "3.0.0", 839 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", 840 | "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=" 841 | }, 842 | "json-schema": { 843 | "version": "0.2.3", 844 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 845 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 846 | }, 847 | "json-schema-traverse": { 848 | "version": "0.4.1", 849 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 850 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 851 | }, 852 | "json-stringify-safe": { 853 | "version": "5.0.1", 854 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 855 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 856 | }, 857 | "jsprim": { 858 | "version": "1.4.1", 859 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 860 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 861 | "requires": { 862 | "assert-plus": "1.0.0", 863 | "extsprintf": "1.3.0", 864 | "json-schema": "0.2.3", 865 | "verror": "1.10.0" 866 | } 867 | }, 868 | "keyv": { 869 | "version": "3.1.0", 870 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", 871 | "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", 872 | "requires": { 873 | "json-buffer": "3.0.0" 874 | } 875 | }, 876 | "latest-version": { 877 | "version": "5.1.0", 878 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", 879 | "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", 880 | "requires": { 881 | "package-json": "^6.3.0" 882 | } 883 | }, 884 | "lodash": { 885 | "version": "4.17.19", 886 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.19.tgz", 887 | "integrity": "sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==" 888 | }, 889 | "lowercase-keys": { 890 | "version": "1.0.1", 891 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 892 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" 893 | }, 894 | "make-dir": { 895 | "version": "3.1.0", 896 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 897 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 898 | "requires": { 899 | "semver": "^6.0.0" 900 | }, 901 | "dependencies": { 902 | "semver": { 903 | "version": "6.3.0", 904 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 905 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 906 | } 907 | } 908 | }, 909 | "media-typer": { 910 | "version": "0.3.0", 911 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 912 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 913 | }, 914 | "merge-descriptors": { 915 | "version": "1.0.1", 916 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 917 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 918 | }, 919 | "methods": { 920 | "version": "1.1.2", 921 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 922 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 923 | }, 924 | "mime": { 925 | "version": "1.6.0", 926 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 927 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 928 | }, 929 | "mime-db": { 930 | "version": "1.44.0", 931 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 932 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" 933 | }, 934 | "mime-types": { 935 | "version": "2.1.27", 936 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", 937 | "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", 938 | "requires": { 939 | "mime-db": "1.44.0" 940 | } 941 | }, 942 | "mimic-response": { 943 | "version": "1.0.1", 944 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 945 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" 946 | }, 947 | "minimatch": { 948 | "version": "3.0.4", 949 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 950 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 951 | "requires": { 952 | "brace-expansion": "^1.1.7" 953 | } 954 | }, 955 | "minimist": { 956 | "version": "1.2.5", 957 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 958 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" 959 | }, 960 | "ms": { 961 | "version": "2.0.0", 962 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 963 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 964 | }, 965 | "nanoid": { 966 | "version": "2.1.11", 967 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-2.1.11.tgz", 968 | "integrity": "sha512-s/snB+WGm6uwi0WjsZdaVcuf3KJXlfGl2LcxgwkEwJF0D/BWzVWAZW/XY4bFaiR7s0Jk3FPvlnepg1H1b1UwlA==" 969 | }, 970 | "negotiator": { 971 | "version": "0.6.2", 972 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 973 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 974 | }, 975 | "nodemon": { 976 | "version": "2.0.4", 977 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.4.tgz", 978 | "integrity": "sha512-Ltced+hIfTmaS28Zjv1BM552oQ3dbwPqI4+zI0SLgq+wpJhSyqgYude/aZa/3i31VCQWMfXJVxvu86abcam3uQ==", 979 | "requires": { 980 | "chokidar": "^3.2.2", 981 | "debug": "^3.2.6", 982 | "ignore-by-default": "^1.0.1", 983 | "minimatch": "^3.0.4", 984 | "pstree.remy": "^1.1.7", 985 | "semver": "^5.7.1", 986 | "supports-color": "^5.5.0", 987 | "touch": "^3.1.0", 988 | "undefsafe": "^2.0.2", 989 | "update-notifier": "^4.0.0" 990 | }, 991 | "dependencies": { 992 | "debug": { 993 | "version": "3.2.6", 994 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 995 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 996 | "requires": { 997 | "ms": "^2.1.1" 998 | } 999 | }, 1000 | "ms": { 1001 | "version": "2.1.2", 1002 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1003 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1004 | } 1005 | } 1006 | }, 1007 | "nopt": { 1008 | "version": "1.0.10", 1009 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 1010 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 1011 | "requires": { 1012 | "abbrev": "1" 1013 | } 1014 | }, 1015 | "normalize-path": { 1016 | "version": "3.0.0", 1017 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1018 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" 1019 | }, 1020 | "normalize-url": { 1021 | "version": "4.5.0", 1022 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", 1023 | "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==" 1024 | }, 1025 | "oauth-sign": { 1026 | "version": "0.9.0", 1027 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 1028 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" 1029 | }, 1030 | "object-assign": { 1031 | "version": "4.1.1", 1032 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1033 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1034 | }, 1035 | "on-finished": { 1036 | "version": "2.3.0", 1037 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1038 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1039 | "requires": { 1040 | "ee-first": "1.1.1" 1041 | } 1042 | }, 1043 | "once": { 1044 | "version": "1.4.0", 1045 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1046 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1047 | "requires": { 1048 | "wrappy": "1" 1049 | } 1050 | }, 1051 | "p-cancelable": { 1052 | "version": "1.1.0", 1053 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", 1054 | "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==" 1055 | }, 1056 | "package-json": { 1057 | "version": "6.5.0", 1058 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", 1059 | "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", 1060 | "requires": { 1061 | "got": "^9.6.0", 1062 | "registry-auth-token": "^4.0.0", 1063 | "registry-url": "^5.0.0", 1064 | "semver": "^6.2.0" 1065 | }, 1066 | "dependencies": { 1067 | "semver": { 1068 | "version": "6.3.0", 1069 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1070 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 1071 | } 1072 | } 1073 | }, 1074 | "parseurl": { 1075 | "version": "1.3.3", 1076 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1077 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1078 | }, 1079 | "path-to-regexp": { 1080 | "version": "0.1.7", 1081 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1082 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1083 | }, 1084 | "performance-now": { 1085 | "version": "2.1.0", 1086 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 1087 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" 1088 | }, 1089 | "picomatch": { 1090 | "version": "2.2.2", 1091 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", 1092 | "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" 1093 | }, 1094 | "prepend-http": { 1095 | "version": "2.0.0", 1096 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", 1097 | "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" 1098 | }, 1099 | "promise": { 1100 | "version": "8.1.0", 1101 | "resolved": "https://registry.npmjs.org/promise/-/promise-8.1.0.tgz", 1102 | "integrity": "sha512-W04AqnILOL/sPRXziNicCjSNRruLAuIHEOVBazepu0545DDNGYHz7ar9ZgZ1fMU8/MA4mVxp5rkBWRi6OXIy3Q==", 1103 | "requires": { 1104 | "asap": "~2.0.6" 1105 | } 1106 | }, 1107 | "proxy-addr": { 1108 | "version": "2.0.6", 1109 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 1110 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 1111 | "requires": { 1112 | "forwarded": "~0.1.2", 1113 | "ipaddr.js": "1.9.1" 1114 | } 1115 | }, 1116 | "psl": { 1117 | "version": "1.8.0", 1118 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", 1119 | "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==" 1120 | }, 1121 | "pstree.remy": { 1122 | "version": "1.1.8", 1123 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1124 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==" 1125 | }, 1126 | "pump": { 1127 | "version": "3.0.0", 1128 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 1129 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 1130 | "requires": { 1131 | "end-of-stream": "^1.1.0", 1132 | "once": "^1.3.1" 1133 | } 1134 | }, 1135 | "punycode": { 1136 | "version": "2.1.1", 1137 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1138 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 1139 | }, 1140 | "pupa": { 1141 | "version": "2.0.1", 1142 | "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz", 1143 | "integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA==", 1144 | "requires": { 1145 | "escape-goat": "^2.0.0" 1146 | } 1147 | }, 1148 | "qs": { 1149 | "version": "6.7.0", 1150 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1151 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 1152 | }, 1153 | "range-parser": { 1154 | "version": "1.2.1", 1155 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1156 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 1157 | }, 1158 | "raw-body": { 1159 | "version": "2.4.0", 1160 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1161 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1162 | "requires": { 1163 | "bytes": "3.1.0", 1164 | "http-errors": "1.7.2", 1165 | "iconv-lite": "0.4.24", 1166 | "unpipe": "1.0.0" 1167 | } 1168 | }, 1169 | "razorpay": { 1170 | "version": "2.0.6", 1171 | "resolved": "https://registry.npmjs.org/razorpay/-/razorpay-2.0.6.tgz", 1172 | "integrity": "sha512-tWdV+WfRuuQSGQcGtUXmsPx5WO3QPrEKegy+AbGWT1STD5kxIYW0KHjdspu7YnTTP3q7ekwHDUYYjG8zSR5IiQ==", 1173 | "requires": { 1174 | "promise": "^8.0.1", 1175 | "request": "^2.88.0", 1176 | "request-promise": "^4.2.2" 1177 | } 1178 | }, 1179 | "rc": { 1180 | "version": "1.2.8", 1181 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 1182 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 1183 | "requires": { 1184 | "deep-extend": "^0.6.0", 1185 | "ini": "~1.3.0", 1186 | "minimist": "^1.2.0", 1187 | "strip-json-comments": "~2.0.1" 1188 | } 1189 | }, 1190 | "readdirp": { 1191 | "version": "3.4.0", 1192 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz", 1193 | "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==", 1194 | "requires": { 1195 | "picomatch": "^2.2.1" 1196 | } 1197 | }, 1198 | "registry-auth-token": { 1199 | "version": "4.2.0", 1200 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.0.tgz", 1201 | "integrity": "sha512-P+lWzPrsgfN+UEpDS3U8AQKg/UjZX6mQSJueZj3EK+vNESoqBSpBUD3gmu4sF9lOsjXWjF11dQKUqemf3veq1w==", 1202 | "requires": { 1203 | "rc": "^1.2.8" 1204 | } 1205 | }, 1206 | "registry-url": { 1207 | "version": "5.1.0", 1208 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", 1209 | "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", 1210 | "requires": { 1211 | "rc": "^1.2.8" 1212 | } 1213 | }, 1214 | "request": { 1215 | "version": "2.88.2", 1216 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", 1217 | "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", 1218 | "requires": { 1219 | "aws-sign2": "~0.7.0", 1220 | "aws4": "^1.8.0", 1221 | "caseless": "~0.12.0", 1222 | "combined-stream": "~1.0.6", 1223 | "extend": "~3.0.2", 1224 | "forever-agent": "~0.6.1", 1225 | "form-data": "~2.3.2", 1226 | "har-validator": "~5.1.3", 1227 | "http-signature": "~1.2.0", 1228 | "is-typedarray": "~1.0.0", 1229 | "isstream": "~0.1.2", 1230 | "json-stringify-safe": "~5.0.1", 1231 | "mime-types": "~2.1.19", 1232 | "oauth-sign": "~0.9.0", 1233 | "performance-now": "^2.1.0", 1234 | "qs": "~6.5.2", 1235 | "safe-buffer": "^5.1.2", 1236 | "tough-cookie": "~2.5.0", 1237 | "tunnel-agent": "^0.6.0", 1238 | "uuid": "^3.3.2" 1239 | }, 1240 | "dependencies": { 1241 | "qs": { 1242 | "version": "6.5.2", 1243 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 1244 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" 1245 | } 1246 | } 1247 | }, 1248 | "request-promise": { 1249 | "version": "4.2.5", 1250 | "resolved": "https://registry.npmjs.org/request-promise/-/request-promise-4.2.5.tgz", 1251 | "integrity": "sha512-ZgnepCykFdmpq86fKGwqntyTiUrHycALuGggpyCZwMvGaZWgxW6yagT0FHkgo5LzYvOaCNvxYwWYIjevSH1EDg==", 1252 | "requires": { 1253 | "bluebird": "^3.5.0", 1254 | "request-promise-core": "1.1.3", 1255 | "stealthy-require": "^1.1.1", 1256 | "tough-cookie": "^2.3.3" 1257 | } 1258 | }, 1259 | "request-promise-core": { 1260 | "version": "1.1.3", 1261 | "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.3.tgz", 1262 | "integrity": "sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ==", 1263 | "requires": { 1264 | "lodash": "^4.17.15" 1265 | } 1266 | }, 1267 | "responselike": { 1268 | "version": "1.0.2", 1269 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", 1270 | "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", 1271 | "requires": { 1272 | "lowercase-keys": "^1.0.0" 1273 | } 1274 | }, 1275 | "safe-buffer": { 1276 | "version": "5.1.2", 1277 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1278 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1279 | }, 1280 | "safer-buffer": { 1281 | "version": "2.1.2", 1282 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1283 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1284 | }, 1285 | "semver": { 1286 | "version": "5.7.1", 1287 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1288 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" 1289 | }, 1290 | "semver-diff": { 1291 | "version": "3.1.1", 1292 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", 1293 | "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", 1294 | "requires": { 1295 | "semver": "^6.3.0" 1296 | }, 1297 | "dependencies": { 1298 | "semver": { 1299 | "version": "6.3.0", 1300 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1301 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 1302 | } 1303 | } 1304 | }, 1305 | "send": { 1306 | "version": "0.17.1", 1307 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 1308 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 1309 | "requires": { 1310 | "debug": "2.6.9", 1311 | "depd": "~1.1.2", 1312 | "destroy": "~1.0.4", 1313 | "encodeurl": "~1.0.2", 1314 | "escape-html": "~1.0.3", 1315 | "etag": "~1.8.1", 1316 | "fresh": "0.5.2", 1317 | "http-errors": "~1.7.2", 1318 | "mime": "1.6.0", 1319 | "ms": "2.1.1", 1320 | "on-finished": "~2.3.0", 1321 | "range-parser": "~1.2.1", 1322 | "statuses": "~1.5.0" 1323 | }, 1324 | "dependencies": { 1325 | "ms": { 1326 | "version": "2.1.1", 1327 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1328 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1329 | } 1330 | } 1331 | }, 1332 | "serve-static": { 1333 | "version": "1.14.1", 1334 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 1335 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 1336 | "requires": { 1337 | "encodeurl": "~1.0.2", 1338 | "escape-html": "~1.0.3", 1339 | "parseurl": "~1.3.3", 1340 | "send": "0.17.1" 1341 | } 1342 | }, 1343 | "setprototypeof": { 1344 | "version": "1.1.1", 1345 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1346 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 1347 | }, 1348 | "shortid": { 1349 | "version": "2.2.15", 1350 | "resolved": "https://registry.npmjs.org/shortid/-/shortid-2.2.15.tgz", 1351 | "integrity": "sha512-5EaCy2mx2Jgc/Fdn9uuDuNIIfWBpzY4XIlhoqtXF6qsf+/+SGZ+FxDdX/ZsMZiWupIWNqAEmiNY4RC+LSmCeOw==", 1352 | "requires": { 1353 | "nanoid": "^2.1.0" 1354 | } 1355 | }, 1356 | "signal-exit": { 1357 | "version": "3.0.3", 1358 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 1359 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==" 1360 | }, 1361 | "sshpk": { 1362 | "version": "1.16.1", 1363 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", 1364 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", 1365 | "requires": { 1366 | "asn1": "~0.2.3", 1367 | "assert-plus": "^1.0.0", 1368 | "bcrypt-pbkdf": "^1.0.0", 1369 | "dashdash": "^1.12.0", 1370 | "ecc-jsbn": "~0.1.1", 1371 | "getpass": "^0.1.1", 1372 | "jsbn": "~0.1.0", 1373 | "safer-buffer": "^2.0.2", 1374 | "tweetnacl": "~0.14.0" 1375 | } 1376 | }, 1377 | "statuses": { 1378 | "version": "1.5.0", 1379 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1380 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 1381 | }, 1382 | "stealthy-require": { 1383 | "version": "1.1.1", 1384 | "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", 1385 | "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" 1386 | }, 1387 | "string-width": { 1388 | "version": "4.2.0", 1389 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", 1390 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", 1391 | "requires": { 1392 | "emoji-regex": "^8.0.0", 1393 | "is-fullwidth-code-point": "^3.0.0", 1394 | "strip-ansi": "^6.0.0" 1395 | }, 1396 | "dependencies": { 1397 | "ansi-regex": { 1398 | "version": "5.0.0", 1399 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", 1400 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==" 1401 | }, 1402 | "emoji-regex": { 1403 | "version": "8.0.0", 1404 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1405 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 1406 | }, 1407 | "is-fullwidth-code-point": { 1408 | "version": "3.0.0", 1409 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1410 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" 1411 | }, 1412 | "strip-ansi": { 1413 | "version": "6.0.0", 1414 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 1415 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 1416 | "requires": { 1417 | "ansi-regex": "^5.0.0" 1418 | } 1419 | } 1420 | } 1421 | }, 1422 | "strip-ansi": { 1423 | "version": "5.2.0", 1424 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1425 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1426 | "requires": { 1427 | "ansi-regex": "^4.1.0" 1428 | } 1429 | }, 1430 | "strip-json-comments": { 1431 | "version": "2.0.1", 1432 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1433 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" 1434 | }, 1435 | "supports-color": { 1436 | "version": "5.5.0", 1437 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1438 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1439 | "requires": { 1440 | "has-flag": "^3.0.0" 1441 | } 1442 | }, 1443 | "term-size": { 1444 | "version": "2.2.0", 1445 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.0.tgz", 1446 | "integrity": "sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==" 1447 | }, 1448 | "to-readable-stream": { 1449 | "version": "1.0.0", 1450 | "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", 1451 | "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==" 1452 | }, 1453 | "to-regex-range": { 1454 | "version": "5.0.1", 1455 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1456 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1457 | "requires": { 1458 | "is-number": "^7.0.0" 1459 | } 1460 | }, 1461 | "toidentifier": { 1462 | "version": "1.0.0", 1463 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 1464 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 1465 | }, 1466 | "touch": { 1467 | "version": "3.1.0", 1468 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 1469 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 1470 | "requires": { 1471 | "nopt": "~1.0.10" 1472 | } 1473 | }, 1474 | "tough-cookie": { 1475 | "version": "2.5.0", 1476 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", 1477 | "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", 1478 | "requires": { 1479 | "psl": "^1.1.28", 1480 | "punycode": "^2.1.1" 1481 | } 1482 | }, 1483 | "tunnel-agent": { 1484 | "version": "0.6.0", 1485 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 1486 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 1487 | "requires": { 1488 | "safe-buffer": "^5.0.1" 1489 | } 1490 | }, 1491 | "tweetnacl": { 1492 | "version": "0.14.5", 1493 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 1494 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" 1495 | }, 1496 | "type-fest": { 1497 | "version": "0.8.1", 1498 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 1499 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" 1500 | }, 1501 | "type-is": { 1502 | "version": "1.6.18", 1503 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1504 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1505 | "requires": { 1506 | "media-typer": "0.3.0", 1507 | "mime-types": "~2.1.24" 1508 | } 1509 | }, 1510 | "typedarray-to-buffer": { 1511 | "version": "3.1.5", 1512 | "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", 1513 | "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", 1514 | "requires": { 1515 | "is-typedarray": "^1.0.0" 1516 | } 1517 | }, 1518 | "undefsafe": { 1519 | "version": "2.0.3", 1520 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", 1521 | "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", 1522 | "requires": { 1523 | "debug": "^2.2.0" 1524 | } 1525 | }, 1526 | "unique-string": { 1527 | "version": "2.0.0", 1528 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", 1529 | "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", 1530 | "requires": { 1531 | "crypto-random-string": "^2.0.0" 1532 | } 1533 | }, 1534 | "unpipe": { 1535 | "version": "1.0.0", 1536 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1537 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 1538 | }, 1539 | "update-notifier": { 1540 | "version": "4.1.0", 1541 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.0.tgz", 1542 | "integrity": "sha512-w3doE1qtI0/ZmgeoDoARmI5fjDoT93IfKgEGqm26dGUOh8oNpaSTsGNdYRN/SjOuo10jcJGwkEL3mroKzktkew==", 1543 | "requires": { 1544 | "boxen": "^4.2.0", 1545 | "chalk": "^3.0.0", 1546 | "configstore": "^5.0.1", 1547 | "has-yarn": "^2.1.0", 1548 | "import-lazy": "^2.1.0", 1549 | "is-ci": "^2.0.0", 1550 | "is-installed-globally": "^0.3.1", 1551 | "is-npm": "^4.0.0", 1552 | "is-yarn-global": "^0.3.0", 1553 | "latest-version": "^5.0.0", 1554 | "pupa": "^2.0.1", 1555 | "semver-diff": "^3.1.1", 1556 | "xdg-basedir": "^4.0.0" 1557 | } 1558 | }, 1559 | "uri-js": { 1560 | "version": "4.2.2", 1561 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 1562 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 1563 | "requires": { 1564 | "punycode": "^2.1.0" 1565 | } 1566 | }, 1567 | "url-parse-lax": { 1568 | "version": "3.0.0", 1569 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", 1570 | "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", 1571 | "requires": { 1572 | "prepend-http": "^2.0.0" 1573 | } 1574 | }, 1575 | "utils-merge": { 1576 | "version": "1.0.1", 1577 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1578 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 1579 | }, 1580 | "uuid": { 1581 | "version": "3.4.0", 1582 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", 1583 | "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" 1584 | }, 1585 | "vary": { 1586 | "version": "1.1.2", 1587 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1588 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 1589 | }, 1590 | "verror": { 1591 | "version": "1.10.0", 1592 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 1593 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 1594 | "requires": { 1595 | "assert-plus": "^1.0.0", 1596 | "core-util-is": "1.0.2", 1597 | "extsprintf": "^1.2.0" 1598 | } 1599 | }, 1600 | "widest-line": { 1601 | "version": "3.1.0", 1602 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", 1603 | "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", 1604 | "requires": { 1605 | "string-width": "^4.0.0" 1606 | } 1607 | }, 1608 | "wrappy": { 1609 | "version": "1.0.2", 1610 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1611 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1612 | }, 1613 | "write-file-atomic": { 1614 | "version": "3.0.3", 1615 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", 1616 | "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", 1617 | "requires": { 1618 | "imurmurhash": "^0.1.4", 1619 | "is-typedarray": "^1.0.0", 1620 | "signal-exit": "^3.0.2", 1621 | "typedarray-to-buffer": "^3.1.5" 1622 | } 1623 | }, 1624 | "xdg-basedir": { 1625 | "version": "4.0.0", 1626 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", 1627 | "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==" 1628 | } 1629 | } 1630 | } 1631 | -------------------------------------------------------------------------------- /razorpay-backend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "razorpay-backend", 3 | "version": "1.0.0", 4 | "description": "NodeJs backend for Razorpay payment portal ", 5 | "main": "app.js", 6 | "scripts": { 7 | "dev": "nodemon app.js", 8 | "start": "node app.js" 9 | }, 10 | "author": "Rajat Sablok", 11 | "license": "MIT", 12 | "dependencies": { 13 | "body-parser": "^1.19.0", 14 | "cors": "^2.8.5", 15 | "express": "^4.17.1", 16 | "nodemon": "^2.0.4", 17 | "razorpay": "^2.0.6", 18 | "shortid": "^2.2.15" 19 | }, 20 | "devDependencies": { 21 | "dotenv": "^8.2.0" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /razorpay-frontend/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /razorpay-frontend/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `yarn start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `yarn test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `yarn build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `yarn eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `yarn build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /razorpay-frontend/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "razorpay-frontend", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^4.2.4", 7 | "@testing-library/react": "^9.3.2", 8 | "@testing-library/user-event": "^7.1.2", 9 | "react": "^16.13.1", 10 | "react-dom": "^16.13.1", 11 | "react-scripts": "3.4.1" 12 | }, 13 | "scripts": { 14 | "start": "react-scripts start", 15 | "build": "react-scripts build", 16 | "test": "react-scripts test", 17 | "eject": "react-scripts eject" 18 | }, 19 | "eslintConfig": { 20 | "extends": "react-app" 21 | }, 22 | "browserslist": { 23 | "production": [ 24 | ">0.2%", 25 | "not dead", 26 | "not op_mini all" 27 | ], 28 | "development": [ 29 | "last 1 chrome version", 30 | "last 1 firefox version", 31 | "last 1 safari version" 32 | ] 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /razorpay-frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RajatSablok/nodejs-razorpay/c834ae9da2d59c121af40fadd0b94e67ba9f3db4/razorpay-frontend/public/favicon.ico -------------------------------------------------------------------------------- /razorpay-frontend/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /razorpay-frontend/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RajatSablok/nodejs-razorpay/c834ae9da2d59c121af40fadd0b94e67ba9f3db4/razorpay-frontend/public/logo192.png -------------------------------------------------------------------------------- /razorpay-frontend/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RajatSablok/nodejs-razorpay/c834ae9da2d59c121af40fadd0b94e67ba9f3db4/razorpay-frontend/public/logo512.png -------------------------------------------------------------------------------- /razorpay-frontend/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /razorpay-frontend/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /razorpay-frontend/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /razorpay-frontend/src/App.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import logo from "./logo.svg"; 3 | import "./App.css"; 4 | 5 | function loadScript(src) { 6 | return new Promise((resolve) => { 7 | const script = document.createElement("script"); 8 | script.src = src; 9 | script.onload = () => { 10 | resolve(true); 11 | }; 12 | script.onerror = () => { 13 | resolve(false); 14 | }; 15 | document.body.appendChild(script); 16 | }); 17 | } 18 | 19 | function App() { 20 | async function showRazorpay() { 21 | const res = await loadScript( 22 | "https://checkout.razorpay.com/v1/checkout.js" 23 | ); 24 | 25 | if (!res) { 26 | alert("Razorpay SDK failed to load. Are you online?"); 27 | return; 28 | } 29 | 30 | const data = await fetch("http://localhost:1337/razorpay", { 31 | method: "POST", 32 | }).then((t) => t.json()); 33 | 34 | console.log(data); 35 | 36 | const options = { 37 | key: "rzp_test_0tpemkHKm5K1Bc", 38 | currency: data.currency, 39 | amount: data.amount.toString(), 40 | order_id: data.id, 41 | name: "Donation", 42 | description: "Thank you for nothing. Please give us some money", 43 | image: "http://localhost:1337/logo.svg", 44 | handler: function (response) { 45 | // alert(response.razorpay_payment_id); 46 | // alert(response.razorpay_order_id); 47 | // alert(response.razorpay_signature); 48 | 49 | alert("Transaction successful"); 50 | }, 51 | prefill: { 52 | name: "Rajat", 53 | email: "rajat@rajat.com", 54 | phone_number: "9899999999", 55 | }, 56 | }; 57 | const paymentObject = new window.Razorpay(options); 58 | paymentObject.open(); 59 | } 60 | 61 | return ( 62 |
63 |
64 | logo 65 |

Razorpay payment portal ezzzz

66 | 72 | Pay now 73 | 74 |
75 |
76 | ); 77 | } 78 | 79 | export default App; 80 | -------------------------------------------------------------------------------- /razorpay-frontend/src/App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { render } from '@testing-library/react'; 3 | import App from './App'; 4 | 5 | test('renders learn react link', () => { 6 | const { getByText } = render(); 7 | const linkElement = getByText(/learn react/i); 8 | expect(linkElement).toBeInTheDocument(); 9 | }); 10 | -------------------------------------------------------------------------------- /razorpay-frontend/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /razorpay-frontend/src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import './index.css'; 4 | import App from './App'; 5 | import * as serviceWorker from './serviceWorker'; 6 | 7 | ReactDOM.render( 8 | 9 | 10 | , 11 | document.getElementById('root') 12 | ); 13 | 14 | // If you want your app to work offline and load faster, you can change 15 | // unregister() to register() below. Note this comes with some pitfalls. 16 | // Learn more about service workers: https://bit.ly/CRA-PWA 17 | serviceWorker.unregister(); 18 | -------------------------------------------------------------------------------- /razorpay-frontend/src/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /razorpay-frontend/src/serviceWorker.js: -------------------------------------------------------------------------------- 1 | // This optional code is used to register a service worker. 2 | // register() is not called by default. 3 | 4 | // This lets the app load faster on subsequent visits in production, and gives 5 | // it offline capabilities. However, it also means that developers (and users) 6 | // will only see deployed updates on subsequent visits to a page, after all the 7 | // existing tabs open on the page have been closed, since previously cached 8 | // resources are updated in the background. 9 | 10 | // To learn more about the benefits of this model and instructions on how to 11 | // opt-in, read https://bit.ly/CRA-PWA 12 | 13 | const isLocalhost = Boolean( 14 | window.location.hostname === 'localhost' || 15 | // [::1] is the IPv6 localhost address. 16 | window.location.hostname === '[::1]' || 17 | // 127.0.0.0/8 are considered localhost for IPv4. 18 | window.location.hostname.match( 19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ 20 | ) 21 | ); 22 | 23 | export function register(config) { 24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { 25 | // The URL constructor is available in all browsers that support SW. 26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href); 27 | if (publicUrl.origin !== window.location.origin) { 28 | // Our service worker won't work if PUBLIC_URL is on a different origin 29 | // from what our page is served on. This might happen if a CDN is used to 30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374 31 | return; 32 | } 33 | 34 | window.addEventListener('load', () => { 35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; 36 | 37 | if (isLocalhost) { 38 | // This is running on localhost. Let's check if a service worker still exists or not. 39 | checkValidServiceWorker(swUrl, config); 40 | 41 | // Add some additional logging to localhost, pointing developers to the 42 | // service worker/PWA documentation. 43 | navigator.serviceWorker.ready.then(() => { 44 | console.log( 45 | 'This web app is being served cache-first by a service ' + 46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA' 47 | ); 48 | }); 49 | } else { 50 | // Is not localhost. Just register service worker 51 | registerValidSW(swUrl, config); 52 | } 53 | }); 54 | } 55 | } 56 | 57 | function registerValidSW(swUrl, config) { 58 | navigator.serviceWorker 59 | .register(swUrl) 60 | .then(registration => { 61 | registration.onupdatefound = () => { 62 | const installingWorker = registration.installing; 63 | if (installingWorker == null) { 64 | return; 65 | } 66 | installingWorker.onstatechange = () => { 67 | if (installingWorker.state === 'installed') { 68 | if (navigator.serviceWorker.controller) { 69 | // At this point, the updated precached content has been fetched, 70 | // but the previous service worker will still serve the older 71 | // content until all client tabs are closed. 72 | console.log( 73 | 'New content is available and will be used when all ' + 74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' 75 | ); 76 | 77 | // Execute callback 78 | if (config && config.onUpdate) { 79 | config.onUpdate(registration); 80 | } 81 | } else { 82 | // At this point, everything has been precached. 83 | // It's the perfect time to display a 84 | // "Content is cached for offline use." message. 85 | console.log('Content is cached for offline use.'); 86 | 87 | // Execute callback 88 | if (config && config.onSuccess) { 89 | config.onSuccess(registration); 90 | } 91 | } 92 | } 93 | }; 94 | }; 95 | }) 96 | .catch(error => { 97 | console.error('Error during service worker registration:', error); 98 | }); 99 | } 100 | 101 | function checkValidServiceWorker(swUrl, config) { 102 | // Check if the service worker can be found. If it can't reload the page. 103 | fetch(swUrl, { 104 | headers: { 'Service-Worker': 'script' }, 105 | }) 106 | .then(response => { 107 | // Ensure service worker exists, and that we really are getting a JS file. 108 | const contentType = response.headers.get('content-type'); 109 | if ( 110 | response.status === 404 || 111 | (contentType != null && contentType.indexOf('javascript') === -1) 112 | ) { 113 | // No service worker found. Probably a different app. Reload the page. 114 | navigator.serviceWorker.ready.then(registration => { 115 | registration.unregister().then(() => { 116 | window.location.reload(); 117 | }); 118 | }); 119 | } else { 120 | // Service worker found. Proceed as normal. 121 | registerValidSW(swUrl, config); 122 | } 123 | }) 124 | .catch(() => { 125 | console.log( 126 | 'No internet connection found. App is running in offline mode.' 127 | ); 128 | }); 129 | } 130 | 131 | export function unregister() { 132 | if ('serviceWorker' in navigator) { 133 | navigator.serviceWorker.ready 134 | .then(registration => { 135 | registration.unregister(); 136 | }) 137 | .catch(error => { 138 | console.error(error.message); 139 | }); 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /razorpay-frontend/src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom/extend-expect'; 6 | --------------------------------------------------------------------------------