@teammy/server 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +3744 -1673
- package/dist/web/assets/Assistant-C9Zo5FN_.js +1 -0
- package/dist/web/assets/Computers-DNIWiHu4.js +5 -0
- package/dist/web/assets/Computers-XUdWIkZr.css +1 -0
- package/dist/web/assets/{Conversation-CNmGkVy7.css → Conversation-BVNmvuHR.css} +1 -1
- package/dist/web/assets/Conversation-DiVjLVVt.js +1 -0
- package/dist/web/assets/Dashboard-C6M9c0SB.js +1 -0
- package/dist/web/assets/Dashboard-ChX6TZDn.css +1 -0
- package/dist/web/assets/Dropdown-BnYLBw2s.js +55 -0
- package/dist/web/assets/Files-CQcAEYH9.js +1 -0
- package/dist/web/assets/{Help-DwUoT8ZM.js → Help-CDOqVRjJ.js} +158 -37
- package/dist/web/assets/HtmlPreview-BzvYKdju.js +1 -0
- package/dist/web/assets/{Markdown-DorC2YjE.js → Markdown-zJQlHcvy.js} +4 -4
- package/dist/web/assets/MessageComposer-CBI6RiJq.js +1 -0
- package/dist/web/assets/MessageComposer-CJGxkvML.css +1 -0
- package/dist/web/assets/ResourceLibrary-CEFCe7QW.js +6 -0
- package/dist/web/assets/TerminalPane-BrSy-0jI.css +1 -0
- package/dist/web/assets/TerminalPane-GU69G9Ak.js +22 -0
- package/dist/web/assets/WorkspaceTree-BhDZe1go.js +1 -0
- package/dist/web/assets/file-links-V3R--z0b.js +1 -0
- package/dist/web/assets/index-D9m13C7l.js +12 -0
- package/dist/web/assets/index-qX1GRw9I.css +1 -0
- package/dist/web/assets/teammy-logo-dark-GROHRRMa.svg +6 -0
- package/dist/web/assets/teammy-logo-light-B6BoNVcp.svg +6 -0
- package/dist/web/assets/teammy-y-standard-dark-C4LRaRpE.svg +6 -0
- package/dist/web/assets/teammy-y-standard-light-Bl5D78Uj.svg +6 -0
- package/dist/web/downloads/teammy-inbox-skill.zip +0 -0
- package/dist/web/downloads/teammy-skill.zip +0 -0
- package/dist/web/index.html +10 -3
- package/node_modules/@fastify/websocket/.gitattributes +2 -0
- package/node_modules/@fastify/websocket/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/websocket/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/websocket/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/websocket/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/websocket/LICENSE +21 -0
- package/node_modules/@fastify/websocket/README.md +393 -0
- package/node_modules/@fastify/websocket/eslint.config.js +6 -0
- package/node_modules/@fastify/websocket/index.js +276 -0
- package/node_modules/@fastify/websocket/package.json +79 -0
- package/node_modules/@fastify/websocket/test/base.test.js +785 -0
- package/node_modules/@fastify/websocket/test/hooks.test.js +414 -0
- package/node_modules/@fastify/websocket/test/inject.test.js +174 -0
- package/node_modules/@fastify/websocket/test/router.test.js +890 -0
- package/node_modules/@fastify/websocket/tsconfig.json +3 -0
- package/node_modules/@fastify/websocket/types/index.d.ts +128 -0
- package/node_modules/@fastify/websocket/types/index.tst.ts +261 -0
- package/node_modules/duplexify/.travis.yml +9 -0
- package/node_modules/duplexify/LICENSE +21 -0
- package/node_modules/duplexify/README.md +97 -0
- package/node_modules/duplexify/example.js +21 -0
- package/node_modules/duplexify/index.js +238 -0
- package/node_modules/duplexify/package.json +39 -0
- package/node_modules/duplexify/test.js +339 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +96 -0
- package/node_modules/end-of-stream/package.json +37 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +106 -0
- package/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +68 -0
- package/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/stream-shift/.github/workflows/test.yml +23 -0
- package/node_modules/stream-shift/LICENSE +21 -0
- package/node_modules/stream-shift/README.md +25 -0
- package/node_modules/stream-shift/index.js +21 -0
- package/node_modules/stream-shift/package.json +25 -0
- package/node_modules/stream-shift/test.js +48 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +34 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/package.json +15 -2
- package/dist/web/assets/Assistant-CYSa4zNi.js +0 -1
- package/dist/web/assets/Computers-4L48XuFg.js +0 -4
- package/dist/web/assets/Computers-_ugR447I.css +0 -1
- package/dist/web/assets/Conversation-BBWm5w-C.js +0 -1
- package/dist/web/assets/Dashboard-Bdh00JcC.css +0 -1
- package/dist/web/assets/Dashboard-Ck2NsAbX.js +0 -1
- package/dist/web/assets/Files-CjNjoKS3.js +0 -1
- package/dist/web/assets/HtmlPreview-B6aQIaMB.js +0 -1
- package/dist/web/assets/MessageComposer-DQBDG5yF.js +0 -1
- package/dist/web/assets/MessageComposer-DavJdQPa.css +0 -1
- package/dist/web/assets/ResourceLibrary-104NuVRn.js +0 -6
- package/dist/web/assets/WorkspaceTree-B4FMRlCw.js +0 -1
- package/dist/web/assets/file-links-DnngiTbC.js +0 -1
- package/dist/web/assets/index-6PvvMCD7.css +0 -1
- package/dist/web/assets/index-DiR0ePCJ.js +0 -66
- package/dist/web/assets/teammy-calm-DVuoOK0F.png +0 -0
- package/dist/web/assets/teammy-favicon-BiDvlPj2.png +0 -0
- package/dist/web/assets/teammy-mark-CxBtF1-X.png +0 -0
- package/dist/web/assets/teammy-wave-CVTgecuC.png +0 -0
- package/dist/web/assets/teammy-wordmark-ZFwxG0yl.png +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;
|
|
4
|
+
function highWaterMarkFrom(options, isDuplex, duplexKey) {
|
|
5
|
+
return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
|
|
6
|
+
}
|
|
7
|
+
function getHighWaterMark(state, options, duplexKey, isDuplex) {
|
|
8
|
+
var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
|
|
9
|
+
if (hwm != null) {
|
|
10
|
+
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
11
|
+
var name = isDuplex ? duplexKey : 'highWaterMark';
|
|
12
|
+
throw new ERR_INVALID_OPT_VALUE(name, hwm);
|
|
13
|
+
}
|
|
14
|
+
return Math.floor(hwm);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Default value
|
|
18
|
+
return state.objectMode ? 16 : 16 * 1024;
|
|
19
|
+
}
|
|
20
|
+
module.exports = {
|
|
21
|
+
getHighWaterMark: getHighWaterMark
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('events').EventEmitter;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('stream');
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "readable-stream",
|
|
3
|
+
"version": "3.6.2",
|
|
4
|
+
"description": "Streams3, a user-land copy of the stream library from Node.js",
|
|
5
|
+
"main": "readable.js",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">= 6"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"inherits": "^2.0.3",
|
|
11
|
+
"string_decoder": "^1.1.1",
|
|
12
|
+
"util-deprecate": "^1.0.1"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"@babel/cli": "^7.2.0",
|
|
16
|
+
"@babel/core": "^7.2.0",
|
|
17
|
+
"@babel/polyfill": "^7.0.0",
|
|
18
|
+
"@babel/preset-env": "^7.2.0",
|
|
19
|
+
"airtap": "0.0.9",
|
|
20
|
+
"assert": "^1.4.0",
|
|
21
|
+
"bl": "^2.0.0",
|
|
22
|
+
"deep-strict-equal": "^0.2.0",
|
|
23
|
+
"events.once": "^2.0.2",
|
|
24
|
+
"glob": "^7.1.2",
|
|
25
|
+
"gunzip-maybe": "^1.4.1",
|
|
26
|
+
"hyperquest": "^2.1.3",
|
|
27
|
+
"lolex": "^2.6.0",
|
|
28
|
+
"nyc": "^11.0.0",
|
|
29
|
+
"pump": "^3.0.0",
|
|
30
|
+
"rimraf": "^2.6.2",
|
|
31
|
+
"tap": "^12.0.0",
|
|
32
|
+
"tape": "^4.9.0",
|
|
33
|
+
"tar-fs": "^1.16.2",
|
|
34
|
+
"util-promisify": "^2.1.0"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"test": "tap -J --no-esm test/parallel/*.js test/ours/*.js",
|
|
38
|
+
"ci": "TAP=1 tap --no-esm test/parallel/*.js test/ours/*.js | tee test.tap",
|
|
39
|
+
"test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js",
|
|
40
|
+
"test-browser-local": "airtap --open --local -- test/browser.js",
|
|
41
|
+
"cover": "nyc npm test",
|
|
42
|
+
"report": "nyc report --reporter=lcov",
|
|
43
|
+
"update-browser-errors": "babel -o errors-browser.js errors.js"
|
|
44
|
+
},
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git://github.com/nodejs/readable-stream"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"readable",
|
|
51
|
+
"stream",
|
|
52
|
+
"pipe"
|
|
53
|
+
],
|
|
54
|
+
"browser": {
|
|
55
|
+
"util": false,
|
|
56
|
+
"worker_threads": false,
|
|
57
|
+
"./errors": "./errors-browser.js",
|
|
58
|
+
"./readable.js": "./readable-browser.js",
|
|
59
|
+
"./lib/internal/streams/from.js": "./lib/internal/streams/from-browser.js",
|
|
60
|
+
"./lib/internal/streams/stream.js": "./lib/internal/streams/stream-browser.js"
|
|
61
|
+
},
|
|
62
|
+
"nyc": {
|
|
63
|
+
"include": [
|
|
64
|
+
"lib/**.js"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"license": "MIT"
|
|
68
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
exports = module.exports = require('./lib/_stream_readable.js');
|
|
2
|
+
exports.Stream = exports;
|
|
3
|
+
exports.Readable = exports;
|
|
4
|
+
exports.Writable = require('./lib/_stream_writable.js');
|
|
5
|
+
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
6
|
+
exports.Transform = require('./lib/_stream_transform.js');
|
|
7
|
+
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
8
|
+
exports.finished = require('./lib/internal/streams/end-of-stream.js');
|
|
9
|
+
exports.pipeline = require('./lib/internal/streams/pipeline.js');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var Stream = require('stream');
|
|
2
|
+
if (process.env.READABLE_STREAM === 'disable' && Stream) {
|
|
3
|
+
module.exports = Stream.Readable;
|
|
4
|
+
Object.assign(module.exports, Stream);
|
|
5
|
+
module.exports.Stream = Stream;
|
|
6
|
+
} else {
|
|
7
|
+
exports = module.exports = require('./lib/_stream_readable.js');
|
|
8
|
+
exports.Stream = Stream || exports;
|
|
9
|
+
exports.Readable = exports;
|
|
10
|
+
exports.Writable = require('./lib/_stream_writable.js');
|
|
11
|
+
exports.Duplex = require('./lib/_stream_duplex.js');
|
|
12
|
+
exports.Transform = require('./lib/_stream_transform.js');
|
|
13
|
+
exports.PassThrough = require('./lib/_stream_passthrough.js');
|
|
14
|
+
exports.finished = require('./lib/internal/streams/end-of-stream.js');
|
|
15
|
+
exports.pipeline = require('./lib/internal/streams/pipeline.js');
|
|
16
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Build Status
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- master
|
|
6
|
+
pull_request:
|
|
7
|
+
branches:
|
|
8
|
+
- master
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
node-version: [lts/*]
|
|
14
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v3
|
|
18
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
19
|
+
uses: actions/setup-node@v3
|
|
20
|
+
with:
|
|
21
|
+
node-version: ${{ matrix.node-version }}
|
|
22
|
+
- run: npm install
|
|
23
|
+
- run: npm test
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Mathias Buus
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# stream-shift
|
|
2
|
+
|
|
3
|
+
Returns the next buffer/object in a stream's readable queue
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
npm install stream-shift
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
[](http://travis-ci.org/mafintosh/stream-shift)
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
``` js
|
|
14
|
+
var shift = require('stream-shift')
|
|
15
|
+
|
|
16
|
+
console.log(shift(someStream)) // first item in its buffer
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Credit
|
|
20
|
+
|
|
21
|
+
Thanks [@dignifiedquire](https://github.com/dignifiedquire) for making this work on node 6
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
MIT
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module.exports = shift
|
|
2
|
+
|
|
3
|
+
function shift (stream) {
|
|
4
|
+
var rs = stream._readableState
|
|
5
|
+
if (!rs) return null
|
|
6
|
+
return (rs.objectMode || typeof stream._duplexState === 'number') ? stream.read() : stream.read(getStateLength(rs))
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function getStateLength (state) {
|
|
10
|
+
if (state.buffer.length) {
|
|
11
|
+
var idx = state.bufferIndex || 0
|
|
12
|
+
// Since node 6.3.0 state.buffer is a BufferList not an array
|
|
13
|
+
if (state.buffer.head) {
|
|
14
|
+
return state.buffer.head.data.length
|
|
15
|
+
} else if (state.buffer.length - idx > 0 && state.buffer[idx]) {
|
|
16
|
+
return state.buffer[idx].length
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return state.length
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "stream-shift",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "Returns the next buffer/object in a stream's readable queue",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"dependencies": {},
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"standard": "^7.1.2",
|
|
9
|
+
"tape": "^4.6.0",
|
|
10
|
+
"through2": "^2.0.1"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "standard && tape test.js"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/mafintosh/stream-shift.git"
|
|
18
|
+
},
|
|
19
|
+
"author": "Mathias Buus (@mafintosh)",
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/mafintosh/stream-shift/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/mafintosh/stream-shift"
|
|
25
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var tape = require('tape')
|
|
2
|
+
var through = require('through2')
|
|
3
|
+
var stream = require('stream')
|
|
4
|
+
var shift = require('./')
|
|
5
|
+
|
|
6
|
+
tape('shifts next', function (t) {
|
|
7
|
+
var passthrough = through()
|
|
8
|
+
|
|
9
|
+
passthrough.write('hello')
|
|
10
|
+
passthrough.write('world')
|
|
11
|
+
|
|
12
|
+
t.same(shift(passthrough), Buffer.from('hello'))
|
|
13
|
+
t.same(shift(passthrough), Buffer.from('world'))
|
|
14
|
+
t.end()
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
tape('shifts next with core', function (t) {
|
|
18
|
+
var passthrough = stream.PassThrough()
|
|
19
|
+
|
|
20
|
+
passthrough.write('hello')
|
|
21
|
+
passthrough.write('world')
|
|
22
|
+
|
|
23
|
+
t.same(shift(passthrough), Buffer.from('hello'))
|
|
24
|
+
t.same(shift(passthrough), Buffer.from('world'))
|
|
25
|
+
t.end()
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
tape('shifts next with object mode', function (t) {
|
|
29
|
+
var passthrough = through({objectMode: true})
|
|
30
|
+
|
|
31
|
+
passthrough.write({hello: 1})
|
|
32
|
+
passthrough.write({world: 1})
|
|
33
|
+
|
|
34
|
+
t.same(shift(passthrough), {hello: 1})
|
|
35
|
+
t.same(shift(passthrough), {world: 1})
|
|
36
|
+
t.end()
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
tape('shifts next with object mode with core', function (t) {
|
|
40
|
+
var passthrough = stream.PassThrough({objectMode: true})
|
|
41
|
+
|
|
42
|
+
passthrough.write({hello: 1})
|
|
43
|
+
passthrough.write({world: 1})
|
|
44
|
+
|
|
45
|
+
t.same(shift(passthrough), {hello: 1})
|
|
46
|
+
t.same(shift(passthrough), {world: 1})
|
|
47
|
+
t.end()
|
|
48
|
+
})
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Node.js is licensed for use as follows:
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Copyright Node.js contributors. All rights reserved.
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to
|
|
8
|
+
deal in the Software without restriction, including without limitation the
|
|
9
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
10
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
22
|
+
IN THE SOFTWARE.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
This license applies to parts of Node.js originating from the
|
|
26
|
+
https://github.com/joyent/node repository:
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
|
30
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
31
|
+
of this software and associated documentation files (the "Software"), to
|
|
32
|
+
deal in the Software without restriction, including without limitation the
|
|
33
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
34
|
+
sell copies of the Software, and to permit persons to whom the Software is
|
|
35
|
+
furnished to do so, subject to the following conditions:
|
|
36
|
+
|
|
37
|
+
The above copyright notice and this permission notice shall be included in
|
|
38
|
+
all copies or substantial portions of the Software.
|
|
39
|
+
|
|
40
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
41
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
42
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
43
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
44
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
45
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
46
|
+
IN THE SOFTWARE.
|
|
47
|
+
"""
|
|
48
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# string_decoder
|
|
2
|
+
|
|
3
|
+
***Node-core v8.9.4 string_decoder for userland***
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[](https://nodei.co/npm/string_decoder/)
|
|
7
|
+
[](https://nodei.co/npm/string_decoder/)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install --save string_decoder
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
***Node-core string_decoder for userland***
|
|
15
|
+
|
|
16
|
+
This package is a mirror of the string_decoder implementation in Node-core.
|
|
17
|
+
|
|
18
|
+
Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v8.9.4/docs/api/).
|
|
19
|
+
|
|
20
|
+
As of version 1.0.0 **string_decoder** uses semantic versioning.
|
|
21
|
+
|
|
22
|
+
## Previous versions
|
|
23
|
+
|
|
24
|
+
Previous version numbers match the versions found in Node core, e.g. 0.10.24 matches Node 0.10.24, likewise 0.11.10 matches Node 0.11.10.
|
|
25
|
+
|
|
26
|
+
## Update
|
|
27
|
+
|
|
28
|
+
The *build/* directory contains a build script that will scrape the source from the [nodejs/node](https://github.com/nodejs/node) repo given a specific Node version.
|
|
29
|
+
|
|
30
|
+
## Streams Working Group
|
|
31
|
+
|
|
32
|
+
`string_decoder` is maintained by the Streams Working Group, which
|
|
33
|
+
oversees the development and maintenance of the Streams API within
|
|
34
|
+
Node.js. The responsibilities of the Streams Working Group include:
|
|
35
|
+
|
|
36
|
+
* Addressing stream issues on the Node.js issue tracker.
|
|
37
|
+
* Authoring and editing stream documentation within the Node.js project.
|
|
38
|
+
* Reviewing changes to stream subclasses within the Node.js project.
|
|
39
|
+
* Redirecting changes to streams from the Node.js project to this
|
|
40
|
+
project.
|
|
41
|
+
* Assisting in the implementation of stream providers within Node.js.
|
|
42
|
+
* Recommending versions of `readable-stream` to be included in Node.js.
|
|
43
|
+
* Messaging about the future of streams to give the community advance
|
|
44
|
+
notice of changes.
|
|
45
|
+
|
|
46
|
+
See [readable-stream](https://github.com/nodejs/readable-stream) for
|
|
47
|
+
more details.
|