Delete some files
This commit is contained in:
1
app/node_modules/parse-headers/.npmignore
generated
vendored
1
app/node_modules/parse-headers/.npmignore
generated
vendored
@@ -1 +0,0 @@
|
||||
node_modules
|
8
app/node_modules/parse-headers/.travis.yml
generated
vendored
8
app/node_modules/parse-headers/.travis.yml
generated
vendored
@@ -1,8 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- '4'
|
||||
env:
|
||||
global:
|
||||
- secure: K1OWZCmO4PvDis8LANVtqSnQ1DyE0d6ikAEEVWZG5qPzT9kPxXhJPIL+SemOQ6x15ERoGKB3GnWKwRTLnxI4mS3ktEfPAGxHQOtalSKBEdV1ml2n8ZmX9NZMl/la/3l5jcRS9Iwgj1hT2GsNPC1Z51nBY+0QhmS0oCOIRl2Perk=
|
||||
- secure: BofgLxIrbEev31IAMm+mMhgGifZIV0qKv3oyNhg+rPOo3xhV3ni/BPnMFjc0QcIil40H88JIoUiEWFoTnmrficXHkzWJnd4q2kzF9MhnRvAxKO42ziUEklRP/YCNeXJcVXhyNJhBJTMDiKfUy1EU/6lRETZpW4xxXyNxg1NHhIk=
|
||||
sudo: false
|
13
app/node_modules/parse-headers/.zuul.yml
generated
vendored
13
app/node_modules/parse-headers/.zuul.yml
generated
vendored
@@ -1,13 +0,0 @@
|
||||
ui: tape
|
||||
|
||||
browsers:
|
||||
- name: chrome
|
||||
version: latest
|
||||
- name: safari
|
||||
version: latest
|
||||
- name: firefox
|
||||
version: latest
|
||||
- name: internet explorer
|
||||
version: 8..latest
|
||||
- name: opera
|
||||
version: latest
|
21
app/node_modules/parse-headers/LICENCE
generated
vendored
21
app/node_modules/parse-headers/LICENCE
generated
vendored
@@ -1,21 +0,0 @@
|
||||
Copyright (c) 2014 David Björklund
|
||||
|
||||
This software is released under the MIT license:
|
||||
|
||||
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.
|
11
app/node_modules/parse-headers/example.js
generated
vendored
11
app/node_modules/parse-headers/example.js
generated
vendored
@@ -1,11 +0,0 @@
|
||||
var parse = require('./parse-headers')
|
||||
|
||||
, headers = [
|
||||
'Date: Sun, 17 Aug 2014 16:24:52 GMT'
|
||||
, 'Content-Type: text/html; charset=utf-8'
|
||||
, 'Transfer-Encoding: chunked'
|
||||
, 'X-Custom-Header: beep'
|
||||
, 'X-Custom-Header: boop'
|
||||
].join('\n')
|
||||
|
||||
console.log(parse(headers))
|
64
app/node_modules/parse-headers/package.json
generated
vendored
64
app/node_modules/parse-headers/package.json
generated
vendored
@@ -1,64 +0,0 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"parse-headers@2.0.1",
|
||||
"/Users/aa/TheDesk/app"
|
||||
]
|
||||
],
|
||||
"_from": "parse-headers@2.0.1",
|
||||
"_id": "parse-headers@2.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-aug6eqJanZtwCswoaYzR8e1+lTY=",
|
||||
"_location": "/parse-headers",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "parse-headers@2.0.1",
|
||||
"name": "parse-headers",
|
||||
"escapedName": "parse-headers",
|
||||
"rawSpec": "2.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/xhr"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/parse-headers/-/parse-headers-2.0.1.tgz",
|
||||
"_spec": "2.0.1",
|
||||
"_where": "/Users/aa/TheDesk/app",
|
||||
"author": {
|
||||
"name": "David Björklund",
|
||||
"email": "david.bjorklund@gmail.com",
|
||||
"url": "http://davidbjorklund.com/"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/kesla/parse-headers/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"for-each": "^0.3.2",
|
||||
"trim": "0.0.1"
|
||||
},
|
||||
"description": "Parse http headers, works with browserify/xhr",
|
||||
"devDependencies": {
|
||||
"tape": "^4.2.2",
|
||||
"zuul": "^3.7.2"
|
||||
},
|
||||
"homepage": "https://github.com/kesla/parse-headers",
|
||||
"keywords": [
|
||||
"http",
|
||||
"headers",
|
||||
"browserify"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "parse-headers.js",
|
||||
"name": "parse-headers",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/kesla/parse-headers.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "zuul test.js"
|
||||
},
|
||||
"version": "2.0.1"
|
||||
}
|
31
app/node_modules/parse-headers/parse-headers.js
generated
vendored
31
app/node_modules/parse-headers/parse-headers.js
generated
vendored
@@ -1,31 +0,0 @@
|
||||
var trim = require('trim')
|
||||
, forEach = require('for-each')
|
||||
, isArray = function(arg) {
|
||||
return Object.prototype.toString.call(arg) === '[object Array]';
|
||||
}
|
||||
|
||||
module.exports = function (headers) {
|
||||
if (!headers)
|
||||
return {}
|
||||
|
||||
var result = {}
|
||||
|
||||
forEach(
|
||||
trim(headers).split('\n')
|
||||
, function (row) {
|
||||
var index = row.indexOf(':')
|
||||
, key = trim(row.slice(0, index)).toLowerCase()
|
||||
, value = trim(row.slice(index + 1))
|
||||
|
||||
if (typeof(result[key]) === 'undefined') {
|
||||
result[key] = value
|
||||
} else if (isArray(result[key])) {
|
||||
result[key].push(value)
|
||||
} else {
|
||||
result[key] = [ result[key], value ]
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
return result
|
||||
}
|
70
app/node_modules/parse-headers/readme.md
generated
vendored
70
app/node_modules/parse-headers/readme.md
generated
vendored
@@ -1,70 +0,0 @@
|
||||
# parse-headers[](http://travis-ci.org/kesla/parse-headers)
|
||||
|
||||
Parse http headers, works with browserify/xhr
|
||||
|
||||
[](https://nodei.co/npm/parse-headers/)
|
||||
|
||||
[](https://nodei.co/npm/parse-headers/)
|
||||
|
||||
[](https://saucelabs.com/u/kesla-xhr-headers)
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
npm install parse-headers
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
### Input
|
||||
|
||||
```javascript
|
||||
var parse = require('./parse-headers')
|
||||
|
||||
, headers = [
|
||||
'Date: Sun, 17 Aug 2014 16:24:52 GMT'
|
||||
, 'Content-Type: text/html; charset=utf-8'
|
||||
, 'Transfer-Encoding: chunked'
|
||||
, 'X-Custom-Header: beep'
|
||||
, 'X-Custom-Header: boop'
|
||||
].join('\n')
|
||||
|
||||
console.log(parse(headers))
|
||||
```
|
||||
|
||||
### Output
|
||||
|
||||
```
|
||||
{ date: 'Sun, 17 Aug 2014 16:24:52 GMT',
|
||||
'content-type': 'text/html; charset=utf-8',
|
||||
'transfer-encoding': 'chunked',
|
||||
'x-custom-header': [ 'beep', 'boop' ] }
|
||||
```
|
||||
|
||||
## Kudos
|
||||
|
||||
Looked at https://github.com/watson/http-headers before creating this.
|
||||
|
||||
## Licence
|
||||
|
||||
Copyright (c) 2014 David Björklund
|
||||
|
||||
This software is released under the MIT license:
|
||||
|
||||
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.
|
70
app/node_modules/parse-headers/test.js
generated
vendored
70
app/node_modules/parse-headers/test.js
generated
vendored
@@ -1,70 +0,0 @@
|
||||
var test = require('tape')
|
||||
, parse = require('./parse-headers')
|
||||
|
||||
, headers1 = [
|
||||
''
|
||||
, 'Date: Sun, 17 Aug 2014 16:24:52 GMT'
|
||||
, 'Content-Type: text/html; charset=utf-8'
|
||||
, 'Transfer-Encoding: chunked'
|
||||
, ''
|
||||
]
|
||||
, headers2 = [
|
||||
''
|
||||
, 'Date: Sun, 17 Aug 2014 16:24:52 GMT'
|
||||
, 'Content-Type: text/html; charset=utf-8'
|
||||
, 'Transfer-Encoding: chunked'
|
||||
, 'Set-Cookie: Foo'
|
||||
, 'set-Cookie: bar'
|
||||
, 'set-cookie: bong'
|
||||
]
|
||||
|
||||
test('sanity check', function (t) {
|
||||
|
||||
t.deepEqual(parse(), {})
|
||||
t.deepEqual(parse(''), {})
|
||||
t.end()
|
||||
})
|
||||
|
||||
test('simple', function (t) {
|
||||
t.deepEqual(
|
||||
parse(headers1.join('\r\n'))
|
||||
, {
|
||||
date: 'Sun, 17 Aug 2014 16:24:52 GMT'
|
||||
, 'content-type': 'text/html; charset=utf-8'
|
||||
, 'transfer-encoding': 'chunked'
|
||||
}
|
||||
)
|
||||
t.deepEqual(
|
||||
parse(headers1.join('\n'))
|
||||
, {
|
||||
date: 'Sun, 17 Aug 2014 16:24:52 GMT'
|
||||
, 'content-type': 'text/html; charset=utf-8'
|
||||
, 'transfer-encoding': 'chunked'
|
||||
}
|
||||
)
|
||||
|
||||
t.end()
|
||||
})
|
||||
|
||||
test('duplicate keys', function (t) {
|
||||
t.deepEqual(
|
||||
parse(headers2.join('\r\n'))
|
||||
, {
|
||||
date: 'Sun, 17 Aug 2014 16:24:52 GMT'
|
||||
, 'content-type': 'text/html; charset=utf-8'
|
||||
, 'transfer-encoding': 'chunked'
|
||||
, 'set-cookie': [ 'Foo', 'bar', 'bong' ]
|
||||
}
|
||||
)
|
||||
t.deepEqual(
|
||||
parse(headers2.join('\n'))
|
||||
, {
|
||||
date: 'Sun, 17 Aug 2014 16:24:52 GMT'
|
||||
, 'content-type': 'text/html; charset=utf-8'
|
||||
, 'transfer-encoding': 'chunked'
|
||||
, 'set-cookie': [ 'Foo', 'bar', 'bong' ]
|
||||
}
|
||||
)
|
||||
|
||||
t.end()
|
||||
})
|
Reference in New Issue
Block a user