mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
# add dist
This commit is contained in:
26
ng2-components/ng2-alfresco-documentslist/dist/node_modules/unzip-response/index.js
generated
vendored
Normal file
26
ng2-components/ng2-alfresco-documentslist/dist/node_modules/unzip-response/index.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
var zlib = require('zlib');
|
||||
|
||||
module.exports = function (res) {
|
||||
if (['gzip', 'deflate'].indexOf(res.headers['content-encoding']) !== -1) {
|
||||
var unzip = zlib.createUnzip();
|
||||
|
||||
unzip.httpVersion = res.httpVersion;
|
||||
unzip.headers = res.headers;
|
||||
unzip.rawHeaders = res.rawHeaders;
|
||||
unzip.trailers = res.trailers;
|
||||
unzip.rawTrailers = res.rawTrailers;
|
||||
unzip.setTimeout = res.setTimeout.bind(res);
|
||||
unzip.statusCode = res.statusCode;
|
||||
unzip.statusMessage = res.statusMessage;
|
||||
unzip.socket = res.socket;
|
||||
|
||||
res.on('close', function () {
|
||||
unzip.emit('close');
|
||||
});
|
||||
|
||||
res = res.pipe(unzip);
|
||||
}
|
||||
|
||||
return res;
|
||||
};
|
21
ng2-components/ng2-alfresco-documentslist/dist/node_modules/unzip-response/license
generated
vendored
Normal file
21
ng2-components/ng2-alfresco-documentslist/dist/node_modules/unzip-response/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
`The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
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.
|
92
ng2-components/ng2-alfresco-documentslist/dist/node_modules/unzip-response/package.json
generated
vendored
Normal file
92
ng2-components/ng2-alfresco-documentslist/dist/node_modules/unzip-response/package.json
generated
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"unzip-response@^1.0.0",
|
||||
"/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/got"
|
||||
]
|
||||
],
|
||||
"_from": "unzip-response@>=1.0.0 <2.0.0",
|
||||
"_id": "unzip-response@1.0.0",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/unzip-response",
|
||||
"_nodeVersion": "0.12.5",
|
||||
"_npmUser": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "sindresorhus"
|
||||
},
|
||||
"_npmVersion": "2.11.2",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "unzip-response",
|
||||
"raw": "unzip-response@^1.0.0",
|
||||
"rawSpec": "^1.0.0",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/got"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-1.0.0.tgz",
|
||||
"_shasum": "bfda54eeec658f00c2df4d4494b9dca0ca00f3e4",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "unzip-response@^1.0.0",
|
||||
"_where": "/Users/mromano/dev/dev-platform-webcomponents/ng2-components/ng2-alfresco-documentslist/node_modules/got",
|
||||
"author": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "Sindre Sorhus",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/unzip-response/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Unzip a HTTP response if needed",
|
||||
"devDependencies": {
|
||||
"concat-stream": "^1.5.0",
|
||||
"tape": "^4.0.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "bfda54eeec658f00c2df4d4494b9dca0ca00f3e4",
|
||||
"tarball": "http://registry.npmjs.org/unzip-response/-/unzip-response-1.0.0.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "7043fa2fbdc36d84a25dc398dc5f323b9f1747ce",
|
||||
"homepage": "https://github.com/sindresorhus/unzip-response",
|
||||
"keywords": [
|
||||
"http",
|
||||
"unzip",
|
||||
"zlib",
|
||||
"gzip",
|
||||
"deflate",
|
||||
"incoming",
|
||||
"message",
|
||||
"response",
|
||||
"stream"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "sindresorhus"
|
||||
}
|
||||
],
|
||||
"name": "unzip-response",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/unzip-response.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test/test.js"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
29
ng2-components/ng2-alfresco-documentslist/dist/node_modules/unzip-response/readme.md
generated
vendored
Normal file
29
ng2-components/ng2-alfresco-documentslist/dist/node_modules/unzip-response/readme.md
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
# unzip-response [](https://travis-ci.org/sindresorhus/unzip-response)
|
||||
|
||||
> Unzip a HTTP response if needed
|
||||
|
||||
Unzips the response from `http.request` if it's gzipped/deflated, otherwise just passes it through.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save unzip-response
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var http = require('http');
|
||||
var unzipResponse = require('unzip-response');
|
||||
|
||||
http.get('http://sindresorhus.com', function (res) {
|
||||
res = unzipResponse(res);
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
Reference in New Issue
Block a user