new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/operator/repeatWhen';
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"of.js","sources":["../../src/add/observable/of.ts"],"names":[],"mappings":";;AAAA,yCAAuC"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F BC","132":"G A B"},B:{"1":"P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t","1028":"C K L H M N O"},C:{"1":"aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB","2":"CC tB","260":"I u J E F G A B C K L H DC EC","1028":"0 1 2 3 4 5 6 7 8 9 M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB"},D:{"1":"gB hB iB jB kB e lB mB nB oB pB P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB FC","548":"0 1 2 3 4 I u J E F G A B C K L H M N O v w x y z","1028":"5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB"},E:{"1":"sB 6B 7B 8B NC","2":"GC zB","548":"I u J E F G A B C K L H HC IC JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B"},F:{"1":"VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d rB","2":"G","548":"B C OC PC QC RC qB 9B SC","1028":"0 1 2 3 4 5 6 7 8 9 H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB"},G:{"1":"sB 6B 7B 8B","16":"zB","548":"F TC AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B"},H:{"132":"nC"},I:{"1":"D","16":"oC pC","548":"tB I qC rC AC","1028":"sC tC"},J:{"548":"E A"},K:{"1":"e rB","548":"A B C qB 9B"},L:{"1":"D"},M:{"1":"D"},N:{"132":"A B"},O:{"1":"uC"},P:{"1":"0B 0C 1C 2C 3C 4C sB 5C 6C 7C","1028":"I vC wC xC yC zC"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:4,C:"Media Queries: resolution feature"};
|
||||
@@ -0,0 +1,31 @@
|
||||
'use strict';
|
||||
const decompressResponse = require('decompress-response');
|
||||
const is = require('@sindresorhus/is');
|
||||
const mimicResponse = require('mimic-response');
|
||||
const progress = require('./progress');
|
||||
|
||||
module.exports = (response, options, emitter) => {
|
||||
const downloadBodySize = Number(response.headers['content-length']) || null;
|
||||
|
||||
const progressStream = progress.download(response, emitter, downloadBodySize);
|
||||
|
||||
mimicResponse(response, progressStream);
|
||||
|
||||
const newResponse = options.decompress === true &&
|
||||
is.function(decompressResponse) &&
|
||||
options.method !== 'HEAD' ? decompressResponse(progressStream) : progressStream;
|
||||
|
||||
if (!options.decompress && ['gzip', 'deflate'].includes(response.headers['content-encoding'])) {
|
||||
options.encoding = null;
|
||||
}
|
||||
|
||||
emitter.emit('response', newResponse);
|
||||
|
||||
emitter.emit('downloadProgress', {
|
||||
percent: 0,
|
||||
transferred: 0,
|
||||
total: downloadBodySize
|
||||
});
|
||||
|
||||
response.pipe(progressStream);
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
|
||||
// test by github.com/nsfmc
|
||||
|
||||
// "The 'rem' unit ('root em') is relative to the computed
|
||||
// value of the 'font-size' value of the root element."
|
||||
// http://www.w3.org/TR/css3-values/#relative0
|
||||
// you can test by checking if the prop was ditched
|
||||
|
||||
// http://snook.ca/archives/html_and_css/font-size-with-rem
|
||||
|
||||
Modernizr.addTest('cssremunit', function(){
|
||||
|
||||
var div = document.createElement('div');
|
||||
try {
|
||||
div.style.fontSize = '3rem';
|
||||
} catch(er){}
|
||||
return (/rem/).test(div.style.fontSize);
|
||||
|
||||
});
|
||||
@@ -0,0 +1,63 @@
|
||||
import { ReplaySubject } from '../ReplaySubject';
|
||||
export function shareReplay(configOrBufferSize, windowTime, scheduler) {
|
||||
let config;
|
||||
if (configOrBufferSize && typeof configOrBufferSize === 'object') {
|
||||
config = configOrBufferSize;
|
||||
}
|
||||
else {
|
||||
config = {
|
||||
bufferSize: configOrBufferSize,
|
||||
windowTime,
|
||||
refCount: false,
|
||||
scheduler,
|
||||
};
|
||||
}
|
||||
return (source) => source.lift(shareReplayOperator(config));
|
||||
}
|
||||
function shareReplayOperator({ bufferSize = Number.POSITIVE_INFINITY, windowTime = Number.POSITIVE_INFINITY, refCount: useRefCount, scheduler, }) {
|
||||
let subject;
|
||||
let refCount = 0;
|
||||
let subscription;
|
||||
let hasError = false;
|
||||
let isComplete = false;
|
||||
return function shareReplayOperation(source) {
|
||||
refCount++;
|
||||
let innerSub;
|
||||
if (!subject || hasError) {
|
||||
hasError = false;
|
||||
subject = new ReplaySubject(bufferSize, windowTime, scheduler);
|
||||
innerSub = subject.subscribe(this);
|
||||
subscription = source.subscribe({
|
||||
next(value) {
|
||||
subject.next(value);
|
||||
},
|
||||
error(err) {
|
||||
hasError = true;
|
||||
subject.error(err);
|
||||
},
|
||||
complete() {
|
||||
isComplete = true;
|
||||
subscription = undefined;
|
||||
subject.complete();
|
||||
},
|
||||
});
|
||||
if (isComplete) {
|
||||
subscription = undefined;
|
||||
}
|
||||
}
|
||||
else {
|
||||
innerSub = subject.subscribe(this);
|
||||
}
|
||||
this.add(() => {
|
||||
refCount--;
|
||||
innerSub.unsubscribe();
|
||||
innerSub = undefined;
|
||||
if (subscription && !isComplete && useRefCount && refCount === 0) {
|
||||
subscription.unsubscribe();
|
||||
subscription = undefined;
|
||||
subject = undefined;
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=shareReplay.js.map
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/observable/fromIterable';
|
||||
@@ -0,0 +1,3 @@
|
||||
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
||||
export var isArray = /*@__PURE__*/ (function () { return Array.isArray || (function (x) { return x && typeof x.length === 'number'; }); })();
|
||||
//# sourceMappingURL=isArray.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
// Browser support test for <style scoped>
|
||||
// http://www.w3.org/TR/html5/the-style-element.html#attr-style-scoped
|
||||
//
|
||||
// by @alrra
|
||||
|
||||
Modernizr.addTest( 'stylescoped', 'scoped' in document.createElement('style') );
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"P Q R S T U V W","2":"C K L H M N O","1025":"X Y Z a b c d f g h i j k l m n o p q r s D t"},C:{"2":"0 1 2 3 4 5 6 7 8 9 CC tB I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB e DC EC","260":"lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB"},D:{"1":"lB mB nB oB pB P Q R S T U V W","2":"0 1 2 3 4 5 6 7 8 9 I u J E F G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB","132":"ZB vB aB bB cB dB eB fB gB hB iB jB kB e","1025":"X Y Z a b c d f g h i j k l m n o p q r s D t xB yB FC"},E:{"2":"I u J E F G A B GC zB HC IC JC KC 0B","772":"C K L H qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC"},F:{"1":"aB bB cB dB eB fB gB hB iB jB kB e lB","2":"0 1 2 3 4 5 6 7 8 9 G B C H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB OC PC QC RC qB 9B SC rB","132":"NB OB PB QB RB SB TB UB VB WB XB YB ZB","1025":"mB nB oB pB P Q R wB S T U V W X Y Z a b c d"},G:{"2":"F zB TC AC UC VC WC XC YC ZC aC bC cC","772":"dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B"},H:{"2":"nC"},I:{"1":"D","2":"tB I oC pC qC rC AC sC tC"},J:{"2":"E A"},K:{"2":"A B C qB 9B rB","1025":"e"},L:{"1025":"D"},M:{"260":"D"},N:{"2":"A B"},O:{"2":"uC"},P:{"1":"0C 1C 2C 3C 4C sB 5C 6C 7C","2":"I vC wC xC","132":"yC zC 0B"},Q:{"132":"1B"},R:{"1025":"8C"},S:{"2":"9C"}},B:7,C:"Feature Policy"};
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/observable/concat';
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"timeInterval.js","sources":["../src/operator/timeInterval.ts"],"names":[],"mappings":";;;;;AAAA,uDAAkD"}
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"buffer","version":"5.7.1","files":{"LICENSE":{"checkedAt":1678887830130,"integrity":"sha512-C4gkwdCuX04P/8WV39+ojXJDZd4Wjv9LQKaLejDf3iyfZaEyt9R3AQT1Ng1OqACvBQftb1ha9gADsNOFwJsFkw==","mode":420,"size":1106},"package.json":{"checkedAt":1678887830141,"integrity":"sha512-wp1p2KhScV0shQ8p/yXdDIZP0BMWbUw2lMXjDTVh0g99HuTn4r0iD8MhZPP6sGgLs8p5/QBKHzmtbr4ZCNSoUw==","mode":420,"size":2597},"index.js":{"checkedAt":1678887830141,"integrity":"sha512-mBQr6UFNlENARFfKwuHSX2zMnoc41pfbaebcGh0g78oyRuYDDB6+yfWmcjevpKUYqufRrrLLRdtJXv+oidf0tg==","mode":420,"size":50097},"AUTHORS.md":{"checkedAt":1678887830141,"integrity":"sha512-lApehVqQG3F7xdTTFyqn9e52PfjhKcKjOyrkNt/Xhry+8HerDB8J9IOl9BQxtV0s5okzVQ54IzetzdLjB42OBw==","mode":420,"size":2672},"README.md":{"checkedAt":1678887830147,"integrity":"sha512-mkhK/4HZZSSccW36R3+PBnRvtpHlJayqSC4B92p/EdK7C9ONEgXTPvJ7m5btLSfG7nHu/zDUCC7gqfnUb3Q0BA==","mode":420,"size":17300},"index.d.ts":{"checkedAt":1678887830160,"integrity":"sha512-fnjswxYIm3u+jkoX/h0HeMR1WQ2nj87vCI2jaJN7k47/pogicbxh49/8fdo6S3LRxfDl7QXiknRRqFhMh09fmA==","mode":420,"size":8755}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"withLatestFrom.js","sources":["../../../src/internal/operators/withLatestFrom.ts"],"names":[],"mappings":"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"}
|
||||
@@ -0,0 +1,125 @@
|
||||
# make-dir [](https://travis-ci.org/sindresorhus/make-dir) [](https://codecov.io/gh/sindresorhus/make-dir)
|
||||
|
||||
> Make a directory and its parents if needed - Think `mkdir -p`
|
||||
|
||||
## Advantages over [`mkdirp`](https://github.com/substack/node-mkdirp)
|
||||
|
||||
- Promise API *(Async/await ready!)*
|
||||
- Fixes many `mkdirp` issues: [#96](https://github.com/substack/node-mkdirp/pull/96) [#70](https://github.com/substack/node-mkdirp/issues/70) [#66](https://github.com/substack/node-mkdirp/issues/66)
|
||||
- 100% test coverage
|
||||
- CI-tested on macOS, Linux, and Windows
|
||||
- Actively maintained
|
||||
- Doesn't bundle a CLI
|
||||
- Uses the native `fs.mkdir/mkdirSync` [`recursive` option](https://nodejs.org/dist/latest/docs/api/fs.html#fs_fs_mkdir_path_options_callback) in Node.js >=10.12.0 unless [overridden](#fs)
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install make-dir
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
$ pwd
|
||||
/Users/sindresorhus/fun
|
||||
$ tree
|
||||
.
|
||||
```
|
||||
|
||||
```js
|
||||
const makeDir = require('make-dir');
|
||||
|
||||
(async () => {
|
||||
const path = await makeDir('unicorn/rainbow/cake');
|
||||
|
||||
console.log(path);
|
||||
//=> '/Users/sindresorhus/fun/unicorn/rainbow/cake'
|
||||
})();
|
||||
```
|
||||
|
||||
```
|
||||
$ tree
|
||||
.
|
||||
└── unicorn
|
||||
└── rainbow
|
||||
└── cake
|
||||
```
|
||||
|
||||
Multiple directories:
|
||||
|
||||
```js
|
||||
const makeDir = require('make-dir');
|
||||
|
||||
(async () => {
|
||||
const paths = await Promise.all([
|
||||
makeDir('unicorn/rainbow'),
|
||||
makeDir('foo/bar')
|
||||
]);
|
||||
|
||||
console.log(paths);
|
||||
/*
|
||||
[
|
||||
'/Users/sindresorhus/fun/unicorn/rainbow',
|
||||
'/Users/sindresorhus/fun/foo/bar'
|
||||
]
|
||||
*/
|
||||
})();
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### makeDir(path, options?)
|
||||
|
||||
Returns a `Promise` for the path to the created directory.
|
||||
|
||||
### makeDir.sync(path, options?)
|
||||
|
||||
Returns the path to the created directory.
|
||||
|
||||
#### path
|
||||
|
||||
Type: `string`
|
||||
|
||||
Directory to create.
|
||||
|
||||
#### options
|
||||
|
||||
Type: `object`
|
||||
|
||||
##### mode
|
||||
|
||||
Type: `integer`\
|
||||
Default: `0o777`
|
||||
|
||||
Directory [permissions](https://x-team.com/blog/file-system-permissions-umask-node-js/).
|
||||
|
||||
##### fs
|
||||
|
||||
Type: `object`\
|
||||
Default: `require('fs')`
|
||||
|
||||
Use a custom `fs` implementation. For example [`graceful-fs`](https://github.com/isaacs/node-graceful-fs).
|
||||
|
||||
Using a custom `fs` implementation will block the use of the native `recursive` option if `fs.mkdir` or `fs.mkdirSync` is not the native function.
|
||||
|
||||
## Related
|
||||
|
||||
- [make-dir-cli](https://github.com/sindresorhus/make-dir-cli) - CLI for this module
|
||||
- [del](https://github.com/sindresorhus/del) - Delete files and directories
|
||||
- [globby](https://github.com/sindresorhus/globby) - User-friendly glob matching
|
||||
- [cpy](https://github.com/sindresorhus/cpy) - Copy files
|
||||
- [cpy-cli](https://github.com/sindresorhus/cpy-cli) - Copy files on the command-line
|
||||
- [move-file](https://github.com/sindresorhus/move-file) - Move a file
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-make-dir?utm_source=npm-make-dir&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
||||
</b>
|
||||
<br>
|
||||
<sub>
|
||||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||
</sub>
|
||||
</div>
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"macos-release","version":"2.5.0","files":{"license":{"checkedAt":1678887829613,"integrity":"sha512-0fM2/ycrxrltyaBKfQ748Ck23VlPUUBgNAR47ldf4B1V/HoXTfWBSk+vcshGKwEpmOynu4mOP5o+hyBfuRNa8g==","mode":420,"size":1117},"index.js":{"checkedAt":1678887830160,"integrity":"sha512-tDZfwbySWOgm78t+aO3rLEWwU9wsCnI2f5XNLn+3QGeUD9wnYCMQuDVF0tk+ISXRrvddcKyKCNjXCrPZjZp0cw==","mode":420,"size":852},"package.json":{"checkedAt":1678887830160,"integrity":"sha512-cw8Y40RXwNmVpDw3DjADnAm2X0xFBVx5LE1cJUPxykyLCMJ0CG5PzgAhVoHv4Ws0jRH4s+PO0hURDKQNZ4EjWw==","mode":420,"size":719},"readme.md":{"checkedAt":1678887830160,"integrity":"sha512-aWKaRYB6Zjnelds7p4j+RF5AsHOCPfEoxXIw6c7/LwDwrn9CAoscyGeUsz0DfKVpeRSiTa0Gje1awQyJu/vYfg==","mode":420,"size":1831},"index.d.ts":{"checkedAt":1678887830163,"integrity":"sha512-Jbz/qV2cr46AXW6dIEwqptly30u0d/jh9DNDasjwFcE6kUrcmDSxcDGf0zrSBbqmUIVSlwGn7uz9XaOvvds1UA==","mode":420,"size":1210}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"timeout.js","sources":["../../../src/internal/operators/timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAK3C,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAgFtD,MAAM,UAAU,OAAO,CAAI,GAAkB,EAClB,YAA2B,KAAK;IACzD,OAAO,WAAW,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,YAAY,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;AACrE,CAAC"}
|
||||
@@ -0,0 +1,42 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { MonoTypeOperatorFunction } from '../types';
|
||||
/**
|
||||
* Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.
|
||||
*
|
||||
* The `skipUntil` operator causes the observable stream to skip the emission of values until the passed in observable emits the first value.
|
||||
* This can be particularly useful in combination with user interactions, responses of http requests or waiting for specific times to pass by.
|
||||
*
|
||||
* 
|
||||
*
|
||||
* Internally the `skipUntil` operator subscribes to the passed in observable (in the following called *notifier*) in order to recognize the emission
|
||||
* of its first value. When this happens, the operator unsubscribes from the *notifier* and starts emitting the values of the *source*
|
||||
* observable. It will never let the *source* observable emit any values if the *notifier* completes or throws an error without emitting
|
||||
* a value before.
|
||||
*
|
||||
* ## Example
|
||||
*
|
||||
* In the following example, all emitted values of the interval observable are skipped until the user clicks anywhere within the page.
|
||||
*
|
||||
* ```ts
|
||||
* import { interval, fromEvent } from 'rxjs';
|
||||
* import { skipUntil } from 'rxjs/operators';
|
||||
*
|
||||
* const intervalObservable = interval(1000);
|
||||
* const click = fromEvent(document, 'click');
|
||||
*
|
||||
* const emitAfterClick = intervalObservable.pipe(
|
||||
* skipUntil(click)
|
||||
* );
|
||||
* // clicked at 4.6s. output: 5...6...7...8........ or
|
||||
* // clicked at 7.3s. output: 8...9...10..11.......
|
||||
* const subscribe = emitAfterClick.subscribe(value => console.log(value));
|
||||
* ```
|
||||
*
|
||||
* @param {Observable} notifier - The second Observable that has to emit an item before the source Observable's elements begin to
|
||||
* be mirrored by the resulting Observable.
|
||||
* @return {Observable<T>} An Observable that skips items from the source Observable until the second Observable emits
|
||||
* an item, then emits the remaining items.
|
||||
* @method skipUntil
|
||||
* @owner Observable
|
||||
*/
|
||||
export declare function skipUntil<T>(notifier: Observable<any>): MonoTypeOperatorFunction<T>;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"delayWhen.js","sources":["../src/operators/delayWhen.ts"],"names":[],"mappings":";;;;;AAAA,qDAAgD"}
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/operator/reduce");
|
||||
//# sourceMappingURL=reduce.js.map
|
||||
@@ -0,0 +1,10 @@
|
||||
/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */
|
||||
import { Observable } from '../Observable';
|
||||
export var EMPTY = /*@__PURE__*/ new Observable(function (subscriber) { return subscriber.complete(); });
|
||||
export function empty(scheduler) {
|
||||
return scheduler ? emptyScheduled(scheduler) : EMPTY;
|
||||
}
|
||||
function emptyScheduled(scheduler) {
|
||||
return new Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });
|
||||
}
|
||||
//# sourceMappingURL=empty.js.map
|
||||
@@ -0,0 +1,51 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { OperatorFunction } from '../types';
|
||||
/**
|
||||
* Branch out the source Observable values as a nested Observable starting from
|
||||
* an emission from `openings` and ending when the output of `closingSelector`
|
||||
* emits.
|
||||
*
|
||||
* <span class="informal">It's like {@link bufferToggle}, but emits a nested
|
||||
* Observable instead of an array.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* Returns an Observable that emits windows of items it collects from the source
|
||||
* Observable. The output Observable emits windows that contain those items
|
||||
* emitted by the source Observable between the time when the `openings`
|
||||
* Observable emits an item and when the Observable returned by
|
||||
* `closingSelector` emits an item.
|
||||
*
|
||||
* ## Example
|
||||
* Every other second, emit the click events from the next 500ms
|
||||
* ```ts
|
||||
* import { fromEvent, interval, EMPTY } from 'rxjs';
|
||||
* import { windowToggle, mergeAll } from 'rxjs/operators';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const openings = interval(1000);
|
||||
* const result = clicks.pipe(
|
||||
* windowToggle(openings, i => i % 2 ? interval(500) : EMPTY),
|
||||
* mergeAll()
|
||||
* );
|
||||
* result.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* @see {@link window}
|
||||
* @see {@link windowCount}
|
||||
* @see {@link windowTime}
|
||||
* @see {@link windowWhen}
|
||||
* @see {@link bufferToggle}
|
||||
*
|
||||
* @param {Observable<O>} openings An observable of notifications to start new
|
||||
* windows.
|
||||
* @param {function(value: O): Observable} closingSelector A function that takes
|
||||
* the value emitted by the `openings` observable and returns an Observable,
|
||||
* which, when it emits (either `next` or `complete`), signals that the
|
||||
* associated window should complete.
|
||||
* @return {Observable<Observable<T>>} An observable of windows, which in turn
|
||||
* are Observables.
|
||||
* @method windowToggle
|
||||
* @owner Observable
|
||||
*/
|
||||
export declare function windowToggle<T, O>(openings: Observable<O>, closingSelector: (openValue: O) => Observable<any>): OperatorFunction<T, Observable<T>>;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"combineLatest.js","sources":["../../src/add/observable/combineLatest.ts"],"names":[],"mappings":";;AAAA,oDAAkD"}
|
||||
@@ -0,0 +1,29 @@
|
||||
'use strict';
|
||||
const PassThrough = require('stream').PassThrough;
|
||||
const zlib = require('zlib');
|
||||
const mimicResponse = require('mimic-response');
|
||||
|
||||
module.exports = response => {
|
||||
// TODO: Use Array#includes when targeting Node.js 6
|
||||
if (['gzip', 'deflate'].indexOf(response.headers['content-encoding']) === -1) {
|
||||
return response;
|
||||
}
|
||||
|
||||
const unzip = zlib.createUnzip();
|
||||
const stream = new PassThrough();
|
||||
|
||||
mimicResponse(response, stream);
|
||||
|
||||
unzip.on('error', err => {
|
||||
if (err.code === 'Z_BUF_ERROR') {
|
||||
stream.end();
|
||||
return;
|
||||
}
|
||||
|
||||
stream.emit('error', err);
|
||||
});
|
||||
|
||||
response.pipe(unzip).pipe(stream);
|
||||
|
||||
return stream;
|
||||
};
|
||||
@@ -0,0 +1,82 @@
|
||||
const tty = require("tty")
|
||||
|
||||
const env = process.env
|
||||
|
||||
const isDisabled = "NO_COLOR" in env
|
||||
const isForced = "FORCE_COLOR" in env
|
||||
const isWindows = process.platform === "win32"
|
||||
|
||||
const isCompatibleTerminal =
|
||||
tty && tty.isatty(1) && env.TERM && env.TERM !== "dumb"
|
||||
|
||||
const isCI =
|
||||
"CI" in env &&
|
||||
("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env)
|
||||
|
||||
let enabled =
|
||||
!isDisabled && (isForced || isWindows || isCompatibleTerminal || isCI)
|
||||
|
||||
const raw = (open, close, searchRegex, replaceValue) => (s) =>
|
||||
enabled
|
||||
? open +
|
||||
(~(s += "").indexOf(close, 4) // skip opening \x1b[
|
||||
? s.replace(searchRegex, replaceValue)
|
||||
: s) +
|
||||
close
|
||||
: s
|
||||
|
||||
const init = (open, close) => {
|
||||
return raw(
|
||||
`\x1b[${open}m`,
|
||||
`\x1b[${close}m`,
|
||||
new RegExp(`\\x1b\\[${close}m`, "g"),
|
||||
`\x1b[${open}m`
|
||||
)
|
||||
}
|
||||
|
||||
exports.options = Object.defineProperty({}, "enabled", {
|
||||
get: () => enabled,
|
||||
set: (value) => (enabled = value),
|
||||
})
|
||||
|
||||
exports.reset = init(0, 0)
|
||||
exports.bold = raw("\x1b[1m", "\x1b[22m", /\x1b\[22m/g, "\x1b[22m\x1b[1m")
|
||||
exports.dim = raw("\x1b[2m", "\x1b[22m", /\x1b\[22m/g, "\x1b[22m\x1b[2m")
|
||||
exports.italic = init(3, 23)
|
||||
exports.underline = init(4, 24)
|
||||
exports.inverse = init(7, 27)
|
||||
exports.hidden = init(8, 28)
|
||||
exports.strikethrough = init(9, 29)
|
||||
exports.black = init(30, 39)
|
||||
exports.red = init(31, 39)
|
||||
exports.green = init(32, 39)
|
||||
exports.yellow = init(33, 39)
|
||||
exports.blue = init(34, 39)
|
||||
exports.magenta = init(35, 39)
|
||||
exports.cyan = init(36, 39)
|
||||
exports.white = init(37, 39)
|
||||
exports.gray = init(90, 39)
|
||||
exports.bgBlack = init(40, 49)
|
||||
exports.bgRed = init(41, 49)
|
||||
exports.bgGreen = init(42, 49)
|
||||
exports.bgYellow = init(43, 49)
|
||||
exports.bgBlue = init(44, 49)
|
||||
exports.bgMagenta = init(45, 49)
|
||||
exports.bgCyan = init(46, 49)
|
||||
exports.bgWhite = init(47, 49)
|
||||
exports.blackBright = init(90, 39)
|
||||
exports.redBright = init(91, 39)
|
||||
exports.greenBright = init(92, 39)
|
||||
exports.yellowBright = init(93, 39)
|
||||
exports.blueBright = init(94, 39)
|
||||
exports.magentaBright = init(95, 39)
|
||||
exports.cyanBright = init(96, 39)
|
||||
exports.whiteBright = init(97, 39)
|
||||
exports.bgBlackBright = init(100, 49)
|
||||
exports.bgRedBright = init(101, 49)
|
||||
exports.bgGreenBright = init(102, 49)
|
||||
exports.bgYellowBright = init(103, 49)
|
||||
exports.bgBlueBright = init(104, 49)
|
||||
exports.bgMagentaBright = init(105, 49)
|
||||
exports.bgCyanBright = init(106, 49)
|
||||
exports.bgWhiteBright = init(107, 49)
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operator/observeOn';
|
||||
@@ -0,0 +1,26 @@
|
||||
module.exports = defer;
|
||||
|
||||
/**
|
||||
* Runs provided function on next iteration of the event loop
|
||||
*
|
||||
* @param {function} fn - function to run
|
||||
*/
|
||||
function defer(fn)
|
||||
{
|
||||
var nextTick = typeof setImmediate == 'function'
|
||||
? setImmediate
|
||||
: (
|
||||
typeof process == 'object' && typeof process.nextTick == 'function'
|
||||
? process.nextTick
|
||||
: null
|
||||
);
|
||||
|
||||
if (nextTick)
|
||||
{
|
||||
nextTick(fn);
|
||||
}
|
||||
else
|
||||
{
|
||||
setTimeout(fn, 0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G BC","132":"A B"},B:{"132":"C K L H M N O","1028":"P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t"},C:{"2":"0 1 2 3 4 5 6 7 8 CC tB I u J E F G A B C K L H M N O v w x y z DC EC","1028":"hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB","2564":"9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB","3076":"PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB"},D:{"16":"I u J E","132":"0 1 2 3 4 5 6 7 8 9 G A B C K L H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB","388":"F","1028":"vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R S T U V W X Y Z a b c d f g h i j k l m n o p q r s D t xB yB FC"},E:{"16":"I GC zB","132":"u J E F G A HC IC JC KC 0B","1028":"B C K L H qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC"},F:{"2":"G B C OC PC QC RC qB 9B SC rB","132":"0 1 2 3 4 5 6 7 8 9 H M N O v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB","1028":"OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d"},G:{"16":"zB TC AC","132":"F UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC 2B 3B 4B 5B sB 6B 7B 8B"},H:{"2":"nC"},I:{"132":"I rC AC sC tC","292":"tB oC pC qC","1028":"D"},J:{"16":"E","132":"A"},K:{"2":"A B C qB 9B rB","1028":"e"},L:{"1028":"D"},M:{"1028":"D"},N:{"132":"A B"},O:{"1028":"uC"},P:{"132":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1028":"1B"},R:{"1028":"8C"},S:{"2564":"9C"}},B:4,C:"DOMMatrix"};
|
||||
@@ -0,0 +1,14 @@
|
||||
Copyright (C) 2013-present SheetJS
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Reference in New Issue
Block a user