Einkaufslisten anzeigen, Datenbankeinbindung

This commit is contained in:
Lukas Nowy
2018-10-27 01:10:46 +02:00
parent 5e3c83707f
commit 8e7d96310f
425 changed files with 77158 additions and 3 deletions

31
express-server/node_modules/postgres-bytea/index.js generated vendored Normal file
View File

@ -0,0 +1,31 @@
'use strict'
module.exports = function parseBytea (input) {
if (/^\\x/.test(input)) {
// new 'hex' style response (pg >9.0)
return new Buffer(input.substr(2), 'hex')
}
var output = ''
var i = 0
while (i < input.length) {
if (input[i] !== '\\') {
output += input[i]
++i
} else {
if (/[0-7]{3}/.test(input.substr(i + 1, 3))) {
output += String.fromCharCode(parseInt(input.substr(i + 1, 3), 8))
i += 4
} else {
var backslashes = 1
while (i + backslashes < input.length && input[i + backslashes] === '\\') {
backslashes++
}
for (var k = 0; k < Math.floor(backslashes / 2); ++k) {
output += '\\'
}
i += Math.floor(backslashes / 2) * 2
}
}
}
return new Buffer(output, 'binary')
}

21
express-server/node_modules/postgres-bytea/license generated vendored Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (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.

View File

@ -0,0 +1,66 @@
{
"_from": "postgres-bytea@~1.0.0",
"_id": "postgres-bytea@1.0.0",
"_inBundle": false,
"_integrity": "sha1-AntTPAqokOJtFy1Hz5zOzFIazTU=",
"_location": "/postgres-bytea",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "postgres-bytea@~1.0.0",
"name": "postgres-bytea",
"escapedName": "postgres-bytea",
"rawSpec": "~1.0.0",
"saveSpec": null,
"fetchSpec": "~1.0.0"
},
"_requiredBy": [
"/pg-types"
],
"_resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz",
"_shasum": "027b533c0aa890e26d172d47cf9ccecc521acd35",
"_spec": "postgres-bytea@~1.0.0",
"_where": "D:\\5CHITM\\Diplomarbeit\\smart-shopper\\SmartShopper\\express-server\\node_modules\\pg-types",
"author": {
"name": "Ben Drucker",
"email": "bvdrucker@gmail.com",
"url": "bendrucker.me"
},
"bugs": {
"url": "https://github.com/bendrucker/postgres-bytea/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Postgres bytea parser",
"devDependencies": {
"standard": "^4.0.0",
"tape": "^4.0.0"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js",
"readme.md"
],
"homepage": "https://github.com/bendrucker/postgres-bytea#readme",
"keywords": [
"bytea",
"postgres",
"binary",
"parser"
],
"license": "MIT",
"main": "index.js",
"name": "postgres-bytea",
"repository": {
"type": "git",
"url": "git+https://github.com/bendrucker/postgres-bytea.git"
},
"scripts": {
"test": "standard && tape test.js"
},
"version": "1.0.0"
}

34
express-server/node_modules/postgres-bytea/readme.md generated vendored Normal file
View File

@ -0,0 +1,34 @@
# postgres-bytea [![Build Status](https://travis-ci.org/bendrucker/postgres-bytea.svg?branch=master)](https://travis-ci.org/bendrucker/postgres-bytea)
> Postgres bytea parser
## Install
```
$ npm install --save postgres-bytea
```
## Usage
```js
var bytea = require('postgres-bytea');
bytea('\\000\\100\\200')
//=> buffer
```
## API
#### `bytea(input)` -> `buffer`
##### input
*Required*
Type: `string`
A Postgres bytea binary string.
## License
MIT © [Ben Drucker](http://bendrucker.me)