From e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d Mon Sep 17 00:00:00 2001 From: Piotr Russ Date: Mon, 16 Nov 2020 00:10:28 +0100 Subject: api, login, auth --- node_modules/builtin-status-codes/browser.js | 64 +++++++++++++++++++++++ node_modules/builtin-status-codes/build.js | 8 +++ node_modules/builtin-status-codes/index.js | 3 ++ node_modules/builtin-status-codes/license | 21 ++++++++ node_modules/builtin-status-codes/package.json | 71 ++++++++++++++++++++++++++ node_modules/builtin-status-codes/readme.md | 31 +++++++++++ 6 files changed, 198 insertions(+) create mode 100644 node_modules/builtin-status-codes/browser.js create mode 100644 node_modules/builtin-status-codes/build.js create mode 100644 node_modules/builtin-status-codes/index.js create mode 100644 node_modules/builtin-status-codes/license create mode 100644 node_modules/builtin-status-codes/package.json create mode 100644 node_modules/builtin-status-codes/readme.md (limited to 'node_modules/builtin-status-codes') diff --git a/node_modules/builtin-status-codes/browser.js b/node_modules/builtin-status-codes/browser.js new file mode 100644 index 0000000..4ee0d11 --- /dev/null +++ b/node_modules/builtin-status-codes/browser.js @@ -0,0 +1,64 @@ +module.exports = { + "100": "Continue", + "101": "Switching Protocols", + "102": "Processing", + "200": "OK", + "201": "Created", + "202": "Accepted", + "203": "Non-Authoritative Information", + "204": "No Content", + "205": "Reset Content", + "206": "Partial Content", + "207": "Multi-Status", + "208": "Already Reported", + "226": "IM Used", + "300": "Multiple Choices", + "301": "Moved Permanently", + "302": "Found", + "303": "See Other", + "304": "Not Modified", + "305": "Use Proxy", + "307": "Temporary Redirect", + "308": "Permanent Redirect", + "400": "Bad Request", + "401": "Unauthorized", + "402": "Payment Required", + "403": "Forbidden", + "404": "Not Found", + "405": "Method Not Allowed", + "406": "Not Acceptable", + "407": "Proxy Authentication Required", + "408": "Request Timeout", + "409": "Conflict", + "410": "Gone", + "411": "Length Required", + "412": "Precondition Failed", + "413": "Payload Too Large", + "414": "URI Too Long", + "415": "Unsupported Media Type", + "416": "Range Not Satisfiable", + "417": "Expectation Failed", + "418": "I'm a teapot", + "421": "Misdirected Request", + "422": "Unprocessable Entity", + "423": "Locked", + "424": "Failed Dependency", + "425": "Unordered Collection", + "426": "Upgrade Required", + "428": "Precondition Required", + "429": "Too Many Requests", + "431": "Request Header Fields Too Large", + "451": "Unavailable For Legal Reasons", + "500": "Internal Server Error", + "501": "Not Implemented", + "502": "Bad Gateway", + "503": "Service Unavailable", + "504": "Gateway Timeout", + "505": "HTTP Version Not Supported", + "506": "Variant Also Negotiates", + "507": "Insufficient Storage", + "508": "Loop Detected", + "509": "Bandwidth Limit Exceeded", + "510": "Not Extended", + "511": "Network Authentication Required" +} diff --git a/node_modules/builtin-status-codes/build.js b/node_modules/builtin-status-codes/build.js new file mode 100644 index 0000000..8fc305c --- /dev/null +++ b/node_modules/builtin-status-codes/build.js @@ -0,0 +1,8 @@ +'use strict' + +var fs = require('fs') +var statusCodes = require('./') + +var code = 'module.exports = ' + JSON.stringify(statusCodes, null, 2) + '\n' + +fs.writeFileSync('browser.js', code) diff --git a/node_modules/builtin-status-codes/index.js b/node_modules/builtin-status-codes/index.js new file mode 100644 index 0000000..4a158ac --- /dev/null +++ b/node_modules/builtin-status-codes/index.js @@ -0,0 +1,3 @@ +'use strict' + +module.exports = require('http').STATUS_CODES diff --git a/node_modules/builtin-status-codes/license b/node_modules/builtin-status-codes/license new file mode 100644 index 0000000..25c6247 --- /dev/null +++ b/node_modules/builtin-status-codes/license @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Ben Drucker (bendrucker.me) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/builtin-status-codes/package.json b/node_modules/builtin-status-codes/package.json new file mode 100644 index 0000000..7d6df46 --- /dev/null +++ b/node_modules/builtin-status-codes/package.json @@ -0,0 +1,71 @@ +{ + "_from": "builtin-status-codes@^3.0.0", + "_id": "builtin-status-codes@3.0.0", + "_inBundle": false, + "_integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", + "_location": "/builtin-status-codes", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "builtin-status-codes@^3.0.0", + "name": "builtin-status-codes", + "escapedName": "builtin-status-codes", + "rawSpec": "^3.0.0", + "saveSpec": null, + "fetchSpec": "^3.0.0" + }, + "_requiredBy": [ + "/stream-http" + ], + "_resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "_shasum": "85982878e21b98e1c66425e03d0174788f569ee8", + "_spec": "builtin-status-codes@^3.0.0", + "_where": "/home/pruss/Dev/3-minute-website/node_modules/stream-http", + "author": { + "name": "Ben Drucker", + "email": "bvdrucker@gmail.com", + "url": "bendrucker.me" + }, + "browser": "browser.js", + "bugs": { + "url": "https://github.com/bendrucker/builtin-status-codes/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "The map of HTTP status codes from the builtin http module", + "devDependencies": { + "standard": "^4.0.0", + "tape": "^4.0.0" + }, + "files": [ + "index.js", + "browser.js", + "build.js" + ], + "homepage": "https://github.com/bendrucker/builtin-status-codes#readme", + "keywords": [ + "http", + "status", + "codes", + "builtin", + "map" + ], + "license": "MIT", + "main": "index.js", + "name": "builtin-status-codes", + "repository": { + "type": "git", + "url": "git+https://github.com/bendrucker/builtin-status-codes.git" + }, + "scripts": { + "build": "node build.js", + "test": "standard && tape test.js" + }, + "standard": { + "ignore": [ + "browser.js" + ] + }, + "version": "3.0.0" +} diff --git a/node_modules/builtin-status-codes/readme.md b/node_modules/builtin-status-codes/readme.md new file mode 100644 index 0000000..9a2353d --- /dev/null +++ b/node_modules/builtin-status-codes/readme.md @@ -0,0 +1,31 @@ +# builtin-status-codes [![Build Status](https://travis-ci.org/bendrucker/builtin-status-codes.svg?branch=master)](https://travis-ci.org/bendrucker/builtin-status-codes) + +> The map of HTTP status codes from the builtin http module. Exposes the latest directly from `http` in Node, with a zero-dependencies version for the browser. + + +## Install + +``` +$ npm install --save builtin-status-codes +``` + + +## Usage + +```js +var codes = require('builtin-status-codes') +codes[100] +//=> Continue +``` + +## Build + +To create a new browser build: + +```sh +$ npm run build +``` + +## License + +MIT © [Ben Drucker](http://bendrucker.me) -- cgit v1.2.3