new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import AwaitBlock from '../AwaitBlock';
|
||||
import Body from '../Body';
|
||||
import ConstTag from '../ConstTag';
|
||||
import Comment from '../Comment';
|
||||
import EachBlock from '../EachBlock';
|
||||
import Element from '../Element';
|
||||
import Head from '../Head';
|
||||
import IfBlock from '../IfBlock';
|
||||
import InlineComponent from '../InlineComponent';
|
||||
import KeyBlock from '../KeyBlock';
|
||||
import MustacheTag from '../MustacheTag';
|
||||
import Options from '../Options';
|
||||
import RawMustacheTag from '../RawMustacheTag';
|
||||
import DebugTag from '../DebugTag';
|
||||
import SlotTemplate from '../SlotTemplate';
|
||||
import Text from '../Text';
|
||||
import Title from '../Title';
|
||||
import Window from '../Window';
|
||||
import { TemplateNode } from '../../../interfaces';
|
||||
export declare type Children = ReturnType<typeof map_children>;
|
||||
export default function map_children(component: any, parent: any, scope: any, children: TemplateNode[]): (AwaitBlock | Body | Comment | ConstTag | DebugTag | EachBlock | Element | Head | IfBlock | InlineComponent | KeyBlock | MustacheTag | Options | RawMustacheTag | SlotTemplate | Text | Title | Window)[];
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"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","194":"P Q R S T U V W X Y"},C:{"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 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 EC FC"},D:{"1":"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 bB cB dB eB fB gB hB iB","194":"jB kB h lB mB nB oB pB P Q R S T"},E:{"2":"I v J D E F A B C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B","4":"9B OC"},F:{"1":"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 QB RB SB TB UB VB WB XB PC QC RC SC qB AC TC rB","194":"YB ZB aB bB cB dB eB fB gB hB iB jB kB"},G:{"2":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B","4":"9B"},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:{"2":"H"},N:{"2":"A B"},O:{"2":"vC"},P:{"1":"g 4C 5C sB 6C 7C 8C","2":"I wC xC yC zC 0C 0B 1C 2C 3C"},Q:{"2":"1B"},R:{"1":"9C"},S:{"2":"AD BD"}},B:4,C:"Screen Wake Lock API"};
|
||||
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [ljharb]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: npm/iterate-iterator
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
var resolveException = require("../lib/resolve-exception")
|
||||
, is = require("./is");
|
||||
|
||||
module.exports = function (value/*, options*/) {
|
||||
if (is(value)) return value;
|
||||
var options = arguments[1];
|
||||
var errorMessage =
|
||||
options && options.name ? "Expected a date for %n, received %v" : "%v is not a date";
|
||||
return resolveException(value, errorMessage, options);
|
||||
};
|
||||
@@ -0,0 +1,144 @@
|
||||
import {Resolver, promises as dnsPromises, lookup} from 'dns';
|
||||
import {Agent} from 'http';
|
||||
|
||||
type AsyncResolver = dnsPromises.Resolver;
|
||||
|
||||
export type IPFamily = 4 | 6;
|
||||
export type EntrySource = 'query' | 'cache';
|
||||
|
||||
type TPromise<T> = T | Promise<T>;
|
||||
|
||||
export interface CacheInstance {
|
||||
set(hostname: string, entries: EntryObject[], ttl: number): TPromise<void | boolean | this>;
|
||||
get(hostname: string): TPromise<EntryObject[] | undefined>;
|
||||
delete(hostname: string): TPromise<boolean>;
|
||||
clear(): TPromise<void>;
|
||||
}
|
||||
|
||||
export interface Options {
|
||||
/**
|
||||
* Custom cache instance. If `undefined`, it will create a new one.
|
||||
* @default undefined
|
||||
*/
|
||||
cache?: CacheInstance;
|
||||
/**
|
||||
* Limits the cache time (TTL). If set to `0`, it will make a new DNS query each time.
|
||||
* @default Infinity
|
||||
*/
|
||||
maxTtl?: number;
|
||||
/**
|
||||
* DNS Resolver used to make DNS queries.
|
||||
* @default new dns.promises.Resolver()
|
||||
*/
|
||||
resolver?: Resolver | AsyncResolver;
|
||||
/**
|
||||
* When the DNS server responds with `ENOTFOUND` or `ENODATA` and the OS reports that the entry is available,
|
||||
* it will use `dns.lookup(...)` directly for the requested hostnames for the specified amount of time (in seconds).
|
||||
*
|
||||
* If you don't query internal hostnames (such as `localhost`, `database.local` etc.),
|
||||
* it is strongly recommended to set this value to `0`.
|
||||
* @default 3600
|
||||
*/
|
||||
fallbackDuration?: number;
|
||||
/**
|
||||
* The time how long it needs to remember failed queries (TTL in seconds).
|
||||
*
|
||||
* **Note**: This option is independent, `options.maxTtl` does not affect this.
|
||||
* @default 0.15
|
||||
*/
|
||||
errorTtl?: number;
|
||||
/**
|
||||
* The fallback function to use when the DNS server responds with `ENOTFOUND` or `ENODATA`.
|
||||
*
|
||||
* **Note**: This has no effect if the `fallbackDuration` option is less than `1`.
|
||||
* @default dns.lookup
|
||||
*/
|
||||
lookup?: typeof lookup | false;
|
||||
}
|
||||
|
||||
export interface EntryObject {
|
||||
/**
|
||||
* The IP address (can be an IPv4 or IPv5 address).
|
||||
*/
|
||||
readonly address: string;
|
||||
/**
|
||||
* The IP family.
|
||||
*/
|
||||
readonly family: IPFamily;
|
||||
/**
|
||||
* The original TTL.
|
||||
*/
|
||||
readonly ttl?: number;
|
||||
/**
|
||||
* The expiration timestamp.
|
||||
*/
|
||||
readonly expires?: number;
|
||||
/**
|
||||
* Whether this entry comes from the cache or a query
|
||||
*/
|
||||
readonly source?: EntrySource;
|
||||
}
|
||||
|
||||
export interface LookupOptions {
|
||||
/**
|
||||
* One or more supported getaddrinfo flags. Multiple flags may be passed by bitwise ORing their values.
|
||||
*/
|
||||
hints?: number;
|
||||
/**
|
||||
* The record family. Must be `4` or `6`. IPv4 and IPv6 addresses are both returned by default.
|
||||
*/
|
||||
family?: IPFamily;
|
||||
/**
|
||||
* When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address.
|
||||
* @default false
|
||||
*/
|
||||
all?: boolean;
|
||||
}
|
||||
|
||||
export default class CacheableLookup {
|
||||
constructor(options?: Options);
|
||||
/**
|
||||
* The DNS servers used to make queries. Can be overridden - doing so will clear the cache.
|
||||
*/
|
||||
servers: string[];
|
||||
/**
|
||||
* @see https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback
|
||||
*/
|
||||
lookup(hostname: string, family: IPFamily, callback: (error: NodeJS.ErrnoException | null, address: string, family: IPFamily) => void): void;
|
||||
lookup(hostname: string, callback: (error: NodeJS.ErrnoException | null, address: string, family: IPFamily) => void): void;
|
||||
lookup(hostname: string, options: LookupOptions & {all: true}, callback: (error: NodeJS.ErrnoException | null, result: ReadonlyArray<EntryObject>) => void): void;
|
||||
lookup(hostname: string, options: LookupOptions, callback: (error: NodeJS.ErrnoException | null, address: string, family: IPFamily) => void): void;
|
||||
/**
|
||||
* The asynchronous version of `dns.lookup(…)`.
|
||||
*/
|
||||
lookupAsync(hostname: string, options: LookupOptions & {all: true}): Promise<ReadonlyArray<EntryObject>>;
|
||||
lookupAsync(hostname: string, options: LookupOptions): Promise<EntryObject>;
|
||||
lookupAsync(hostname: string): Promise<EntryObject>;
|
||||
lookupAsync(hostname: string, family: IPFamily): Promise<EntryObject>;
|
||||
/**
|
||||
* An asynchronous function which returns cached DNS lookup entries. This is the base for `lookupAsync(hostname, options)` and `lookup(hostname, options, callback)`.
|
||||
*/
|
||||
query(hostname: string): Promise<ReadonlyArray<EntryObject>>;
|
||||
/**
|
||||
* An asynchronous function which makes a new DNS lookup query and updates the database. This is used by `query(hostname, family)` if no entry in the database is present. Returns an array of objects with `address`, `family`, `ttl` and `expires` properties.
|
||||
*/
|
||||
queryAndCache(hostname: string): Promise<ReadonlyArray<EntryObject>>;
|
||||
/**
|
||||
* Attaches itself to an Agent instance.
|
||||
*/
|
||||
install(agent: Agent): void;
|
||||
/**
|
||||
* Removes itself from an Agent instance.
|
||||
*/
|
||||
uninstall(agent: Agent): void;
|
||||
/**
|
||||
* Updates interface info. For example, you need to run this when you plug or unplug your WiFi driver.
|
||||
*
|
||||
* **Note:** Running `updateInterfaceInfo()` will trigger `clear()` only on network interface removal.
|
||||
*/
|
||||
updateInterfaceInfo(): void;
|
||||
/**
|
||||
* Clears the cache for the given hostname. If the hostname argument is not present, the entire cache will be emptied.
|
||||
*/
|
||||
clear(hostname?: string): void;
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
# Lower Case
|
||||
|
||||
[![NPM version][npm-image]][npm-url]
|
||||
[![NPM downloads][downloads-image]][downloads-url]
|
||||
[![Build status][travis-image]][travis-url]
|
||||
[![Test coverage][coveralls-image]][coveralls-url]
|
||||
|
||||
Lower case a string.
|
||||
|
||||
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a `toString` property, numbers and booleans. Empty values (`null` and `undefined`) will result in an empty string.
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
npm install lower-case --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var lowerCase = require('lower-case')
|
||||
|
||||
lowerCase(null) //=> ""
|
||||
lowerCase('STRING') //=> "string"
|
||||
lowerCase('STRING', 'tr') //=> "strıng"
|
||||
|
||||
lowerCase({ toString: function () { return 'TEST' } }) //=> "test"
|
||||
```
|
||||
|
||||
## Typings
|
||||
|
||||
Includes a [TypeScript definition](lower-case.d.ts).
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/lower-case.svg?style=flat
|
||||
[npm-url]: https://npmjs.org/package/lower-case
|
||||
[downloads-image]: https://img.shields.io/npm/dm/lower-case.svg?style=flat
|
||||
[downloads-url]: https://npmjs.org/package/lower-case
|
||||
[travis-image]: https://img.shields.io/travis/blakeembrey/lower-case.svg?style=flat
|
||||
[travis-url]: https://travis-ci.org/blakeembrey/lower-case
|
||||
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/lower-case.svg?style=flat
|
||||
[coveralls-url]: https://coveralls.io/r/blakeembrey/lower-case?branch=master
|
||||
@@ -0,0 +1,81 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.hmac = void 0;
|
||||
const _assert_js_1 = require("./_assert.js");
|
||||
const utils_js_1 = require("./utils.js");
|
||||
// HMAC (RFC 2104)
|
||||
class HMAC extends utils_js_1.Hash {
|
||||
constructor(hash, _key) {
|
||||
super();
|
||||
this.finished = false;
|
||||
this.destroyed = false;
|
||||
_assert_js_1.default.hash(hash);
|
||||
const key = (0, utils_js_1.toBytes)(_key);
|
||||
this.iHash = hash.create();
|
||||
if (typeof this.iHash.update !== 'function')
|
||||
throw new TypeError('Expected instance of class which extends utils.Hash');
|
||||
this.blockLen = this.iHash.blockLen;
|
||||
this.outputLen = this.iHash.outputLen;
|
||||
const blockLen = this.blockLen;
|
||||
const pad = new Uint8Array(blockLen);
|
||||
// blockLen can be bigger than outputLen
|
||||
pad.set(key.length > blockLen ? hash.create().update(key).digest() : key);
|
||||
for (let i = 0; i < pad.length; i++)
|
||||
pad[i] ^= 0x36;
|
||||
this.iHash.update(pad);
|
||||
// By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone
|
||||
this.oHash = hash.create();
|
||||
// Undo internal XOR && apply outer XOR
|
||||
for (let i = 0; i < pad.length; i++)
|
||||
pad[i] ^= 0x36 ^ 0x5c;
|
||||
this.oHash.update(pad);
|
||||
pad.fill(0);
|
||||
}
|
||||
update(buf) {
|
||||
_assert_js_1.default.exists(this);
|
||||
this.iHash.update(buf);
|
||||
return this;
|
||||
}
|
||||
digestInto(out) {
|
||||
_assert_js_1.default.exists(this);
|
||||
_assert_js_1.default.bytes(out, this.outputLen);
|
||||
this.finished = true;
|
||||
this.iHash.digestInto(out);
|
||||
this.oHash.update(out);
|
||||
this.oHash.digestInto(out);
|
||||
this.destroy();
|
||||
}
|
||||
digest() {
|
||||
const out = new Uint8Array(this.oHash.outputLen);
|
||||
this.digestInto(out);
|
||||
return out;
|
||||
}
|
||||
_cloneInto(to) {
|
||||
// Create new instance without calling constructor since key already in state and we don't know it.
|
||||
to || (to = Object.create(Object.getPrototypeOf(this), {}));
|
||||
const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this;
|
||||
to = to;
|
||||
to.finished = finished;
|
||||
to.destroyed = destroyed;
|
||||
to.blockLen = blockLen;
|
||||
to.outputLen = outputLen;
|
||||
to.oHash = oHash._cloneInto(to.oHash);
|
||||
to.iHash = iHash._cloneInto(to.iHash);
|
||||
return to;
|
||||
}
|
||||
destroy() {
|
||||
this.destroyed = true;
|
||||
this.oHash.destroy();
|
||||
this.iHash.destroy();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* HMAC: RFC2104 message authentication code.
|
||||
* @param hash - function that would be used e.g. sha256
|
||||
* @param key - message key
|
||||
* @param message - message data
|
||||
*/
|
||||
const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest();
|
||||
exports.hmac = hmac;
|
||||
exports.hmac.create = (hash, key) => new HMAC(hash, key);
|
||||
//# sourceMappingURL=hmac.js.map
|
||||
@@ -0,0 +1,78 @@
|
||||
import { options, Fragment } from 'preact';
|
||||
|
||||
/** @typedef {import('preact').VNode} VNode */
|
||||
|
||||
let vnodeId = 0;
|
||||
|
||||
/**
|
||||
* @fileoverview
|
||||
* This file exports various methods that implement Babel's "automatic" JSX runtime API:
|
||||
* - jsx(type, props, key)
|
||||
* - jsxs(type, props, key)
|
||||
* - jsxDEV(type, props, key, __source, __self)
|
||||
*
|
||||
* The implementation of createVNode here is optimized for performance.
|
||||
* Benchmarks: https://esbench.com/bench/5f6b54a0b4632100a7dcd2b3
|
||||
*/
|
||||
|
||||
/**
|
||||
* JSX.Element factory used by Babel's {runtime:"automatic"} JSX transform
|
||||
* @param {VNode['type']} type
|
||||
* @param {VNode['props']} props
|
||||
* @param {VNode['key']} [key]
|
||||
* @param {unknown} [isStaticChildren]
|
||||
* @param {unknown} [__source]
|
||||
* @param {unknown} [__self]
|
||||
*/
|
||||
function createVNode(type, props, key, isStaticChildren, __source, __self) {
|
||||
// We'll want to preserve `ref` in props to get rid of the need for
|
||||
// forwardRef components in the future, but that should happen via
|
||||
// a separate PR.
|
||||
let normalizedProps = {},
|
||||
ref,
|
||||
i;
|
||||
for (i in props) {
|
||||
if (i == 'ref') {
|
||||
ref = props[i];
|
||||
} else {
|
||||
normalizedProps[i] = props[i];
|
||||
}
|
||||
}
|
||||
|
||||
const vnode = {
|
||||
type,
|
||||
props: normalizedProps,
|
||||
key,
|
||||
ref,
|
||||
_children: null,
|
||||
_parent: null,
|
||||
_depth: 0,
|
||||
_dom: null,
|
||||
_nextDom: undefined,
|
||||
_component: null,
|
||||
_hydrating: null,
|
||||
constructor: undefined,
|
||||
_original: --vnodeId,
|
||||
__source,
|
||||
__self
|
||||
};
|
||||
|
||||
// If a Component VNode, check for and apply defaultProps.
|
||||
// Note: `type` is often a String, and can be `undefined` in development.
|
||||
if (typeof type === 'function' && (ref = type.defaultProps)) {
|
||||
for (i in ref)
|
||||
if (typeof normalizedProps[i] === 'undefined') {
|
||||
normalizedProps[i] = ref[i];
|
||||
}
|
||||
}
|
||||
|
||||
if (options.vnode) options.vnode(vnode);
|
||||
return vnode;
|
||||
}
|
||||
|
||||
export {
|
||||
createVNode as jsx,
|
||||
createVNode as jsxs,
|
||||
createVNode as jsxDEV,
|
||||
Fragment
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
import assertString from './util/assertString';
|
||||
var md5 = /^[a-f0-9]{32}$/;
|
||||
export default function isMD5(str) {
|
||||
assertString(str);
|
||||
return md5.test(str);
|
||||
}
|
||||
@@ -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":"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 EC FC","132":"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"},D:{"1":"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 DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB","260":"TB UB VB"},E:{"1":"B 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 HC zB IC JC KC","16":"F","132":"A LC 0B"},F:{"1":"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":"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 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","132":"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 xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","2":"I wC"},Q:{"1":"1B"},R:{"1":"9C"},S:{"132":"AD BD"}},B:5,C:"system-ui value for font-family"};
|
||||
@@ -0,0 +1,41 @@
|
||||
import { Subscriber } from '../Subscriber';
|
||||
/**
|
||||
* Creates an instance of an `OperatorSubscriber`.
|
||||
* @param destination The downstream subscriber.
|
||||
* @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any
|
||||
* error that occurs in this function is caught and sent to the `error` method of this subscriber.
|
||||
* @param onError Handles errors from the subscription, any errors that occur in this handler are caught
|
||||
* and send to the `destination` error handler.
|
||||
* @param onComplete Handles completion notification from the subscription. Any errors that occur in
|
||||
* this handler are sent to the `destination` error handler.
|
||||
* @param onFinalize Additional teardown logic here. This will only be called on teardown if the
|
||||
* subscriber itself is not already closed. This is called after all other teardown logic is executed.
|
||||
*/
|
||||
export declare function createOperatorSubscriber<T>(destination: Subscriber<any>, onNext?: (value: T) => void, onComplete?: () => void, onError?: (err: any) => void, onFinalize?: () => void): Subscriber<T>;
|
||||
/**
|
||||
* A generic helper for allowing operators to be created with a Subscriber and
|
||||
* use closures to capture necessary state from the operator function itself.
|
||||
*/
|
||||
export declare class OperatorSubscriber<T> extends Subscriber<T> {
|
||||
private onFinalize?;
|
||||
private shouldUnsubscribe?;
|
||||
/**
|
||||
* Creates an instance of an `OperatorSubscriber`.
|
||||
* @param destination The downstream subscriber.
|
||||
* @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any
|
||||
* error that occurs in this function is caught and sent to the `error` method of this subscriber.
|
||||
* @param onError Handles errors from the subscription, any errors that occur in this handler are caught
|
||||
* and send to the `destination` error handler.
|
||||
* @param onComplete Handles completion notification from the subscription. Any errors that occur in
|
||||
* this handler are sent to the `destination` error handler.
|
||||
* @param onFinalize Additional finalization logic here. This will only be called on finalization if the
|
||||
* subscriber itself is not already closed. This is called after all other finalization logic is executed.
|
||||
* @param shouldUnsubscribe An optional check to see if an unsubscribe call should truly unsubscribe.
|
||||
* NOTE: This currently **ONLY** exists to support the strange behavior of {@link groupBy}, where unsubscription
|
||||
* to the resulting observable does not actually disconnect from the source if there are active subscriptions
|
||||
* to any grouped observable. (DO NOT EXPOSE OR USE EXTERNALLY!!!)
|
||||
*/
|
||||
constructor(destination: Subscriber<any>, onNext?: (value: T) => void, onComplete?: () => void, onError?: (err: any) => void, onFinalize?: (() => void) | undefined, shouldUnsubscribe?: (() => boolean) | undefined);
|
||||
unsubscribe(): void;
|
||||
}
|
||||
//# sourceMappingURL=OperatorSubscriber.d.ts.map
|
||||
@@ -0,0 +1,73 @@
|
||||
# Authors
|
||||
|
||||
#### Ordered by first contribution.
|
||||
|
||||
- Romain Beauxis (toots@rastageeks.org)
|
||||
- Tobias Koppers (tobias.koppers@googlemail.com)
|
||||
- Janus (ysangkok@gmail.com)
|
||||
- Rainer Dreyer (rdrey1@gmail.com)
|
||||
- Tõnis Tiigi (tonistiigi@gmail.com)
|
||||
- James Halliday (mail@substack.net)
|
||||
- Michael Williamson (mike@zwobble.org)
|
||||
- elliottcable (github@elliottcable.name)
|
||||
- rafael (rvalle@livelens.net)
|
||||
- Andrew Kelley (superjoe30@gmail.com)
|
||||
- Andreas Madsen (amwebdk@gmail.com)
|
||||
- Mike Brevoort (mike.brevoort@pearson.com)
|
||||
- Brian White (mscdex@mscdex.net)
|
||||
- Feross Aboukhadijeh (feross@feross.org)
|
||||
- Ruben Verborgh (ruben@verborgh.org)
|
||||
- eliang (eliang.cs@gmail.com)
|
||||
- Jesse Tane (jesse.tane@gmail.com)
|
||||
- Alfonso Boza (alfonso@cloud.com)
|
||||
- Mathias Buus (mathiasbuus@gmail.com)
|
||||
- Devon Govett (devongovett@gmail.com)
|
||||
- Daniel Cousens (github@dcousens.com)
|
||||
- Joseph Dykstra (josephdykstra@gmail.com)
|
||||
- Parsha Pourkhomami (parshap+git@gmail.com)
|
||||
- Damjan Košir (damjan.kosir@gmail.com)
|
||||
- daverayment (dave.rayment@gmail.com)
|
||||
- kawanet (u-suke@kawa.net)
|
||||
- Linus Unnebäck (linus@folkdatorn.se)
|
||||
- Nolan Lawson (nolan.lawson@gmail.com)
|
||||
- Calvin Metcalf (calvin.metcalf@gmail.com)
|
||||
- Koki Takahashi (hakatasiloving@gmail.com)
|
||||
- Guy Bedford (guybedford@gmail.com)
|
||||
- Jan Schär (jscissr@gmail.com)
|
||||
- RaulTsc (tomescu.raul@gmail.com)
|
||||
- Matthieu Monsch (monsch@alum.mit.edu)
|
||||
- Dan Ehrenberg (littledan@chromium.org)
|
||||
- Kirill Fomichev (fanatid@ya.ru)
|
||||
- Yusuke Kawasaki (u-suke@kawa.net)
|
||||
- DC (dcposch@dcpos.ch)
|
||||
- John-David Dalton (john.david.dalton@gmail.com)
|
||||
- adventure-yunfei (adventure030@gmail.com)
|
||||
- Emil Bay (github@tixz.dk)
|
||||
- Sam Sudar (sudar.sam@gmail.com)
|
||||
- Volker Mische (volker.mische@gmail.com)
|
||||
- David Walton (support@geekstocks.com)
|
||||
- Сковорода Никита Андреевич (chalkerx@gmail.com)
|
||||
- greenkeeper[bot] (greenkeeper[bot]@users.noreply.github.com)
|
||||
- ukstv (sergey.ukustov@machinomy.com)
|
||||
- Renée Kooi (renee@kooi.me)
|
||||
- ranbochen (ranbochen@qq.com)
|
||||
- Vladimir Borovik (bobahbdb@gmail.com)
|
||||
- greenkeeper[bot] (23040076+greenkeeper[bot]@users.noreply.github.com)
|
||||
- kumavis (aaron@kumavis.me)
|
||||
- Sergey Ukustov (sergey.ukustov@machinomy.com)
|
||||
- Fei Liu (liu.feiwood@gmail.com)
|
||||
- Blaine Bublitz (blaine.bublitz@gmail.com)
|
||||
- clement (clement@seald.io)
|
||||
- Koushik Dutta (koushd@gmail.com)
|
||||
- Jordan Harband (ljharb@gmail.com)
|
||||
- Niklas Mischkulnig (mischnic@users.noreply.github.com)
|
||||
- Nikolai Vavilov (vvnicholas@gmail.com)
|
||||
- Fedor Nezhivoi (gyzerok@users.noreply.github.com)
|
||||
- shuse2 (shus.toda@gmail.com)
|
||||
- Peter Newman (peternewman@users.noreply.github.com)
|
||||
- mathmakgakpak (44949126+mathmakgakpak@users.noreply.github.com)
|
||||
- jkkang (jkkang@smartauth.kr)
|
||||
- Deklan Webster (deklanw@gmail.com)
|
||||
- Martin Heidegger (martin.heidegger@gmail.com)
|
||||
|
||||
#### Generated by bin/update-authors.sh.
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"path-key","version":"3.1.1","files":{"license":{"checkedAt":1678883669272,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"index.js":{"checkedAt":1678883670645,"integrity":"sha512-W9M3yPPrfWD5dueOzLMgomq1eysBjylf2IfpJ4WXDDFKaaaeyBVB8B5O6qYP1PBb/EYyqnNMlUbvQI22BMciBw==","mode":420,"size":415},"package.json":{"checkedAt":1678883670645,"integrity":"sha512-6nWMHmCb9lw+zAzVWlAgxsAL1/4V/7DaMZHFh9CgHk4ODzeBHNrs5CnRetDYS6K8l6wZahlBvr0DYDw/E3Uvgw==","mode":420,"size":650},"readme.md":{"checkedAt":1678883670645,"integrity":"sha512-7nsF5OK/jv3dEhCbQv7B4XF9HYz2HsLL4BWu/SI4kC6HdvpOMA5ZkqmtDDJHm/iFZpxf44pXIHIF77aSa+DACQ==","mode":420,"size":1347},"index.d.ts":{"checkedAt":1678883670645,"integrity":"sha512-gHWuJ5iZud9jB6l3L5armDQasErRVFuMQMO8OAnCuaXANuW8tBLfTFm2qm08poLXqvQJxWUaJ72coEk+yYDBmg==","mode":420,"size":1032}}}
|
||||
@@ -0,0 +1 @@
|
||||
export { fromFetch } from '../internal/observable/dom/fetch';
|
||||
@@ -0,0 +1,36 @@
|
||||
var root = require('./_root');
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeIsFinite = root.isFinite;
|
||||
|
||||
/**
|
||||
* Checks if `value` is a finite primitive number.
|
||||
*
|
||||
* **Note:** This method is based on
|
||||
* [`Number.isFinite`](https://mdn.io/Number/isFinite).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Lang
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
|
||||
* @example
|
||||
*
|
||||
* _.isFinite(3);
|
||||
* // => true
|
||||
*
|
||||
* _.isFinite(Number.MIN_VALUE);
|
||||
* // => true
|
||||
*
|
||||
* _.isFinite(Infinity);
|
||||
* // => false
|
||||
*
|
||||
* _.isFinite('3');
|
||||
* // => false
|
||||
*/
|
||||
function isFinite(value) {
|
||||
return typeof value == 'number' && nativeIsFinite(value);
|
||||
}
|
||||
|
||||
module.exports = isFinite;
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"_assert.js","sourceRoot":"","sources":["../src/_assert.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,CAAS;IAC9B,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,EAAE,CAAC,CAAC;AACzF,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,CAAU;IAC7B,IAAI,OAAO,CAAC,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,EAAE,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,CAAyB,EAAE,GAAG,OAAiB;IACnE,IAAI,CAAC,CAAC,CAAC,YAAY,UAAU,CAAC;QAAE,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAC;IAC3E,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;QACnD,MAAM,IAAI,SAAS,CAAC,iCAAiC,OAAO,mBAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAC/F,CAAC;AAQD,MAAM,UAAU,IAAI,CAAC,IAAU;IAC7B,IAAI,OAAO,IAAI,KAAK,UAAU,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,UAAU;QACjE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,QAAa,EAAE,aAAa,GAAG,IAAI;IACxD,IAAI,QAAQ,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAC5E,IAAI,aAAa,IAAI,QAAQ,CAAC,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;AACnG,CAAC;AACD,MAAM,UAAU,MAAM,CAAC,GAAQ,EAAE,QAAa;IAC5C,KAAK,CAAC,GAAG,CAAC,CAAC;IACX,MAAM,GAAG,GAAG,QAAQ,CAAC,SAAS,CAAC;IAC/B,IAAI,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,yDAAyD,GAAG,EAAE,CAAC,CAAC;KACjF;AACH,CAAC;AAED,MAAM,MAAM,GAAG;IACb,MAAM;IACN,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,MAAM;IACN,MAAM;CACP,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
||||
@@ -0,0 +1,2 @@
|
||||
var convert = require('./convert');
|
||||
module.exports = convert(require('../math'));
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"distinct.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinct.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AAChE,qCAAoC;AACpC,qDAAoD;AA2DpD,SAAgB,QAAQ,CAAO,WAA6B,EAAE,OAA8B;IAC1F,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;QAC/B,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAM,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YACrD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBAC1B,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACtB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC,CACH,CAAC;QAEF,OAAO,IAAI,qBAAS,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,6CAAwB,CAAC,UAAU,EAAE,cAAM,OAAA,YAAY,CAAC,KAAK,EAAE,EAApB,CAAoB,EAAE,WAAI,CAAC,CAAC,CAAC;IAClH,CAAC,CAAC,CAAC;AACL,CAAC;AAfD,4BAeC"}
|
||||
@@ -0,0 +1,59 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
var debug = require('object-inspect');
|
||||
var forEach = require('for-each');
|
||||
|
||||
var isSet = require('..');
|
||||
|
||||
test('non-collections', function (t) {
|
||||
forEach([
|
||||
null,
|
||||
undefined,
|
||||
true,
|
||||
false,
|
||||
42,
|
||||
0,
|
||||
-0,
|
||||
NaN,
|
||||
Infinity,
|
||||
'',
|
||||
'foo',
|
||||
/a/g,
|
||||
[],
|
||||
{},
|
||||
function () {}
|
||||
], function (nonCollection) {
|
||||
t.equal(isSet(nonCollection), false, debug(nonCollection) + ' is not a Set');
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('Maps', { skip: typeof Map !== 'function' }, function (t) {
|
||||
var m = new Map();
|
||||
t.equal(isSet(m), false, debug(m) + ' is not a Set');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('Sets', { skip: typeof Set !== 'function' }, function (t) {
|
||||
var s = new Set();
|
||||
t.equal(isSet(s), true, debug(s) + ' is a Set');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('WeakMaps', { skip: typeof WeakMap !== 'function' }, function (t) {
|
||||
var wm = new WeakMap();
|
||||
t.equal(isSet(wm), false, debug(wm) + ' is not a Set');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('WeakSets', { skip: typeof WeakSet !== 'function' }, function (t) {
|
||||
var ws = new WeakSet();
|
||||
t.equal(isSet(ws), false, debug(ws) + ' is not a Set');
|
||||
|
||||
t.end();
|
||||
});
|
||||
@@ -0,0 +1,270 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Code coverage report for csv2json/libs/core/defParam.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</a> defParam.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/23</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>0/22</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>0/3</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>0/22</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>
|
||||
<a name='L13'></a><a href='#L13'>13</a>
|
||||
<a name='L14'></a><a href='#L14'>14</a>
|
||||
<a name='L15'></a><a href='#L15'>15</a>
|
||||
<a name='L16'></a><a href='#L16'>16</a>
|
||||
<a name='L17'></a><a href='#L17'>17</a>
|
||||
<a name='L18'></a><a href='#L18'>18</a>
|
||||
<a name='L19'></a><a href='#L19'>19</a>
|
||||
<a name='L20'></a><a href='#L20'>20</a>
|
||||
<a name='L21'></a><a href='#L21'>21</a>
|
||||
<a name='L22'></a><a href='#L22'>22</a>
|
||||
<a name='L23'></a><a href='#L23'>23</a>
|
||||
<a name='L24'></a><a href='#L24'>24</a>
|
||||
<a name='L25'></a><a href='#L25'>25</a>
|
||||
<a name='L26'></a><a href='#L26'>26</a>
|
||||
<a name='L27'></a><a href='#L27'>27</a>
|
||||
<a name='L28'></a><a href='#L28'>28</a>
|
||||
<a name='L29'></a><a href='#L29'>29</a>
|
||||
<a name='L30'></a><a href='#L30'>30</a>
|
||||
<a name='L31'></a><a href='#L31'>31</a>
|
||||
<a name='L32'></a><a href='#L32'>32</a>
|
||||
<a name='L33'></a><a href='#L33'>33</a>
|
||||
<a name='L34'></a><a href='#L34'>34</a>
|
||||
<a name='L35'></a><a href='#L35'>35</a>
|
||||
<a name='L36'></a><a href='#L36'>36</a>
|
||||
<a name='L37'></a><a href='#L37'>37</a>
|
||||
<a name='L38'></a><a href='#L38'>38</a>
|
||||
<a name='L39'></a><a href='#L39'>39</a>
|
||||
<a name='L40'></a><a href='#L40'>40</a>
|
||||
<a name='L41'></a><a href='#L41'>41</a>
|
||||
<a name='L42'></a><a href='#L42'>42</a>
|
||||
<a name='L43'></a><a href='#L43'>43</a>
|
||||
<a name='L44'></a><a href='#L44'>44</a>
|
||||
<a name='L45'></a><a href='#L45'>45</a>
|
||||
<a name='L46'></a><a href='#L46'>46</a>
|
||||
<a name='L47'></a><a href='#L47'>47</a>
|
||||
<a name='L48'></a><a href='#L48'>48</a>
|
||||
<a name='L49'></a><a href='#L49'>49</a>
|
||||
<a name='L50'></a><a href='#L50'>50</a>
|
||||
<a name='L51'></a><a href='#L51'>51</a>
|
||||
<a name='L52'></a><a href='#L52'>52</a>
|
||||
<a name='L53'></a><a href='#L53'>53</a>
|
||||
<a name='L54'></a><a href='#L54'>54</a>
|
||||
<a name='L55'></a><a href='#L55'>55</a>
|
||||
<a name='L56'></a><a href='#L56'>56</a>
|
||||
<a name='L57'></a><a href='#L57'>57</a>
|
||||
<a name='L58'></a><a href='#L58'>58</a>
|
||||
<a name='L59'></a><a href='#L59'>59</a>
|
||||
<a name='L60'></a><a href='#L60'>60</a>
|
||||
<a name='L61'></a><a href='#L61'>61</a>
|
||||
<a name='L62'></a><a href='#L62'>62</a>
|
||||
<a name='L63'></a><a href='#L63'>63</a>
|
||||
<a name='L64'></a><a href='#L64'>64</a>
|
||||
<a name='L65'></a><a href='#L65'>65</a>
|
||||
<a name='L66'></a><a href='#L66'>66</a>
|
||||
<a name='L67'></a><a href='#L67'>67</a>
|
||||
<a name='L68'></a><a href='#L68'>68</a></td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-no"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">var numExp = <span class="cstat-no" title="statement not covered" >/^[0-9]+$/;</span>
|
||||
<span class="cstat-no" title="statement not covered" >module.exports = <span class="fstat-no" title="function not covered" >fu</span>nction (params) {</span>
|
||||
var _param = <span class="cstat-no" title="statement not covered" >{</span>
|
||||
constructResult: true, //set to false to not construct result in memory. suitable for big csv data
|
||||
delimiter: ',', // change the delimiter of csv columns. It is able to use an array to specify potencial delimiters. e.g. [",","|",";"]
|
||||
ignoreColumns: [], // columns to ignore upon input.
|
||||
includeColumns: [], // columns to include upon input.
|
||||
quote: '"', //quote for a column containing delimiter.
|
||||
trim: true, //trim column's space charcters
|
||||
checkType: false, //whether check column type
|
||||
toArrayString: false, //stream down stringified json array instead of string of json. (useful if downstream is file writer etc)
|
||||
ignoreEmpty: false, //Ignore empty value while parsing. if a value of the column is empty, it will be skipped parsing.
|
||||
workerNum: getEnv("CSV_WORKER", 1), //number of parallel workers. If multi-core CPU available, increase the number will get better performance for large csv data.
|
||||
fork: false, //use another CPU core to convert the csv stream
|
||||
noheader: false, //indicate if first line of CSV file is header or not.
|
||||
headers: null, //an array of header strings. If noheader is false and headers is array, csv header will be ignored.
|
||||
flatKeys: false, // Don't interpret dots and square brackets in header fields as nested object or array identifiers at all.
|
||||
maxRowLength: 0, //the max character a csv row could have. 0 means infinite. If max number exceeded, parser will emit "error" of "row_exceed". if a possibly corrupted csv data provided, give it a number like 65535 so the parser wont consume memory. default: 0
|
||||
checkColumn: false, //whether check column number of a row is the same as headers. If column number mismatched headers number, an error of "mismatched_column" will be emitted.. default: false
|
||||
escape: '"', //escape char for quoted column
|
||||
colParser:{}, //flags on columns to alter field processing.
|
||||
|
||||
/**below are internal params */
|
||||
_columnConv:[],
|
||||
_headerType: [],
|
||||
_headerTitle: [],
|
||||
_headerFlag: [],
|
||||
_headers: null,
|
||||
_needFilterRow: false
|
||||
};
|
||||
<span class="cstat-no" title="statement not covered" > if (!params) {</span>
|
||||
<span class="cstat-no" title="statement not covered" > params = {};</span>
|
||||
}
|
||||
<span class="cstat-no" title="statement not covered" > for (var key in params) {</span>
|
||||
<span class="cstat-no" title="statement not covered" > if (params.hasOwnProperty(key)) {</span>
|
||||
<span class="cstat-no" title="statement not covered" > if (Array.isArray(params[key])) {</span>
|
||||
<span class="cstat-no" title="statement not covered" > _param[key] = [].concat(params[key]);</span>
|
||||
} else {
|
||||
<span class="cstat-no" title="statement not covered" > _param[key] = params[key];</span>
|
||||
}
|
||||
}
|
||||
}
|
||||
<span class="cstat-no" title="statement not covered" > if (_param.ignoreColumns.length > 0 && !numExp.test(_param.ignoreColumns.join(""))) {</span>
|
||||
<span class="cstat-no" title="statement not covered" > _param._postIgnoreColumns = true;</span>
|
||||
}
|
||||
<span class="cstat-no" title="statement not covered" > if (_param.includeColumns.length > 0 && !numExp.test(_param.includeColumns.join(""))) {</span>
|
||||
<span class="cstat-no" title="statement not covered" > _param._postIncludeColumns = true;</span>
|
||||
}
|
||||
|
||||
<span class="cstat-no" title="statement not covered" > if (_param.ignoreColumns.length || _param.includeColumns.length) {</span>
|
||||
<span class="cstat-no" title="statement not covered" > _param._needFilterRow = true;</span>
|
||||
<span class="cstat-no" title="statement not covered" > if (!_param._postIgnoreColumns){</span>
|
||||
<span class="cstat-no" title="statement not covered" > _param.ignoreColumns.sort(<span class="fstat-no" title="function not covered" >fu</span>nction (a, b) { <span class="cstat-no" title="statement not covered" >return b-a;}</span>);</span>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
<span class="cstat-no" title="statement not covered" > return _param;</span>
|
||||
};
|
||||
|
||||
function <span class="fstat-no" title="function not covered" >getEnv(</span>key, def) {
|
||||
<span class="cstat-no" title="statement not covered" > if (process.env[key]) {</span>
|
||||
<span class="cstat-no" title="statement not covered" > return process.env[key];</span>
|
||||
} else {
|
||||
<span class="cstat-no" title="statement not covered" > return def;</span>
|
||||
}
|
||||
}
|
||||
</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:20:20 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 @@
|
||||
{"version":3,"file":"notmodified.js","sourceRoot":"","sources":["../src/notmodified.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,MAAqB,gBAAiB,SAAQ,KAAK;IAGlD,YAAY,OAAgB;QAC3B,KAAK,CACJ,OAAO;YACN,iFAAiF,CAClF,CAAC;QANI,SAAI,GAAG,cAAc,CAAC;QAO5B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACnD,CAAC;CACD;AAVD,mCAUC"}
|
||||
@@ -0,0 +1,23 @@
|
||||
var get = require('./get');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.at` without support for individual paths.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {string[]} paths The property paths to pick.
|
||||
* @returns {Array} Returns the picked elements.
|
||||
*/
|
||||
function baseAt(object, paths) {
|
||||
var index = -1,
|
||||
length = paths.length,
|
||||
result = Array(length),
|
||||
skip = object == null;
|
||||
|
||||
while (++index < length) {
|
||||
result[index] = skip ? undefined : get(object, paths[index]);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseAt;
|
||||
@@ -0,0 +1,338 @@
|
||||
'use strict'
|
||||
|
||||
let { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')
|
||||
let { dirname, resolve, relative, sep } = require('path')
|
||||
let { pathToFileURL } = require('url')
|
||||
|
||||
let Input = require('./input')
|
||||
|
||||
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator)
|
||||
let pathAvailable = Boolean(dirname && resolve && relative && sep)
|
||||
|
||||
class MapGenerator {
|
||||
constructor(stringify, root, opts, cssString) {
|
||||
this.stringify = stringify
|
||||
this.mapOpts = opts.map || {}
|
||||
this.root = root
|
||||
this.opts = opts
|
||||
this.css = cssString
|
||||
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute
|
||||
}
|
||||
|
||||
isMap() {
|
||||
if (typeof this.opts.map !== 'undefined') {
|
||||
return !!this.opts.map
|
||||
}
|
||||
return this.previous().length > 0
|
||||
}
|
||||
|
||||
previous() {
|
||||
if (!this.previousMaps) {
|
||||
this.previousMaps = []
|
||||
if (this.root) {
|
||||
this.root.walk(node => {
|
||||
if (node.source && node.source.input.map) {
|
||||
let map = node.source.input.map
|
||||
if (!this.previousMaps.includes(map)) {
|
||||
this.previousMaps.push(map)
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
let input = new Input(this.css, this.opts)
|
||||
if (input.map) this.previousMaps.push(input.map)
|
||||
}
|
||||
}
|
||||
|
||||
return this.previousMaps
|
||||
}
|
||||
|
||||
isInline() {
|
||||
if (typeof this.mapOpts.inline !== 'undefined') {
|
||||
return this.mapOpts.inline
|
||||
}
|
||||
|
||||
let annotation = this.mapOpts.annotation
|
||||
if (typeof annotation !== 'undefined' && annotation !== true) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (this.previous().length) {
|
||||
return this.previous().some(i => i.inline)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
isSourcesContent() {
|
||||
if (typeof this.mapOpts.sourcesContent !== 'undefined') {
|
||||
return this.mapOpts.sourcesContent
|
||||
}
|
||||
if (this.previous().length) {
|
||||
return this.previous().some(i => i.withContent())
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
clearAnnotation() {
|
||||
if (this.mapOpts.annotation === false) return
|
||||
|
||||
if (this.root) {
|
||||
let node
|
||||
for (let i = this.root.nodes.length - 1; i >= 0; i--) {
|
||||
node = this.root.nodes[i]
|
||||
if (node.type !== 'comment') continue
|
||||
if (node.text.indexOf('# sourceMappingURL=') === 0) {
|
||||
this.root.removeChild(i)
|
||||
}
|
||||
}
|
||||
} else if (this.css) {
|
||||
this.css = this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm, '')
|
||||
}
|
||||
}
|
||||
|
||||
setSourcesContent() {
|
||||
let already = {}
|
||||
if (this.root) {
|
||||
this.root.walk(node => {
|
||||
if (node.source) {
|
||||
let from = node.source.input.from
|
||||
if (from && !already[from]) {
|
||||
already[from] = true
|
||||
let fromUrl = this.usesFileUrls
|
||||
? this.toFileUrl(from)
|
||||
: this.toUrl(this.path(from))
|
||||
this.map.setSourceContent(fromUrl, node.source.input.css)
|
||||
}
|
||||
}
|
||||
})
|
||||
} else if (this.css) {
|
||||
let from = this.opts.from
|
||||
? this.toUrl(this.path(this.opts.from))
|
||||
: '<no source>'
|
||||
this.map.setSourceContent(from, this.css)
|
||||
}
|
||||
}
|
||||
|
||||
applyPrevMaps() {
|
||||
for (let prev of this.previous()) {
|
||||
let from = this.toUrl(this.path(prev.file))
|
||||
let root = prev.root || dirname(prev.file)
|
||||
let map
|
||||
|
||||
if (this.mapOpts.sourcesContent === false) {
|
||||
map = new SourceMapConsumer(prev.text)
|
||||
if (map.sourcesContent) {
|
||||
map.sourcesContent = map.sourcesContent.map(() => null)
|
||||
}
|
||||
} else {
|
||||
map = prev.consumer()
|
||||
}
|
||||
|
||||
this.map.applySourceMap(map, from, this.toUrl(this.path(root)))
|
||||
}
|
||||
}
|
||||
|
||||
isAnnotation() {
|
||||
if (this.isInline()) {
|
||||
return true
|
||||
}
|
||||
if (typeof this.mapOpts.annotation !== 'undefined') {
|
||||
return this.mapOpts.annotation
|
||||
}
|
||||
if (this.previous().length) {
|
||||
return this.previous().some(i => i.annotation)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
toBase64(str) {
|
||||
if (Buffer) {
|
||||
return Buffer.from(str).toString('base64')
|
||||
} else {
|
||||
return window.btoa(unescape(encodeURIComponent(str)))
|
||||
}
|
||||
}
|
||||
|
||||
addAnnotation() {
|
||||
let content
|
||||
|
||||
if (this.isInline()) {
|
||||
content =
|
||||
'data:application/json;base64,' + this.toBase64(this.map.toString())
|
||||
} else if (typeof this.mapOpts.annotation === 'string') {
|
||||
content = this.mapOpts.annotation
|
||||
} else if (typeof this.mapOpts.annotation === 'function') {
|
||||
content = this.mapOpts.annotation(this.opts.to, this.root)
|
||||
} else {
|
||||
content = this.outputFile() + '.map'
|
||||
}
|
||||
let eol = '\n'
|
||||
if (this.css.includes('\r\n')) eol = '\r\n'
|
||||
|
||||
this.css += eol + '/*# sourceMappingURL=' + content + ' */'
|
||||
}
|
||||
|
||||
outputFile() {
|
||||
if (this.opts.to) {
|
||||
return this.path(this.opts.to)
|
||||
} else if (this.opts.from) {
|
||||
return this.path(this.opts.from)
|
||||
} else {
|
||||
return 'to.css'
|
||||
}
|
||||
}
|
||||
|
||||
generateMap() {
|
||||
if (this.root) {
|
||||
this.generateString()
|
||||
} else if (this.previous().length === 1) {
|
||||
let prev = this.previous()[0].consumer()
|
||||
prev.file = this.outputFile()
|
||||
this.map = SourceMapGenerator.fromSourceMap(prev)
|
||||
} else {
|
||||
this.map = new SourceMapGenerator({ file: this.outputFile() })
|
||||
this.map.addMapping({
|
||||
source: this.opts.from
|
||||
? this.toUrl(this.path(this.opts.from))
|
||||
: '<no source>',
|
||||
generated: { line: 1, column: 0 },
|
||||
original: { line: 1, column: 0 }
|
||||
})
|
||||
}
|
||||
|
||||
if (this.isSourcesContent()) this.setSourcesContent()
|
||||
if (this.root && this.previous().length > 0) this.applyPrevMaps()
|
||||
if (this.isAnnotation()) this.addAnnotation()
|
||||
|
||||
if (this.isInline()) {
|
||||
return [this.css]
|
||||
} else {
|
||||
return [this.css, this.map]
|
||||
}
|
||||
}
|
||||
|
||||
path(file) {
|
||||
if (file.indexOf('<') === 0) return file
|
||||
if (/^\w+:\/\//.test(file)) return file
|
||||
if (this.mapOpts.absolute) return file
|
||||
|
||||
let from = this.opts.to ? dirname(this.opts.to) : '.'
|
||||
|
||||
if (typeof this.mapOpts.annotation === 'string') {
|
||||
from = dirname(resolve(from, this.mapOpts.annotation))
|
||||
}
|
||||
|
||||
file = relative(from, file)
|
||||
return file
|
||||
}
|
||||
|
||||
toUrl(path) {
|
||||
if (sep === '\\') {
|
||||
path = path.replace(/\\/g, '/')
|
||||
}
|
||||
return encodeURI(path).replace(/[#?]/g, encodeURIComponent)
|
||||
}
|
||||
|
||||
toFileUrl(path) {
|
||||
if (pathToFileURL) {
|
||||
return pathToFileURL(path).toString()
|
||||
} else {
|
||||
throw new Error(
|
||||
'`map.absolute` option is not available in this PostCSS build'
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
sourcePath(node) {
|
||||
if (this.mapOpts.from) {
|
||||
return this.toUrl(this.mapOpts.from)
|
||||
} else if (this.usesFileUrls) {
|
||||
return this.toFileUrl(node.source.input.from)
|
||||
} else {
|
||||
return this.toUrl(this.path(node.source.input.from))
|
||||
}
|
||||
}
|
||||
|
||||
generateString() {
|
||||
this.css = ''
|
||||
this.map = new SourceMapGenerator({ file: this.outputFile() })
|
||||
|
||||
let line = 1
|
||||
let column = 1
|
||||
|
||||
let noSource = '<no source>'
|
||||
let mapping = {
|
||||
source: '',
|
||||
generated: { line: 0, column: 0 },
|
||||
original: { line: 0, column: 0 }
|
||||
}
|
||||
|
||||
let lines, last
|
||||
this.stringify(this.root, (str, node, type) => {
|
||||
this.css += str
|
||||
|
||||
if (node && type !== 'end') {
|
||||
mapping.generated.line = line
|
||||
mapping.generated.column = column - 1
|
||||
if (node.source && node.source.start) {
|
||||
mapping.source = this.sourcePath(node)
|
||||
mapping.original.line = node.source.start.line
|
||||
mapping.original.column = node.source.start.column - 1
|
||||
this.map.addMapping(mapping)
|
||||
} else {
|
||||
mapping.source = noSource
|
||||
mapping.original.line = 1
|
||||
mapping.original.column = 0
|
||||
this.map.addMapping(mapping)
|
||||
}
|
||||
}
|
||||
|
||||
lines = str.match(/\n/g)
|
||||
if (lines) {
|
||||
line += lines.length
|
||||
last = str.lastIndexOf('\n')
|
||||
column = str.length - last
|
||||
} else {
|
||||
column += str.length
|
||||
}
|
||||
|
||||
if (node && type !== 'start') {
|
||||
let p = node.parent || { raws: {} }
|
||||
let childless =
|
||||
node.type === 'decl' || (node.type === 'atrule' && !node.nodes)
|
||||
if (!childless || node !== p.last || p.raws.semicolon) {
|
||||
if (node.source && node.source.end) {
|
||||
mapping.source = this.sourcePath(node)
|
||||
mapping.original.line = node.source.end.line
|
||||
mapping.original.column = node.source.end.column - 1
|
||||
mapping.generated.line = line
|
||||
mapping.generated.column = column - 2
|
||||
this.map.addMapping(mapping)
|
||||
} else {
|
||||
mapping.source = noSource
|
||||
mapping.original.line = 1
|
||||
mapping.original.column = 0
|
||||
mapping.generated.line = line
|
||||
mapping.generated.column = column - 1
|
||||
this.map.addMapping(mapping)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
generate() {
|
||||
this.clearAnnotation()
|
||||
if (pathAvailable && sourceMapAvailable && this.isMap()) {
|
||||
return this.generateMap()
|
||||
} else {
|
||||
let result = ''
|
||||
this.stringify(this.root, i => {
|
||||
result += i
|
||||
})
|
||||
return [result]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = MapGenerator
|
||||
@@ -0,0 +1,2 @@
|
||||
if(typeof cptable === 'undefined') cptable = {};
|
||||
cptable[28595] = (function(){ var d = "\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{|}~
ЁЂЃЄЅІЇЈЉЊЋЌЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ", D = [], e = {}; for(var i=0;i!=d.length;++i) { if(d.charCodeAt(i) !== 0xFFFD) e[d.charAt(i)] = i; D[i] = d.charAt(i); } return {"enc": e, "dec": D }; })();
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"B","16":"CC","132":"J D E F A"},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":"5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R 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","132":"0 1 2 3 4 DC tB I v J D E F A B C K L G M N O w g x y z EC FC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC","132":"I v J D E F A B C K L G M N O w g x y z"},E:{"1":"A B C K L G 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","132":"I v J D E F HC zB IC JC KC LC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 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","16":"F B C PC QC RC SC qB AC TC","132":"rB"},G:{"1":"bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","132":"E zB UC BC VC WC XC YC ZC aC"},H:{"132":"oC"},I:{"1":"f tC uC","132":"tB I pC qC rC sC BC"},J:{"132":"D A"},K:{"1":"h","16":"A B C qB AC","132":"rB"},L:{"1":"H"},M:{"1":"H"},N:{"1":"B","132":"A"},O:{"1":"vC"},P:{"1":"g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","132":"I"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"BD","4":"AD"}},B:6,C:"localeCompare()"};
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"string.prototype.trimstart","version":"1.0.6","files":{".editorconfig":{"checkedAt":1678883671533,"integrity":"sha512-gD3iQtgC7ZgFS97pyZqR0FPjMNyRAfat8dipbSL28iiJ6B1MP5dDeDYeEnP5sYMTz8whQIk3E5vltk2kcyJJEQ==","mode":420,"size":286},".nycrc":{"checkedAt":1678883669555,"integrity":"sha512-2vm1RFz8Ajl/OYrfoCWPJIm3Bpnf7Gyn5bha/lZx/cq+We3uMy9xj15XeP6x4wF3jf/pO7KMHAkU9mllm605xg==","mode":420,"size":139},"auto.js":{"checkedAt":1678883671533,"integrity":"sha512-8Q3Im5cACiIFrMmxvLnJnA8SXOjAd1kh/R0UIDVnErDD1WUlJIDrNfaOcIB6rtjAXNhq/OdL1374JM/QcAJ1VQ==","mode":420,"size":36},"test/implementation.js":{"checkedAt":1678883671620,"integrity":"sha512-JVgZ475qHrp+7T5MQ8DPUnl1KEDRSb6XNvWVNHBfUl1zDcoltosZk+r5LZfXwAYgu6V002a4EwqLca+bH3g29A==","mode":420,"size":637},"index.js":{"checkedAt":1678883671733,"integrity":"sha512-ADrqthYe6Bd1jub3D9uNIm/SG+zzbzvKBrArALn6kBmaM7hThq7bPac/Z2jxhgRXbFM8J36V4+JhJlV/4qT5mw==","mode":420,"size":573},"LICENSE":{"checkedAt":1678883671734,"integrity":"sha512-H02Tjxpuy9eBjZl1pN0vTzFJc8We+8STkC4VFz+NcFbtCW4a+nVLOy4kYuRlQFAvO46EYcbDB9C3dJ9PD3s0zg==","mode":420,"size":1073},".eslintrc":{"checkedAt":1678883671734,"integrity":"sha512-VX5h4KYPUk/60YDe88/JOL/KEIq3w4/KRWV2lMhhR0B8fNgZMrnW0qfK9AbGfUQ5qHTKhWrpsoRB2AgBpiy9ZA==","mode":420,"size":295},"implementation.js":{"checkedAt":1678883671734,"integrity":"sha512-hPsIb9ctQLsjRdT9s9Qmsjc6bvhM5EixNMcFSASoxotG3NKzuZp5UJSObc2J6t/9sDQwqQPQklRExxNCGIb3jA==","mode":420,"size":650},"test/index.js":{"checkedAt":1678883671734,"integrity":"sha512-ddQEn3P5ZoVAK4ElmH0Bv7lbf1ExGCB1BbwJTWhdldYco2RA9gAfZ0Rnfj6ierf94ThbSGKt5GHLRTW5+YvIkA==","mode":420,"size":447},"polyfill.js":{"checkedAt":1678883671734,"integrity":"sha512-lo53WwUvZ3cCGxy+P+bsl3HC/uHRI9oCjzGDZeTswLYnzluAxEQqDHDMPbLrBeKq/OjWRdrVBe0Q1kPU0dAl6Q==","mode":420,"size":463},"shim.js":{"checkedAt":1678883671734,"integrity":"sha512-sFJKHQdaTScCe2Br9eL8+wUIkSaGZZVXpcnyWf40Km7y9QMiCYAkvhUX8bPCcfmKC+c3ji3M0cdO1tgpwgMnxw==","mode":420,"size":337},"test/shimmed.js":{"checkedAt":1678883671734,"integrity":"sha512-+Z2jurqK2UtezlYW/zbaNI5L3myS5DfiFKonkopQSD423dR4Q2v7b41er1xioI1ItmkY39gEqpyxVJR4XAl44Q==","mode":420,"size":1371},"test/tests.js":{"checkedAt":1678883671737,"integrity":"sha512-SVnGeqOvCuYT6i1LkMz+bqjZF0F3fijUP1ZJhllWPIL5wjhnBCl9TcgyWqJh8IqTRbDatF0pNyggGgTuTp6H1g==","mode":420,"size":1305},"package.json":{"checkedAt":1678883671737,"integrity":"sha512-Lmopb4BS321+Od/jCMxVlY/s1w2ZHF8MwofAPzsfs0+cCMIIbShbafsq5DRSEVEHMJbnnK1wmqV8teKwhxkFfw==","mode":420,"size":2012},"CHANGELOG.md":{"checkedAt":1678883671737,"integrity":"sha512-+gJXS8cik53BGDitIDTOG1hlMcTirRq1kICKymdwPX85pKvpzX0Nc1iH2p96sU1BLSIhH1ssxbXh6JClQ9JEcA==","mode":420,"size":9416},"README.md":{"checkedAt":1678883671742,"integrity":"sha512-UQJ0fquL4eGhn+Xwv/84P5HpAR7Lzqb2flMtUNl0PQUROqPi/14kLggUCxon3fgeI0lNlvoqvbXWcVYvJXcJAw==","mode":420,"size":2404}}}
|
||||
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
exports['default'] = function (instance) {
|
||||
instance.registerHelper('lookup', function (obj, field, options) {
|
||||
if (!obj) {
|
||||
// Note for 5.0: Change to "obj == null" in 5.0
|
||||
return obj;
|
||||
}
|
||||
return options.lookupProperty(obj, field);
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = exports['default'];
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2hlbHBlcnMvbG9va3VwLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7cUJBQWUsVUFBUyxRQUFRLEVBQUU7QUFDaEMsVUFBUSxDQUFDLGNBQWMsQ0FBQyxRQUFRLEVBQUUsVUFBUyxHQUFHLEVBQUUsS0FBSyxFQUFFLE9BQU8sRUFBRTtBQUM5RCxRQUFJLENBQUMsR0FBRyxFQUFFOztBQUVSLGFBQU8sR0FBRyxDQUFDO0tBQ1o7QUFDRCxXQUFPLE9BQU8sQ0FBQyxjQUFjLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxDQUFDO0dBQzNDLENBQUMsQ0FBQztDQUNKIiwiZmlsZSI6Imxvb2t1cC5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uKGluc3RhbmNlKSB7XG4gIGluc3RhbmNlLnJlZ2lzdGVySGVscGVyKCdsb29rdXAnLCBmdW5jdGlvbihvYmosIGZpZWxkLCBvcHRpb25zKSB7XG4gICAgaWYgKCFvYmopIHtcbiAgICAgIC8vIE5vdGUgZm9yIDUuMDogQ2hhbmdlIHRvIFwib2JqID09IG51bGxcIiBpbiA1LjBcbiAgICAgIHJldHVybiBvYmo7XG4gICAgfVxuICAgIHJldHVybiBvcHRpb25zLmxvb2t1cFByb3BlcnR5KG9iaiwgZmllbGQpO1xuICB9KTtcbn1cbiJdfQ==
|
||||
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var originalSetProto = GetIntrinsic('%Object.setPrototypeOf%', true);
|
||||
|
||||
var hasProto = require('has-proto')();
|
||||
|
||||
module.exports = originalSetProto || (
|
||||
|
||||
hasProto
|
||||
? function (O, proto) {
|
||||
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
|
||||
return O;
|
||||
}
|
||||
: null
|
||||
);
|
||||
@@ -0,0 +1,41 @@
|
||||
import { AnimationFrameAction } from './AnimationFrameAction';
|
||||
import { AnimationFrameScheduler } from './AnimationFrameScheduler';
|
||||
|
||||
/**
|
||||
*
|
||||
* Animation Frame Scheduler
|
||||
*
|
||||
* <span class="informal">Perform task when `window.requestAnimationFrame` would fire</span>
|
||||
*
|
||||
* When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler
|
||||
* behaviour.
|
||||
*
|
||||
* Without delay, `animationFrame` scheduler can be used to create smooth browser animations.
|
||||
* It makes sure scheduled task will happen just before next browser content repaint,
|
||||
* thus performing animations as efficiently as possible.
|
||||
*
|
||||
* ## Example
|
||||
* Schedule div height animation
|
||||
* ```ts
|
||||
* // html: <div style="background: #0ff;"></div>
|
||||
* import { animationFrameScheduler } from 'rxjs';
|
||||
*
|
||||
* const div = document.querySelector('div');
|
||||
*
|
||||
* animationFrameScheduler.schedule(function(height) {
|
||||
* div.style.height = height + "px";
|
||||
*
|
||||
* this.schedule(height + 1); // `this` references currently executing Action,
|
||||
* // which we reschedule with new state
|
||||
* }, 0, 0);
|
||||
*
|
||||
* // You will see a div element growing in height
|
||||
* ```
|
||||
*/
|
||||
|
||||
export const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);
|
||||
|
||||
/**
|
||||
* @deprecated Renamed to {@link animationFrameScheduler}. Will be removed in v8.
|
||||
*/
|
||||
export const animationFrame = animationFrameScheduler;
|
||||
@@ -0,0 +1,144 @@
|
||||
const url = require('url')
|
||||
const npmConf = require('@pnpm/npm-conf')
|
||||
|
||||
const tokenKey = ':_authToken'
|
||||
const legacyTokenKey = ':_auth'
|
||||
const userKey = ':username'
|
||||
const passwordKey = ':_password'
|
||||
|
||||
module.exports = function getRegistryAuthToken () {
|
||||
let checkUrl
|
||||
let options
|
||||
if (arguments.length >= 2) {
|
||||
checkUrl = arguments[0]
|
||||
options = Object.assign({}, arguments[1])
|
||||
} else if (typeof arguments[0] === 'string') {
|
||||
checkUrl = arguments[0]
|
||||
} else {
|
||||
options = Object.assign({}, arguments[0])
|
||||
}
|
||||
options = options || {}
|
||||
|
||||
const providedNpmrc = options.npmrc
|
||||
options.npmrc = (options.npmrc ? {
|
||||
config: {
|
||||
get: (key) => providedNpmrc[key]
|
||||
}
|
||||
} : npmConf()).config
|
||||
|
||||
checkUrl = checkUrl || options.npmrc.get('registry') || npmConf.defaults.registry
|
||||
return getRegistryAuthInfo(checkUrl, options) || getLegacyAuthInfo(options.npmrc)
|
||||
}
|
||||
|
||||
function getRegistryAuthInfo (checkUrl, options) {
|
||||
const parsed = url.parse(checkUrl, false, true)
|
||||
let pathname
|
||||
|
||||
while (pathname !== '/' && parsed.pathname !== pathname) {
|
||||
pathname = parsed.pathname || '/'
|
||||
|
||||
const regUrl = '//' + parsed.host + pathname.replace(/\/$/, '')
|
||||
const authInfo = getAuthInfoForUrl(regUrl, options.npmrc)
|
||||
if (authInfo) {
|
||||
return authInfo
|
||||
}
|
||||
|
||||
// break if not recursive
|
||||
if (!options.recursive) {
|
||||
return /\/$/.test(checkUrl)
|
||||
? undefined
|
||||
: getRegistryAuthInfo(url.resolve(checkUrl, '.'), options)
|
||||
}
|
||||
|
||||
parsed.pathname = url.resolve(normalizePath(pathname), '..') || '/'
|
||||
}
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
||||
function getLegacyAuthInfo (npmrc) {
|
||||
if (!npmrc.get('_auth')) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
const token = replaceEnvironmentVariable(npmrc.get('_auth'))
|
||||
|
||||
return { token: token, type: 'Basic' }
|
||||
}
|
||||
|
||||
function normalizePath (path) {
|
||||
return path[path.length - 1] === '/' ? path : path + '/'
|
||||
}
|
||||
|
||||
function getAuthInfoForUrl (regUrl, npmrc) {
|
||||
// try to get bearer token
|
||||
const bearerAuth = getBearerToken(npmrc.get(regUrl + tokenKey) || npmrc.get(regUrl + '/' + tokenKey))
|
||||
if (bearerAuth) {
|
||||
return bearerAuth
|
||||
}
|
||||
|
||||
// try to get basic token
|
||||
const username = npmrc.get(regUrl + userKey) || npmrc.get(regUrl + '/' + userKey)
|
||||
const password = npmrc.get(regUrl + passwordKey) || npmrc.get(regUrl + '/' + passwordKey)
|
||||
const basicAuth = getTokenForUsernameAndPassword(username, password)
|
||||
if (basicAuth) {
|
||||
return basicAuth
|
||||
}
|
||||
|
||||
const basicAuthWithToken = getLegacyAuthToken(npmrc.get(regUrl + legacyTokenKey) || npmrc.get(regUrl + '/' + legacyTokenKey))
|
||||
if (basicAuthWithToken) {
|
||||
return basicAuthWithToken
|
||||
}
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
||||
function replaceEnvironmentVariable (token) {
|
||||
return token.replace(/^\$\{?([^}]*)\}?$/, function (fullMatch, envVar) {
|
||||
return process.env[envVar]
|
||||
})
|
||||
}
|
||||
|
||||
function getBearerToken (tok) {
|
||||
if (!tok) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
// check if bearer token is set as environment variable
|
||||
const token = replaceEnvironmentVariable(tok)
|
||||
|
||||
return { token: token, type: 'Bearer' }
|
||||
}
|
||||
|
||||
function getTokenForUsernameAndPassword (username, password) {
|
||||
if (!username || !password) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
// passwords are base64 encoded, so we need to decode it
|
||||
// See https://github.com/npm/npm/blob/v3.10.6/lib/config/set-credentials-by-uri.js#L26
|
||||
const pass = Buffer.from(replaceEnvironmentVariable(password), 'base64').toString('utf8')
|
||||
|
||||
// a basic auth token is base64 encoded 'username:password'
|
||||
// See https://github.com/npm/npm/blob/v3.10.6/lib/config/get-credentials-by-uri.js#L70
|
||||
const token = Buffer.from(username + ':' + pass, 'utf8').toString('base64')
|
||||
|
||||
// we found a basicToken token so let's exit the loop
|
||||
return {
|
||||
token: token,
|
||||
type: 'Basic',
|
||||
password: pass,
|
||||
username: username
|
||||
}
|
||||
}
|
||||
|
||||
function getLegacyAuthToken (tok) {
|
||||
if (!tok) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
// check if legacy auth token is set as environment variable
|
||||
const token = replaceEnvironmentVariable(tok)
|
||||
|
||||
return { token: token, type: 'Basic' }
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"fromSubscribable.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/fromSubscribable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,iBAEhE"}
|
||||
@@ -0,0 +1,186 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { SchedulerLike } from '../types';
|
||||
import { async as asyncScheduler } from '../scheduler/async';
|
||||
import { isScheduler } from '../util/isScheduler';
|
||||
import { isValidDate } from '../util/isDate';
|
||||
|
||||
/**
|
||||
* Creates an observable that will wait for a specified time period, or exact date, before
|
||||
* emitting the number 0.
|
||||
*
|
||||
* <span class="informal">Used to emit a notification after a delay.</span>
|
||||
*
|
||||
* This observable is useful for creating delays in code, or racing against other values
|
||||
* for ad-hoc timeouts.
|
||||
*
|
||||
* The `delay` is specified by default in milliseconds, however providing a custom scheduler could
|
||||
* create a different behavior.
|
||||
*
|
||||
* ## Examples
|
||||
*
|
||||
* Wait 3 seconds and start another observable
|
||||
*
|
||||
* You might want to use `timer` to delay subscription to an
|
||||
* observable by a set amount of time. Here we use a timer with
|
||||
* {@link concatMapTo} or {@link concatMap} in order to wait
|
||||
* a few seconds and start a subscription to a source.
|
||||
*
|
||||
* ```ts
|
||||
* import { of, timer, concatMap } from 'rxjs';
|
||||
*
|
||||
* // This could be any observable
|
||||
* const source = of(1, 2, 3);
|
||||
*
|
||||
* timer(3000)
|
||||
* .pipe(concatMap(() => source))
|
||||
* .subscribe(console.log);
|
||||
* ```
|
||||
*
|
||||
* Take all values until the start of the next minute
|
||||
*
|
||||
* Using a `Date` as the trigger for the first emission, you can
|
||||
* do things like wait until midnight to fire an event, or in this case,
|
||||
* wait until a new minute starts (chosen so the example wouldn't take
|
||||
* too long to run) in order to stop watching a stream. Leveraging
|
||||
* {@link takeUntil}.
|
||||
*
|
||||
* ```ts
|
||||
* import { interval, takeUntil, timer } from 'rxjs';
|
||||
*
|
||||
* // Build a Date object that marks the
|
||||
* // next minute.
|
||||
* const currentDate = new Date();
|
||||
* const startOfNextMinute = new Date(
|
||||
* currentDate.getFullYear(),
|
||||
* currentDate.getMonth(),
|
||||
* currentDate.getDate(),
|
||||
* currentDate.getHours(),
|
||||
* currentDate.getMinutes() + 1
|
||||
* );
|
||||
*
|
||||
* // This could be any observable stream
|
||||
* const source = interval(1000);
|
||||
*
|
||||
* const result = source.pipe(
|
||||
* takeUntil(timer(startOfNextMinute))
|
||||
* );
|
||||
*
|
||||
* result.subscribe(console.log);
|
||||
* ```
|
||||
*
|
||||
* ### Known Limitations
|
||||
*
|
||||
* - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.
|
||||
*
|
||||
* - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and
|
||||
* a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission
|
||||
* should occur will be incorrect. In this case, it would be best to do your own calculations
|
||||
* ahead of time, and pass a `number` in as the `dueTime`.
|
||||
*
|
||||
* @param due If a `number`, the amount of time in milliseconds to wait before emitting.
|
||||
* If a `Date`, the exact time at which to emit.
|
||||
* @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.
|
||||
*/
|
||||
export function timer(due: number | Date, scheduler?: SchedulerLike): Observable<0>;
|
||||
|
||||
/**
|
||||
* Creates an observable that starts an interval after a specified delay, emitting incrementing numbers -- starting at `0` --
|
||||
* on each interval after words.
|
||||
*
|
||||
* The `delay` and `intervalDuration` are specified by default in milliseconds, however providing a custom scheduler could
|
||||
* create a different behavior.
|
||||
*
|
||||
* ## Example
|
||||
*
|
||||
* ### Start an interval that starts right away
|
||||
*
|
||||
* Since {@link interval} waits for the passed delay before starting,
|
||||
* sometimes that's not ideal. You may want to start an interval immediately.
|
||||
* `timer` works well for this. Here we have both side-by-side so you can
|
||||
* see them in comparison.
|
||||
*
|
||||
* Note that this observable will never complete.
|
||||
*
|
||||
* ```ts
|
||||
* import { timer, interval } from 'rxjs';
|
||||
*
|
||||
* timer(0, 1000).subscribe(n => console.log('timer', n));
|
||||
* interval(1000).subscribe(n => console.log('interval', n));
|
||||
* ```
|
||||
*
|
||||
* ### Known Limitations
|
||||
*
|
||||
* - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled.
|
||||
*
|
||||
* - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and
|
||||
* a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission
|
||||
* should occur will be incorrect. In this case, it would be best to do your own calculations
|
||||
* ahead of time, and pass a `number` in as the `startDue`.
|
||||
* @param startDue If a `number`, is the time to wait before starting the interval.
|
||||
* If a `Date`, is the exact time at which to start the interval.
|
||||
* @param intervalDuration The delay between each value emitted in the interval. Passing a
|
||||
* negative number here will result in immediate completion after the first value is emitted, as though
|
||||
* no `intervalDuration` was passed at all.
|
||||
* @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}.
|
||||
*/
|
||||
export function timer(startDue: number | Date, intervalDuration: number, scheduler?: SchedulerLike): Observable<number>;
|
||||
|
||||
/**
|
||||
* @deprecated The signature allowing `undefined` to be passed for `intervalDuration` will be removed in v8. Use the `timer(dueTime, scheduler?)` signature instead.
|
||||
*/
|
||||
export function timer(dueTime: number | Date, unused: undefined, scheduler?: SchedulerLike): Observable<0>;
|
||||
|
||||
export function timer(
|
||||
dueTime: number | Date = 0,
|
||||
intervalOrScheduler?: number | SchedulerLike,
|
||||
scheduler: SchedulerLike = asyncScheduler
|
||||
): Observable<number> {
|
||||
// Since negative intervalDuration is treated as though no
|
||||
// interval was specified at all, we start with a negative number.
|
||||
let intervalDuration = -1;
|
||||
|
||||
if (intervalOrScheduler != null) {
|
||||
// If we have a second argument, and it's a scheduler,
|
||||
// override the scheduler we had defaulted. Otherwise,
|
||||
// it must be an interval.
|
||||
if (isScheduler(intervalOrScheduler)) {
|
||||
scheduler = intervalOrScheduler;
|
||||
} else {
|
||||
// Note that this *could* be negative, in which case
|
||||
// it's like not passing an intervalDuration at all.
|
||||
intervalDuration = intervalOrScheduler;
|
||||
}
|
||||
}
|
||||
|
||||
return new Observable((subscriber) => {
|
||||
// If a valid date is passed, calculate how long to wait before
|
||||
// executing the first value... otherwise, if it's a number just schedule
|
||||
// that many milliseconds (or scheduler-specified unit size) in the future.
|
||||
let due = isValidDate(dueTime) ? +dueTime - scheduler!.now() : dueTime;
|
||||
|
||||
if (due < 0) {
|
||||
// Ensure we don't schedule in the future.
|
||||
due = 0;
|
||||
}
|
||||
|
||||
// The incrementing value we emit.
|
||||
let n = 0;
|
||||
|
||||
// Start the timer.
|
||||
return scheduler.schedule(function () {
|
||||
if (!subscriber.closed) {
|
||||
// Emit the next value and increment.
|
||||
subscriber.next(n++);
|
||||
|
||||
if (0 <= intervalDuration) {
|
||||
// If we have a interval after the initial timer,
|
||||
// reschedule with the period.
|
||||
this.schedule(undefined, intervalDuration);
|
||||
} else {
|
||||
// We didn't have an interval. So just complete.
|
||||
subscriber.complete();
|
||||
}
|
||||
}
|
||||
}, due);
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
'use strict';
|
||||
|
||||
var strValue = String.prototype.valueOf;
|
||||
var tryStringObject = function tryStringObject(value) {
|
||||
try {
|
||||
strValue.call(value);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
var toStr = Object.prototype.toString;
|
||||
var strClass = '[object String]';
|
||||
var hasToStringTag = require('has-tostringtag/shams')();
|
||||
|
||||
module.exports = function isString(value) {
|
||||
if (typeof value === 'string') {
|
||||
return true;
|
||||
}
|
||||
if (typeof value !== 'object') {
|
||||
return false;
|
||||
}
|
||||
return hasToStringTag ? tryStringObject(value) : toStr.call(value) === strClass;
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
var arraySample = require('./_arraySample'),
|
||||
baseSample = require('./_baseSample'),
|
||||
isArray = require('./isArray');
|
||||
|
||||
/**
|
||||
* Gets a random element from `collection`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 2.0.0
|
||||
* @category Collection
|
||||
* @param {Array|Object} collection The collection to sample.
|
||||
* @returns {*} Returns the random element.
|
||||
* @example
|
||||
*
|
||||
* _.sample([1, 2, 3, 4]);
|
||||
* // => 2
|
||||
*/
|
||||
function sample(collection) {
|
||||
var func = isArray(collection) ? arraySample : baseSample;
|
||||
return func(collection);
|
||||
}
|
||||
|
||||
module.exports = sample;
|
||||
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
var WeakMapPoly = require("../polyfill");
|
||||
|
||||
module.exports = function (t, a) {
|
||||
a(t(undefined), false, "Undefined");
|
||||
a(t(null), false, "Null");
|
||||
a(t(true), false, "Primitive");
|
||||
a(t("raz"), false, "String");
|
||||
a(t({}), false, "Object");
|
||||
a(t([]), false, "Array");
|
||||
if (typeof WeakMap !== "undefined") {
|
||||
a(t(new WeakMap()), true, "Native");
|
||||
}
|
||||
a(t(new WeakMapPoly()), true, "Polyfill");
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"globals": {
|
||||
"globalThis": false
|
||||
},
|
||||
|
||||
"rules": {
|
||||
"max-statements-per-line": [2, { "max": 2 }]
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { identity } from '../util/identity';
|
||||
import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';
|
||||
import { pipe } from '../util/pipe';
|
||||
import { mergeMap } from './mergeMap';
|
||||
import { toArray } from './toArray';
|
||||
export function joinAllInternals(joinFn, project) {
|
||||
return pipe(toArray(), mergeMap(function (sources) { return joinFn(sources); }), project ? mapOneOrManyArgs(project) : identity);
|
||||
}
|
||||
//# sourceMappingURL=joinAllInternals.js.map
|
||||
@@ -0,0 +1,6 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function (value) {
|
||||
// eslint-disable-next-line no-self-compare
|
||||
return value !== value;
|
||||
};
|
||||
@@ -0,0 +1,124 @@
|
||||
import { AjaxRequest, AjaxResponseType } from './types';
|
||||
import { getXHRResponse } from './getXHRResponse';
|
||||
|
||||
/**
|
||||
* A normalized response from an AJAX request. To get the data from the response,
|
||||
* you will want to read the `response` property.
|
||||
*
|
||||
* - DO NOT create instances of this class directly.
|
||||
* - DO NOT subclass this class.
|
||||
*
|
||||
* It is advised not to hold this object in memory, as it has a reference to
|
||||
* the original XHR used to make the request, as well as properties containing
|
||||
* request and response data.
|
||||
*
|
||||
* @see {@link ajax}
|
||||
* @see {@link AjaxConfig}
|
||||
*/
|
||||
export class AjaxResponse<T> {
|
||||
/** The HTTP status code */
|
||||
readonly status: number;
|
||||
|
||||
/**
|
||||
* The response data, if any. Note that this will automatically be converted to the proper type
|
||||
*/
|
||||
readonly response: T;
|
||||
|
||||
/**
|
||||
* The responseType set on the request. (For example: `""`, `"arraybuffer"`, `"blob"`, `"document"`, `"json"`, or `"text"`)
|
||||
* @deprecated There isn't much reason to examine this. It's the same responseType set (or defaulted) on the ajax config.
|
||||
* If you really need to examine this value, you can check it on the `request` or the `xhr`. Will be removed in v8.
|
||||
*/
|
||||
readonly responseType: XMLHttpRequestResponseType;
|
||||
|
||||
/**
|
||||
* The total number of bytes loaded so far. To be used with {@link total} while
|
||||
* calculating progress. (You will want to set {@link includeDownloadProgress} or
|
||||
* {@link includeDownloadProgress})
|
||||
*/
|
||||
readonly loaded: number;
|
||||
|
||||
/**
|
||||
* The total number of bytes to be loaded. To be used with {@link loaded} while
|
||||
* calculating progress. (You will want to set {@link includeDownloadProgress} or
|
||||
* {@link includeDownloadProgress})
|
||||
*/
|
||||
readonly total: number;
|
||||
|
||||
/**
|
||||
* A dictionary of the response headers.
|
||||
*/
|
||||
readonly responseHeaders: Record<string, string>;
|
||||
|
||||
/**
|
||||
* A normalized response from an AJAX request. To get the data from the response,
|
||||
* you will want to read the `response` property.
|
||||
*
|
||||
* - DO NOT create instances of this class directly.
|
||||
* - DO NOT subclass this class.
|
||||
*
|
||||
* @param originalEvent The original event object from the XHR `onload` event.
|
||||
* @param xhr The `XMLHttpRequest` object used to make the request. This is useful for examining status code, etc.
|
||||
* @param request The request settings used to make the HTTP request.
|
||||
* @param type The type of the event emitted by the {@link ajax} Observable
|
||||
*/
|
||||
constructor(
|
||||
/**
|
||||
* The original event object from the raw XHR event.
|
||||
*/
|
||||
public readonly originalEvent: ProgressEvent,
|
||||
/**
|
||||
* The XMLHttpRequest object used to make the request.
|
||||
* NOTE: It is advised not to hold this in memory, as it will retain references to all of it's event handlers
|
||||
* and many other things related to the request.
|
||||
*/
|
||||
public readonly xhr: XMLHttpRequest,
|
||||
/**
|
||||
* The request parameters used to make the HTTP request.
|
||||
*/
|
||||
public readonly request: AjaxRequest,
|
||||
/**
|
||||
* The event type. This can be used to discern between different events
|
||||
* if you're using progress events with {@link includeDownloadProgress} or
|
||||
* {@link includeUploadProgress} settings in {@link AjaxConfig}.
|
||||
*
|
||||
* The event type consists of two parts: the {@link AjaxDirection} and the
|
||||
* the event type. Merged with `_`, they form the `type` string. The
|
||||
* direction can be an `upload` or a `download` direction, while an event can
|
||||
* be `loadstart`, `progress` or `load`.
|
||||
*
|
||||
* `download_load` is the type of event when download has finished and the
|
||||
* response is available.
|
||||
*/
|
||||
public readonly type: AjaxResponseType = 'download_load'
|
||||
) {
|
||||
const { status, responseType } = xhr;
|
||||
this.status = status ?? 0;
|
||||
this.responseType = responseType ?? '';
|
||||
|
||||
// Parse the response headers in advance for the user. There's really
|
||||
// not a great way to get all of them. So we need to parse the header string
|
||||
// we get back. It comes in a simple enough format:
|
||||
//
|
||||
// header-name: value here
|
||||
// content-type: application/json
|
||||
// other-header-here: some, other, values, or, whatever
|
||||
const allHeaders = xhr.getAllResponseHeaders();
|
||||
this.responseHeaders = allHeaders
|
||||
? // Split the header text into lines
|
||||
allHeaders.split('\n').reduce((headers: Record<string, string>, line) => {
|
||||
// Split the lines on the first ": " as
|
||||
// "key: value". Note that the value could
|
||||
// technically have a ": " in it.
|
||||
const index = line.indexOf(': ');
|
||||
headers[line.slice(0, index)] = line.slice(index + 2);
|
||||
return headers;
|
||||
}, {})
|
||||
: {};
|
||||
|
||||
this.response = getXHRResponse(xhr);
|
||||
const { loaded, total } = originalEvent;
|
||||
this.loaded = loaded;
|
||||
this.total = total;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
Deep-clone an object.
|
||||
*/
|
||||
function clone(obj)
|
||||
{
|
||||
if (obj instanceof Object)
|
||||
{
|
||||
var clonedObj = (obj instanceof Array) ? [] : {};
|
||||
|
||||
for (var i in obj)
|
||||
{
|
||||
if ( obj.hasOwnProperty(i) )
|
||||
{
|
||||
clonedObj[i] = clone( obj[i] );
|
||||
}
|
||||
}
|
||||
|
||||
return clonedObj;
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
https://github.com/jonschlinkert/is-plain-object
|
||||
*/
|
||||
function isPlainObject(obj)
|
||||
{
|
||||
return !!obj && typeof obj==="object" && obj.constructor===Object;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Shallow-merge two objects.
|
||||
*/
|
||||
function shallowMerge(target, source)
|
||||
{
|
||||
if (target instanceof Object && source instanceof Object)
|
||||
{
|
||||
for (var i in source)
|
||||
{
|
||||
if ( source.hasOwnProperty(i) )
|
||||
{
|
||||
target[i] = source[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
|
||||
module.exports =
|
||||
{
|
||||
clone: clone,
|
||||
isPlainObject: isPlainObject,
|
||||
shallowMerge: shallowMerge
|
||||
};
|
||||
@@ -0,0 +1,41 @@
|
||||
import { OperatorFunction, ObservableInput } from '../types';
|
||||
/**
|
||||
* Buffers the source Observable values until `closingNotifier` emits.
|
||||
*
|
||||
* <span class="informal">Collects values from the past as an array, and emits
|
||||
* that array only when another Observable emits.</span>
|
||||
*
|
||||
* 
|
||||
*
|
||||
* Buffers the incoming Observable values until the given `closingNotifier`
|
||||
* `ObservableInput` (that internally gets converted to an Observable)
|
||||
* emits a value, at which point it emits the buffer on the output
|
||||
* Observable and starts a new buffer internally, awaiting the next time
|
||||
* `closingNotifier` emits.
|
||||
*
|
||||
* ## Example
|
||||
*
|
||||
* On every click, emit array of most recent interval events
|
||||
*
|
||||
* ```ts
|
||||
* import { fromEvent, interval, buffer } from 'rxjs';
|
||||
*
|
||||
* const clicks = fromEvent(document, 'click');
|
||||
* const intervalEvents = interval(1000);
|
||||
* const buffered = intervalEvents.pipe(buffer(clicks));
|
||||
* buffered.subscribe(x => console.log(x));
|
||||
* ```
|
||||
*
|
||||
* @see {@link bufferCount}
|
||||
* @see {@link bufferTime}
|
||||
* @see {@link bufferToggle}
|
||||
* @see {@link bufferWhen}
|
||||
* @see {@link window}
|
||||
*
|
||||
* @param closingNotifier An `ObservableInput` that signals the
|
||||
* buffer to be emitted on the output Observable.
|
||||
* @return A function that returns an Observable of buffers, which are arrays
|
||||
* of values.
|
||||
*/
|
||||
export declare function buffer<T>(closingNotifier: ObservableInput<any>): OperatorFunction<T, T[]>;
|
||||
//# sourceMappingURL=buffer.d.ts.map
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Route, RequestParameters } from "@octokit/types";
|
||||
import { RestEndpointMethods } from "./generated/method-types";
|
||||
export type Api = {
|
||||
rest: RestEndpointMethods;
|
||||
};
|
||||
export type EndpointDecorations = {
|
||||
mapToData?: string;
|
||||
deprecated?: string;
|
||||
renamed?: [string, string];
|
||||
renamedParameters?: {
|
||||
[name: string]: string;
|
||||
};
|
||||
};
|
||||
export type EndpointsDefaultsAndDecorations = {
|
||||
[scope: string]: {
|
||||
[methodName: string]: [Route, RequestParameters?, EndpointDecorations?];
|
||||
};
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
const SemVer = require('../classes/semver')
|
||||
const major = (a, loose) => new SemVer(a, loose).major
|
||||
module.exports = major
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Appends the elements of `values` to `array`.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to modify.
|
||||
* @param {Array} values The values to append.
|
||||
* @returns {Array} Returns `array`.
|
||||
*/
|
||||
function arrayPush(array, values) {
|
||||
var index = -1,
|
||||
length = values.length,
|
||||
offset = array.length;
|
||||
|
||||
while (++index < length) {
|
||||
array[offset + index] = values[index];
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
module.exports = arrayPush;
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('xor', require('../xor'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"supports-preserve-symlinks-flag","version":"1.0.0","files":{".nycrc":{"checkedAt":1678883669555,"integrity":"sha512-2vm1RFz8Ajl/OYrfoCWPJIm3Bpnf7Gyn5bha/lZx/cq+We3uMy9xj15XeP6x4wF3jf/pO7KMHAkU9mllm605xg==","mode":420,"size":139},".eslintrc":{"checkedAt":1678883669576,"integrity":"sha512-e7PybsRLZeXu7OaFPyHaJkPMsb18wS2Oyq5o8X/yaVFjsSvE77pwMiNQlicUX/iNy+eZ6Dui7/8uV6HFKU7Ndw==","mode":420,"size":132},"LICENSE":{"checkedAt":1678883669576,"integrity":"sha512-16Lw2sQpq8QINLGIfL/+xkhzMDKK7+1KhO0tqPzWh6SJx+JcmBuZ7w7FwLce+/bDBInYIE8pUEWvqkiN2Y1kTg==","mode":420,"size":1067},"index.js":{"checkedAt":1678883669576,"integrity":"sha512-/MHKHFJ9EbmYLYd3hXks4cSj7UAzH4jcUS6eA0jWVwQZ6nolG74GLRXOjzeYiOmBhd6Oy0N7+s65XAg7fZPzYA==","mode":420,"size":293},"browser.js":{"checkedAt":1678883669576,"integrity":"sha512-CqIbtWILDQ1E0nFwdnigHPmpuV5tBSAKgsRCwqYlyW0PhR0rVgyr95kJGrinUb30EHx4jWqQYpHi/MbdlW4Dug==","mode":420,"size":38},"test/index.js":{"checkedAt":1678883669576,"integrity":"sha512-E9RfkUuj8cDqPVgk5RYr9WJLOh4FTrDQQQHkyYLtCetnVtSAJwp5U6X9nvEUhwg/KQpxGEBA+P5usUKfTjDduQ==","mode":420,"size":737},"package.json":{"checkedAt":1678883669576,"integrity":"sha512-RFJ8D9BCU6NVb1teezzS43FRbl2Y8ZHTLqwU760DmIRUNdK6pb/B1MjyPF3wQsOKUJuBGAvHERS3QbQTYXLhJQ==","mode":420,"size":1895},"CHANGELOG.md":{"checkedAt":1678883669576,"integrity":"sha512-N1KxeLQcZFxHBv1ykZ13gHCrjamNsPY632IMsEUNlazo73b+0pRoF6d2z2OITJzvOkhHyLHPqoxYJUFY8lX07Q==","mode":420,"size":1989},"README.md":{"checkedAt":1678883669576,"integrity":"sha512-mvNCx0t0mZQDr1c6Iq1btwB7vl55SAl+WiCu3T/i1JJDKNy8Uyym907OrItG5d+SsPxJYzqvaSPYEIoj1OkG+g==","mode":420,"size":2287},".github/FUNDING.yml":{"checkedAt":1678883669578,"integrity":"sha512-u6Gu4wuB13BJpwHfgRQ2Cs6sRFxTgcevSm7PtMgvX/hSb+xJ0hoM+ekI3OKpb1mT7mW2LRtOXzf2HZPK0qdVFQ==","mode":420,"size":601}}}
|
||||
@@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: ()=>createUtilityPlugin
|
||||
});
|
||||
const _transformThemeValue = /*#__PURE__*/ _interopRequireDefault(require("./transformThemeValue"));
|
||||
function _interopRequireDefault(obj) {
|
||||
return obj && obj.__esModule ? obj : {
|
||||
default: obj
|
||||
};
|
||||
}
|
||||
function createUtilityPlugin(themeKey, utilityVariations = [
|
||||
[
|
||||
themeKey,
|
||||
[
|
||||
themeKey
|
||||
]
|
||||
]
|
||||
], { filterDefault =false , ...options } = {}) {
|
||||
let transformValue = (0, _transformThemeValue.default)(themeKey);
|
||||
return function({ matchUtilities , theme }) {
|
||||
for (let utilityVariation of utilityVariations){
|
||||
let group = Array.isArray(utilityVariation[0]) ? utilityVariation : [
|
||||
utilityVariation
|
||||
];
|
||||
var _theme;
|
||||
matchUtilities(group.reduce((obj, [classPrefix, properties])=>{
|
||||
return Object.assign(obj, {
|
||||
[classPrefix]: (value)=>{
|
||||
return properties.reduce((obj, name)=>{
|
||||
if (Array.isArray(name)) {
|
||||
return Object.assign(obj, {
|
||||
[name[0]]: name[1]
|
||||
});
|
||||
}
|
||||
return Object.assign(obj, {
|
||||
[name]: transformValue(value)
|
||||
});
|
||||
}, {});
|
||||
}
|
||||
});
|
||||
}, {}), {
|
||||
...options,
|
||||
values: filterDefault ? Object.fromEntries(Object.entries((_theme = theme(themeKey)) !== null && _theme !== void 0 ? _theme : {}).filter(([modifier])=>modifier !== "DEFAULT")) : theme(themeKey)
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* A specialized version of `_.reduceRight` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @param {*} [accumulator] The initial value.
|
||||
* @param {boolean} [initAccum] Specify using the last element of `array` as
|
||||
* the initial value.
|
||||
* @returns {*} Returns the accumulated value.
|
||||
*/
|
||||
function arrayReduceRight(array, iteratee, accumulator, initAccum) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
if (initAccum && length) {
|
||||
accumulator = array[--length];
|
||||
}
|
||||
while (length--) {
|
||||
accumulator = iteratee(accumulator, array[length], length, array);
|
||||
}
|
||||
return accumulator;
|
||||
}
|
||||
|
||||
module.exports = arrayReduceRight;
|
||||
@@ -0,0 +1,2 @@
|
||||
if(typeof cptable === 'undefined') cptable = {};
|
||||
cptable[1148] = (function(){ var d = "\u0000\u0001\u0002\u0003\t\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013
\b\u0018\u0019\u001c\u001d\u001e\u001f\n\u0017\u001b\u0005\u0006\u0007\u0016\u0004\u0014\u0015\u001a âäàáãåçñ[.<(+!&éêëèíîïìß]$*);^-/ÂÄÀÁÃÅÇѦ,%_>?øÉÊËÈÍÎÏÌ`:#@'=\"Øabcdefghi«»ðýþ±°jklmnopqrªºæ¸Æ€µ~stuvwxyz¡¿ÐÝÞ®¢£¥·©§¶¼½¾¬|¯¨´×{ABCDEFGHIôöòóõ}JKLMNOPQR¹ûüùúÿ\\÷STUVWXYZ²ÔÖÒÓÕ0123456789³ÛÜÙÚ", D = [], e = {}; for(var i=0;i!=d.length;++i) { if(d.charCodeAt(i) !== 0xFFFD) e[d.charAt(i)] = i; D[i] = d.charAt(i); } return {"enc": e, "dec": D }; })();
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* The base implementation of `_.lt` which doesn't coerce arguments.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to compare.
|
||||
* @param {*} other The other value to compare.
|
||||
* @returns {boolean} Returns `true` if `value` is less than `other`,
|
||||
* else `false`.
|
||||
*/
|
||||
function baseLt(value, other) {
|
||||
return value < other;
|
||||
}
|
||||
|
||||
module.exports = baseLt;
|
||||
@@ -0,0 +1,15 @@
|
||||
import Wrapper from './shared/Wrapper';
|
||||
import Renderer from '../Renderer';
|
||||
import Block from '../Block';
|
||||
import FragmentWrapper from './Fragment';
|
||||
import InlineComponentWrapper from './InlineComponent';
|
||||
import SlotTemplate from '../../nodes/SlotTemplate';
|
||||
export default class SlotTemplateWrapper extends Wrapper {
|
||||
node: SlotTemplate;
|
||||
fragment: FragmentWrapper;
|
||||
block: Block;
|
||||
parent: InlineComponentWrapper;
|
||||
constructor(renderer: Renderer, block: Block, parent: Wrapper, node: SlotTemplate, strip_whitespace: boolean, next_sibling: Wrapper);
|
||||
render(): void;
|
||||
render_get_context(): void;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import { Converter } from "./Converter";
|
||||
import { Fileline } from "./fileline";
|
||||
export declare class RowSplit {
|
||||
private conv;
|
||||
private quote;
|
||||
private trim;
|
||||
private escape;
|
||||
private cachedRegExp;
|
||||
private delimiterEmitted;
|
||||
private _needEmitDelimiter?;
|
||||
private readonly needEmitDelimiter;
|
||||
constructor(conv: Converter);
|
||||
parse(fileline: Fileline): RowSplitResult;
|
||||
private toCSVRow(rowArr, trim, quote, delimiter);
|
||||
private getDelimiter(fileline);
|
||||
private isQuoteOpen(str);
|
||||
private isQuoteClose(str);
|
||||
private escapeQuote(segment);
|
||||
parseMultiLines(lines: Fileline[]): MultipleRowResult;
|
||||
}
|
||||
export interface MultipleRowResult {
|
||||
rowsCells: string[][];
|
||||
partial: string;
|
||||
}
|
||||
export interface RowSplitResult {
|
||||
/**
|
||||
* csv row array. ["a","b","c"]
|
||||
*/
|
||||
cells: string[];
|
||||
/**
|
||||
* if the passed fileline is a complete row
|
||||
*/
|
||||
closed: boolean;
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
var versions = require('./versions');
|
||||
var fullVersions = require('./full-versions');
|
||||
var chromiumVersions = require('./chromium-versions');
|
||||
var fullChromiumVersions = require('./full-chromium-versions');
|
||||
|
||||
var electronToChromium = function (query) {
|
||||
var number = getQueryString(query);
|
||||
return number.split('.').length > 2 ? fullVersions[number] : versions[number] || undefined;
|
||||
};
|
||||
|
||||
var chromiumToElectron = function (query) {
|
||||
var number = getQueryString(query);
|
||||
return number.split('.').length > 2 ? fullChromiumVersions[number] : chromiumVersions[number] || undefined;
|
||||
};
|
||||
|
||||
var electronToBrowserList = function (query) {
|
||||
var number = getQueryString(query);
|
||||
return versions[number] ? "Chrome >= " + versions[number] : undefined;
|
||||
};
|
||||
|
||||
var getQueryString = function (query) {
|
||||
var number = query;
|
||||
if (query === 1) { number = "1.0" }
|
||||
if (typeof query === 'number') { number += ''; }
|
||||
return number;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
versions: versions,
|
||||
fullVersions: fullVersions,
|
||||
chromiumVersions: chromiumVersions,
|
||||
fullChromiumVersions: fullChromiumVersions,
|
||||
electronToChromium: electronToChromium,
|
||||
electronToBrowserList: electronToBrowserList,
|
||||
chromiumToElectron: chromiumToElectron
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.timestamp = void 0;
|
||||
var dateTimestampProvider_1 = require("../scheduler/dateTimestampProvider");
|
||||
var map_1 = require("./map");
|
||||
function timestamp(timestampProvider) {
|
||||
if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider_1.dateTimestampProvider; }
|
||||
return map_1.map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); });
|
||||
}
|
||||
exports.timestamp = timestamp;
|
||||
//# sourceMappingURL=timestamp.js.map
|
||||
Reference in New Issue
Block a user