push all website files

This commit is contained in:
Jacob Levine
2019-01-06 13:14:45 -06:00
parent d7301e26c3
commit d2d5d4c04e
15662 changed files with 2166516 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
import { Stream } from 'stream';
declare function isStreamEnded(stream: Stream): boolean;
declare namespace isStreamEnded {}
export = isStreamEnded;

View File

@@ -0,0 +1,13 @@
'use strict';
module.exports = function (stream) {
var ended;
if (typeof stream.ended !== 'undefined') {
ended = stream.ended;
} else {
ended = stream._readableState.ended;
}
return Boolean(ended).valueOf();
};

20
website/functions/node_modules/is-stream-ended/license generated vendored Normal file
View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2015 Stephen Sawchuk
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,65 @@
{
"_from": "is-stream-ended@^0.1.4",
"_id": "is-stream-ended@0.1.4",
"_inBundle": false,
"_integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==",
"_location": "/is-stream-ended",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "is-stream-ended@^0.1.4",
"name": "is-stream-ended",
"escapedName": "is-stream-ended",
"rawSpec": "^0.1.4",
"saveSpec": null,
"fetchSpec": "^0.1.4"
},
"_requiredBy": [
"/google-gax",
"/split-array-stream"
],
"_resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz",
"_shasum": "f50224e95e06bce0e356d440a4827cd35b267eda",
"_spec": "is-stream-ended@^0.1.4",
"_where": "C:\\Users\\jlevi\\Downloads\\tr2022-strategy-master\\tr2022-strategy-master\\data analysis\\functions\\node_modules\\google-gax",
"author": {
"name": "Stephen Sawchuk",
"email": "sawchuk@gmail.com"
},
"bugs": {
"url": "https://github.com/stephenplusplus/is-stream-ended/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "Check if a stream has ended",
"devDependencies": {
"mocha": "^2.2.5",
"through2": "^2.0.3"
},
"files": [
"index.js",
"index.d.ts"
],
"homepage": "https://github.com/stephenplusplus/is-stream-ended#readme",
"keywords": [
"stream",
"end",
"ended",
"consumed",
"complete"
],
"license": "MIT",
"main": "index.js",
"name": "is-stream-ended",
"repository": {
"type": "git",
"url": "git+https://github.com/stephenplusplus/is-stream-ended.git"
},
"scripts": {
"test": "mocha"
},
"types": "index.d.ts",
"version": "0.1.4"
}

View File

@@ -0,0 +1,21 @@
# is-stream-ended
> Check if a stream has ended.
```sh
$ npm install --save is-stream-ended
```
```js
var isStreamEnded = require('is-stream-ended');
isStreamEnded(stream); // false
stream.end();
isStreamEnded(stream); // true
```
### isStreamEnded(stream)
#### stream
- Type: `Stream`, `Object`
Providing a stream will check against the `stream._readableState` object. To check from the `_writableState`, provide that object directly.