new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,309 @@
|
||||
// Type definitions for commander 2.11
|
||||
// Project: https://github.com/visionmedia/commander.js
|
||||
// Definitions by: Alan Agius <https://github.com/alan-agius4>, Marcelo Dezem <https://github.com/mdezem>, vvakame <https://github.com/vvakame>, Jules Randolph <https://github.com/sveinburne>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace local {
|
||||
|
||||
class Option {
|
||||
flags: string;
|
||||
required: boolean;
|
||||
optional: boolean;
|
||||
bool: boolean;
|
||||
short?: string;
|
||||
long: string;
|
||||
description: string;
|
||||
|
||||
/**
|
||||
* Initialize a new `Option` with the given `flags` and `description`.
|
||||
*
|
||||
* @param {string} flags
|
||||
* @param {string} [description]
|
||||
*/
|
||||
constructor(flags: string, description?: string);
|
||||
}
|
||||
|
||||
class Command extends NodeJS.EventEmitter {
|
||||
[key: string]: any;
|
||||
|
||||
args: string[];
|
||||
|
||||
/**
|
||||
* Initialize a new `Command`.
|
||||
*
|
||||
* @param {string} [name]
|
||||
*/
|
||||
constructor(name?: string);
|
||||
|
||||
/**
|
||||
* Set the program version to `str`.
|
||||
*
|
||||
* This method auto-registers the "-V, --version" flag
|
||||
* which will print the version number when passed.
|
||||
*
|
||||
* @param {string} str
|
||||
* @param {string} [flags]
|
||||
* @returns {Command} for chaining
|
||||
*/
|
||||
version(str: string, flags?: string): Command;
|
||||
|
||||
/**
|
||||
* Add command `name`.
|
||||
*
|
||||
* The `.action()` callback is invoked when the
|
||||
* command `name` is specified via __ARGV__,
|
||||
* and the remaining arguments are applied to the
|
||||
* function for access.
|
||||
*
|
||||
* When the `name` is "*" an un-matched command
|
||||
* will be passed as the first arg, followed by
|
||||
* the rest of __ARGV__ remaining.
|
||||
*
|
||||
* @example
|
||||
* program
|
||||
* .version('0.0.1')
|
||||
* .option('-C, --chdir <path>', 'change the working directory')
|
||||
* .option('-c, --config <path>', 'set config path. defaults to ./deploy.conf')
|
||||
* .option('-T, --no-tests', 'ignore test hook')
|
||||
*
|
||||
* program
|
||||
* .command('setup')
|
||||
* .description('run remote setup commands')
|
||||
* .action(function() {
|
||||
* console.log('setup');
|
||||
* });
|
||||
*
|
||||
* program
|
||||
* .command('exec <cmd>')
|
||||
* .description('run the given remote command')
|
||||
* .action(function(cmd) {
|
||||
* console.log('exec "%s"', cmd);
|
||||
* });
|
||||
*
|
||||
* program
|
||||
* .command('teardown <dir> [otherDirs...]')
|
||||
* .description('run teardown commands')
|
||||
* .action(function(dir, otherDirs) {
|
||||
* console.log('dir "%s"', dir);
|
||||
* if (otherDirs) {
|
||||
* otherDirs.forEach(function (oDir) {
|
||||
* console.log('dir "%s"', oDir);
|
||||
* });
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* program
|
||||
* .command('*')
|
||||
* .description('deploy the given env')
|
||||
* .action(function(env) {
|
||||
* console.log('deploying "%s"', env);
|
||||
* });
|
||||
*
|
||||
* program.parse(process.argv);
|
||||
*
|
||||
* @param {string} name
|
||||
* @param {string} [desc] for git-style sub-commands
|
||||
* @param {CommandOptions} [opts] command options
|
||||
* @returns {Command} the new command
|
||||
*/
|
||||
command(name: string, desc?: string, opts?: commander.CommandOptions): Command;
|
||||
|
||||
/**
|
||||
* Define argument syntax for the top-level command.
|
||||
*
|
||||
* @param {string} desc
|
||||
* @returns {Command} for chaining
|
||||
*/
|
||||
arguments(desc: string): Command;
|
||||
|
||||
/**
|
||||
* Parse expected `args`.
|
||||
*
|
||||
* For example `["[type]"]` becomes `[{ required: false, name: 'type' }]`.
|
||||
*
|
||||
* @param {string[]} args
|
||||
* @returns {Command} for chaining
|
||||
*/
|
||||
parseExpectedArgs(args: string[]): Command;
|
||||
|
||||
/**
|
||||
* Register callback `fn` for the command.
|
||||
*
|
||||
* @example
|
||||
* program
|
||||
* .command('help')
|
||||
* .description('display verbose help')
|
||||
* .action(function() {
|
||||
* // output help here
|
||||
* });
|
||||
*
|
||||
* @param {(...args: any[]) => void} fn
|
||||
* @returns {Command} for chaining
|
||||
*/
|
||||
action(fn: (...args: any[]) => void): Command;
|
||||
|
||||
/**
|
||||
* Define option with `flags`, `description` and optional
|
||||
* coercion `fn`.
|
||||
*
|
||||
* The `flags` string should contain both the short and long flags,
|
||||
* separated by comma, a pipe or space. The following are all valid
|
||||
* all will output this way when `--help` is used.
|
||||
*
|
||||
* "-p, --pepper"
|
||||
* "-p|--pepper"
|
||||
* "-p --pepper"
|
||||
*
|
||||
* @example
|
||||
* // simple boolean defaulting to false
|
||||
* program.option('-p, --pepper', 'add pepper');
|
||||
*
|
||||
* --pepper
|
||||
* program.pepper
|
||||
* // => Boolean
|
||||
*
|
||||
* // simple boolean defaulting to true
|
||||
* program.option('-C, --no-cheese', 'remove cheese');
|
||||
*
|
||||
* program.cheese
|
||||
* // => true
|
||||
*
|
||||
* --no-cheese
|
||||
* program.cheese
|
||||
* // => false
|
||||
*
|
||||
* // required argument
|
||||
* program.option('-C, --chdir <path>', 'change the working directory');
|
||||
*
|
||||
* --chdir /tmp
|
||||
* program.chdir
|
||||
* // => "/tmp"
|
||||
*
|
||||
* // optional argument
|
||||
* program.option('-c, --cheese [type]', 'add cheese [marble]');
|
||||
*
|
||||
* @param {string} flags
|
||||
* @param {string} [description]
|
||||
* @param {((arg1: any, arg2: any) => void) | RegExp} [fn] function or default
|
||||
* @param {*} [defaultValue]
|
||||
* @returns {Command} for chaining
|
||||
*/
|
||||
option(flags: string, description?: string, fn?: ((arg1: any, arg2: any) => void) | RegExp, defaultValue?: any): Command;
|
||||
option(flags: string, description?: string, defaultValue?: any): Command;
|
||||
|
||||
/**
|
||||
* Allow unknown options on the command line.
|
||||
*
|
||||
* @param {boolean} [arg] if `true` or omitted, no error will be thrown for unknown options.
|
||||
* @returns {Command} for chaining
|
||||
*/
|
||||
allowUnknownOption(arg?: boolean): Command;
|
||||
|
||||
/**
|
||||
* Parse `argv`, settings options and invoking commands when defined.
|
||||
*
|
||||
* @param {string[]} argv
|
||||
* @returns {Command} for chaining
|
||||
*/
|
||||
parse(argv: string[]): Command;
|
||||
|
||||
/**
|
||||
* Parse options from `argv` returning `argv` void of these options.
|
||||
*
|
||||
* @param {string[]} argv
|
||||
* @returns {ParseOptionsResult}
|
||||
*/
|
||||
parseOptions(argv: string[]): commander.ParseOptionsResult;
|
||||
|
||||
/**
|
||||
* Return an object containing options as key-value pairs
|
||||
*
|
||||
* @returns {{[key: string]: any}}
|
||||
*/
|
||||
opts(): { [key: string]: any };
|
||||
|
||||
/**
|
||||
* Set the description to `str`.
|
||||
*
|
||||
* @param {string} str
|
||||
* @return {(Command | string)}
|
||||
*/
|
||||
description(str: string): Command;
|
||||
description(): string;
|
||||
|
||||
/**
|
||||
* Set an alias for the command.
|
||||
*
|
||||
* @param {string} alias
|
||||
* @return {(Command | string)}
|
||||
*/
|
||||
alias(alias: string): Command;
|
||||
alias(): string;
|
||||
|
||||
/**
|
||||
* Set or get the command usage.
|
||||
*
|
||||
* @param {string} str
|
||||
* @return {(Command | string)}
|
||||
*/
|
||||
usage(str: string): Command;
|
||||
usage(): string;
|
||||
|
||||
/**
|
||||
* Set the name of the command.
|
||||
*
|
||||
* @param {string} str
|
||||
* @return {Command}
|
||||
*/
|
||||
name(str: string): Command;
|
||||
|
||||
/**
|
||||
* Get the name of the command.
|
||||
*
|
||||
* @return {string}
|
||||
*/
|
||||
name(): string;
|
||||
|
||||
/**
|
||||
* Output help information for this command.
|
||||
*
|
||||
* @param {(str: string) => string} [cb]
|
||||
*/
|
||||
outputHelp(cb?: (str: string) => string): void;
|
||||
|
||||
/** Output help information and exit.
|
||||
*
|
||||
* @param {(str: string) => string} [cb]
|
||||
*/
|
||||
help(cb?: (str: string) => string): never;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
declare namespace commander {
|
||||
|
||||
type Command = local.Command
|
||||
|
||||
type Option = local.Option
|
||||
|
||||
interface CommandOptions {
|
||||
noHelp?: boolean;
|
||||
isDefault?: boolean;
|
||||
}
|
||||
|
||||
interface ParseOptionsResult {
|
||||
args: string[];
|
||||
unknown: string[];
|
||||
}
|
||||
|
||||
interface CommanderStatic extends Command {
|
||||
Command: typeof local.Command;
|
||||
Option: typeof local.Option;
|
||||
CommandOptions: CommandOptions;
|
||||
ParseOptionsResult: ParseOptionsResult;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
declare const commander: commander.CommanderStatic;
|
||||
export = commander;
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "pump",
|
||||
"version": "3.0.0",
|
||||
"repository": "git://github.com/mafintosh/pump.git",
|
||||
"license": "MIT",
|
||||
"description": "pipe streams together and close all of them if one of them closes",
|
||||
"browser": {
|
||||
"fs": false
|
||||
},
|
||||
"keywords": [
|
||||
"streams",
|
||||
"pipe",
|
||||
"destroy",
|
||||
"callback"
|
||||
],
|
||||
"author": "Mathias Buus Madsen <mathiasbuus@gmail.com>",
|
||||
"dependencies": {
|
||||
"end-of-stream": "^1.1.0",
|
||||
"once": "^1.3.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test-browser.js && node test-node.js"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
# Installation
|
||||
> `npm install --save @types/parse-json`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for parse-json (https://github.com/sindresorhus/parse-json).
|
||||
|
||||
# Details
|
||||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/parse-json
|
||||
|
||||
Additional Details
|
||||
* Last updated: Tue, 14 Nov 2017 00:30:05 GMT
|
||||
* Dependencies: none
|
||||
* Global values: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by mrmlnc <https://github.com/mrmlnc>.
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"share.js","sources":["../src/operator/share.ts"],"names":[],"mappings":";;;;;AAAA,gDAA2C"}
|
||||
@@ -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 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"},C:{"1":"i j k l m n o p q r s D t xB yB","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 DC EC","194":"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","1218":"Q R wB S T U V W X Y Z a b c d f g h"},D:{"1":"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 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","2":"0 1 2 3 4 5 6 7 I u J E F G A B C K L H M N O v w x y z","322":"8 9 AB BB CB"},E:{"1":"3B 4B 5B sB 6B 7B 8B NC","2":"I u J E F G A B C K L H GC zB HC IC JC KC 0B qB rB 1B LC MC 2B"},F:{"1":"0 1 2 3 4 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 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","2":"G B C H M N O OC PC QC RC qB 9B SC rB","578":"v w x y z"},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 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:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"2":"9C"}},B:1,C:"Dialog element"};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"N O 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","2":"C K L H M"},C:{"1":"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 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 DC EC","2":"CC tB"},D:{"1":"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 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:{"2":"I u J E F G A B C K L GC zB HC IC JC KC 0B qB rB 1B","132":"H LC MC 2B 3B 4B 5B sB 6B 7B 8B NC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 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 QC RC qB 9B SC rB","2":"G OC PC"},G:{"2":"F zB 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 sB 6B 7B 8B"},H:{"2":"nC"},I:{"1":"tB I D qC rC AC sC tC","16":"oC pC"},J:{"1":"A","2":"E"},K:{"1":"B C e qB 9B rB","2":"A"},L:{"1":"D"},M:{"1":"D"},N:{"2":"A B"},O:{"1":"uC"},P:{"1":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"1":"1B"},R:{"1":"8C"},S:{"1":"9C"}},B:6,C:"Ogg Vorbis audio format"};
|
||||
@@ -0,0 +1,81 @@
|
||||
/** PURE_IMPORTS_START tslib,_Subscription,_innerSubscribe PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { Subscription } from '../Subscription';
|
||||
import { SimpleOuterSubscriber, innerSubscribe, SimpleInnerSubscriber } from '../innerSubscribe';
|
||||
export function bufferWhen(closingSelector) {
|
||||
return function (source) {
|
||||
return source.lift(new BufferWhenOperator(closingSelector));
|
||||
};
|
||||
}
|
||||
var BufferWhenOperator = /*@__PURE__*/ (function () {
|
||||
function BufferWhenOperator(closingSelector) {
|
||||
this.closingSelector = closingSelector;
|
||||
}
|
||||
BufferWhenOperator.prototype.call = function (subscriber, source) {
|
||||
return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector));
|
||||
};
|
||||
return BufferWhenOperator;
|
||||
}());
|
||||
var BufferWhenSubscriber = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(BufferWhenSubscriber, _super);
|
||||
function BufferWhenSubscriber(destination, closingSelector) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.closingSelector = closingSelector;
|
||||
_this.subscribing = false;
|
||||
_this.openBuffer();
|
||||
return _this;
|
||||
}
|
||||
BufferWhenSubscriber.prototype._next = function (value) {
|
||||
this.buffer.push(value);
|
||||
};
|
||||
BufferWhenSubscriber.prototype._complete = function () {
|
||||
var buffer = this.buffer;
|
||||
if (buffer) {
|
||||
this.destination.next(buffer);
|
||||
}
|
||||
_super.prototype._complete.call(this);
|
||||
};
|
||||
BufferWhenSubscriber.prototype._unsubscribe = function () {
|
||||
this.buffer = undefined;
|
||||
this.subscribing = false;
|
||||
};
|
||||
BufferWhenSubscriber.prototype.notifyNext = function () {
|
||||
this.openBuffer();
|
||||
};
|
||||
BufferWhenSubscriber.prototype.notifyComplete = function () {
|
||||
if (this.subscribing) {
|
||||
this.complete();
|
||||
}
|
||||
else {
|
||||
this.openBuffer();
|
||||
}
|
||||
};
|
||||
BufferWhenSubscriber.prototype.openBuffer = function () {
|
||||
var closingSubscription = this.closingSubscription;
|
||||
if (closingSubscription) {
|
||||
this.remove(closingSubscription);
|
||||
closingSubscription.unsubscribe();
|
||||
}
|
||||
var buffer = this.buffer;
|
||||
if (this.buffer) {
|
||||
this.destination.next(buffer);
|
||||
}
|
||||
this.buffer = [];
|
||||
var closingNotifier;
|
||||
try {
|
||||
var closingSelector = this.closingSelector;
|
||||
closingNotifier = closingSelector();
|
||||
}
|
||||
catch (err) {
|
||||
return this.error(err);
|
||||
}
|
||||
closingSubscription = new Subscription();
|
||||
this.closingSubscription = closingSubscription;
|
||||
this.add(closingSubscription);
|
||||
this.subscribing = true;
|
||||
closingSubscription.add(innerSubscribe(closingNotifier, new SimpleInnerSubscriber(this)));
|
||||
this.subscribing = false;
|
||||
};
|
||||
return BufferWhenSubscriber;
|
||||
}(SimpleOuterSubscriber));
|
||||
//# sourceMappingURL=bufferWhen.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -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.00224,"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.00672,"79":0,"80":0.00224,"81":0.00224,"82":0,"83":0.00224,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0.00224,"90":0.00224,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0.02911,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0.00672,"103":0.00448,"104":0.00224,"105":0.00448,"106":0.00224,"107":0.00448,"108":0.17688,"109":0.10076,"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.00448,"35":0,"36":0,"37":0,"38":0.01567,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0.00224,"48":0,"49":0.00224,"50":0,"51":0,"52":0,"53":0.00448,"54":0,"55":0,"56":0.00224,"57":0,"58":0,"59":0,"60":0.00448,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0.00224,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0.00224,"75":0,"76":0,"77":0.00224,"78":0.00448,"79":0.0403,"80":0.00448,"81":0.00448,"83":0.0112,"84":0.01567,"85":0.02463,"86":0.02015,"87":0.02239,"88":0,"89":0.00224,"90":0,"91":0.00224,"92":0.00896,"93":0.00448,"94":0.00224,"95":0.00224,"96":0.00448,"97":0.00224,"98":0.00672,"99":0.00224,"100":0.0112,"101":0.00896,"102":0.0112,"103":0.02911,"104":0.01567,"105":0.01567,"106":0.01567,"107":0.04926,"108":1.50013,"109":1.3434,"110":0.00224,"111":0.00224,"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.00224,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0.00224,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0.00672,"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.00224,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0.00224,"73":0.00448,"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,"92":0.00224,"93":0.02463,"94":0.05821,"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.00224,"79":0,"80":0,"81":0,"83":0,"84":0.00224,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"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.00224,"106":0.00224,"107":0.00672,"108":0.22614,"109":0.19927},E:{"4":0,"5":0,"6":0,"7":0,"8":0.00224,"9":0,"10":0,"11":0,"12":0,"13":0.00448,"14":0.01343,"15":0.00224,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.00224,"13.1":0.01343,"14.1":0.03135,"15.1":0.00448,"15.2-15.3":0.00448,"15.4":0.01567,"15.5":0.03135,"15.6":0.18808,"16.0":0.02463,"16.1":0.08284,"16.2":0.13434,"16.3":0.0112},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.0018,"6.0-6.1":0,"7.0-7.1":0.00899,"8.1-8.4":0.00359,"9.0-9.2":0.00359,"9.3":0.0665,"10.0-10.2":0,"10.3":0.04493,"11.0-11.2":0.01438,"11.3-11.4":0.01078,"12.0-12.1":0.00899,"12.2-12.5":0.23724,"13.0-13.1":0.00719,"13.2":0.0018,"13.3":0.02696,"13.4-13.7":0.07908,"14.0-14.4":0.18871,"14.5-14.8":0.39001,"15.0-15.1":0.11862,"15.2-15.3":0.13659,"15.4":0.17793,"15.5":0.33789,"15.6":1.71281,"16.0":2.09383,"16.1":6.48998,"16.2":4.61901,"16.3":0.37923},P:{"4":0.33006,"5.0-5.4":0.01031,"6.2-6.4":0,"7.2-7.4":0.01031,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0,"12.0":0.01031,"13.0":0.02063,"14.0":0.01031,"15.0":0,"16.0":0.02063,"17.0":0.02063,"18.0":0.06189,"19.0":2.66109},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":46.42037},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.00704,"9":0.00704,"10":0.00352,"11":0.03167,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},S:{"2.5":0},R:{_:"0"},M:{"0":0.40357},Q:{"13.1":0.00776},O:{"0":0.45014},H:{"0":0.39677},L:{"0":20.47569}};
|
||||
@@ -0,0 +1,5 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { OperatorFunction } from '../../internal/types';
|
||||
export declare function last<T, D = T>(predicate?: null, defaultValue?: D): OperatorFunction<T, T | D>;
|
||||
export declare function last<T, S extends T>(predicate: (value: T, index: number, source: Observable<T>) => value is S, defaultValue?: S): OperatorFunction<T, S>;
|
||||
export declare function last<T, D = T>(predicate: (value: T, index: number, source: Observable<T>) => boolean, defaultValue?: D): OperatorFunction<T, T | D>;
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"2":"C K L H M N O","2052":"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":"CC tB I u DC EC","1028":"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 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","1060":"0 1 2 3 4 5 6 7 8 9 J E F G A B C K L H M N O v w x y z AB BB"},D:{"2":"0 1 I u J E F G A B C K L H M N O v w x y z","226":"2 3 4 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","2052":"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 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:{"2":"I u J E GC zB HC IC","772":"K L H rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","804":"F G A B C KC 0B qB","1316":"JC"},F:{"2":"0 1 2 3 4 5 6 7 8 9 G B C H M N O v w x y z AB OC PC QC RC qB 9B SC rB","226":"BB CB DB EB FB GB HB IB JB","2052":"KB LB MB NB 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:{"2":"zB TC AC UC VC WC","292":"F 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:{"1":"D","2":"tB I oC pC qC rC AC sC tC"},J:{"2":"E A"},K:{"2":"A B C qB 9B rB","2052":"e"},L:{"2052":"D"},M:{"1028":"D"},N:{"2":"A B"},O:{"2052":"uC"},P:{"2":"I vC wC","2052":"xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"2052":"1B"},R:{"2052":"8C"},S:{"1028":"9C"}},B:4,C:"text-decoration styling"};
|
||||
@@ -0,0 +1,39 @@
|
||||
/** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
|
||||
import * as tslib_1 from "tslib";
|
||||
import { Subscriber } from '../Subscriber';
|
||||
export function defaultIfEmpty(defaultValue) {
|
||||
if (defaultValue === void 0) {
|
||||
defaultValue = null;
|
||||
}
|
||||
return function (source) { return source.lift(new DefaultIfEmptyOperator(defaultValue)); };
|
||||
}
|
||||
var DefaultIfEmptyOperator = /*@__PURE__*/ (function () {
|
||||
function DefaultIfEmptyOperator(defaultValue) {
|
||||
this.defaultValue = defaultValue;
|
||||
}
|
||||
DefaultIfEmptyOperator.prototype.call = function (subscriber, source) {
|
||||
return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));
|
||||
};
|
||||
return DefaultIfEmptyOperator;
|
||||
}());
|
||||
var DefaultIfEmptySubscriber = /*@__PURE__*/ (function (_super) {
|
||||
tslib_1.__extends(DefaultIfEmptySubscriber, _super);
|
||||
function DefaultIfEmptySubscriber(destination, defaultValue) {
|
||||
var _this = _super.call(this, destination) || this;
|
||||
_this.defaultValue = defaultValue;
|
||||
_this.isEmpty = true;
|
||||
return _this;
|
||||
}
|
||||
DefaultIfEmptySubscriber.prototype._next = function (value) {
|
||||
this.isEmpty = false;
|
||||
this.destination.next(value);
|
||||
};
|
||||
DefaultIfEmptySubscriber.prototype._complete = function () {
|
||||
if (this.isEmpty) {
|
||||
this.destination.next(this.defaultValue);
|
||||
}
|
||||
this.destination.complete();
|
||||
};
|
||||
return DefaultIfEmptySubscriber;
|
||||
}(Subscriber));
|
||||
//# sourceMappingURL=defaultIfEmpty.js.map
|
||||
@@ -0,0 +1,974 @@
|
||||
let unpack = require('caniuse-lite').feature
|
||||
|
||||
function browsersSort (a, b) {
|
||||
a = a.split(' ')
|
||||
b = b.split(' ')
|
||||
if (a[0] > b[0]) {
|
||||
return 1
|
||||
} else if (a[0] < b[0]) {
|
||||
return -1
|
||||
} else {
|
||||
return Math.sign(parseFloat(a[1]) - parseFloat(b[1]))
|
||||
}
|
||||
}
|
||||
|
||||
// Convert Can I Use data
|
||||
function f (data, opts, callback) {
|
||||
data = unpack(data)
|
||||
|
||||
if (!callback) {
|
||||
;[callback, opts] = [opts, {}]
|
||||
}
|
||||
|
||||
let match = opts.match || /\sx($|\s)/
|
||||
let need = []
|
||||
|
||||
for (let browser in data.stats) {
|
||||
let versions = data.stats[browser]
|
||||
for (let version in versions) {
|
||||
let support = versions[version]
|
||||
if (support.match(match)) {
|
||||
need.push(browser + ' ' + version)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
callback(need.sort(browsersSort))
|
||||
}
|
||||
|
||||
// Add data for all properties
|
||||
let result = {}
|
||||
|
||||
function prefix (names, data) {
|
||||
for (let name of names) {
|
||||
result[name] = Object.assign({}, data)
|
||||
}
|
||||
}
|
||||
|
||||
function add (names, data) {
|
||||
for (let name of names) {
|
||||
result[name].browsers = result[name].browsers
|
||||
.concat(data.browsers)
|
||||
.sort(browsersSort)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = result
|
||||
|
||||
// Border Radius
|
||||
f(require('caniuse-lite/data/features/border-radius'), browsers =>
|
||||
prefix(
|
||||
[
|
||||
'border-radius',
|
||||
'border-top-left-radius',
|
||||
'border-top-right-radius',
|
||||
'border-bottom-right-radius',
|
||||
'border-bottom-left-radius'
|
||||
],
|
||||
{
|
||||
mistakes: ['-khtml-', '-ms-', '-o-'],
|
||||
feature: 'border-radius',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
// Box Shadow
|
||||
f(require('caniuse-lite/data/features/css-boxshadow'), browsers =>
|
||||
prefix(['box-shadow'], {
|
||||
mistakes: ['-khtml-'],
|
||||
feature: 'css-boxshadow',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Animation
|
||||
f(require('caniuse-lite/data/features/css-animation'), browsers =>
|
||||
prefix(
|
||||
[
|
||||
'animation',
|
||||
'animation-name',
|
||||
'animation-duration',
|
||||
'animation-delay',
|
||||
'animation-direction',
|
||||
'animation-fill-mode',
|
||||
'animation-iteration-count',
|
||||
'animation-play-state',
|
||||
'animation-timing-function',
|
||||
'@keyframes'
|
||||
],
|
||||
{
|
||||
mistakes: ['-khtml-', '-ms-'],
|
||||
feature: 'css-animation',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
// Transition
|
||||
f(require('caniuse-lite/data/features/css-transitions'), browsers =>
|
||||
prefix(
|
||||
[
|
||||
'transition',
|
||||
'transition-property',
|
||||
'transition-duration',
|
||||
'transition-delay',
|
||||
'transition-timing-function'
|
||||
],
|
||||
{
|
||||
mistakes: ['-khtml-', '-ms-'],
|
||||
browsers,
|
||||
feature: 'css-transitions'
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
// Transform 2D
|
||||
f(require('caniuse-lite/data/features/transforms2d'), browsers =>
|
||||
prefix(['transform', 'transform-origin'], {
|
||||
feature: 'transforms2d',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Transform 3D
|
||||
let transforms3d = require('caniuse-lite/data/features/transforms3d')
|
||||
|
||||
f(transforms3d, browsers => {
|
||||
prefix(['perspective', 'perspective-origin'], {
|
||||
feature: 'transforms3d',
|
||||
browsers
|
||||
})
|
||||
return prefix(['transform-style'], {
|
||||
mistakes: ['-ms-', '-o-'],
|
||||
browsers,
|
||||
feature: 'transforms3d'
|
||||
})
|
||||
})
|
||||
|
||||
f(transforms3d, { match: /y\sx|y\s#2/ }, browsers =>
|
||||
prefix(['backface-visibility'], {
|
||||
mistakes: ['-ms-', '-o-'],
|
||||
feature: 'transforms3d',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Gradients
|
||||
let gradients = require('caniuse-lite/data/features/css-gradients')
|
||||
|
||||
f(gradients, { match: /y\sx/ }, browsers =>
|
||||
prefix(
|
||||
[
|
||||
'linear-gradient',
|
||||
'repeating-linear-gradient',
|
||||
'radial-gradient',
|
||||
'repeating-radial-gradient'
|
||||
],
|
||||
{
|
||||
props: [
|
||||
'background',
|
||||
'background-image',
|
||||
'border-image',
|
||||
'mask',
|
||||
'list-style',
|
||||
'list-style-image',
|
||||
'content',
|
||||
'mask-image'
|
||||
],
|
||||
mistakes: ['-ms-'],
|
||||
feature: 'css-gradients',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
f(gradients, { match: /a\sx/ }, browsers => {
|
||||
browsers = browsers.map(i => {
|
||||
if (/firefox|op/.test(i)) {
|
||||
return i
|
||||
} else {
|
||||
return `${i} old`
|
||||
}
|
||||
})
|
||||
return add(
|
||||
[
|
||||
'linear-gradient',
|
||||
'repeating-linear-gradient',
|
||||
'radial-gradient',
|
||||
'repeating-radial-gradient'
|
||||
],
|
||||
{
|
||||
feature: 'css-gradients',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
// Box sizing
|
||||
f(require('caniuse-lite/data/features/css3-boxsizing'), browsers =>
|
||||
prefix(['box-sizing'], {
|
||||
feature: 'css3-boxsizing',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Filter Effects
|
||||
f(require('caniuse-lite/data/features/css-filters'), browsers =>
|
||||
prefix(['filter'], {
|
||||
feature: 'css-filters',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// filter() function
|
||||
f(require('caniuse-lite/data/features/css-filter-function'), browsers =>
|
||||
prefix(['filter-function'], {
|
||||
props: [
|
||||
'background',
|
||||
'background-image',
|
||||
'border-image',
|
||||
'mask',
|
||||
'list-style',
|
||||
'list-style-image',
|
||||
'content',
|
||||
'mask-image'
|
||||
],
|
||||
feature: 'css-filter-function',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Backdrop-filter
|
||||
let backdrop = require('caniuse-lite/data/features/css-backdrop-filter')
|
||||
|
||||
f(backdrop, { match: /y\sx|y\s#2/ }, browsers =>
|
||||
prefix(['backdrop-filter'], {
|
||||
feature: 'css-backdrop-filter',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// element() function
|
||||
f(require('caniuse-lite/data/features/css-element-function'), browsers =>
|
||||
prefix(['element'], {
|
||||
props: [
|
||||
'background',
|
||||
'background-image',
|
||||
'border-image',
|
||||
'mask',
|
||||
'list-style',
|
||||
'list-style-image',
|
||||
'content',
|
||||
'mask-image'
|
||||
],
|
||||
feature: 'css-element-function',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Multicolumns
|
||||
f(require('caniuse-lite/data/features/multicolumn'), browsers => {
|
||||
prefix(
|
||||
[
|
||||
'columns',
|
||||
'column-width',
|
||||
'column-gap',
|
||||
'column-rule',
|
||||
'column-rule-color',
|
||||
'column-rule-width',
|
||||
'column-count',
|
||||
'column-rule-style',
|
||||
'column-span',
|
||||
'column-fill'
|
||||
],
|
||||
{
|
||||
feature: 'multicolumn',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
|
||||
let noff = browsers.filter(i => !/firefox/.test(i))
|
||||
prefix(['break-before', 'break-after', 'break-inside'], {
|
||||
feature: 'multicolumn',
|
||||
browsers: noff
|
||||
})
|
||||
})
|
||||
|
||||
// User select
|
||||
f(require('caniuse-lite/data/features/user-select-none'), browsers =>
|
||||
prefix(['user-select'], {
|
||||
mistakes: ['-khtml-'],
|
||||
feature: 'user-select-none',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Flexible Box Layout
|
||||
let flexbox = require('caniuse-lite/data/features/flexbox')
|
||||
|
||||
f(flexbox, { match: /a\sx/ }, browsers => {
|
||||
browsers = browsers.map(i => {
|
||||
if (/ie|firefox/.test(i)) {
|
||||
return i
|
||||
} else {
|
||||
return `${i} 2009`
|
||||
}
|
||||
})
|
||||
prefix(['display-flex', 'inline-flex'], {
|
||||
props: ['display'],
|
||||
feature: 'flexbox',
|
||||
browsers
|
||||
})
|
||||
prefix(['flex', 'flex-grow', 'flex-shrink', 'flex-basis'], {
|
||||
feature: 'flexbox',
|
||||
browsers
|
||||
})
|
||||
prefix(
|
||||
[
|
||||
'flex-direction',
|
||||
'flex-wrap',
|
||||
'flex-flow',
|
||||
'justify-content',
|
||||
'order',
|
||||
'align-items',
|
||||
'align-self',
|
||||
'align-content'
|
||||
],
|
||||
{
|
||||
feature: 'flexbox',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
f(flexbox, { match: /y\sx/ }, browsers => {
|
||||
add(['display-flex', 'inline-flex'], {
|
||||
feature: 'flexbox',
|
||||
browsers
|
||||
})
|
||||
add(['flex', 'flex-grow', 'flex-shrink', 'flex-basis'], {
|
||||
feature: 'flexbox',
|
||||
browsers
|
||||
})
|
||||
add(
|
||||
[
|
||||
'flex-direction',
|
||||
'flex-wrap',
|
||||
'flex-flow',
|
||||
'justify-content',
|
||||
'order',
|
||||
'align-items',
|
||||
'align-self',
|
||||
'align-content'
|
||||
],
|
||||
{
|
||||
feature: 'flexbox',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
// calc() unit
|
||||
f(require('caniuse-lite/data/features/calc'), browsers =>
|
||||
prefix(['calc'], {
|
||||
props: ['*'],
|
||||
feature: 'calc',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Background options
|
||||
f(require('caniuse-lite/data/features/background-img-opts'), browsers =>
|
||||
prefix(['background-origin', 'background-size'], {
|
||||
feature: 'background-img-opts',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// background-clip: text
|
||||
f(require('caniuse-lite/data/features/background-clip-text'), browsers =>
|
||||
prefix(['background-clip'], {
|
||||
feature: 'background-clip-text',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Font feature settings
|
||||
f(require('caniuse-lite/data/features/font-feature'), browsers =>
|
||||
prefix(
|
||||
[
|
||||
'font-feature-settings',
|
||||
'font-variant-ligatures',
|
||||
'font-language-override'
|
||||
],
|
||||
{
|
||||
feature: 'font-feature',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
// CSS font-kerning property
|
||||
f(require('caniuse-lite/data/features/font-kerning'), browsers =>
|
||||
prefix(['font-kerning'], {
|
||||
feature: 'font-kerning',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Border image
|
||||
f(require('caniuse-lite/data/features/border-image'), browsers =>
|
||||
prefix(['border-image'], {
|
||||
feature: 'border-image',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Selection selector
|
||||
f(require('caniuse-lite/data/features/css-selection'), browsers =>
|
||||
prefix(['::selection'], {
|
||||
selector: true,
|
||||
feature: 'css-selection',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Placeholder selector
|
||||
f(require('caniuse-lite/data/features/css-placeholder'), browsers => {
|
||||
prefix(['::placeholder'], {
|
||||
selector: true,
|
||||
feature: 'css-placeholder',
|
||||
browsers: browsers.concat(['ie 10 old', 'ie 11 old', 'firefox 18 old'])
|
||||
})
|
||||
})
|
||||
|
||||
// Placeholder-shown selector
|
||||
f(require('caniuse-lite/data/features/css-placeholder-shown'), browsers => {
|
||||
prefix([':placeholder-shown'], {
|
||||
selector: true,
|
||||
feature: 'css-placeholder-shown',
|
||||
browsers
|
||||
})
|
||||
})
|
||||
|
||||
// Hyphenation
|
||||
f(require('caniuse-lite/data/features/css-hyphens'), browsers =>
|
||||
prefix(['hyphens'], {
|
||||
feature: 'css-hyphens',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Fullscreen selector
|
||||
let fullscreen = require('caniuse-lite/data/features/fullscreen')
|
||||
|
||||
f(fullscreen, browsers =>
|
||||
prefix([':fullscreen'], {
|
||||
selector: true,
|
||||
feature: 'fullscreen',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
f(fullscreen, { match: /x(\s#2|$)/ }, browsers =>
|
||||
prefix(['::backdrop'], {
|
||||
selector: true,
|
||||
feature: 'fullscreen',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Tab size
|
||||
f(require('caniuse-lite/data/features/css3-tabsize'), browsers =>
|
||||
prefix(['tab-size'], {
|
||||
feature: 'css3-tabsize',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Intrinsic & extrinsic sizing
|
||||
let intrinsic = require('caniuse-lite/data/features/intrinsic-width')
|
||||
|
||||
let sizeProps = [
|
||||
'width',
|
||||
'min-width',
|
||||
'max-width',
|
||||
'height',
|
||||
'min-height',
|
||||
'max-height',
|
||||
'inline-size',
|
||||
'min-inline-size',
|
||||
'max-inline-size',
|
||||
'block-size',
|
||||
'min-block-size',
|
||||
'max-block-size',
|
||||
'grid',
|
||||
'grid-template',
|
||||
'grid-template-rows',
|
||||
'grid-template-columns',
|
||||
'grid-auto-columns',
|
||||
'grid-auto-rows'
|
||||
]
|
||||
|
||||
f(intrinsic, browsers =>
|
||||
prefix(['max-content', 'min-content'], {
|
||||
props: sizeProps,
|
||||
feature: 'intrinsic-width',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
f(intrinsic, { match: /x|\s#4/ }, browsers =>
|
||||
prefix(['fill', 'fill-available', 'stretch'], {
|
||||
props: sizeProps,
|
||||
feature: 'intrinsic-width',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
f(intrinsic, { match: /x|\s#5/ }, browsers =>
|
||||
prefix(['fit-content'], {
|
||||
props: sizeProps,
|
||||
feature: 'intrinsic-width',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Zoom cursors
|
||||
f(require('caniuse-lite/data/features/css3-cursors-newer'), browsers =>
|
||||
prefix(['zoom-in', 'zoom-out'], {
|
||||
props: ['cursor'],
|
||||
feature: 'css3-cursors-newer',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Grab cursors
|
||||
f(require('caniuse-lite/data/features/css3-cursors-grab'), browsers =>
|
||||
prefix(['grab', 'grabbing'], {
|
||||
props: ['cursor'],
|
||||
feature: 'css3-cursors-grab',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Sticky position
|
||||
f(require('caniuse-lite/data/features/css-sticky'), browsers =>
|
||||
prefix(['sticky'], {
|
||||
props: ['position'],
|
||||
feature: 'css-sticky',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Pointer Events
|
||||
f(require('caniuse-lite/data/features/pointer'), browsers =>
|
||||
prefix(['touch-action'], {
|
||||
feature: 'pointer',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Text decoration
|
||||
let decoration = require('caniuse-lite/data/features/text-decoration')
|
||||
|
||||
f(decoration, browsers =>
|
||||
prefix(
|
||||
[
|
||||
'text-decoration-style',
|
||||
'text-decoration-color',
|
||||
'text-decoration-line',
|
||||
'text-decoration'
|
||||
],
|
||||
{
|
||||
feature: 'text-decoration',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
f(decoration, { match: /x.*#[235]/ }, browsers =>
|
||||
prefix(['text-decoration-skip', 'text-decoration-skip-ink'], {
|
||||
feature: 'text-decoration',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Text Size Adjust
|
||||
f(require('caniuse-lite/data/features/text-size-adjust'), browsers =>
|
||||
prefix(['text-size-adjust'], {
|
||||
feature: 'text-size-adjust',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// CSS Masks
|
||||
f(require('caniuse-lite/data/features/css-masks'), browsers => {
|
||||
prefix(
|
||||
[
|
||||
'mask-clip',
|
||||
'mask-composite',
|
||||
'mask-image',
|
||||
'mask-origin',
|
||||
'mask-repeat',
|
||||
'mask-border-repeat',
|
||||
'mask-border-source'
|
||||
],
|
||||
{
|
||||
feature: 'css-masks',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
prefix(
|
||||
[
|
||||
'mask',
|
||||
'mask-position',
|
||||
'mask-size',
|
||||
'mask-border',
|
||||
'mask-border-outset',
|
||||
'mask-border-width',
|
||||
'mask-border-slice'
|
||||
],
|
||||
{
|
||||
feature: 'css-masks',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
// CSS clip-path property
|
||||
f(require('caniuse-lite/data/features/css-clip-path'), browsers =>
|
||||
prefix(['clip-path'], {
|
||||
feature: 'css-clip-path',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Fragmented Borders and Backgrounds
|
||||
f(require('caniuse-lite/data/features/css-boxdecorationbreak'), browsers =>
|
||||
prefix(['box-decoration-break'], {
|
||||
feature: 'css-boxdecorationbreak',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// CSS3 object-fit/object-position
|
||||
f(require('caniuse-lite/data/features/object-fit'), browsers =>
|
||||
prefix(['object-fit', 'object-position'], {
|
||||
feature: 'object-fit',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// CSS Shapes
|
||||
f(require('caniuse-lite/data/features/css-shapes'), browsers =>
|
||||
prefix(['shape-margin', 'shape-outside', 'shape-image-threshold'], {
|
||||
feature: 'css-shapes',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// CSS3 text-overflow
|
||||
f(require('caniuse-lite/data/features/text-overflow'), browsers =>
|
||||
prefix(['text-overflow'], {
|
||||
feature: 'text-overflow',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Viewport at-rule
|
||||
f(require('caniuse-lite/data/features/css-deviceadaptation'), browsers =>
|
||||
prefix(['@viewport'], {
|
||||
feature: 'css-deviceadaptation',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Resolution Media Queries
|
||||
let resolut = require('caniuse-lite/data/features/css-media-resolution')
|
||||
|
||||
f(resolut, { match: /( x($| )|a #2)/ }, browsers =>
|
||||
prefix(['@resolution'], {
|
||||
feature: 'css-media-resolution',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// CSS text-align-last
|
||||
f(require('caniuse-lite/data/features/css-text-align-last'), browsers =>
|
||||
prefix(['text-align-last'], {
|
||||
feature: 'css-text-align-last',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Crisp Edges Image Rendering Algorithm
|
||||
let crispedges = require('caniuse-lite/data/features/css-crisp-edges')
|
||||
|
||||
f(crispedges, { match: /y x|a x #1/ }, browsers =>
|
||||
prefix(['pixelated'], {
|
||||
props: ['image-rendering'],
|
||||
feature: 'css-crisp-edges',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
f(crispedges, { match: /a x #2/ }, browsers =>
|
||||
prefix(['image-rendering'], {
|
||||
feature: 'css-crisp-edges',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Logical Properties
|
||||
let logicalProps = require('caniuse-lite/data/features/css-logical-props')
|
||||
|
||||
f(logicalProps, browsers =>
|
||||
prefix(
|
||||
[
|
||||
'border-inline-start',
|
||||
'border-inline-end',
|
||||
'margin-inline-start',
|
||||
'margin-inline-end',
|
||||
'padding-inline-start',
|
||||
'padding-inline-end'
|
||||
],
|
||||
{
|
||||
feature: 'css-logical-props',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
f(logicalProps, { match: /x\s#2/ }, browsers =>
|
||||
prefix(
|
||||
[
|
||||
'border-block-start',
|
||||
'border-block-end',
|
||||
'margin-block-start',
|
||||
'margin-block-end',
|
||||
'padding-block-start',
|
||||
'padding-block-end'
|
||||
],
|
||||
{
|
||||
feature: 'css-logical-props',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
// CSS appearance
|
||||
let appearance = require('caniuse-lite/data/features/css-appearance')
|
||||
|
||||
f(appearance, { match: /#2|x/ }, browsers =>
|
||||
prefix(['appearance'], {
|
||||
feature: 'css-appearance',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// CSS Scroll snap points
|
||||
f(require('caniuse-lite/data/features/css-snappoints'), browsers =>
|
||||
prefix(
|
||||
[
|
||||
'scroll-snap-type',
|
||||
'scroll-snap-coordinate',
|
||||
'scroll-snap-destination',
|
||||
'scroll-snap-points-x',
|
||||
'scroll-snap-points-y'
|
||||
],
|
||||
{
|
||||
feature: 'css-snappoints',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
// CSS Regions
|
||||
f(require('caniuse-lite/data/features/css-regions'), browsers =>
|
||||
prefix(['flow-into', 'flow-from', 'region-fragment'], {
|
||||
feature: 'css-regions',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// CSS image-set
|
||||
f(require('caniuse-lite/data/features/css-image-set'), browsers =>
|
||||
prefix(['image-set'], {
|
||||
props: [
|
||||
'background',
|
||||
'background-image',
|
||||
'border-image',
|
||||
'cursor',
|
||||
'mask',
|
||||
'mask-image',
|
||||
'list-style',
|
||||
'list-style-image',
|
||||
'content'
|
||||
],
|
||||
feature: 'css-image-set',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Writing Mode
|
||||
let writingMode = require('caniuse-lite/data/features/css-writing-mode')
|
||||
|
||||
f(writingMode, { match: /a|x/ }, browsers =>
|
||||
prefix(['writing-mode'], {
|
||||
feature: 'css-writing-mode',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Cross-Fade Function
|
||||
f(require('caniuse-lite/data/features/css-cross-fade'), browsers =>
|
||||
prefix(['cross-fade'], {
|
||||
props: [
|
||||
'background',
|
||||
'background-image',
|
||||
'border-image',
|
||||
'mask',
|
||||
'list-style',
|
||||
'list-style-image',
|
||||
'content',
|
||||
'mask-image'
|
||||
],
|
||||
feature: 'css-cross-fade',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Read Only selector
|
||||
f(require('caniuse-lite/data/features/css-read-only-write'), browsers =>
|
||||
prefix([':read-only', ':read-write'], {
|
||||
selector: true,
|
||||
feature: 'css-read-only-write',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// Text Emphasize
|
||||
f(require('caniuse-lite/data/features/text-emphasis'), browsers =>
|
||||
prefix(
|
||||
[
|
||||
'text-emphasis',
|
||||
'text-emphasis-position',
|
||||
'text-emphasis-style',
|
||||
'text-emphasis-color'
|
||||
],
|
||||
{
|
||||
feature: 'text-emphasis',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
)
|
||||
|
||||
// CSS Grid Layout
|
||||
let grid = require('caniuse-lite/data/features/css-grid')
|
||||
|
||||
f(grid, browsers => {
|
||||
prefix(['display-grid', 'inline-grid'], {
|
||||
props: ['display'],
|
||||
feature: 'css-grid',
|
||||
browsers
|
||||
})
|
||||
prefix(
|
||||
[
|
||||
'grid-template-columns',
|
||||
'grid-template-rows',
|
||||
'grid-row-start',
|
||||
'grid-column-start',
|
||||
'grid-row-end',
|
||||
'grid-column-end',
|
||||
'grid-row',
|
||||
'grid-column',
|
||||
'grid-area',
|
||||
'grid-template',
|
||||
'grid-template-areas',
|
||||
'place-self'
|
||||
],
|
||||
{
|
||||
feature: 'css-grid',
|
||||
browsers
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
f(grid, { match: /a x/ }, browsers =>
|
||||
prefix(['grid-column-align', 'grid-row-align'], {
|
||||
feature: 'css-grid',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// CSS text-spacing
|
||||
f(require('caniuse-lite/data/features/css-text-spacing'), browsers =>
|
||||
prefix(['text-spacing'], {
|
||||
feature: 'css-text-spacing',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// :any-link selector
|
||||
f(require('caniuse-lite/data/features/css-any-link'), browsers =>
|
||||
prefix([':any-link'], {
|
||||
selector: true,
|
||||
feature: 'css-any-link',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// unicode-bidi
|
||||
let bidi = require('caniuse-lite/data/features/css-unicode-bidi')
|
||||
|
||||
f(bidi, browsers =>
|
||||
prefix(['isolate'], {
|
||||
props: ['unicode-bidi'],
|
||||
feature: 'css-unicode-bidi',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
f(bidi, { match: /y x|a x #2/ }, browsers =>
|
||||
prefix(['plaintext'], {
|
||||
props: ['unicode-bidi'],
|
||||
feature: 'css-unicode-bidi',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
f(bidi, { match: /y x/ }, browsers =>
|
||||
prefix(['isolate-override'], {
|
||||
props: ['unicode-bidi'],
|
||||
feature: 'css-unicode-bidi',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// overscroll-behavior selector
|
||||
let over = require('caniuse-lite/data/features/css-overscroll-behavior')
|
||||
|
||||
f(over, { match: /a #1/ }, browsers =>
|
||||
prefix(['overscroll-behavior'], {
|
||||
feature: 'css-overscroll-behavior',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// color-adjust
|
||||
f(require('caniuse-lite/data/features/css-color-adjust'), browsers =>
|
||||
prefix(['color-adjust'], {
|
||||
feature: 'css-color-adjust',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
|
||||
// text-orientation
|
||||
f(require('caniuse-lite/data/features/css-text-orientation'), browsers =>
|
||||
prefix(['text-orientation'], {
|
||||
feature: 'css-text-orientation',
|
||||
browsers
|
||||
})
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operators/subscribeOn';
|
||||
@@ -0,0 +1,125 @@
|
||||
const { Command } = require('commander')
|
||||
const { version } = require('../package.json')
|
||||
const { fetchRemote } = require('./remote')
|
||||
const { fetchTags } = require('./tags')
|
||||
const { parseReleases } = require('./releases')
|
||||
const { compileTemplate } = require('./template')
|
||||
const { parseLimit, readFile, readJson, writeFile, fileExists, updateLog, formatBytes } = require('./utils')
|
||||
|
||||
const DEFAULT_OPTIONS = {
|
||||
output: 'CHANGELOG.md',
|
||||
template: 'compact',
|
||||
remote: 'origin',
|
||||
commitLimit: 3,
|
||||
backfillLimit: 3,
|
||||
tagPrefix: '',
|
||||
sortCommits: 'relevance',
|
||||
appendGitLog: '',
|
||||
config: '.auto-changelog'
|
||||
}
|
||||
|
||||
const PACKAGE_FILE = 'package.json'
|
||||
const PACKAGE_OPTIONS_KEY = 'auto-changelog'
|
||||
const PREPEND_TOKEN = '<!-- auto-changelog-above -->'
|
||||
|
||||
const getOptions = async argv => {
|
||||
const commandOptions = new Command()
|
||||
.option('-o, --output <file>', `output file, default: ${DEFAULT_OPTIONS.output}`)
|
||||
.option('-c, --config <file>', `config file location, default: ${DEFAULT_OPTIONS.config}`)
|
||||
.option('-t, --template <template>', `specify template to use [compact, keepachangelog, json], default: ${DEFAULT_OPTIONS.template}`)
|
||||
.option('-r, --remote <remote>', `specify git remote to use for links, default: ${DEFAULT_OPTIONS.remote}`)
|
||||
.option('-p, --package [file]', 'use version from file as latest release, default: package.json')
|
||||
.option('-v, --latest-version <version>', 'use specified version as latest release')
|
||||
.option('-u, --unreleased', 'include section for unreleased changes')
|
||||
.option('-l, --commit-limit <count>', `number of commits to display per release, default: ${DEFAULT_OPTIONS.commitLimit}`, parseLimit)
|
||||
.option('-b, --backfill-limit <count>', `number of commits to backfill empty releases with, default: ${DEFAULT_OPTIONS.backfillLimit}`, parseLimit)
|
||||
.option('--commit-url <url>', 'override url for commits, use {id} for commit id')
|
||||
.option('-i, --issue-url <url>', 'override url for issues, use {id} for issue id') // -i kept for back compatibility
|
||||
.option('--merge-url <url>', 'override url for merges, use {id} for merge id')
|
||||
.option('--compare-url <url>', 'override url for compares, use {from} and {to} for tags')
|
||||
.option('--issue-pattern <regex>', 'override regex pattern for issues in commit messages')
|
||||
.option('--breaking-pattern <regex>', 'regex pattern for breaking change commits')
|
||||
.option('--merge-pattern <regex>', 'add custom regex pattern for merge commits')
|
||||
.option('--ignore-commit-pattern <regex>', 'pattern to ignore when parsing commits')
|
||||
.option('--tag-pattern <regex>', 'override regex pattern for version tags')
|
||||
.option('--tag-prefix <prefix>', 'prefix used in version tags')
|
||||
.option('--starting-version <tag>', 'specify earliest version to include in changelog')
|
||||
.option('--sort-commits <property>', `sort commits by property [relevance, date, date-desc], default: ${DEFAULT_OPTIONS.sortCommits}`)
|
||||
.option('--release-summary', 'use tagged commit message body as release summary')
|
||||
.option('--unreleased-only', 'only output unreleased changes')
|
||||
.option('--hide-credit', 'hide auto-changelog credit')
|
||||
.option('--handlebars-setup <file>', 'handlebars setup file')
|
||||
.option('--append-git-log <string>', 'string to append to git log command')
|
||||
.option('--prepend', 'prepend changelog to output file')
|
||||
.option('--stdout', 'output changelog to stdout')
|
||||
.version(version)
|
||||
.parse(argv)
|
||||
|
||||
const pkg = await readJson(PACKAGE_FILE)
|
||||
const packageOptions = pkg ? pkg[PACKAGE_OPTIONS_KEY] : null
|
||||
const dotOptions = await readJson(commandOptions.config || DEFAULT_OPTIONS.config)
|
||||
const options = {
|
||||
...DEFAULT_OPTIONS,
|
||||
...dotOptions,
|
||||
...packageOptions,
|
||||
...commandOptions
|
||||
}
|
||||
const remote = await fetchRemote(options)
|
||||
const latestVersion = await getLatestVersion(options)
|
||||
return {
|
||||
...options,
|
||||
...remote,
|
||||
latestVersion
|
||||
}
|
||||
}
|
||||
|
||||
const getLatestVersion = async options => {
|
||||
if (options.latestVersion) {
|
||||
return options.latestVersion
|
||||
}
|
||||
if (options.package) {
|
||||
const file = options.package === true ? PACKAGE_FILE : options.package
|
||||
if (await fileExists(file) === false) {
|
||||
throw new Error(`File ${file} does not exist`)
|
||||
}
|
||||
const { version } = await readJson(file)
|
||||
return version
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
const run = async argv => {
|
||||
const options = await getOptions(argv)
|
||||
const log = string => options.stdout ? null : updateLog(string)
|
||||
log('Fetching tags…')
|
||||
const tags = await fetchTags(options)
|
||||
log(`${tags.length} version tags found…`)
|
||||
const onParsed = ({ title }) => log(`Fetched ${title}…`)
|
||||
const releases = await parseReleases(tags, options, onParsed)
|
||||
const changelog = await compileTemplate(releases, options)
|
||||
await write(changelog, options, log)
|
||||
}
|
||||
|
||||
const write = async (changelog, options, log) => {
|
||||
if (options.stdout) {
|
||||
process.stdout.write(changelog)
|
||||
return
|
||||
}
|
||||
const bytes = formatBytes(Buffer.byteLength(changelog, 'utf8'))
|
||||
const existing = await fileExists(options.output) && await readFile(options.output, 'utf8')
|
||||
if (existing) {
|
||||
const index = options.prepend ? 0 : existing.indexOf(PREPEND_TOKEN)
|
||||
if (index !== -1) {
|
||||
const prepended = `${changelog}\n${existing.slice(index)}`
|
||||
await writeFile(options.output, prepended)
|
||||
log(`${bytes} prepended to ${options.output}\n`)
|
||||
return
|
||||
}
|
||||
}
|
||||
await writeFile(options.output, changelog)
|
||||
log(`${bytes} written to ${options.output}\n`)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
run
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"AsyncScheduler.js","sources":["../../src/internal/scheduler/AsyncScheduler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0CAAyC;AAMzC;IAAoC,kCAAS;IAmB3C,wBAAY,eAA8B,EAC9B,GAAiC;QAAjC,oBAAA,EAAA,MAAoB,qBAAS,CAAC,GAAG;QAD7C,YAEE,kBAAM,eAAe,EAAE;YACrB,IAAI,cAAc,CAAC,QAAQ,IAAI,cAAc,CAAC,QAAQ,KAAK,KAAI,EAAE;gBAC/D,OAAO,cAAc,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;aACtC;iBAAM;gBACL,OAAO,GAAG,EAAE,CAAC;aACd;QACH,CAAC,CAAC,SACH;QA1BM,aAAO,GAA4B,EAAE,CAAC;QAOtC,YAAM,GAAY,KAAK,CAAC;QAQxB,eAAS,GAAQ,SAAS,CAAC;;IAWlC,CAAC;IAEM,iCAAQ,GAAf,UAAmB,IAAmD,EAAE,KAAiB,EAAE,KAAS;QAA5B,sBAAA,EAAA,SAAiB;QACvF,IAAI,cAAc,CAAC,QAAQ,IAAI,cAAc,CAAC,QAAQ,KAAK,IAAI,EAAE;YAC/D,OAAO,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;SAC7D;aAAM;YACL,OAAO,iBAAM,QAAQ,YAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;SAC3C;IACH,CAAC;IAEM,8BAAK,GAAZ,UAAa,MAAwB;QAE5B,IAAA,sBAAO,CAAS;QAEvB,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,OAAO;SACR;QAED,IAAI,KAAU,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAEnB,GAAG;YACD,IAAI,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE;gBACtD,MAAM;aACP;SACF,QAAQ,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE;QAEnC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAI,KAAK,EAAE;YACT,OAAO,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,EAAE;gBAC/B,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AAjED,CAAoC,qBAAS,GAiE5C;AAjEY,wCAAc"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"using.js","sources":["../../src/internal/observable/using.ts"],"names":[],"mappings":";;AAAA,4CAA2C;AAE3C,+BAA8B;AAC9B,iCAAgC;AA8BhC,SAAgB,KAAK,CAAI,eAA4C,EAC5C,iBAAiF;IACxG,OAAO,IAAI,uBAAU,CAAI,UAAA,UAAU;QACjC,IAAI,QAA+B,CAAC;QAEpC,IAAI;YACF,QAAQ,GAAG,eAAe,EAAE,CAAC;SAC9B;QAAC,OAAO,GAAG,EAAE;YACZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACtB,OAAO,SAAS,CAAC;SAClB;QAED,IAAI,MAAiC,CAAC;QACtC,IAAI;YACF,MAAM,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;SACtC;QAAC,OAAO,GAAG,EAAE;YACZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACtB,OAAO,SAAS,CAAC;SAClB;QAED,IAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,WAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,aAAK,CAAC;QAC7C,IAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAClD,OAAO;YACL,YAAY,CAAC,WAAW,EAAE,CAAC;YAC3B,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,WAAW,EAAE,CAAC;aACxB;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA7BD,sBA6BC"}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"2":"C K L H M N O","676":"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 CC tB I u J E F G A B C K L H M N O v w x y z DC EC","804":"1 2 3 4 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 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"},D:{"2":"I","676":"0 1 2 3 4 5 6 7 8 9 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 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:{"2":"GC zB","676":"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 sB 6B 7B 8B NC"},F:{"2":"G B C OC PC QC RC qB 9B SC rB","676":"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 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:{"2":"F zB 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 sB 6B 7B 8B"},H:{"2":"nC"},I:{"2":"tB I D oC pC qC rC AC sC tC"},J:{"2":"E A"},K:{"2":"A B C e qB 9B rB"},L:{"2":"D"},M:{"2":"D"},N:{"2":"A B"},O:{"2":"uC"},P:{"2":"I vC wC xC yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C"},Q:{"2":"1B"},R:{"2":"8C"},S:{"804":"9C"}},B:7,C:"CSS font-smooth"};
|
||||
@@ -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/take"));
|
||||
//# sourceMappingURL=take.js.map
|
||||
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
// When attaching listeners, it's very easy to forget about them.
|
||||
// Especially if you do error handling and set timeouts.
|
||||
// So instead of checking if it's proper to throw an error on every timeout ever,
|
||||
// use this simple tool which will remove all listeners you have attached.
|
||||
exports.default = () => {
|
||||
const handlers = [];
|
||||
return {
|
||||
once(origin, event, fn) {
|
||||
origin.once(event, fn);
|
||||
handlers.push({ origin, event, fn });
|
||||
},
|
||||
unhandleAll() {
|
||||
for (const handler of handlers) {
|
||||
const { origin, event, fn } = handler;
|
||||
origin.removeListener(event, fn);
|
||||
}
|
||||
handlers.length = 0;
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user