mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 09:56:46 +00:00
Fix.
This commit is contained in:
parent
596a6da241
commit
c1a589c5b6
7078 changed files with 1882834 additions and 319 deletions
21
node_modules/merge-stream/LICENSE
generated
vendored
Normal file
21
node_modules/merge-stream/LICENSE
generated
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Stephen Sugden <me@stephensugden.com> (stephensugden.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.
|
55
node_modules/merge-stream/README.md
generated
vendored
Normal file
55
node_modules/merge-stream/README.md
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
# merge-stream
|
||||
|
||||
Merge (interleave) a bunch of streams.
|
||||
|
||||
[](http://travis-ci.org/grncdr/merge-stream)
|
||||
|
||||
## Synopsis
|
||||
|
||||
```javascript
|
||||
var stream1 = new Stream();
|
||||
var stream2 = new Stream();
|
||||
|
||||
var merged = mergeStream(stream1, stream2);
|
||||
|
||||
var stream3 = new Stream();
|
||||
merged.add(stream3);
|
||||
merged.isEmpty();
|
||||
//=> false
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
This is adapted from [event-stream](https://github.com/dominictarr/event-stream) separated into a new module, using Streams3.
|
||||
|
||||
## API
|
||||
|
||||
### `mergeStream`
|
||||
|
||||
Type: `function`
|
||||
|
||||
Merges an arbitrary number of streams. Returns a merged stream.
|
||||
|
||||
#### `merged.add`
|
||||
|
||||
A method to dynamically add more sources to the stream. The argument supplied to `add` can be either a source or an array of sources.
|
||||
|
||||
#### `merged.isEmpty`
|
||||
|
||||
A method that tells you if the merged stream is empty.
|
||||
|
||||
When a stream is "empty" (aka. no sources were added), it could not be returned to a gulp task.
|
||||
|
||||
So, we could do something like this:
|
||||
|
||||
```js
|
||||
stream = require('merge-stream')();
|
||||
// Something like a loop to add some streams to the merge stream
|
||||
// stream.add(streamA);
|
||||
// stream.add(streamB);
|
||||
return stream.isEmpty() ? null : stream;
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
41
node_modules/merge-stream/index.js
generated
vendored
Normal file
41
node_modules/merge-stream/index.js
generated
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
'use strict';
|
||||
|
||||
var PassThrough = require('readable-stream/passthrough')
|
||||
|
||||
module.exports = function (/*streams...*/) {
|
||||
var sources = []
|
||||
var output = new PassThrough({objectMode: true})
|
||||
|
||||
output.setMaxListeners(0)
|
||||
|
||||
output.add = add
|
||||
output.isEmpty = isEmpty
|
||||
|
||||
output.on('unpipe', remove)
|
||||
|
||||
Array.prototype.slice.call(arguments).forEach(add)
|
||||
|
||||
return output
|
||||
|
||||
function add (source) {
|
||||
if (Array.isArray(source)) {
|
||||
source.forEach(add)
|
||||
return this
|
||||
}
|
||||
|
||||
sources.push(source);
|
||||
source.once('end', remove.bind(null, source))
|
||||
source.once('error', output.emit.bind(output, 'error'))
|
||||
source.pipe(output, {end: false})
|
||||
return this
|
||||
}
|
||||
|
||||
function isEmpty () {
|
||||
return sources.length == 0;
|
||||
}
|
||||
|
||||
function remove (source) {
|
||||
sources = sources.filter(function (it) { return it !== source })
|
||||
if (!sources.length && output.readable) { output.end() }
|
||||
}
|
||||
}
|
56
node_modules/merge-stream/package.json
generated
vendored
Normal file
56
node_modules/merge-stream/package.json
generated
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"_from": "merge-stream@^1.0.1",
|
||||
"_id": "merge-stream@1.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-QEEgLVCKNCugAXQAjfDCUbjBNeE=",
|
||||
"_location": "/merge-stream",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "merge-stream@^1.0.1",
|
||||
"name": "merge-stream",
|
||||
"escapedName": "merge-stream",
|
||||
"rawSpec": "^1.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/jest-worker"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-1.0.1.tgz",
|
||||
"_shasum": "4041202d508a342ba00174008df0c251b8c135e1",
|
||||
"_spec": "merge-stream@^1.0.1",
|
||||
"_where": "E:\\github\\setup-java\\node_modules\\jest-worker",
|
||||
"author": {
|
||||
"name": "Stephen Sugden",
|
||||
"email": "me@stephensugden.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/grncdr/merge-stream/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"readable-stream": "^2.0.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Create a stream that emits events from multiple other streams",
|
||||
"devDependencies": {
|
||||
"from2": "^2.0.3",
|
||||
"istanbul": "^0.3.2"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/grncdr/merge-stream#readme",
|
||||
"license": "MIT",
|
||||
"name": "merge-stream",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/grncdr/merge-stream.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "istanbul cover test.js && istanbul check-cover --statements 100 --branches 100"
|
||||
},
|
||||
"version": "1.0.1"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue