new license file version [CI SKIP]

This commit is contained in:
2023-03-15 13:43:57 +00:00
parent d8a3063735
commit 00359d25c1
5600 changed files with 523898 additions and 2 deletions

View File

@@ -0,0 +1,37 @@
{
"name": "semver-diff",
"version": "3.1.1",
"description": "Get the diff type of two semver versions: 0.0.1 0.0.2 → patch",
"license": "MIT",
"repository": "sindresorhus/semver-diff",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"semver",
"version",
"semantic",
"diff",
"difference"
],
"dependencies": {
"semver": "^6.3.0"
},
"devDependencies": {
"ava": "^2.4.0",
"tsd": "^0.9.0",
"xo": "^0.25.3"
}
}

View File

@@ -0,0 +1,34 @@
// Type definitions for responselike 1.0
// Project: https://github.com/lukechilds/responselike#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { IncomingMessage } from 'http';
import { Stream } from 'stream';
export = ResponseLike;
/**
* Returns a streamable response object similar to a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage).
*/
declare class ResponseLike extends Stream.Readable {
statusCode: number;
headers: { [header: string]: string | string[] | undefined };
body: Buffer;
url: string;
/**
* @param statusCode HTTP response status code.
* @param headers HTTP headers object. Keys will be automatically lowercased.
* @param body A Buffer containing the response body. The Buffer contents will be streamable but is also exposed directly as `response.body`.
* @param url Request URL string.
*/
constructor(
statusCode: number,
headers: { [header: string]: string | string[] | undefined },
body: Buffer,
url: string
);
}

View File

@@ -0,0 +1,39 @@
{
"name": "is-npm",
"version": "5.0.0",
"description": "Check if your code is running as an npm script",
"license": "MIT",
"repository": "sindresorhus/is-npm",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=10"
},
"scripts": {
"test": "xo && ava && tsd"
},
"files": [
"index.js",
"index.d.ts"
],
"keywords": [
"npm",
"yarn",
"is",
"check",
"detect",
"env",
"environment",
"run",
"script"
],
"devDependencies": {
"ava": "^2.4.0",
"tsd": "^0.11.0",
"xo": "^0.30.0"
}
}

View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const is_1 = require("@sindresorhus/is");
function deepFreeze(object) {
for (const value of Object.values(object)) {
if (is_1.default.plainObject(value) || is_1.default.array(value)) {
deepFreeze(value);
}
}
return Object.freeze(object);
}
exports.default = deepFreeze;

View File

