new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isResponseOk = void 0;
|
||||
exports.isResponseOk = (response) => {
|
||||
const { statusCode } = response;
|
||||
const limitStatusCode = response.request.options.followRedirect ? 299 : 399;
|
||||
return (statusCode >= 200 && statusCode <= limitStatusCode) || statusCode === 304;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"filter.js","sources":["../src/operator/filter.ts"],"names":[],"mappings":";;;;;AAAA,iDAA4C"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"timer.js","sources":["../src/observable/timer.ts"],"names":[],"mappings":";;;;;AAAA,kDAA6C"}
|
||||
@@ -0,0 +1,208 @@
|
||||
var common = require('./common');
|
||||
var _tempDir = require('./tempdir').tempDir;
|
||||
var _pwd = require('./pwd');
|
||||
var path = require('path');
|
||||
var fs = require('fs');
|
||||
var child = require('child_process');
|
||||
|
||||
var DEFAULT_MAXBUFFER_SIZE = 20 * 1024 * 1024;
|
||||
var DEFAULT_ERROR_CODE = 1;
|
||||
|
||||
common.register('exec', _exec, {
|
||||
unix: false,
|
||||
canReceivePipe: true,
|
||||
wrapOutput: false,
|
||||
});
|
||||
|
||||
// We use this function to run `exec` synchronously while also providing realtime
|
||||
// output.
|
||||
function execSync(cmd, opts, pipe) {
|
||||
if (!common.config.execPath) {
|
||||
common.error('Unable to find a path to the node binary. Please manually set config.execPath');
|
||||
}
|
||||
|
||||
var tempDir = _tempDir();
|
||||
var paramsFile = path.resolve(tempDir + '/' + common.randomFileName());
|
||||
var stderrFile = path.resolve(tempDir + '/' + common.randomFileName());
|
||||
var stdoutFile = path.resolve(tempDir + '/' + common.randomFileName());
|
||||
|
||||
opts = common.extend({
|
||||
silent: common.config.silent,
|
||||
cwd: _pwd().toString(),
|
||||
env: process.env,
|
||||
maxBuffer: DEFAULT_MAXBUFFER_SIZE,
|
||||
encoding: 'utf8',
|
||||
}, opts);
|
||||
|
||||
if (fs.existsSync(paramsFile)) common.unlinkSync(paramsFile);
|
||||
if (fs.existsSync(stderrFile)) common.unlinkSync(stderrFile);
|
||||
if (fs.existsSync(stdoutFile)) common.unlinkSync(stdoutFile);
|
||||
|
||||
opts.cwd = path.resolve(opts.cwd);
|
||||
|
||||
var paramsToSerialize = {
|
||||
command: cmd,
|
||||
execOptions: opts,
|
||||
pipe: pipe,
|
||||
stdoutFile: stdoutFile,
|
||||
stderrFile: stderrFile,
|
||||
};
|
||||
|
||||
fs.writeFileSync(paramsFile, JSON.stringify(paramsToSerialize), 'utf8');
|
||||
|
||||
var execArgs = [
|
||||
path.join(__dirname, 'exec-child.js'),
|
||||
paramsFile,
|
||||
];
|
||||
|
||||
/* istanbul ignore else */
|
||||
if (opts.silent) {
|
||||
opts.stdio = 'ignore';
|
||||
} else {
|
||||
opts.stdio = [0, 1, 2];
|
||||
}
|
||||
|
||||
var code = 0;
|
||||
|
||||
// Welcome to the future
|
||||
try {
|
||||
// Bad things if we pass in a `shell` option to child_process.execFileSync,
|
||||
// so we need to explicitly remove it here.
|
||||
delete opts.shell;
|
||||
|
||||
child.execFileSync(common.config.execPath, execArgs, opts);
|
||||
} catch (e) {
|
||||
// Commands with non-zero exit code raise an exception.
|
||||
code = e.status || DEFAULT_ERROR_CODE;
|
||||
}
|
||||
|
||||
// fs.readFileSync uses buffer encoding by default, so call
|
||||
// it without the encoding option if the encoding is 'buffer'.
|
||||
// Also, if the exec timeout is too short for node to start up,
|
||||
// the files will not be created, so these calls will throw.
|
||||
var stdout = '';
|
||||
var stderr = '';
|
||||
if (opts.encoding === 'buffer') {
|
||||
stdout = fs.readFileSync(stdoutFile);
|
||||
stderr = fs.readFileSync(stderrFile);
|
||||
} else {
|
||||
stdout = fs.readFileSync(stdoutFile, opts.encoding);
|
||||
stderr = fs.readFileSync(stderrFile, opts.encoding);
|
||||
}
|
||||
|
||||
// No biggie if we can't erase the files now -- they're in a temp dir anyway
|
||||
try { common.unlinkSync(paramsFile); } catch (e) {}
|
||||
try { common.unlinkSync(stderrFile); } catch (e) {}
|
||||
try { common.unlinkSync(stdoutFile); } catch (e) {}
|
||||
|
||||
if (code !== 0) {
|
||||
// Note: `silent` should be unconditionally true to avoid double-printing
|
||||
// the command's stderr, and to avoid printing any stderr when the user has
|
||||
// set `shell.config.silent`.
|
||||
common.error(stderr, code, { continue: true, silent: true });
|
||||
}
|
||||
var obj = common.ShellString(stdout, stderr, code);
|
||||
return obj;
|
||||
} // execSync()
|
||||
|
||||
// Wrapper around exec() to enable echoing output to console in real time
|
||||
function execAsync(cmd, opts, pipe, callback) {
|
||||
opts = common.extend({
|
||||
silent: common.config.silent,
|
||||
cwd: _pwd().toString(),
|
||||
env: process.env,
|
||||
maxBuffer: DEFAULT_MAXBUFFER_SIZE,
|
||||
encoding: 'utf8',
|
||||
}, opts);
|
||||
|
||||
var c = child.exec(cmd, opts, function (err, stdout, stderr) {
|
||||
if (callback) {
|
||||
if (!err) {
|
||||
callback(0, stdout, stderr);
|
||||
} else if (err.code === undefined) {
|
||||
// See issue #536
|
||||
/* istanbul ignore next */
|
||||
callback(1, stdout, stderr);
|
||||
} else {
|
||||
callback(err.code, stdout, stderr);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (pipe) c.stdin.end(pipe);
|
||||
|
||||
if (!opts.silent) {
|
||||
c.stdout.pipe(process.stdout);
|
||||
c.stderr.pipe(process.stderr);
|
||||
}
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
//@
|
||||
//@ ### exec(command [, options] [, callback])
|
||||
//@
|
||||
//@ Available options:
|
||||
//@
|
||||
//@ + `async`: Asynchronous execution. If a callback is provided, it will be set to
|
||||
//@ `true`, regardless of the passed value (default: `false`).
|
||||
//@ + `silent`: Do not echo program output to console (default: `false`).
|
||||
//@ + `encoding`: Character encoding to use. Affects the values returned to stdout and stderr, and
|
||||
//@ what is written to stdout and stderr when not in silent mode (default: `'utf8'`).
|
||||
//@ + and any option available to Node.js's
|
||||
//@ [`child_process.exec()`](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback)
|
||||
//@
|
||||
//@ Examples:
|
||||
//@
|
||||
//@ ```javascript
|
||||
//@ var version = exec('node --version', {silent:true}).stdout;
|
||||
//@
|
||||
//@ var child = exec('some_long_running_process', {async:true});
|
||||
//@ child.stdout.on('data', function(data) {
|
||||
//@ /* ... do something with data ... */
|
||||
//@ });
|
||||
//@
|
||||
//@ exec('some_long_running_process', function(code, stdout, stderr) {
|
||||
//@ console.log('Exit code:', code);
|
||||
//@ console.log('Program output:', stdout);
|
||||
//@ console.log('Program stderr:', stderr);
|
||||
//@ });
|
||||
//@ ```
|
||||
//@
|
||||
//@ Executes the given `command` _synchronously_, unless otherwise specified. When in synchronous
|
||||
//@ mode, this returns a `ShellString` (compatible with ShellJS v0.6.x, which returns an object
|
||||
//@ of the form `{ code:..., stdout:... , stderr:... }`). Otherwise, this returns the child process
|
||||
//@ object, and the `callback` receives the arguments `(code, stdout, stderr)`.
|
||||
//@
|
||||
//@ Not seeing the behavior you want? `exec()` runs everything through `sh`
|
||||
//@ by default (or `cmd.exe` on Windows), which differs from `bash`. If you
|
||||
//@ need bash-specific behavior, try out the `{shell: 'path/to/bash'}` option.
|
||||
function _exec(command, options, callback) {
|
||||
options = options || {};
|
||||
if (!command) common.error('must specify command');
|
||||
|
||||
var pipe = common.readFromPipe();
|
||||
|
||||
// Callback is defined instead of options.
|
||||
if (typeof options === 'function') {
|
||||
callback = options;
|
||||
options = { async: true };
|
||||
}
|
||||
|
||||
// Callback is defined with options.
|
||||
if (typeof options === 'object' && typeof callback === 'function') {
|
||||
options.async = true;
|
||||
}
|
||||
|
||||
options = common.extend({
|
||||
silent: common.config.silent,
|
||||
async: false,
|
||||
}, options);
|
||||
|
||||
if (options.async) {
|
||||
return execAsync(command, options, pipe, callback);
|
||||
} else {
|
||||
return execSync(command, options, pipe);
|
||||
}
|
||||
}
|
||||
module.exports = _exec;
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operators/distinctUntilChanged';
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"scheduleIterable.js","sources":["../../../src/internal/scheduled/scheduleIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEjE,MAAM,UAAU,gBAAgB,CAAI,KAAkB,EAAE,SAAwB;IAC9E,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,UAAU,CAAI,UAAA,UAAU;QACjC,IAAM,GAAG,GAAG,IAAI,YAAY,EAAE,CAAC;QAC/B,IAAI,QAAqB,CAAC;QAC1B,GAAG,CAAC,GAAG,CAAC;YAEN,IAAI,QAAQ,IAAI,OAAO,QAAQ,CAAC,MAAM,KAAK,UAAU,EAAE;gBACrD,QAAQ,CAAC,MAAM,EAAE,CAAC;aACnB;QACH,CAAC,CAAC,CAAC;QACH,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC;YACzB,QAAQ,GAAG,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC;YACpC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC;gBACzB,IAAI,UAAU,CAAC,MAAM,EAAE;oBACrB,OAAO;iBACR;gBACD,IAAI,KAAQ,CAAC;gBACb,IAAI,IAAa,CAAC;gBAClB,IAAI;oBACF,IAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;oBAC/B,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;oBACrB,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;iBACpB;gBAAC,OAAO,GAAG,EAAE;oBACZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACtB,OAAO;iBACR;gBACD,IAAI,IAAI,EAAE;oBACR,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;qBAAM;oBACL,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBACvB,IAAI,CAAC,QAAQ,EAAE,CAAC;iBACjB;YACH,CAAC,CAAC,CAAC,CAAC;QACN,CAAC,CAAC,CAAC,CAAC;QACJ,OAAO,GAAG,CAAC;IACb,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { async } from '../scheduler/async';
|
||||
import { map } from './map';
|
||||
export function timestamp(scheduler = async) {
|
||||
return map((value) => new Timestamp(value, scheduler.now()));
|
||||
}
|
||||
export class Timestamp {
|
||||
constructor(value, timestamp) {
|
||||
this.value = value;
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=timestamp.js.map
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/operator/debounceTime");
|
||||
//# sourceMappingURL=debounceTime.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"scan.js","sources":["../../../src/internal/operators/scan.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAoD3C,MAAM,UAAU,IAAI,CAAO,WAAmD,EAAE,IAAY;IAC1F,IAAI,OAAO,GAAG,KAAK,CAAC;IAMpB,IAAI,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE;QACzB,OAAO,GAAG,IAAI,CAAC;KAChB;IAED,OAAO,SAAS,oBAAoB,CAAC,MAAqB;QACxD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC;AACJ,CAAC;AAED;IACE,sBAAoB,WAAmD,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eAAS,GAAT,SAAS,CAAe;QAJ5C,cAAQ,GAAY,KAAK,CAAC;QAMxB,KAAI,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,KAAI,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC,CAAC;;IAC3F,CAAC;IAES,oCAAK,GAAf,UAAgB,KAAQ;QACtB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,yCAAU,GAAV;QACE,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;YACtB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACvC;IACH,CAAC;IACH,2BAAC;AAAD,CAAC,AAtBD,CAAsC,uBAAU,GAsB/C;AAED,SAAS,oBAAoB,CAAgC,KAAU;IAC/D,IAAA,6BAAU,EAAE,qBAAM,CAAW;IACnC,UAAU,CAAC,UAAU,EAAE,CAAC;IACxB,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AAC/B,CAAC"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"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","2":"C K L H M N O","328":"P Q R S T U"},C:{"1":"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 DC EC","161":"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 ZB vB aB bB cB dB eB fB gB hB iB jB kB e lB mB nB oB pB P Q R wB S T"},D:{"1":"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","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 ZB vB aB bB cB dB eB","328":"fB gB hB iB jB kB e lB mB nB oB pB P Q R S T U"},E:{"1":"3B 4B 5B sB 6B 7B 8B NC","2":"I u J E F G A B C K L GC zB HC IC JC KC 0B qB rB 1B LC","578":"H MC 2B"},F:{"1":"kB e lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d","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 NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB OC PC QC RC qB 9B SC rB","328":"eB fB gB hB iB jB"},G:{"1":"3B 4B 5B sB 6B 7B 8B","2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC","578":"mC 2B"},H:{"2":"nC"},I:{"1":"D","2":"tB I oC pC qC rC AC sC tC"},J:{"2":"E A"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"2":"uC"},P:{"1":"3C 4C sB 5C 6C 7C","2":"I vC wC xC yC zC 0B 0C 1C 2C"},Q:{"2":"1B"},R:{"1":"8C"},S:{"161":"9C"}},B:5,C:":focus-visible CSS pseudo-class"};
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/observable/FromEventPatternObservable';
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/observable/fromEventPattern';
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"pipe.js","sources":["../../../src/internal/util/pipe.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAiBtC,MAAM,UAAU,IAAI;IAAC,aAAsC;SAAtC,UAAsC,EAAtC,qBAAsC,EAAtC,IAAsC;QAAtC,wBAAsC;;IACzD,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;AAGD,MAAM,UAAU,aAAa,CAAO,GAA+B;IACjE,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;QACpB,OAAO,QAAmC,CAAC;KAC5C;IAED,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;QACpB,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;KACf;IAED,OAAO,SAAS,KAAK,CAAC,KAAQ;QAC5B,OAAO,GAAG,CAAC,MAAM,CAAC,UAAC,IAAS,EAAE,EAAuB,IAAK,OAAA,EAAE,CAAC,IAAI,CAAC,EAAR,CAAQ,EAAE,KAAY,CAAC,CAAC;IACpF,CAAC,CAAC;AACJ,CAAC"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.006,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0.003,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0.003,"100":0,"101":0,"102":0.003,"103":0,"104":0.003,"105":0.006,"106":0.006,"107":0.00899,"108":0.19187,"109":0.11992,"110":0,"111":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0.00899,"39":0,"40":0,"41":0,"42":0,"43":0.003,"44":0.003,"45":0.003,"46":0.00899,"47":0,"48":0,"49":0.003,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0.003,"61":0,"62":0,"63":0.003,"64":0,"65":0.003,"66":0.003,"67":0.003,"68":0.003,"69":0.003,"70":0.003,"71":0.003,"72":0.003,"73":0.003,"74":0.003,"75":0,"76":0.003,"77":0.07195,"78":0.006,"79":0.02998,"80":0.003,"81":0.00899,"83":0.006,"84":0.003,"85":0.006,"86":0.01499,"87":0.00899,"88":0.003,"89":0.00899,"90":0.006,"91":0,"92":0.006,"93":0.003,"94":0.003,"95":0.02099,"96":0.00899,"97":0.006,"98":0.01199,"99":0.00899,"100":0.06895,"101":0.006,"102":0.02099,"103":0.02398,"104":0.00899,"105":0.01499,"106":0.02698,"107":0.12891,"108":3.32478,"109":3.21685,"110":0.003,"111":0.006,"112":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0.003,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.006,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0.003,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0.07495,"94":0.15889,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0.003,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.003,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0.003,"107":0.03298,"108":0.27881,"109":0.28781},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.01799,"15":0,_:"0","3.1":0,"3.2":0,"5.1":0.01799,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0,"13.1":0.006,"14.1":0.00899,"15.1":0.003,"15.2-15.3":0.003,"15.4":0.006,"15.5":0.01499,"15.6":0.04197,"16.0":0.01499,"16.1":0.04197,"16.2":0.04497,"16.3":0.003},G:{"8":0.00129,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00258,"6.0-6.1":0,"7.0-7.1":0.10725,"8.1-8.4":0.00388,"9.0-9.2":0.00258,"9.3":0.0168,"10.0-10.2":0.00258,"10.3":0.01034,"11.0-11.2":0.01034,"11.3-11.4":0.00646,"12.0-12.1":0.01034,"12.2-12.5":0.30367,"13.0-13.1":0.00258,"13.2":0.00517,"13.3":0.01809,"13.4-13.7":0.0504,"14.0-14.4":0.14473,"14.5-14.8":0.36182,"15.0-15.1":0.10208,"15.2-15.3":0.1331,"15.4":0.16669,"15.5":0.39025,"15.6":1.36328,"16.0":2.40868,"16.1":3.34811,"16.2":2.75111,"16.3":0.26619},P:{"4":0.08131,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0.08131,"8.2":0,"9.2":0.03049,"10.1":0.01016,"11.1-11.2":0.12197,"12.0":0.02033,"13.0":0.12197,"14.0":0.13213,"15.0":0.07115,"16.0":0.20328,"17.0":0.24394,"18.0":0.20328,"19.0":3.07975},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.15698},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.00642,"9":0.00321,"10":0.00321,"11":0.03212,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.08402},Q:{"13.1":0},O:{"0":0.07002},H:{"0":0.35797},L:{"0":72.66198},S:{"2.5":0}};
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("rxjs-compat/operators/pluck"));
|
||||
//# sourceMappingURL=pluck.js.map
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operators/retryWhen';
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "cacheable-request",
|
||||
"version": "7.0.2",
|
||||
"description": "Wrap native HTTP requests with RFC compliant cache support",
|
||||
"license": "MIT",
|
||||
"repository": "lukechilds/cacheable-request",
|
||||
"author": "Luke Childs <lukechilds123@gmail.com> (http://lukechilds.co.uk)",
|
||||
"main": "src/index.js",
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && nyc ava",
|
||||
"coverage": "nyc report --reporter=text-lcov | coveralls"
|
||||
},
|
||||
"files": [
|
||||
"src"
|
||||
],
|
||||
"keywords": [
|
||||
"HTTP",
|
||||
"HTTPS",
|
||||
"cache",
|
||||
"caching",
|
||||
"layer",
|
||||
"cacheable",
|
||||
"RFC 7234",
|
||||
"RFC",
|
||||
"7234",
|
||||
"compliant"
|
||||
],
|
||||
"dependencies": {
|
||||
"clone-response": "^1.0.2",
|
||||
"get-stream": "^5.1.0",
|
||||
"http-cache-semantics": "^4.0.0",
|
||||
"keyv": "^4.0.0",
|
||||
"lowercase-keys": "^2.0.0",
|
||||
"normalize-url": "^6.0.1",
|
||||
"responselike": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@keyv/sqlite": "^2.0.0",
|
||||
"ava": "^1.1.0",
|
||||
"coveralls": "^3.0.0",
|
||||
"create-test-server": "3.0.0",
|
||||
"delay": "^4.0.0",
|
||||
"eslint-config-xo-lukechilds": "^1.0.0",
|
||||
"nyc": "^14.1.1",
|
||||
"pify": "^4.0.0",
|
||||
"sqlite3": "^4.0.2",
|
||||
"this": "^1.0.2",
|
||||
"xo": "^0.23.0"
|
||||
},
|
||||
"xo": {
|
||||
"extends": "xo-lukechilds"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("rxjs-compat/operator/throttleTime"));
|
||||
//# sourceMappingURL=throttleTime.js.map
|
||||
@@ -0,0 +1,105 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var async_1 = require("../scheduler/async");
|
||||
var isDate_1 = require("../util/isDate");
|
||||
var Subscriber_1 = require("../Subscriber");
|
||||
var Notification_1 = require("../Notification");
|
||||
function delay(delay, scheduler) {
|
||||
if (scheduler === void 0) { scheduler = async_1.async; }
|
||||
var absoluteDelay = isDate_1.isDate(delay);
|
||||
var delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay);
|
||||
return function (source) { return source.lift(new DelayOperator(delayFor, scheduler)); };
|
||||
}
|
||||
exports.delay = delay;
|
||||
var DelayOperator = (function () {
|
||||
function DelayOperator(delay, scheduler) {
|
||||
this.delay = delay;
|
||||
this.scheduler = scheduler;
|
||||
}
|
||||
DelayOperator.prototype.call = function (subscriber, source) {
|
||||
return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));
|
||||
};
|
||||
return DelayOperator;
|
||||
}());
|
||||
var DelaySubscriber = (function (_super) {
|
||||
__extends(DelaySubscriber, _super);
|
||||
function DelaySubscriber(destination, delay, scheduler) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.delay = delay;
|
||||
_this.scheduler = scheduler;
|
||||
_this.queue = [];
|
||||
_this.active = false;
|
||||
_this.errored = false;
|
||||
return _this;
|
||||
}
|
||||
DelaySubscriber.dispatch = function (state) {
|
||||
var source = state.source;
|
||||
var queue = source.queue;
|
||||
var scheduler = state.scheduler;
|
||||
var destination = state.destination;
|
||||
while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {
|
||||
queue.shift().notification.observe(destination);
|
||||
}
|
||||
if (queue.length > 0) {
|
||||
var delay_1 = Math.max(0, queue[0].time - scheduler.now());
|
||||
this.schedule(state, delay_1);
|
||||
}
|
||||
else {
|
||||
this.unsubscribe();
|
||||
source.active = false;
|
||||
}
|
||||
};
|
||||
DelaySubscriber.prototype._schedule = function (scheduler) {
|
||||
this.active = true;
|
||||
var destination = this.destination;
|
||||
destination.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {
|
||||
source: this, destination: this.destination, scheduler: scheduler
|
||||
}));
|
||||
};
|
||||
DelaySubscriber.prototype.scheduleNotification = function (notification) {
|
||||
if (this.errored === true) {
|
||||
return;
|
||||
}
|
||||
var scheduler = this.scheduler;
|
||||
var message = new DelayMessage(scheduler.now() + this.delay, notification);
|
||||
this.queue.push(message);
|
||||
if (this.active === false) {
|
||||
this._schedule(scheduler);
|
||||
}
|
||||
};
|
||||
DelaySubscriber.prototype._next = function (value) {
|
||||
this.scheduleNotification(Notification_1.Notification.createNext(value));
|
||||
};
|
||||
DelaySubscriber.prototype._error = function (err) {
|
||||
this.errored = true;
|
||||
this.queue = [];
|
||||
this.destination.error(err);
|
||||
this.unsubscribe();
|
||||
};
|
||||
DelaySubscriber.prototype._complete = function () {
|
||||
this.scheduleNotification(Notification_1.Notification.createComplete());
|
||||
this.unsubscribe();
|
||||
};
|
||||
return DelaySubscriber;
|
||||
}(Subscriber_1.Subscriber));
|
||||
var DelayMessage = (function () {
|
||||
function DelayMessage(time, notification) {
|
||||
this.time = time;
|
||||
this.notification = notification;
|
||||
}
|
||||
return DelayMessage;
|
||||
}());
|
||||
//# sourceMappingURL=delay.js.map
|
||||
@@ -0,0 +1,54 @@
|
||||
import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
|
||||
/**
|
||||
* Emits a value from the source Observable only after a particular time span
|
||||
* has passed without another source emission.
|
||||
*
|
||||
* <span class="informal">It's like {@link delay}, but passes only the most
|
||||
* recent value from each burst of emissions.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* `debounceTime` delays values emitted by the source Observable, but drops
|
||||
* previous pending delayed emissions if a new value arrives on the source
|
||||
* Observable. This operator keeps track of the most recent value from the
|
||||
* source Observable, and emits that only when `dueTime` enough time has passed
|
||||
* without any other value appearing on the source Observable. If a new value
|
||||
* appears before `dueTime` silence occurs, the previous value will be dropped
|
||||
* and will not be emitted on the output Observable.
|
||||
*
|
||||
* This is a rate-limiting operator, because it is impossible for more than one
|
||||
* value to be emitted in any time window of duration `dueTime`, but it is also
|
||||
* a delay-like operator since output emissions do not occur at the same time as
|
||||
* they did on the source Observable. Optionally takes a {@link SchedulerLike} for
|
||||
* managing timers.
|
||||
*
|
||||
* ## Example
|
||||
* Emit the most recent click after a burst of clicks
|
||||
* ```ts
|
||||
* import { fromEvent } from 'rxjs';
|
||||
* import { debounceTime } from 'rxjs/operators';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const result = clicks.pipe(debounceTime(1000));
|
||||
* result.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* @see {@link auditTime}
|
||||
* @see {@link debounce}
|
||||
* @see {@link delay}
|
||||
* @see {@link sampleTime}
|
||||
* @see {@link throttleTime}
|
||||
*
|
||||
* @param {number} dueTime The timeout duration in milliseconds (or the time
|
||||
* unit determined internally by the optional `scheduler`) for the window of
|
||||
* time required to wait for emission silence before emitting the most recent
|
||||
* source value.
|
||||
* @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for
|
||||
* managing the timers that handle the timeout for each value.
|
||||
* @return {Observable} An Observable that delays the emissions of the source
|
||||
* Observable by the specified `dueTime`, and may drop some values if they occur
|
||||
* too frequently.
|
||||
* @method debounceTime
|
||||
* @owner Observable
|
||||
*/
|
||||
export declare function debounceTime<T>(dueTime: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction<T>;
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("rxjs-compat/operator/pairwise"));
|
||||
//# sourceMappingURL=pairwise.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"find-up","version":"5.0.0","files":{"license":{"checkedAt":1678887829613,"integrity":"sha512-0fM2/ycrxrltyaBKfQ748Ck23VlPUUBgNAR47ldf4B1V/HoXTfWBSk+vcshGKwEpmOynu4mOP5o+hyBfuRNa8g==","mode":420,"size":1117},"index.js":{"checkedAt":1678887829619,"integrity":"sha512-Id84aEletfhJNr6x3/snlMAnu+unG139xkJIWwKawjkuJ3p8otbZ23TuDYTNAwH24ktLwQW5z4wfNwlbSLotvw==","mode":420,"size":1940},"package.json":{"checkedAt":1678887829619,"integrity":"sha512-N1nXdtWMjXnWBuu9JeQODBg6L1cbwgWCtlDSqZ7s0xIgH3ce+XxPiuI1c+v7KsI+KyI5uTB5/8+Kt3zV3qlVmQ==","mode":420,"size":917},"index.d.ts":{"checkedAt":1678887829619,"integrity":"sha512-Sf9cadeyVVF5FYJuZFbz1PA881VIFKX3AqNaje1SgJnLRmXI3Foh4nVm8YjdZaxB+i0M77QALXsa0WO3jdLoKg==","mode":420,"size":3762},"readme.md":{"checkedAt":1678887829619,"integrity":"sha512-I0gRtkArKEqwHoKCrSnez7BZAtFcVudwhTpEIjX2SLqKevBLMsGsL3Cy5jOArVcngZlvZVtrkxTxS9iERW5cCQ==","mode":420,"size":4025}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"tryCatch.js","sources":["../../../src/internal/util/tryCatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,IAAI,cAAwB,CAAC;AAE7B,SAAS,UAAU;IACjB,WAAW,CAAC,CAAC,GAAG,SAAS,CAAC;IAC1B,IAAI;QACF,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;KAC9C;IAAC,OAAO,CAAC,EAAE;QACV,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC;QAClB,OAAO,WAAW,CAAC;KACpB;YAAS;QACR,cAAc,GAAG,SAAS,CAAC;KAC5B;AACH,CAAC;AAED,MAAM,UAAU,QAAQ,CAAqB,EAAK;IAChD,cAAc,GAAG,EAAE,CAAC;IACpB,OAAY,UAAU,CAAC;AACzB,CAAC"}
|
||||
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__export(require("rxjs-compat/operator/find"));
|
||||
//# sourceMappingURL=find.js.map
|
||||
Reference in New Issue
Block a user