new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"name":"retry","version":"0.13.1","files":{"License":{"checkedAt":1678883670503,"integrity":"sha512-fLQVZQWTIYhZpFRnb+crb+G6NeP66k8lrK9ZZFx3BSQ6z8OUOehS0xQF8K/r7jawZs53EyOFywv0eLjqiGu52A==","mode":420,"size":1139},"example/dns.js":{"checkedAt":1678883670503,"integrity":"sha512-4r9QnmsbzUm4z8ZhgViC1nSRoAnu9Hc8Sa/PdBi2B9Ve3nFzbBuhCO1Daz8qQhBR88n7TdbJj+dLq12M6lOy/Q==","mode":420,"size":687},"lib/retry_operation.js":{"checkedAt":1678883670503,"integrity":"sha512-FJHtPjhctuCZVFD7nUYNJLScPD6BkbI5Iul3yyzUD9fIgts2zObJWBxdlDJpxJkv/qUOrHEUIqtpmcDjC5X7Nw==","mode":420,"size":3716},"index.js":{"checkedAt":1678883670503,"integrity":"sha512-382XJ0HovGREsDKLixMXA52F4iUCkY8yvWfjbm1qnI6MiUjan+lWOEcNxyK1yY9GrAvWNfHmeWqZ/pceYLJA4Q==","mode":420,"size":40},"lib/retry.js":{"checkedAt":1678883670503,"integrity":"sha512-suncHpqWq+GzTsdd11h5tqrDI7FlZ9Ge8JxwQ0gs6f8J9bNiPel7i0uKr6yLmUABrqv2ypfFYUlAz3ihc/tUBQ==","mode":420,"size":2345},"example/stop.js":{"checkedAt":1678883670503,"integrity":"sha512-+d6rkgXCo8k+5cuviXVh8TLhIs+YC3zI2i4AX1qc5yVwAkxt2TXIbiiEiP8bGf7aUUDeHB4vizqGCH4FbmiFxQ==","mode":420,"size":888},"package.json":{"checkedAt":1678883670504,"integrity":"sha512-8M+nI4apeAJt/Mc9OVxOPYP4FMrCn3lVmoCKLOYGg/2w5Bz+pUhDXdskFSmJHLk6l7CaqqBLWUBy9Xc9blOR8A==","mode":420,"size":1068},"README.md":{"checkedAt":1678883670505,"integrity":"sha512-9scQhPUp+iT2kIxVtBxlyp/czlQBzTHTiEIMQBBm2fHdJ/qS3Gl3Zr71ou52igDnL8WvBPijuhW5D0ixPeEIKA==","mode":420,"size":8969}}}
|
||||
@@ -0,0 +1,7 @@
|
||||
if(typeof cptable === 'undefined') cptable = {};
|
||||
cptable[52936] = (function(){ var d = [], e = {}, D = [], j;
|
||||
D[0] = "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}<7D>€<7F><E282AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>".split("");
|
||||
for(j = 0; j != D[0].length; ++j) if(D[0][j].charCodeAt(0) !== 0xFFFD) { e[D[0][j]] = 0 + j; d[0 + j] = D[0][j];}
|
||||
D[126] = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFA3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>~<7E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>".split("");
|
||||
for(j = 0; j != D[126].length; ++j) if(D[126][j].charCodeAt(0) !== 0xFFFD) { e[D[126][j]] = 32256 + j; d[32256 + j] = D[126][j];}
|
||||
return {"enc": e, "dec": d }; })();
|
||||
@@ -0,0 +1,174 @@
|
||||
"use strict";
|
||||
|
||||
var constants = require("./constants");
|
||||
|
||||
|
||||
|
||||
function formatAuth(urlObj, options)
|
||||
{
|
||||
if (urlObj.auth && !options.removeAuth && (urlObj.extra.relation.maximumHost || options.output===constants.ABSOLUTE))
|
||||
{
|
||||
return urlObj.auth + "@";
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
function formatHash(urlObj, options)
|
||||
{
|
||||
return urlObj.hash ? urlObj.hash : "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
function formatHost(urlObj, options)
|
||||
{
|
||||
if (urlObj.host.full && (urlObj.extra.relation.maximumAuth || options.output===constants.ABSOLUTE))
|
||||
{
|
||||
return urlObj.host.full;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
function formatPath(urlObj, options)
|
||||
{
|
||||
var str = "";
|
||||
|
||||
var absolutePath = urlObj.path.absolute.string;
|
||||
var relativePath = urlObj.path.relative.string;
|
||||
var resource = showResource(urlObj, options);
|
||||
|
||||
if (urlObj.extra.relation.maximumHost || options.output===constants.ABSOLUTE || options.output===constants.ROOT_RELATIVE)
|
||||
{
|
||||
str = absolutePath;
|
||||
}
|
||||
else if (relativePath.length<=absolutePath.length && options.output===constants.SHORTEST || options.output===constants.PATH_RELATIVE)
|
||||
{
|
||||
str = relativePath;
|
||||
|
||||
if (str === "")
|
||||
{
|
||||
var query = showQuery(urlObj,options) && !!getQuery(urlObj,options);
|
||||
|
||||
if (urlObj.extra.relation.maximumPath && !resource)
|
||||
{
|
||||
str = "./";
|
||||
}
|
||||
else if (urlObj.extra.relation.overridesQuery && !resource && !query)
|
||||
{
|
||||
str = "./";
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
str = absolutePath;
|
||||
}
|
||||
|
||||
if ( str==="/" && !resource && options.removeRootTrailingSlash && (!urlObj.extra.relation.minimumPort || options.output===constants.ABSOLUTE) )
|
||||
{
|
||||
str = "";
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function formatPort(urlObj, options)
|
||||
{
|
||||
if (urlObj.port && !urlObj.extra.portIsDefault && urlObj.extra.relation.maximumHost)
|
||||
{
|
||||
return ":" + urlObj.port;
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
function formatQuery(urlObj, options)
|
||||
{
|
||||
return showQuery(urlObj,options) ? getQuery(urlObj, options) : "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
function formatResource(urlObj, options)
|
||||
{
|
||||
return showResource(urlObj,options) ? urlObj.resource : "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
function formatScheme(urlObj, options)
|
||||
{
|
||||
var str = "";
|
||||
|
||||
if (urlObj.extra.relation.maximumHost || options.output===constants.ABSOLUTE)
|
||||
{
|
||||
if (!urlObj.extra.relation.minimumScheme || !options.schemeRelative || options.output===constants.ABSOLUTE)
|
||||
{
|
||||
str += urlObj.scheme + "://";
|
||||
}
|
||||
else
|
||||
{
|
||||
str += "//";
|
||||
}
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function formatUrl(urlObj, options)
|
||||
{
|
||||
var url = "";
|
||||
|
||||
url += formatScheme(urlObj, options);
|
||||
url += formatAuth(urlObj, options);
|
||||
url += formatHost(urlObj, options);
|
||||
url += formatPort(urlObj, options);
|
||||
url += formatPath(urlObj, options);
|
||||
url += formatResource(urlObj, options);
|
||||
url += formatQuery(urlObj, options);
|
||||
url += formatHash(urlObj, options);
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function getQuery(urlObj, options)
|
||||
{
|
||||
var stripQuery = options.removeEmptyQueries && urlObj.extra.relation.minimumPort;
|
||||
|
||||
return urlObj.query.string[ stripQuery ? "stripped" : "full" ];
|
||||
}
|
||||
|
||||
|
||||
|
||||
function showQuery(urlObj, options)
|
||||
{
|
||||
return !urlObj.extra.relation.minimumQuery || options.output===constants.ABSOLUTE || options.output===constants.ROOT_RELATIVE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
function showResource(urlObj, options)
|
||||
{
|
||||
var removeIndex = options.removeDirectoryIndexes && urlObj.extra.resourceIsIndex;
|
||||
var removeMatchingResource = urlObj.extra.relation.minimumResource && options.output!==constants.ABSOLUTE && options.output!==constants.ROOT_RELATIVE;
|
||||
|
||||
return !!urlObj.resource && !removeMatchingResource && !removeIndex;
|
||||
}
|
||||
|
||||
|
||||
|
||||
module.exports = formatUrl;
|
||||
@@ -0,0 +1,54 @@
|
||||
import { OperatorFunction } from '../types';
|
||||
/**
|
||||
* Buffers the source Observable values until the size hits the maximum
|
||||
* `bufferSize` given.
|
||||
*
|
||||
* <span class="informal">Collects values from the past as an array, and emits
|
||||
* that array only when its size reaches `bufferSize`.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* Buffers a number of values from the source Observable by `bufferSize` then
|
||||
* emits the buffer and clears it, and starts a new buffer each
|
||||
* `startBufferEvery` values. If `startBufferEvery` is not provided or is
|
||||
* `null`, then new buffers are started immediately at the start of the source
|
||||
* and when each buffer closes and is emitted.
|
||||
*
|
||||
* ## Examples
|
||||
*
|
||||
* Emit the last two click events as an array
|
||||
*
|
||||
* ```ts
|
||||
* import { fromEvent, bufferCount } from 'rxjs';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const buffered = clicks.pipe(bufferCount(2));
|
||||
* buffered.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* On every click, emit the last two click events as an array
|
||||
*
|
||||
* ```ts
|
||||
* import { fromEvent, bufferCount } from 'rxjs';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const buffered = clicks.pipe(bufferCount(2, 1));
|
||||
* buffered.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* @see {@link buffer}
|
||||
* @see {@link bufferTime}
|
||||
* @see {@link bufferToggle}
|
||||
* @see {@link bufferWhen}
|
||||
* @see {@link pairwise}
|
||||
* @see {@link windowCount}
|
||||
*
|
||||
* @param {number} bufferSize The maximum size of the buffer emitted.
|
||||
* @param {number} [startBufferEvery] Interval at which to start a new buffer.
|
||||
* For example if `startBufferEvery` is `2`, then a new buffer will be started
|
||||
* on every other value from the source. A new buffer is started at the
|
||||
* beginning of the source by default.
|
||||
* @return A function that returns an Observable of arrays of buffered values.
|
||||
*/
|
||||
export declare function bufferCount<T>(bufferSize: number, startBufferEvery?: number | null): OperatorFunction<T, T[]>;
|
||||
//# sourceMappingURL=bufferCount.d.ts.map
|
||||
@@ -0,0 +1,38 @@
|
||||
import { AsyncAction } from './AsyncAction';
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
|
||||
export class AnimationFrameScheduler extends AsyncScheduler {
|
||||
public flush(action?: AsyncAction<any>): void {
|
||||
this._active = true;
|
||||
// The async id that effects a call to flush is stored in _scheduled.
|
||||
// Before executing an action, it's necessary to check the action's async
|
||||
// id to determine whether it's supposed to be executed in the current
|
||||
// flush.
|
||||
// Previous implementations of this method used a count to determine this,
|
||||
// but that was unsound, as actions that are unsubscribed - i.e. cancelled -
|
||||
// are removed from the actions array and that can shift actions that are
|
||||
// scheduled to be executed in a subsequent flush into positions at which
|
||||
// they are executed within the current flush.
|
||||
const flushId = this._scheduled;
|
||||
this._scheduled = undefined;
|
||||
|
||||
const { actions } = this;
|
||||
let error: any;
|
||||
action = action || actions.shift()!;
|
||||
|
||||
do {
|
||||
if ((error = action.execute(action.state, action.delay))) {
|
||||
break;
|
||||
}
|
||||
} while ((action = actions[0]) && action.id === flushId && actions.shift());
|
||||
|
||||
this._active = false;
|
||||
|
||||
if (error) {
|
||||
while ((action = actions[0]) && action.id === flushId && actions.shift()) {
|
||||
action.unsubscribe();
|
||||
}
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,134 @@
|
||||
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
||||
if (kind === "m") throw new TypeError("Private method is not writable");
|
||||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
||||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
||||
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
||||
};
|
||||
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
||||
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
||||
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
||||
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
||||
};
|
||||
var _FormDataEncoder_instances, _FormDataEncoder_CRLF, _FormDataEncoder_CRLF_BYTES, _FormDataEncoder_CRLF_BYTES_LENGTH, _FormDataEncoder_DASHES, _FormDataEncoder_encoder, _FormDataEncoder_footer, _FormDataEncoder_form, _FormDataEncoder_options, _FormDataEncoder_getFieldHeader, _FormDataEncoder_getContentLength;
|
||||
import { getStreamIterator } from "./util/getStreamIterator.js";
|
||||
import { createBoundary } from "./util/createBoundary.js";
|
||||
import { normalizeValue } from "./util/normalizeValue.js";
|
||||
import { isPlainObject } from "./util/isPlainObject.js";
|
||||
import { proxyHeaders } from "./util/proxyHeaders.js";
|
||||
import { isFormData } from "./util/isFormData.js";
|
||||
import { escapeName } from "./util/escapeName.js";
|
||||
import { isFile } from "./util/isFile.js";
|
||||
const defaultOptions = {
|
||||
enableAdditionalHeaders: false
|
||||
};
|
||||
const readonlyProp = { writable: false, configurable: false };
|
||||
export class FormDataEncoder {
|
||||
constructor(form, boundaryOrOptions, options) {
|
||||
_FormDataEncoder_instances.add(this);
|
||||
_FormDataEncoder_CRLF.set(this, "\r\n");
|
||||
_FormDataEncoder_CRLF_BYTES.set(this, void 0);
|
||||
_FormDataEncoder_CRLF_BYTES_LENGTH.set(this, void 0);
|
||||
_FormDataEncoder_DASHES.set(this, "-".repeat(2));
|
||||
_FormDataEncoder_encoder.set(this, new TextEncoder());
|
||||
_FormDataEncoder_footer.set(this, void 0);
|
||||
_FormDataEncoder_form.set(this, void 0);
|
||||
_FormDataEncoder_options.set(this, void 0);
|
||||
if (!isFormData(form)) {
|
||||
throw new TypeError("Expected first argument to be a FormData instance.");
|
||||
}
|
||||
let boundary;
|
||||
if (isPlainObject(boundaryOrOptions)) {
|
||||
options = boundaryOrOptions;
|
||||
}
|
||||
else {
|
||||
boundary = boundaryOrOptions;
|
||||
}
|
||||
if (!boundary) {
|
||||
boundary = createBoundary();
|
||||
}
|
||||
if (typeof boundary !== "string") {
|
||||
throw new TypeError("Expected boundary argument to be a string.");
|
||||
}
|
||||
if (options && !isPlainObject(options)) {
|
||||
throw new TypeError("Expected options argument to be an object.");
|
||||
}
|
||||
__classPrivateFieldSet(this, _FormDataEncoder_form, Array.from(form.entries()), "f");
|
||||
__classPrivateFieldSet(this, _FormDataEncoder_options, { ...defaultOptions, ...options }, "f");
|
||||
__classPrivateFieldSet(this, _FormDataEncoder_CRLF_BYTES, __classPrivateFieldGet(this, _FormDataEncoder_encoder, "f").encode(__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f")), "f");
|
||||
__classPrivateFieldSet(this, _FormDataEncoder_CRLF_BYTES_LENGTH, __classPrivateFieldGet(this, _FormDataEncoder_CRLF_BYTES, "f").byteLength, "f");
|
||||
this.boundary = `form-data-boundary-${boundary}`;
|
||||
this.contentType = `multipart/form-data; boundary=${this.boundary}`;
|
||||
__classPrivateFieldSet(this, _FormDataEncoder_footer, __classPrivateFieldGet(this, _FormDataEncoder_encoder, "f").encode(`${__classPrivateFieldGet(this, _FormDataEncoder_DASHES, "f")}${this.boundary}${__classPrivateFieldGet(this, _FormDataEncoder_DASHES, "f")}${__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f").repeat(2)}`), "f");
|
||||
const headers = {
|
||||
"Content-Type": this.contentType
|
||||
};
|
||||
const contentLength = __classPrivateFieldGet(this, _FormDataEncoder_instances, "m", _FormDataEncoder_getContentLength).call(this);
|
||||
if (contentLength) {
|
||||
this.contentLength = contentLength;
|
||||
headers["Content-Length"] = contentLength;
|
||||
}
|
||||
this.headers = proxyHeaders(Object.freeze(headers));
|
||||
Object.defineProperties(this, {
|
||||
boundary: readonlyProp,
|
||||
contentType: readonlyProp,
|
||||
contentLength: readonlyProp,
|
||||
headers: readonlyProp
|
||||
});
|
||||
}
|
||||
getContentLength() {
|
||||
return this.contentLength == null ? undefined : Number(this.contentLength);
|
||||
}
|
||||
*values() {
|
||||
for (const [name, raw] of __classPrivateFieldGet(this, _FormDataEncoder_form, "f")) {
|
||||
const value = isFile(raw) ? raw : __classPrivateFieldGet(this, _FormDataEncoder_encoder, "f").encode(normalizeValue(raw));
|
||||
yield __classPrivateFieldGet(this, _FormDataEncoder_instances, "m", _FormDataEncoder_getFieldHeader).call(this, name, value);
|
||||
yield value;
|
||||
yield __classPrivateFieldGet(this, _FormDataEncoder_CRLF_BYTES, "f");
|
||||
}
|
||||
yield __classPrivateFieldGet(this, _FormDataEncoder_footer, "f");
|
||||
}
|
||||
async *encode() {
|
||||
for (const part of this.values()) {
|
||||
if (isFile(part)) {
|
||||
yield* getStreamIterator(part.stream());
|
||||
}
|
||||
else {
|
||||
yield part;
|
||||
}
|
||||
}
|
||||
}
|
||||
[(_FormDataEncoder_CRLF = new WeakMap(), _FormDataEncoder_CRLF_BYTES = new WeakMap(), _FormDataEncoder_CRLF_BYTES_LENGTH = new WeakMap(), _FormDataEncoder_DASHES = new WeakMap(), _FormDataEncoder_encoder = new WeakMap(), _FormDataEncoder_footer = new WeakMap(), _FormDataEncoder_form = new WeakMap(), _FormDataEncoder_options = new WeakMap(), _FormDataEncoder_instances = new WeakSet(), _FormDataEncoder_getFieldHeader = function _FormDataEncoder_getFieldHeader(name, value) {
|
||||
let header = "";
|
||||
header += `${__classPrivateFieldGet(this, _FormDataEncoder_DASHES, "f")}${this.boundary}${__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f")}`;
|
||||
header += `Content-Disposition: form-data; name="${escapeName(name)}"`;
|
||||
if (isFile(value)) {
|
||||
header += `; filename="${escapeName(value.name)}"${__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f")}`;
|
||||
header += `Content-Type: ${value.type || "application/octet-stream"}`;
|
||||
}
|
||||
const size = isFile(value) ? value.size : value.byteLength;
|
||||
if (__classPrivateFieldGet(this, _FormDataEncoder_options, "f").enableAdditionalHeaders === true
|
||||
&& size != null
|
||||
&& !isNaN(size)) {
|
||||
header += `${__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f")}Content-Length: ${isFile(value) ? value.size : value.byteLength}`;
|
||||
}
|
||||
return __classPrivateFieldGet(this, _FormDataEncoder_encoder, "f").encode(`${header}${__classPrivateFieldGet(this, _FormDataEncoder_CRLF, "f").repeat(2)}`);
|
||||
}, _FormDataEncoder_getContentLength = function _FormDataEncoder_getContentLength() {
|
||||
let length = 0;
|
||||
for (const [name, raw] of __classPrivateFieldGet(this, _FormDataEncoder_form, "f")) {
|
||||
const value = isFile(raw) ? raw : __classPrivateFieldGet(this, _FormDataEncoder_encoder, "f").encode(normalizeValue(raw));
|
||||
const size = isFile(value) ? value.size : value.byteLength;
|
||||
if (size == null || isNaN(size)) {
|
||||
return undefined;
|
||||
}
|
||||
length += __classPrivateFieldGet(this, _FormDataEncoder_instances, "m", _FormDataEncoder_getFieldHeader).call(this, name, value).byteLength;
|
||||
length += size;
|
||||
length += __classPrivateFieldGet(this, _FormDataEncoder_CRLF_BYTES_LENGTH, "f");
|
||||
}
|
||||
return String(length + __classPrivateFieldGet(this, _FormDataEncoder_footer, "f").byteLength);
|
||||
}, Symbol.iterator)]() {
|
||||
return this.values();
|
||||
}
|
||||
[Symbol.asyncIterator]() {
|
||||
return this.encode();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"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","2":"C K L G M N O"},C:{"1":"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","2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB EC FC","194":"eB"},D:{"1":"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","2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB"},E:{"1":"C K L G qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E F A B HC zB IC JC KC LC 0B"},F:{"1":"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","2":"0 1 2 3 4 5 6 7 8 9 F B C G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB PC QC RC SC qB AC TC rB"},G:{"1":"dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","2":"E zB UC BC VC WC XC YC ZC aC bC cC"},H:{"2":"oC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"1":"vC"},P:{"1":"g zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","2":"I wC xC yC"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"BD","2":"AD"}},B:6,C:"JavaScript modules: dynamic import()"};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Processor.js","sourceRoot":"","sources":["../src/Processor.ts"],"names":[],"mappings":";;AAMA;IAGE,mBAAsB,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QACxC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,YAAY,CAAC;IACxC,CAAC;IAIH,gBAAC;AAAD,CAAC,AAVD,IAUC;AAVqB,8BAAS"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ParseRuntime.js","sourceRoot":"","sources":["../src/ParseRuntime.ts"],"names":[],"mappings":";;AA8DA,0BAAiC,SAAoB;IACnD,IAAM,MAAM,GAAG,SAAS,CAAC,UAAU,CAAC;IACpC,IAAM,GAAG,GAAiB;QACxB,uBAAuB,EAAE,KAAK;QAC9B,wBAAwB,EAAE,KAAK;QAC/B,eAAe,EAAE,SAAS;QAC1B,KAAK,EAAE,KAAK;QACZ,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,SAAS;QACzC,GAAG,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG;QAC7B,UAAU,EAAE,EAAE;QACd,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;QACf,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,KAAK;QACd,gBAAgB,EAAE,CAAC;QACnB,iBAAiB,EAAE,EAAE;KACtB,CAAA;IACD,IAAI,MAAM,CAAC,aAAa,EAAE;QACxB,GAAG,CAAC,uBAAuB,GAAG,IAAI,CAAC;KACpC;IACD,IAAI,MAAM,CAAC,cAAc,EAAE;QACzB,GAAG,CAAC,wBAAwB,GAAG,IAAI,CAAC;KACrC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AA3BD,4CA2BC"}
|
||||
@@ -0,0 +1,189 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint global-require: 0 */
|
||||
// the code is structured this way so that bundlers can
|
||||
// alias out `has-symbols` to `() => true` or `() => false` if your target
|
||||
// environments' Symbol capabilities are known, and then use
|
||||
// dead code elimination on the rest of this module.
|
||||
//
|
||||
// Similarly, `isarray` can be aliased to `Array.isArray` if
|
||||
// available in all target environments.
|
||||
|
||||
var isArguments = require('is-arguments');
|
||||
var getStopIterationIterator = require('stop-iteration-iterator');
|
||||
|
||||
if (require('has-symbols')() || require('has-symbols/shams')()) {
|
||||
var $iterator = Symbol.iterator;
|
||||
// Symbol is available natively or shammed
|
||||
// natively:
|
||||
// - Chrome >= 38
|
||||
// - Edge 12-14?, Edge >= 15 for sure
|
||||
// - FF >= 36
|
||||
// - Safari >= 9
|
||||
// - node >= 0.12
|
||||
module.exports = function getIterator(iterable) {
|
||||
// alternatively, `iterable[$iterator]?.()`
|
||||
if (iterable != null && typeof iterable[$iterator] !== 'undefined') {
|
||||
return iterable[$iterator]();
|
||||
}
|
||||
if (isArguments(iterable)) {
|
||||
// arguments objects lack Symbol.iterator
|
||||
// - node 0.12
|
||||
return Array.prototype[$iterator].call(iterable);
|
||||
}
|
||||
};
|
||||
} else {
|
||||
// Symbol is not available, native or shammed
|
||||
var isArray = require('isarray');
|
||||
var isString = require('is-string');
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
var $Map = GetIntrinsic('%Map%', true);
|
||||
var $Set = GetIntrinsic('%Set%', true);
|
||||
var callBound = require('call-bind/callBound');
|
||||
var $arrayPush = callBound('Array.prototype.push');
|
||||
var $charCodeAt = callBound('String.prototype.charCodeAt');
|
||||
var $stringSlice = callBound('String.prototype.slice');
|
||||
|
||||
var advanceStringIndex = function advanceStringIndex(S, index) {
|
||||
var length = S.length;
|
||||
if ((index + 1) >= length) {
|
||||
return index + 1;
|
||||
}
|
||||
|
||||
var first = $charCodeAt(S, index);
|
||||
if (first < 0xD800 || first > 0xDBFF) {
|
||||
return index + 1;
|
||||
}
|
||||
|
||||
var second = $charCodeAt(S, index + 1);
|
||||
if (second < 0xDC00 || second > 0xDFFF) {
|
||||
return index + 1;
|
||||
}
|
||||
|
||||
return index + 2;
|
||||
};
|
||||
|
||||
var getArrayIterator = function getArrayIterator(arraylike) {
|
||||
var i = 0;
|
||||
return {
|
||||
next: function next() {
|
||||
var done = i >= arraylike.length;
|
||||
var value;
|
||||
if (!done) {
|
||||
value = arraylike[i];
|
||||
i += 1;
|
||||
}
|
||||
return {
|
||||
done: done,
|
||||
value: value
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
var getNonCollectionIterator = function getNonCollectionIterator(iterable, noPrimordialCollections) {
|
||||
if (isArray(iterable) || isArguments(iterable)) {
|
||||
return getArrayIterator(iterable);
|
||||
}
|
||||
if (isString(iterable)) {
|
||||
var i = 0;
|
||||
return {
|
||||
next: function next() {
|
||||
var nextIndex = advanceStringIndex(iterable, i);
|
||||
var value = $stringSlice(iterable, i, nextIndex);
|
||||
i = nextIndex;
|
||||
return {
|
||||
done: nextIndex > iterable.length,
|
||||
value: value
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
// es6-shim and es-shims' es-map use a string "_es6-shim iterator_" property on different iterables, such as MapIterator.
|
||||
if (noPrimordialCollections && typeof iterable['_es6-shim iterator_'] !== 'undefined') {
|
||||
return iterable['_es6-shim iterator_']();
|
||||
}
|
||||
};
|
||||
|
||||
if (!$Map && !$Set) {
|
||||
// the only language iterables are Array, String, arguments
|
||||
// - Safari <= 6.0
|
||||
// - Chrome < 38
|
||||
// - node < 0.12
|
||||
// - FF < 13
|
||||
// - IE < 11
|
||||
// - Edge < 11
|
||||
|
||||
module.exports = function getIterator(iterable) {
|
||||
if (iterable != null) {
|
||||
return getNonCollectionIterator(iterable, true);
|
||||
}
|
||||
};
|
||||
} else {
|
||||
// either Map or Set are available, but Symbol is not
|
||||
// - es6-shim on an ES5 browser
|
||||
// - Safari 6.2 (maybe 6.1?)
|
||||
// - FF v[13, 36)
|
||||
// - IE 11
|
||||
// - Edge 11
|
||||
// - Safari v[6, 9)
|
||||
|
||||
var isMap = require('is-map');
|
||||
var isSet = require('is-set');
|
||||
|
||||
// Firefox >= 27, IE 11, Safari 6.2 - 9, Edge 11, es6-shim in older envs, all have forEach
|
||||
var $mapForEach = callBound('Map.prototype.forEach', true);
|
||||
var $setForEach = callBound('Set.prototype.forEach', true);
|
||||
if (typeof process === 'undefined' || !process.versions || !process.versions.node) { // "if is not node"
|
||||
|
||||
// Firefox 17 - 26 has `.iterator()`, whose iterator `.next()` either
|
||||
// returns a value, or throws a StopIteration object. These browsers
|
||||
// do not have any other mechanism for iteration.
|
||||
var $mapIterator = callBound('Map.prototype.iterator', true);
|
||||
var $setIterator = callBound('Set.prototype.iterator', true);
|
||||
}
|
||||
// Firefox 27-35, and some older es6-shim versions, use a string "@@iterator" property
|
||||
// this returns a proper iterator object, so we should use it instead of forEach.
|
||||
// newer es6-shim versions use a string "_es6-shim iterator_" property.
|
||||
var $mapAtAtIterator = callBound('Map.prototype.@@iterator', true) || callBound('Map.prototype._es6-shim iterator_', true);
|
||||
var $setAtAtIterator = callBound('Set.prototype.@@iterator', true) || callBound('Set.prototype._es6-shim iterator_', true);
|
||||
|
||||
var getCollectionIterator = function getCollectionIterator(iterable) {
|
||||
if (isMap(iterable)) {
|
||||
if ($mapIterator) {
|
||||
return getStopIterationIterator($mapIterator(iterable));
|
||||
}
|
||||
if ($mapAtAtIterator) {
|
||||
return $mapAtAtIterator(iterable);
|
||||
}
|
||||
if ($mapForEach) {
|
||||
var entries = [];
|
||||
$mapForEach(iterable, function (v, k) {
|
||||
$arrayPush(entries, [k, v]);
|
||||
});
|
||||
return getArrayIterator(entries);
|
||||
}
|
||||
}
|
||||
if (isSet(iterable)) {
|
||||
if ($setIterator) {
|
||||
return getStopIterationIterator($setIterator(iterable));
|
||||
}
|
||||
if ($setAtAtIterator) {
|
||||
return $setAtAtIterator(iterable);
|
||||
}
|
||||
if ($setForEach) {
|
||||
var values = [];
|
||||
$setForEach(iterable, function (v) {
|
||||
$arrayPush(values, v);
|
||||
});
|
||||
return getArrayIterator(values);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = function getIterator(iterable) {
|
||||
return getCollectionIterator(iterable) || getNonCollectionIterator(iterable);
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export type StatsClientIdsNotMatchingError = {
|
||||
name: string;
|
||||
message: string;
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (C) 2012-2020 by various contributors (see AUTHORS)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../../src/internal/observable/range.ts"],"names":[],"mappings":";;;AACA,4CAA2C;AAC3C,iCAAgC;AAqDhC,SAAgB,KAAK,CAAC,KAAa,EAAE,KAAc,EAAE,SAAyB;IAC5E,IAAI,KAAK,IAAI,IAAI,EAAE;QAEjB,KAAK,GAAG,KAAK,CAAC;QACd,KAAK,GAAG,CAAC,CAAC;KACX;IAED,IAAI,KAAK,IAAI,CAAC,EAAE;QAEd,OAAO,aAAK,CAAC;KACd;IAGD,IAAM,GAAG,GAAG,KAAK,GAAG,KAAK,CAAC;IAE1B,OAAO,IAAI,uBAAU,CACnB,SAAS;QACP,CAAC;YACC,UAAC,UAAU;gBACT,IAAI,CAAC,GAAG,KAAK,CAAC;gBACd,OAAO,SAAS,CAAC,QAAQ,CAAC;oBACxB,IAAI,CAAC,GAAG,GAAG,EAAE;wBACX,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;wBACrB,IAAI,CAAC,QAAQ,EAAE,CAAC;qBACjB;yBAAM;wBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;YACC,UAAC,UAAU;gBACT,IAAI,CAAC,GAAG,KAAK,CAAC;gBACd,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;oBACpC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;iBACtB;gBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,CACN,CAAC;AACJ,CAAC;AAtCD,sBAsCC"}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "chardet",
|
||||
"version": "0.7.0",
|
||||
"homepage": "https://github.com/runk/node-chardet",
|
||||
"description": "Character detector",
|
||||
"keywords": [
|
||||
"encoding",
|
||||
"character",
|
||||
"utf8",
|
||||
"detector",
|
||||
"chardet",
|
||||
"icu"
|
||||
],
|
||||
"author": "Dmitry Shirokov <deadrunk@gmail.com>",
|
||||
"contributors": [
|
||||
"@spikying",
|
||||
"@wtgtybhertgeghgtwtg",
|
||||
"@suisho",
|
||||
"@seangarner",
|
||||
"@zevanty"
|
||||
],
|
||||
"devDependencies": {
|
||||
"github-publish-release": "^5.0.0",
|
||||
"mocha": "^5.2.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:runk/node-chardet.git"
|
||||
},
|
||||
"bugs": {
|
||||
"mail": "deadrunk@gmail.com",
|
||||
"url": "http://github.com/runk/node-chardet/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha -R spec --recursive --bail",
|
||||
"release": "scripts/release"
|
||||
},
|
||||
"main": "index.js",
|
||||
"engine": {
|
||||
"node": ">=4"
|
||||
},
|
||||
"readmeFilename": "README.md",
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,61 @@
|
||||
let OldValue = require('../old-value')
|
||||
let Value = require('../value')
|
||||
|
||||
function regexp(name) {
|
||||
return new RegExp(`(^|[\\s,(])(${name}($|[\\s),]))`, 'gi')
|
||||
}
|
||||
|
||||
class Intrinsic extends Value {
|
||||
regexp() {
|
||||
if (!this.regexpCache) this.regexpCache = regexp(this.name)
|
||||
return this.regexpCache
|
||||
}
|
||||
|
||||
isStretch() {
|
||||
return (
|
||||
this.name === 'stretch' ||
|
||||
this.name === 'fill' ||
|
||||
this.name === 'fill-available'
|
||||
)
|
||||
}
|
||||
|
||||
replace(string, prefix) {
|
||||
if (prefix === '-moz-' && this.isStretch()) {
|
||||
return string.replace(this.regexp(), '$1-moz-available$3')
|
||||
}
|
||||
if (prefix === '-webkit-' && this.isStretch()) {
|
||||
return string.replace(this.regexp(), '$1-webkit-fill-available$3')
|
||||
}
|
||||
return super.replace(string, prefix)
|
||||
}
|
||||
|
||||
old(prefix) {
|
||||
let prefixed = prefix + this.name
|
||||
if (this.isStretch()) {
|
||||
if (prefix === '-moz-') {
|
||||
prefixed = '-moz-available'
|
||||
} else if (prefix === '-webkit-') {
|
||||
prefixed = '-webkit-fill-available'
|
||||
}
|
||||
}
|
||||
return new OldValue(this.name, prefixed, prefixed, regexp(prefixed))
|
||||
}
|
||||
|
||||
add(decl, prefix) {
|
||||
if (decl.prop.includes('grid') && prefix !== '-webkit-') {
|
||||
return undefined
|
||||
}
|
||||
return super.add(decl, prefix)
|
||||
}
|
||||
}
|
||||
|
||||
Intrinsic.names = [
|
||||
'max-content',
|
||||
'min-content',
|
||||
'fit-content',
|
||||
'fill',
|
||||
'fill-available',
|
||||
'stretch'
|
||||
]
|
||||
|
||||
module.exports = Intrinsic
|
||||
@@ -0,0 +1,13 @@
|
||||
import log from './log'
|
||||
|
||||
export function validateConfig(config) {
|
||||
if (config.content.files.length === 0) {
|
||||
log.warn('content-problems', [
|
||||
'The `content` option in your Tailwind CSS configuration is missing or empty.',
|
||||
'Configure your content sources or your generated CSS will be missing styles.',
|
||||
'https://tailwindcss.com/docs/content-configuration',
|
||||
])
|
||||
}
|
||||
|
||||
return config
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Code coverage report for csv2json/libs/core/defaultParsers/parser_omit.js</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="../../../../prettify.css" />
|
||||
<link rel="stylesheet" href="../../../../base.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type='text/css'>
|
||||
.coverage-summary .sorter {
|
||||
background-image: url(../../../../sort-arrow-sprite.png);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class='wrapper'>
|
||||
<div class='pad1'>
|
||||
<h1>
|
||||
<a href="../../../../index.html">All files</a> / <a href="index.html">csv2json/libs/core/defaultParsers</a> parser_omit.js
|
||||
</h1>
|
||||
<div class='clearfix'>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>0/1</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>0/0</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>0/1</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>0/1</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="quiet">
|
||||
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
||||
</p>
|
||||
</div>
|
||||
<div class='status-line low'></div>
|
||||
<pre><table class="coverage">
|
||||
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
||||
<a name='L2'></a><a href='#L2'>2</a>
|
||||
<a name='L3'></a><a href='#L3'>3</a>
|
||||
<a name='L4'></a><a href='#L4'>4</a>
|
||||
<a name='L5'></a><a href='#L5'>5</a>
|
||||
<a name='L6'></a><a href='#L6'>6</a>
|
||||
<a name='L7'></a><a href='#L7'>7</a>
|
||||
<a name='L8'></a><a href='#L8'>8</a>
|
||||
<a name='L9'></a><a href='#L9'>9</a>
|
||||
<a name='L10'></a><a href='#L10'>10</a>
|
||||
<a name='L11'></a><a href='#L11'>11</a>
|
||||
<a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span></td><td class="text"><pre class="prettyprint lang-js">Unable to lookup source: /Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_omit.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_omit.js')
|
||||
Error: Unable to lookup source: /Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_omit.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_omit.js')
|
||||
at Context.defaultSourceLookup [as sourceFinder] (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/context.js:15:15)
|
||||
at Context.getSource (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/context.js:74:17)
|
||||
at Object.annotateSourceCode (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:172:38)
|
||||
at HtmlReport.onDetail (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-reports/lib/html/index.js:237:39)
|
||||
at Visitor.(anonymous function) [as onDetail] (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:34:30)
|
||||
at ReportNode.Node.visit (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:123:17)
|
||||
at /Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:116:23
|
||||
at Array.forEach (native)
|
||||
at visitChildren (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:115:32)
|
||||
at ReportNode.Node.visit (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:126:5)</pre></td></tr>
|
||||
</table></pre>
|
||||
<div class='push'></div><!-- for sticky footer -->
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri May 11 2018 21:36:07 GMT+0100 (IST)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../../../prettify.js"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
if (typeof prettyPrint === 'function') {
|
||||
prettyPrint();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../../../sorter.js"></script>
|
||||
<script src="../../../../block-navigation.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,44 @@
|
||||
var baseDifference = require('./_baseDifference'),
|
||||
baseFlatten = require('./_baseFlatten'),
|
||||
baseIteratee = require('./_baseIteratee'),
|
||||
baseRest = require('./_baseRest'),
|
||||
isArrayLikeObject = require('./isArrayLikeObject'),
|
||||
last = require('./last');
|
||||
|
||||
/**
|
||||
* This method is like `_.difference` except that it accepts `iteratee` which
|
||||
* is invoked for each element of `array` and `values` to generate the criterion
|
||||
* by which they're compared. The order and references of result values are
|
||||
* determined by the first array. The iteratee is invoked with one argument:
|
||||
* (value).
|
||||
*
|
||||
* **Note:** Unlike `_.pullAllBy`, this method returns a new array.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {...Array} [values] The values to exclude.
|
||||
* @param {Function} [iteratee=_.identity] The iteratee invoked per element.
|
||||
* @returns {Array} Returns the new array of filtered values.
|
||||
* @example
|
||||
*
|
||||
* _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
|
||||
* // => [1.2]
|
||||
*
|
||||
* // The `_.property` iteratee shorthand.
|
||||
* _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
|
||||
* // => [{ 'x': 2 }]
|
||||
*/
|
||||
var differenceBy = baseRest(function(array, values) {
|
||||
var iteratee = last(values);
|
||||
if (isArrayLikeObject(iteratee)) {
|
||||
iteratee = undefined;
|
||||
}
|
||||
return isArrayLikeObject(array)
|
||||
? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), baseIteratee(iteratee, 2))
|
||||
: [];
|
||||
});
|
||||
|
||||
module.exports = differenceBy;
|
||||
@@ -0,0 +1,6 @@
|
||||
import { Parser } from '../index';
|
||||
import { Pattern } from 'estree';
|
||||
export default function read_context(parser: Parser): Pattern & {
|
||||
start: number;
|
||||
end: number;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports = require('./includes');
|
||||
@@ -0,0 +1,131 @@
|
||||
# proxy-from-env
|
||||
|
||||
[](https://travis-ci.org/Rob--W/proxy-from-env)
|
||||
[](https://coveralls.io/github/Rob--W/proxy-from-env?branch=master)
|
||||
|
||||
`proxy-from-env` is a Node.js package that exports a function (`getProxyForUrl`)
|
||||
that takes an input URL (a string or
|
||||
[`url.parse`](https://nodejs.org/docs/latest/api/url.html#url_url_parsing)'s
|
||||
return value) and returns the desired proxy URL (also a string) based on
|
||||
standard proxy environment variables. If no proxy is set, an empty string is
|
||||
returned.
|
||||
|
||||
It is your responsibility to actually proxy the request using the given URL.
|
||||
|
||||
Installation:
|
||||
|
||||
```sh
|
||||
npm install proxy-from-env
|
||||
```
|
||||
|
||||
## Example
|
||||
This example shows how the data for a URL can be fetched via the
|
||||
[`http` module](https://nodejs.org/api/http.html), in a proxy-aware way.
|
||||
|
||||
```javascript
|
||||
var http = require('http');
|
||||
var parseUrl = require('url').parse;
|
||||
var getProxyForUrl = require('proxy-from-env').getProxyForUrl;
|
||||
|
||||
var some_url = 'http://example.com/something';
|
||||
|
||||
// // Example, if there is a proxy server at 10.0.0.1:1234, then setting the
|
||||
// // http_proxy environment variable causes the request to go through a proxy.
|
||||
// process.env.http_proxy = 'http://10.0.0.1:1234';
|
||||
//
|
||||
// // But if the host to be proxied is listed in NO_PROXY, then the request is
|
||||
// // not proxied (but a direct request is made).
|
||||
// process.env.no_proxy = 'example.com';
|
||||
|
||||
var proxy_url = getProxyForUrl(some_url); // <-- Our magic.
|
||||
if (proxy_url) {
|
||||
// Should be proxied through proxy_url.
|
||||
var parsed_some_url = parseUrl(some_url);
|
||||
var parsed_proxy_url = parseUrl(proxy_url);
|
||||
// A HTTP proxy is quite simple. It is similar to a normal request, except the
|
||||
// path is an absolute URL, and the proxied URL's host is put in the header
|
||||
// instead of the server's actual host.
|
||||
httpOptions = {
|
||||
protocol: parsed_proxy_url.protocol,
|
||||
hostname: parsed_proxy_url.hostname,
|
||||
port: parsed_proxy_url.port,
|
||||
path: parsed_some_url.href,
|
||||
headers: {
|
||||
Host: parsed_some_url.host, // = host name + optional port.
|
||||
},
|
||||
};
|
||||
} else {
|
||||
// Direct request.
|
||||
httpOptions = some_url;
|
||||
}
|
||||
http.get(httpOptions, function(res) {
|
||||
var responses = [];
|
||||
res.on('data', function(chunk) { responses.push(chunk); });
|
||||
res.on('end', function() { console.log(responses.join('')); });
|
||||
});
|
||||
|
||||
```
|
||||
|
||||
## Environment variables
|
||||
The environment variables can be specified in lowercase or uppercase, with the
|
||||
lowercase name having precedence over the uppercase variant. A variable that is
|
||||
not set has the same meaning as a variable that is set but has no value.
|
||||
|
||||
### NO\_PROXY
|
||||
|
||||
`NO_PROXY` is a list of host names (optionally with a port). If the input URL
|
||||
matches any of the entries in `NO_PROXY`, then the input URL should be fetched
|
||||
by a direct request (i.e. without a proxy).
|
||||
|
||||
Matching follows the following rules:
|
||||
|
||||
- `NO_PROXY=*` disables all proxies.
|
||||
- Space and commas may be used to separate the entries in the `NO_PROXY` list.
|
||||
- If `NO_PROXY` does not contain any entries, then proxies are never disabled.
|
||||
- If a port is added after the host name, then the ports must match. If the URL
|
||||
does not have an explicit port name, the protocol's default port is used.
|
||||
- Generally, the proxy is only disabled if the host name is an exact match for
|
||||
an entry in the `NO_PROXY` list. The only exceptions are entries that start
|
||||
with a dot or with a wildcard; then the proxy is disabled if the host name
|
||||
ends with the entry.
|
||||
|
||||
See `test.js` for examples of what should match and what does not.
|
||||
|
||||
### \*\_PROXY
|
||||
|
||||
The environment variable used for the proxy depends on the protocol of the URL.
|
||||
For example, `https://example.com` uses the "https" protocol, and therefore the
|
||||
proxy to be used is `HTTPS_PROXY` (_NOT_ `HTTP_PROXY`, which is _only_ used for
|
||||
http:-URLs).
|
||||
|
||||
The library is not limited to http(s), other schemes such as
|
||||
`FTP_PROXY` (ftp:),
|
||||
`WSS_PROXY` (wss:),
|
||||
`WS_PROXY` (ws:)
|
||||
are also supported.
|
||||
|
||||
If present, `ALL_PROXY` is used as fallback if there is no other match.
|
||||
|
||||
|
||||
## External resources
|
||||
The exact way of parsing the environment variables is not codified in any
|
||||
standard. This library is designed to be compatible with formats as expected by
|
||||
existing software.
|
||||
The following resources were used to determine the desired behavior:
|
||||
|
||||
- cURL:
|
||||
https://curl.haxx.se/docs/manpage.html#ENVIRONMENT
|
||||
https://github.com/curl/curl/blob/4af40b3646d3b09f68e419f7ca866ff395d1f897/lib/url.c#L4446-L4514
|
||||
https://github.com/curl/curl/blob/4af40b3646d3b09f68e419f7ca866ff395d1f897/lib/url.c#L4608-L4638
|
||||
|
||||
- wget:
|
||||
https://www.gnu.org/software/wget/manual/wget.html#Proxies
|
||||
http://git.savannah.gnu.org/cgit/wget.git/tree/src/init.c?id=636a5f9a1c508aa39e35a3a8e9e54520a284d93d#n383
|
||||
http://git.savannah.gnu.org/cgit/wget.git/tree/src/retr.c?id=93c1517c4071c4288ba5a4b038e7634e4c6b5482#n1278
|
||||
|
||||
- W3:
|
||||
https://www.w3.org/Daemon/User/Proxies/ProxyClients.html
|
||||
|
||||
- Python's urllib:
|
||||
https://github.com/python/cpython/blob/936135bb97fe04223aa30ca6e98eac8f3ed6b349/Lib/urllib/request.py#L755-L782
|
||||
https://github.com/python/cpython/blob/936135bb97fe04223aa30ca6e98eac8f3ed6b349/Lib/urllib/request.py#L2444-L2479
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"immediate","version":"3.0.6","files":{"lib/browser.js":{"checkedAt":1678883668028,"integrity":"sha512-QoqWmVXRhRFj2riYrh9Y79VuND0sEulT4DmLELJaSz8rswbIiqSs0dXswwUOMm4SY/x/C2RKcXw1q/g9silVXA==","mode":420,"size":1883},"lib/index.js":{"checkedAt":1678883668028,"integrity":"sha512-+dhWxbuan2bhNxtcHL6K2VjG7/sJQMADOv8JWXuxhMpW0E2Pdv8E4r6dFck0FLVlcaqVfh7ZyyqK8DmHrEh2gA==","mode":420,"size":1982},"README.md":{"checkedAt":1678883668048,"integrity":"sha512-4fe0A/gTpWYr4ZLvUBwQxRMLMA6YkD/xR6os+s/uHviBUqU1mUu2v33KSzWKRuyVwNIKxoKyagxx63dpn4a7eg==","mode":420,"size":3697},"package.json":{"checkedAt":1678883668048,"integrity":"sha512-FkHDDkZ6qaGTrN4Ai5aFZJ9iQYnJ4vUwh1BMpUbh8R0wph0YnhAxCd6KjgGZ5tRklrRpzWutkwi5ul/iAEMwfg==","mode":420,"size":1372},"LICENSE.txt":{"checkedAt":1678883668048,"integrity":"sha512-2EgWRZXFu468vtCRjBKYqUZ4xJh9suk0a4/DInVMSNbKxVDaJXTk86N/ZyLAP1dH5kmHx2xX6NtTlRfxRVEOQw==","mode":420,"size":1115},"dist/immediate.min.js":{"checkedAt":1678883668049,"integrity":"sha512-UnkTNb7RKKHe5+90d9GOas/8gH0/B4hHJlp+87OCiczgkggLO/g52pJe/q+2E38v0d7mCK8WU5vN0oJ2zxhdbw==","mode":420,"size":1686},"dist/immediate.js":{"checkedAt":1678883668049,"integrity":"sha512-RG15DHkrobUACtpA1Pw25xCNxmYXYQ081UAR4CI+RiWcCnpZmWgg2XDYGx5YxGkYrtTzgq7NdSbTmNqMGKfoqg==","mode":420,"size":2911}}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,260 @@
|
||||
import {LiteralUnion} from 'type-fest';
|
||||
import {BoxStyle, Boxes} from 'cli-boxes';
|
||||
|
||||
/**
|
||||
Characters used for custom border.
|
||||
|
||||
@example
|
||||
```
|
||||
// attttb
|
||||
// l r
|
||||
// dbbbbc
|
||||
|
||||
const border: CustomBorderStyle = {
|
||||
topLeft: 'a',
|
||||
topRight: 'b',
|
||||
bottomRight: 'c',
|
||||
bottomLeft: 'd',
|
||||
left: 'l',
|
||||
right: 'r',
|
||||
top: 't',
|
||||
bottom: 'b',
|
||||
};
|
||||
```
|
||||
*/
|
||||
export interface CustomBorderStyle extends BoxStyle {
|
||||
/**
|
||||
@deprecated Use `top` and `bottom` instead.
|
||||
*/
|
||||
horizontal?: string;
|
||||
|
||||
/**
|
||||
@deprecated Use `left` and `right` instead.
|
||||
*/
|
||||
vertical?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
Spacing used for `padding` and `margin`.
|
||||
*/
|
||||
export interface Spacing {
|
||||
readonly top?: number;
|
||||
readonly right?: number;
|
||||
readonly bottom?: number;
|
||||
readonly left?: number;
|
||||
}
|
||||
|
||||
export interface Options {
|
||||
/**
|
||||
Color of the box border.
|
||||
*/
|
||||
readonly borderColor?: LiteralUnion<
|
||||
| 'black'
|
||||
| 'red'
|
||||
| 'green'
|
||||
| 'yellow'
|
||||
| 'blue'
|
||||
| 'magenta'
|
||||
| 'cyan'
|
||||
| 'white'
|
||||
| 'gray'
|
||||
| 'grey'
|
||||
| 'blackBright'
|
||||
| 'redBright'
|
||||
| 'greenBright'
|
||||
| 'yellowBright'
|
||||
| 'blueBright'
|
||||
| 'magentaBright'
|
||||
| 'cyanBright'
|
||||
| 'whiteBright',
|
||||
string
|
||||
>;
|
||||
|
||||
/**
|
||||
Style of the box border.
|
||||
|
||||
@default 'single'
|
||||
*/
|
||||
readonly borderStyle?: keyof Boxes | CustomBorderStyle;
|
||||
|
||||
/**
|
||||
Reduce opacity of the border.
|
||||
|
||||
@default false
|
||||
*/
|
||||
readonly dimBorder?: boolean;
|
||||
|
||||
/**
|
||||
Space between the text and box border.
|
||||
|
||||
@default 0
|
||||
*/
|
||||
readonly padding?: number | Spacing;
|
||||
|
||||
/**
|
||||
Space around the box.
|
||||
|
||||
@default 0
|
||||
*/
|
||||
readonly margin?: number | Spacing;
|
||||
|
||||
/**
|
||||
Float the box on the available terminal screen space.
|
||||
|
||||
@default 'left'
|
||||
*/
|
||||
readonly float?: 'left' | 'right' | 'center';
|
||||
|
||||
/**
|
||||
Color of the background.
|
||||
*/
|
||||
readonly backgroundColor?: LiteralUnion<
|
||||
| 'black'
|
||||
| 'red'
|
||||
| 'green'
|
||||
| 'yellow'
|
||||
| 'blue'
|
||||
| 'magenta'
|
||||
| 'cyan'
|
||||
| 'white'
|
||||
| 'blackBright'
|
||||
| 'redBright'
|
||||
| 'greenBright'
|
||||
| 'yellowBright'
|
||||
| 'blueBright'
|
||||
| 'magentaBright'
|
||||
| 'cyanBright'
|
||||
| 'whiteBright',
|
||||
string
|
||||
>;
|
||||
|
||||
/**
|
||||
Align the text in the box based on the widest line.
|
||||
|
||||
@default 'left'
|
||||
@deprecated Use `textAlignment` instead.
|
||||
*/
|
||||
readonly align?: 'left' | 'right' | 'center';
|
||||
|
||||
/**
|
||||
Align the text in the box based on the widest line.
|
||||
|
||||
@default 'left'
|
||||
*/
|
||||
readonly textAlignment?: 'left' | 'right' | 'center';
|
||||
|
||||
/**
|
||||
Display a title at the top of the box.
|
||||
If needed, the box will horizontally expand to fit the title.
|
||||
|
||||
@example
|
||||
```
|
||||
console.log(boxen('foo bar', {title: 'example'}));
|
||||
// ┌ example ┐
|
||||
// │foo bar │
|
||||
// └─────────┘
|
||||
```
|
||||
*/
|
||||
readonly title?: string;
|
||||
|
||||
/**
|
||||
Align the title in the top bar.
|
||||
|
||||
@default 'left'
|
||||
|
||||
@example
|
||||
```
|
||||
console.log(boxen('foo bar foo bar', {title: 'example', titleAlignment: 'center'}));
|
||||
// ┌─── example ───┐
|
||||
// │foo bar foo bar│
|
||||
// └───────────────┘
|
||||
|
||||
console.log(boxen('foo bar foo bar', {title: 'example', titleAlignment: 'right'}));
|
||||
// ┌────── example ┐
|
||||
// │foo bar foo bar│
|
||||
// └───────────────┘
|
||||
```
|
||||
*/
|
||||
readonly titleAlignment?: 'left' | 'right' | 'center';
|
||||
|
||||
/**
|
||||
Set a fixed width for the box.
|
||||
|
||||
__Note__: This disables terminal overflow handling and may cause the box to look broken if the user's terminal is not wide enough.
|
||||
|
||||
@example
|
||||
```
|
||||
import boxen from 'boxen';
|
||||
|
||||
console.log(boxen('foo bar', {width: 15}));
|
||||
// ┌─────────────┐
|
||||
// │foo bar │
|
||||
// └─────────────┘
|
||||
```
|
||||
*/
|
||||
readonly width?: number;
|
||||
|
||||
/**
|
||||
Set a fixed height for the box.
|
||||
|
||||
__Note__: This option will crop overflowing content.
|
||||
|
||||
@example
|
||||
```
|
||||
import boxen from 'boxen';
|
||||
|
||||
console.log(boxen('foo bar', {height: 5}));
|
||||
// ┌───────┐
|
||||
// │foo bar│
|
||||
// │ │
|
||||
// │ │
|
||||
// └───────┘
|
||||
```
|
||||
*/
|
||||
readonly height?: number;
|
||||
|
||||
/**
|
||||
__boolean__: Whether or not to fit all available space within the terminal.
|
||||
|
||||
__function__: Pass a callback function to control box dimensions.
|
||||
|
||||
@example
|
||||
```
|
||||
import boxen from 'boxen';
|
||||
|
||||
console.log(boxen('foo bar', {
|
||||
fullscreen: (width, height) => [width, height - 1],
|
||||
}));
|
||||
```
|
||||
*/
|
||||
readonly fullscreen?: boolean | ((width: number, height: number) => [width: number, height: number]);
|
||||
}
|
||||
|
||||
/**
|
||||
Creates a box in the terminal.
|
||||
|
||||
@param text - The text inside the box.
|
||||
@returns The box.
|
||||
|
||||
@example
|
||||
```
|
||||
import boxen from 'boxen';
|
||||
|
||||
console.log(boxen('unicorn', {padding: 1}));
|
||||
// ┌─────────────┐
|
||||
// │ │
|
||||
// │ unicorn │
|
||||
// │ │
|
||||
// └─────────────┘
|
||||
|
||||
console.log(boxen('unicorn', {padding: 1, margin: 1, borderStyle: 'double'}));
|
||||
//
|
||||
// ╔═════════════╗
|
||||
// ║ ║
|
||||
// ║ unicorn ║
|
||||
// ║ ║
|
||||
// ╚═════════════╝
|
||||
//
|
||||
```
|
||||
*/
|
||||
export default function boxen(text: string, options?: Options): string;
|
||||
@@ -0,0 +1,62 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.HotObservable = void 0;
|
||||
var Subject_1 = require("../Subject");
|
||||
var Subscription_1 = require("../Subscription");
|
||||
var SubscriptionLoggable_1 = require("./SubscriptionLoggable");
|
||||
var applyMixins_1 = require("../util/applyMixins");
|
||||
var Notification_1 = require("../Notification");
|
||||
var HotObservable = (function (_super) {
|
||||
__extends(HotObservable, _super);
|
||||
function HotObservable(messages, scheduler) {
|
||||
var _this = _super.call(this) || this;
|
||||
_this.messages = messages;
|
||||
_this.subscriptions = [];
|
||||
_this.scheduler = scheduler;
|
||||
return _this;
|
||||
}
|
||||
HotObservable.prototype._subscribe = function (subscriber) {
|
||||
var subject = this;
|
||||
var index = subject.logSubscribedFrame();
|
||||
var subscription = new Subscription_1.Subscription();
|
||||
subscription.add(new Subscription_1.Subscription(function () {
|
||||
subject.logUnsubscribedFrame(index);
|
||||
}));
|
||||
subscription.add(_super.prototype._subscribe.call(this, subscriber));
|
||||
return subscription;
|
||||
};
|
||||
HotObservable.prototype.setup = function () {
|
||||
var subject = this;
|
||||
var messagesLength = subject.messages.length;
|
||||
var _loop_1 = function (i) {
|
||||
(function () {
|
||||
var _a = subject.messages[i], notification = _a.notification, frame = _a.frame;
|
||||
subject.scheduler.schedule(function () {
|
||||
Notification_1.observeNotification(notification, subject);
|
||||
}, frame);
|
||||
})();
|
||||
};
|
||||
for (var i = 0; i < messagesLength; i++) {
|
||||
_loop_1(i);
|
||||
}
|
||||
};
|
||||
return HotObservable;
|
||||
}(Subject_1.Subject));
|
||||
exports.HotObservable = HotObservable;
|
||||
applyMixins_1.applyMixins(HotObservable, [SubscriptionLoggable_1.SubscriptionLoggable]);
|
||||
//# sourceMappingURL=HotObservable.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"multicast.js","sourceRoot":"","sources":["../../../../src/internal/operators/multicast.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4EpC,MAAM,UAAU,SAAS,CACvB,uBAAwD,EACxD,QAAmD;IAEnD,MAAM,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;IAErH,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE;QAIxB,OAAO,OAAO,CAAC,QAAQ,EAAE;YACvB,SAAS,EAAE,cAAc;SAC1B,CAAC,CAAC;KACJ;IAED,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,IAAI,qBAAqB,CAAM,MAAM,EAAE,cAAc,CAAC,CAAC;AAC3F,CAAC"}
|
||||
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var Type = require('./Type');
|
||||
|
||||
// https://262.ecma-international.org/5.1/#sec-11.9.6
|
||||
|
||||
module.exports = function StrictEqualityComparison(x, y) {
|
||||
var xType = Type(x);
|
||||
var yType = Type(y);
|
||||
if (xType !== yType) {
|
||||
return false;
|
||||
}
|
||||
if (xType === 'Undefined' || xType === 'Null') {
|
||||
return true;
|
||||
}
|
||||
return x === y; // shortcut for steps 4-7
|
||||
};
|
||||
@@ -0,0 +1,264 @@
|
||||
# CHANGELOG
|
||||
|
||||
This log is intended to keep track of backwards-incompatible changes, including
|
||||
but not limited to API changes and file location changes. Minor behavioral
|
||||
changes may not be included if they are not expected to break existing code.
|
||||
|
||||
## v0.18.5
|
||||
|
||||
* Enabled `sideEffects: false` in package.json
|
||||
* Basic NUMBERS write support
|
||||
|
||||
## v0.18.4
|
||||
|
||||
* CSV output omits trailing record separator
|
||||
* Properly terminate NodeJS Streams
|
||||
* DBF preserve column types on import and use when applicable on export
|
||||
|
||||
## v0.18.3
|
||||
|
||||
* Removed references to `require` and `process` in browser builds
|
||||
|
||||
## v0.18.2
|
||||
|
||||
* Hotfix for unicode processing of XLSX exports
|
||||
|
||||
## v0.18.1
|
||||
|
||||
* Removed Node ESM build script and folded into standard ESM build
|
||||
* Removed undocumented aliases including `make_formulae` and `get_formulae`
|
||||
|
||||
## v0.18.0
|
||||
|
||||
* Browser scripts only expose `XLSX` variable
|
||||
* Module no longer ships with `dist/jszip.js` browser script
|
||||
|
||||
## v0.17.4
|
||||
|
||||
* CLI script moved to `xlsx-cli` package
|
||||
|
||||
## v0.17.3
|
||||
|
||||
* `window.XLSX` explicit assignment to satiate LWC
|
||||
* CSV Proper formatting of errors
|
||||
* HTML emit data-\* attributes
|
||||
|
||||
## v0.17.2
|
||||
|
||||
* Browser and Node optional ESM support
|
||||
* DSV correct handling of bare quotes (h/t @bgamrat)
|
||||
|
||||
## v0.17.1
|
||||
|
||||
* `XLSB` writer uses short cell form when viable
|
||||
|
||||
## 0.17.0:
|
||||
|
||||
* mini build includes ODS parse/write support
|
||||
* DBF explicitly cap worksheet to 1<<20 rows
|
||||
* XLS throw errors on truncated records
|
||||
|
||||
## v0.16.2
|
||||
|
||||
* Disabled `PRN` parsing by default (better support for CSV without delimeters)
|
||||
|
||||
## v0.16.1
|
||||
|
||||
* skip empty custom property tags if data is absent (fixes DocSecurity issue)
|
||||
* HTML output add raw value, type, number format
|
||||
* DOM parse look for `v` / `t` / `z` attributes when determining value
|
||||
* double quotes in properties escaped using `_x0022_`
|
||||
* changed AMD structure for NetSuite and other RequireJS implementations
|
||||
- `encode_cell` and `decode_cell` do not rely on `encode_col` / `decode_col`
|
||||
|
||||
## v0.16.0
|
||||
|
||||
* Date handling changed
|
||||
* XLML certain tag tests are now case insensitive
|
||||
* Fixed potentially vulnerable regular expressions
|
||||
|
||||
## v0.15.6
|
||||
|
||||
* CFB prevent infinite loop
|
||||
* ODS empty cells marked as stub (type "z")
|
||||
* `cellStyles` option implies `sheetStubs`
|
||||
|
||||
## v0.15.5
|
||||
|
||||
* `sheets` parse option to specify which sheets to parse
|
||||
|
||||
## v0.15.4
|
||||
|
||||
* AOA utilities properly preserve number formats
|
||||
* Number formats captured in stub cells
|
||||
|
||||
## v0.15.3
|
||||
|
||||
* Properties and Custom Properties properly XML-encoded
|
||||
|
||||
## v0.15.2
|
||||
|
||||
- `sheet_get_cell` utility function
|
||||
- `sheet_to_json` explicitly support `null` as alias for default behavior
|
||||
- `encode_col` throw on negative column index
|
||||
- HTML properly handle whitespace around tags in a run
|
||||
- HTML use `id` option on write
|
||||
- Files starting with `0x09` followed by a display character are now TSV files
|
||||
- XLS parse references col/row indices mod by the correct number for BIFF ver
|
||||
- XLSX comments moved to avoid overlapping cell
|
||||
- XLSB outline level
|
||||
- AutoFilter update `_FilterDatabase` defined name on write
|
||||
- XLML skip CDATA blocks
|
||||
|
||||
## v0.15.1 (2019-08-14)
|
||||
|
||||
* XLSX ignore XML artifacts
|
||||
* HTML capture and persist merges
|
||||
|
||||
## v0.15.0
|
||||
|
||||
* `dist/xlsx.mini.min.js` mini build with XLSX read/write and some utilities
|
||||
* Removed legacy conversion utility functions
|
||||
|
||||
## v0.14.5
|
||||
|
||||
* XLS PtgNameX lookup
|
||||
* XLS always create stub cells for blank cells with comments
|
||||
|
||||
|
||||
## v0.14.4
|
||||
|
||||
* Better treatment of `skipHidden` in CSV output
|
||||
* Ignore CLSID in XLS
|
||||
* SYLK 7-bit character encoding
|
||||
* SYLK and DBF codepage support
|
||||
|
||||
## v0.14.3
|
||||
|
||||
* Proper shifting of addresses in Shared Formulae
|
||||
|
||||
## v0.14.2
|
||||
|
||||
* Proper XML encoding of comments
|
||||
|
||||
## v0.14.1
|
||||
|
||||
* raw cell objects can be passed to `sheet_add_aoa`
|
||||
* `_FilterDatabase` fix for AutoFilter-related crashes
|
||||
* `stream.to_json` doesn't end up accidentally scanning to max row
|
||||
|
||||
## 0.14.0 (2018-09-06)
|
||||
|
||||
* `sheet_to_json` default flipped to `raw: true`
|
||||
|
||||
## 0.13.5 (2018-08-25)
|
||||
|
||||
* HTML output generates `<br/>` instead of encoded newline character
|
||||
|
||||
## 0.13.2 (2018-07-08)
|
||||
|
||||
* Buffer.from shim replaced, will not be defined in node `<=0.12`
|
||||
|
||||
## 0.13.0 (2018-06-01)
|
||||
|
||||
* Library reshaped to support AMD out of the box
|
||||
|
||||
## 0.12.11 (2018-04-27)
|
||||
|
||||
* XLS/XLSX/XLSB range truncation (errors in `WTF` mode)
|
||||
|
||||
## 0.12.4 (2018-03-04)
|
||||
|
||||
* `JSZip` renamed to `JSZipSync`
|
||||
|
||||
## 0.12.0 (2018-02-08)
|
||||
|
||||
* Extendscript target script in NPM package
|
||||
|
||||
## 0.11.19 (2018-02-03)
|
||||
|
||||
* Error on empty workbook
|
||||
|
||||
## 0.11.16 (2017-12-30)
|
||||
|
||||
* XLS ANSI/CP separation
|
||||
* 'array' write type and ArrayBuffer processing
|
||||
|
||||
## 0.11.6 (2017-10-16)
|
||||
|
||||
* Semicolon-delimited files are detected
|
||||
|
||||
## 0.11.5 (2017-09-30)
|
||||
|
||||
* Bower main script shifted to full version
|
||||
* 'binary' / 'string' encoding
|
||||
|
||||
## 0.11.3 (2017-08-19)
|
||||
|
||||
* XLS cell ixfe/XF removed
|
||||
|
||||
## 0.11.0 (2017-07-31)
|
||||
|
||||
* Strip `require` statements from minified version
|
||||
* minifier mangler enabled
|
||||
|
||||
## 0.10.9 (2017-07-28)
|
||||
|
||||
* XLML/HTML resolution logic looks further into the data stream to decide type
|
||||
* Errors thrown on suspected RTF files
|
||||
|
||||
## 0.10.5 (2017-06-09)
|
||||
|
||||
* HTML Table output header/footer should not include `<table>` tag
|
||||
|
||||
## 0.10.2 (2017-05-16)
|
||||
|
||||
* Dates are converted to numbers by default (set `cellDates:true` to emit Dates)
|
||||
* Module does not export CFB
|
||||
|
||||
## 0.9.10 (2017-04-08)
|
||||
|
||||
* `--perf` renamed to `--read-only`
|
||||
|
||||
## 0.9.9 (2017-04-03)
|
||||
|
||||
* default output format changed to XLSB
|
||||
* comment text line endings are now normalized
|
||||
* errors thrown on write when worksheets have invalid names
|
||||
|
||||
## 0.9.7 (2017-03-28)
|
||||
|
||||
* XLS legacy `!range` field removed
|
||||
* Hyperlink tooltip is stored in the `Tooltip` field
|
||||
|
||||
## 0.9.6 (2017-03-25)
|
||||
|
||||
* `sheet_to_json` now passes `null` values when `raw` is set to `true`
|
||||
* `sheet_to_json` treats `null` stub cells as values in conjunction with `raw`
|
||||
|
||||
## 0.9.5 (2017-03-22)
|
||||
|
||||
* `cellDates` affects parsing in non-XLSX formats
|
||||
|
||||
## 0.9.3 (2017-03-15)
|
||||
|
||||
* XLML property names are more closely mapped to the XLSX equivalent
|
||||
* Stub cells are now cell type `z`
|
||||
|
||||
## 0.9.2 (2017-03-13)
|
||||
|
||||
* Removed stale TypeScript definition files. Flowtype comments are used in the
|
||||
`xlsx.flow.js` source and stripped to produce `xlsx.js`.
|
||||
* sed usage reworked to support GNU sed in-place form. BSD sed seems to work,
|
||||
but the build script has not been tested on other sed variants:
|
||||
|
||||
```bash
|
||||
$ sed -i.ext [...] # GNU
|
||||
$ sed -i .ext [...] # bsd
|
||||
```
|
||||
|
||||
## 0.9.0 (2017-03-09)
|
||||
|
||||
* Removed ods.js source. The xlsx.js source absorbed the ODS logic and exposes
|
||||
the ODS variable, so projects should remove references to ods.js
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{D:{"1":"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","2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB"},L:{"1":"H"},B:{"1":"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","2":"C K L G M N O"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB 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","2":"DC tB I v EC FC"},M:{"1":"H"},A:{"2":"J D E F A B CC"},F:{"1":"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","2":"0 1 2 3 4 5 6 7 8 9 F B C G M N O w g x y z AB BB CB DB EB FB GB HB IB JB PC QC RC SC qB AC TC rB"},K:{"1":"h","2":"A B C qB AC rB"},E:{"2":"I v J D HC zB IC JC KC OC","33":"E F A B C K L G LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B"},G:{"2":"zB UC BC VC WC XC","33":"E YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},P:{"1":"g yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","2":"I wC xC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"}},B:6,C:"text-decoration shorthand property"};
|
||||
@@ -0,0 +1,91 @@
|
||||
"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.bufferTime = void 0;
|
||||
var Subscription_1 = require("../Subscription");
|
||||
var lift_1 = require("../util/lift");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
var arrRemove_1 = require("../util/arrRemove");
|
||||
var async_1 = require("../scheduler/async");
|
||||
var args_1 = require("../util/args");
|
||||
var executeSchedule_1 = require("../util/executeSchedule");
|
||||
function bufferTime(bufferTimeSpan) {
|
||||
var _a, _b;
|
||||
var otherArgs = [];
|
||||
for (var _i = 1; _i < arguments.length; _i++) {
|
||||
otherArgs[_i - 1] = arguments[_i];
|
||||
}
|
||||
var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : async_1.asyncScheduler;
|
||||
var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
|
||||
var maxBufferSize = otherArgs[1] || Infinity;
|
||||
return lift_1.operate(function (source, subscriber) {
|
||||
var bufferRecords = [];
|
||||
var restartOnEmit = false;
|
||||
var emit = function (record) {
|
||||
var buffer = record.buffer, subs = record.subs;
|
||||
subs.unsubscribe();
|
||||
arrRemove_1.arrRemove(bufferRecords, record);
|
||||
subscriber.next(buffer);
|
||||
restartOnEmit && startBuffer();
|
||||
};
|
||||
var startBuffer = function () {
|
||||
if (bufferRecords) {
|
||||
var subs = new Subscription_1.Subscription();
|
||||
subscriber.add(subs);
|
||||
var buffer = [];
|
||||
var record_1 = {
|
||||
buffer: buffer,
|
||||
subs: subs,
|
||||
};
|
||||
bufferRecords.push(record_1);
|
||||
executeSchedule_1.executeSchedule(subs, scheduler, function () { return emit(record_1); }, bufferTimeSpan);
|
||||
}
|
||||
};
|
||||
if (bufferCreationInterval !== null && bufferCreationInterval >= 0) {
|
||||
executeSchedule_1.executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true);
|
||||
}
|
||||
else {
|
||||
restartOnEmit = true;
|
||||
}
|
||||
startBuffer();
|
||||
var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
|
||||
var e_1, _a;
|
||||
var recordsCopy = bufferRecords.slice();
|
||||
try {
|
||||
for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
||||
var record = recordsCopy_1_1.value;
|
||||
var buffer = record.buffer;
|
||||
buffer.push(value);
|
||||
maxBufferSize <= buffer.length && emit(record);
|
||||
}
|
||||
}
|
||||
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
||||
finally {
|
||||
try {
|
||||
if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return)) _a.call(recordsCopy_1);
|
||||
}
|
||||
finally { if (e_1) throw e_1.error; }
|
||||
}
|
||||
}, function () {
|
||||
while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) {
|
||||
subscriber.next(bufferRecords.shift().buffer);
|
||||
}
|
||||
bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe();
|
||||
subscriber.complete();
|
||||
subscriber.unsubscribe();
|
||||
}, undefined, function () { return (bufferRecords = null); });
|
||||
source.subscribe(bufferTimeSubscriber);
|
||||
});
|
||||
}
|
||||
exports.bufferTime = bufferTime;
|
||||
//# sourceMappingURL=bufferTime.js.map
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { PreprocessorArgs } from '../types';
|
||||
export declare const getTagInfo: ({ attributes, filename, content, }: PreprocessorArgs) => Promise<{
|
||||
filename: string;
|
||||
attributes: Record<string, string | boolean>;
|
||||
content: string;
|
||||
lang: string;
|
||||
alias: any;
|
||||
dependencies: any[];
|
||||
}>;
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"K L G M N O 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","2":"C"},C:{"1":"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","2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z EC FC","578":"AB BB CB DB"},D:{"1":"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","2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB","194":"DB"},E:{"1":"A B C K L G LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E F HC zB IC JC KC"},F:{"1":"1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB 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","2":"F B C G M N O w g x y z PC QC RC SC qB AC TC rB","322":"0"},G:{"1":"aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","2":"E zB UC BC VC WC XC YC ZC"},H:{"2":"oC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"AD BD"}},B:1,C:"Picture element"};
|
||||
@@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
/**
|
||||
* Returns true if the string matches the specified shell
|
||||
* expression.
|
||||
*
|
||||
* Actually, currently the patterns are shell expressions,
|
||||
* not regular expressions.
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* ``` js
|
||||
* shExpMatch("http://home.netscape.com/people/ari/index.html", "*\/ari/*")
|
||||
* // is true.
|
||||
*
|
||||
* shExpMatch("http://home.netscape.com/people/montulli/index.html", "*\/ari/*")
|
||||
* // is false.
|
||||
* ```
|
||||
*
|
||||
* @param {String} str is any string to compare (e.g. the URL, or the hostname).
|
||||
* @param {String} shexp is a shell expression to compare against.
|
||||
* @return {Boolean} true if the string matches the shell expression.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function shExpMatch(str, shexp) {
|
||||
const re = toRegExp(shexp);
|
||||
return re.test(str);
|
||||
}
|
||||
exports.default = shExpMatch;
|
||||
/**
|
||||
* Converts a "shell expression" to a JavaScript RegExp.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
function toRegExp(str) {
|
||||
str = String(str)
|
||||
.replace(/\./g, '\\.')
|
||||
.replace(/\?/g, '.')
|
||||
.replace(/\*/g, '.*');
|
||||
return new RegExp(`^${str}$`);
|
||||
}
|
||||
//# sourceMappingURL=shExpMatch.js.map
|
||||
@@ -0,0 +1,62 @@
|
||||
import { isScheduler } from '../util/isScheduler';
|
||||
import { Observable } from '../Observable';
|
||||
import { subscribeOn } from '../operators/subscribeOn';
|
||||
import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';
|
||||
import { observeOn } from '../operators/observeOn';
|
||||
import { AsyncSubject } from '../AsyncSubject';
|
||||
export function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) {
|
||||
if (resultSelector) {
|
||||
if (isScheduler(resultSelector)) {
|
||||
scheduler = resultSelector;
|
||||
}
|
||||
else {
|
||||
return function (...args) {
|
||||
return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler)
|
||||
.apply(this, args)
|
||||
.pipe(mapOneOrManyArgs(resultSelector));
|
||||
};
|
||||
}
|
||||
}
|
||||
if (scheduler) {
|
||||
return function (...args) {
|
||||
return bindCallbackInternals(isNodeStyle, callbackFunc)
|
||||
.apply(this, args)
|
||||
.pipe(subscribeOn(scheduler), observeOn(scheduler));
|
||||
};
|
||||
}
|
||||
return function (...args) {
|
||||
const subject = new AsyncSubject();
|
||||
let uninitialized = true;
|
||||
return new Observable((subscriber) => {
|
||||
const subs = subject.subscribe(subscriber);
|
||||
if (uninitialized) {
|
||||
uninitialized = false;
|
||||
let isAsync = false;
|
||||
let isComplete = false;
|
||||
callbackFunc.apply(this, [
|
||||
...args,
|
||||
(...results) => {
|
||||
if (isNodeStyle) {
|
||||
const err = results.shift();
|
||||
if (err != null) {
|
||||
subject.error(err);
|
||||
return;
|
||||
}
|
||||
}
|
||||
subject.next(1 < results.length ? results : results[0]);
|
||||
isComplete = true;
|
||||
if (isAsync) {
|
||||
subject.complete();
|
||||
}
|
||||
},
|
||||
]);
|
||||
if (isComplete) {
|
||||
subject.complete();
|
||||
}
|
||||
isAsync = true;
|
||||
}
|
||||
return subs;
|
||||
});
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=bindCallbackInternals.js.map
|
||||
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
var flags = require('../implementation');
|
||||
var callBind = require('call-bind');
|
||||
var test = require('tape');
|
||||
var hasStrictMode = require('has-strict-mode')();
|
||||
var runTests = require('./tests');
|
||||
|
||||
test('as a function', function (t) {
|
||||
t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
|
||||
/* eslint no-useless-call: 0 */
|
||||
st['throws'](function () { flags.call(undefined); }, TypeError, 'undefined is not an object');
|
||||
st['throws'](function () { flags.call(null); }, TypeError, 'null is not an object');
|
||||
st.end();
|
||||
});
|
||||
|
||||
runTests(callBind(flags), t);
|
||||
|
||||
t.end();
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"A B","2":"J D E F CC"},B:{"1":"C K L G M N O 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:{"1":"0 1 2 3 4 5 6 7 8 9 M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB 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","2":"DC tB I EC FC","33":"v J D E F A B C K L G"},D:{"1":"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","33":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB"},E:{"1":"F A B C K L G LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"HC zB","33":"J D E IC JC KC","292":"I v"},F:{"1":"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 rB","2":"F B PC QC RC SC qB AC TC","33":"0 1 2 3 4 5 C G M N O w g x y z"},G:{"1":"ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","33":"E WC XC YC","164":"zB UC BC VC"},H:{"2":"oC"},I:{"1":"f","33":"I sC BC tC uC","164":"tB pC qC rC"},J:{"33":"D A"},K:{"1":"h rB","2":"A B C qB AC"},L:{"1":"H"},M:{"1":"H"},N:{"1":"A B"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"AD BD"}},B:5,C:"CSS Animation"};
|
||||
@@ -0,0 +1,57 @@
|
||||
'use strict';
|
||||
|
||||
var StrictEqualityComparison = require('./StrictEqualityComparison');
|
||||
var StringToBigInt = require('./StringToBigInt');
|
||||
var ToNumber = require('./ToNumber');
|
||||
var ToPrimitive = require('./ToPrimitive');
|
||||
var Type = require('./Type');
|
||||
|
||||
var isNaN = require('../helpers/isNaN');
|
||||
|
||||
// https://262.ecma-international.org/11.0/#sec-abstract-equality-comparison
|
||||
|
||||
module.exports = function AbstractEqualityComparison(x, y) {
|
||||
var xType = Type(x);
|
||||
var yType = Type(y);
|
||||
if (xType === yType) {
|
||||
return StrictEqualityComparison(x, y);
|
||||
}
|
||||
if (x == null && y == null) {
|
||||
return true;
|
||||
}
|
||||
if (xType === 'Number' && yType === 'String') {
|
||||
return AbstractEqualityComparison(x, ToNumber(y));
|
||||
}
|
||||
if (xType === 'String' && yType === 'Number') {
|
||||
return AbstractEqualityComparison(ToNumber(x), y);
|
||||
}
|
||||
if (xType === 'BigInt' && yType === 'String') {
|
||||
var n = StringToBigInt(y);
|
||||
if (isNaN(n)) {
|
||||
return false;
|
||||
}
|
||||
return AbstractEqualityComparison(x, n);
|
||||
}
|
||||
if (xType === 'String' && yType === 'BigInt') {
|
||||
return AbstractEqualityComparison(y, x);
|
||||
}
|
||||
if (xType === 'Boolean') {
|
||||
return AbstractEqualityComparison(ToNumber(x), y);
|
||||
}
|
||||
if (yType === 'Boolean') {
|
||||
return AbstractEqualityComparison(x, ToNumber(y));
|
||||
}
|
||||
if ((xType === 'String' || xType === 'Number' || xType === 'BigInt' || xType === 'Symbol') && yType === 'Object') {
|
||||
return AbstractEqualityComparison(x, ToPrimitive(y));
|
||||
}
|
||||
if (xType === 'Object' && (yType === 'String' || yType === 'Number' || yType === 'BigInt' || yType === 'Symbol')) {
|
||||
return AbstractEqualityComparison(ToPrimitive(x), y);
|
||||
}
|
||||
if ((xType === 'BigInt' && yType === 'Number') || (xType === 'Number' && yType === 'BigInt')) {
|
||||
if (isNaN(x) || isNaN(y) || x === Infinity || y === Infinity || x === -Infinity || y === -Infinity) {
|
||||
return false;
|
||||
}
|
||||
return x == y; // eslint-disable-line eqeqeq
|
||||
}
|
||||
return false;
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
Copyright 2018 Eemeli Aro <eemeli@gmail.com>
|
||||
|
||||
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,140 @@
|
||||
# adler32
|
||||
|
||||
Signed ADLER-32 algorithm implementation in JS (for the browser and nodejs).
|
||||
Emphasis on correctness, performance, and IE6+ support.
|
||||
|
||||
## Installation
|
||||
|
||||
With [npm](https://www.npmjs.org/package/adler-32):
|
||||
|
||||
```bash
|
||||
$ npm install adler-32
|
||||
```
|
||||
|
||||
In the browser:
|
||||
|
||||
```html
|
||||
<script src="adler32.js"></script>
|
||||
```
|
||||
|
||||
The browser exposes a variable `ADLER32`.
|
||||
|
||||
When installed globally, npm installs a script `adler32` that computes the
|
||||
checksum for a specified file or standard input.
|
||||
|
||||
The script will manipulate `module.exports` if available . This is not always
|
||||
desirable. To prevent the behavior, define `DO_NOT_EXPORT_ADLER`.
|
||||
|
||||
## Usage
|
||||
|
||||
In all cases, the relevant function takes an argument representing data and an
|
||||
optional second argument representing the starting "seed" (for running hash).
|
||||
|
||||
The return value is a signed 32-bit integer.
|
||||
|
||||
- `ADLER32.buf(byte array or buffer[, seed])` assumes the argument is a sequence
|
||||
of 8-bit unsigned integers (nodejs `Buffer`, `Uint8Array` or array of bytes).
|
||||
|
||||
- `ADLER32.bstr(binary string[, seed])` assumes the argument is a binary string
|
||||
where byte `i` is the low byte of the UCS-2 char: `str.charCodeAt(i) & 0xFF`
|
||||
|
||||
- `ADLER32.str(string)` assumes the argument is a standard JS string and
|
||||
calculates the hash of the UTF-8 encoding.
|
||||
|
||||
For example:
|
||||
|
||||
```js
|
||||
// var ADLER32 = require('adler-32'); // uncomment if in node
|
||||
ADLER32.str("SheetJS") // 176947863
|
||||
ADLER32.bstr("SheetJS") // 176947863
|
||||
ADLER32.buf([ 83, 104, 101, 101, 116, 74, 83 ]) // 176947863
|
||||
|
||||
adler32 = ADLER32.buf([83, 104]) // 17825980 "Sh"
|
||||
adler32 = ADLER32.str("eet", adler32) // 95486458 "Sheet"
|
||||
ADLER32.bstr("JS", adler32) // 176947863 "SheetJS"
|
||||
|
||||
[ADLER32.str("\u2603"), ADLER32.str("\u0003")] // [ 73138686, 262148 ]
|
||||
[ADLER32.bstr("\u2603"), ADLER32.bstr("\u0003")] // [ 262148, 262148 ]
|
||||
[ADLER32.buf([0x2603]), ADLER32.buf([0x0003])] // [ 262148, 262148 ]
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
`make test` will run the nodejs-based test.
|
||||
|
||||
To run the in-browser tests, run a local server and go to the `ctest` directory.
|
||||
`make ctestserv` will start a python `SimpleHTTPServer` server on port 8000.
|
||||
|
||||
To update the browser artifacts, run `make ctest`.
|
||||
|
||||
To generate the bits file, use the `adler32` function from python `zlib`:
|
||||
|
||||
```python
|
||||
>>> from zlib import adler32
|
||||
>>> x="foo bar baz٪☃🍣"
|
||||
>>> adler32(x)
|
||||
1543572022
|
||||
>>> adler32(x+x)
|
||||
-2076896149
|
||||
>>> adler32(x+x+x)
|
||||
2023497376
|
||||
```
|
||||
|
||||
The [`adler32-cli`](https://www.npmjs.com/package/adler32-cli) package includes
|
||||
scripts for processing files or text on standard input:
|
||||
|
||||
```bash
|
||||
$ echo "this is a test" > t.txt
|
||||
$ adler32-cli t.txt
|
||||
726861088
|
||||
```
|
||||
|
||||
For comparison, the `adler32.py` script in the subdirectory uses python `zlib`:
|
||||
|
||||
```bash
|
||||
$ packages/adler32-cli/bin/adler32.py t.txt
|
||||
726861088
|
||||
```
|
||||
|
||||
## Performance
|
||||
|
||||
`make perf` will run algorithmic performance tests (which should justify certain
|
||||
decisions in the code).
|
||||
|
||||
Bit twiddling is much faster than taking the mod in Safari and Firefox browsers.
|
||||
Instead of taking the literal mod 65521, it is faster to keep it in the integers
|
||||
by bit-shifting: `65536 ~ 15 mod 65521` so for nonnegative integer `a`:
|
||||
|
||||
```
|
||||
a = (a >>> 16) * 65536 + (a & 65535) [equality]
|
||||
a ~ (a >>> 16) * 15 + (a & 65535) mod 65521
|
||||
```
|
||||
|
||||
The mod is taken at the very end, since the intermediate result may exceed 65521
|
||||
|
||||
## Magic Number
|
||||
|
||||
The magic numbers were chosen so as to not overflow a 31-bit integer:
|
||||
|
||||
```mathematica
|
||||
F[n_] := Reduce[x*(x + 1)*n/2 + (x + 1)*(65521) < (2^31 - 1) && x > 0, x, Integers]
|
||||
F[255] (* bstr: x \[Element] Integers && 1 <= x <= 3854 *)
|
||||
F[127] (* ascii: x \[Element] Integers && 1 <= x <= 5321 *)
|
||||
```
|
||||
|
||||
Subtract up to 4 elements for the Unicode case.
|
||||
|
||||
## License
|
||||
|
||||
Please consult the attached LICENSE file for details. All rights not explicitly
|
||||
granted by the Apache 2.0 license are reserved by the Original Author.
|
||||
|
||||
## Badges
|
||||
|
||||
[](https://saucelabs.com/u/adler32)
|
||||
|
||||
[](https://github.com/SheetJS/js-adler32/actions)
|
||||
|
||||
[](https://coveralls.io/r/SheetJS/js-adler32?branch=master)
|
||||
|
||||
[](https://github.com/SheetJS/js-adler32)
|
||||
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"name": "codepage",
|
||||
"version": "1.15.0",
|
||||
"author": "SheetJS",
|
||||
"description": "pure-JS library to handle codepages",
|
||||
"keywords": [
|
||||
"codepage",
|
||||
"iconv",
|
||||
"convert",
|
||||
"strings"
|
||||
],
|
||||
"main": "cputils.js",
|
||||
"types": "types",
|
||||
"browser": {
|
||||
"buffer": "false"
|
||||
},
|
||||
"devDependencies": {
|
||||
"voc": "~1.1.0",
|
||||
"mocha": "~2.5.3",
|
||||
"blanket": "~1.2.3",
|
||||
"@sheetjs/uglify-js": "~2.7.3",
|
||||
"@types/node": "^8.0.7",
|
||||
"@types/commander": "^2.12.0",
|
||||
"dtslint": "^0.1.2",
|
||||
"typescript": "2.2.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/SheetJS/js-codepage.git"
|
||||
},
|
||||
"scripts": {
|
||||
"pretest": "git submodule init && git submodule update",
|
||||
"test": "make test",
|
||||
"build": "make js",
|
||||
"lint": "make fullint",
|
||||
"dtslint": "dtslint types"
|
||||
},
|
||||
"config": {
|
||||
"blanket": {
|
||||
"pattern": "[cputils.js]"
|
||||
}
|
||||
},
|
||||
"alex": {
|
||||
"allow": [
|
||||
"chinese",
|
||||
"european",
|
||||
"german",
|
||||
"japanese",
|
||||
"latin"
|
||||
]
|
||||
},
|
||||
"homepage": "https://sheetjs.com/",
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"README.md",
|
||||
"bin",
|
||||
"bits/*.js",
|
||||
"types/index.d.ts",
|
||||
"types/*.json",
|
||||
"cptable.js",
|
||||
"cputils.js",
|
||||
"dist/sbcs.full.js",
|
||||
"dist/cpexcel.full.js"
|
||||
],
|
||||
"bugs": {
|
||||
"url": "https://github.com/SheetJS/js-codepage/issues"
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=0.8"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
var test = require('tap').test;
|
||||
var detective = require('../');
|
||||
var fs = require('fs');
|
||||
var src = fs.readFileSync(__dirname + '/files/generators.js');
|
||||
|
||||
test('generators', function (t) {
|
||||
t.plan(1);
|
||||
t.deepEqual(detective(src), [ 'a', 'b' ]);
|
||||
});
|
||||
@@ -0,0 +1,34 @@
|
||||
import { assign, slice } from './util';
|
||||
import { createVNode } from './create-element';
|
||||
|
||||
/**
|
||||
* Clones the given VNode, optionally adding attributes/props and replacing its children.
|
||||
* @param {import('./internal').VNode} vnode The virtual DOM element to clone
|
||||
* @param {object} props Attributes/props to add when cloning
|
||||
* @param {Array<import('./internal').ComponentChildren>} rest Any additional arguments will be used as replacement children.
|
||||
* @returns {import('./internal').VNode}
|
||||
*/
|
||||
export function cloneElement(vnode, props, children) {
|
||||
let normalizedProps = assign({}, vnode.props),
|
||||
key,
|
||||
ref,
|
||||
i;
|
||||
for (i in props) {
|
||||
if (i == 'key') key = props[i];
|
||||
else if (i == 'ref') ref = props[i];
|
||||
else normalizedProps[i] = props[i];
|
||||
}
|
||||
|
||||
if (arguments.length > 2) {
|
||||
normalizedProps.children =
|
||||
arguments.length > 3 ? slice.call(arguments, 2) : children;
|
||||
}
|
||||
|
||||
return createVNode(
|
||||
vnode.type,
|
||||
normalizedProps,
|
||||
key || vnode.key,
|
||||
ref || vnode.ref,
|
||||
null
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
Lowercase the keys of an object.
|
||||
|
||||
@returns A new object with the keys lowercased.
|
||||
|
||||
@example
|
||||
```
|
||||
import lowercaseKeys from 'lowercase-keys';
|
||||
|
||||
lowercaseKeys({FOO: true, bAr: false});
|
||||
//=> {foo: true, bar: false}
|
||||
```
|
||||
*/
|
||||
export default function lowercaseKeys<T>(object: Record<string, T>): Record<string, T>;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"UnsubscriptionError.js","sourceRoot":"","sources":["../../../../src/internal/util/UnsubscriptionError.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAkBzC,QAAA,mBAAmB,GAA4B,mCAAgB,CAC1E,UAAC,MAAM;IACL,OAAA,SAAS,uBAAuB,CAAY,MAA0B;QACpE,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,MAAM;YACnB,CAAC,CAAI,MAAM,CAAC,MAAM,iDACxB,MAAM,CAAC,GAAG,CAAC,UAAC,GAAG,EAAE,CAAC,IAAK,OAAG,CAAC,GAAG,CAAC,UAAK,GAAG,CAAC,QAAQ,EAAI,EAA7B,CAA6B,CAAC,CAAC,IAAI,CAAC,MAAM,CAAG;YAC9D,CAAC,CAAC,EAAE,CAAC;QACP,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;AARD,CAQC,CACJ,CAAC"}
|
||||
Reference in New Issue
Block a user