@@ -0,0 +1,56 @@
export { Observable } from './internal/Observable';
export { ConnectableObservable } from './internal/observable/ConnectableObservable';
export { GroupedObservable } from './internal/operators/groupBy';
export { observable } from './internal/symbol/observable';
export { Subject } from './internal/Subject';
export { BehaviorSubject } from './internal/BehaviorSubject';
export { ReplaySubject } from './internal/ReplaySubject';
export { AsyncSubject } from './internal/AsyncSubject';
export { asap, asapScheduler } from './internal/scheduler/asap';
export { async, asyncScheduler } from './internal/scheduler/async';
export { queue, queueScheduler } from './internal/scheduler/queue';
export { animationFrame, animationFrameScheduler } from './internal/scheduler/animationFrame';
export { VirtualTimeScheduler, VirtualAction } from './internal/scheduler/VirtualTimeScheduler';
export { Scheduler } from './internal/Scheduler';
export { Subscription } from './internal/Subscription';
export { Subscriber } from './internal/Subscriber';
export { Notification, NotificationKind } from './internal/Notification';
export { pipe } from './internal/util/pipe';
export { noop } from './internal/util/noop';
export { identity } from './internal/util/identity';
export { isObservable } from './internal/util/isObservable';
export { ArgumentOutOfRangeError } from './internal/util/ArgumentOutOfRangeError';
export { EmptyError } from './internal/util/EmptyError';
export { ObjectUnsubscribedError } from './internal/util/ObjectUnsubscribedError';
export { UnsubscriptionError } from './internal/util/UnsubscriptionError';
export { TimeoutError } from './internal/util/TimeoutError';
export { bindCallback } from './internal/observable/bindCallback';
export { bindNodeCallback } from './internal/observable/bindNodeCallback';
export { combineLatest } from './internal/observable/combineLatest';
export { concat } from './internal/observable/concat';
export { defer } from './internal/observable/defer';
export { empty } from './internal/observable/empty';
export { forkJoin } from './internal/observable/forkJoin';
export { from } from './internal/observable/from';
export { fromEvent } from './internal/observable/fromEvent';
export { fromEventPattern } from './internal/observable/fromEventPattern';
export { generate } from './internal/observable/generate';
export { iif } from './internal/observable/iif';
export { interval } from './internal/observable/interval';
export { merge } from './internal/observable/merge';
export { never } from './internal/observable/never';
export { of } from './internal/observable/of';
export { onErrorResumeNext } from './internal/observable/onErrorResumeNext';
export { pairs } from './internal/observable/pairs';
export { partition } from './internal/observable/partition';
export { race } from './internal/observable/race';
export { range } from './internal/observable/range';
export { throwError } from './internal/observable/throwError';
export { timer } from './internal/observable/timer';
export { using } from './internal/observable/using';
export { zip } from './internal/observable/zip';
export { scheduled } from './internal/scheduled/scheduled';
export { EMPTY } from './internal/observable/empty';
export { NEVER } from './internal/observable/never';
export { config } from './internal/config';
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1,29 @@
import { ClientRequest } from 'http';
declare const reentry: unique symbol;
interface TimedOutOptions {
host?: string;
hostname?: string;
protocol?: string;
}
export interface Delays {
lookup?: number;
connect?: number;
secureConnect?: number;
socket?: number;
response?: number;
send?: number;
request?: number;
}
export declare type ErrorCode = 'ETIMEDOUT' | 'ECONNRESET' | 'EADDRINUSE' | 'ECONNREFUSED' | 'EPIPE' | 'ENOTFOUND' | 'ENETUNREACH' | 'EAI_AGAIN';
export declare class TimeoutError extends Error {
event: string;
code: ErrorCode;
constructor(threshold: number, event: string);
}
declare const _default: (request: ClientRequest, delays: Delays, options: TimedOutOptions) => () => void;
export default _default;
declare module 'http' {
interface ClientRequest {
[reentry]: boolean;
}
}

View File

@@ -0,0 +1,5 @@
// Test for `seamless` attribute in iframes.
//
// Spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-iframe-element.html#attr-iframe-seamless
Modernizr.addTest('seamless', 'seamless' in document.createElement('iframe'));

View File

@@ -0,0 +1 @@
{"version":3,"file":"withLatestFrom.js","sources":["../src/operators/withLatestFrom.ts"],"names":[],"mappings":";;;;;AAAA,0DAAqD"}

View File

@@ -0,0 +1,7 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("rxjs-compat/operator/groupBy"));
//# sourceMappingURL=groupBy.js.map

View File

@@ -0,0 +1,4 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("rxjs-compat/add/operator/sequenceEqual");
//# sourceMappingURL=sequenceEqual.js.map

View File

@@ -0,0 +1,7 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("rxjs-compat/operator/skipLast"));
//# sourceMappingURL=skipLast.js.map

View File

@@ -0,0 +1,7 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("rxjs-compat/operator/retryWhen"));
//# sourceMappingURL=retryWhen.js.map

View File

