new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { ObservableInputTuple, OperatorFunction } from '../types';
|
||||
export declare function onErrorResumeNextWith<T, A extends readonly unknown[]>(sources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;
|
||||
export declare function onErrorResumeNextWith<T, A extends readonly unknown[]>(...sources: [...ObservableInputTuple<A>]): OperatorFunction<T, T | A[number]>;
|
||||
/**
|
||||
* @deprecated Renamed. Use {@link onErrorResumeNextWith} instead. Will be removed in v8.
|
||||
*/
|
||||
export declare const onErrorResumeNext: typeof onErrorResumeNextWith;
|
||||
//# sourceMappingURL=onErrorResumeNextWith.d.ts.map
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"parse-github-url","version":"1.0.2","files":{"package.json":{"checkedAt":1678883669949,"integrity":"sha512-cnjbz/ffimVXWB4Ha9utXoOhulBgK1mSmKfQWwpvmbJoRQqrCnuzGlJ3Gdt4QDUMrWsrhSuDwqc69CpovNITYQ==","mode":420,"size":1662},"cli.js":{"checkedAt":1678883669949,"integrity":"sha512-9Hx50o7TqAqCAif1BQ+ruz6x8Tl4mnRF9/5kpc2JWbeLE2kK2GXrhNQK7zSx9T3kXwjvQn6tEjV2+1pq9bKmsw==","mode":493,"size":375},"index.js":{"checkedAt":1678883669949,"integrity":"sha512-wWKUCZxRHl402KpjivF9u3opSKNDEfG4mTgUewwZ+nfxelWA2C7TmzWXS9OczAdF2Z8tCrI2x+VJwbS3A66Gvw==","mode":420,"size":3303},"LICENSE":{"checkedAt":1678883669949,"integrity":"sha512-IWoaw2rNySm6PLN4i/XDKs07noaIUnbECrAxwPBdCPY15HJEJu48w05F9usVXOf74Q5yGArE20iy3RdJVeLivQ==","mode":420,"size":1088},"README.md":{"checkedAt":1678883669950,"integrity":"sha512-Z4az1DuBDgLMw5HJDjXUgHqa0rsWxQIpaFNKE70xB8cgqm9QtETZXLF/5UwtN5UeD2iSbcl3bGW74jRJPx5iFA==","mode":420,"size":20983}}}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"name": "config-chain",
|
||||
"version": "1.1.13",
|
||||
"license": {
|
||||
"type": "MIT",
|
||||
"url": "https://raw.githubusercontent.com/dominictarr/config-chain/master/LICENCE"
|
||||
},
|
||||
"description": "HANDLE CONFIGURATION ONCE AND FOR ALL",
|
||||
"homepage": "http://github.com/dominictarr/config-chain",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dominictarr/config-chain.git"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"dependencies": {
|
||||
"proto-list": "~1.2.1",
|
||||
"ini": "^1.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tap": "0.3.0"
|
||||
},
|
||||
"author": "Dominic Tarr <dominic.tarr@gmail.com> (http://dominictarr.com)",
|
||||
"scripts": {
|
||||
"test": "tap test/*"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
module.exports = function (x) {
|
||||
const colonIndex = x.indexOf(':');
|
||||
if (colonIndex === -1) {
|
||||
return normalize(x);
|
||||
}
|
||||
const firstPart = x.substr(0, colonIndex);
|
||||
const secondPart = x.substr(colonIndex + 1);
|
||||
return `${normalize(firstPart)}:${normalize(secondPart)}`;
|
||||
}
|
||||
|
||||
function normalize (s) {
|
||||
s = s.toLowerCase();
|
||||
if (s === '_authtoken') return '_authToken';
|
||||
let r = s[0];
|
||||
for (let i = 1; i < s.length; i++) {
|
||||
r += s[i] === '_' ? '-' : s[i];
|
||||
}
|
||||
return r;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
var isString = require('../');
|
||||
var hasToStringTag = require('has-tostringtag/shams')();
|
||||
|
||||
test('not Strings', function (t) {
|
||||
t.notOk(isString(), 'undefined is not String');
|
||||
t.notOk(isString(null), 'null is not String');
|
||||
t.notOk(isString(false), 'false is not String');
|
||||
t.notOk(isString(true), 'true is not String');
|
||||
t.notOk(isString([]), 'array is not String');
|
||||
t.notOk(isString({}), 'object is not String');
|
||||
t.notOk(isString(function () {}), 'function is not String');
|
||||
t.notOk(isString(/a/g), 'regex literal is not String');
|
||||
t.notOk(isString(new RegExp('a', 'g')), 'regex object is not String');
|
||||
t.notOk(isString(new Date()), 'new Date() is not String');
|
||||
t.notOk(isString(42), 'number is not String');
|
||||
t.notOk(isString(Object(42)), 'number object is not String');
|
||||
t.notOk(isString(NaN), 'NaN is not String');
|
||||
t.notOk(isString(Infinity), 'Infinity is not String');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('@@toStringTag', { skip: !hasToStringTag }, function (t) {
|
||||
var fakeString = {
|
||||
toString: function () { return '7'; },
|
||||
valueOf: function () { return '42'; }
|
||||
};
|
||||
fakeString[Symbol.toStringTag] = 'String';
|
||||
t.notOk(isString(fakeString), 'fake String with @@toStringTag "String" is not String');
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('Strings', function (t) {
|
||||
t.ok(isString('foo'), 'string primitive is String');
|
||||
t.ok(isString(Object('foo')), 'string object is String');
|
||||
t.end();
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
export var subscribeToArray = function (array) { return function (subscriber) {
|
||||
for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {
|
||||
subscriber.next(array[i]);
|
||||
}
|
||||
subscriber.complete();
|
||||
}; };
|
||||
//# sourceMappingURL=subscribeToArray.js.map
|
||||
@@ -0,0 +1,18 @@
|
||||
Copyright © 2011-2015 Paul Vorbach <paul@vorba.ch>
|
||||
|
||||
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, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
var __read = (this && this.__read) || function (o, n) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
||||
if (!m) return o;
|
||||
var i = m.call(o), r, ar = [], e;
|
||||
try {
|
||||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
||||
}
|
||||
catch (error) { e = { error: error }; }
|
||||
finally {
|
||||
try {
|
||||
if (r && !r.done && (m = i["return"])) m.call(i);
|
||||
}
|
||||
finally { if (e) throw e.error; }
|
||||
}
|
||||
return ar;
|
||||
};
|
||||
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
||||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
||||
to[j] = from[i];
|
||||
return to;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.race = void 0;
|
||||
var argsOrArgArray_1 = require("../util/argsOrArgArray");
|
||||
var raceWith_1 = require("./raceWith");
|
||||
function race() {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
return raceWith_1.raceWith.apply(void 0, __spreadArray([], __read(argsOrArgArray_1.argsOrArgArray(args))));
|
||||
}
|
||||
exports.race = race;
|
||||
//# sourceMappingURL=race.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* Run update and print output to terminal.
|
||||
*/
|
||||
declare function updateDb(print?: (str: string) => void): Promise<void>
|
||||
|
||||
export = updateDb
|
||||
@@ -0,0 +1,16 @@
|
||||
var copyObject = require('./_copyObject'),
|
||||
getSymbols = require('./_getSymbols');
|
||||
|
||||
/**
|
||||
* Copies own symbols of `source` to `object`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} source The object to copy symbols from.
|
||||
* @param {Object} [object={}] The object to copy symbols to.
|
||||
* @returns {Object} Returns `object`.
|
||||
*/
|
||||
function copySymbols(source, object) {
|
||||
return copyObject(source, getSymbols(source), object);
|
||||
}
|
||||
|
||||
module.exports = copySymbols;
|
||||
@@ -0,0 +1,73 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.retry = void 0;
|
||||
var lift_1 = require("../util/lift");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
var identity_1 = require("../util/identity");
|
||||
var timer_1 = require("../observable/timer");
|
||||
var innerFrom_1 = require("../observable/innerFrom");
|
||||
function retry(configOrCount) {
|
||||
if (configOrCount === void 0) { configOrCount = Infinity; }
|
||||
var config;
|
||||
if (configOrCount && typeof configOrCount === 'object') {
|
||||
config = configOrCount;
|
||||
}
|
||||
else {
|
||||
config = {
|
||||
count: configOrCount,
|
||||
};
|
||||
}
|
||||
var _a = config.count, count = _a === void 0 ? Infinity : _a, delay = config.delay, _b = config.resetOnSuccess, resetOnSuccess = _b === void 0 ? false : _b;
|
||||
return count <= 0
|
||||
? identity_1.identity
|
||||
: lift_1.operate(function (source, subscriber) {
|
||||
var soFar = 0;
|
||||
var innerSub;
|
||||
var subscribeForRetry = function () {
|
||||
var syncUnsub = false;
|
||||
innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
|
||||
if (resetOnSuccess) {
|
||||
soFar = 0;
|
||||
}
|
||||
subscriber.next(value);
|
||||
}, undefined, function (err) {
|
||||
if (soFar++ < count) {
|
||||
var resub_1 = function () {
|
||||
if (innerSub) {
|
||||
innerSub.unsubscribe();
|
||||
innerSub = null;
|
||||
subscribeForRetry();
|
||||
}
|
||||
else {
|
||||
syncUnsub = true;
|
||||
}
|
||||
};
|
||||
if (delay != null) {
|
||||
var notifier = typeof delay === 'number' ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(err, soFar));
|
||||
var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
|
||||
notifierSubscriber_1.unsubscribe();
|
||||
resub_1();
|
||||
}, function () {
|
||||
subscriber.complete();
|
||||
});
|
||||
notifier.subscribe(notifierSubscriber_1);
|
||||
}
|
||||
else {
|
||||
resub_1();
|
||||
}
|
||||
}
|
||||
else {
|
||||
subscriber.error(err);
|
||||
}
|
||||
}));
|
||||
if (syncUnsub) {
|
||||
innerSub.unsubscribe();
|
||||
innerSub = null;
|
||||
subscribeForRetry();
|
||||
}
|
||||
};
|
||||
subscribeForRetry();
|
||||
});
|
||||
}
|
||||
exports.retry = retry;
|
||||
//# sourceMappingURL=retry.js.map
|
||||
@@ -0,0 +1,27 @@
|
||||
# is-yarn-global
|
||||
|
||||
[](https://www.npmjs.com/package/is-yarn-global)
|
||||
[](https://github.com/LitoMore/is-yarn-global/blob/master/LICENSE)
|
||||
[](https://github.com/xojs/xo)
|
||||
|
||||
Check if installed by yarn globally without any `fs` calls
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
$ npm install is-yarn-global
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Just require it in your package.
|
||||
|
||||
```javascript
|
||||
import isYarnGlobal from 'is-yarn-global';
|
||||
|
||||
console.log(isYarnGlobal());
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
MIT © [LitoMore](https://github.com/LitoMore)
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"executeSchedule.js","sourceRoot":"","sources":["../../../../src/internal/util/executeSchedule.ts"],"names":[],"mappings":"AAkBA,MAAM,UAAU,eAAe,CAC7B,kBAAgC,EAChC,SAAwB,EACxB,IAAgB,EAChB,KAAS,EACT,MAAc;IADd,sBAAA,EAAA,SAAS;IACT,uBAAA,EAAA,cAAc;IAEd,IAAM,oBAAoB,GAAG,SAAS,CAAC,QAAQ,CAAC;QAC9C,IAAI,EAAE,CAAC;QACP,IAAI,MAAM,EAAE;YACV,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;SACpD;aAAM;YACL,IAAI,CAAC,WAAW,EAAE,CAAC;SACpB;IACH,CAAC,EAAE,KAAK,CAAC,CAAC;IAEV,kBAAkB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAE7C,IAAI,CAAC,MAAM,EAAE;QAKX,OAAO,oBAAoB,CAAC;KAC7B;AACH,CAAC"}
|
||||
@@ -0,0 +1,26 @@
|
||||
import { operate } from '../util/lift';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
export function refCount() {
|
||||
return operate(function (source, subscriber) {
|
||||
var connection = null;
|
||||
source._refCount++;
|
||||
var refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, function () {
|
||||
if (!source || source._refCount <= 0 || 0 < --source._refCount) {
|
||||
connection = null;
|
||||
return;
|
||||
}
|
||||
var sharedConnection = source._connection;
|
||||
var conn = connection;
|
||||
connection = null;
|
||||
if (sharedConnection && (!conn || sharedConnection === conn)) {
|
||||
sharedConnection.unsubscribe();
|
||||
}
|
||||
subscriber.unsubscribe();
|
||||
});
|
||||
source.subscribe(refCounter);
|
||||
if (!refCounter.closed) {
|
||||
connection = source.connect();
|
||||
}
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=refCount.js.map
|
||||
@@ -0,0 +1,62 @@
|
||||
import { mergeAll } from './mergeAll';
|
||||
import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';
|
||||
|
||||
/**
|
||||
* Converts a higher-order Observable into a first-order Observable by
|
||||
* concatenating the inner Observables in order.
|
||||
*
|
||||
* <span class="informal">Flattens an Observable-of-Observables by putting one
|
||||
* inner Observable after the other.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* Joins every Observable emitted by the source (a higher-order Observable), in
|
||||
* a serial fashion. It subscribes to each inner Observable only after the
|
||||
* previous inner Observable has completed, and merges all of their values into
|
||||
* the returned observable.
|
||||
*
|
||||
* __Warning:__ If the source Observable emits Observables quickly and
|
||||
* endlessly, and the inner Observables it emits generally complete slower than
|
||||
* the source emits, you can run into memory issues as the incoming Observables
|
||||
* collect in an unbounded buffer.
|
||||
*
|
||||
* Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set
|
||||
* to `1`.
|
||||
*
|
||||
* ## Example
|
||||
*
|
||||
* For each click event, tick every second from 0 to 3, with no concurrency
|
||||
*
|
||||
* ```ts
|
||||
* import { fromEvent, map, interval, take, concatAll } from 'rxjs';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const higherOrder = clicks.pipe(
|
||||
* map(() => interval(1000).pipe(take(4)))
|
||||
* );
|
||||
* const firstOrder = higherOrder.pipe(concatAll());
|
||||
* firstOrder.subscribe(x => console.log(x));
|
||||
*
|
||||
* // Results in the following:
|
||||
* // (results are not concurrent)
|
||||
* // For every click on the "document" it will emit values 0 to 3 spaced
|
||||
* // on a 1000ms interval
|
||||
* // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3
|
||||
* ```
|
||||
*
|
||||
* @see {@link combineLatestAll}
|
||||
* @see {@link concat}
|
||||
* @see {@link concatMap}
|
||||
* @see {@link concatMapTo}
|
||||
* @see {@link exhaustAll}
|
||||
* @see {@link mergeAll}
|
||||
* @see {@link switchAll}
|
||||
* @see {@link switchMap}
|
||||
* @see {@link zipAll}
|
||||
*
|
||||
* @return A function that returns an Observable emitting values from all the
|
||||
* inner Observables concatenated.
|
||||
*/
|
||||
export function concatAll<O extends ObservableInput<any>>(): OperatorFunction<O, ObservedValueOf<O>> {
|
||||
return mergeAll(1);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { Octokit as Core } from "@octokit/core";
|
||||
import { requestLog } from "@octokit/plugin-request-log";
|
||||
import { paginateRest } from "@octokit/plugin-paginate-rest";
|
||||
import { legacyRestEndpointMethods } from "@octokit/plugin-rest-endpoint-methods";
|
||||
import { VERSION } from "./version";
|
||||
export const Octokit = Core.plugin(requestLog, legacyRestEndpointMethods, paginateRest).defaults({
|
||||
userAgent: `octokit-rest.js/${VERSION}`,
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('isNative', require('../isNative'), require('./_falseOptions'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Denis Malinochkin
|
||||
|
||||
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,38 @@
|
||||
import defaultConfig from '../../stubs/defaultConfig.stub.js'
|
||||
import { flagEnabled } from '../featureFlags'
|
||||
|
||||
export default function getAllConfigs(config) {
|
||||
const configs = (config?.presets ?? [defaultConfig])
|
||||
.slice()
|
||||
.reverse()
|
||||
.flatMap((preset) => getAllConfigs(preset instanceof Function ? preset() : preset))
|
||||
|
||||
const features = {
|
||||
// Add experimental configs here...
|
||||
respectDefaultRingColorOpacity: {
|
||||
theme: {
|
||||
ringColor: ({ theme }) => ({
|
||||
DEFAULT: '#3b82f67f',
|
||||
...theme('colors'),
|
||||
}),
|
||||
},
|
||||
},
|
||||
|
||||
disableColorOpacityUtilitiesByDefault: {
|
||||
corePlugins: {
|
||||
backgroundOpacity: false,
|
||||
borderOpacity: false,
|
||||
divideOpacity: false,
|
||||
placeholderOpacity: false,
|
||||
ringOpacity: false,
|
||||
textOpacity: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
const experimentals = Object.keys(features)
|
||||
.filter((feature) => flagEnabled(config, feature))
|
||||
.map((feature) => features[feature])
|
||||
|
||||
return [config, ...experimentals, ...configs]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.0.4\";\n","import { VERSION } from \"./version\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function requestLog(octokit) {\n octokit.hook.wrap(\"request\", (request, options) => {\n octokit.log.debug(\"request\", options);\n const start = Date.now();\n const requestOptions = octokit.request.endpoint.parse(options);\n const path = requestOptions.url.replace(options.baseUrl, \"\");\n return request(options)\n .then((response) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${response.status} in ${Date.now() - start}ms`);\n return response;\n })\n .catch((error) => {\n octokit.log.info(`${requestOptions.method} ${path} - ${error.status} in ${Date.now() - start}ms`);\n throw error;\n });\n });\n}\nrequestLog.VERSION = VERSION;\n"],"names":[],"mappings":"AAAO,MAAM,OAAO,GAAG,mBAAmB;;ACC1C;AACA;AACA;AACA;AACA,AAAO,SAAS,UAAU,CAAC,OAAO,EAAE;AACpC,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK;AACvD,QAAQ,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC9C,QAAQ,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;AACjC,QAAQ,MAAM,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACvE,QAAQ,MAAM,IAAI,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;AACrE,QAAQ,OAAO,OAAO,CAAC,OAAO,CAAC;AAC/B,aAAa,IAAI,CAAC,CAAC,QAAQ,KAAK;AAChC,YAAY,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AACjH,YAAY,OAAO,QAAQ,CAAC;AAC5B,SAAS,CAAC;AACV,aAAa,KAAK,CAAC,CAAC,KAAK,KAAK;AAC9B,YAAY,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AAC9G,YAAY,MAAM,KAAK,CAAC;AACxB,SAAS,CAAC,CAAC;AACX,KAAK,CAAC,CAAC;AACP,CAAC;AACD,UAAU,CAAC,OAAO,GAAG,OAAO,CAAC;;;;"}
|
||||
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.take = void 0;
|
||||
var empty_1 = require("../observable/empty");
|
||||
var lift_1 = require("../util/lift");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
function take(count) {
|
||||
return count <= 0
|
||||
?
|
||||
function () { return empty_1.EMPTY; }
|
||||
: lift_1.operate(function (source, subscriber) {
|
||||
var seen = 0;
|
||||
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
|
||||
if (++seen <= count) {
|
||||
subscriber.next(value);
|
||||
if (count <= seen) {
|
||||
subscriber.complete();
|
||||
}
|
||||
}
|
||||
}));
|
||||
});
|
||||
}
|
||||
exports.take = take;
|
||||
//# sourceMappingURL=take.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
import { scheduleAsyncIterable } from './scheduleAsyncIterable';
|
||||
import { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';
|
||||
export function scheduleReadableStreamLike(input, scheduler) {
|
||||
return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);
|
||||
}
|
||||
//# sourceMappingURL=scheduleReadableStreamLike.js.map
|
||||
@@ -0,0 +1,18 @@
|
||||
import { SubscriptionLog } from './SubscriptionLog';
|
||||
var SubscriptionLoggable = (function () {
|
||||
function SubscriptionLoggable() {
|
||||
this.subscriptions = [];
|
||||
}
|
||||
SubscriptionLoggable.prototype.logSubscribedFrame = function () {
|
||||
this.subscriptions.push(new SubscriptionLog(this.scheduler.now()));
|
||||
return this.subscriptions.length - 1;
|
||||
};
|
||||
SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) {
|
||||
var subscriptionLogs = this.subscriptions;
|
||||
var oldSubscriptionLog = subscriptionLogs[index];
|
||||
subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now());
|
||||
};
|
||||
return SubscriptionLoggable;
|
||||
}());
|
||||
export { SubscriptionLoggable };
|
||||
//# sourceMappingURL=SubscriptionLoggable.js.map
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"2":"C K L G M N O","1026":"P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"2":"DC tB I v J D E F A B C K L G M N O w g x EC FC","322":"0 1 2 3 4 5 6 7 8 9 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 h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB"},D:{"2":"0 I v J D E F A B C K L G M N O w g x y z","164":"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 h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC"},E:{"2":"I v J D E F A B C K L HC zB IC JC KC LC 0B qB rB 1B","2084":"G MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC"},F:{"2":"0 1 2 F B C G M N O w g x y z PC QC RC SC qB AC TC rB","1026":"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 h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e"},G:{"2":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC","2084":"mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},H:{"2":"oC"},I:{"2":"tB I f pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"2":"A B C qB AC rB","164":"h"},L:{"164":"H"},M:{"2":"H"},N:{"2":"A B"},O:{"164":"vC"},P:{"164":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"164":"1B"},R:{"164":"9C"},S:{"322":"AD BD"}},B:7,C:"Speech Recognition API"};
|
||||
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
|
||||
var isFunction = require("../function/is-function");
|
||||
|
||||
module.exports = function (executor) {
|
||||
var Constructor;
|
||||
if (isFunction(this)) {
|
||||
Constructor = this;
|
||||
} else if (typeof Promise === "function") {
|
||||
Constructor = Promise;
|
||||
} else {
|
||||
throw new TypeError("Could not resolve Promise constuctor");
|
||||
}
|
||||
|
||||
var lazyThen;
|
||||
var promise = new Constructor(function (resolve, reject) {
|
||||
lazyThen = function (onSuccess, onFailure) {
|
||||
if (!hasOwnProperty.call(this, "then")) {
|
||||
// Sanity check
|
||||
throw new Error("Unexpected (inherited) lazy then invocation");
|
||||
}
|
||||
|
||||
try { executor(resolve, reject); }
|
||||
catch (reason) { reject(reason); }
|
||||
delete this.then;
|
||||
return this.then(onSuccess, onFailure);
|
||||
};
|
||||
});
|
||||
|
||||
return Object.defineProperty(promise, "then", {
|
||||
configurable: true,
|
||||
writable: true,
|
||||
value: lazyThen
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,25 @@
|
||||
import { cubicOut } from '../easing/index.mjs';
|
||||
import { is_function } from '../internal/index.mjs';
|
||||
|
||||
function flip(node, { from, to }, params = {}) {
|
||||
const style = getComputedStyle(node);
|
||||
const transform = style.transform === 'none' ? '' : style.transform;
|
||||
const [ox, oy] = style.transformOrigin.split(' ').map(parseFloat);
|
||||
const dx = (from.left + from.width * ox / to.width) - (to.left + ox);
|
||||
const dy = (from.top + from.height * oy / to.height) - (to.top + oy);
|
||||
const { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;
|
||||
return {
|
||||
delay,
|
||||
duration: is_function(duration) ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,
|
||||
easing,
|
||||
css: (t, u) => {
|
||||
const x = u * dx;
|
||||
const y = u * dy;
|
||||
const sx = t + u * from.width / to.width;
|
||||
const sy = t + u * from.height / to.height;
|
||||
return `transform: ${transform} translate(${x}px, ${y}px) scale(${sx}, ${sy});`;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export { flip };
|
||||
@@ -0,0 +1,20 @@
|
||||
import { EMPTY } from '../observable/empty';
|
||||
import { operate } from '../util/lift';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
export function take(count) {
|
||||
return count <= 0
|
||||
?
|
||||
() => EMPTY
|
||||
: operate((source, subscriber) => {
|
||||
let seen = 0;
|
||||
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||
if (++seen <= count) {
|
||||
subscriber.next(value);
|
||||
if (count <= seen) {
|
||||
subscriber.complete();
|
||||
}
|
||||
}
|
||||
}));
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=take.js.map
|
||||
@@ -0,0 +1,46 @@
|
||||
/*!
|
||||
* word-wrap <https://github.com/jonschlinkert/word-wrap>
|
||||
*
|
||||
* Copyright (c) 2014-2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
module.exports = function(str, options) {
|
||||
options = options || {};
|
||||
if (str == null) {
|
||||
return str;
|
||||
}
|
||||
|
||||
var width = options.width || 50;
|
||||
var indent = (typeof options.indent === 'string')
|
||||
? options.indent
|
||||
: ' ';
|
||||
|
||||
var newline = options.newline || '\n' + indent;
|
||||
var escape = typeof options.escape === 'function'
|
||||
? options.escape
|
||||
: identity;
|
||||
|
||||
var regexString = '.{1,' + width + '}';
|
||||
if (options.cut !== true) {
|
||||
regexString += '([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)';
|
||||
}
|
||||
|
||||
var re = new RegExp(regexString, 'g');
|
||||
var lines = str.match(re) || [];
|
||||
var result = indent + lines.map(function(line) {
|
||||
if (line.slice(-1) === '\n') {
|
||||
line = line.slice(0, line.length - 1);
|
||||
}
|
||||
return escape(line);
|
||||
}).join(newline);
|
||||
|
||||
if (options.trim === true) {
|
||||
result = result.replace(/[ \t]*$/gm, '');
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
function identity(str) {
|
||||
return str;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,17 @@
|
||||
import { SvelteComponentTyped } from "svelte";
|
||||
import type { DataHandler } from './core';
|
||||
declare const __propDef: {
|
||||
props: {
|
||||
handler: DataHandler;
|
||||
};
|
||||
events: {
|
||||
[evt: string]: CustomEvent<any>;
|
||||
};
|
||||
slots: {};
|
||||
};
|
||||
export type RowsPerPageProps = typeof __propDef.props;
|
||||
export type RowsPerPageEvents = typeof __propDef.events;
|
||||
export type RowsPerPageSlots = typeof __propDef.slots;
|
||||
export default class RowsPerPage extends SvelteComponentTyped<RowsPerPageProps, RowsPerPageEvents, RowsPerPageSlots> {
|
||||
}
|
||||
export {};
|
||||
@@ -0,0 +1,19 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
|
||||
var Type = require('../Type');
|
||||
|
||||
var NumberAdd = require('./add');
|
||||
var NumberUnaryMinus = require('./unaryMinus');
|
||||
|
||||
// https://262.ecma-international.org/12.0/#sec-numeric-types-number-subtract
|
||||
|
||||
module.exports = function NumberSubtract(x, y) {
|
||||
if (Type(x) !== 'Number' || Type(y) !== 'Number') {
|
||||
throw new $TypeError('Assertion failed: `x` and `y` arguments must be Numbers');
|
||||
}
|
||||
return NumberAdd(x, NumberUnaryMinus(y));
|
||||
};
|
||||
@@ -0,0 +1,35 @@
|
||||
/** Used as references for various `Number` constants. */
|
||||
var MAX_SAFE_INTEGER = 9007199254740991;
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeFloor = Math.floor;
|
||||
|
||||
/**
|
||||
* The base implementation of `_.repeat` which doesn't coerce arguments.
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to repeat.
|
||||
* @param {number} n The number of times to repeat the string.
|
||||
* @returns {string} Returns the repeated string.
|
||||
*/
|
||||
function baseRepeat(string, n) {
|
||||
var result = '';
|
||||
if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
|
||||
return result;
|
||||
}
|
||||
// Leverage the exponentiation by squaring algorithm for a faster repeat.
|
||||
// See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.
|
||||
do {
|
||||
if (n % 2) {
|
||||
result += string;
|
||||
}
|
||||
n = nativeFloor(n / 2);
|
||||
if (n) {
|
||||
string += string;
|
||||
}
|
||||
} while (n);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseRepeat;
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"name": "relateurl",
|
||||
"description": "Minify URLs by converting them from absolute to relative.",
|
||||
"version": "0.2.7",
|
||||
"license": "MIT",
|
||||
"homepage": "https://github.com/stevenvachon/relateurl",
|
||||
"author": {
|
||||
"name": "Steven Vachon",
|
||||
"email": "contact@svachon.com",
|
||||
"url": "http://www.svachon.com/"
|
||||
},
|
||||
"main": "lib",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/stevenvachon/relateurl.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/stevenvachon/relateurl/issues"
|
||||
},
|
||||
"devDependencies": {
|
||||
"browserify": "^13.0.1",
|
||||
"chai": "^3.5.0",
|
||||
"mocha": "^2.5.3",
|
||||
"uglify-js": "^2.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
},
|
||||
"scripts": {
|
||||
"browserify": "browserify lib/ --standalone RelateUrl | uglifyjs --compress --mangle -o relateurl-browser.js",
|
||||
"test": "mocha test/ --bail --reporter spec --check-leaks"
|
||||
},
|
||||
"files": [
|
||||
"lib",
|
||||
"license"
|
||||
],
|
||||
"keywords": [
|
||||
"uri",
|
||||
"url",
|
||||
"minifier",
|
||||
"minify",
|
||||
"lint",
|
||||
"relative",
|
||||
"absolute"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('values', require('../values'), require('./_falseOptions'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1 @@
|
||||
{{json releases}}
|
||||
@@ -0,0 +1,4 @@
|
||||
function isClientRequest(clientRequest) {
|
||||
return clientRequest.writable && !clientRequest.writableEnded;
|
||||
}
|
||||
export default isClientRequest;
|
||||
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
var isCallable = require("../object/is-callable")
|
||||
, value = require("../object/valid-value")
|
||||
, slice = Array.prototype.slice
|
||||
, apply = Function.prototype.apply;
|
||||
|
||||
module.exports = function (name /*, …args*/) {
|
||||
var args = slice.call(arguments, 1), isFn = isCallable(name);
|
||||
return function (obj) {
|
||||
value(obj);
|
||||
return apply.call(isFn ? name : obj[name], obj, args.concat(slice.call(arguments, 1)));
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,69 @@
|
||||
'use strict';
|
||||
|
||||
var parse = require('../');
|
||||
var test = require('tape');
|
||||
|
||||
test('numeric short args', function (t) {
|
||||
t.plan(2);
|
||||
t.deepEqual(parse(['-n123']), { n: 123, _: [] });
|
||||
t.deepEqual(
|
||||
parse(['-123', '456']),
|
||||
{ 1: true, 2: true, 3: 456, _: [] }
|
||||
);
|
||||
});
|
||||
|
||||
test('short', function (t) {
|
||||
t.deepEqual(
|
||||
parse(['-b']),
|
||||
{ b: true, _: [] },
|
||||
'short boolean'
|
||||
);
|
||||
t.deepEqual(
|
||||
parse(['foo', 'bar', 'baz']),
|
||||
{ _: ['foo', 'bar', 'baz'] },
|
||||
'bare'
|
||||
);
|
||||
t.deepEqual(
|
||||
parse(['-cats']),
|
||||
{ c: true, a: true, t: true, s: true, _: [] },
|
||||
'group'
|
||||
);
|
||||
t.deepEqual(
|
||||
parse(['-cats', 'meow']),
|
||||
{ c: true, a: true, t: true, s: 'meow', _: [] },
|
||||
'short group next'
|
||||
);
|
||||
t.deepEqual(
|
||||
parse(['-h', 'localhost']),
|
||||
{ h: 'localhost', _: [] },
|
||||
'short capture'
|
||||
);
|
||||
t.deepEqual(
|
||||
parse(['-h', 'localhost', '-p', '555']),
|
||||
{ h: 'localhost', p: 555, _: [] },
|
||||
'short captures'
|
||||
);
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('mixed short bool and capture', function (t) {
|
||||
t.same(
|
||||
parse(['-h', 'localhost', '-fp', '555', 'script.js']),
|
||||
{
|
||||
f: true, p: 555, h: 'localhost',
|
||||
_: ['script.js'],
|
||||
}
|
||||
);
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('short and long', function (t) {
|
||||
t.deepEqual(
|
||||
parse(['-h', 'localhost', '-fp', '555', 'script.js']),
|
||||
{
|
||||
f: true, p: 555, h: 'localhost',
|
||||
_: ['script.js'],
|
||||
}
|
||||
);
|
||||
t.end();
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bufferCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferCount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,qCAAuC;AACvC,2DAAgE;AAChE,+CAA8C;AAqD9C,SAAgB,WAAW,CAAI,UAAkB,EAAE,gBAAsC;IAAtC,iCAAA,EAAA,uBAAsC;IAGvF,gBAAgB,GAAG,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,GAAI,UAAU,CAAC;IAElD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,OAAO,GAAU,EAAE,CAAC;QACxB,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;;YACJ,IAAI,MAAM,GAAiB,IAAI,CAAC;YAKhC,IAAI,KAAK,EAAE,GAAG,gBAAiB,KAAK,CAAC,EAAE;gBACrC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aAClB;;gBAGD,KAAqB,IAAA,YAAA,SAAA,OAAO,CAAA,gCAAA,qDAAE;oBAAzB,IAAM,MAAM,oBAAA;oBACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAMnB,IAAI,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE;wBAC/B,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAC;wBACtB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;qBACrB;iBACF;;;;;;;;;YAED,IAAI,MAAM,EAAE;;oBAIV,KAAqB,IAAA,WAAA,SAAA,MAAM,CAAA,8BAAA,kDAAE;wBAAxB,IAAM,MAAM,mBAAA;wBACf,qBAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;wBAC3B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;qBACzB;;;;;;;;;aACF;QACH,CAAC,EACD;;;gBAGE,KAAqB,IAAA,YAAA,SAAA,OAAO,CAAA,gCAAA,qDAAE;oBAAzB,IAAM,MAAM,oBAAA;oBACf,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;iBACzB;;;;;;;;;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EAED,SAAS,EACT;YAEE,OAAO,GAAG,IAAK,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA/DD,kCA+DC"}
|
||||
@@ -0,0 +1,30 @@
|
||||
var createToPairs = require('./_createToPairs'),
|
||||
keys = require('./keys');
|
||||
|
||||
/**
|
||||
* Creates an array of own enumerable string keyed-value pairs for `object`
|
||||
* which can be consumed by `_.fromPairs`. If `object` is a map or set, its
|
||||
* entries are returned.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @alias entries
|
||||
* @category Object
|
||||
* @param {Object} object The object to query.
|
||||
* @returns {Array} Returns the key-value pairs.
|
||||
* @example
|
||||
*
|
||||
* function Foo() {
|
||||
* this.a = 1;
|
||||
* this.b = 2;
|
||||
* }
|
||||
*
|
||||
* Foo.prototype.c = 3;
|
||||
*
|
||||
* _.toPairs(new Foo);
|
||||
* // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
|
||||
*/
|
||||
var toPairs = createToPairs(keys);
|
||||
|
||||
module.exports = toPairs;
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"is-regex","version":"1.1.4","files":{".editorconfig":{"checkedAt":1678883671533,"integrity":"sha512-gD3iQtgC7ZgFS97pyZqR0FPjMNyRAfat8dipbSL28iiJ6B1MP5dDeDYeEnP5sYMTz8whQIk3E5vltk2kcyJJEQ==","mode":420,"size":286},".eslintignore":{"checkedAt":1678883671537,"integrity":"sha512-VLhEcqup3IHXtZJPt07ZYoA9JNRjy1jhU/NU41Yw4E8mEyea/z+6bw5hL3lhCO09pji9E0BH2Q3aDXdc3i9zBg==","mode":420,"size":10},".nycrc":{"checkedAt":1678883671619,"integrity":"sha512-aLxN7EM7vuJGE3vcz8CsQow+RuaR3thZWTHupkykz/8WOXUd8ayX5goRxPe3MCnZ0VVDkuEk8UBkk3NodRfMOg==","mode":420,"size":159},".eslintrc":{"checkedAt":1678883671697,"integrity":"sha512-uIiKHFyBo46Uy2T23h+7Ooah0hEcRt+gPxrylchCRT8hdS4pmMjK3r2DJFzDItk/pgb108juNKsq+yh5HrxLtQ==","mode":420,"size":221},"index.js":{"checkedAt":1678883671697,"integrity":"sha512-tcfpJaFHZhkfRxkhgAUqVofPKMoPA79eIkF8X2QqwiGacOg5eT4UyXKwP+ljzstKWx9izRbnJQDXDFmVTn5Tqw==","mode":420,"size":1405},"LICENSE":{"checkedAt":1678883671697,"integrity":"sha512-VAafw6n4N41XvAsR+n+iEdr0zTIENa8hymUUtLGRZtNAEzrKNuwlPdG/4XVTK8bgjhOLpy2sORJp/QqopRK+Yg==","mode":420,"size":1081},"test/index.js":{"checkedAt":1678883671697,"integrity":"sha512-iV7RduTJdJBRzWQAhoPXJnAQ5bpVxflf2CJiBLALIVOffnBiZmbLt9ywbTxnrvmEqE7YPFINI4XzaUESmVwU6w==","mode":420,"size":3009},"package.json":{"checkedAt":1678883671697,"integrity":"sha512-Ynu7M2DkDzSPOoq4LhiI7EyihlEHhNRfX//jpxFu8xKFrmpSDsyiQR+MIU7Q7zTzRXLdSz2DhkxixNp2WLv02Q==","mode":420,"size":2246},"CHANGELOG.md":{"checkedAt":1678883671708,"integrity":"sha512-b3Cgaa5F/5jPhdoA0ynJiTg0t0Sy0+OWov9kkyNKiEwixcluUsKOwXwNPnSr/QG7aS+5OPtc+d+c/bLE1HetOg==","mode":420,"size":19870},"README.md":{"checkedAt":1678883671708,"integrity":"sha512-purSVT2RnHOcDGWsYkciXKWMHPTtl9kFTFYueJf/k+jiNPvJsgQyfjY+QPM3KyW+twSxbMtjbCnSipIMpAWcqQ==","mode":420,"size":1837}}}
|
||||
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./lib/async');
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"zip.js","sourceRoot":"","sources":["../../../../src/internal/observable/zip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AA4CjD,MAAM,UAAU,GAAG,CAAC,GAAG,IAAe;IACpC,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE/C,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAA0B,CAAC;IAE9D,OAAO,OAAO,CAAC,MAAM;QACnB,CAAC,CAAC,IAAI,UAAU,CAAY,CAAC,UAAU,EAAE,EAAE;YAGvC,IAAI,OAAO,GAAgB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;YAKjD,IAAI,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;YAGzC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE;gBAClB,OAAO,GAAG,SAAS,GAAG,IAAK,CAAC;YAC9B,CAAC,CAAC,CAAC;YAKH,KAAK,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,IAAI,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE;gBAC3F,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CACvC,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;oBACR,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAIjC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;wBAC5C,MAAM,MAAM,GAAQ,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAG,CAAC,CAAC;wBAE7D,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;wBAIrE,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;4BAC/D,UAAU,CAAC,QAAQ,EAAE,CAAC;yBACvB;qBACF;gBACH,CAAC,EACD,GAAG,EAAE;oBAGH,SAAS,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;oBAI9B,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxD,CAAC,CACF,CACF,CAAC;aACH;YAGD,OAAO,GAAG,EAAE;gBACV,OAAO,GAAG,SAAS,GAAG,IAAK,CAAC;YAC9B,CAAC,CAAC;QACJ,CAAC,CAAC;QACJ,CAAC,CAAC,KAAK,CAAC;AACZ,CAAC"}
|
||||
@@ -0,0 +1,13 @@
|
||||
'use strict'
|
||||
|
||||
function fib (num) {
|
||||
var fib = []
|
||||
|
||||
fib[0] = 0
|
||||
fib[1] = 1
|
||||
for (var i = 2; i <= num; i++) {
|
||||
fib[i] = fib[i - 2] + fib[i - 1]
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = fib
|
||||
@@ -0,0 +1,163 @@
|
||||
// @ts-check
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, // DISABLE_TOUCH = TRUE
|
||||
// Retrieve an existing context from cache if possible (since contexts are unique per
|
||||
// source path), or set up a new one (including setting up watchers and registering
|
||||
// plugins) then return it
|
||||
"default", {
|
||||
enumerable: true,
|
||||
get: ()=>setupTrackingContext
|
||||
});
|
||||
const _fs = /*#__PURE__*/ _interopRequireDefault(require("fs"));
|
||||
const _quickLru = /*#__PURE__*/ _interopRequireDefault(require("quick-lru"));
|
||||
const _hashConfig = /*#__PURE__*/ _interopRequireDefault(require("../util/hashConfig"));
|
||||
const _getModuleDependencies = /*#__PURE__*/ _interopRequireDefault(require("../lib/getModuleDependencies"));
|
||||
const _resolveConfig = /*#__PURE__*/ _interopRequireDefault(require("../public/resolve-config"));
|
||||
const _resolveConfigPath = /*#__PURE__*/ _interopRequireDefault(require("../util/resolveConfigPath"));
|
||||
const _setupContextUtils = require("./setupContextUtils");
|
||||
const _parseDependency = /*#__PURE__*/ _interopRequireDefault(require("../util/parseDependency"));
|
||||
const _validateConfigJs = require("../util/validateConfig.js");
|
||||
const _contentJs = require("./content.js");
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
let configPathCache = new _quickLru.default({
|
||||
maxSize: 100
|
||||
});
|
||||
let candidateFilesCache = new WeakMap();
|
||||
function getCandidateFiles(context, tailwindConfig) {
|
||||
if (candidateFilesCache.has(context)) {
|
||||
return candidateFilesCache.get(context);
|
||||
}
|
||||
let candidateFiles = (0, _contentJs.parseCandidateFiles)(context, tailwindConfig);
|
||||
return candidateFilesCache.set(context, candidateFiles).get(context);
|
||||
}
|
||||
// Get the config object based on a path
|
||||
function getTailwindConfig(configOrPath) {
|
||||
let userConfigPath = (0, _resolveConfigPath.default)(configOrPath);
|
||||
if (userConfigPath !== null) {
|
||||
let [prevConfig, prevConfigHash, prevDeps, prevModified] = configPathCache.get(userConfigPath) || [];
|
||||
let newDeps = (0, _getModuleDependencies.default)(userConfigPath).map((dep)=>dep.file);
|
||||
let modified = false;
|
||||
let newModified = new Map();
|
||||
for (let file of newDeps){
|
||||
let time = _fs.default.statSync(file).mtimeMs;
|
||||
newModified.set(file, time);
|
||||
if (!prevModified || !prevModified.has(file) || time > prevModified.get(file)) {
|
||||
modified = true;
|
||||
}
|
||||
}
|
||||
// It hasn't changed (based on timestamps)
|
||||
if (!modified) {
|
||||
return [
|
||||
prevConfig,
|
||||
userConfigPath,
|
||||
prevConfigHash,
|
||||
prevDeps
|
||||
];
|
||||
}
|
||||
// It has changed (based on timestamps), or first run
|
||||
for (let file1 of newDeps){
|
||||
delete require.cache[file1];
|
||||
}
|
||||
let newConfig = (0, _resolveConfig.default)(require(userConfigPath));
|
||||
newConfig = (0, _validateConfigJs.validateConfig)(newConfig);
|
||||
let newHash = (0, _hashConfig.default)(newConfig);
|
||||
configPathCache.set(userConfigPath, [
|
||||
newConfig,
|
||||
newHash,
|
||||
newDeps,
|
||||
newModified
|
||||
]);
|
||||
return [
|
||||
newConfig,
|
||||
userConfigPath,
|
||||
newHash,
|
||||
newDeps
|
||||
];
|
||||
}
|
||||
// It's a plain object, not a path
|
||||
let newConfig1 = (0, _resolveConfig.default)(configOrPath.config === undefined ? configOrPath : configOrPath.config);
|
||||
newConfig1 = (0, _validateConfigJs.validateConfig)(newConfig1);
|
||||
return [
|
||||
newConfig1,
|
||||
null,
|
||||
(0, _hashConfig.default)(newConfig1),
|
||||
[]
|
||||
];
|
||||
}
|
||||
function setupTrackingContext(configOrPath) {
|
||||
return ({ tailwindDirectives , registerDependency })=>{
|
||||
return (root, result)=>{
|
||||
let [tailwindConfig, userConfigPath, tailwindConfigHash, configDependencies] = getTailwindConfig(configOrPath);
|
||||
let contextDependencies = new Set(configDependencies);
|
||||
// If there are no @tailwind or @apply rules, we don't consider this CSS
|
||||
// file or its dependencies to be dependencies of the context. Can reuse
|
||||
// the context even if they change. We may want to think about `@layer`
|
||||
// being part of this trigger too, but it's tough because it's impossible
|
||||
// for a layer in one file to end up in the actual @tailwind rule in
|
||||
// another file since independent sources are effectively isolated.
|
||||
if (tailwindDirectives.size > 0) {
|
||||
// Add current css file as a context dependencies.
|
||||
contextDependencies.add(result.opts.from);
|
||||
// Add all css @import dependencies as context dependencies.
|
||||
for (let message of result.messages){
|
||||
if (message.type === "dependency") {
|
||||
contextDependencies.add(message.file);
|
||||
}
|
||||
}
|
||||
}
|
||||
let [context, , mTimesToCommit] = (0, _setupContextUtils.getContext)(root, result, tailwindConfig, userConfigPath, tailwindConfigHash, contextDependencies);
|
||||
let fileModifiedMap = (0, _setupContextUtils.getFileModifiedMap)(context);
|
||||
let candidateFiles = getCandidateFiles(context, tailwindConfig);
|
||||
// If there are no @tailwind or @apply rules, we don't consider this CSS file or it's
|
||||
// dependencies to be dependencies of the context. Can reuse the context even if they change.
|
||||
// We may want to think about `@layer` being part of this trigger too, but it's tough
|
||||
// because it's impossible for a layer in one file to end up in the actual @tailwind rule
|
||||
// in another file since independent sources are effectively isolated.
|
||||
if (tailwindDirectives.size > 0) {
|
||||
// Add template paths as postcss dependencies.
|
||||
for (let contentPath of candidateFiles){
|
||||
for (let dependency of (0, _parseDependency.default)(contentPath)){
|
||||
registerDependency(dependency);
|
||||
}
|
||||
}
|
||||
let [changedContent, contentMTimesToCommit] = (0, _contentJs.resolvedChangedContent)(context, candidateFiles, fileModifiedMap);
|
||||
for (let content of changedContent){
|
||||
context.changedContent.push(content);
|
||||
}
|
||||
// Add the mtimes of the content files to the commit list
|
||||
// We can overwrite the existing values because unconditionally
|
||||
// This is because:
|
||||
// 1. Most of the files here won't be in the map yet
|
||||
// 2. If they are that means it's a context dependency
|
||||
// and we're reading this after the context. This means
|
||||
// that the mtime we just read is strictly >= the context
|
||||
// mtime. Unless the user / os is doing something weird
|
||||
// in which the mtime would be going backwards. If that
|
||||
// happens there's already going to be problems.
|
||||
for (let [path, mtime] of contentMTimesToCommit.entries()){
|
||||
mTimesToCommit.set(path, mtime);
|
||||
}
|
||||
}
|
||||
for (let file of configDependencies){
|
||||
registerDependency({
|
||||
type: "dependency",
|
||||
file
|
||||
});
|
||||
}
|
||||
// "commit" the new modified time for all context deps
|
||||
// We do this here because we want content tracking to
|
||||
// read the "old" mtime even when it's a context dependency.
|
||||
for (let [path1, mtime1] of mTimesToCommit.entries()){
|
||||
fileModifiedMap.set(path1, mtime1);
|
||||
}
|
||||
return context;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user