mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-15 09:45:53 -07:00
chore: add yarn command to put compiled stylesheets into builds folder
This commit is contained in:
parent
7ae453a61c
commit
6e46b46074
6788 changed files with 697992 additions and 12 deletions
21
node_modules/@sindresorhus/merge-streams/index.d.ts
generated
vendored
Normal file
21
node_modules/@sindresorhus/merge-streams/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
Merges an array of [readable streams](https://nodejs.org/api/stream.html#readable-streams) and returns a new readable stream that emits data from the individual streams as it arrives.
|
||||
|
||||
If you provide an empty array, it returns an already-ended stream.
|
||||
|
||||
@example
|
||||
```
|
||||
import mergeStreams from '@sindresorhus/merge-streams';
|
||||
|
||||
const stream = mergeStreams([streamA, streamB]);
|
||||
|
||||
for await (const chunk of stream) {
|
||||
console.log(chunk);
|
||||
//=> 'A1'
|
||||
//=> 'B1'
|
||||
//=> 'A2'
|
||||
//=> 'B2'
|
||||
}
|
||||
```
|
||||
*/
|
||||
export default function mergeStreams(streams: NodeJS.ReadableStream[]): NodeJS.ReadableStream;
|
||||
39
node_modules/@sindresorhus/merge-streams/index.js
generated
vendored
Normal file
39
node_modules/@sindresorhus/merge-streams/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
import {PassThrough as PassThroughStream} from 'node:stream';
|
||||
|
||||
export default function mergeStreams(streams) {
|
||||
if (!Array.isArray(streams)) {
|
||||
throw new TypeError(`Expected an array, got \`${typeof streams}\`.`);
|
||||
}
|
||||
|
||||
const passThroughStream = new PassThroughStream({objectMode: true});
|
||||
passThroughStream.setMaxListeners(Number.POSITIVE_INFINITY);
|
||||
|
||||
if (streams.length === 0) {
|
||||
passThroughStream.end();
|
||||
return passThroughStream;
|
||||
}
|
||||
|
||||
let activeStreams = streams.length;
|
||||
|
||||
for (const stream of streams) {
|
||||
if (!(typeof stream?.pipe === 'function')) {
|
||||
throw new TypeError(`Expected a stream, got: \`${typeof stream}\`.`);
|
||||
}
|
||||
|
||||
stream.pipe(passThroughStream, {end: false});
|
||||
|
||||
stream.on('end', () => {
|
||||
activeStreams--;
|
||||
|
||||
if (activeStreams === 0) {
|
||||
passThroughStream.end();
|
||||
}
|
||||
});
|
||||
|
||||
stream.on('error', error => {
|
||||
passThroughStream.emit('error', error);
|
||||
});
|
||||
}
|
||||
|
||||
return passThroughStream;
|
||||
}
|
||||
9
node_modules/@sindresorhus/merge-streams/license
generated
vendored
Normal file
9
node_modules/@sindresorhus/merge-streams/license
generated
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://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.
|
||||
45
node_modules/@sindresorhus/merge-streams/package.json
generated
vendored
Normal file
45
node_modules/@sindresorhus/merge-streams/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
"name": "@sindresorhus/merge-streams",
|
||||
"version": "1.0.0",
|
||||
"description": "Merge multiple streams into a unified stream",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/merge-streams",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": {
|
||||
"types": "./index.d.ts",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsc index.d.ts"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"merge",
|
||||
"stream",
|
||||
"streams",
|
||||
"readable",
|
||||
"passthrough",
|
||||
"interleave",
|
||||
"interleaved",
|
||||
"unify",
|
||||
"unified"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^5.3.1",
|
||||
"typescript": "^5.2.2",
|
||||
"xo": "^0.56.0"
|
||||
}
|
||||
}
|
||||
33
node_modules/@sindresorhus/merge-streams/readme.md
generated
vendored
Normal file
33
node_modules/@sindresorhus/merge-streams/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# merge-streams
|
||||
|
||||
> Merge multiple streams into a unified stream
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install @sindresorhus/merge-streams
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import mergeStreams from '@sindresorhus/merge-streams';
|
||||
|
||||
const stream = mergeStreams([streamA, streamB]);
|
||||
|
||||
for await (const chunk of stream) {
|
||||
console.log(chunk);
|
||||
//=> 'A1'
|
||||
//=> 'B1'
|
||||
//=> 'A2'
|
||||
//=> 'B2'
|
||||
}
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### `mergeStreams(streams: stream.Readable[]): stream.Readable`
|
||||
|
||||
Merges an array of [readable streams](https://nodejs.org/api/stream.html#readable-streams) and returns a new readable stream that emits data from the individual streams as it arrives.
|
||||
|
||||
If you provide an empty array, it returns an already-ended stream.
|
||||
Loading…
Add table
Add a link
Reference in a new issue