@@ -0,0 +1,76 @@
"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 Subscriber_1 = require("../Subscriber");
var async_1 = require("../scheduler/async");
function debounceTime(dueTime, scheduler) {
if (scheduler === void 0) { scheduler = async_1.async; }
return function (source) { return source.lift(new DebounceTimeOperator(dueTime, scheduler)); };
}
exports.debounceTime = debounceTime;
var DebounceTimeOperator = (function () {
function DebounceTimeOperator(dueTime, scheduler) {
this.dueTime = dueTime;
this.scheduler = scheduler;
}
DebounceTimeOperator.prototype.call = function (subscriber, source) {
return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));
};
return DebounceTimeOperator;
}());
var DebounceTimeSubscriber = (function (_super) {
__extends(DebounceTimeSubscriber, _super);
function DebounceTimeSubscriber(destination, dueTime, scheduler) {
var _this = _super.call(this, destination) || this;
_this.dueTime = dueTime;
_this.scheduler = scheduler;
_this.debouncedSubscription = null;
_this.lastValue = null;
_this.hasValue = false;
return _this;
}
DebounceTimeSubscriber.prototype._next = function (value) {
this.clearDebounce();
this.lastValue = value;
this.hasValue = true;
this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));
};
DebounceTimeSubscriber.prototype._complete = function () {
this.debouncedNext();
this.destination.complete();
};
DebounceTimeSubscriber.prototype.debouncedNext = function () {
this.clearDebounce();
if (this.hasValue) {
var lastValue = this.lastValue;
this.lastValue = null;
this.hasValue = false;
this.destination.next(lastValue);
}
};
DebounceTimeSubscriber.prototype.clearDebounce = function () {
var debouncedSubscription = this.debouncedSubscription;
if (debouncedSubscription !== null) {
this.remove(debouncedSubscription);
debouncedSubscription.unsubscribe();
this.debouncedSubscription = null;
}
};
return DebounceTimeSubscriber;
}(Subscriber_1.Subscriber));
function dispatchNext(subscriber) {
subscriber.debouncedNext();
}
//# sourceMappingURL=debounceTime.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"timeout.js","sources":["../../src/add/operator/timeout.ts"],"names":[],"mappings":";;AAAA,4CAA0C"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"scheduleObservable.js","sources":["../../../src/internal/scheduled/scheduleObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,IAAI,iBAAiB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C,CAAC;AAC/E,CAAC;AAFD,4BAEC;AAED;IACE,yBAAoB,QAAoB;QAApB,aAAQ,GAAR,QAAQ,CAAY;IACxC,CAAC;IAED,8BAAI,GAAJ,UAAK,UAAyB,EAAE,MAAW;QACzC,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC5E,CAAC;IACH,sBAAC;AAAD,CAAC,AAPD,IAOC;AAOD;IAAmC,qCAAa;IAC9C,2BAAY,WAA0B,EAAE,QAAoB;QAA5D,YACE,kBAAM,WAAW,CAAC,SAEnB;QADC,KAAI,CAAC,GAAG,CAAC,IAAI,2BAAY,CAAC,QAAQ,CAAC,CAAC,CAAC;;IACvC,CAAC;IACH,wBAAC;AAAD,CAAC,AALD,CAAmC,uBAAU,GAK5C"}

View File

