new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { options, Fragment, Component } from 'preact';
|
||||
|
||||
export function initDevTools() {
|
||||
if (typeof window != 'undefined' && window.__PREACT_DEVTOOLS__) {
|
||||
window.__PREACT_DEVTOOLS__.attachPreact('10.12.1', options, {
|
||||
Fragment,
|
||||
Component
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
"use strict";
|
||||
|
||||
var d = require("d")
|
||||
, assign = require("es5-ext/object/assign")
|
||||
, forEach = require("es5-ext/object/for-each")
|
||||
, map = require("es5-ext/object/map")
|
||||
, primitiveSet = require("es5-ext/object/primitive-set")
|
||||
, setPrototypeOf = require("es5-ext/object/set-prototype-of")
|
||||
, memoize = require("memoizee")
|
||||
, memoizeMethods = require("memoizee/methods")
|
||||
, sgr = require("./lib/sgr")
|
||||
, supportsColor = require("./lib/supports-color");
|
||||
|
||||
var mods = sgr.mods
|
||||
, join = Array.prototype.join
|
||||
, defineProperty = Object.defineProperty
|
||||
, max = Math.max
|
||||
, min = Math.min
|
||||
, variantModes = primitiveSet("_fg", "_bg")
|
||||
, xtermMatch = process.platform === "win32" ? require("./lib/xterm-match") : null;
|
||||
|
||||
var getFn;
|
||||
|
||||
// Some use cli-color as: console.log(clc.red('Error!'));
|
||||
// Which is inefficient as on each call it configures new clc object
|
||||
// with memoization we reuse once created object
|
||||
var memoized = memoize(function (scope, mod) {
|
||||
return defineProperty(getFn(), "_cliColorData", d(assign({}, scope._cliColorData, mod)));
|
||||
});
|
||||
|
||||
var proto = Object.create(
|
||||
Function.prototype,
|
||||
assign(
|
||||
map(mods, function (mod) {
|
||||
return d.gs(function () { return memoized(this, mod); });
|
||||
}),
|
||||
memoizeMethods({
|
||||
// xterm (255) color
|
||||
xterm: d(function (code) {
|
||||
code = isNaN(code) ? 255 : min(max(code, 0), 255);
|
||||
return defineProperty(
|
||||
getFn(), "_cliColorData",
|
||||
d(
|
||||
assign({}, this._cliColorData, {
|
||||
_fg: [xtermMatch ? xtermMatch[code] : "38;5;" + code, 39]
|
||||
})
|
||||
)
|
||||
);
|
||||
}),
|
||||
bgXterm: d(function (code) {
|
||||
code = isNaN(code) ? 255 : min(max(code, 0), 255);
|
||||
return defineProperty(
|
||||
getFn(), "_cliColorData",
|
||||
d(
|
||||
assign({}, this._cliColorData, {
|
||||
_bg: [xtermMatch ? xtermMatch[code] + 10 : "48;5;" + code, 49]
|
||||
})
|
||||
)
|
||||
);
|
||||
})
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
var getEndRe = memoize(function (code) { return new RegExp("\x1b\\[" + code + "m", "g"); }, {
|
||||
primitive: true
|
||||
});
|
||||
|
||||
getFn = function () {
|
||||
return setPrototypeOf(
|
||||
function self(/* …msg*/) {
|
||||
var start = ""
|
||||
, end = ""
|
||||
, msg = join.call(arguments, " ")
|
||||
, conf = self._cliColorData
|
||||
, hasAnsi = sgr.hasCSI(msg);
|
||||
forEach(
|
||||
conf,
|
||||
function (mod, key) {
|
||||
end = sgr(mod[1]) + end;
|
||||
start += sgr(mod[0]);
|
||||
if (hasAnsi) {
|
||||
msg = msg.replace(getEndRe(mod[1]), variantModes[key] ? sgr(mod[0]) : "");
|
||||
}
|
||||
},
|
||||
null,
|
||||
true
|
||||
);
|
||||
if (!supportsColor.isColorSupported()) return msg;
|
||||
return start + msg + end;
|
||||
},
|
||||
proto
|
||||
);
|
||||
};
|
||||
|
||||
module.exports = Object.defineProperties(getFn(), {
|
||||
xtermSupported: d(!xtermMatch),
|
||||
_cliColorData: d("", {})
|
||||
});
|
||||
@@ -0,0 +1,136 @@
|
||||
# object.assign <sup>[![Version Badge][npm-version-svg]][npm-url]</sup>
|
||||
|
||||
[![github actions][actions-image]][actions-url]
|
||||
[![coverage][codecov-image]][codecov-url]
|
||||
[![dependency status][deps-svg]][deps-url]
|
||||
[![dev dependency status][dev-deps-svg]][dev-deps-url]
|
||||
[![License][license-image]][license-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
[![npm badge][npm-badge-png]][npm-url]
|
||||
|
||||
An Object.assign shim. Invoke its "shim" method to shim Object.assign if it is unavailable.
|
||||
|
||||
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](http://www.ecma-international.org/ecma-262/6.0/#sec-object.assign). In an ES6 environment, it will also work properly with `Symbol`s.
|
||||
|
||||
Takes a minimum of 2 arguments: `target` and `source`.
|
||||
Takes a variable sized list of source arguments - at least 1, as many as you want.
|
||||
Throws a TypeError if the `target` argument is `null` or `undefined`.
|
||||
|
||||
Most common usage:
|
||||
```js
|
||||
var assign = require('object.assign').getPolyfill(); // returns native method if compliant
|
||||
/* or */
|
||||
var assign = require('object.assign/polyfill')(); // returns native method if compliant
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var assert = require('assert');
|
||||
|
||||
// Multiple sources!
|
||||
var target = { a: true };
|
||||
var source1 = { b: true };
|
||||
var source2 = { c: true };
|
||||
var sourceN = { n: true };
|
||||
|
||||
var expected = {
|
||||
a: true,
|
||||
b: true,
|
||||
c: true,
|
||||
n: true
|
||||
};
|
||||
|
||||
assign(target, source1, source2, sourceN);
|
||||
assert.deepEqual(target, expected); // AWESOME!
|
||||
```
|
||||
|
||||
```js
|
||||
var target = {
|
||||
a: true,
|
||||
b: true,
|
||||
c: true
|
||||
};
|
||||
var source1 = {
|
||||
c: false,
|
||||
d: false
|
||||
};
|
||||
var sourceN = {
|
||||
e: false
|
||||
};
|
||||
|
||||
var assigned = assign(target, source1, sourceN);
|
||||
assert.equal(target, assigned); // returns the target object
|
||||
assert.deepEqual(assigned, {
|
||||
a: true,
|
||||
b: true,
|
||||
c: false,
|
||||
d: false,
|
||||
e: false
|
||||
});
|
||||
```
|
||||
|
||||
```js
|
||||
/* when Object.assign is not present */
|
||||
delete Object.assign;
|
||||
var shimmedAssign = require('object.assign').shim();
|
||||
/* or */
|
||||
var shimmedAssign = require('object.assign/shim')();
|
||||
|
||||
assert.equal(shimmedAssign, assign);
|
||||
|
||||
var target = {
|
||||
a: true,
|
||||
b: true,
|
||||
c: true
|
||||
};
|
||||
var source = {
|
||||
c: false,
|
||||
d: false,
|
||||
e: false
|
||||
};
|
||||
|
||||
var assigned = assign(target, source);
|
||||
assert.deepEqual(Object.assign(target, source), assign(target, source));
|
||||
```
|
||||
|
||||
```js
|
||||
/* when Object.assign is present */
|
||||
var shimmedAssign = require('object.assign').shim();
|
||||
assert.equal(shimmedAssign, Object.assign);
|
||||
|
||||
var target = {
|
||||
a: true,
|
||||
b: true,
|
||||
c: true
|
||||
};
|
||||
var source = {
|
||||
c: false,
|
||||
d: false,
|
||||
e: false
|
||||
};
|
||||
|
||||
assert.deepEqual(Object.assign(target, source), assign(target, source));
|
||||
```
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[npm-url]: https://npmjs.org/package/object.assign
|
||||
[npm-version-svg]: http://versionbadg.es/ljharb/object.assign.svg
|
||||
[travis-svg]: https://travis-ci.org/ljharb/object.assign.svg
|
||||
[travis-url]: https://travis-ci.org/ljharb/object.assign
|
||||
[deps-svg]: https://david-dm.org/ljharb/object.assign.svg?theme=shields.io
|
||||
[deps-url]: https://david-dm.org/ljharb/object.assign
|
||||
[dev-deps-svg]: https://david-dm.org/ljharb/object.assign/dev-status.svg?theme=shields.io
|
||||
[dev-deps-url]: https://david-dm.org/ljharb/object.assign#info=devDependencies
|
||||
[npm-badge-png]: https://nodei.co/npm/object.assign.png?downloads=true&stars=true
|
||||
[license-image]: http://img.shields.io/npm/l/object.assign.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: http://img.shields.io/npm/dm/object.assign.svg
|
||||
[downloads-url]: http://npm-stat.com/charts.html?package=object.assign
|
||||
[codecov-image]: https://codecov.io/gh/ljharb/object.assign/branch/main/graphs/badge.svg
|
||||
[codecov-url]: https://app.codecov.io/gh/ljharb/object.assign/
|
||||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/object.assign
|
||||
[actions-url]: https://github.com/ljharb/object.assign/actions
|
||||
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.skipWhile = void 0;
|
||||
var lift_1 = require("../util/lift");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
function skipWhile(predicate) {
|
||||
return lift_1.operate(function (source, subscriber) {
|
||||
var taking = false;
|
||||
var index = 0;
|
||||
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); }));
|
||||
});
|
||||
}
|
||||
exports.skipWhile = skipWhile;
|
||||
//# sourceMappingURL=skipWhile.js.map
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"name": "pac-proxy-agent",
|
||||
"version": "5.0.0",
|
||||
"description": "A PAC file proxy `http.Agent` implementation for HTTP",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "tsc",
|
||||
"test": "mocha --reporter spec",
|
||||
"test-lint": "eslint src --ext .js,.ts",
|
||||
"prepublishOnly": "npm run build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/TooTallNate/node-pac-proxy-agent.git"
|
||||
},
|
||||
"keywords": [
|
||||
"pac",
|
||||
"proxy",
|
||||
"agent",
|
||||
"http",
|
||||
"https",
|
||||
"socks",
|
||||
"request",
|
||||
"access"
|
||||
],
|
||||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/TooTallNate/node-pac-proxy-agent/issues"
|
||||
},
|
||||
"homepage": "https://github.com/TooTallNate/node-pac-proxy-agent",
|
||||
"dependencies": {
|
||||
"@tootallnate/once": "1",
|
||||
"agent-base": "6",
|
||||
"debug": "4",
|
||||
"get-uri": "3",
|
||||
"http-proxy-agent": "^4.0.1",
|
||||
"https-proxy-agent": "5",
|
||||
"pac-resolver": "^5.0.0",
|
||||
"raw-body": "^2.2.0",
|
||||
"socks-proxy-agent": "5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "4",
|
||||
"@types/node": "^12.12.11",
|
||||
"@typescript-eslint/eslint-plugin": "1.6.0",
|
||||
"@typescript-eslint/parser": "1.1.0",
|
||||
"eslint": "5.16.0",
|
||||
"eslint-config-airbnb": "17.1.0",
|
||||
"eslint-config-prettier": "4.1.0",
|
||||
"eslint-import-resolver-typescript": "1.1.1",
|
||||
"eslint-plugin-import": "2.16.0",
|
||||
"eslint-plugin-jsx-a11y": "6.2.1",
|
||||
"eslint-plugin-react": "7.12.4",
|
||||
"mocha": "^6.2.2",
|
||||
"proxy": "1",
|
||||
"rimraf": "^3.0.0",
|
||||
"socksv5": "0.0.6",
|
||||
"typescript": "^3.5.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 8"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"reportUnhandledError.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/reportUnhandledError.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,QAW5C"}
|
||||
@@ -0,0 +1,93 @@
|
||||
import { SafeSubscriber, Subscriber } from './Subscriber';
|
||||
import { isSubscription } from './Subscription';
|
||||
import { observable as Symbol_observable } from './symbol/observable';
|
||||
import { pipeFromArray } from './util/pipe';
|
||||
import { config } from './config';
|
||||
import { isFunction } from './util/isFunction';
|
||||
import { errorContext } from './util/errorContext';
|
||||
export class Observable {
|
||||
constructor(subscribe) {
|
||||
if (subscribe) {
|
||||
this._subscribe = subscribe;
|
||||
}
|
||||
}
|
||||
lift(operator) {
|
||||
const observable = new Observable();
|
||||
observable.source = this;
|
||||
observable.operator = operator;
|
||||
return observable;
|
||||
}
|
||||
subscribe(observerOrNext, error, complete) {
|
||||
const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);
|
||||
errorContext(() => {
|
||||
const { operator, source } = this;
|
||||
subscriber.add(operator
|
||||
?
|
||||
operator.call(subscriber, source)
|
||||
: source
|
||||
?
|
||||
this._subscribe(subscriber)
|
||||
:
|
||||
this._trySubscribe(subscriber));
|
||||
});
|
||||
return subscriber;
|
||||
}
|
||||
_trySubscribe(sink) {
|
||||
try {
|
||||
return this._subscribe(sink);
|
||||
}
|
||||
catch (err) {
|
||||
sink.error(err);
|
||||
}
|
||||
}
|
||||
forEach(next, promiseCtor) {
|
||||
promiseCtor = getPromiseCtor(promiseCtor);
|
||||
return new promiseCtor((resolve, reject) => {
|
||||
const subscriber = new SafeSubscriber({
|
||||
next: (value) => {
|
||||
try {
|
||||
next(value);
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
subscriber.unsubscribe();
|
||||
}
|
||||
},
|
||||
error: reject,
|
||||
complete: resolve,
|
||||
});
|
||||
this.subscribe(subscriber);
|
||||
});
|
||||
}
|
||||
_subscribe(subscriber) {
|
||||
var _a;
|
||||
return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
|
||||
}
|
||||
[Symbol_observable]() {
|
||||
return this;
|
||||
}
|
||||
pipe(...operations) {
|
||||
return pipeFromArray(operations)(this);
|
||||
}
|
||||
toPromise(promiseCtor) {
|
||||
promiseCtor = getPromiseCtor(promiseCtor);
|
||||
return new promiseCtor((resolve, reject) => {
|
||||
let value;
|
||||
this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value));
|
||||
});
|
||||
}
|
||||
}
|
||||
Observable.create = (subscribe) => {
|
||||
return new Observable(subscribe);
|
||||
};
|
||||
function getPromiseCtor(promiseCtor) {
|
||||
var _a;
|
||||
return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
|
||||
}
|
||||
function isObserver(value) {
|
||||
return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
|
||||
}
|
||||
function isSubscriber(value) {
|
||||
return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
|
||||
}
|
||||
//# sourceMappingURL=Observable.js.map
|
||||
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"name": "object-keys",
|
||||
"version": "1.1.1",
|
||||
"author": {
|
||||
"name": "Jordan Harband",
|
||||
"email": "ljharb@gmail.com",
|
||||
"url": "http://ljharb.codes"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Jordan Harband",
|
||||
"email": "ljharb@gmail.com",
|
||||
"url": "http://ljharb.codes"
|
||||
},
|
||||
{
|
||||
"name": "Raynos",
|
||||
"email": "raynos2@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Nathan Rajlich",
|
||||
"email": "nathan@tootallnate.net"
|
||||
},
|
||||
{
|
||||
"name": "Ivan Starkov",
|
||||
"email": "istarkov@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "Gary Katsevman",
|
||||
"email": "git@gkatsev.com"
|
||||
}
|
||||
],
|
||||
"description": "An Object.keys replacement, in case Object.keys is not available. From https://github.com/es-shims/es5-shim",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"pretest": "npm run --silent lint",
|
||||
"test": "npm run --silent tests-only",
|
||||
"posttest": "npm run --silent audit",
|
||||
"tests-only": "node test/index.js",
|
||||
"coverage": "covert test/*.js",
|
||||
"coverage-quiet": "covert test/*.js --quiet",
|
||||
"lint": "eslint .",
|
||||
"preaudit": "npm install --package-lock --package-lock-only",
|
||||
"audit": "npm audit",
|
||||
"postaudit": "rm package-lock.json"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/ljharb/object-keys.git"
|
||||
},
|
||||
"keywords": [
|
||||
"Object.keys",
|
||||
"keys",
|
||||
"ES5",
|
||||
"shim"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^13.1.1",
|
||||
"covert": "^1.1.1",
|
||||
"eslint": "^5.13.0",
|
||||
"foreach": "^2.0.5",
|
||||
"indexof": "^0.0.1",
|
||||
"is": "^3.3.0",
|
||||
"tape": "^4.9.2"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
"browsers": [
|
||||
"iexplore/6.0..latest",
|
||||
"firefox/3.0..6.0",
|
||||
"firefox/15.0..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/4.0..10.0",
|
||||
"chrome/20.0..latest",
|
||||
"chrome/canary",
|
||||
"opera/10.0..latest",
|
||||
"opera/next",
|
||||
"safari/4.0..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DonationService = void 0;
|
||||
const request_1 = require("../core/request");
|
||||
class DonationService {
|
||||
/**
|
||||
* Get all
|
||||
* Lists all donations (fixed or distance based) from all donors. <br> This includes the donations's runner's distance ran(if distance donation).
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async donationControllerGetAll() {
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'GET',
|
||||
path: `/api/donations`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Get one
|
||||
* Lists all information about the donation whose id got provided. This includes the donation's runner's distance ran (if distance donation).
|
||||
* @param id
|
||||
* @result any
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async donationControllerGetOne(id) {
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'GET',
|
||||
path: `/api/donations/${id}`,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Remove
|
||||
* Delete the donation whose id you provided. <br> If no donation with this id exists it will just return 204(no content).
|
||||
* @param id
|
||||
* @param force
|
||||
* @result any
|
||||
* @result ResponseEmpty
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async donationControllerRemove(id, force) {
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'DELETE',
|
||||
path: `/api/donations/${id}`,
|
||||
query: {
|
||||
'force': force,
|
||||
},
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post fixed
|
||||
* Create a fixed donation (not distance donation - use /donations/distance instead). <br> Please rmemember to provide the donation's donors's id and amount.
|
||||
* @param requestBody CreateFixedDonation
|
||||
* @result ResponseDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async donationControllerPostFixed(requestBody) {
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/donations/fixed`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Post distance
|
||||
* Create a distance donation (not fixed donation - use /donations/fixed instead). <br> Please rmemember to provide the donation's donors's and runners ids and amount per distance (kilometer).
|
||||
* @param requestBody CreateDistanceDonation
|
||||
* @result ResponseDistanceDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async donationControllerPostDistance(requestBody) {
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'POST',
|
||||
path: `/api/donations/distance`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Put fixed
|
||||
* Update the fixed donation (not distance donation - use /donations/distance instead) whose id you provided. <br> Please remember that ids can't be changed and amounts must be positive.
|
||||
* @param id
|
||||
* @param requestBody UpdateFixedDonation
|
||||
* @result ResponseDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async donationControllerPutFixed(id, requestBody) {
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'PUT',
|
||||
path: `/api/donations/fixed/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
/**
|
||||
* Put distance
|
||||
* Update the distance donation (not fixed donation - use /donations/fixed instead) whose id you provided. <br> Please remember that ids can't be changed and amountPerDistance must be positive.
|
||||
* @param id
|
||||
* @param requestBody UpdateDistanceDonation
|
||||
* @result ResponseDonation
|
||||
* @throws ApiError
|
||||
*/
|
||||
static async donationControllerPutDistance(id, requestBody) {
|
||||
const result = await (0, request_1.request)({
|
||||
method: 'PUT',
|
||||
path: `/api/donations/distance/${id}`,
|
||||
body: requestBody,
|
||||
});
|
||||
return result.body;
|
||||
}
|
||||
}
|
||||
exports.DonationService = DonationService;
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Jimmy Wärting
|
||||
|
||||
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 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.debounce = void 0;
|
||||
var lift_1 = require("../util/lift");
|
||||
var noop_1 = require("../util/noop");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
var innerFrom_1 = require("../observable/innerFrom");
|
||||
function debounce(durationSelector) {
|
||||
return lift_1.operate(function (source, subscriber) {
|
||||
var hasValue = false;
|
||||
var lastValue = null;
|
||||
var durationSubscriber = null;
|
||||
var emit = function () {
|
||||
durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
|
||||
durationSubscriber = null;
|
||||
if (hasValue) {
|
||||
hasValue = false;
|
||||
var value = lastValue;
|
||||
lastValue = null;
|
||||
subscriber.next(value);
|
||||
}
|
||||
};
|
||||
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
|
||||
durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();
|
||||
hasValue = true;
|
||||
lastValue = value;
|
||||
durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, emit, noop_1.noop);
|
||||
innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber);
|
||||
}, function () {
|
||||
emit();
|
||||
subscriber.complete();
|
||||
}, undefined, function () {
|
||||
lastValue = durationSubscriber = null;
|
||||
}));
|
||||
});
|
||||
}
|
||||
exports.debounce = debounce;
|
||||
//# sourceMappingURL=debounce.js.map
|
||||
@@ -0,0 +1 @@
|
||||
export { compile, parse, preprocess, walk, VERSION } from './types/compiler/index';
|
||||
@@ -0,0 +1,12 @@
|
||||
export default function setBlocking(blocking) {
|
||||
if (typeof process === 'undefined')
|
||||
return;
|
||||
[process.stdout, process.stderr].forEach(_stream => {
|
||||
const stream = _stream;
|
||||
if (stream._handle &&
|
||||
stream.isTTY &&
|
||||
typeof stream._handle.setBlocking === 'function') {
|
||||
stream._handle.setBlocking(blocking);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* The default argument placeholder value for methods.
|
||||
*
|
||||
* @type {Object}
|
||||
*/
|
||||
module.exports = {};
|
||||
@@ -0,0 +1,42 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [v1.0.2](https://github.com/ljharb/call-bind/compare/v1.0.1...v1.0.2) - 2021-01-11
|
||||
|
||||
### Commits
|
||||
|
||||
- [Fix] properly include the receiver in the bound length [`dbae7bc`](https://github.com/ljharb/call-bind/commit/dbae7bc676c079a0d33c0a43e9ef92cb7b01345d)
|
||||
|
||||
## [v1.0.1](https://github.com/ljharb/call-bind/compare/v1.0.0...v1.0.1) - 2021-01-08
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] migrate tests to Github Actions [`b6db284`](https://github.com/ljharb/call-bind/commit/b6db284c36f8ccd195b88a6764fe84b7223a0da1)
|
||||
- [meta] do not publish github action workflow files [`ec7fe46`](https://github.com/ljharb/call-bind/commit/ec7fe46e60cfa4764ee943d2755f5e5a366e578e)
|
||||
- [Fix] preserve original function’s length when possible [`adbceaa`](https://github.com/ljharb/call-bind/commit/adbceaa3cac4b41ea78bb19d7ccdbaaf7e0bdadb)
|
||||
- [Tests] gather coverage data on every job [`d69e23c`](https://github.com/ljharb/call-bind/commit/d69e23cc65f101ba1d4c19bb07fa8eb0ec624be8)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`2fd3586`](https://github.com/ljharb/call-bind/commit/2fd3586c5d47b335364c14293114c6b625ae1f71)
|
||||
- [Deps] update `get-intrinsic` [`f23e931`](https://github.com/ljharb/call-bind/commit/f23e9318cc271c2add8bb38cfded85ee7baf8eee)
|
||||
- [Deps] update `get-intrinsic` [`72d9f44`](https://github.com/ljharb/call-bind/commit/72d9f44e184465ba8dd3fb48260bbcff234985f2)
|
||||
- [meta] fix FUNDING.yml [`e723573`](https://github.com/ljharb/call-bind/commit/e723573438c5a68dcec31fb5d96ea6b7e4a93be8)
|
||||
- [eslint] ignore coverage output [`15e76d2`](https://github.com/ljharb/call-bind/commit/15e76d28a5f43e504696401e5b31ebb78ee1b532)
|
||||
- [meta] add Automatic Rebase and Require Allow Edits workflows [`8fa4dab`](https://github.com/ljharb/call-bind/commit/8fa4dabb23ba3dd7bb92c9571c1241c08b56e4b6)
|
||||
|
||||
## v1.0.0 - 2020-10-30
|
||||
|
||||
### Commits
|
||||
|
||||
- Initial commit [`306cf98`](https://github.com/ljharb/call-bind/commit/306cf98c7ec9e7ef66b653ec152277ac1381eb50)
|
||||
- Tests [`e10d0bb`](https://github.com/ljharb/call-bind/commit/e10d0bbdadc7a10ecedc9a1c035112d3e368b8df)
|
||||
- Implementation [`43852ed`](https://github.com/ljharb/call-bind/commit/43852eda0f187327b7fad2423ca972149a52bd65)
|
||||
- npm init [`408f860`](https://github.com/ljharb/call-bind/commit/408f860b773a2f610805fd3613d0d71bac1b6249)
|
||||
- [meta] add Automatic Rebase and Require Allow Edits workflows [`fb349b2`](https://github.com/ljharb/call-bind/commit/fb349b2e48defbec8b5ec8a8395cc8f69f220b13)
|
||||
- [meta] add `auto-changelog` [`c4001fc`](https://github.com/ljharb/call-bind/commit/c4001fc43031799ef908211c98d3b0fb2b60fde4)
|
||||
- [meta] add "funding"; create `FUNDING.yml` [`d4d6d29`](https://github.com/ljharb/call-bind/commit/d4d6d2974a14bc2e98830468eda7fe6d6a776717)
|
||||
- [Tests] add `npm run lint` [`dedfb98`](https://github.com/ljharb/call-bind/commit/dedfb98bd0ecefb08ddb9a94061bd10cde4332af)
|
||||
- Only apps should have lockfiles [`54ac776`](https://github.com/ljharb/call-bind/commit/54ac77653db45a7361dc153d2f478e743f110650)
|
||||
- [meta] add `safe-publish-latest` [`9ea8e43`](https://github.com/ljharb/call-bind/commit/9ea8e435b950ce9b705559cd651039f9bf40140f)
|
||||
@@ -0,0 +1,102 @@
|
||||
/**
|
||||
Pick only index signatures from the given object type, leaving out all explicitly defined properties.
|
||||
|
||||
This is the counterpart of `OmitIndexSignature`.
|
||||
|
||||
When you use a type that will iterate through an object that has indexed keys and explicitly defined keys you end up with a type where only the indexed keys are kept. This is because `keyof` of an indexed type always returns `string | number | symbol`, because every key is possible in that object. With this type, you can save the indexed keys and reinject them later, like in the second example below.
|
||||
|
||||
@example
|
||||
```
|
||||
import type {PickIndexSignature} from 'type-fest';
|
||||
|
||||
declare const symbolKey: unique symbol;
|
||||
|
||||
type Example = {
|
||||
// These index signatures will remain.
|
||||
[x: string]: unknown;
|
||||
[x: number]: unknown;
|
||||
[x: symbol]: unknown;
|
||||
[x: `head-${string}`]: string;
|
||||
[x: `${string}-tail`]: string;
|
||||
[x: `head-${string}-tail`]: string;
|
||||
[x: `${bigint}`]: string;
|
||||
[x: `embedded-${number}`]: string;
|
||||
|
||||
// These explicitly defined keys will be removed.
|
||||
['snake-case-key']: string;
|
||||
[symbolKey]: string;
|
||||
foo: 'bar';
|
||||
qux?: 'baz';
|
||||
};
|
||||
|
||||
type ExampleIndexSignature = PickIndexSignature<Example>;
|
||||
// {
|
||||
// [x: string]: unknown;
|
||||
// [x: number]: unknown;
|
||||
// [x: symbol]: unknown;
|
||||
// [x: `head-${string}`]: string;
|
||||
// [x: `${string}-tail`]: string;
|
||||
// [x: `head-${string}-tail`]: string;
|
||||
// [x: `${bigint}`]: string;
|
||||
// [x: `embedded-${number}`]: string;
|
||||
// }
|
||||
```
|
||||
|
||||
@example
|
||||
```
|
||||
import type {OmitIndexSignature, PickIndexSignature, Simplify} from 'type-fest';
|
||||
|
||||
type Foo = {
|
||||
[x: string]: string;
|
||||
foo: string;
|
||||
bar: number;
|
||||
};
|
||||
|
||||
// Imagine that you want a new type `Bar` that comes from `Foo`.
|
||||
// => {
|
||||
// [x: string]: string;
|
||||
// bar: number;
|
||||
// };
|
||||
|
||||
type Bar = Omit<Foo, 'foo'>;
|
||||
// This is not working because `Omit` returns only indexed keys.
|
||||
// => {
|
||||
// [x: string]: string;
|
||||
// [x: number]: string;
|
||||
// }
|
||||
|
||||
// One solution is to save the indexed signatures to new type.
|
||||
type FooIndexSignature = PickIndexSignature<Foo>;
|
||||
// => {
|
||||
// [x: string]: string;
|
||||
// }
|
||||
|
||||
// Get a new type without index signatures.
|
||||
type FooWithoutIndexSignature = OmitIndexSignature<Foo>;
|
||||
// => {
|
||||
// foo: string;
|
||||
// bar: number;
|
||||
// }
|
||||
|
||||
// At this point we can use Omit to get our new type.
|
||||
type BarWithoutIndexSignature = Omit<FooWithoutIndexSignature, 'foo'>;
|
||||
// => {
|
||||
// bar: number;
|
||||
// }
|
||||
|
||||
// And finally we can merge back the indexed signatures.
|
||||
type BarWithIndexSignature = Simplify<BarWithoutIndexSignature & FooIndexSignature>;
|
||||
// => {
|
||||
// [x: string]: string;
|
||||
// bar: number;
|
||||
// }
|
||||
```
|
||||
|
||||
@see OmitIndexSignature
|
||||
@category Object
|
||||
*/
|
||||
export type PickIndexSignature<ObjectType> = {
|
||||
[KeyType in keyof ObjectType as {} extends Record<KeyType, unknown>
|
||||
? KeyType
|
||||
: never]: ObjectType[KeyType];
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
'use strict';
|
||||
|
||||
var ToNumber = require('./ToNumber');
|
||||
|
||||
// http://262.ecma-international.org/5.1/#sec-9.6
|
||||
|
||||
module.exports = function ToUint32(x) {
|
||||
return ToNumber(x) >>> 0;
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Subject } from './Subject';
|
||||
/**
|
||||
* A variant of Subject that requires an initial value and emits its current
|
||||
* value whenever it is subscribed to.
|
||||
*
|
||||
* @class BehaviorSubject<T>
|
||||
*/
|
||||
export declare class BehaviorSubject<T> extends Subject<T> {
|
||||
private _value;
|
||||
constructor(_value: T);
|
||||
get value(): T;
|
||||
getValue(): T;
|
||||
next(value: T): void;
|
||||
}
|
||||
//# sourceMappingURL=BehaviorSubject.d.ts.map
|
||||
@@ -0,0 +1,22 @@
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
export function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {
|
||||
return function (source, subscriber) {
|
||||
var hasState = hasSeed;
|
||||
var state = seed;
|
||||
var index = 0;
|
||||
source.subscribe(createOperatorSubscriber(subscriber, function (value) {
|
||||
var i = index++;
|
||||
state = hasState
|
||||
?
|
||||
accumulator(state, value, i)
|
||||
:
|
||||
((hasState = true), value);
|
||||
emitOnNext && subscriber.next(state);
|
||||
}, emitBeforeComplete &&
|
||||
(function () {
|
||||
hasState && subscriber.next(state);
|
||||
subscriber.complete();
|
||||
})));
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=scanInternals.js.map
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
if (!require("./is-implemented")()) {
|
||||
Object.defineProperty(Math, "sinh", {
|
||||
value: require("./shim"),
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
exports.setopts = setopts
|
||||
exports.ownProp = ownProp
|
||||
exports.makeAbs = makeAbs
|
||||
exports.finish = finish
|
||||
exports.mark = mark
|
||||
exports.isIgnored = isIgnored
|
||||
exports.childrenIgnored = childrenIgnored
|
||||
|
||||
function ownProp (obj, field) {
|
||||
return Object.prototype.hasOwnProperty.call(obj, field)
|
||||
}
|
||||
|
||||
var fs = require("fs")
|
||||
var path = require("path")
|
||||
var minimatch = require("minimatch")
|
||||
var isAbsolute = require("path-is-absolute")
|
||||
var Minimatch = minimatch.Minimatch
|
||||
|
||||
function alphasort (a, b) {
|
||||
return a.localeCompare(b, 'en')
|
||||
}
|
||||
|
||||
function setupIgnores (self, options) {
|
||||
self.ignore = options.ignore || []
|
||||
|
||||
if (!Array.isArray(self.ignore))
|
||||
self.ignore = [self.ignore]
|
||||
|
||||
if (self.ignore.length) {
|
||||
self.ignore = self.ignore.map(ignoreMap)
|
||||
}
|
||||
}
|
||||
|
||||
// ignore patterns are always in dot:true mode.
|
||||
function ignoreMap (pattern) {
|
||||
var gmatcher = null
|
||||
if (pattern.slice(-3) === '/**') {
|
||||
var gpattern = pattern.replace(/(\/\*\*)+$/, '')
|
||||
gmatcher = new Minimatch(gpattern, { dot: true })
|
||||
}
|
||||
|
||||
return {
|
||||
matcher: new Minimatch(pattern, { dot: true }),
|
||||
gmatcher: gmatcher
|
||||
}
|
||||
}
|
||||
|
||||
function setopts (self, pattern, options) {
|
||||
if (!options)
|
||||
options = {}
|
||||
|
||||
// base-matching: just use globstar for that.
|
||||
if (options.matchBase && -1 === pattern.indexOf("/")) {
|
||||
if (options.noglobstar) {
|
||||
throw new Error("base matching requires globstar")
|
||||
}
|
||||
pattern = "**/" + pattern
|
||||
}
|
||||
|
||||
self.silent = !!options.silent
|
||||
self.pattern = pattern
|
||||
self.strict = options.strict !== false
|
||||
self.realpath = !!options.realpath
|
||||
self.realpathCache = options.realpathCache || Object.create(null)
|
||||
self.follow = !!options.follow
|
||||
self.dot = !!options.dot
|
||||
self.mark = !!options.mark
|
||||
self.nodir = !!options.nodir
|
||||
if (self.nodir)
|
||||
self.mark = true
|
||||
self.sync = !!options.sync
|
||||
self.nounique = !!options.nounique
|
||||
self.nonull = !!options.nonull
|
||||
self.nosort = !!options.nosort
|
||||
self.nocase = !!options.nocase
|
||||
self.stat = !!options.stat
|
||||
self.noprocess = !!options.noprocess
|
||||
self.absolute = !!options.absolute
|
||||
self.fs = options.fs || fs
|
||||
|
||||
self.maxLength = options.maxLength || Infinity
|
||||
self.cache = options.cache || Object.create(null)
|
||||
self.statCache = options.statCache || Object.create(null)
|
||||
self.symlinks = options.symlinks || Object.create(null)
|
||||
|
||||
setupIgnores(self, options)
|
||||
|
||||
self.changedCwd = false
|
||||
var cwd = process.cwd()
|
||||
if (!ownProp(options, "cwd"))
|
||||
self.cwd = cwd
|
||||
else {
|
||||
self.cwd = path.resolve(options.cwd)
|
||||
self.changedCwd = self.cwd !== cwd
|
||||
}
|
||||
|
||||
self.root = options.root || path.resolve(self.cwd, "/")
|
||||
self.root = path.resolve(self.root)
|
||||
if (process.platform === "win32")
|
||||
self.root = self.root.replace(/\\/g, "/")
|
||||
|
||||
// TODO: is an absolute `cwd` supposed to be resolved against `root`?
|
||||
// e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test')
|
||||
self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd)
|
||||
if (process.platform === "win32")
|
||||
self.cwdAbs = self.cwdAbs.replace(/\\/g, "/")
|
||||
self.nomount = !!options.nomount
|
||||
|
||||
// disable comments and negation in Minimatch.
|
||||
// Note that they are not supported in Glob itself anyway.
|
||||
options.nonegate = true
|
||||
options.nocomment = true
|
||||
// always treat \ in patterns as escapes, not path separators
|
||||
options.allowWindowsEscape = false
|
||||
|
||||
self.minimatch = new Minimatch(pattern, options)
|
||||
self.options = self.minimatch.options
|
||||
}
|
||||
|
||||
function finish (self) {
|
||||
var nou = self.nounique
|
||||
var all = nou ? [] : Object.create(null)
|
||||
|
||||
for (var i = 0, l = self.matches.length; i < l; i ++) {
|
||||
var matches = self.matches[i]
|
||||
if (!matches || Object.keys(matches).length === 0) {
|
||||
if (self.nonull) {
|
||||
// do like the shell, and spit out the literal glob
|
||||
var literal = self.minimatch.globSet[i]
|
||||
if (nou)
|
||||
all.push(literal)
|
||||
else
|
||||
all[literal] = true
|
||||
}
|
||||
} else {
|
||||
// had matches
|
||||
var m = Object.keys(matches)
|
||||
if (nou)
|
||||
all.push.apply(all, m)
|
||||
else
|
||||
m.forEach(function (m) {
|
||||
all[m] = true
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (!nou)
|
||||
all = Object.keys(all)
|
||||
|
||||
if (!self.nosort)
|
||||
all = all.sort(alphasort)
|
||||
|
||||
// at *some* point we statted all of these
|
||||
if (self.mark) {
|
||||
for (var i = 0; i < all.length; i++) {
|
||||
all[i] = self._mark(all[i])
|
||||
}
|
||||
if (self.nodir) {
|
||||
all = all.filter(function (e) {
|
||||
var notDir = !(/\/$/.test(e))
|
||||
var c = self.cache[e] || self.cache[makeAbs(self, e)]
|
||||
if (notDir && c)
|
||||
notDir = c !== 'DIR' && !Array.isArray(c)
|
||||
return notDir
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (self.ignore.length)
|
||||
all = all.filter(function(m) {
|
||||
return !isIgnored(self, m)
|
||||
})
|
||||
|
||||
self.found = all
|
||||
}
|
||||
|
||||
function mark (self, p) {
|
||||
var abs = makeAbs(self, p)
|
||||
var c = self.cache[abs]
|
||||
var m = p
|
||||
if (c) {
|
||||
var isDir = c === 'DIR' || Array.isArray(c)
|
||||
var slash = p.slice(-1) === '/'
|
||||
|
||||
if (isDir && !slash)
|
||||
m += '/'
|
||||
else if (!isDir && slash)
|
||||
m = m.slice(0, -1)
|
||||
|
||||
if (m !== p) {
|
||||
var mabs = makeAbs(self, m)
|
||||
self.statCache[mabs] = self.statCache[abs]
|
||||
self.cache[mabs] = self.cache[abs]
|
||||
}
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// lotta situps...
|
||||
function makeAbs (self, f) {
|
||||
var abs = f
|
||||
if (f.charAt(0) === '/') {
|
||||
abs = path.join(self.root, f)
|
||||
} else if (isAbsolute(f) || f === '') {
|
||||
abs = f
|
||||
} else if (self.changedCwd) {
|
||||
abs = path.resolve(self.cwd, f)
|
||||
} else {
|
||||
abs = path.resolve(f)
|
||||
}
|
||||
|
||||
if (process.platform === 'win32')
|
||||
abs = abs.replace(/\\/g, '/')
|
||||
|
||||
return abs
|
||||
}
|
||||
|
||||
|
||||
// Return true, if pattern ends with globstar '**', for the accompanying parent directory.
|
||||
// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents
|
||||
function isIgnored (self, path) {
|
||||
if (!self.ignore.length)
|
||||
return false
|
||||
|
||||
return self.ignore.some(function(item) {
|
||||
return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))
|
||||
})
|
||||
}
|
||||
|
||||
function childrenIgnored (self, path) {
|
||||
if (!self.ignore.length)
|
||||
return false
|
||||
|
||||
return self.ignore.some(function(item) {
|
||||
return !!(item.gmatcher && item.gmatcher.match(path))
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"main": "./"
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import { TemplateNode } from '../../interfaces';
|
||||
import Component from '../Component';
|
||||
import Node from './shared/Node';
|
||||
import TemplateScope from './shared/TemplateScope';
|
||||
export default class Comment extends Node {
|
||||
type: 'Comment';
|
||||
data: string;
|
||||
ignores: string[];
|
||||
constructor(component: Component, parent: Node, scope: TemplateScope, info: TemplateNode);
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"name": "deepmerge",
|
||||
"description": "A library for deep (recursive) merging of Javascript objects",
|
||||
"keywords": [
|
||||
"merge",
|
||||
"deep",
|
||||
"extend",
|
||||
"copy",
|
||||
"clone",
|
||||
"recursive"
|
||||
],
|
||||
"version": "4.3.0",
|
||||
"homepage": "https://github.com/TehShrike/deepmerge",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/TehShrike/deepmerge.git"
|
||||
},
|
||||
"main": "dist/cjs.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "rollup -c",
|
||||
"test": "npm run build && tape test/*.js && jsmd readme.md && npm run test:typescript",
|
||||
"test:typescript": "tsc --noEmit test/typescript.ts && ts-node test/typescript.ts",
|
||||
"size": "npm run build && uglifyjs --compress --mangle -- ./dist/umd.js | gzip -c | wc -c"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^8.10.54",
|
||||
"is-mergeable-object": "1.1.0",
|
||||
"is-plain-object": "^2.0.4",
|
||||
"jsmd": "^1.0.2",
|
||||
"rollup": "^1.23.1",
|
||||
"rollup-plugin-commonjs": "^10.1.0",
|
||||
"rollup-plugin-node-resolve": "^5.2.0",
|
||||
"tape": "^4.11.0",
|
||||
"ts-node": "7.0.1",
|
||||
"typescript": "=2.2.2",
|
||||
"uglify-js": "^3.6.1"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('split', require('../split'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,6 @@
|
||||
//deprecated but leave it for backward compatibility
|
||||
module.exports.core=require("./core");
|
||||
|
||||
//live apis
|
||||
module.exports=require("./core");
|
||||
module.exports.interfaces = require("./interfaces");
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "pupa",
|
||||
"version": "3.1.0",
|
||||
"description": "Simple micro templating",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/pupa",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"engines": {
|
||||
"node": ">=12.20"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"string",
|
||||
"formatting",
|
||||
"template",
|
||||
"object",
|
||||
"format",
|
||||
"interpolate",
|
||||
"interpolation",
|
||||
"templating",
|
||||
"expand",
|
||||
"simple",
|
||||
"replace",
|
||||
"placeholders",
|
||||
"values",
|
||||
"transform",
|
||||
"micro"
|
||||
],
|
||||
"dependencies": {
|
||||
"escape-goat": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^3.15.0",
|
||||
"tsd": "^0.17.0",
|
||||
"typescript": "^4.3.5",
|
||||
"xo": "^0.41.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
import { EndpointDefaults, RequestOptions } from "@octokit/types";
|
||||
export declare function parse(options: EndpointDefaults): RequestOptions;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,2 @@
|
||||
declare function coerceToBigInt(value: any): bigint | null;
|
||||
export default coerceToBigInt;
|
||||
@@ -0,0 +1,121 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
|
||||
var AsyncFromSyncIteratorContinuation = require('./AsyncFromSyncIteratorContinuation');
|
||||
var Call = require('./Call');
|
||||
var CreateIterResultObject = require('./CreateIterResultObject');
|
||||
var Get = require('./Get');
|
||||
var GetMethod = require('./GetMethod');
|
||||
var IteratorNext = require('./IteratorNext');
|
||||
var ObjectCreate = require('./ObjectCreate');
|
||||
var Type = require('./Type');
|
||||
|
||||
var SLOT = require('internal-slot');
|
||||
|
||||
var assertRecord = require('../helpers/assertRecord');
|
||||
|
||||
var $AsyncFromSyncIteratorPrototype = GetIntrinsic('%AsyncFromSyncIteratorPrototype%', true) || {
|
||||
next: function next(value) {
|
||||
var O = this; // step 1
|
||||
|
||||
SLOT.assert(O, '[[SyncIteratorRecord]]'); // step 2
|
||||
|
||||
var argsLength = arguments.length;
|
||||
|
||||
return new Promise(function (resolve) { // step 3
|
||||
var syncIteratorRecord = SLOT.get(O, '[[SyncIteratorRecord]]'); // step 4
|
||||
var result;
|
||||
if (argsLength > 0) {
|
||||
result = IteratorNext(syncIteratorRecord['[[Iterator]]'], value); // step 5.a
|
||||
} else { // step 6
|
||||
result = IteratorNext(syncIteratorRecord['[[Iterator]]']);// step 6.a
|
||||
}
|
||||
resolve(AsyncFromSyncIteratorContinuation(result)); // step 8
|
||||
});
|
||||
},
|
||||
'return': function () {
|
||||
var O = this; // step 1
|
||||
|
||||
SLOT.assert(O, '[[SyncIteratorRecord]]'); // step 2
|
||||
|
||||
var valueIsPresent = arguments.length > 0;
|
||||
var value = valueIsPresent ? arguments[0] : void undefined;
|
||||
|
||||
return new Promise(function (resolve, reject) { // step 3
|
||||
var syncIterator = SLOT.get(O, '[[SyncIteratorRecord]]')['[[Iterator]]']; // step 4
|
||||
var iteratorReturn = GetMethod(syncIterator, 'return'); // step 5
|
||||
|
||||
if (typeof iteratorReturn === 'undefined') { // step 7
|
||||
var iterResult = CreateIterResultObject(value, true); // step 7.a
|
||||
Call(resolve, undefined, [iterResult]); // step 7.b
|
||||
return;
|
||||
}
|
||||
var result;
|
||||
if (valueIsPresent) { // step 8
|
||||
result = Call(iteratorReturn, syncIterator, [value]); // step 8.a
|
||||
} else { // step 9
|
||||
result = Call(iteratorReturn, syncIterator); // step 9.a
|
||||
}
|
||||
if (Type(result) !== 'Object') { // step 11
|
||||
Call(reject, undefined, [new $TypeError('Iterator `return` method returned a non-object value.')]); // step 11.a
|
||||
return;
|
||||
}
|
||||
|
||||
resolve(AsyncFromSyncIteratorContinuation(result)); // step 12
|
||||
});
|
||||
},
|
||||
'throw': function () {
|
||||
var O = this; // step 1
|
||||
|
||||
SLOT.assert(O, '[[SyncIteratorRecord]]'); // step 2
|
||||
|
||||
var valueIsPresent = arguments.length > 0;
|
||||
var value = valueIsPresent ? arguments[0] : void undefined;
|
||||
|
||||
return new Promise(function (resolve, reject) { // step 3
|
||||
var syncIterator = SLOT.get(O, '[[SyncIteratorRecord]]')['[[Iterator]]']; // step 4
|
||||
|
||||
var throwMethod = GetMethod(syncIterator, 'throw'); // step 5
|
||||
|
||||
if (typeof throwMethod === 'undefined') { // step 7
|
||||
Call(reject, undefined, [value]); // step 7.a
|
||||
return;
|
||||
}
|
||||
|
||||
var result;
|
||||
if (valueIsPresent) { // step 8
|
||||
result = Call(throwMethod, syncIterator, [value]); // step 8.a
|
||||
} else { // step 9
|
||||
result = Call(throwMethod, syncIterator); // step 9.a
|
||||
}
|
||||
if (Type(result) !== 'Object') { // step 11
|
||||
Call(reject, undefined, [new $TypeError('Iterator `throw` method returned a non-object value.')]); // step 11.a
|
||||
return;
|
||||
}
|
||||
|
||||
resolve(AsyncFromSyncIteratorContinuation(result/* , promiseCapability */)); // step 12
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// https://262.ecma-international.org/10.0/#sec-createasyncfromsynciterator
|
||||
|
||||
module.exports = function CreateAsyncFromSyncIterator(syncIteratorRecord) {
|
||||
assertRecord(Type, 'Iterator Record', 'syncIteratorRecord', syncIteratorRecord);
|
||||
|
||||
// var asyncIterator = ObjectCreate(%AsyncFromSyncIteratorPrototype%, « [[SyncIteratorRecord]] »); // step 1
|
||||
var asyncIterator = ObjectCreate($AsyncFromSyncIteratorPrototype);
|
||||
|
||||
SLOT.set(asyncIterator, '[[SyncIteratorRecord]]', syncIteratorRecord); // step 2
|
||||
|
||||
var nextMethod = Get(asyncIterator, 'next'); // step 3
|
||||
|
||||
return { // steps 3-4
|
||||
'[[Iterator]]': asyncIterator,
|
||||
'[[NextMethod]]': nextMethod,
|
||||
'[[Done]]': false
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,39 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
|
||||
var IsIntegralNumber = require('./IsIntegralNumber');
|
||||
var Type = require('./Type');
|
||||
|
||||
var $slice = callBound('String.prototype.slice');
|
||||
|
||||
// https://262.ecma-international.org/12.0/#sec-stringindexof
|
||||
|
||||
module.exports = function StringIndexOf(string, searchValue, fromIndex) {
|
||||
if (Type(string) !== 'String') {
|
||||
throw new $TypeError('Assertion failed: `string` must be a String');
|
||||
}
|
||||
if (Type(searchValue) !== 'String') {
|
||||
throw new $TypeError('Assertion failed: `searchValue` must be a String');
|
||||
}
|
||||
if (!IsIntegralNumber(fromIndex) || fromIndex < 0) {
|
||||
throw new $TypeError('Assertion failed: `fromIndex` must be a non-negative integer');
|
||||
}
|
||||
|
||||
var len = string.length;
|
||||
if (searchValue === '' && fromIndex <= len) {
|
||||
return fromIndex;
|
||||
}
|
||||
|
||||
var searchLen = searchValue.length;
|
||||
for (var i = fromIndex; i <= (len - searchLen); i += 1) {
|
||||
var candidate = $slice(string, i, i + searchLen);
|
||||
if (candidate === searchValue) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
};
|
||||
@@ -0,0 +1,15 @@
|
||||
The ISC License
|
||||
|
||||
Copyright (c) Isaac Z. Schlueter and Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
var toInteger = require("../../number/to-integer")
|
||||
, value = require("../../object/valid-value")
|
||||
, repeat = require("./repeat")
|
||||
, abs = Math.abs
|
||||
, max = Math.max;
|
||||
|
||||
module.exports = function (fill /*, length*/) {
|
||||
var self = String(value(this)), sLength = self.length, length = arguments[1];
|
||||
|
||||
length = isNaN(length) ? 1 : toInteger(length);
|
||||
fill = repeat.call(String(fill), abs(length));
|
||||
if (length >= 0) return fill.slice(0, max(0, length - sLength)) + self;
|
||||
return self + (sLength + length >= 0 ? "" : fill.slice(length + sLength));
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('every', require('../every'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"callsites","version":"3.1.0","files":{"license":{"checkedAt":1678883669272,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"package.json":{"checkedAt":1678883670525,"integrity":"sha512-8vpKEW7kWn4Jzt279zgy4UiOGf6Qj/vx3vJIo4dr8FIZUbgS3+XnMhfj46lFVZIr6S6d4QD5ujpqe5LlcIj8tA==","mode":420,"size":622},"index.d.ts":{"checkedAt":1678883670525,"integrity":"sha512-5IqKFhAHCudlwOGcnRNWKs+QSXvbh0yG0RP/U2eazgh/yoQn+ii5BLXfr1H7l1gKMifwejLO+QuwkgHnmmD3Jg==","mode":420,"size":2351},"index.js":{"checkedAt":1678883670527,"integrity":"sha512-nG2TU2oh1PYNYmRYi/uuD4KLMXAWD2bFGQvWw1FZPWamK/5dAQ5LjFdNxxnQvnE8eShTAe1mr3uyiKs/NiGBnA==","mode":420,"size":363},"readme.md":{"checkedAt":1678883670527,"integrity":"sha512-8+VOM4w/6226KA9PfH0FL6ktYwBsl6aM6CcEYI7lfFdwbtXuzEU21LwYHRnMk91mqr+XOE4nFY+7LbFvvwhfbw==","mode":420,"size":1887}}}
|
||||
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [ljharb]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: npm/is-boolean-object
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./is-implemented")() ? Math.fround : require("./shim");
|
||||
@@ -0,0 +1,62 @@
|
||||
# @sveltejs/vite-plugin-svelte
|
||||
|
||||
## usage
|
||||
|
||||
```js
|
||||
// vite.config.js
|
||||
const svelte = require('@sveltejs/vite-plugin-svelte');
|
||||
const { defineConfig } = require('vite');
|
||||
|
||||
module.exports = defineConfig(({ command, mode }) => {
|
||||
const isProduction = mode === 'production';
|
||||
return {
|
||||
plugins: [
|
||||
svelte({
|
||||
/* inline options here */
|
||||
})
|
||||
],
|
||||
build: {
|
||||
minify: isProduction
|
||||
}
|
||||
};
|
||||
});
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
vite-plugin-svelte reads the vite configuration and uses an appropriate default configuration
|
||||
|
||||
It also loads `svelte.config.js` (or `svelte.config.cjs`) from the configured `vite.root` directory automatically.
|
||||
|
||||
Options are applied in the following order:
|
||||
|
||||
1. vite-plugin-svelte defaults
|
||||
2. svelte.config.js in vite.root
|
||||
3. inline options passed in vite.config.js
|
||||
|
||||
It supports all options from rollup-plugin-svelte and some additional options to tailor the plugin to your needs.
|
||||
|
||||
For more Information check [options.ts](src/utils/options.ts)
|
||||
|
||||
## Integrations for other vite plugins
|
||||
|
||||
### Add an extra preprocessor
|
||||
|
||||
vite-plugin-svelte uses the svelte compiler to split `.svelte` files into js and css and the svelte compiler requires that the css passed to it is already plain css.
|
||||
If you are building a plugin for vite that transforms css and want it to work out of the box with vite-plugin-svelte, you can add a `sveltePreprocess: PreprocessorGroup` to your vite plugin definition and vite-plugin-svelte will pick it up and add it to the list of svelte preprocessors used at runtime.
|
||||
|
||||
```js
|
||||
const vitePluginCoolCss = {
|
||||
name: 'vite-plugin-coolcss',
|
||||
sveltePreprocess: {
|
||||
/* your PreprocessorGroup here */
|
||||
}
|
||||
/*... your cool css plugin implementation here .. */
|
||||
};
|
||||
```
|
||||
|
||||
Check out [windicss](https://github.com/windicss/vite-plugin-windicss/blob/517eca0cebc879d931c6578a08accadfb112157c/packages/vite-plugin-windicss/src/index.ts#L167)
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('union', require('../union'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "proto-list",
|
||||
"version": "1.2.4",
|
||||
"description": "A utility for managing a prototype chain",
|
||||
"main": "./proto-list.js",
|
||||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
||||
"scripts": {
|
||||
"test": "tap test/*.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/isaacs/proto-list"
|
||||
},
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"tap": "0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import DataHandler from './DataHandler.js';
|
||||
import Datatable from './Datatable.svelte';
|
||||
import Th from './Th.svelte';
|
||||
import ThFilter from './ThFilter.svelte';
|
||||
import Pagination from './Pagination.svelte';
|
||||
import RowCount from './RowCount.svelte';
|
||||
import RowsPerPage from './RowsPerPage.svelte';
|
||||
import Search from './Search.svelte';
|
||||
export { DataHandler, Datatable, Th, ThFilter, Pagination, RowCount, RowsPerPage, Search };
|
||||
export type Internationalization = {
|
||||
search?: string;
|
||||
show?: string;
|
||||
entries?: string;
|
||||
filter?: string;
|
||||
rowCount?: string;
|
||||
noRows?: string;
|
||||
previous?: string;
|
||||
next?: string;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0.00528,"49":0,"50":0,"51":0,"52":0.02114,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0.06869,"61":0.00528,"62":0,"63":0,"64":0,"65":0,"66":0.05812,"67":0,"68":0.00528,"69":0.00528,"70":0,"71":0,"72":0.01057,"73":0,"74":0,"75":0.00528,"76":0.00528,"77":0.00528,"78":0.04756,"79":0.00528,"80":0.00528,"81":0.00528,"82":0,"83":0.00528,"84":0,"85":0.00528,"86":0,"87":0.00528,"88":0.00528,"89":0,"90":0,"91":0.05284,"92":0,"93":0.02114,"94":0.21136,"95":0.01057,"96":0,"97":0,"98":0.00528,"99":0.00528,"100":0.00528,"101":0.00528,"102":0.20079,"103":0.02114,"104":0.01057,"105":0.01057,"106":0.01057,"107":0.0317,"108":0.09511,"109":2.12945,"110":1.51122,"111":0.00528,"112":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,"36":0,"37":0,"38":0.00528,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.01057,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0.00528,"66":0,"67":0,"68":0.01057,"69":0.00528,"70":0.01057,"71":0.00528,"72":0.01057,"73":0.00528,"74":0.01057,"75":0.01057,"76":0.01057,"77":0.01057,"78":0.01585,"79":0.09511,"80":0.02114,"81":0.02114,"83":0.01585,"84":0.01057,"85":0.02114,"86":0.10568,"87":0.02642,"88":0.02114,"89":0.04227,"90":0.01585,"91":0.01057,"92":0.02642,"93":0,"94":0.02642,"95":0.0317,"96":0.02642,"97":0.00528,"98":0.01057,"99":0.00528,"100":0.08454,"101":0.21664,"102":0.09511,"103":0.12682,"104":0.08983,"105":0.04756,"106":0.04756,"107":0.5601,"108":0.29062,"109":6.19285,"110":4.1955,"111":0.00528,"112":0,"113":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"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.00528,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0.00528,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0.00528,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0.00528,"75":0.00528,"76":0,"77":0,"78":0,"79":0,"80":0.00528,"81":0,"82":0,"83":0,"84":0,"85":0.01057,"86":0,"87":0,"88":0,"89":0.01057,"90":0,"91":0,"92":0.00528,"93":0.11096,"94":0.97226,"95":0.45971,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0.00528,"79":0,"80":0.00528,"81":0.00528,"83":0.00528,"84":0.00528,"85":0.00528,"86":0.00528,"87":0.00528,"88":0.00528,"89":0.00528,"90":0.00528,"91":0,"92":0.00528,"93":0,"94":0,"95":0.02114,"96":0.00528,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0.00528,"103":0.00528,"104":0.01585,"105":0.00528,"106":0.00528,"107":0.04227,"108":0.14795,"109":1.9815,"110":2.6103},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.02114,"14":0.08983,"15":0.02114,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0.05812,"10.1":0,"11.1":0.01585,"12.1":0.02114,"13.1":0.13738,"14.1":0.21136,"15.1":0.04756,"15.2-15.3":0.03699,"15.4":0.08454,"15.5":0.11096,"15.6":0.57596,"16.0":0.08454,"16.1":0.32761,"16.2":0.66578,"16.3":0.68164,"16.4":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00305,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0.00915,"9.3":0.07627,"10.0-10.2":0.0122,"10.3":0.13118,"11.0-11.2":0.04271,"11.3-11.4":0.0244,"12.0-12.1":0.05491,"12.2-12.5":0.46064,"13.0-13.1":0.0244,"13.2":0.02135,"13.3":0.03051,"13.4-13.7":0.08847,"14.0-14.4":0.34777,"14.5-14.8":0.74435,"15.0-15.1":0.19829,"15.2-15.3":0.28981,"15.4":0.32641,"15.5":0.67723,"15.6":2.46183,"16.0":3.2977,"16.1":7.79428,"16.2":7.47092,"16.3":4.75589,"16.4":0.0244},P:{"4":0.18584,"20":1.58998,"5.0-5.4":0.01032,"6.2-6.4":0,"7.2-7.4":0.05162,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0.01032,"12.0":0,"13.0":0.03097,"14.0":0.02065,"15.0":0.02065,"16.0":0.0413,"17.0":0.05162,"18.0":0.07227,"19.0":2.33334},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0.01657,"4.2-4.3":0.02899,"4.4":0,"4.4.3-4.4.4":0.12012},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0.00528,"9":0,"10":0,"11":0.05284,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":0.03301},H:{"0":0.37058},L:{"0":34.91978},R:{_:"0"},M:{"0":0.69797},Q:{"13.1":0}};
|
||||
@@ -0,0 +1,54 @@
|
||||
declare const mimicFn: {
|
||||
/**
|
||||
Make a function mimic another one. It will copy over the properties `name`, `length`, `displayName`, and any custom properties you may have set.
|
||||
|
||||
@param to - Mimicking function.
|
||||
@param from - Function to mimic.
|
||||
@returns The modified `to` function.
|
||||
|
||||
@example
|
||||
```
|
||||
import mimicFn = require('mimic-fn');
|
||||
|
||||
function foo() {}
|
||||
foo.unicorn = '🦄';
|
||||
|
||||
function wrapper() {
|
||||
return foo();
|
||||
}
|
||||
|
||||
console.log(wrapper.name);
|
||||
//=> 'wrapper'
|
||||
|
||||
mimicFn(wrapper, foo);
|
||||
|
||||
console.log(wrapper.name);
|
||||
//=> 'foo'
|
||||
|
||||
console.log(wrapper.unicorn);
|
||||
//=> '🦄'
|
||||
```
|
||||
*/
|
||||
<
|
||||
ArgumentsType extends unknown[],
|
||||
ReturnType,
|
||||
FunctionType extends (...arguments: ArgumentsType) => ReturnType
|
||||
>(
|
||||
to: (...arguments: ArgumentsType) => ReturnType,
|
||||
from: FunctionType
|
||||
): FunctionType;
|
||||
|
||||
// TODO: Remove this for the next major release, refactor the whole definition to:
|
||||
// declare function mimicFn<
|
||||
// ArgumentsType extends unknown[],
|
||||
// ReturnType,
|
||||
// FunctionType extends (...arguments: ArgumentsType) => ReturnType
|
||||
// >(
|
||||
// to: (...arguments: ArgumentsType) => ReturnType,
|
||||
// from: FunctionType
|
||||
// ): FunctionType;
|
||||
// export = mimicFn;
|
||||
default: typeof mimicFn;
|
||||
};
|
||||
|
||||
export = mimicFn;
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"SubscriptionLoggable.js","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLoggable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,OAAO,oBAAoB;IAAjC;QACS,kBAAa,GAAsB,EAAE,CAAC;IAiB/C,CAAC;IAbC,kBAAkB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,oBAAoB,CAAC,KAAa;QAChC,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5C,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACnD,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI,eAAe,CAC3C,kBAAkB,CAAC,eAAe,EAClC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CACrB,CAAC;IACJ,CAAC;CACF"}
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"@sveltejs/vite-plugin-svelte","version":"1.0.0-next.6","files":{"LICENSE":{"checkedAt":1678883674074,"integrity":"sha512-OrT8pFW4B2XbvqEXQtR+EK+3mAlmzUJ7IATExk7VRBV5sKmzM9PEON/gJz4zY6TFJalSbONd2BbTnz/bazxZLw==","mode":420,"size":1139},"package.json":{"checkedAt":1678883674074,"integrity":"sha512-KoKYsiLaML/x05dd8BLLESUyCaFODnnY6Qfliq6oRDLvFBR7PnQhhJ+hFGeD/GCUdw4sWxtZ2+XnfqpWllWg2g==","mode":420,"size":1597},"CHANGELOG.md":{"checkedAt":1678883674074,"integrity":"sha512-Q5TjWvwbAY4LzLLz//q81BKVfNDRSbE62Uo+S1O6DgfGQFLeEtA65mjuGIdkx2hpgUziZ0+CfJy+eh4Nd2x/UA==","mode":420,"size":422},"dist/index.js":{"checkedAt":1678883674074,"integrity":"sha512-59KTBqnDtEnvpa+GUyhOtZgfYtzdjRBl5jLbIE0is+XlMFisMDfRG0tyvf5HE3eQBbxc+IMI9K5vVhcADNlH8w==","mode":420,"size":26338},"README.md":{"checkedAt":1678883674074,"integrity":"sha512-P8waEsljsWo9Ii1+ojhLcB78F1k0Bx408tWCtR3gQmcvOyZGXgovnvI6GON5Cjqa1CEQZgkSuVBNERo92wAujw==","mode":420,"size":1857},"dist/index.d.ts":{"checkedAt":1678883674074,"integrity":"sha512-5e8Cp4lHG+MoJ0JudoKRyLEhlHQWKoim6822PGt8xyl/r5P9cXxHShLzxSLNXUknDctv8Tvl0HiIPjS1uQkBNQ==","mode":420,"size":6673}}}
|
||||
@@ -0,0 +1,97 @@
|
||||
// Ported from https://github.com/mafintosh/pump with
|
||||
// permission from the author, Mathias Buus (@mafintosh).
|
||||
'use strict';
|
||||
|
||||
var eos;
|
||||
|
||||
function once(callback) {
|
||||
var called = false;
|
||||
return function () {
|
||||
if (called) return;
|
||||
called = true;
|
||||
callback.apply(void 0, arguments);
|
||||
};
|
||||
}
|
||||
|
||||
var _require$codes = require('../../../errors').codes,
|
||||
ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
|
||||
ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
||||
|
||||
function noop(err) {
|
||||
// Rethrow the error if it exists to avoid swallowing it
|
||||
if (err) throw err;
|
||||
}
|
||||
|
||||
function isRequest(stream) {
|
||||
return stream.setHeader && typeof stream.abort === 'function';
|
||||
}
|
||||
|
||||
function destroyer(stream, reading, writing, callback) {
|
||||
callback = once(callback);
|
||||
var closed = false;
|
||||
stream.on('close', function () {
|
||||
closed = true;
|
||||
});
|
||||
if (eos === undefined) eos = require('./end-of-stream');
|
||||
eos(stream, {
|
||||
readable: reading,
|
||||
writable: writing
|
||||
}, function (err) {
|
||||
if (err) return callback(err);
|
||||
closed = true;
|
||||
callback();
|
||||
});
|
||||
var destroyed = false;
|
||||
return function (err) {
|
||||
if (closed) return;
|
||||
if (destroyed) return;
|
||||
destroyed = true; // request.destroy just do .end - .abort is what we want
|
||||
|
||||
if (isRequest(stream)) return stream.abort();
|
||||
if (typeof stream.destroy === 'function') return stream.destroy();
|
||||
callback(err || new ERR_STREAM_DESTROYED('pipe'));
|
||||
};
|
||||
}
|
||||
|
||||
function call(fn) {
|
||||
fn();
|
||||
}
|
||||
|
||||
function pipe(from, to) {
|
||||
return from.pipe(to);
|
||||
}
|
||||
|
||||
function popCallback(streams) {
|
||||
if (!streams.length) return noop;
|
||||
if (typeof streams[streams.length - 1] !== 'function') return noop;
|
||||
return streams.pop();
|
||||
}
|
||||
|
||||
function pipeline() {
|
||||
for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
streams[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
var callback = popCallback(streams);
|
||||
if (Array.isArray(streams[0])) streams = streams[0];
|
||||
|
||||
if (streams.length < 2) {
|
||||
throw new ERR_MISSING_ARGS('streams');
|
||||
}
|
||||
|
||||
var error;
|
||||
var destroys = streams.map(function (stream, i) {
|
||||
var reading = i < streams.length - 1;
|
||||
var writing = i > 0;
|
||||
return destroyer(stream, reading, writing, function (err) {
|
||||
if (!error) error = err;
|
||||
if (err) destroys.forEach(call);
|
||||
if (reading) return;
|
||||
destroys.forEach(call);
|
||||
callback(error);
|
||||
});
|
||||
});
|
||||
return streams.reduce(pipe);
|
||||
}
|
||||
|
||||
module.exports = pipeline;
|
||||
@@ -0,0 +1,59 @@
|
||||
"use strict";
|
||||
var __values = (this && this.__values) || function(o) {
|
||||
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
||||
if (m) return m.call(o);
|
||||
if (o && typeof o.length === "number") return {
|
||||
next: function () {
|
||||
if (o && i >= o.length) o = void 0;
|
||||
return { value: o && o[i++], done: !o };
|
||||
}
|
||||
};
|
||||
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.bufferToggle = void 0;
|
||||
var Subscription_1 = require("../Subscription");
|
||||
var lift_1 = require("../util/lift");
|
||||
var innerFrom_1 = require("../observable/innerFrom");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
var noop_1 = require("../util/noop");
|
||||
var arrRemove_1 = require("../util/arrRemove");
|
||||
function bufferToggle(openings, closingSelector) {
|
||||
return lift_1.operate(function (source, subscriber) {
|
||||
var buffers = [];
|
||||
innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (openValue) {
|
||||
var buffer = [];
|
||||
buffers.push(buffer);
|
||||
var closingSubscription = new Subscription_1.Subscription();
|
||||
var emitBuffer = function () {
|
||||
arrRemove_1.arrRemove(buffers, buffer);
|
||||
subscriber.next(buffer);
|
||||
closingSubscription.unsubscribe();
|
||||
};
|
||||
closingSubscription.add(innerFrom_1.innerFrom(closingSelector(openValue)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, emitBuffer, noop_1.noop)));
|
||||
}, noop_1.noop));
|
||||
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
|
||||
var e_1, _a;
|
||||
try {
|
||||
for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
|
||||
var buffer = buffers_1_1.value;
|
||||
buffer.push(value);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
}, function () {
|
||||
while (buffers.length > 0) {
|
||||
subscriber.next(buffers.shift());
|
||||
}
|
||||
subscriber.complete();
|
||||
}));
|
||||
});
|
||||
}
|
||||
exports.bufferToggle = bufferToggle;
|
||||
//# sourceMappingURL=bufferToggle.js.map
|
||||
Reference in New Issue
Block a user