new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"race.js","sources":["../../../src/internal/operators/race.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAsBxD,MAAM,UAAU,IAAI;IAAI,qBAAmD;SAAnD,UAAmD,EAAnD,qBAAmD,EAAnD,IAAmD;QAAnD,gCAAmD;;IACzE,OAAO,SAAS,oBAAoB,CAAC,MAAqB;QAGxD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE;YACvD,WAAW,GAAG,WAAW,CAAC,CAAC,CAAoB,CAAC;SACjD;QAED,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,gBAAC,MAAM,SAAM,WAA+B,GAAE,CAAC;IACnF,CAAC,CAAC;AACJ,CAAC"}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "modernizr",
|
||||
"homepage": "https://github.com/Modernizr/Modernizr",
|
||||
"version": "2.8.3",
|
||||
"_release": "2.8.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v2.8.3",
|
||||
"commit": "d6bb30c0f12ebb3ddd01e90b0bf435e1c34e6f11"
|
||||
},
|
||||
"_source": "https://github.com/Modernizr/Modernizr.git",
|
||||
"_target": "~2.8.1",
|
||||
"_originalSource": "modernizr"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"UnsubscriptionError.js","sources":["../../../src/internal/util/UnsubscriptionError.ts"],"names":[],"mappings":"AAQA,IAAM,uBAAuB,GAAG,CAAC;IAC/B,SAAS,uBAAuB,CAAY,MAAa;QACvD,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC;YAClB,MAAM,CAAC,MAAM,iDACpB,MAAM,CAAC,GAAG,CAAC,UAAC,GAAG,EAAE,CAAC,IAAK,OAAG,CAAC,GAAG,CAAC,UAAK,GAAG,CAAC,QAAQ,EAAI,EAA7B,CAA6B,CAAC,CAAC,IAAI,CAAC,MAAM,CAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACxE,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,uBAAuB,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAEnE,OAAO,uBAAuB,CAAC;AACjC,CAAC,CAAC,EAAE,CAAC;AAML,MAAM,CAAC,IAAM,mBAAmB,GAA4B,uBAA8B,CAAC"}
|
||||
@@ -0,0 +1,124 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { identity } from '../util/identity';
|
||||
import { isScheduler } from '../util/isScheduler';
|
||||
export function generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {
|
||||
let resultSelector;
|
||||
let initialState;
|
||||
if (arguments.length == 1) {
|
||||
const options = initialStateOrOptions;
|
||||
initialState = options.initialState;
|
||||
condition = options.condition;
|
||||
iterate = options.iterate;
|
||||
resultSelector = options.resultSelector || identity;
|
||||
scheduler = options.scheduler;
|
||||
}
|
||||
else if (resultSelectorOrObservable === undefined || isScheduler(resultSelectorOrObservable)) {
|
||||
initialState = initialStateOrOptions;
|
||||
resultSelector = identity;
|
||||
scheduler = resultSelectorOrObservable;
|
||||
}
|
||||
else {
|
||||
initialState = initialStateOrOptions;
|
||||
resultSelector = resultSelectorOrObservable;
|
||||
}
|
||||
return new Observable(subscriber => {
|
||||
let state = initialState;
|
||||
if (scheduler) {
|
||||
return scheduler.schedule(dispatch, 0, {
|
||||
subscriber,
|
||||
iterate,
|
||||
condition,
|
||||
resultSelector,
|
||||
state
|
||||
});
|
||||
}
|
||||
do {
|
||||
if (condition) {
|
||||
let conditionResult;
|
||||
try {
|
||||
conditionResult = condition(state);
|
||||
}
|
||||
catch (err) {
|
||||
subscriber.error(err);
|
||||
return undefined;
|
||||
}
|
||||
if (!conditionResult) {
|
||||
subscriber.complete();
|
||||
break;
|
||||
}
|
||||
}
|
||||
let value;
|
||||
try {
|
||||
value = resultSelector(state);
|
||||
}
|
||||
catch (err) {
|
||||
subscriber.error(err);
|
||||
return undefined;
|
||||
}
|
||||
subscriber.next(value);
|
||||
if (subscriber.closed) {
|
||||
break;
|
||||
}
|
||||
try {
|
||||
state = iterate(state);
|
||||
}
|
||||
catch (err) {
|
||||
subscriber.error(err);
|
||||
return undefined;
|
||||
}
|
||||
} while (true);
|
||||
return undefined;
|
||||
});
|
||||
}
|
||||
function dispatch(state) {
|
||||
const { subscriber, condition } = state;
|
||||
if (subscriber.closed) {
|
||||
return undefined;
|
||||
}
|
||||
if (state.needIterate) {
|
||||
try {
|
||||
state.state = state.iterate(state.state);
|
||||
}
|
||||
catch (err) {
|
||||
subscriber.error(err);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
else {
|
||||
state.needIterate = true;
|
||||
}
|
||||
if (condition) {
|
||||
let conditionResult;
|
||||
try {
|
||||
conditionResult = condition(state.state);
|
||||
}
|
||||
catch (err) {
|
||||
subscriber.error(err);
|
||||
return undefined;
|
||||
}
|
||||
if (!conditionResult) {
|
||||
subscriber.complete();
|
||||
return undefined;
|
||||
}
|
||||
if (subscriber.closed) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
let value;
|
||||
try {
|
||||
value = state.resultSelector(state.state);
|
||||
}
|
||||
catch (err) {
|
||||
subscriber.error(err);
|
||||
return undefined;
|
||||
}
|
||||
if (subscriber.closed) {
|
||||
return undefined;
|
||||
}
|
||||
subscriber.next(value);
|
||||
if (subscriber.closed) {
|
||||
return undefined;
|
||||
}
|
||||
return this.schedule(state);
|
||||
}
|
||||
//# sourceMappingURL=generate.js.map
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"schematics": {
|
||||
"rxjs-migration-01": {
|
||||
"description": "Adds rxjs-compat package to the project to ensure compatability with RxJS 5",
|
||||
"version": "6.0.0-rc.0",
|
||||
"factory": "./update-6_0_0/index#rxjsV6MigrationSchematic"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"retry.js","sources":["../src/operators/retry.ts"],"names":[],"mappings":";;;;;AAAA,iDAA4C"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"exhaust.js","sources":["../../src/add/operator/exhaust.ts"],"names":[],"mappings":";;AAAA,4CAA0C"}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [ "es5" ],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"baseUrl": ".",
|
||||
"paths": { "codepage": ["."] },
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("rxjs-compat/add/observable/never");
|
||||
//# sourceMappingURL=never.js.map
|
||||
@@ -0,0 +1 @@
|
||||
import 'rxjs-compat/add/operator/elementAt';
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"form-data","version":"4.0.0","files":{"License":{"checkedAt":1678887829656,"integrity":"sha512-ZwZnQAboeW6eFxNLi/xa0UoNS0hFYPA1H9UUK+nr8Tgc3zi0XfaWnQRhi8+4axH6BzVJbmv0iLC4G+jhEaYlJQ==","mode":420,"size":1118},"README.md.bak":{"checkedAt":1678887829656,"integrity":"sha512-O03xYM9N5MYijGxXuw137PHRmDZJJ8VfbWSDZfkiyWM2BBwcxnP7BylmcJKkOGNBe33ZKhaBCHrKbU9FZzlNuw==","mode":420,"size":12070},"Readme.md":{"checkedAt":1678887829656,"integrity":"sha512-O03xYM9N5MYijGxXuw137PHRmDZJJ8VfbWSDZfkiyWM2BBwcxnP7BylmcJKkOGNBe33ZKhaBCHrKbU9FZzlNuw==","mode":420,"size":12070},"lib/browser.js":{"checkedAt":1678887829656,"integrity":"sha512-h/D+sKL+scebV+4EUlcwkiWy3KBk0JfJ8rbpCkNGvWJib6PMM+U3A2ZBNIzIGb1e05lB3LwG3DkPo4lGqrP1tw==","mode":420,"size":101},"lib/populate.js":{"checkedAt":1678887829661,"integrity":"sha512-hlIi85bUYOk4q+lcSisgvOZtwY1WnAV0JW0pAj4iaIcgy6BVEMe8/TR3Tcluxtanszg6Apt5TguF8h/ddlkiWw==","mode":420,"size":177},"lib/form_data.js":{"checkedAt":1678887829662,"integrity":"sha512-+Jnmobc5nVMMnHpxW5gmKdEe0rfCnE1gElZURvUnZaDqa6A70ChGrF2GmkyOr9eM7DKQZ82Lvmfo6cN23cZTIw==","mode":420,"size":13715},"package.json":{"checkedAt":1678887829667,"integrity":"sha512-F5mZ3/JfDntUKtpLDNC2ILJWqrjLavloUZRxMQF53BbvZq80C+U7HURuXMG0GUqXj9JyhRe3hPZO+75JrTdWRA==","mode":420,"size":2305},"index.d.ts":{"checkedAt":1678887829670,"integrity":"sha512-XzXlSLMANQmmyqtmj8OvHbvzt7Wn+wrZZdvSelPZJSIiQQsQP8NcGhBJx4/z4ixwDay45wGqbKv0LdqqC1OcGA==","mode":420,"size":1825}}}
|
||||
@@ -0,0 +1,58 @@
|
||||
export declare function append(target: Node, node: Node): void;
|
||||
export declare function insert(target: Node, node: Node, anchor?: Node): void;
|
||||
export declare function detach(node: Node): void;
|
||||
export declare function destroy_each(iterations: any, detaching: any): void;
|
||||
export declare function element<K extends keyof HTMLElementTagNameMap>(name: K): HTMLElementTagNameMap[K];
|
||||
export declare function element_is<K extends keyof HTMLElementTagNameMap>(name: K, is: string): HTMLElementTagNameMap[K];
|
||||
export declare function object_without_properties<T, K extends keyof T>(obj: T, exclude: K[]): Pick<T, Exclude<keyof T, K>>;
|
||||
export declare function svg_element<K extends keyof SVGElementTagNameMap>(name: K): SVGElement;
|
||||
export declare function text(data: string): Text;
|
||||
export declare function space(): Text;
|
||||
export declare function empty(): Text;
|
||||
export declare function listen(node: EventTarget, event: string, handler: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | EventListenerOptions): () => void;
|
||||
export declare function prevent_default(fn: any): (event: any) => any;
|
||||
export declare function stop_propagation(fn: any): (event: any) => any;
|
||||
export declare function self(fn: any): (event: any) => void;
|
||||
export declare function attr(node: Element, attribute: string, value?: string): void;
|
||||
export declare function set_attributes(node: Element & ElementCSSInlineStyle, attributes: {
|
||||
[x: string]: string;
|
||||
}): void;
|
||||
export declare function set_svg_attributes(node: Element & ElementCSSInlineStyle, attributes: {
|
||||
[x: string]: string;
|
||||
}): void;
|
||||
export declare function set_custom_element_data(node: any, prop: any, value: any): void;
|
||||
export declare function xlink_attr(node: any, attribute: any, value: any): void;
|
||||
export declare function get_binding_group_value(group: any, __value: any, checked: any): unknown[];
|
||||
export declare function to_number(value: any): number;
|
||||
export declare function time_ranges_to_array(ranges: any): any[];
|
||||
export declare function children(element: any): unknown[];
|
||||
export declare function claim_element(nodes: any, name: any, attributes: any, svg: any): any;
|
||||
export declare function claim_text(nodes: any, data: any): any;
|
||||
export declare function claim_space(nodes: any): any;
|
||||
export declare function set_data(text: any, data: any): void;
|
||||
export declare function set_input_value(input: any, value: any): void;
|
||||
export declare function set_input_type(input: any, type: any): void;
|
||||
export declare function set_style(node: any, key: any, value: any, important: any): void;
|
||||
export declare function select_option(select: any, value: any): void;
|
||||
export declare function select_options(select: any, value: any): void;
|
||||
export declare function select_value(select: any): any;
|
||||
export declare function select_multiple_value(select: any): any;
|
||||
export declare function is_crossorigin(): boolean;
|
||||
export declare function add_resize_listener(node: HTMLElement, fn: () => void): () => void;
|
||||
export declare function toggle_class(element: any, name: any, toggle: any): void;
|
||||
export declare function custom_event<T = any>(type: string, detail?: T): CustomEvent<T>;
|
||||
export declare function query_selector_all(selector: string, parent?: HTMLElement): Element[];
|
||||
export declare class HtmlTag {
|
||||
e: HTMLElement;
|
||||
n: ChildNode[];
|
||||
t: HTMLElement;
|
||||
a: HTMLElement;
|
||||
constructor(anchor?: HTMLElement);
|
||||
m(html: string, target: HTMLElement, anchor?: HTMLElement): void;
|
||||
h(html: any): void;
|
||||
i(anchor: any): void;
|
||||
p(html: string): void;
|
||||
d(): void;
|
||||
}
|
||||
export declare function attribute_to_object(attributes: NamedNodeMap): {};
|
||||
export declare function get_custom_elements_slots(element: HTMLElement): {};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G BC","132":"A B"},B:{"1":"C K L H M 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"},C:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"CC tB DC EC","129":"I u J E F G A B C K L H M N O v w x y"},D:{"1":"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 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":"I u J E F G A B C K","257":"0 L H M N O v w x y z"},E:{"1":"E F G A B C K L H JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"I u GC zB","257":"J IC","260":"HC"},F:{"1":"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","2":"G B C OC PC QC RC qB 9B SC rB"},G:{"1":"F 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","2":"zB TC AC","257":"VC","260":"UC"},H:{"2":"nC"},I:{"1":"D sC tC","2":"tB I oC pC qC rC AC"},J:{"2":"E","257":"A"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"132":"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:4,C:"Content Security Policy 1.0"};
|
||||
@@ -0,0 +1,302 @@
|
||||
let featureQueries = require('caniuse-lite/data/features/css-featurequeries.js')
|
||||
let { feature } = require('caniuse-lite')
|
||||
let { parse } = require('postcss')
|
||||
|
||||
let Browsers = require('./browsers')
|
||||
let brackets = require('./brackets')
|
||||
let Value = require('./value')
|
||||
let utils = require('./utils')
|
||||
|
||||
let data = feature(featureQueries)
|
||||
|
||||
let supported = []
|
||||
for (let browser in data.stats) {
|
||||
let versions = data.stats[browser]
|
||||
for (let version in versions) {
|
||||
let support = versions[version]
|
||||
if (/y/.test(support)) {
|
||||
supported.push(browser + ' ' + version)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Supports {
|
||||
constructor (Prefixes, all) {
|
||||
this.Prefixes = Prefixes
|
||||
this.all = all
|
||||
}
|
||||
|
||||
/**
|
||||
* Return prefixer only with @supports supported browsers
|
||||
*/
|
||||
prefixer () {
|
||||
if (this.prefixerCache) {
|
||||
return this.prefixerCache
|
||||
}
|
||||
|
||||
let filtered = this.all.browsers.selected.filter(i => {
|
||||
return supported.includes(i)
|
||||
})
|
||||
|
||||
let browsers = new Browsers(
|
||||
this.all.browsers.data,
|
||||
filtered,
|
||||
this.all.options
|
||||
)
|
||||
this.prefixerCache = new this.Prefixes(
|
||||
this.all.data,
|
||||
browsers,
|
||||
this.all.options
|
||||
)
|
||||
return this.prefixerCache
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse string into declaration property and value
|
||||
*/
|
||||
parse (str) {
|
||||
let parts = str.split(':')
|
||||
let prop = parts[0]
|
||||
let value = parts[1]
|
||||
if (!value) value = ''
|
||||
return [prop.trim(), value.trim()]
|
||||
}
|
||||
|
||||
/**
|
||||
* Create virtual rule to process it by prefixer
|
||||
*/
|
||||
virtual (str) {
|
||||
let [prop, value] = this.parse(str)
|
||||
let rule = parse('a{}').first
|
||||
rule.append({ prop, value, raws: { before: '' } })
|
||||
return rule
|
||||
}
|
||||
|
||||
/**
|
||||
* Return array of Declaration with all necessary prefixes
|
||||
*/
|
||||
prefixed (str) {
|
||||
let rule = this.virtual(str)
|
||||
if (this.disabled(rule.first)) {
|
||||
return rule.nodes
|
||||
}
|
||||
|
||||
let result = { warn: () => null }
|
||||
|
||||
let prefixer = this.prefixer().add[rule.first.prop]
|
||||
prefixer && prefixer.process && prefixer.process(rule.first, result)
|
||||
|
||||
for (let decl of rule.nodes) {
|
||||
for (let value of this.prefixer().values('add', rule.first.prop)) {
|
||||
value.process(decl)
|
||||
}
|
||||
Value.save(this.all, decl)
|
||||
}
|
||||
|
||||
return rule.nodes
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if brackets node is "not" word
|
||||
*/
|
||||
isNot (node) {
|
||||
return typeof node === 'string' && /not\s*/i.test(node)
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if brackets node is "or" word
|
||||
*/
|
||||
isOr (node) {
|
||||
return typeof node === 'string' && /\s*or\s*/i.test(node)
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if brackets node is (prop: value)
|
||||
*/
|
||||
isProp (node) {
|
||||
return (
|
||||
typeof node === 'object' &&
|
||||
node.length === 1 &&
|
||||
typeof node[0] === 'string'
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if prefixed property has no unprefixed
|
||||
*/
|
||||
isHack (all, unprefixed) {
|
||||
let check = new RegExp(`(\\(|\\s)${utils.escapeRegexp(unprefixed)}:`)
|
||||
return !check.test(all)
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if we need to remove node
|
||||
*/
|
||||
toRemove (str, all) {
|
||||
let [prop, value] = this.parse(str)
|
||||
let unprefixed = this.all.unprefixed(prop)
|
||||
|
||||
let cleaner = this.all.cleaner()
|
||||
|
||||
if (
|
||||
cleaner.remove[prop] &&
|
||||
cleaner.remove[prop].remove &&
|
||||
!this.isHack(all, unprefixed)
|
||||
) {
|
||||
return true
|
||||
}
|
||||
|
||||
for (let checker of cleaner.values('remove', unprefixed)) {
|
||||
if (checker.check(value)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all unnecessary prefixes
|
||||
*/
|
||||
remove (nodes, all) {
|
||||
let i = 0
|
||||
while (i < nodes.length) {
|
||||
if (
|
||||
!this.isNot(nodes[i - 1]) &&
|
||||
this.isProp(nodes[i]) &&
|
||||
this.isOr(nodes[i + 1])
|
||||
) {
|
||||
if (this.toRemove(nodes[i][0], all)) {
|
||||
nodes.splice(i, 2)
|
||||
continue
|
||||
}
|
||||
|
||||
i += 2
|
||||
continue
|
||||
}
|
||||
|
||||
if (typeof nodes[i] === 'object') {
|
||||
nodes[i] = this.remove(nodes[i], all)
|
||||
}
|
||||
|
||||
i += 1
|
||||
}
|
||||
return nodes
|
||||
}
|
||||
|
||||
/**
|
||||
* Clean brackets with one child
|
||||
*/
|
||||
cleanBrackets (nodes) {
|
||||
return nodes.map(i => {
|
||||
if (typeof i !== 'object') {
|
||||
return i
|
||||
}
|
||||
|
||||
if (i.length === 1 && typeof i[0] === 'object') {
|
||||
return this.cleanBrackets(i[0])
|
||||
}
|
||||
|
||||
return this.cleanBrackets(i)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Add " or " between properties and convert it to brackets format
|
||||
*/
|
||||
convert (progress) {
|
||||
let result = ['']
|
||||
for (let i of progress) {
|
||||
result.push([`${i.prop}: ${i.value}`])
|
||||
result.push(' or ')
|
||||
}
|
||||
result[result.length - 1] = ''
|
||||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
* Compress value functions into a string nodes
|
||||
*/
|
||||
normalize (nodes) {
|
||||
if (typeof nodes !== 'object') {
|
||||
return nodes
|
||||
}
|
||||
|
||||
nodes = nodes.filter(i => i !== '')
|
||||
|
||||
if (typeof nodes[0] === 'string') {
|
||||
let firstNode = nodes[0].trim()
|
||||
|
||||
if (
|
||||
firstNode.includes(':') ||
|
||||
firstNode === 'selector' ||
|
||||
firstNode === 'not selector'
|
||||
) {
|
||||
return [brackets.stringify(nodes)]
|
||||
}
|
||||
}
|
||||
return nodes.map(i => this.normalize(i))
|
||||
}
|
||||
|
||||
/**
|
||||
* Add prefixes
|
||||
*/
|
||||
add (nodes, all) {
|
||||
return nodes.map(i => {
|
||||
if (this.isProp(i)) {
|
||||
let prefixed = this.prefixed(i[0])
|
||||
if (prefixed.length > 1) {
|
||||
return this.convert(prefixed)
|
||||
}
|
||||
|
||||
return i
|
||||
}
|
||||
|
||||
if (typeof i === 'object') {
|
||||
return this.add(i, all)
|
||||
}
|
||||
|
||||
return i
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Add prefixed declaration
|
||||
*/
|
||||
process (rule) {
|
||||
let ast = brackets.parse(rule.params)
|
||||
ast = this.normalize(ast)
|
||||
ast = this.remove(ast, rule.params)
|
||||
ast = this.add(ast, rule.params)
|
||||
ast = this.cleanBrackets(ast)
|
||||
rule.params = brackets.stringify(ast)
|
||||
}
|
||||
|
||||
/**
|
||||
* Check global options
|
||||
*/
|
||||
disabled (node) {
|
||||
if (!this.all.options.grid) {
|
||||
if (node.prop === 'display' && node.value.includes('grid')) {
|
||||
return true
|
||||
}
|
||||
if (node.prop.includes('grid') || node.prop === 'justify-items') {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
if (this.all.options.flexbox === false) {
|
||||
if (node.prop === 'display' && node.value.includes('flex')) {
|
||||
return true
|
||||
}
|
||||
let other = ['order', 'justify-content', 'align-items', 'align-content']
|
||||
if (node.prop.includes('flex') || other.includes(node.prop)) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Supports
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F G A B BC"},B:{"1":"f g h i j k l m n o p q r s D t","2":"C K L H M N O P Q","516":"R S T U V W X Y Z a b c d"},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 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"},D:{"2":"1 2 3 4 5 6 7 8 9 I u J E F G A B C K L H M N 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","130":"0 O v w x y z","1028":"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:{"1":"L H LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"I u J E F G A B C GC zB HC IC JC KC 0B qB","2049":"K rB 1B"},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 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 OC PC QC RC qB 9B SC rB"},G:{"1":"kC lC mC 2B 3B 4B 5B sB 6B 7B 8B","2":"F zB TC AC UC VC WC XC YC ZC aC bC cC dC eC","2049":"fC gC hC iC jC"},H:{"2":"nC"},I:{"2":"tB I oC pC qC rC AC sC","258":"D 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":"yC zC 0B 0C 1C 2C 3C 4C sB 5C 6C 7C","2":"I","258":"vC wC xC"},Q:{"2":"1B"},R:{"2":"8C"},S:{"2":"9C"}},B:4,C:"Web Share API"};
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operators/skipUntil';
|
||||
@@ -0,0 +1,45 @@
|
||||
/// <reference types="node"/>
|
||||
|
||||
/**
|
||||
Show cursor.
|
||||
|
||||
@param stream - Default: `process.stderr`.
|
||||
|
||||
@example
|
||||
```
|
||||
import * as cliCursor from 'cli-cursor';
|
||||
|
||||
cliCursor.show();
|
||||
```
|
||||
*/
|
||||
export function show(stream?: NodeJS.WritableStream): void;
|
||||
|
||||
/**
|
||||
Hide cursor.
|
||||
|
||||
@param stream - Default: `process.stderr`.
|
||||
|
||||
@example
|
||||
```
|
||||
import * as cliCursor from 'cli-cursor';
|
||||
|
||||
cliCursor.hide();
|
||||
```
|
||||
*/
|
||||
export function hide(stream?: NodeJS.WritableStream): void;
|
||||
|
||||
/**
|
||||
Toggle cursor visibility.
|
||||
|
||||
@param force - Is useful to show or hide the cursor based on a boolean.
|
||||
@param stream - Default: `process.stderr`.
|
||||
|
||||
@example
|
||||
```
|
||||
import * as cliCursor from 'cli-cursor';
|
||||
|
||||
const unicornsAreAwesome = true;
|
||||
cliCursor.toggle(unicornsAreAwesome);
|
||||
```
|
||||
*/
|
||||
export function toggle(force?: boolean, stream?: NodeJS.WritableStream): void;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"subscribeToIterable.js","sources":["../../../src/internal/util/subscribeToIterable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAEjE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAI,QAAqB,EAAE,EAAE,CAAC,CAAC,UAAyB,EAAE,EAAE;IAC7F,MAAM,QAAQ,GAAI,QAAgB,CAAC,eAAe,CAAC,EAAE,CAAC;IAEtD,GAAG;QACD,IAAI,IAAuB,CAAC;QAC5B,IAAI;YACF,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;SACxB;QAAC,OAAO,GAAG,EAAE;YACZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACtB,OAAO,UAAU,CAAC;SACnB;QACD,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,UAAU,CAAC,QAAQ,EAAE,CAAC;YACtB,MAAM;SACP;QACD,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5B,IAAI,UAAU,CAAC,MAAM,EAAE;YACrB,MAAM;SACP;KACF,QAAQ,IAAI,EAAE;IAGf,IAAI,OAAO,QAAQ,CAAC,MAAM,KAAK,UAAU,EAAE;QACzC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE;YAClB,IAAI,QAAQ,CAAC,MAAM,EAAE;gBACnB,QAAQ,CAAC,MAAM,EAAE,CAAC;aACnB;QACH,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC"}
|
||||
@@ -0,0 +1,9 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2010-2020 Robert Kieffer and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"concatAll.js","sources":["../../src/internal/operators/concatAll.ts"],"names":[],"mappings":";;AACA,uCAAsC;AAgEtC,SAAgB,SAAS;IACvB,OAAO,mBAAQ,CAAI,CAAC,CAAC,CAAC;AACxB,CAAC;AAFD,8BAEC"}
|
||||
@@ -0,0 +1,104 @@
|
||||
export { audit } from '../internal/operators/audit';
|
||||
export { auditTime } from '../internal/operators/auditTime';
|
||||
export { buffer } from '../internal/operators/buffer';
|
||||
export { bufferCount } from '../internal/operators/bufferCount';
|
||||
export { bufferTime } from '../internal/operators/bufferTime';
|
||||
export { bufferToggle } from '../internal/operators/bufferToggle';
|
||||
export { bufferWhen } from '../internal/operators/bufferWhen';
|
||||
export { catchError } from '../internal/operators/catchError';
|
||||
export { combineAll } from '../internal/operators/combineAll';
|
||||
export { combineLatest } from '../internal/operators/combineLatest';
|
||||
export { concat } from '../internal/operators/concat';
|
||||
export { concatAll } from '../internal/operators/concatAll';
|
||||
export { concatMap } from '../internal/operators/concatMap';
|
||||
export { concatMapTo } from '../internal/operators/concatMapTo';
|
||||
export { count } from '../internal/operators/count';
|
||||
export { debounce } from '../internal/operators/debounce';
|
||||
export { debounceTime } from '../internal/operators/debounceTime';
|
||||
export { defaultIfEmpty } from '../internal/operators/defaultIfEmpty';
|
||||
export { delay } from '../internal/operators/delay';
|
||||
export { delayWhen } from '../internal/operators/delayWhen';
|
||||
export { dematerialize } from '../internal/operators/dematerialize';
|
||||
export { distinct } from '../internal/operators/distinct';
|
||||
export { distinctUntilChanged } from '../internal/operators/distinctUntilChanged';
|
||||
export { distinctUntilKeyChanged } from '../internal/operators/distinctUntilKeyChanged';
|
||||
export { elementAt } from '../internal/operators/elementAt';
|
||||
export { endWith } from '../internal/operators/endWith';
|
||||
export { every } from '../internal/operators/every';
|
||||
export { exhaust } from '../internal/operators/exhaust';
|
||||
export { exhaustMap } from '../internal/operators/exhaustMap';
|
||||
export { expand } from '../internal/operators/expand';
|
||||
export { filter } from '../internal/operators/filter';
|
||||
export { finalize } from '../internal/operators/finalize';
|
||||
export { find } from '../internal/operators/find';
|
||||
export { findIndex } from '../internal/operators/findIndex';
|
||||
export { first } from '../internal/operators/first';
|
||||
export { groupBy } from '../internal/operators/groupBy';
|
||||
export { ignoreElements } from '../internal/operators/ignoreElements';
|
||||
export { isEmpty } from '../internal/operators/isEmpty';
|
||||
export { last } from '../internal/operators/last';
|
||||
export { map } from '../internal/operators/map';
|
||||
export { mapTo } from '../internal/operators/mapTo';
|
||||
export { materialize } from '../internal/operators/materialize';
|
||||
export { max } from '../internal/operators/max';
|
||||
export { merge } from '../internal/operators/merge';
|
||||
export { mergeAll } from '../internal/operators/mergeAll';
|
||||
export { mergeMap, flatMap } from '../internal/operators/mergeMap';
|
||||
export { mergeMapTo } from '../internal/operators/mergeMapTo';
|
||||
export { mergeScan } from '../internal/operators/mergeScan';
|
||||
export { min } from '../internal/operators/min';
|
||||
export { multicast } from '../internal/operators/multicast';
|
||||
export { observeOn } from '../internal/operators/observeOn';
|
||||
export { onErrorResumeNext } from '../internal/operators/onErrorResumeNext';
|
||||
export { pairwise } from '../internal/operators/pairwise';
|
||||
export { partition } from '../internal/operators/partition';
|
||||
export { pluck } from '../internal/operators/pluck';
|
||||
export { publish } from '../internal/operators/publish';
|
||||
export { publishBehavior } from '../internal/operators/publishBehavior';
|
||||
export { publishLast } from '../internal/operators/publishLast';
|
||||
export { publishReplay } from '../internal/operators/publishReplay';
|
||||
export { race } from '../internal/operators/race';
|
||||
export { reduce } from '../internal/operators/reduce';
|
||||
export { repeat } from '../internal/operators/repeat';
|
||||
export { repeatWhen } from '../internal/operators/repeatWhen';
|
||||
export { retry } from '../internal/operators/retry';
|
||||
export { retryWhen } from '../internal/operators/retryWhen';
|
||||
export { refCount } from '../internal/operators/refCount';
|
||||
export { sample } from '../internal/operators/sample';
|
||||
export { sampleTime } from '../internal/operators/sampleTime';
|
||||
export { scan } from '../internal/operators/scan';
|
||||
export { sequenceEqual } from '../internal/operators/sequenceEqual';
|
||||
export { share } from '../internal/operators/share';
|
||||
export { shareReplay } from '../internal/operators/shareReplay';
|
||||
export { single } from '../internal/operators/single';
|
||||
export { skip } from '../internal/operators/skip';
|
||||
export { skipLast } from '../internal/operators/skipLast';
|
||||
export { skipUntil } from '../internal/operators/skipUntil';
|
||||
export { skipWhile } from '../internal/operators/skipWhile';
|
||||
export { startWith } from '../internal/operators/startWith';
|
||||
export { subscribeOn } from '../internal/operators/subscribeOn';
|
||||
export { switchAll } from '../internal/operators/switchAll';
|
||||
export { switchMap } from '../internal/operators/switchMap';
|
||||
export { switchMapTo } from '../internal/operators/switchMapTo';
|
||||
export { take } from '../internal/operators/take';
|
||||
export { takeLast } from '../internal/operators/takeLast';
|
||||
export { takeUntil } from '../internal/operators/takeUntil';
|
||||
export { takeWhile } from '../internal/operators/takeWhile';
|
||||
export { tap } from '../internal/operators/tap';
|
||||
export { throttle } from '../internal/operators/throttle';
|
||||
export { throttleTime } from '../internal/operators/throttleTime';
|
||||
export { throwIfEmpty } from '../internal/operators/throwIfEmpty';
|
||||
export { timeInterval } from '../internal/operators/timeInterval';
|
||||
export { timeout } from '../internal/operators/timeout';
|
||||
export { timeoutWith } from '../internal/operators/timeoutWith';
|
||||
export { timestamp } from '../internal/operators/timestamp';
|
||||
export { toArray } from '../internal/operators/toArray';
|
||||
export { window } from '../internal/operators/window';
|
||||
export { windowCount } from '../internal/operators/windowCount';
|
||||
export { windowTime } from '../internal/operators/windowTime';
|
||||
export { windowToggle } from '../internal/operators/windowToggle';
|
||||
export { windowWhen } from '../internal/operators/windowWhen';
|
||||
export { withLatestFrom } from '../internal/operators/withLatestFrom';
|
||||
export { zip } from '../internal/operators/zip';
|
||||
export { zipAll } from '../internal/operators/zipAll';
|
||||
//# sourceMappingURL=index.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bufferCount.js","sources":["../src/operator/bufferCount.ts"],"names":[],"mappings":";;;;;AAAA,sDAAiD"}
|
||||
@@ -0,0 +1,47 @@
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AnimationFrameScheduler } from './AnimationFrameScheduler';
|
||||
import { SchedulerAction } from '../types';
|
||||
|
||||
/**
|
||||
* We need this JSDoc comment for affecting ESDoc.
|
||||
* @ignore
|
||||
* @extends {Ignored}
|
||||
*/
|
||||
export class AnimationFrameAction<T> extends AsyncAction<T> {
|
||||
|
||||
constructor(protected scheduler: AnimationFrameScheduler,
|
||||
protected work: (this: SchedulerAction<T>, state?: T) => void) {
|
||||
super(scheduler, work);
|
||||
}
|
||||
|
||||
protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay: number = 0): any {
|
||||
// If delay is greater than 0, request as an async action.
|
||||
if (delay !== null && delay > 0) {
|
||||
return super.requestAsyncId(scheduler, id, delay);
|
||||
}
|
||||
// Push the action to the end of the scheduler queue.
|
||||
scheduler.actions.push(this);
|
||||
// If an animation frame has already been requested, don't request another
|
||||
// one. If an animation frame hasn't been requested yet, request one. Return
|
||||
// the current animation frame request id.
|
||||
return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(
|
||||
() => scheduler.flush(null)));
|
||||
}
|
||||
protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: any, delay: number = 0): any {
|
||||
// If delay exists and is greater than 0, or if the delay is null (the
|
||||
// action wasn't rescheduled) but was originally scheduled as an async
|
||||
// action, then recycle as an async action.
|
||||
if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
|
||||
return super.recycleAsyncId(scheduler, id, delay);
|
||||
}
|
||||
// If the scheduler queue is empty, cancel the requested animation frame and
|
||||
// set the scheduled flag to undefined so the next AnimationFrameAction will
|
||||
// request its own.
|
||||
if (scheduler.actions.length === 0) {
|
||||
cancelAnimationFrame(id);
|
||||
scheduler.scheduled = undefined;
|
||||
}
|
||||
// Return undefined so the action knows to request a new async id if it's rescheduled.
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
export declare function decode_character_references(html: string): string;
|
||||
export declare function closing_tag_omitted(current: string, next?: string): boolean;
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operator/toArray';
|
||||
@@ -0,0 +1,103 @@
|
||||
'use strict';
|
||||
|
||||
const EventEmitter = require('events');
|
||||
const JSONB = require('json-buffer');
|
||||
|
||||
const loadStore = opts => {
|
||||
const adapters = {
|
||||
redis: '@keyv/redis',
|
||||
mongodb: '@keyv/mongo',
|
||||
mongo: '@keyv/mongo',
|
||||
sqlite: '@keyv/sqlite',
|
||||
postgresql: '@keyv/postgres',
|
||||
postgres: '@keyv/postgres',
|
||||
mysql: '@keyv/mysql'
|
||||
};
|
||||
if (opts.adapter || opts.uri) {
|
||||
const adapter = opts.adapter || /^[^:]*/.exec(opts.uri)[0];
|
||||
return new (require(adapters[adapter]))(opts);
|
||||
}
|
||||
return new Map();
|
||||
};
|
||||
|
||||
class Keyv extends EventEmitter {
|
||||
constructor(uri, opts) {
|
||||
super();
|
||||
this.opts = Object.assign(
|
||||
{
|
||||
namespace: 'keyv',
|
||||
serialize: JSONB.stringify,
|
||||
deserialize: JSONB.parse
|
||||
},
|
||||
(typeof uri === 'string') ? { uri } : uri,
|
||||
opts
|
||||
);
|
||||
|
||||
if (!this.opts.store) {
|
||||
const adapterOpts = Object.assign({}, this.opts);
|
||||
this.opts.store = loadStore(adapterOpts);
|
||||
}
|
||||
|
||||
if (typeof this.opts.store.on === 'function') {
|
||||
this.opts.store.on('error', err => this.emit('error', err));
|
||||
}
|
||||
|
||||
this.opts.store.namespace = this.opts.namespace;
|
||||
}
|
||||
|
||||
_getKeyPrefix(key) {
|
||||
return `${this.opts.namespace}:${key}`;
|
||||
}
|
||||
|
||||
get(key) {
|
||||
key = this._getKeyPrefix(key);
|
||||
const store = this.opts.store;
|
||||
return Promise.resolve()
|
||||
.then(() => store.get(key))
|
||||
.then(data => {
|
||||
data = (typeof data === 'string') ? this.opts.deserialize(data) : data;
|
||||
if (data === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (typeof data.expires === 'number' && Date.now() > data.expires) {
|
||||
this.delete(key);
|
||||
return undefined;
|
||||
}
|
||||
return data.value;
|
||||
});
|
||||
}
|
||||
|
||||
set(key, value, ttl) {
|
||||
key = this._getKeyPrefix(key);
|
||||
if (typeof ttl === 'undefined') {
|
||||
ttl = this.opts.ttl;
|
||||
}
|
||||
if (ttl === 0) {
|
||||
ttl = undefined;
|
||||
}
|
||||
const store = this.opts.store;
|
||||
|
||||
return Promise.resolve()
|
||||
.then(() => {
|
||||
const expires = (typeof ttl === 'number') ? (Date.now() + ttl) : null;
|
||||
value = { value, expires };
|
||||
return store.set(key, this.opts.serialize(value), ttl);
|
||||
})
|
||||
.then(() => true);
|
||||
}
|
||||
|
||||
delete(key) {
|
||||
key = this._getKeyPrefix(key);
|
||||
const store = this.opts.store;
|
||||
return Promise.resolve()
|
||||
.then(() => store.delete(key));
|
||||
}
|
||||
|
||||
clear() {
|
||||
const store = this.opts.store;
|
||||
return Promise.resolve()
|
||||
.then(() => store.clear());
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Keyv;
|
||||
@@ -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/observable/EmptyObservable"));
|
||||
//# sourceMappingURL=EmptyObservable.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
/** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */
|
||||
import { Observable } from '../Observable';
|
||||
export function isObservable(obj) {
|
||||
return !!obj && (obj instanceof Observable || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function'));
|
||||
}
|
||||
//# sourceMappingURL=isObservable.js.map
|
||||
@@ -0,0 +1,101 @@
|
||||
import {
|
||||
AcceptedPlugin,
|
||||
Plugin,
|
||||
ProcessOptions,
|
||||
Transformer,
|
||||
TransformCallback
|
||||
} from './postcss.js'
|
||||
import LazyResult from './lazy-result.js'
|
||||
import Result from './result.js'
|
||||
import Root from './root.js'
|
||||
|
||||
/**
|
||||
* Contains plugins to process CSS. Create one `Processor` instance,
|
||||
* initialize its plugins, and then use that instance on numerous CSS files.
|
||||
*
|
||||
* ```js
|
||||
* const processor = postcss([autoprefixer, precss])
|
||||
* processor.process(css1).then(result => console.log(result.css))
|
||||
* processor.process(css2).then(result => console.log(result.css))
|
||||
* ```
|
||||
*/
|
||||
export default class Processor {
|
||||
/**
|
||||
* Current PostCSS version.
|
||||
*
|
||||
* ```js
|
||||
* if (result.processor.version.split('.')[0] !== '6') {
|
||||
* throw new Error('This plugin works only with PostCSS 6')
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
version: string
|
||||
|
||||
/**
|
||||
* Plugins added to this processor.
|
||||
*
|
||||
* ```js
|
||||
* const processor = postcss([autoprefixer, precss])
|
||||
* processor.plugins.length //=> 2
|
||||
* ```
|
||||
*/
|
||||
plugins: (Plugin | Transformer | TransformCallback)[]
|
||||
|
||||
/**
|
||||
* @param plugins PostCSS plugins
|
||||
*/
|
||||
constructor(plugins?: AcceptedPlugin[])
|
||||
|
||||
/**
|
||||
* Adds a plugin to be used as a CSS processor.
|
||||
*
|
||||
* PostCSS plugin can be in 4 formats:
|
||||
* * A plugin in `Plugin` format.
|
||||
* * A plugin creator function with `pluginCreator.postcss = true`.
|
||||
* PostCSS will call this function without argument to get plugin.
|
||||
* * A function. PostCSS will pass the function a @{link Root}
|
||||
* as the first argument and current `Result` instance
|
||||
* as the second.
|
||||
* * Another `Processor` instance. PostCSS will copy plugins
|
||||
* from that instance into this one.
|
||||
*
|
||||
* Plugins can also be added by passing them as arguments when creating
|
||||
* a `postcss` instance (see [`postcss(plugins)`]).
|
||||
*
|
||||
* Asynchronous plugins should return a `Promise` instance.
|
||||
*
|
||||
* ```js
|
||||
* const processor = postcss()
|
||||
* .use(autoprefixer)
|
||||
* .use(precss)
|
||||
* ```
|
||||
*
|
||||
* @param plugin PostCSS plugin or `Processor` with plugins.
|
||||
* @return {Processes} Current processor to make methods chain.
|
||||
*/
|
||||
use(plugin: AcceptedPlugin): this
|
||||
|
||||
/**
|
||||
* Parses source CSS and returns a `LazyResult` Promise proxy.
|
||||
* Because some plugins can be asynchronous it doesn’t make
|
||||
* any transformations. Transformations will be applied
|
||||
* in the `LazyResult` methods.
|
||||
*
|
||||
* ```js
|
||||
* processor.process(css, { from: 'a.css', to: 'a.out.css' })
|
||||
* .then(result => {
|
||||
* console.log(result.css)
|
||||
* })
|
||||
* ```
|
||||
*
|
||||
* @param css String with input CSS or any object with a `toString()` method,
|
||||
* like a Buffer. Optionally, senda `Result` instance
|
||||
* and the processor will take the `Root` from it.
|
||||
* @param opts Options.
|
||||
* @return Promise proxy.
|
||||
*/
|
||||
process(
|
||||
css: string | { toString(): string } | Result | LazyResult | Root,
|
||||
options?: ProcessOptions
|
||||
): LazyResult
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { mergeMap } from './mergeMap';
|
||||
export function concatMap(project, resultSelector) {
|
||||
return mergeMap(project, resultSelector, 1);
|
||||
}
|
||||
//# sourceMappingURL=concatMap.js.map
|
||||
Reference in New Issue
Block a user