@@ -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.00212,"48":0.00212,"49":0,"50":0.00212,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0.00212,"57":0,"58":0,"59":0,"60":0,"61":0.00212,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.00212,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0.00212,"95":0,"96":0,"97":0.00212,"98":0,"99":0.00425,"100":0,"101":0,"102":0.00637,"103":0.00212,"104":0.0085,"105":0,"106":0.00425,"107":0.00637,"108":0.14231,"109":0.0616,"110":0.00425,"111":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0.00212,"36":0.02124,"37":0.00425,"38":0,"39":0,"40":0.00212,"41":0,"42":0,"43":0.00425,"44":0.00212,"45":0,"46":0.00212,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.00212,"53":0,"54":0.00212,"55":0.00212,"56":0,"57":0.00212,"58":0,"59":0,"60":0.00212,"61":0.00212,"62":0.00425,"63":0.00212,"64":0.00212,"65":0.00212,"66":0,"67":0.00212,"68":0.00212,"69":0.00212,"70":0.00212,"71":0.0085,"72":0.00212,"73":0.00212,"74":0,"75":0.00212,"76":0,"77":0.00212,"78":0.00637,"79":0.00425,"80":0.01062,"81":0.01062,"83":0.00425,"84":0.01487,"85":0.01487,"86":0.01274,"87":0.00425,"88":0.00425,"89":0.00425,"90":0.00212,"91":0.00425,"92":0.00637,"93":0.00425,"94":0.00637,"95":0.00425,"96":0.00425,"97":0.00425,"98":0.00425,"99":0.01062,"100":0.00637,"101":0.00212,"102":0.01487,"103":0.01699,"104":0.0085,"105":0.01274,"106":0.01912,"107":0.04248,"108":1.18944,"109":0.9112,"110":0.00425,"111":0,"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.00212,"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.00212,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0.00212,"60":0.00212,"62":0,"63":0.00637,"64":0.00425,"65":0.00212,"66":0.01487,"67":0.00212,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0.00212,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0.00425,"80":0,"81":0,"82":0,"83":0,"84":0.00212,"85":0.00212,"86":0.00212,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00212,"93":0.00637,"94":0.16567,"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.00212},B:{"12":0.00425,"13":0.00212,"14":0.00425,"15":0.00425,"16":0.01487,"17":0.00425,"18":0.03611,"79":0,"80":0,"81":0.00212,"83":0,"84":0.0085,"85":0,"86":0,"87":0,"88":0,"89":0.00425,"90":0.0085,"91":0,"92":0.01699,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0.00212,"101":0,"102":0.00212,"103":0.01062,"104":0,"105":0.00212,"106":0.00212,"107":0.0085,"108":0.14231,"109":0.11894},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.00212,"15":0,_:"0","3.1":0,"3.2":0,"5.1":0.00637,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.00212,"13.1":0.00212,"14.1":0.00212,"15.1":0.01912,"15.2-15.3":0.01699,"15.4":0.01699,"15.5":0.05098,"15.6":0.1593,"16.0":0.01699,"16.1":0.10832,"16.2":0.17417,"16.3":0.02549},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0.00218,"7.0-7.1":0.05459,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.03494,"10.0-10.2":0,"10.3":0.03494,"11.0-11.2":0.00218,"11.3-11.4":0.00437,"12.0-12.1":0.0262,"12.2-12.5":0.7184,"13.0-13.1":0.00437,"13.2":0.01529,"13.3":0.09608,"13.4-13.7":0.10481,"14.0-14.4":0.452,"14.5-14.8":0.32754,"15.0-15.1":0.45637,"15.2-15.3":0.5328,"15.4":0.62232,"15.5":1.03721,"15.6":2.0635,"16.0":3.34308,"16.1":4.84758,"16.2":4.59428,"16.3":0.38431},P:{"4":0.57704,"5.0-5.4":0.20247,"6.2-6.4":0.15185,"7.2-7.4":0.43531,"8.2":0.03037,"9.2":0.22272,"10.1":0.03037,"11.1-11.2":0.16198,"12.0":0.07086,"13.0":0.11136,"14.0":0.09111,"15.0":0.05062,"16.0":0.31383,"17.0":0.15185,"18.0":0.37457,"19.0":1.16421},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.00586,"4.2-4.3":0.03318,"4.4":0,"4.4.3-4.4.4":0.27132},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0.00212,"10":0,"11":0.1147,"5.5":0},J:{"7":0,"10":0},N:{"10":0,"11":0},R:{_:"0"},M:{"0":0.08664},Q:{"13.1":0},O:{"0":1.36255},H:{"0":0.95443},L:{"0":67.74516},S:{"2.5":0.00788}};

View File

@@ -0,0 +1,15 @@
import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';
import { filter } from './filter';
import { throwIfEmpty } from './throwIfEmpty';
import { defaultIfEmpty } from './defaultIfEmpty';
import { take } from './take';
export function elementAt(index, defaultValue) {
if (index < 0) {
throw new ArgumentOutOfRangeError();
}
const hasDefaultValue = arguments.length >= 2;
return (source) => source.pipe(filter((v, i) => i === index), take(1), hasDefaultValue
? defaultIfEmpty(defaultValue)
: throwIfEmpty(() => new ArgumentOutOfRangeError()));
}
//# sourceMappingURL=elementAt.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"retry.js","sources":["../../src/internal/operators/retry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,4CAA2C;AAmD3C,SAAgB,KAAK,CAAI,KAAkB;IAAlB,sBAAA,EAAA,SAAiB,CAAC;IACzC,OAAO,UAAC,MAAqB,IA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iYarpL+ax6pSj2A450kFcSyGXEO9Gk5ot8TXbJKDPcS+w==","mode":420,"size":1078},"index.js":{"checkedAt":1678887829949,"integrity":"sha512-0vzMnnzvV8KVzDoXAbmmS9vAGrUVT4V6VIJJyL3rmFe0vJOFPssF9xY95rNGAPYh1+iFvXcwFdfIoREQiH5fLA==","mode":420,"size":2678},"README.md":{"checkedAt":1678887829949,"integrity":"sha512-4PFBMrAIXHNJMCPuhJAD2VEW6UBQf11Hcamh1hI0nsc/D9okRWVaoNe0dme2aIsltUVDoNsPzWYfxmd/qvTTBg==","mode":420,"size":1701},"package.json":{"checkedAt":1678887829949,"integrity":"sha512-G3zEFXfVBrZMYdqem/BFkoAXWtrwDu8BC7w3JlSxhmCNjtxohbtMvNw5PeCEf/aRAULNhxGAPL4pxMjYsZmFGA==","mode":420,"size":777}}}

