new license file version [CI SKIP]
This commit is contained in:
@@ -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/mapTo"));
|
||||
//# sourceMappingURL=mapTo.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"VirtualTimeScheduler.js","sources":["../../../src/internal/scheduler/VirtualTimeScheduler.ts"],"names":[],"mappings":"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"}
|
||||
@@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
}
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var AsyncScheduler_1 = require("./AsyncScheduler");
|
||||
var QueueScheduler = (function (_super) {
|
||||
__extends(QueueScheduler, _super);
|
||||
function QueueScheduler() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return QueueScheduler;
|
||||
}(AsyncScheduler_1.AsyncScheduler));
|
||||
exports.QueueScheduler = QueueScheduler;
|
||||
//# sourceMappingURL=QueueScheduler.js.map
|
||||
@@ -0,0 +1,11 @@
|
||||
import { isArray } from '../util/isArray';
|
||||
import { race as raceStatic } from '../observable/race';
|
||||
export function race(...observables) {
|
||||
return function raceOperatorFunction(source) {
|
||||
if (observables.length === 1 && isArray(observables[0])) {
|
||||
observables = observables[0];
|
||||
}
|
||||
return source.lift.call(raceStatic(source, ...observables));
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=race.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bufferToggle.js","sources":["../../src/add/operator/bufferToggle.ts"],"names":[],"mappings":";;AAAA,iDAA+C"}
|
||||
@@ -0,0 +1 @@
|
||||
export * from 'rxjs-compat/operator/window';
|
||||
@@ -0,0 +1,70 @@
|
||||
# changes log
|
||||
|
||||
## 6.2.0
|
||||
|
||||
* Coerce numbers to strings when passed to semver.coerce()
|
||||
* Add `rtl` option to coerce from right to left
|
||||
|
||||
## 6.1.3
|
||||
|
||||
* Handle X-ranges properly in includePrerelease mode
|
||||
|
||||
## 6.1.2
|
||||
|
||||
* Do not throw when testing invalid version strings
|
||||
|
||||
## 6.1.1
|
||||
|
||||
* Add options support for semver.coerce()
|
||||
* Handle undefined version passed to Range.test
|
||||
|
||||
## 6.1.0
|
||||
|
||||
* Add semver.compareBuild function
|
||||
* Support `*` in semver.intersects
|
||||
|
||||
## 6.0
|
||||
|
||||
* Fix `intersects` logic.
|
||||
|
||||
This is technically a bug fix, but since it is also a change to behavior
|
||||
that may require users updating their code, it is marked as a major
|
||||
version increment.
|
||||
|
||||
## 5.7
|
||||
|
||||
* Add `minVersion` method
|
||||
|
||||
## 5.6
|
||||
|
||||
* Move boolean `loose` param to an options object, with
|
||||
backwards-compatibility protection.
|
||||
* Add ability to opt out of special prerelease version handling with
|
||||
the `includePrerelease` option flag.
|
||||
|
||||
## 5.5
|
||||
|
||||
* Add version coercion capabilities
|
||||
|
||||
## 5.4
|
||||
|
||||
* Add intersection checking
|
||||
|
||||
## 5.3
|
||||
|
||||
* Add `minSatisfying` method
|
||||
|
||||
## 5.2
|
||||
|
||||
* Add `prerelease(v)` that returns prerelease components
|
||||
|
||||
## 5.1
|
||||
|
||||
* Add Backus-Naur for ranges
|
||||
* Remove excessively cute inspection methods
|
||||
|
||||
## 5.0
|
||||
|
||||
* Remove AMD/Browserified build artifacts
|
||||
* Fix ltr and gtr when using the `*` range
|
||||
* Fix for range `*` with a prerelease identifier
|
||||
@@ -0,0 +1,21 @@
|
||||
/** PURE_IMPORTS_START _identity PURE_IMPORTS_END */
|
||||
import { identity } from './identity';
|
||||
export function pipe() {
|
||||
var fns = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
fns[_i] = arguments[_i];
|
||||
}
|
||||
return pipeFromArray(fns);
|
||||
}
|
||||
export function pipeFromArray(fns) {
|
||||
if (fns.length === 0) {
|
||||
return identity;
|
||||
}
|
||||
if (fns.length === 1) {
|
||||
return fns[0];
|
||||
}
|
||||
return function piped(input) {
|
||||
return fns.reduce(function (prev, fn) { return fn(prev); }, input);
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=pipe.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J E F BC","260":"G","516":"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 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","2":"CC tB DC EC","33":"I u J E F G A B C K L H"},D:{"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 L H M N O","33":"0 1 v w x y z"},E:{"1":"E F G A B C K L H IC JC KC 0B qB rB 1B LC MC 2B 3B 4B 5B sB 6B 7B 8B NC","2":"I u GC zB HC","33":"J"},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 UC","33":"VC"},H:{"2":"nC"},I:{"1":"D","2":"tB I oC pC qC rC AC","132":"sC tC"},J:{"1":"A","2":"E"},K:{"1":"e","2":"A B C qB 9B rB"},L:{"1":"D"},M:{"1":"D"},N:{"1":"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:"calc() as CSS unit value"};
|
||||
@@ -0,0 +1,46 @@
|
||||
import type { Readable, Writable } from 'svelte/store';
|
||||
import type { Internationalization } from '$lib';
|
||||
export type Params = {
|
||||
rowsPerPage?: number;
|
||||
i18n?: Internationalization;
|
||||
};
|
||||
export default class DataHandler {
|
||||
private context;
|
||||
private rows;
|
||||
private pages;
|
||||
private globalSearch;
|
||||
private filters;
|
||||
i18n: Internationalization;
|
||||
constructor(data?: any[], params?: Params);
|
||||
setRows(data: any[]): void;
|
||||
getRows(): Readable<any[]>;
|
||||
getRowCount(): Readable<{
|
||||
total: number;
|
||||
start: number;
|
||||
end: number;
|
||||
}>;
|
||||
getRowsPerPage(): Writable<number | null>;
|
||||
sort(orderBy: Function | string): void;
|
||||
sortAsc(orderBy: Function | string): void;
|
||||
sortDesc(orderBy: Function | string): void;
|
||||
getSorted(): Writable<{
|
||||
identifier: string | null;
|
||||
direction: 'asc' | 'desc' | null;
|
||||
}>;
|
||||
search(value: string, scope?: string[]): void;
|
||||
clearSearch(): void;
|
||||
filter(value: string, filterBy: ((row: any) => string | number | boolean) | string): void;
|
||||
getPages(params?: {
|
||||
ellipsis: boolean;
|
||||
}): Readable<number[]>;
|
||||
getPageCount(): Readable<number>;
|
||||
getPageNumber(): Readable<number>;
|
||||
setPage(value: number | 'previous' | 'next'): void;
|
||||
getTriggerChange(): Writable<number>;
|
||||
translate(i18n: Internationalization): Internationalization;
|
||||
/**
|
||||
* Deprecated
|
||||
* use setRows() instead
|
||||
*/
|
||||
update(data: any[]): void;
|
||||
}
|
||||
@@ -0,0 +1,329 @@
|
||||
let { list } = require('postcss')
|
||||
let parser = require('postcss-value-parser')
|
||||
|
||||
let Browsers = require('./browsers')
|
||||
let vendor = require('./vendor')
|
||||
|
||||
class Transition {
|
||||
constructor (prefixes) {
|
||||
this.props = ['transition', 'transition-property']
|
||||
this.prefixes = prefixes
|
||||
}
|
||||
|
||||
/**
|
||||
* Process transition and add prefixes for all necessary properties
|
||||
*/
|
||||
add (decl, result) {
|
||||
let prefix, prop
|
||||
let add = this.prefixes.add[decl.prop]
|
||||
let vendorPrefixes = this.ruleVendorPrefixes(decl)
|
||||
let declPrefixes = vendorPrefixes || (add && add.prefixes) || []
|
||||
|
||||
let params = this.parse(decl.value)
|
||||
let names = params.map(i => this.findProp(i))
|
||||
let added = []
|
||||
|
||||
if (names.some(i => i[0] === '-')) {
|
||||
return
|
||||
}
|
||||
|
||||
for (let param of params) {
|
||||
prop = this.findProp(param)
|
||||
if (prop[0] === '-') continue
|
||||
|
||||
let prefixer = this.prefixes.add[prop]
|
||||
if (!prefixer || !prefixer.prefixes) continue
|
||||
|
||||
for (prefix of prefixer.prefixes) {
|
||||
if (vendorPrefixes && !vendorPrefixes.some(p => prefix.includes(p))) {
|
||||
continue
|
||||
}
|
||||
|
||||
let prefixed = this.prefixes.prefixed(prop, prefix)
|
||||
if (prefixed !== '-ms-transform' && !names.includes(prefixed)) {
|
||||
if (!this.disabled(prop, prefix)) {
|
||||
added.push(this.clone(prop, prefixed, param))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
params = params.concat(added)
|
||||
let value = this.stringify(params)
|
||||
|
||||
let webkitClean = this.stringify(
|
||||
this.cleanFromUnprefixed(params, '-webkit-')
|
||||
)
|
||||
if (declPrefixes.includes('-webkit-')) {
|
||||
this.cloneBefore(decl, `-webkit-${decl.prop}`, webkitClean)
|
||||
}
|
||||
this.cloneBefore(decl, decl.prop, webkitClean)
|
||||
if (declPrefixes.includes('-o-')) {
|
||||
let operaClean = this.stringify(this.cleanFromUnprefixed(params, '-o-'))
|
||||
this.cloneBefore(decl, `-o-${decl.prop}`, operaClean)
|
||||
}
|
||||
|
||||
for (prefix of declPrefixes) {
|
||||
if (prefix !== '-webkit-' && prefix !== '-o-') {
|
||||
let prefixValue = this.stringify(
|
||||
this.cleanOtherPrefixes(params, prefix)
|
||||
)
|
||||
this.cloneBefore(decl, prefix + decl.prop, prefixValue)
|
||||
}
|
||||
}
|
||||
|
||||
if (value !== decl.value && !this.already(decl, decl.prop, value)) {
|
||||
this.checkForWarning(result, decl)
|
||||
decl.cloneBefore()
|
||||
decl.value = value
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Find property name
|
||||
*/
|
||||
findProp (param) {
|
||||
let prop = param[0].value
|
||||
if (/^\d/.test(prop)) {
|
||||
for (let [i, token] of param.entries()) {
|
||||
if (i !== 0 && token.type === 'word') {
|
||||
return token.value
|
||||
}
|
||||
}
|
||||
}
|
||||
return prop
|
||||
}
|
||||
|
||||
/**
|
||||
* Does we already have this declaration
|
||||
*/
|
||||
already (decl, prop, value) {
|
||||
return decl.parent.some(i => i.prop === prop && i.value === value)
|
||||
}
|
||||
|
||||
/**
|
||||
* Add declaration if it is not exist
|
||||
*/
|
||||
cloneBefore (decl, prop, value) {
|
||||
if (!this.already(decl, prop, value)) {
|
||||
decl.cloneBefore({ prop, value })
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Show transition-property warning
|
||||
*/
|
||||
checkForWarning (result, decl) {
|
||||
if (decl.prop !== 'transition-property') {
|
||||
return
|
||||
}
|
||||
|
||||
let isPrefixed = false
|
||||
let hasAssociatedProp = false
|
||||
|
||||
decl.parent.each(i => {
|
||||
if (i.type !== 'decl') {
|
||||
return undefined
|
||||
}
|
||||
if (i.prop.indexOf('transition-') !== 0) {
|
||||
return undefined
|
||||
}
|
||||
let values = list.comma(i.value)
|
||||
// check if current Rule's transition-property comma separated value list needs prefixes
|
||||
if (i.prop === 'transition-property') {
|
||||
values.forEach(value => {
|
||||
let lookup = this.prefixes.add[value]
|
||||
if (lookup && lookup.prefixes && lookup.prefixes.length > 0) {
|
||||
isPrefixed = true
|
||||
}
|
||||
})
|
||||
return undefined
|
||||
}
|
||||
// check if another transition-* prop in current Rule has comma separated value list
|
||||
hasAssociatedProp = hasAssociatedProp || values.length > 1
|
||||
return false
|
||||
})
|
||||
|
||||
if (isPrefixed && hasAssociatedProp) {
|
||||
decl.warn(
|
||||
result,
|
||||
'Replace transition-property to transition, ' +
|
||||
'because Autoprefixer could not support ' +
|
||||
'any cases of transition-property ' +
|
||||
'and other transition-*'
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Process transition and remove all unnecessary properties
|
||||
*/
|
||||
remove (decl) {
|
||||
let params = this.parse(decl.value)
|
||||
params = params.filter(i => {
|
||||
let prop = this.prefixes.remove[this.findProp(i)]
|
||||
return !prop || !prop.remove
|
||||
})
|
||||
let value = this.stringify(params)
|
||||
|
||||
if (decl.value === value) {
|
||||
return
|
||||
}
|
||||
|
||||
if (params.length === 0) {
|
||||
decl.remove()
|
||||
return
|
||||
}
|
||||
|
||||
let double = decl.parent.some(i => {
|
||||
return i.prop === decl.prop && i.value === value
|
||||
})
|
||||
let smaller = decl.parent.some(i => {
|
||||
return i !== decl && i.prop === decl.prop && i.value.length > value.length
|
||||
})
|
||||
|
||||
if (double || smaller) {
|
||||
decl.remove()
|
||||
return
|
||||
}
|
||||
|
||||
decl.value = value
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse properties list to array
|
||||
*/
|
||||
parse (value) {
|
||||
let ast = parser(value)
|
||||
let result = []
|
||||
let param = []
|
||||
for (let node of ast.nodes) {
|
||||
param.push(node)
|
||||
if (node.type === 'div' && node.value === ',') {
|
||||
result.push(param)
|
||||
param = []
|
||||
}
|
||||
}
|
||||
result.push(param)
|
||||
return result.filter(i => i.length > 0)
|
||||
}
|
||||
|
||||
/**
|
||||
* Return properties string from array
|
||||
*/
|
||||
stringify (params) {
|
||||
if (params.length === 0) {
|
||||
return ''
|
||||
}
|
||||
let nodes = []
|
||||
for (let param of params) {
|
||||
if (param[param.length - 1].type !== 'div') {
|
||||
param.push(this.div(params))
|
||||
}
|
||||
nodes = nodes.concat(param)
|
||||
}
|
||||
if (nodes[0].type === 'div') {
|
||||
nodes = nodes.slice(1)
|
||||
}
|
||||
if (nodes[nodes.length - 1].type === 'div') {
|
||||
nodes = nodes.slice(0, +-2 + 1 || undefined)
|
||||
}
|
||||
return parser.stringify({ nodes })
|
||||
}
|
||||
|
||||
/**
|
||||
* Return new param array with different name
|
||||
*/
|
||||
clone (origin, name, param) {
|
||||
let result = []
|
||||
let changed = false
|
||||
for (let i of param) {
|
||||
if (!changed && i.type === 'word' && i.value === origin) {
|
||||
result.push({ type: 'word', value: name })
|
||||
changed = true
|
||||
} else {
|
||||
result.push(i)
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
* Find or create separator
|
||||
*/
|
||||
div (params) {
|
||||
for (let param of params) {
|
||||
for (let node of param) {
|
||||
if (node.type === 'div' && node.value === ',') {
|
||||
return node
|
||||
}
|
||||
}
|
||||
}
|
||||
return { type: 'div', value: ',', after: ' ' }
|
||||
}
|
||||
|
||||
cleanOtherPrefixes (params, prefix) {
|
||||
return params.filter(param => {
|
||||
let current = vendor.prefix(this.findProp(param))
|
||||
return current === '' || current === prefix
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove all non-webkit prefixes and unprefixed params if we have prefixed
|
||||
*/
|
||||
cleanFromUnprefixed (params, prefix) {
|
||||
let remove = params
|
||||
.map(i => this.findProp(i))
|
||||
.filter(i => i.slice(0, prefix.length) === prefix)
|
||||
.map(i => this.prefixes.unprefixed(i))
|
||||
|
||||
let result = []
|
||||
for (let param of params) {
|
||||
let prop = this.findProp(param)
|
||||
let p = vendor.prefix(prop)
|
||||
if (!remove.includes(prop) && (p === prefix || p === '')) {
|
||||
result.push(param)
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
* Check property for disabled by option
|
||||
*/
|
||||
disabled (prop, prefix) {
|
||||
let other = ['order', 'justify-content', 'align-self', 'align-content']
|
||||
if (prop.includes('flex') || other.includes(prop)) {
|
||||
if (this.prefixes.options.flexbox === false) {
|
||||
return true
|
||||
}
|
||||
|
||||
if (this.prefixes.options.flexbox === 'no-2009') {
|
||||
return prefix.includes('2009')
|
||||
}
|
||||
}
|
||||
return undefined
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if transition prop is inside vendor specific rule
|
||||
*/
|
||||
ruleVendorPrefixes (decl) {
|
||||
let { parent } = decl
|
||||
|
||||
if (parent.type !== 'rule') {
|
||||
return false
|
||||
} else if (!parent.selector.includes(':-')) {
|
||||
return false
|
||||
}
|
||||
|
||||
let selectors = Browsers.prefixes().filter(s =>
|
||||
parent.selector.includes(':' + s)
|
||||
)
|
||||
|
||||
return selectors.length > 0 ? selectors : false
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Transition
|
||||
@@ -0,0 +1,33 @@
|
||||
'use strict';
|
||||
|
||||
exports.htmlEscape = string => string
|
||||
.replace(/&/g, '&')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>');
|
||||
|
||||
exports.htmlUnescape = htmlString => htmlString
|
||||
.replace(/>/g, '>')
|
||||
.replace(/</g, '<')
|
||||
.replace(/�?39;/g, '\'')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/&/g, '&');
|
||||
|
||||
exports.htmlEscapeTag = (strings, ...values) => {
|
||||
let output = strings[0];
|
||||
for (let i = 0; i < values.length; i++) {
|
||||
output = output + exports.htmlEscape(String(values[i])) + strings[i + 1];
|
||||
}
|
||||
|
||||
return output;
|
||||
};
|
||||
|
||||
exports.htmlUnescapeTag = (strings, ...values) => {
|
||||
let output = strings[0];
|
||||
for (let i = 0; i < values.length; i++) {
|
||||
output = output + exports.htmlUnescape(String(values[i])) + strings[i + 1];
|
||||
}
|
||||
|
||||
return output;
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
/** PURE_IMPORTS_START PURE_IMPORTS_END */
|
||||
export { TestScheduler } from '../internal/testing/TestScheduler';
|
||||
//# sourceMappingURL=index.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var find_1 = require("../operators/find");
|
||||
function findIndex(predicate, thisArg) {
|
||||
return function (source) { return source.lift(new find_1.FindValueOperator(predicate, source, true, thisArg)); };
|
||||
}
|
||||
exports.findIndex = findIndex;
|
||||
//# sourceMappingURL=findIndex.js.map
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Subscriber } from '../Subscriber';
|
||||
export function filter(predicate, thisArg) {
|
||||
return function filterOperatorFunction(source) {
|
||||
return source.lift(new FilterOperator(predicate, thisArg));
|
||||
};
|
||||
}
|
||||
class FilterOperator {
|
||||
constructor(predicate, thisArg) {
|
||||
this.predicate = predicate;
|
||||
this.thisArg = thisArg;
|
||||
}
|
||||
call(subscriber, source) {
|
||||
return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));
|
||||
}
|
||||
}
|
||||
class FilterSubscriber extends Subscriber {
|
||||
constructor(destination, predicate, thisArg) {
|
||||
super(destination);
|
||||
this.predicate = predicate;
|
||||
this.thisArg = thisArg;
|
||||
this.count = 0;
|
||||
}
|
||||
_next(value) {
|
||||
let result;
|
||||
try {
|
||||
result = this.predicate.call(this.thisArg, value, this.count++);
|
||||
}
|
||||
catch (err) {
|
||||
this.destination.error(err);
|
||||
return;
|
||||
}
|
||||
if (result) {
|
||||
this.destination.next(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=filter.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"timestamp.js","sources":["../../../src/internal/operators/timestamp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAoC5B,MAAM,UAAU,SAAS,CAAI,SAAgC;IAAhC,0BAAA,EAAA,iBAAgC;IAC3D,OAAO,GAAG,CAAC,UAAC,KAAQ,IAAK,OAAA,IAAI,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,GAAG,EAAE,CAAC,EAArC,CAAqC,CAAC,CAAC;AAElE,CAAC;AAED;IACE,mBAAmB,KAAQ,EAAS,SAAiB;QAAlC,UAAK,GAAL,KAAK,CAAG;QAAS,cAAS,GAAT,SAAS,CAAQ;IACrD,CAAC;IACH,gBAAC;AAAD,CAAC,AAHD,IAGC"}
|
||||
Reference in New Issue
Block a user