View File

@@ -0,0 +1,51 @@
"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 Subscriber_1 = require("../Subscriber");
function pairwise() {
return function (source) { return source.lift(new PairwiseOperator()); };
}
exports.pairwise = pairwise;
var PairwiseOperator = (function () {
function PairwiseOperator() {
}
PairwiseOperator.prototype.call = function (subscriber, source) {
return source.subscribe(new PairwiseSubscriber(subscriber));
};
return PairwiseOperator;
}());
var PairwiseSubscriber = (function (_super) {
__extends(PairwiseSubscriber, _super);
function PairwiseSubscriber(destination) {
var _this = _super.call(this, destination) || this;
_this.hasPrev = false;
return _this;
}
PairwiseSubscriber.prototype._next = function (value) {
var pair;
if (this.hasPrev) {
pair = [this.prev, value];
}
else {
this.hasPrev = true;
}
this.prev = value;
if (pair) {
this.destination.next(pair);
}
};
return PairwiseSubscriber;
}(Subscriber_1.Subscriber));
//# sourceMappingURL=pairwise.js.map

View File

@@ -0,0 +1,116 @@
import Node from './node.js'
interface DeclarationRaws {
/**
* The space symbols before the node. It also stores `*`
* and `_` symbols before the declaration (IE hack).
*/
before?: string
/**
* The symbols between the property and value for declarations.
*/
between?: string
/**
* The content of the important statement, if it is not just `!important`.
*/
important?: string
/**
* Declaration value with comments.
*/
value: {
value: string
raw: string
}
}
export interface DeclarationProps {
prop: string
value: string
raws?: DeclarationRaws
}
/**
* Represents a CSS declaration.
*
* ```js
* Once (root, { Declaration }) {
* let color = new Declaration({ prop: 'color', value: 'black' })
* root.append(color)
* }
* ```
*
* ```js
* const root = postcss.parse('a { color: black }')
* const decl = root.first.first
* decl.type //=> 'decl'
* decl.toString() //=> ' color: black'
* ```
*/
export default class Declaration extends Node {
type: 'decl'
raws: DeclarationRaws
/**
* The declaration's property name.
*
* ```js
* const root = postcss.parse('a { color: black }')
* const decl = root.first.first
* decl.prop //=> 'color'
* ```
*/
prop: string
/**
* The declarations value.
*
* This value will be cleaned of comments. If the source value contained
* comments, those comments will be available in the `raws` property.
* If you have not changed the value, the result of `decl.toString()`
* will include the original raws value (comments and all).
*
* ```js
* const root = postcss.parse('a { color: black }')
* const decl = root.first.first
* decl.value //=> 'black'
* ```
*/
value: string
/**
* `true` if the declaration has an `!important` annotation.
*
* ```js
* const root = postcss.parse('a { color: black !important; color: red }')
* root.first.first.important //=> true
* root.first.last.important //=> undefined
* ```
*/
important: boolean
/**
* `true` if declaration is declaration of CSS Custom Property
* or Sass variable.
*
* ```js
* const root = postcss.parse(':root { --one: 1 }')
* let one = root.first.first
* one.variable //=> true
* ```
*
* ```js
* const root = postcss.parse('$one: 1')
* let one = root.first
* one.variable //=> true
* ```
*/
variable: boolean
constructor(defaults?: DeclarationProps)
clone(overrides?: Partial<DeclarationProps>): this
cloneBefore(overrides?: Partial<DeclarationProps>): this
cloneAfter(overrides?: Partial<DeclarationProps>): this
}