new license file version [CI SKIP]

This commit is contained in:
2023-03-15 12:34:41 +00:00
parent 0a6d92a1f3
commit 61328d20ed
13115 changed files with 1892314 additions and 1 deletions

View File

@@ -0,0 +1,86 @@
'use strict';
var fs = require('fs'),
join = require('path').join,
resolve = require('path').resolve,
dirname = require('path').dirname,
defaultOptions = {
extensions: ['js', 'json', 'coffee'],
recurse: true,
rename: function (name) {
return name;
},
visit: function (obj) {
return obj;
}
};
function checkFileInclusion(path, filename, options) {
return (
// verify file has valid extension
(new RegExp('\\.(' + options.extensions.join('|') + ')$', 'i').test(filename)) &&
// if options.include is a RegExp, evaluate it and make sure the path passes
!(options.include && options.include instanceof RegExp && !options.include.test(path)) &&
// if options.include is a function, evaluate it and make sure the path passes
!(options.include && typeof options.include === 'function' && !options.include(path, filename)) &&
// if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
!(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path)) &&
// if options.exclude is a function, evaluate it and make sure the path doesn't pass
!(options.exclude && typeof options.exclude === 'function' && options.exclude(path, filename))
);
}
function requireDirectory(m, path, options) {
var retval = {};
// path is optional
if (path && !options && typeof path !== 'string') {
options = path;
path = null;
}
// default options
options = options || {};
for (var prop in defaultOptions) {
if (typeof options[prop] === 'undefined') {
options[prop] = defaultOptions[prop];
}
}
// if no path was passed in, assume the equivelant of __dirname from caller
// otherwise, resolve path relative to the equivalent of __dirname
path = !path ? dirname(m.filename) : resolve(dirname(m.filename), path);
// get the path of each file in specified directory, append to current tree node, recurse
fs.readdirSync(path).forEach(function (filename) {
var joined = join(path, filename),
files,
key,
obj;
if (fs.statSync(joined).isDirectory() && options.recurse) {
// this node is a directory; recurse
files = requireDirectory(m, joined, options);
// exclude empty directories
if (Object.keys(files).length) {
retval[options.rename(filename, joined, filename)] = files;
}
} else {
if (joined !== m.filename && checkFileInclusion(joined, filename, options)) {
// hash node key shouldn't include file extension
key = filename.substring(0, filename.lastIndexOf('.'));
obj = m.require(joined);
retval[options.rename(key, joined, filename)] = options.visit(obj, joined, filename) || obj;
}
}
});
return retval;
}
module.exports = requireDirectory;
module.exports.defaults = defaultOptions;

View File

@@ -0,0 +1,270 @@
import { Processor, ProcessLineResult } from "./Processor";
import P from "bluebird";
import { prepareData } from "./dataClean";
import getEol from "./getEol";
import { stringToLines } from "./fileline";
import { bufFromString, filterArray,trimLeft } from "./util";
import { RowSplit } from "./rowSplit";
import lineToJson from "./lineToJson";
import { ParseRuntime } from "./ParseRuntime";
import CSVError from "./CSVError";
export class ProcessorLocal extends Processor {
flush(): P<ProcessLineResult[]> {
if (this.runtime.csvLineBuffer && this.runtime.csvLineBuffer.length > 0) {
const buf = this.runtime.csvLineBuffer;
this.runtime.csvLineBuffer = undefined;
return this.process(buf, true)
.then((res) => {
if (this.runtime.csvLineBuffer && this.runtime.csvLineBuffer.length > 0) {
return P.reject(CSVError.unclosed_quote(this.runtime.parsedLineNumber, this.runtime.csvLineBuffer.toString()))
} else {
return P.resolve(res);
}
})
} else {
return P.resolve([]);
}
}
destroy(): P<void> {
return P.resolve();
}
private rowSplit: RowSplit = new RowSplit(this.converter);
private eolEmitted = false;
private _needEmitEol?: boolean = undefined;
private get needEmitEol() {
if (this._needEmitEol === undefined) {
this._needEmitEol = this.converter.listeners("eol").length > 0;
}
return this._needEmitEol;
}
private headEmitted = false;
private _needEmitHead?: boolean = undefined;
private get needEmitHead() {
if (this._needEmitHead === undefined) {
this._needEmitHead = this.converter.listeners("header").length > 0;
}
return this._needEmitHead;
}
process(chunk: Buffer, finalChunk = false): P<ProcessLineResult[]> {
let csvString: string;
if (finalChunk) {
csvString = chunk.toString();
} else {
csvString = prepareData(chunk, this.converter.parseRuntime);
}
return P.resolve()
.then(() => {
if (this.runtime.preRawDataHook) {
return this.runtime.preRawDataHook(csvString);
} else {
return csvString;
}
})
.then((csv) => {
if (csv && csv.length > 0) {
return this.processCSV(csv, finalChunk);
} else {
return P.resolve([]);
}
})
}
private processCSV(csv: string, finalChunk: boolean): P<ProcessLineResult[]> {
const params = this.params;
const runtime = this.runtime;
if (!runtime.eol) {
getEol(csv, runtime);
}
if (this.needEmitEol && !this.eolEmitted && runtime.eol) {
this.converter.emit("eol", runtime.eol);
this.eolEmitted = true;
}
// trim csv file has initial blank lines.
if (params.ignoreEmpty && !runtime.started) {
csv = trimLeft(csv);
}
const stringToLineResult = stringToLines(csv, runtime);
if (!finalChunk) {
this.prependLeftBuf(bufFromString(stringToLineResult.partial));
} else {
stringToLineResult.lines.push(stringToLineResult.partial);
stringToLineResult.partial = "";
}
if (stringToLineResult.lines.length > 0) {
let prom: P<string[]>;
if (runtime.preFileLineHook) {
prom = this.runPreLineHook(stringToLineResult.lines);
} else {
prom = P.resolve(stringToLineResult.lines);
}
return prom.then((lines) => {
if (!runtime.started
&& !this.runtime.headers
) {
return this.processDataWithHead(lines);
} else {
return this.processCSVBody(lines);
}
})
} else {
return P.resolve([]);
}
}
private processDataWithHead(lines: string[]): ProcessLineResult[] {
if (this.params.noheader) {
if (this.params.headers) {
this.runtime.headers = this.params.headers;
} else {
this.runtime.headers = [];
}
} else {
let left = "";
let headerRow: string[] = [];
while (lines.length) {
const line = left + lines.shift();
const row = this.rowSplit.parse(line);
if (row.closed) {
headerRow = row.cells;
left = "";
break;
} else {
left = line + getEol(line, this.runtime);
}
}
this.prependLeftBuf(bufFromString(left));
if (headerRow.length === 0) {
return [];
}
if (this.params.headers) {
this.runtime.headers = this.params.headers;
} else {
this.runtime.headers = headerRow;
}
}
if (this.runtime.needProcessIgnoreColumn || this.runtime.needProcessIncludeColumn) {
this.filterHeader();
}
if (this.needEmitHead && !this.headEmitted) {
this.converter.emit("header", this.runtime.headers);
this.headEmitted = true;
}
return this.processCSVBody(lines);
}
private filterHeader() {
this.runtime.selectedColumns = [];
if (this.runtime.headers) {
const headers = this.runtime.headers;
for (let i = 0; i < headers.length; i++) {
if (this.params.ignoreColumns) {
if (this.params.ignoreColumns.test(headers[i])) {
if (this.params.includeColumns && this.params.includeColumns.test(headers[i])) {
this.runtime.selectedColumns.push(i);
} else {
continue;
}
} else {
this.runtime.selectedColumns.push(i);
}
} else if (this.params.includeColumns) {
if (this.params.includeColumns.test(headers[i])) {
this.runtime.selectedColumns.push(i);
}
} else {
this.runtime.selectedColumns.push(i);
}
// if (this.params.includeColumns && this.params.includeColumns.test(headers[i])){
// this.runtime.selectedColumns.push(i);
// }else{
// if (this.params.ignoreColumns && this.params.ignoreColumns.test(headers[i])){
// continue;
// }else{
// if (this.params.ignoreColumns && !this.params.includeColumns){
// this.runtime.selectedColumns.push(i);
// }
// }
// }
}
this.runtime.headers = filterArray(this.runtime.headers, this.runtime.selectedColumns);
}
}
private processCSVBody(lines: string[]): ProcessLineResult[] {
if (this.params.output === "line") {
return lines;
} else {
const result = this.rowSplit.parseMultiLines(lines);
this.prependLeftBuf(bufFromString(result.partial));
if (this.params.output === "csv") {
return result.rowsCells;
} else {
return lineToJson(result.rowsCells, this.converter);
}
}
// var jsonArr = linesToJson(lines.lines, params, this.recordNum);
// this.processResult(jsonArr);
// this.lastIndex += jsonArr.length;
// this.recordNum += jsonArr.length;
}
private prependLeftBuf(buf: Buffer) {
if (buf) {
if (this.runtime.csvLineBuffer) {
this.runtime.csvLineBuffer = Buffer.concat([buf, this.runtime.csvLineBuffer]);
} else {
this.runtime.csvLineBuffer = buf;
}
}
}
private runPreLineHook(lines: string[]): P<string[]> {
return new P((resolve, reject) => {
processLineHook(lines, this.runtime, 0, (err) => {
if (err) {
reject(err);
} else {
resolve(lines);
}
})
});
}
}
function processLineHook(lines: string[], runtime: ParseRuntime, offset: number,
cb: (err?) => void
) {
if (offset >= lines.length) {
cb();
} else {
if (runtime.preFileLineHook) {
const line = lines[offset];
const res = runtime.preFileLineHook(line, runtime.parsedLineNumber + offset);
offset++;
if (res && (res as PromiseLike<string>).then) {
(res as PromiseLike<string>).then((value) => {
lines[offset - 1] = value;
processLineHook(lines, runtime, offset, cb);
});
} else {
lines[offset - 1] = res as string;
while (offset < lines.length) {
lines[offset] = runtime.preFileLineHook(lines[offset], runtime.parsedLineNumber + offset) as string;
offset++;
}
cb();
}
} else {
cb();
}
}
}

View File

@@ -0,0 +1,50 @@
{
"name": "preact-compat",
"amdName": "preactCompat",
"version": "4.0.0",
"private": true,
"description": "A React compatibility layer for Preact",
"main": "dist/compat.js",
"module": "dist/compat.module.js",
"umd:main": "dist/compat.umd.js",
"source": "src/index.js",
"types": "src/index.d.ts",
"license": "MIT",
"mangle": {
"regex": "^_"
},
"peerDependencies": {
"preact": "^10.0.0"
},
"exports": {
".": {
"types": "./src/index.d.ts",
"browser": "./dist/compat.module.js",
"umd": "./dist/compat.umd.js",
"import": "./dist/compat.mjs",
"require": "./dist/compat.js"
},
"./client": {
"import": "./client.mjs",
"require": "./client.js"
},
"./server": {
"browser": "./server.browser.js",
"import": "./server.mjs",
"require": "./server.js"
},
"./jsx-runtime": {
"import": "./jsx-runtime.mjs",
"require": "./jsx-runtime.js"
},
"./jsx-dev-runtime": {
"import": "./jsx-dev-runtime.mjs",
"require": "./jsx-dev-runtime.js"
},
"./scheduler": {
"import": "./scheduler.mjs",
"require": "./scheduler.js"
},
"./package.json": "./package.json"
}
}

View File

@@ -0,0 +1,5 @@
export type UserGroup = {
name: string;
description?: string;
id: number;
};

View File

@@ -0,0 +1 @@
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../../../src/internal/operators/retry.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AAEvC,2DAAgE;AAChE,6CAA4C;AAC5C,6CAA4C;AAC5C,qDAAoD;AA4EpD,SAAgB,KAAK,CAAI,aAA8C;IAA9C,8BAAA,EAAA,wBAA8C;IACrE,IAAI,MAAmB,CAAC;IACxB,IAAI,aAAa,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;QACtD,MAAM,GAAG,aAAa,CAAC;KACxB;SAAM;QACL,MAAM,GAAG;YACP,KAAK,EAAE,aAAuB;SAC/B,CAAC;KACH;IACO,IAAA,KAAoE,MAAM,MAA1D,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAAE,KAAK,GAA6C,MAAM,MAAnD,EAAE,KAA2C,MAAM,eAAX,EAAtB,cAAc,mBAAG,KAAK,KAAA,CAAY;IAEnF,OAAO,KAAK,IAAI,CAAC;QACf,CAAC,CAAC,mBAAQ;QACV,CAAC,CAAC,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,IAAI,KAAK,GAAG,CAAC,CAAC;YACd,IAAI,QAA6B,CAAC;YAClC,IAAM,iBAAiB,GAAG;gBACxB,IAAI,SAAS,GAAG,KAAK,CAAC;gBACtB,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;oBAEJ,IAAI,cAAc,EAAE;wBAClB,KAAK,GAAG,CAAC,CAAC;qBACX;oBACD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACzB,CAAC,EAED,SAAS,EACT,UAAC,GAAG;oBACF,IAAI,KAAK,EAAE,GAAG,KAAK,EAAE;wBAEnB,IAAM,OAAK,GAAG;4BACZ,IAAI,QAAQ,EAAE;gCACZ,QAAQ,CAAC,WAAW,EAAE,CAAC;gCACvB,QAAQ,GAAG,IAAI,CAAC;gCAChB,iBAAiB,EAAE,CAAC;6BACrB;iCAAM;gCACL,SAAS,GAAG,IAAI,CAAC;6BAClB;wBACH,CAAC,CAAC;wBAEF,IAAI,KAAK,IAAI,IAAI,EAAE;4BAIjB,IAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,qBAAS,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;4BACzF,IAAM,oBAAkB,GAAG,6CAAwB,CACjD,UAAU,EACV;gCAIE,oBAAkB,CAAC,WAAW,EAAE,CAAC;gCACjC,OAAK,EAAE,CAAC;4BACV,CAAC,EACD;gCAGE,UAAU,CAAC,QAAQ,EAAE,CAAC;4BACxB,CAAC,CACF,CAAC;4BACF,QAAQ,CAAC,SAAS,CAAC,oBAAkB,CAAC,CAAC;yBACxC;6BAAM;4BAEL,OAAK,EAAE,CAAC;yBACT;qBACF;yBAAM;wBAGL,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;qBACvB;gBACH,CAAC,CACF,CACF,CAAC;gBACF,IAAI,SAAS,EAAE;oBACb,QAAQ,CAAC,WAAW,EAAE,CAAC;oBACvB,QAAQ,GAAG,IAAI,CAAC;oBAChB,iBAAiB,EAAE,CAAC;iBACrB;YACH,CAAC,CAAC;YACF,iBAAiB,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;AACT,CAAC;AApFD,sBAoFC"}

View File

@@ -0,0 +1,8 @@
export interface RawHeaders {
"Content-Type": string;
"Content-Length"?: string;
}
export interface FormDataEncoderHeaders extends RawHeaders {
"content-type": string;
"content-length"?: string;
}

View File

@@ -0,0 +1,24 @@
export type EnsureFunction = (...args: any[]) => any;
export interface EnsureBaseOptions {
name?: string;
errorMessage?: string;
errorCode?: number;
Error?: ErrorConstructor;
}
export interface EnsureIsOptional {
isOptional: boolean;
}
export interface EnsureDefault<T> {
default: T;
}
type EnsureOptions = EnsureBaseOptions & { isOptional?: boolean } & { default?: any };
type ValidationDatum = [argumentName: string, inputValue: any, ensureFunction: EnsureFunction, options?: object];
type ValidationDatumList = ValidationDatum[];
declare function ensure<T>(...args: [...ValidationDatumList, EnsureOptions]): T;
declare function ensure<T>(...args: [...ValidationDatumList]): T;
export default ensure;

View File

@@ -0,0 +1,46 @@
# is-map <sup>[![Version Badge][2]][1]</sup>
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][11]][1]
Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
## Example
```js
var isMap = require('is-map');
assert(!isMap(function () {}));
assert(!isMap(null));
assert(!isMap(function* () { yield 42; return Infinity; });
assert(!isMap(Symbol('foo')));
assert(!isMap(1n));
assert(!isMap(Object(1n)));
assert(!isMap(new Set()));
assert(!isMap(new WeakSet()));
assert(!isMap(new WeakMap()));
assert(isMap(new Map()));
class MyMap extends Map {}
assert(isMap(new MyMap()));
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[1]: https://npmjs.org/package/is-map
[2]: https://versionbadg.es/inspect-js/is-map.svg
[5]: https://david-dm.org/inspect-js/is-map.svg
[6]: https://david-dm.org/inspect-js/is-map
[7]: https://david-dm.org/inspect-js/is-map/dev-status.svg
[8]: https://david-dm.org/inspect-js/is-map#info=devDependencies
[11]: https://nodei.co/npm/is-map.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/is-map.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/is-map.svg
[downloads-url]: https://npm-stat.com/charts.html?package=is-map

View File

@@ -0,0 +1 @@
{"version":3,"file":"CanonicalizeLocaleList.d.ts","sourceRoot":"","sources":["../../../../../packages/ecma402-abstract/CanonicalizeLocaleList.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,CAG5E"}

View File

@@ -0,0 +1,244 @@
const Range = require('../classes/range.js')
const Comparator = require('../classes/comparator.js')
const { ANY } = Comparator
const satisfies = require('../functions/satisfies.js')
const compare = require('../functions/compare.js')
// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
// - Every simple range `r1, r2, ...` is a null set, OR
// - Every simple range `r1, r2, ...` which is not a null set is a subset of
// some `R1, R2, ...`
//
// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
// - If c is only the ANY comparator
// - If C is only the ANY comparator, return true
// - Else if in prerelease mode, return false
// - else replace c with `[>=0.0.0]`
// - If C is only the ANY comparator
// - if in prerelease mode, return true
// - else replace C with `[>=0.0.0]`
// - Let EQ be the set of = comparators in c
// - If EQ is more than one, return true (null set)
// - Let GT be the highest > or >= comparator in c
// - Let LT be the lowest < or <= comparator in c
// - If GT and LT, and GT.semver > LT.semver, return true (null set)
// - If any C is a = range, and GT or LT are set, return false
// - If EQ
// - If GT, and EQ does not satisfy GT, return true (null set)
// - If LT, and EQ does not satisfy LT, return true (null set)
// - If EQ satisfies every C, return true
// - Else return false
// - If GT
// - If GT.semver is lower than any > or >= comp in C, return false
// - If GT is >=, and GT.semver does not satisfy every C, return false
// - If GT.semver has a prerelease, and not in prerelease mode
// - If no C has a prerelease and the GT.semver tuple, return false
// - If LT
// - If LT.semver is greater than any < or <= comp in C, return false
// - If LT is <=, and LT.semver does not satisfy every C, return false
// - If GT.semver has a prerelease, and not in prerelease mode
// - If no C has a prerelease and the LT.semver tuple, return false
// - Else return true
const subset = (sub, dom, options = {}) => {
if (sub === dom) {
return true
}
sub = new Range(sub, options)
dom = new Range(dom, options)
let sawNonNull = false
OUTER: for (const simpleSub of sub.set) {
for (const simpleDom of dom.set) {
const isSub = simpleSubset(simpleSub, simpleDom, options)
sawNonNull = sawNonNull || isSub !== null
if (isSub) {
continue OUTER
}
}
// the null set is a subset of everything, but null simple ranges in
// a complex range should be ignored. so if we saw a non-null range,
// then we know this isn't a subset, but if EVERY simple range was null,
// then it is a subset.
if (sawNonNull) {
return false
}
}
return true
}
const simpleSubset = (sub, dom, options) => {
if (sub === dom) {
return true
}
if (sub.length === 1 && sub[0].semver === ANY) {
if (dom.length === 1 && dom[0].semver === ANY) {
return true
} else if (options.includePrerelease) {
sub = [new Comparator('>=0.0.0-0')]
} else {
sub = [new Comparator('>=0.0.0')]
}
}
if (dom.length === 1 && dom[0].semver === ANY) {
if (options.includePrerelease) {
return true
} else {
dom = [new Comparator('>=0.0.0')]
}
}
const eqSet = new Set()
let gt, lt
for (const c of sub) {
if (c.operator === '>' || c.operator === '>=') {
gt = higherGT(gt, c, options)
} else if (c.operator === '<' || c.operator === '<=') {
lt = lowerLT(lt, c, options)
} else {
eqSet.add(c.semver)
}
}
if (eqSet.size > 1) {
return null
}
let gtltComp
if (gt && lt) {
gtltComp = compare(gt.semver, lt.semver, options)
if (gtltComp > 0) {
return null
} else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<=')) {
return null
}
}
// will iterate one or zero times
for (const eq of eqSet) {
if (gt && !satisfies(eq, String(gt), options)) {
return null
}
if (lt && !satisfies(eq, String(lt), options)) {
return null
}
for (const c of dom) {
if (!satisfies(eq, String(c), options)) {
return false
}
}
return true
}
let higher, lower
let hasDomLT, hasDomGT
// if the subset has a prerelease, we need a comparator in the superset
// with the same tuple and a prerelease, or it's not a subset
let needDomLTPre = lt &&
!options.includePrerelease &&
lt.semver.prerelease.length ? lt.semver : false
let needDomGTPre = gt &&
!options.includePrerelease &&
gt.semver.prerelease.length ? gt.semver : false
// exception: <1.2.3-0 is the same as <1.2.3
if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
needDomLTPre = false
}
for (const c of dom) {
hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='
hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='
if (gt) {
if (needDomGTPre) {
if (c.semver.prerelease && c.semver.prerelease.length &&
c.semver.major === needDomGTPre.major &&
c.semver.minor === needDomGTPre.minor &&
c.semver.patch === needDomGTPre.patch) {
needDomGTPre = false
}
}
if (c.operator === '>' || c.operator === '>=') {
higher = higherGT(gt, c, options)
if (higher === c && higher !== gt) {
return false
}
} else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options)) {
return false
}
}
if (lt) {
if (needDomLTPre) {
if (c.semver.prerelease && c.semver.prerelease.length &&
c.semver.major === needDomLTPre.major &&
c.semver.minor === needDomLTPre.minor &&
c.semver.patch === needDomLTPre.patch) {
needDomLTPre = false
}
}
if (c.operator === '<' || c.operator === '<=') {
lower = lowerLT(lt, c, options)
if (lower === c && lower !== lt) {
return false
}
} else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options)) {
return false
}
}
if (!c.operator && (lt || gt) && gtltComp !== 0) {
return false
}
}
// if there was a < or >, and nothing in the dom, then must be false
// UNLESS it was limited by another range in the other direction.
// Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
if (gt && hasDomLT && !lt && gtltComp !== 0) {
return false
}
if (lt && hasDomGT && !gt && gtltComp !== 0) {
return false
}
// we needed a prerelease range in a specific tuple, but didn't get one
// then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,
// because it includes prereleases in the 1.2.3 tuple
if (needDomGTPre || needDomLTPre) {
return false
}
return true
}
// >=1.2.3 is lower than >1.2.3
const higherGT = (a, b, options) => {
if (!a) {
return b
}
const comp = compare(a.semver, b.semver, options)
return comp > 0 ? a
: comp < 0 ? b
: b.operator === '>' && a.operator === '>=' ? b
: a
}
// <=1.2.3 is higher than <1.2.3
const lowerLT = (a, b, options) => {
if (!a) {
return b
}
const comp = compare(a.semver, b.semver, options)
return comp < 0 ? a
: comp > 0 ? b
: b.operator === '<' && a.operator === '<=' ? b
: a
}
module.exports = subset

View File

@@ -0,0 +1,248 @@
const {passwordStrength: app, defaultOptions} = require("./index");
it("Should not modify the password parameter", () => {
let pwd = "Hello!"
app(pwd)
expect(pwd).toBe("Hello!")
})
it("Should return strength id 3 if password is Strong", () => {
expect(app("A@2asdF2020!!*!").id).toBe(3);
});
it("Should return strength id 2 if password is Medium", () => {
expect(app("Asd1234!").id).toBe(2);
});
it("Should return strength id 1 if password is Weak", () => {
expect(app("asdf1234").id).toBe(1);
});
it("Should return strength id 1 if password has two combination of symbol + lowercase", () => {
expect(app("asdf!@#$").id).toBe(1);
});
it("Should return strength id 1 if password has two combination of symbol + uppercase", () => {
expect(app("ASDF!@#$").id).toBe(1);
});
it("Should return strength id 1 if password has two combination of symbol + numeric", () => {
expect(app("1234!@#$").id).toBe(1);
});
it("Should return strength id 0 if password is weak", () => {
expect(app("a").id).toBe(0);
});
it("Should return strength value 'Strong' if password is Medium", () => {
expect(app("A@2asdF2020!!*").value).toBe("Strong");
});
it("Should return strength value 'Medium' if password is Medium", () => {
expect(app("Asd1234!").value).toBe("Medium");
});
it("Should return strength value 'Weak' if password is Weak", () => {
expect(app("Asdf1234").value).toBe("Weak");
});
// pass combination
it("Should return strength value 'Weak' if password has two combination of symbol + lowercase", () => {
expect(app("asdf!@#$").value).toBe("Weak");
});
it("Should return strength value 'Weak' if password has two combination of symbol + uppercase", () => {
expect(app("ASDF!@#$").value).toBe("Weak");
});
it("Should return strength value 'Weak' if password has two combination of symbol + numeric", () => {
expect(app("1234!@#$").value).toBe("Weak");
});
it("Should return strength value 'Too weak' if password is weak", () => {
expect(app("a").value).toBe("Too weak");
});
it("Should return type of number if request for id", () => {
expect(typeof app("a").id).toBe("number");
});
it("Should return type of string if request for value", () => {
expect(typeof app("a").value).toBe("string");
});
it("Should return type of object if requesting directly from the function", () => {
expect(typeof app("a")).toBe("object");
});
// contains
it("Should return true if request for contains is an array", () => {
const arrayData = Array.isArray(app("a").contains);
expect(arrayData).toEqual(true);
});
it("Should return contains of 'lowercase' if the password has lowercase", () => {
const contains = app("lower").contains;
const contain = contains.find((x) => x === "lowercase");
const condition = contain === "lowercase";
expect(condition).toEqual(true);
});
it("Should return contains of 'uppercase' if the password has uppercase", () => {
const contains = app("Uppercase").contains;
const contain = contains.find((x) => x === "uppercase");
const condition = contain === "uppercase";
expect(condition).toEqual(true);
});
it("Should return contains of 'symbol' if the password has symbol", () => {
const contains = app("!test").contains;
const contain = contains.find((x) => x === "symbol");
const condition = contain === "symbol";
expect(condition).toEqual(true);
});
it("Should return contains of 'number' if the password has number", () => {
const contains = app("1234").contains;
const contain = contains.find((x) => x === "number");
const condition = contain === "number";
expect(condition).toEqual(true);
});
it("Should return contains of all criteria (lowercase, uppercase, symbol & number)", () => {
expect(app("asdfASDF!@#$1234").contains).toStrictEqual([
"lowercase",
"uppercase",
"number",
"symbol",
]);
});
it("Should return contains of two or more message if the password has 2 or more message password criteria", () => {
expect(app("asdfASDF").contains).toStrictEqual([
"lowercase",
"uppercase",
]);
});
it("Should return contains length if contains has value", () => {
expect(app("asdfASDF").contains.length).toBe(2);
});
// length
it("Should return numeric length value if request for length", () => {
expect(app("1234").length).toBe(4);
});
it("Should return type of number if request is for length value", () => {
expect(typeof app("1234").length).toBe("number");
});
it("Should return an empty password result if password parameter is null", () => {
expect(app(null).id).toBe(0);
expect(app(null).length).toBe(0);
expect(app(null).contains).toStrictEqual([]);
});
overridenOptions = [
{
id: 0,
value: "Too weak",
minDiversity: 0,
minLength: 0
},
{
id: 1,
value: "Weak",
minDiversity: 2,
minLength: 6
},
{
id: 2,
value: "Medium",
minDiversity: 3,
minLength: 8
},
{
id: 3,
value: "Strong",
minDiversity: 4,
minLength: 10
}
]
it("[overridden options] Should return strength id 0 if password is weak", () => {
expect(app("aB1$", overridenOptions).id).toBe(0);
expect(app("aB1$", overridenOptions).value).toBe("Too weak");
});
it("[overridden options] Should return strength id 1 if password is Weak", () => {
expect(app("abcde123456", overridenOptions).id).toBe(1);
expect(app("abcde123456", overridenOptions).value).toBe("Weak");
});
it("[overridden options] Should return strength id 2 if password is Medium", () => {
expect(app("abcde123456$", overridenOptions).id).toBe(2);
expect(app("abcde123456$", overridenOptions).value).toBe("Medium");
});
it("[overridden options] Should return strength id 3 if password is Strong", () => {
expect(app("abcde123456$B", overridenOptions).id).toBe(3);
expect(app("abcde123456$B", overridenOptions).value).toBe("Strong");
});
it("[overridden options] Should return true if request for contains is an array", () => {
const arrayData = Array.isArray(app("a", overridenOptions).contains);
expect(arrayData).toEqual(true);
});
it("[overridden options] Should return contains of 'lowercase' if the password has lowercase", () => {
const contains = app("lower", overridenOptions).contains;
const contain = contains.find((x) => x === "lowercase");
const condition = contain === "lowercase";
expect(condition).toEqual(true);
});
it("[overridden options] Should return contains of 'uppercase' if the password has uppercase", () => {
const contains = app("Uppercase", overridenOptions).contains;
const contain = contains.find((x) => x === "uppercase");
const condition = contain === "uppercase";
expect(condition).toEqual(true);
});
it("[overridden options] Should return contains of 'symbol' if the password has symbol", () => {
const contains = app("!test", overridenOptions).contains;
const contain = contains.find((x) => x === "symbol");
const condition = contain === "symbol";
expect(condition).toEqual(true);
});
it("[overridden options] Should return contains of 'number' if the password has number", () => {
const contains = app("1234", overridenOptions).contains;
const contain = contains.find((x) => x === "number");
const condition = contain === "number";
expect(condition).toEqual(true);
});
it("[overridden options] Should return the same object with the default option", () => {
expect(app("abcd@")).toStrictEqual(app('abdc@', defaultOptions))
expect(app("abcd@E")).toStrictEqual(app('abdc@E', defaultOptions))
expect(app("abcd@3")).toStrictEqual(app('abdc@3', defaultOptions))
expect(app(null)).toStrictEqual(app(null, defaultOptions))
});
it("[overridden allowedSymbols] Should not contains symbols if the password does not have one", () => {
const contains = app("abcd@", undefined, '$').contains;
expect(contains).toEqual(expect.arrayContaining(['lowercase']));
expect(contains).toEqual(expect.not.arrayContaining(['uppercase']));
expect(contains).toEqual(expect.not.arrayContaining(['number']));
expect(contains).toEqual(expect.not.arrayContaining(['symbol']));
});
it("[overridden allowedSymbols] Should contains symbols if the password have one", () => {
const contains = app("abcd@Ê", undefined, 'Ê').contains;
expect(contains).toEqual(expect.arrayContaining(['lowercase']));
expect(contains).toEqual(expect.not.arrayContaining(['uppercase']));
expect(contains).toEqual(expect.not.arrayContaining(['number']));
expect(contains).toEqual(expect.arrayContaining(['symbol']));
});

View File

@@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createInvalidObservableTypeError = void 0;
function createInvalidObservableTypeError(input) {
return new TypeError("You provided " + (input !== null && typeof input === 'object' ? 'an invalid object' : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
}
exports.createInvalidObservableTypeError = createInvalidObservableTypeError;
//# sourceMappingURL=throwUnobservableError.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"ComputeExponentForMagnitude.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/NumberFormat/ComputeExponentForMagnitude.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAmB,MAAM,iBAAiB,CAAA;AAEtE;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,SAAS,EAAE,MAAM,EACjB,EACE,gBAAgB,GACjB,EAAE;IAAC,gBAAgB,CAAC,EAAE,EAAE,IAAI,CAAC,YAAY,GAAG,oBAAoB,CAAA;CAAC,GACjE,MAAM,CAyDR"}

View File

@@ -0,0 +1,16 @@
var path = require('path');
var common = require('./common');
common.register('pwd', _pwd, {
allowGlobbing: false,
});
//@
//@ ### pwd()
//@
//@ Returns the current directory.
function _pwd() {
var pwd = path.resolve(process.cwd());
return pwd;
}
module.exports = _pwd;

View File

@@ -0,0 +1 @@
export { SvelteComponentDev as SvelteComponent, SvelteComponentTyped, afterUpdate, beforeUpdate, createEventDispatcher, getAllContexts, getContext, hasContext, onDestroy, onMount, setContext, tick } from './internal/index.mjs';

View File

@@ -0,0 +1,311 @@
var eaw = {};
if ('undefined' == typeof module) {
window.eastasianwidth = eaw;
} else {
module.exports = eaw;
}
eaw.eastAsianWidth = function(character) {
var x = character.charCodeAt(0);
var y = (character.length == 2) ? character.charCodeAt(1) : 0;
var codePoint = x;
if ((0xD800 <= x && x <= 0xDBFF) && (0xDC00 <= y && y <= 0xDFFF)) {
x &= 0x3FF;
y &= 0x3FF;
codePoint = (x << 10) | y;
codePoint += 0x10000;
}
if ((0x3000 == codePoint) ||
(0xFF01 <= codePoint && codePoint <= 0xFF60) ||
(0xFFE0 <= codePoint && codePoint <= 0xFFE6)) {
return 'F';
}
if ((0x20A9 == codePoint) ||
(0xFF61 <= codePoint && codePoint <= 0xFFBE) ||
(0xFFC2 <= codePoint && codePoint <= 0xFFC7) ||
(0xFFCA <= codePoint && codePoint <= 0xFFCF) ||
(0xFFD2 <= codePoint && codePoint <= 0xFFD7) ||
(0xFFDA <= codePoint && codePoint <= 0xFFDC) ||
(0xFFE8 <= codePoint && codePoint <= 0xFFEE)) {
return 'H';
}
if ((0x1100 <= codePoint && codePoint <= 0x115F) ||
(0x11A3 <= codePoint && codePoint <= 0x11A7) ||
(0x11FA <= codePoint && codePoint <= 0x11FF) ||
(0x2329 <= codePoint && codePoint <= 0x232A) ||
(0x2E80 <= codePoint && codePoint <= 0x2E99) ||
(0x2E9B <= codePoint && codePoint <= 0x2EF3) ||
(0x2F00 <= codePoint && codePoint <= 0x2FD5) ||
(0x2FF0 <= codePoint && codePoint <= 0x2FFB) ||
(0x3001 <= codePoint && codePoint <= 0x303E) ||
(0x3041 <= codePoint && codePoint <= 0x3096) ||
(0x3099 <= codePoint && codePoint <= 0x30FF) ||
(0x3105 <= codePoint && codePoint <= 0x312D) ||
(0x3131 <= codePoint && codePoint <= 0x318E) ||
(0x3190 <= codePoint && codePoint <= 0x31BA) ||
(0x31C0 <= codePoint && codePoint <= 0x31E3) ||
(0x31F0 <= codePoint && codePoint <= 0x321E) ||
(0x3220 <= codePoint && codePoint <= 0x3247) ||
(0x3250 <= codePoint && codePoint <= 0x32FE) ||
(0x3300 <= codePoint && codePoint <= 0x4DBF) ||
(0x4E00 <= codePoint && codePoint <= 0xA48C) ||
(0xA490 <= codePoint && codePoint <= 0xA4C6) ||
(0xA960 <= codePoint && codePoint <= 0xA97C) ||
(0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
(0xD7B0 <= codePoint && codePoint <= 0xD7C6) ||
(0xD7CB <= codePoint && codePoint <= 0xD7FB) ||
(0xF900 <= codePoint && codePoint <= 0xFAFF) ||
(0xFE10 <= codePoint && codePoint <= 0xFE19) ||
(0xFE30 <= codePoint && codePoint <= 0xFE52) ||
(0xFE54 <= codePoint && codePoint <= 0xFE66) ||
(0xFE68 <= codePoint && codePoint <= 0xFE6B) ||
(0x1B000 <= codePoint && codePoint <= 0x1B001) ||
(0x1F200 <= codePoint && codePoint <= 0x1F202) ||
(0x1F210 <= codePoint && codePoint <= 0x1F23A) ||
(0x1F240 <= codePoint && codePoint <= 0x1F248) ||
(0x1F250 <= codePoint && codePoint <= 0x1F251) ||
(0x20000 <= codePoint && codePoint <= 0x2F73F) ||
(0x2B740 <= codePoint && codePoint <= 0x2FFFD) ||
(0x30000 <= codePoint && codePoint <= 0x3FFFD)) {
return 'W';
}
if ((0x0020 <= codePoint && codePoint <= 0x007E) ||
(0x00A2 <= codePoint && codePoint <= 0x00A3) ||
(0x00A5 <= codePoint && codePoint <= 0x00A6) ||
(0x00AC == codePoint) ||
(0x00AF == codePoint) ||
(0x27E6 <= codePoint && codePoint <= 0x27ED) ||
(0x2985 <= codePoint && codePoint <= 0x2986)) {
return 'Na';
}
if ((0x00A1 == codePoint) ||
(0x00A4 == codePoint) ||
(0x00A7 <= codePoint && codePoint <= 0x00A8) ||
(0x00AA == codePoint) ||
(0x00AD <= codePoint && codePoint <= 0x00AE) ||
(0x00B0 <= codePoint && codePoint <= 0x00B4) ||
(0x00B6 <= codePoint && codePoint <= 0x00BA) ||
(0x00BC <= codePoint && codePoint <= 0x00BF) ||
(0x00C6 == codePoint) ||
(0x00D0 == codePoint) ||
(0x00D7 <= codePoint && codePoint <= 0x00D8) ||
(0x00DE <= codePoint && codePoint <= 0x00E1) ||
(0x00E6 == codePoint) ||
(0x00E8 <= codePoint && codePoint <= 0x00EA) ||
(0x00EC <= codePoint && codePoint <= 0x00ED) ||
(0x00F0 == codePoint) ||
(0x00F2 <= codePoint && codePoint <= 0x00F3) ||
(0x00F7 <= codePoint && codePoint <= 0x00FA) ||
(0x00FC == codePoint) ||
(0x00FE == codePoint) ||
(0x0101 == codePoint) ||
(0x0111 == codePoint) ||
(0x0113 == codePoint) ||
(0x011B == codePoint) ||
(0x0126 <= codePoint && codePoint <= 0x0127) ||
(0x012B == codePoint) ||
(0x0131 <= codePoint && codePoint <= 0x0133) ||
(0x0138 == codePoint) ||
(0x013F <= codePoint && codePoint <= 0x0142) ||
(0x0144 == codePoint) ||
(0x0148 <= codePoint && codePoint <= 0x014B) ||
(0x014D == codePoint) ||
(0x0152 <= codePoint && codePoint <= 0x0153) ||
(0x0166 <= codePoint && codePoint <= 0x0167) ||
(0x016B == codePoint) ||
(0x01CE == codePoint) ||
(0x01D0 == codePoint) ||
(0x01D2 == codePoint) ||
(0x01D4 == codePoint) ||
(0x01D6 == codePoint) ||
(0x01D8 == codePoint) ||
(0x01DA == codePoint) ||
(0x01DC == codePoint) ||
(0x0251 == codePoint) ||
(0x0261 == codePoint) ||
(0x02C4 == codePoint) ||
(0x02C7 == codePoint) ||
(0x02C9 <= codePoint && codePoint <= 0x02CB) ||
(0x02CD == codePoint) ||
(0x02D0 == codePoint) ||
(0x02D8 <= codePoint && codePoint <= 0x02DB) ||
(0x02DD == codePoint) ||
(0x02DF == codePoint) ||
(0x0300 <= codePoint && codePoint <= 0x036F) ||
(0x0391 <= codePoint && codePoint <= 0x03A1) ||
(0x03A3 <= codePoint && codePoint <= 0x03A9) ||
(0x03B1 <= codePoint && codePoint <= 0x03C1) ||
(0x03C3 <= codePoint && codePoint <= 0x03C9) ||
(0x0401 == codePoint) ||
(0x0410 <= codePoint && codePoint <= 0x044F) ||
(0x0451 == codePoint) ||
(0x2010 == codePoint) ||
(0x2013 <= codePoint && codePoint <= 0x2016) ||
(0x2018 <= codePoint && codePoint <= 0x2019) ||
(0x201C <= codePoint && codePoint <= 0x201D) ||
(0x2020 <= codePoint && codePoint <= 0x2022) ||
(0x2024 <= codePoint && codePoint <= 0x2027) ||
(0x2030 == codePoint) ||
(0x2032 <= codePoint && codePoint <= 0x2033) ||
(0x2035 == codePoint) ||
(0x203B == codePoint) ||
(0x203E == codePoint) ||
(0x2074 == codePoint) ||
(0x207F == codePoint) ||
(0x2081 <= codePoint && codePoint <= 0x2084) ||
(0x20AC == codePoint) ||
(0x2103 == codePoint) ||
(0x2105 == codePoint) ||
(0x2109 == codePoint) ||
(0x2113 == codePoint) ||
(0x2116 == codePoint) ||
(0x2121 <= codePoint && codePoint <= 0x2122) ||
(0x2126 == codePoint) ||
(0x212B == codePoint) ||
(0x2153 <= codePoint && codePoint <= 0x2154) ||
(0x215B <= codePoint && codePoint <= 0x215E) ||
(0x2160 <= codePoint && codePoint <= 0x216B) ||
(0x2170 <= codePoint && codePoint <= 0x2179) ||
(0x2189 == codePoint) ||
(0x2190 <= codePoint && codePoint <= 0x2199) ||
(0x21B8 <= codePoint && codePoint <= 0x21B9) ||
(0x21D2 == codePoint) ||
(0x21D4 == codePoint) ||
(0x21E7 == codePoint) ||
(0x2200 == codePoint) ||
(0x2202 <= codePoint && codePoint <= 0x2203) ||
(0x2207 <= codePoint && codePoint <= 0x2208) ||
(0x220B == codePoint) ||
(0x220F == codePoint) ||
(0x2211 == codePoint) ||
(0x2215 == codePoint) ||
(0x221A == codePoint) ||
(0x221D <= codePoint && codePoint <= 0x2220) ||
(0x2223 == codePoint) ||
(0x2225 == codePoint) ||
(0x2227 <= codePoint && codePoint <= 0x222C) ||
(0x222E == codePoint) ||
(0x2234 <= codePoint && codePoint <= 0x2237) ||
(0x223C <= codePoint && codePoint <= 0x223D) ||
(0x2248 == codePoint) ||
(0x224C == codePoint) ||
(0x2252 == codePoint) ||
(0x2260 <= codePoint && codePoint <= 0x2261) ||
(0x2264 <= codePoint && codePoint <= 0x2267) ||
(0x226A <= codePoint && codePoint <= 0x226B) ||
(0x226E <= codePoint && codePoint <= 0x226F) ||
(0x2282 <= codePoint && codePoint <= 0x2283) ||
(0x2286 <= codePoint && codePoint <= 0x2287) ||
(0x2295 == codePoint) ||
(0x2299 == codePoint) ||
(0x22A5 == codePoint) ||
(0x22BF == codePoint) ||
(0x2312 == codePoint) ||
(0x2460 <= codePoint && codePoint <= 0x24E9) ||
(0x24EB <= codePoint && codePoint <= 0x254B) ||
(0x2550 <= codePoint && codePoint <= 0x2573) ||
(0x2580 <= codePoint && codePoint <= 0x258F) ||
(0x2592 <= codePoint && codePoint <= 0x2595) ||
(0x25A0 <= codePoint && codePoint <= 0x25A1) ||
(0x25A3 <= codePoint && codePoint <= 0x25A9) ||
(0x25B2 <= codePoint && codePoint <= 0x25B3) ||
(0x25B6 <= codePoint && codePoint <= 0x25B7) ||
(0x25BC <= codePoint && codePoint <= 0x25BD) ||
(0x25C0 <= codePoint && codePoint <= 0x25C1) ||
(0x25C6 <= codePoint && codePoint <= 0x25C8) ||
(0x25CB == codePoint) ||
(0x25CE <= codePoint && codePoint <= 0x25D1) ||
(0x25E2 <= codePoint && codePoint <= 0x25E5) ||
(0x25EF == codePoint) ||
(0x2605 <= codePoint && codePoint <= 0x2606) ||
(0x2609 == codePoint) ||
(0x260E <= codePoint && codePoint <= 0x260F) ||
(0x2614 <= codePoint && codePoint <= 0x2615) ||
(0x261C == codePoint) ||
(0x261E == codePoint) ||
(0x2640 == codePoint) ||
(0x2642 == codePoint) ||
(0x2660 <= codePoint && codePoint <= 0x2661) ||
(0x2663 <= codePoint && codePoint <= 0x2665) ||
(0x2667 <= codePoint && codePoint <= 0x266A) ||
(0x266C <= codePoint && codePoint <= 0x266D) ||
(0x266F == codePoint) ||
(0x269E <= codePoint && codePoint <= 0x269F) ||
(0x26BE <= codePoint && codePoint <= 0x26BF) ||
(0x26C4 <= codePoint && codePoint <= 0x26CD) ||
(0x26CF <= codePoint && codePoint <= 0x26E1) ||
(0x26E3 == codePoint) ||
(0x26E8 <= codePoint && codePoint <= 0x26FF) ||
(0x273D == codePoint) ||
(0x2757 == codePoint) ||
(0x2776 <= codePoint && codePoint <= 0x277F) ||
(0x2B55 <= codePoint && codePoint <= 0x2B59) ||
(0x3248 <= codePoint && codePoint <= 0x324F) ||
(0xE000 <= codePoint && codePoint <= 0xF8FF) ||
(0xFE00 <= codePoint && codePoint <= 0xFE0F) ||
(0xFFFD == codePoint) ||
(0x1F100 <= codePoint && codePoint <= 0x1F10A) ||
(0x1F110 <= codePoint && codePoint <= 0x1F12D) ||
(0x1F130 <= codePoint && codePoint <= 0x1F169) ||
(0x1F170 <= codePoint && codePoint <= 0x1F19A) ||
(0xE0100 <= codePoint && codePoint <= 0xE01EF) ||
(0xF0000 <= codePoint && codePoint <= 0xFFFFD) ||
(0x100000 <= codePoint && codePoint <= 0x10FFFD)) {
return 'A';
}
return 'N';
};
eaw.characterLength = function(character) {
var code = this.eastAsianWidth(character);
if (code == 'F' || code == 'W' || code == 'A') {
return 2;
} else {
return 1;
}
};
// Split a string considering surrogate-pairs.
function stringToArray(string) {
return string.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g) || [];
}
eaw.length = function(string) {
var characters = stringToArray(string);
var len = 0;
for (var i = 0; i < characters.length; i++) {
len = len + this.characterLength(characters[i]);
}
return len;
};
eaw.slice = function(text, start, end) {
textLen = eaw.length(text)
start = start ? start : 0;
end = end ? end : 1;
if (start < 0) {
start = textLen + start;
}
if (end < 0) {
end = textLen + end;
}
var result = '';
var eawLen = 0;
var chars = stringToArray(text);
for (var i = 0; i < chars.length; i++) {
var char = chars[i];
var charLen = eaw.length(char);
if (eawLen >= start - (charLen == 2 ? 1 : 0)) {
if (eawLen + charLen <= end) {
result += char;
} else {
break;
}
}
eawLen += charLen;
}
return result;
};

View File

@@ -0,0 +1 @@
{"name":"cli-color","version":"2.0.3","files":{"bin/generate-color-images":{"checkedAt":1678883668420,"integrity":"sha512-2aKmFNuqysyKjDLwpi76bICilYeIL91Oe3+Cbx1LMVmB5o6jZ9SldPNLQj6lkwFY5it+K58i7kISqu4sYKMOYQ==","mode":493,"size":563},"LICENSE":{"checkedAt":1678883668420,"integrity":"sha512-RQb2mEkMYul0FJSCG3Jo2ZP7YFtFuBtaDfRmRK5e4uS/0d9gmg7u+JZV1OBuEYz6+l8G2ifLrxz7QRGfOg49ng==","mode":420,"size":773},"art.js":{"checkedAt":1678883668420,"integrity":"sha512-lMrJ5GgVfE2dC508JYy7V4mvFFT3EdkDe5ZC2tMghCKkMixpo+IChPW8Zwd7hoEYtlolrxoVbYBFffwTwQrfLg==","mode":420,"size":392},"bare.js":{"checkedAt":1678883668420,"integrity":"sha512-PwVV3v/tDj8PjoQS/tY50ZaZ37eg0gBCoSw2o39i11GYH1c/0R/aIO/MgP44p4zLfm0YufUxtKzzHyeR7+vglA==","mode":420,"size":2747},"beep.js":{"checkedAt":1678883668421,"integrity":"sha512-0tvA2HvvudISDrw2ZPJvtk8+mfF4B+B6+p6Evn8m2vtxFHAEOT7/MjwlEO3RTePUgLuyugGv5T0lVu3sQHmLOQ==","mode":420,"size":40},"columns.js":{"checkedAt":1678883668421,"integrity":"sha512-LoYBMOuAC7vZsJbRadYrwgNayj/U49a5rAUpayO0nrelNWAW1Yskz/Ghtky9oGbcHSFLuly1HCRf9Kxq96WG+A==","mode":420,"size":1914},"erase.js":{"checkedAt":1678883668421,"integrity":"sha512-fMBTwSRMwjOXLE9ccve0Az5fH+NwqY7/NAtQYGhIjelfXjw19W7H26uMNXGS5b41dVqe9mpDdqr9hnDMCeuL1w==","mode":420,"size":166},"CHANGES":{"checkedAt":1678883668421,"integrity":"sha512-b3NNCpYeRMXLCi7aaGdoqmJS8DEDi6yb4qX35ZXLjbONNFiMkN4bYMyAhEyEkCLmQwoXIWY5N8Ee7gaKjb03dA==","mode":420,"size":3461},"index.js":{"checkedAt":1678883668429,"integrity":"sha512-BjkvpixIPTvjvJaWrNZavNyXiY6g8XSW1uNOxLlEGZF8uxLffrDI3y9XDQc9DERCQqrTqqG+B08Ta5/D/nnZwg==","mode":420,"size":483},"move.js":{"checkedAt":1678883668429,"integrity":"sha512-cX+GLH+qnCPgqkzIpcRUyNIrNEgncJbiJ2ZrcjjRJSuCwnlP2aQggZ0hh7DvtYXBArUL3kfMH3rZQwwUFxWLxQ==","mode":420,"size":1086},"reset.js":{"checkedAt":1678883668429,"integrity":"sha512-4ebAbMuEnvFQty4W3VGbRT+CEJfNaLahNBH44/myZRh7s2+A4QMUBKxchdZiLLgoybWMl/zE1QV1owwVWgO+jg==","mode":420,"size":52},"regex-ansi.js":{"checkedAt":1678883668429,"integrity":"sha512-bWZVAKTXN9CNVMVOU4/tmlKHr/tSO4mWq2e1DVbgUA+GM0yz0SlcvWZA4hnIVjz+35qVZtaCOjSVljAVSOa9wA==","mode":420,"size":431},"lib/sgr.js":{"checkedAt":1678883668429,"integrity":"sha512-/gHaTlI44rurVybz++bM9p/jqVwG9iOfztmYWN9eRNdAeH6YYrBinTqUgDb/ruhf7cWNGBnZKW/4nxsiYosP4w==","mode":420,"size":2547},"slice.js":{"checkedAt":1678883668429,"integrity":"sha512-bEGl+Sp6jYkERxH3QFtBJEjt4rIIfCtjh1DwqOl5yPTaEynuVSccxW8GSchQDt3NMyJWDVzMDrgUkfiG7YiMKg==","mode":420,"size":3326},"strip.js":{"checkedAt":1678883668429,"integrity":"sha512-Zpf8hohDOJxYudlVVTkLHhBNxbe22Wch8ZFZU6NC8VMV3d6Cuk70Fx1c+sx73WRE7/A+KY3JoM9zXDtez2qdmg==","mode":420,"size":249},"lib/supports-color.js":{"checkedAt":1678883668429,"integrity":"sha512-xBA9XV6ZQfeO7hpObMxCsr6sOeRVpEoRRrvM1kkQqG/J/KBXhTN65uXDJOyUcr0CkO+NPLbWzFeW5U5dJs/upw==","mode":420,"size":661},"get-stripped-length.js":{"checkedAt":1678883668431,"integrity":"sha512-3eBUQ0RyXlOXWm6LRBWWphWjjVM0Kx7pplRSgim4qoFYcuDiQcsRbZ4FxcunRfQ8960k6ZtsW86JcyfsYtobcA==","mode":420,"size":165},"throbber.js":{"checkedAt":1678883668431,"integrity":"sha512-s2fOTveUCoxU0I42L3Zyma93DP2hKLzH0mADdtJAG4nNhC0nPDpEl3ZUXmTsisQVXl70JodPy5ywixiLcL6Orw==","mode":420,"size":1379},"window-size.js":{"checkedAt":1678883668431,"integrity":"sha512-txVsoQOpCIAELR8SGn9BDckmcpejbt2gInqsRX7gto8a2siiniwmUvJokOqvHQMXnWikpmMm+FyhejTp0vZq9A==","mode":420,"size":220},"lib/xterm-match.js":{"checkedAt":1678883668431,"integrity":"sha512-WcZ+rmuUoQRXiHxiQb2XUchf+b5rJoOuzKaU58nXLW9lDAcxkcjfIrBNQc+k58zJqWsW106rXbY4IiZJBpbtZw==","mode":420,"size":940},"package.json":{"checkedAt":1678883668431,"integrity":"sha512-UyN+FZ5b4MjzVtzhkb+FQBUPE9YbxHEjbX2e+Z/5Tu+Ij+oMwSukzHrBlXQAcAPUaxlFf80pe71dhbKp+iS99A==","mode":420,"size":2456},"lib/xterm-colors.js":{"checkedAt":1678883668431,"integrity":"sha512-UcDTfVjeOWSfa8Smf8E8IDNtIfez28FRdIpRW+U9zHI3mPPxqP7tNXPbPk5YVB4ECqmtVRmgwGLnkymH0jM3wQ==","mode":420,"size":2625},"CHANGELOG.md":{"checkedAt":1678883668431,"integrity":"sha512-7UVh0RLOiQcid2HDR2qY0394Yjgg+d7+bRhwlX86ETnwgtbfBdlHXPUIrinX0stG+PddocCOTM/Ul8BR4okKKg==","mode":420,"size":1893},"README.md":{"checkedAt":1678883668439,"integrity":"sha512-YiHmHqXfW15xQsfE6u2TOubrD2QQrNrLD3AKNbymxtBUgCqh8jb47j5PU7CcrBD4/kQvFsiPU/X+ekyM4jm7hg==","mode":420,"size":10990}}}

View File

@@ -0,0 +1,20 @@
export type ResponseHeaders = {
"cache-control"?: string;
"content-length"?: number;
"content-type"?: string;
date?: string;
etag?: string;
"last-modified"?: string;
link?: string;
location?: string;
server?: string;
status?: string;
vary?: string;
"x-github-mediatype"?: string;
"x-github-request-id"?: string;
"x-oauth-scopes"?: string;
"x-ratelimit-limit"?: string;
"x-ratelimit-remaining"?: string;
"x-ratelimit-reset"?: string;
[header: string]: string | number | undefined;
};

View File

@@ -0,0 +1,12 @@
import assertString from './util/assertString'; // Accepted chars - 123456789ABCDEFGH JKLMN PQRSTUVWXYZabcdefghijk mnopqrstuvwxyz
var base58Reg = /^[A-HJ-NP-Za-km-z1-9]*$/;
export default function isBase58(str) {
assertString(str);
if (base58Reg.test(str)) {
return true;
}
return false;
}

View File

@@ -0,0 +1,14 @@
import { TimestampProvider } from '../types';
interface PerformanceTimestampProvider extends TimestampProvider {
delegate: TimestampProvider | undefined;
}
export const performanceTimestampProvider: PerformanceTimestampProvider = {
now() {
// Use the variable rather than `this` so that the function can be called
// without being bound to the provider.
return (performanceTimestampProvider.delegate || performance).now();
},
delegate: undefined,
};

View File

@@ -0,0 +1,34 @@
import type { FileLike } from "../FileLike.js";
/**
* Check if given object is `File`.
*
* Note that this function will return `false` for Blob, because the FormDataEncoder expects FormData to return File when a value is binary data.
*
* @param value an object to test
*
* @api public
*
* This function will return `true` for FileAPI compatible `File` objects:
*
* ```
* import {createReadStream} from "node:fs"
*
* import {isFile} from "form-data-encoder"
*
* isFile(new File(["Content"], "file.txt")) // -> true
* ```
*
* However, if you pass a Node.js `Buffer` or `ReadStream`, it will return `false`:
*
* ```js
* import {isFile} from "form-data-encoder"
*
* isFile(Buffer.from("Content")) // -> false
* isFile(createReadStream("path/to/a/file.txt")) // -> false
* ```
*/
export declare const isFile: (value: unknown) => value is FileLike;
/**
* @deprecated use `isFile` instead
*/
export declare const isFileLike: (value: unknown) => value is FileLike;

View File

@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('trimCharsEnd', require('../trimEnd'));
func.placeholder = require('./placeholder');
module.exports = func;

View File

@@ -0,0 +1,102 @@
<!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></td><td class="line-coverage quiet"><span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span>
<span class="cline-any cline-no">0</span></td><td class="text"><pre class="prettyprint lang-js">Unable to lookup source: /Users/kxiang/work/projects/csv2json/libs/core/defParam.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/defParam.js')
Error: Unable to lookup source: /Users/kxiang/work/projects/csv2json/libs/core/defParam.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/defParam.js')
at Context.defaultSourceLookup [as sourceFinder] (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/context.js:15:15)
at Context.getSource (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/context.js:74:17)
at Object.annotateSourceCode (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:172:38)
at HtmlReport.onDetail (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-reports/lib/html/index.js:237:39)
at Visitor.(anonymous function) [as onDetail] (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:34:30)
at ReportNode.Node.visit (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:123:17)
at /Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:116:23
at Array.forEach (native)
at visitChildren (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:115:32)
at ReportNode.Node.visit (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:126:5)</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri May 11 2018 21:36:07 GMT+0100 (IST)
</div>
</div>
<script src="../../../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../../../sorter.js"></script>
<script src="../../../block-navigation.js"></script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
import { EndpointInterface } from "@octokit/types";
export default function fetchWrapper(requestOptions: ReturnType<EndpointInterface> & {
redirect?: "error" | "follow" | "manual";
}): Promise<{
status: number;
url: string;
headers: {
[header: string]: string;
};
data: any;
}>;

View File

@@ -0,0 +1,62 @@
'use strict';
module.exports = balanced;
function balanced(a, b, str) {
if (a instanceof RegExp) a = maybeMatch(a, str);
if (b instanceof RegExp) b = maybeMatch(b, str);
var r = range(a, b, str);
return r && {
start: r[0],
end: r[1],
pre: str.slice(0, r[0]),
body: str.slice(r[0] + a.length, r[1]),
post: str.slice(r[1] + b.length)
};
}
function maybeMatch(reg, str) {
var m = str.match(reg);
return m ? m[0] : null;
}
balanced.range = range;
function range(a, b, str) {
var begs, beg, left, right, result;
var ai = str.indexOf(a);
var bi = str.indexOf(b, ai + 1);
var i = ai;
if (ai >= 0 && bi > 0) {
if(a===b) {
return [ai, bi];
}
begs = [];
left = str.length;
while (i >= 0 && !result) {
if (i == ai) {
begs.push(i);
ai = str.indexOf(a, i + 1);
} else if (begs.length == 1) {
result = [ begs.pop(), bi ];
} else {
beg = begs.pop();
if (beg < left) {
left = beg;
right = bi;
}
bi = str.indexOf(b, i + 1);
}
i = ai < bi && ai >= 0 ? ai : bi;
}
if (begs.length) {
result = [ left, right ];
}
}
return result;
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"DefaultNumberOption.d.ts","sourceRoot":"","sources":["../../../../../../packages/ecma402-abstract/DefaultNumberOption.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,MAAM,EACX,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACf,MAAM,CAAA"}

View File

@@ -0,0 +1,22 @@
import assertString from './util/assertString';
import merge from './util/merge';
var lat = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/;
var _long = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/;
var latDMS = /^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i;
var longDMS = /^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i;
var defaultLatLongOptions = {
checkDMS: false
};
export default function isLatLong(str, options) {
assertString(str);
options = merge(options, defaultLatLongOptions);
if (!str.includes(',')) return false;
var pair = str.split(',');
if (pair[0].startsWith('(') && !pair[1].endsWith(')') || pair[1].endsWith(')') && !pair[0].startsWith('(')) return false;
if (options.checkDMS) {
return latDMS.test(pair[0]) && longDMS.test(pair[1]);
}
return lat.test(pair[0]) && _long.test(pair[1]);
}

View File

@@ -0,0 +1,7 @@
Copyright 2017 Christian Kaisermann <christian@kaisermann.me>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,505 @@
### Changelog
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
#### [v2.4.0](https://github.com/cookpete/auto-changelog/compare/v2.3.0...v2.4.0)
- Logical handling of --starting-version [`#227`](https://github.com/cookpete/auto-changelog/pull/227)
- Trim commit subject [`#225`](https://github.com/cookpete/auto-changelog/pull/225)
- feat(commits.js): added niceDate format of commits [`#206`](https://github.com/cookpete/auto-changelog/pull/206)
- Logical handling of --starting-version (#227) [`#221`](https://github.com/cookpete/auto-changelog/issues/221)
- Add ending-version option [`#209`](https://github.com/cookpete/auto-changelog/issues/209)
- Do not sort tags when sorting via --append-git-tag [`#197`](https://github.com/cookpete/auto-changelog/issues/197) [`#210`](https://github.com/cookpete/auto-changelog/pull/210)
- Bump packages [`9d271fc`](https://github.com/cookpete/auto-changelog/commit/9d271fc5cad1f8ab19c4fd9210f3a78ca52faf25)
- yarn upgrade [`c227823`](https://github.com/cookpete/auto-changelog/commit/c2278230c5c1bc0b0491cf0f5da35b9e33c7384b)
- --ending-version fixes [`dbd36d5`](https://github.com/cookpete/auto-changelog/commit/dbd36d52f3ecb32d71af54be9b3167ade89301f1)
#### [v2.3.0](https://github.com/cookpete/auto-changelog/compare/v2.2.1...v2.3.0)
> 23 May 2021
- feat: add support for minor/preminor versions for custom templates [`#185`](https://github.com/cookpete/auto-changelog/pull/185)
- Feat: add sortCommits by subject and subject-desc [`#186`](https://github.com/cookpete/auto-changelog/pull/186)
- Remove --sort=-creatordate from git tag logic [`#196`](https://github.com/cookpete/auto-changelog/issues/196)
- Add --append-git-tag [`#190`](https://github.com/cookpete/auto-changelog/issues/190)
- Add --hide-empty-releases [`#189`](https://github.com/cookpete/auto-changelog/issues/189)
- Add --starting-date [`#181`](https://github.com/cookpete/auto-changelog/issues/181)
- Support absolute paths for --handlebars-setup [`#180`](https://github.com/cookpete/auto-changelog/issues/180)
- Fix unreleased version diff [`#174`](https://github.com/cookpete/auto-changelog/issues/174)
- Fix v prefix logic [`#33`](https://github.com/cookpete/auto-changelog/issues/33)
- Fix getSubject edge case [`#179`](https://github.com/cookpete/auto-changelog/pull/179) [`#184`](https://github.com/cookpete/auto-changelog/issues/184)
- Apply ignoreCommitPattern earlier in the parsing logic [`#195`](https://github.com/cookpete/auto-changelog/issues/195) [`#187`](https://github.com/cookpete/auto-changelog/issues/187)
- Add minor boolean to test data [`a80e311`](https://github.com/cookpete/auto-changelog/commit/a80e311601107a76b6ee98487ee07c0c90655dd8)
- Remove unused sortTags syntax [`1b29530`](https://github.com/cookpete/auto-changelog/commit/1b2953092c6248520d8d66e52a96e3cf69016a20)
- Remove lodash.uniqby [`26e7d9c`](https://github.com/cookpete/auto-changelog/commit/26e7d9caeb685a0b6c745b68e9b5ac0639e3c75f)
#### [v2.2.1](https://github.com/cookpete/auto-changelog/compare/v2.2.0...v2.2.1)
> 18 September 2020
- Remove requirement for --latest-version to be valid semver [`#178`](https://github.com/CookPete/auto-changelog/issues/178)
- Mild refactor [`1fc916c`](https://github.com/cookpete/auto-changelog/commit/1fc916c293821eafc0a4a835313c9edca19828a2)
#### [v2.2.0](https://github.com/cookpete/auto-changelog/compare/v2.1.0...v2.2.0)
> 3 July 2020
- add --prepend option as altenative to prepend-token [`#172`](https://github.com/cookpete/auto-changelog/pull/172)
- Fix bug when no existing tags [`#170`](https://github.com/CookPete/auto-changelog/issues/170)
#### [v2.1.0](https://github.com/cookpete/auto-changelog/compare/v2.0.0...v2.1.0)
> 14 June 2020
- Add --hide-credit option [`#166`](https://github.com/CookPete/auto-changelog/issues/166)
- Add --unreleased-only option [`#165`](https://github.com/CookPete/auto-changelog/issues/165)
- Fix --starting-version [`#164`](https://github.com/CookPete/auto-changelog/issues/164)
- Add ability to prepend to an existing changelog [`#156`](https://github.com/CookPete/auto-changelog/issues/156)
- Use tag date rather than first commit date [`#162`](https://github.com/CookPete/auto-changelog/issues/162)
- Add CONTRIBUTING.md [`#141`](https://github.com/CookPete/auto-changelog/issues/141)
- Add merge and fix support to commit-list helper [`#146`](https://github.com/CookPete/auto-changelog/issues/146)
### [v2.0.0](https://github.com/cookpete/auto-changelog/compare/v1.16.4...v2.0.0)
> 10 April 2020
- Refactor codebase [`#144`](https://github.com/cookpete/auto-changelog/pull/144)
- **Breaking change:** Remove the need for core-js and building with babel [`2383380`](https://github.com/cookpete/auto-changelog/commit/23833803c4d4652a139a43bb5b6767adc604988b)
- **Breaking change:** Refactor git data fetching logic [`09325ac`](https://github.com/cookpete/auto-changelog/commit/09325aca59fff94aae0b5f457311fca1956276ac)
- Improve progress output [`a2ba4ac`](https://github.com/cookpete/auto-changelog/commit/a2ba4ac01d6dff2b2b08ac6262ffc0bbd4afdb83)
#### [v1.16.4](https://github.com/cookpete/auto-changelog/compare/v1.16.3...v1.16.4)
> 2 April 2020
- Pin semver to v6 [`#160`](https://github.com/CookPete/auto-changelog/issues/160)
- Add node 12 to travis builds [`ac77a53`](https://github.com/cookpete/auto-changelog/commit/ac77a537e9db115317ca0a53c68e11b5968763d4)
- Remove node 8 from travis builds [`e7d557d`](https://github.com/cookpete/auto-changelog/commit/e7d557d02d61c955194da95cee6cc3390b529791)
#### [v1.16.3](https://github.com/cookpete/auto-changelog/compare/v1.16.2...v1.16.3)
> 25 March 2020
- Bump handlebars from 4.1.2 to 4.3.0 [`#147`](https://github.com/cookpete/auto-changelog/pull/147)
- Bump packages [`1ced7a8`](https://github.com/cookpete/auto-changelog/commit/1ced7a8017319643be3b41847fe14c3195b88256)
- Add FUNDING.yml [`107445f`](https://github.com/cookpete/auto-changelog/commit/107445f3739cecb8061422c000be522d6e250867)
#### [v1.16.2](https://github.com/cookpete/auto-changelog/compare/v1.16.1...v1.16.2)
> 29 October 2019
- fix parsing of --issue-url and -i options [`#138`](https://github.com/cookpete/auto-changelog/pull/138)
- Use noEscape option rather than triple brackets everywhere [`#131`](https://github.com/CookPete/auto-changelog/issues/131) [`#133`](https://github.com/CookPete/auto-changelog/pull/133)
#### [v1.16.1](https://github.com/cookpete/auto-changelog/compare/v1.16.0...v1.16.1)
> 4 September 2019
- Encode &lt; and &gt; in commit messages [`#129`](https://github.com/CookPete/auto-changelog/issues/129)
- Update test data generation [`c2c9bd8`](https://github.com/cookpete/auto-changelog/commit/c2c9bd82ab1857009b8e4e5bcb514312fdd43975)
- Refactor release parsing [`b1ab27e`](https://github.com/cookpete/auto-changelog/commit/b1ab27e258c4b2b4f0f2bea2f0fe8d9a2f66926e)
- Add HTML characters to test data [`b4eb7d7`](https://github.com/cookpete/auto-changelog/commit/b4eb7d7bdd1187a13b89db20f56a6acde0b1b8e5)
#### [v1.16.0](https://github.com/cookpete/auto-changelog/compare/v1.15.0...v1.16.0)
> 31 August 2019
- Add --commit-url, --merge-url and --compare-url options [`#93`](https://github.com/CookPete/auto-changelog/issues/93)
- Bump packages [`84a1bda`](https://github.com/cookpete/auto-changelog/commit/84a1bdadc21926b16df39886c2f2d799a92bd64f)
- Update readme [`a04c0ff`](https://github.com/cookpete/auto-changelog/commit/a04c0ff7a894aaf55627ba6decb8f7e07aea7479)
- Lint fixes [`7d3c25a`](https://github.com/cookpete/auto-changelog/commit/7d3c25afad1f49da8bb38df915f2430514da2d53)
#### [v1.15.0](https://github.com/cookpete/auto-changelog/compare/v1.14.1...v1.15.0)
> 13 August 2019
- Add --config option [`#127`](https://github.com/CookPete/auto-changelog/issues/127)
- Infer semver versions from numeric tags [`#126`](https://github.com/CookPete/auto-changelog/issues/126)
#### [v1.14.1](https://github.com/cookpete/auto-changelog/compare/v1.14.0...v1.14.1)
> 8 July 2019
- Add regenerator-runtime dependency [`#125`](https://github.com/CookPete/auto-changelog/issues/125)
#### [v1.14.0](https://github.com/cookpete/auto-changelog/compare/v1.13.0...v1.14.0)
> 7 July 2019
- Update babel/rimraf/nyc [`#122`](https://github.com/cookpete/auto-changelog/pull/122)
- HTTPS links to external sites [`#120`](https://github.com/cookpete/auto-changelog/pull/120)
- Add support for alternate date sorting [`#113`](https://github.com/cookpete/auto-changelog/pull/113)
- fix for handlebars-setup arg [`#110`](https://github.com/cookpete/auto-changelog/pull/110)
- Add --append-git-log option [`#118`](https://github.com/CookPete/auto-changelog/pull/118) [`#117`](https://github.com/CookPete/auto-changelog/issues/117)
- Update test data [`bb3a347`](https://github.com/cookpete/auto-changelog/commit/bb3a3475bc0c5d394727cec62486df0f5dcff9e1)
- Add commit object to merge data [`2a8de35`](https://github.com/cookpete/auto-changelog/commit/2a8de35e56e7cf43056c0f1850976699957664e1)
- Fix commander argument syntax [`01739fe`](https://github.com/cookpete/auto-changelog/commit/01739fea2accc264bde29be99b53c827f44ba1e9)
#### [v1.13.0](https://github.com/cookpete/auto-changelog/compare/v1.12.1...v1.13.0)
> 16 April 2019
- Support partial semver tag sorting [`#94`](https://github.com/CookPete/auto-changelog/issues/94)
- Update --package option to accept file path [`#106`](https://github.com/CookPete/auto-changelog/issues/106)
- Tidy up getOptions [`0168216`](https://github.com/cookpete/auto-changelog/commit/0168216be9976d918ca4f64168d7c8db53cc9cb8)
- Tidy up readJson util [`36bfd9e`](https://github.com/cookpete/auto-changelog/commit/36bfd9e89f3a9f9d40aa54765141e1be70d8ff06)
- Space out error logs [`2bc35ce`](https://github.com/cookpete/auto-changelog/commit/2bc35ce4e57f68990a69f2c2846610015330a50f)
#### [v1.12.1](https://github.com/cookpete/auto-changelog/compare/v1.12.0...v1.12.1)
> 11 April 2019
- Change behaviour of ignoreCommitPattern to see tags on ignored commits [`#102`](https://github.com/cookpete/auto-changelog/pull/102)
- Bump packages [`b371147`](https://github.com/cookpete/auto-changelog/commit/b371147dea0b483663a040b69e4193944b951b51)
- Remove greenkeeper [`b0841c8`](https://github.com/cookpete/auto-changelog/commit/b0841c8a6af737ea0ca3c00a98015b10fdd0821a)
#### [v1.12.0](https://github.com/cookpete/auto-changelog/compare/v1.11.0...v1.12.0)
> 18 March 2019
- Add main entry to package.json [`#87`](https://github.com/cookpete/auto-changelog/pull/87)
- Update mocha to the latest version 🚀 [`#88`](https://github.com/cookpete/auto-changelog/pull/88)
- Add --merge-pattern option [`#86`](https://github.com/cookpete/auto-changelog/pull/86)
- yarn upgrade [`#91`](https://github.com/CookPete/auto-changelog/pull/91)
- Add --handlebars-setup option [`#96`](https://github.com/CookPete/auto-changelog/issues/96) [`#89`](https://github.com/CookPete/auto-changelog/issues/89) [`#90`](https://github.com/CookPete/auto-changelog/pull/90)
- Add --sort-commits option [`#95`](https://github.com/CookPete/auto-changelog/issues/95) [`#97`](https://github.com/CookPete/auto-changelog/pull/97)
#### [v1.11.0](https://github.com/cookpete/auto-changelog/compare/v1.10.3...v1.11.0)
> 14 January 2019
- Add --stdout option [`#83`](https://github.com/CookPete/auto-changelog/issues/83)
- Fix sortReleases for non-semver tags [`#81`](https://github.com/CookPete/auto-changelog/issues/81)
- Add backtick characters to test data [`ab73c8a`](https://github.com/cookpete/auto-changelog/commit/ab73c8a265b93992fa61999dde8962e61ef60c64)
#### [v1.10.3](https://github.com/cookpete/auto-changelog/compare/v1.10.2...v1.10.3)
> 4 January 2019
- Clarify includeBranch config array in readme [`#75`](https://github.com/CookPete/auto-changelog/issues/75)
- Remove package-lock.json from repo [`512205b`](https://github.com/cookpete/auto-changelog/commit/512205b1a028d3ded629c84d475a15fc2e44163c)
- Sort and slice commits for latest release [`7d7f377`](https://github.com/cookpete/auto-changelog/commit/7d7f377c17384b8b80c71ffb9bcd2900640255e3)
- Fix breaking commit sorting [`73c05a1`](https://github.com/cookpete/auto-changelog/commit/73c05a1f3218dccc9a7e9f46577c45fb1af986e3)
#### [v1.10.2](https://github.com/cookpete/auto-changelog/compare/v1.10.1...v1.10.2)
> 18 November 2018
- Upgrade all packages [`#59`](https://github.com/CookPete/auto-changelog/pull/59)
- Remove package-lock.json [`791a261`](https://github.com/cookpete/auto-changelog/commit/791a2617361657630e389b09e193ca57c237623d)
#### [v1.10.1](https://github.com/cookpete/auto-changelog/compare/v1.10.0...v1.10.1)
> 13 November 2018
- Use readline for log util [`#73`](https://github.com/CookPete/auto-changelog/issues/73) [`#74`](https://github.com/CookPete/auto-changelog/issues/74)
#### [v1.10.0](https://github.com/cookpete/auto-changelog/compare/v1.9.0...v1.10.0)
> 10 November 2018
- Update tests [`644f5d8`](https://github.com/cookpete/auto-changelog/commit/644f5d8a79042431c0a89f99866034ac124cce56)
- Add better progress logging [`64ebb30`](https://github.com/cookpete/auto-changelog/commit/64ebb30b8e979afa028ec2b147405b3cbf854e36)
- Add --backfill-limit option [`5240b1e`](https://github.com/cookpete/auto-changelog/commit/5240b1e5298a2a0bef405100ab03636b491306c0)
#### [v1.9.0](https://github.com/cookpete/auto-changelog/compare/v1.8.1...v1.9.0)
> 8 November 2018
- Add support for azure devops and visualstudio.com [`#72`](https://github.com/cookpete/auto-changelog/pull/72)
- Bump packages [`#56`](https://github.com/CookPete/auto-changelog/pull/56) [`#60`](https://github.com/CookPete/auto-changelog/pull/60) [`#61`](https://github.com/CookPete/auto-changelog/pull/61)
- Add --tag-pattern option [`#70`](https://github.com/CookPete/auto-changelog/pull/70)
- Add support for .auto-changelog config [`#66`](https://github.com/CookPete/auto-changelog/pull/66)
- Add --release-summary option [`#69`](https://github.com/CookPete/auto-changelog/issues/69)
- Add tests for `.auto-changelog` feature [`17b0926`](https://github.com/cookpete/auto-changelog/commit/17b09269fa5603e0be7f5ffe5ce67996f7cf4176)
- Add tests for sortReleases [`9d80b9d`](https://github.com/cookpete/auto-changelog/commit/9d80b9d8a7dfcb5f0db37dad1fa8757e3124c564)
- Fix quote style [`5c18eda`](https://github.com/cookpete/auto-changelog/commit/5c18edaebff560e3e982a8d58ee7473f24b6be24)
#### [v1.8.1](https://github.com/cookpete/auto-changelog/compare/v1.8.0...v1.8.1)
> 8 October 2018
- Fix Bitbucket compare links. [`#65`](https://github.com/cookpete/auto-changelog/pull/65)
- Update markdownlint-cli to the latest version 🚀 [`#54`](https://github.com/cookpete/auto-changelog/pull/54)
- Update markdownlint-cli to the latest version 🚀 [`#51`](https://github.com/cookpete/auto-changelog/pull/51)
- Add author to fixes and merges [`#58`](https://github.com/CookPete/auto-changelog/issues/58)
- Remove unsupported node versions from travis builds [`df63917`](https://github.com/cookpete/auto-changelog/commit/df63917391f3b30ceaa13a774b05889e659e4dd4)
- Add timeout to URL fetching test [`d635a06`](https://github.com/cookpete/auto-changelog/commit/d635a06cf9e544fd4b11a9f6eed0fbdc597d41ea)
- Add node 6.0 to travis builds [`088077e`](https://github.com/cookpete/auto-changelog/commit/088077e51fe581d41dfeb56b009845be9d9e3c65)
#### [v1.8.0](https://github.com/cookpete/auto-changelog/compare/v1.7.2...v1.8.0)
> 23 July 2018
- Add support for external templates [`#49`](https://github.com/CookPete/auto-changelog/issues/49) [`#50`](https://github.com/CookPete/auto-changelog/pull/50)
- Bump nyc [`#46`](https://github.com/CookPete/auto-changelog/pull/46)
- Add README.md to lint checks [`5aab29f`](https://github.com/cookpete/auto-changelog/commit/5aab29f18d4187fa2480cd7754eba8e579ea0534)
- Tweak readme headings [`9f08899`](https://github.com/cookpete/auto-changelog/commit/9f08899466ccc515609456192e15d60c60db411b)
- Remove git from engines [`bac0248`](https://github.com/cookpete/auto-changelog/commit/bac024828c93587ea4603865e5946382f9e88070)
#### [v1.7.2](https://github.com/cookpete/auto-changelog/compare/v1.7.1...v1.7.2)
> 28 June 2018
- Fix releases sorting when unreleased enabled [`#45`](https://github.com/cookpete/auto-changelog/pull/45)
- Fix unreleased section sorting [`#48`](https://github.com/CookPete/auto-changelog/issues/48)
- Add markdown linting [`#47`](https://github.com/CookPete/auto-changelog/issues/47)
- Use async fs utils instead of fs-extra [`#42`](https://github.com/CookPete/auto-changelog/pull/42)
- Update git log format to support earlier git versions [`#43`](https://github.com/CookPete/auto-changelog/issues/43)
- Fix changelog spacing [`5e8ffe5`](https://github.com/cookpete/auto-changelog/commit/5e8ffe564b2752f4f1828d64174cc784f6168fdf)
- Use %B for supported git versions [`1b9c3d7`](https://github.com/cookpete/auto-changelog/commit/1b9c3d71732244b6a2c265dae9aae879bd5f33b2)
- Enable partial line coverage with codecov [`e0d24de`](https://github.com/cookpete/auto-changelog/commit/e0d24debb40967014aea1bcc1738bbc1d0279ba2)
#### [v1.7.1](https://github.com/cookpete/auto-changelog/compare/v1.7.0...v1.7.1)
> 31 May 2018
- Use async fs utils instead of fs-extra [`#42`](https://github.com/CookPete/auto-changelog/pull/42)
- Update git log format to support earlier git versions [`#43`](https://github.com/CookPete/auto-changelog/issues/43)
#### [v1.7.0](https://github.com/cookpete/auto-changelog/compare/v1.6.0...v1.7.0)
> 23 May 2018
- Add replaceText package option [`77d73ee`](https://github.com/cookpete/auto-changelog/commit/77d73ee4a44d5d207ba0982bf1e27812739d542a)
#### [v1.6.0](https://github.com/cookpete/auto-changelog/compare/v1.5.0...v1.6.0)
> 17 May 2018
- Add --breaking-pattern option [`#41`](https://github.com/CookPete/auto-changelog/issues/41)
- Add --include-branch option [`#38`](https://github.com/CookPete/auto-changelog/issues/38)
- Fix duplicate test data commit hashes [`7f448ce`](https://github.com/cookpete/auto-changelog/commit/7f448ce7154e7da4d677aa4c96a2721499436edb)
#### [v1.5.0](https://github.com/cookpete/auto-changelog/compare/v1.4.6...v1.5.0)
> 16 May 2018
- Feat: match template helper [`#40`](https://github.com/cookpete/auto-changelog/pull/40)
- Add commit-list template helper [`#36`](https://github.com/cookpete/auto-changelog/issues/36) [`#39`](https://github.com/cookpete/auto-changelog/issues/39)
- Use UTC dates by default [`#37`](https://github.com/CookPete/auto-changelog/issues/37)
- Move helper tests to separate files [`71388c2`](https://github.com/cookpete/auto-changelog/commit/71388c2dca9d9d50df540f904de5b3c0c0fea86a)
- Remove unused imports from template tests [`5ca7c61`](https://github.com/cookpete/auto-changelog/commit/5ca7c619dd9f8ca02cdcb67469025f71ab10cc2f)
#### [v1.4.6](https://github.com/cookpete/auto-changelog/compare/v1.4.5...v1.4.6)
> 15 March 2018
- Added support for old git versions [`#35`](https://github.com/cookpete/auto-changelog/pull/35)
#### [v1.4.5](https://github.com/cookpete/auto-changelog/compare/v1.4.4...v1.4.5)
> 27 February 2018
- Correctly prefix package version [`#33`](https://github.com/CookPete/auto-changelog/issues/33)
#### [v1.4.4](https://github.com/cookpete/auto-changelog/compare/v1.4.3...v1.4.4)
> 22 February 2018
- Do not show date for unreleased section [`#31`](https://github.com/CookPete/auto-changelog/issues/31)
- Fix unreleased compare URL [`24fbc63`](https://github.com/cookpete/auto-changelog/commit/24fbc63adfad6df630d496d7cf1c488d97189dfe)
#### [v1.4.3](https://github.com/cookpete/auto-changelog/compare/v1.4.2...v1.4.3)
> 21 February 2018
- Add tag prefix to compare URLs [`#30`](https://github.com/CookPete/auto-changelog/issues/30)
#### [v1.4.2](https://github.com/cookpete/auto-changelog/compare/v1.4.1...v1.4.2)
> 20 February 2018
- Support for gitlab subgroups and self-hosted instances [`#28`](https://github.com/cookpete/auto-changelog/pull/28)
- Update standard to the latest version 🚀 [`#29`](https://github.com/cookpete/auto-changelog/pull/29)
#### [v1.4.1](https://github.com/cookpete/auto-changelog/compare/v1.4.0...v1.4.1)
> 30 January 2018
- Support commits with no message [`#27`](https://github.com/CookPete/auto-changelog/issues/27)
#### [v1.4.0](https://github.com/cookpete/auto-changelog/compare/v1.3.0...v1.4.0)
> 18 January 2018
- Update mocha to the latest version 🚀 [`#26`](https://github.com/cookpete/auto-changelog/pull/26)
- Add support for generating logs without a git remote [`#23`](https://github.com/CookPete/auto-changelog/issues/23)
- Update niceDate tests to avoid timezone issues [`#24`](https://github.com/CookPete/auto-changelog/issues/24) [`#25`](https://github.com/CookPete/auto-changelog/pull/25)
- Add --tag-prefix option [`#22`](https://github.com/CookPete/auto-changelog/issues/22)
- Change use of "origin" to "remote" [`7c9c175`](https://github.com/cookpete/auto-changelog/commit/7c9c1757257be10e3beae072941d119d195becd7)
- Add --ignore-commit-pattern option [`8cbe121`](https://github.com/cookpete/auto-changelog/commit/8cbe121e857b8d99361e65fa462d035610f741c9)
- Add merge commit to test data [`4462118`](https://github.com/cookpete/auto-changelog/commit/4462118a26b5d76b276c8e1ba938f5c7d4458572)
#### [v1.3.0](https://github.com/cookpete/auto-changelog/compare/v1.2.2...v1.3.0)
> 21 December 2017
- Update fs-extra to the latest version 🚀 [`#19`](https://github.com/cookpete/auto-changelog/pull/19)
- Add --starting-commit option [`#21`](https://github.com/CookPete/auto-changelog/issues/21)
- Add --issue-pattern option [`#18`](https://github.com/CookPete/auto-changelog/issues/18)
- Add --latest-version option [`#17`](https://github.com/CookPete/auto-changelog/issues/17)
- Override package options with command line options [`20e3962`](https://github.com/cookpete/auto-changelog/commit/20e3962175c8168ec5494d1527b16e996e113777)
- Update tests [`2a74da4`](https://github.com/cookpete/auto-changelog/commit/2a74da474c3366f740cedb1c31a9c2539a1c9261)
#### [v1.2.2](https://github.com/cookpete/auto-changelog/compare/v1.2.1...v1.2.2)
> 5 December 2017
- Fix error when using --unreleased flag [`#16`](https://github.com/CookPete/auto-changelog/issues/16)
#### [v1.2.1](https://github.com/cookpete/auto-changelog/compare/v1.2.0...v1.2.1)
> 4 December 2017
- Filter out merge commits [`#14`](https://github.com/CookPete/auto-changelog/pull/14)
- Add commit to test data to trigger sorting [`9aa7ed4`](https://github.com/cookpete/auto-changelog/commit/9aa7ed493138286134a18a018d77ac7f5a11fc43)
- Add tests [`02613a3`](https://github.com/cookpete/auto-changelog/commit/02613a36e1071fb64a9d1251e4dae6d683a5b845)
- Add commit with matching PR message to test data [`e9a43b2`](https://github.com/cookpete/auto-changelog/commit/e9a43b2bf50449fc0d84465308e6008cc1597bb3)
#### [v1.2.0](https://github.com/cookpete/auto-changelog/compare/v1.1.0...v1.2.0)
> 1 December 2017
- Add issue-url option to override issue URLs [`#13`](https://github.com/CookPete/auto-changelog/issues/13)
- Add major release to test data [`e14f753`](https://github.com/cookpete/auto-changelog/commit/e14f753fc39fb94f3a3ffc3ab9a41015a9b97f2f)
- Update readme [`aaa69d0`](https://github.com/cookpete/auto-changelog/commit/aaa69d096cbf289e5fa086bbbd04e3ec27bcb7a4)
- Slightly larger heading for major releases [`d618f01`](https://github.com/cookpete/auto-changelog/commit/d618f019abc59da903cbafaa49ac9731e815b95a)
#### [v1.1.0](https://github.com/cookpete/auto-changelog/compare/v1.0.3...v1.1.0)
> 9 November 2017
- Support modifying commit limit with --commit-limit [`#12`](https://github.com/cookpete/auto-changelog/pull/12)
- Move test origins to separate file [`f8b98b5`](https://github.com/cookpete/auto-changelog/commit/f8b98b536612a89c0f93eb6451be90d857468eac)
- Add origin tests [`f50dced`](https://github.com/cookpete/auto-changelog/commit/f50dced289d3780726b67abfba3359c6b83c6ca7)
- Add run tests [`a6ae95e`](https://github.com/cookpete/auto-changelog/commit/a6ae95ec1045dbb76540dde63cafa4fbaa0fc030)
#### [v1.0.3](https://github.com/cookpete/auto-changelog/compare/v1.0.2...v1.0.3)
> 7 November 2017
- Fix pull request URL [`3f6daaa`](https://github.com/cookpete/auto-changelog/commit/3f6daaa35b3da08bafec0ef9229cb4b09bc1c9cb)
- Bump packages [`510c798`](https://github.com/cookpete/auto-changelog/commit/510c798fe6bb688234bb8b4eb3885055a47ee2bb)
- Fix version script [`f849dac`](https://github.com/cookpete/auto-changelog/commit/f849dac557b2c24512c553d9fccb93e1455a8c2e)
#### [v1.0.2](https://github.com/cookpete/auto-changelog/compare/v1.0.1...v1.0.2)
> 31 October 2017
- Tweak package read logic [`5ca75a2`](https://github.com/cookpete/auto-changelog/commit/5ca75a2a051a496fe7899185d486dc6447a44d7a)
- Fall back to https origin protocol [`74e29b4`](https://github.com/cookpete/auto-changelog/commit/74e29b4c40a8522a8aa33b6b66e845859dbcde1d)
#### [v1.0.1](https://github.com/cookpete/auto-changelog/compare/v1.0.0...v1.0.1)
> 27 October 2017
- Filter out commits with the same message as an existing merge [`2a420f7`](https://github.com/cookpete/auto-changelog/commit/2a420f793ac3b761291cfd5499676a80953cbee7)
- Update readme [`54fc665`](https://github.com/cookpete/auto-changelog/commit/54fc6659e9283b6d6afc95486893aa56df13111c)
### [v1.0.0](https://github.com/cookpete/auto-changelog/compare/v0.3.6...v1.0.0)
> 27 October 2017
- Update dependencies to enable Greenkeeper 🌴 [`#10`](https://github.com/cookpete/auto-changelog/pull/10)
- Refactor codebase [`dab29fb`](https://github.com/cookpete/auto-changelog/commit/dab29fb3a030ffe2799075ef46c70c734d8d2b89)
- Add greenkeeper-lockfile support [`126c6fb`](https://github.com/cookpete/auto-changelog/commit/126c6fbd054c16624ab39cbb51a2eab99bc832c6)
- Tweak readme badges [`bf73f55`](https://github.com/cookpete/auto-changelog/commit/bf73f555422ef5338455182b9649badc122bdadf)
#### [v0.3.6](https://github.com/cookpete/auto-changelog/compare/v0.3.5...v0.3.6)
> 23 October 2017
- Use origin hostname instead of host [`#9`](https://github.com/CookPete/auto-changelog/issues/9)
- Correct bitbucket compare URLs [`9d34452`](https://github.com/cookpete/auto-changelog/commit/9d344527171c158e1d56fdfde5cce870c5ba84bf)
#### [v0.3.5](https://github.com/cookpete/auto-changelog/compare/v0.3.4...v0.3.5)
> 6 October 2017
- Add babel-polyfill [`#8`](https://github.com/CookPete/auto-changelog/issues/8)
#### [v0.3.4](https://github.com/cookpete/auto-changelog/compare/v0.3.3...v0.3.4)
> 5 October 2017
- Add code coverage [`786af11`](https://github.com/cookpete/auto-changelog/commit/786af11c841fe158fbb8eb3d6a0e2c0ee8b1a93a)
- Use async/await instead of promises [`dff4653`](https://github.com/cookpete/auto-changelog/commit/dff465371252ce6ab4cd05e49d4c41fd8d3bb37a)
- Remove need for array.find polyfill [`78a1cb8`](https://github.com/cookpete/auto-changelog/commit/78a1cb8ac9327ecb0efadffed037f90191bdce5a)
#### [v0.3.3](https://github.com/cookpete/auto-changelog/compare/v0.3.2...v0.3.3)
> 24 September 2017
- Bump packages [`#7`](https://github.com/CookPete/auto-changelog/issues/7)
- Use babel-preset-env [`3eb90ce`](https://github.com/cookpete/auto-changelog/commit/3eb90ce74791fa803e3013aab12d0ff3cecc403b)
- Lint fix [`67c38dd`](https://github.com/cookpete/auto-changelog/commit/67c38ddf70b7420de0a9bae061efe858e879e0b7)
#### [v0.3.2](https://github.com/cookpete/auto-changelog/compare/v0.3.1...v0.3.2)
> 14 September 2017
- Prevent duplicate commits being listed [`#3`](https://github.com/CookPete/auto-changelog/issues/3)
#### [v0.3.1](https://github.com/cookpete/auto-changelog/compare/v0.3.0...v0.3.1)
> 9 September 2016
- Improve origin URL parsing [`#2`](https://github.com/cookpete/auto-changelog/issues/2) [`#5`](https://github.com/cookpete/auto-changelog/issues/5)
- Remove semicolons [`2ff61e2`](https://github.com/cookpete/auto-changelog/commit/2ff61e2f6b415bd24cfdf1788a3a4239138e6aa2)
- More robust log separators [`adc1dcc`](https://github.com/cookpete/auto-changelog/commit/adc1dccb744335ed1b0cb52a32f23605f92bbe97)
- Improve error handling [`96b7666`](https://github.com/cookpete/auto-changelog/commit/96b7666e50126dc515bb7bf2f9a79090ad7d8806)
#### [v0.3.0](https://github.com/cookpete/auto-changelog/compare/v0.2.2...v0.3.0)
> 11 January 2016
- Add semicolons after class properties [`07b2de5`](https://github.com/cookpete/auto-changelog/commit/07b2de5131f4354565b2ba94a5fc181a1448b5c2)
- Remove unique issue filter [`11acb7e`](https://github.com/cookpete/auto-changelog/commit/11acb7e4a9f2782a95e0932917828646103bd85a)
- Add support for minimumChangeCount in templates [`612d80b`](https://github.com/cookpete/auto-changelog/commit/612d80b02cabbc2faeddd39c57bd086661932aef)
#### [v0.2.2](https://github.com/cookpete/auto-changelog/compare/v0.2.1...v0.2.2)
> 2 January 2016
- Add a commit-only release to test data [`99927a9`](https://github.com/cookpete/auto-changelog/commit/99927a9b2126e656f70964f303a477aa4a5f811b)
- Update templating logic [`12c0624`](https://github.com/cookpete/auto-changelog/commit/12c0624e7e419a70bd5f3b403d7e0bd8f23ec617)
- More sensible formatDate [`db92947`](https://github.com/cookpete/auto-changelog/commit/db92947e6129cc20cd7777b7ed90b2bd547918c0)
#### [v0.2.1](https://github.com/cookpete/auto-changelog/compare/v0.2.0...v0.2.1)
> 2 January 2016
- Replace toLocaleString usage with months array [`0008264`](https://github.com/cookpete/auto-changelog/commit/0008264bcabddf8d2b6b19fde7aa41b0de7a5b77)
#### [v0.2.0](https://github.com/cookpete/auto-changelog/compare/v0.1.1...v0.2.0)
> 2 January 2016
- Add support for specifying templates [`369b51e`](https://github.com/cookpete/auto-changelog/commit/369b51e9ff05bccba19cd09d9d519bca579bf972)
- Add FAQ to readme [`9351ad0`](https://github.com/cookpete/auto-changelog/commit/9351ad0b5f6e7f59e1b51b1c7ea1a3e7720dfbbc)
- Rearrange usage docs [`c6bfb0b`](https://github.com/cookpete/auto-changelog/commit/c6bfb0be0b429ce7f9697eb1097ec3e2288aff74)
#### [v0.1.1](https://github.com/cookpete/auto-changelog/compare/v0.1.0...v0.1.1)
> 31 December 2015
- Explicitly render links for PRs and issues [`0a384cd`](https://github.com/cookpete/auto-changelog/commit/0a384cdeb3e9c3641fc3f655b0d9aeff58f8ebd3)
- Fix --package bug [`7f12f81`](https://github.com/cookpete/auto-changelog/commit/7f12f81f06441af4c74508ccc673e7052dec8d18)
#### [v0.1.0](https://github.com/cookpete/auto-changelog/compare/v0.0.1...v0.1.0)
> 31 December 2015
- Add option for specifying output file [`#1`](https://github.com/cookpete/auto-changelog/issues/1)
- Add support for --package [`772fbb9`](https://github.com/cookpete/auto-changelog/commit/772fbb988f41d893bccd88417a2b5992543bc936)
- Update badges [`d17791f`](https://github.com/cookpete/auto-changelog/commit/d17791f478b7fc4a48877b5c79a1ce857223553a)
- Remove todo list from readme [`4446226`](https://github.com/cookpete/auto-changelog/commit/4446226048642ad19a7bfbc1c2f8040a6d15cbc3)
#### v0.0.1
> 31 December 2015
- First commit [`436b409`](https://github.com/cookpete/auto-changelog/commit/436b409bb6b3f853d14e2eda6ca1d87f78d00a14)

View File

@@ -0,0 +1 @@
export default function check_graph_for_cycles(edges: Array<[any, any]>): any[];

View File

@@ -0,0 +1,3 @@
"use strict";
module.exports = typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol";

View File

@@ -0,0 +1 @@
{"name":"mimic-fn","version":"2.1.0","files":{"license":{"checkedAt":1678883669272,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"package.json":{"checkedAt":1678883671206,"integrity":"sha512-d2gIEMWaxaKRVrzEivv6uroNpqrgD9r6NzuXzbdVEEXnGkLBywP/Q10XGhUrb326B0tOk9jwIUJ/jW6EW2hp7w==","mode":420,"size":641},"index.js":{"checkedAt":1678883671206,"integrity":"sha512-nLYudTc6nXF9OXC8RZQ3wTiwQ0CQFFOMXuinvIgZvkshGlKdGRtvLg3VlBaw6Bd6hZ3KWTNOkJ0nhX+OF7heRQ==","mode":420,"size":300},"index.d.ts":{"checkedAt":1678883671206,"integrity":"sha512-P+Cwfr1805mC+BxDydBv1u+lH5JHju98bKVXb7FA6iI+r6978DQ3+JtbfsGPLQQa16couFWvuXzlLLJnHcmPUw==","mode":420,"size":1211},"readme.md":{"checkedAt":1678883671206,"integrity":"sha512-uiZaVr+dNvRQC+lVr7BYjr+nz2cCkVLl7ZFTNycFWaohCRuzWcozH/bg9EorDeGyinbJ2q55p9eURlXQLyfXrA==","mode":420,"size":1196}}}

View File

@@ -0,0 +1,24 @@
import { AsyncScheduler } from './AsyncScheduler';
export class AsapScheduler extends AsyncScheduler {
flush(action) {
this._active = true;
const flushId = this._scheduled;
this._scheduled = undefined;
const { actions } = this;
let error;
action = action || actions.shift();
do {
if ((error = action.execute(action.state, action.delay))) {
break;
}
} while ((action = actions[0]) && action.id === flushId && actions.shift());
this._active = false;
if (error) {
while ((action = actions[0]) && action.id === flushId && actions.shift()) {
action.unsubscribe();
}
throw error;
}
}
}
//# sourceMappingURL=AsapScheduler.js.map

View File

@@ -0,0 +1,44 @@
var isArray = require('./isArray');
/**
* Casts `value` as an array if it's not one.
*
* @static
* @memberOf _
* @since 4.4.0
* @category Lang
* @param {*} value The value to inspect.
* @returns {Array} Returns the cast array.
* @example
*
* _.castArray(1);
* // => [1]
*
* _.castArray({ 'a': 1 });
* // => [{ 'a': 1 }]
*
* _.castArray('abc');
* // => ['abc']
*
* _.castArray(null);
* // => [null]
*
* _.castArray(undefined);
* // => [undefined]
*
* _.castArray();
* // => []
*
* var array = [1, 2, 3];
* console.log(_.castArray(array) === array);
* // => true
*/
function castArray() {
if (!arguments.length) {
return [];
}
var value = arguments[0];
return isArray(value) ? value : [value];
}
module.exports = castArray;

View File

@@ -0,0 +1,9 @@
import { AsyncSubject } from '../AsyncSubject';
import { ConnectableObservable } from '../observable/ConnectableObservable';
export function publishLast() {
return (source) => {
const subject = new AsyncSubject();
return new ConnectableObservable(source, () => subject);
};
}
//# sourceMappingURL=publishLast.js.map

View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 [these people](https://github.com/sveltejs/vite-plugin-svelte/graphs/contributors)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,27 @@
var baseIsMap = require('./_baseIsMap'),
baseUnary = require('./_baseUnary'),
nodeUtil = require('./_nodeUtil');
/* Node.js helper references. */
var nodeIsMap = nodeUtil && nodeUtil.isMap;
/**
* Checks if `value` is classified as a `Map` object.
*
* @static
* @memberOf _
* @since 4.3.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
* @example
*
* _.isMap(new Map);
* // => true
*
* _.isMap(new WeakMap);
* // => false
*/
var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
module.exports = isMap;

View File

@@ -0,0 +1,57 @@
import type { CreateRunnerCard } from '../models/CreateRunnerCard';
import type { ResponseEmpty } from '../models/ResponseEmpty';
import type { ResponseRunnerCard } from '../models/ResponseRunnerCard';
import type { UpdateRunnerCard } from '../models/UpdateRunnerCard';
export declare class RunnerCardService {
/**
* Get all
* Lists all card.
* @result ResponseRunnerCard
* @throws ApiError
*/
static runnerCardControllerGetAll(): Promise<Array<ResponseRunnerCard>>;
/**
* Post
* Create a new card. <br> You can provide a associated runner by id but you don't have to.
* @param requestBody CreateRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static runnerCardControllerPost(requestBody?: CreateRunnerCard): Promise<ResponseRunnerCard>;
/**
* Get one
* Lists all information about the card whose id got provided.
* @param id
* @result ResponseRunnerCard
* @throws ApiError
*/
static runnerCardControllerGetOne(id: number): Promise<ResponseRunnerCard>;
/**
* Put
* Update the card whose id you provided. <br> Scans created via this card will still be associated with the old runner. <br> Please remember that ids can't be changed.
* @param id
* @param requestBody UpdateRunnerCard
* @result ResponseRunnerCard
* @throws ApiError
*/
static runnerCardControllerPut(id: number, requestBody?: UpdateRunnerCard): Promise<ResponseRunnerCard>;
/**
* Remove
* Delete the card whose id you provided. <br> If no card with this id exists it will just return 204(no content). <br> If the card still has scans associated you have to provide the force=true query param (warning: this deletes all scans associated with by this card - please disable it instead or just remove the runner association).
* @param id
* @param force
* @result ResponseRunnerCard
* @result ResponseEmpty
* @throws ApiError
*/
static runnerCardControllerRemove(id: number, force?: boolean): Promise<ResponseRunnerCard | ResponseEmpty>;
/**
* Post blanco bulk
* Create blank cards in bulk. <br> Just provide the count as a query param and wait for the 200 response. <br> You can provide the 'returnCards' query param if you want to receive the RESPONSERUNNERCARD objects in the response.
* @param count
* @param returnCards
* @result ResponseEmpty
* @throws ApiError
*/
static runnerCardControllerPostBlancoBulk(count?: number, returnCards?: boolean): Promise<ResponseEmpty>;
}

View File

@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('functions', require('../functions'), require('./_falseOptions'));
func.placeholder = require('./placeholder');
module.exports = func;

View File

@@ -0,0 +1,26 @@
var createRound = require('./_createRound');
/**
* Computes `number` rounded to `precision`.
*
* @static
* @memberOf _
* @since 3.10.0
* @category Math
* @param {number} number The number to round.
* @param {number} [precision=0] The precision to round to.
* @returns {number} Returns the rounded number.
* @example
*
* _.round(4.006);
* // => 4
*
* _.round(4.006, 2);
* // => 4.01
*
* _.round(4060, -2);
* // => 4100
*/
var round = createRound('round');
module.exports = round;

View File

@@ -0,0 +1,3 @@
import type { Options, PreprocessorGroup } from '../types';
declare const _default: (options?: Options.Stylus) => PreprocessorGroup;
export default _default;

View File

@@ -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 set for %n, received %v" : "%v is not a set";
return resolveException(value, errorMessage, options);
};

View File

@@ -0,0 +1,141 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for csv2json/src/fileline.ts</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/src</a> fileline.ts
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>2/2</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>2/2</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>0/0</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>2/2</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 high'></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></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import { ParseRuntime } from "./ParseRuntime";
import getEol from "./getEol";
// const getEol = require("./getEol");
/**
* convert data chunk to file lines array
* @param {string} data data chunk as utf8 string
* @param {object} param Converter param object
* @return {Object} {lines:[line1,line2...],partial:String}
*/
export function stringToLines(data: string, param: ParseRuntime): StringToLinesResult {
const eol = getEol(data, param);
const lines = data.split(eol);
const partial = lines.pop() || "";
return { lines: lines, partial: partial };
};
&nbsp;
&nbsp;
export interface StringToLinesResult {
lines: Fileline[],
/**
* last line which could be incomplete line.
*/
partial: string
}
export type Fileline = string;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri May 11 2018 21:36:07 GMT+0100 (IST)
</div>
</div>
<script src="../../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../../sorter.js"></script>
<script src="../../block-navigation.js"></script>
</body>
</html>

View File

@@ -0,0 +1 @@
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/internal/config.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,IAAM,MAAM,GAAiB;IAClC,gBAAgB,EAAE,IAAI;IACtB,qBAAqB,EAAE,IAAI;IAC3B,OAAO,EAAE,SAAS;IAClB,qCAAqC,EAAE,KAAK;IAC5C,wBAAwB,EAAE,KAAK;CAChC,CAAC"}

View File

@@ -0,0 +1,215 @@
#!/usr/bin/env node
/**
* Marked CLI
* Copyright (c) 2011-2013, Christopher Jeffrey (MIT License)
*/
const fs = require('fs'),
path = require('path'),
marked = require('../');
/**
* Man Page
*/
function help() {
const spawn = require('child_process').spawn;
const options = {
cwd: process.cwd(),
env: process.env,
setsid: false,
stdio: 'inherit'
};
spawn('man', [path.resolve(__dirname, '../man/marked.1')], options)
.on('error', function() {
fs.readFile(path.resolve(__dirname, '../man/marked.1.txt'), 'utf8', function(err, data) {
if (err) throw err;
console.log(data);
});
});
}
function version() {
const pkg = require('../package.json');
console.log(pkg.version);
}
/**
* Main
*/
function main(argv, callback) {
const files = [],
options = {};
let input,
output,
string,
arg,
tokens,
opt;
function getarg() {
let arg = argv.shift();
if (arg.indexOf('--') === 0) {
// e.g. --opt
arg = arg.split('=');
if (arg.length > 1) {
// e.g. --opt=val
argv.unshift(arg.slice(1).join('='));
}
arg = arg[0];
} else if (arg[0] === '-') {
if (arg.length > 2) {
// e.g. -abc
argv = arg.substring(1).split('').map(function(ch) {
return '-' + ch;
}).concat(argv);
arg = argv.shift();
} else {
// e.g. -a
}
} else {
// e.g. foo
}
return arg;
}
while (argv.length) {
arg = getarg();
switch (arg) {
case '--test':
return require('../test').main(process.argv.slice());
case '-o':
case '--output':
output = argv.shift();
break;
case '-i':
case '--input':
input = argv.shift();
break;
case '-s':
case '--string':
string = argv.shift();
break;
case '-t':
case '--tokens':
tokens = true;
break;
case '-h':
case '--help':
return help();
case '-v':
case '--version':
return version();
default:
if (arg.indexOf('--') === 0) {
opt = camelize(arg.replace(/^--(no-)?/, ''));
if (!marked.defaults.hasOwnProperty(opt)) {
continue;
}
if (arg.indexOf('--no-') === 0) {
options[opt] = typeof marked.defaults[opt] !== 'boolean'
? null
: false;
} else {
options[opt] = typeof marked.defaults[opt] !== 'boolean'
? argv.shift()
: true;
}
} else {
files.push(arg);
}
break;
}
}
function getData(callback) {
if (!input) {
if (files.length <= 2) {
if (string) {
return callback(null, string);
}
return getStdin(callback);
}
input = files.pop();
}
return fs.readFile(input, 'utf8', callback);
}
return getData(function(err, data) {
if (err) return callback(err);
data = tokens
? JSON.stringify(marked.lexer(data, options), null, 2)
: marked(data, options);
if (!output) {
process.stdout.write(data + '\n');
return callback();
}
return fs.writeFile(output, data, callback);
});
}
/**
* Helpers
*/
function getStdin(callback) {
const stdin = process.stdin;
let buff = '';
stdin.setEncoding('utf8');
stdin.on('data', function(data) {
buff += data;
});
stdin.on('error', function(err) {
return callback(err);
});
stdin.on('end', function() {
return callback(null, buff);
});
try {
stdin.resume();
} catch (e) {
callback(e);
}
}
function camelize(text) {
return text.replace(/(\w)-(\w)/g, function(_, a, b) {
return a + b.toUpperCase();
});
}
function handleError(err) {
if (err.code === 'ENOENT') {
console.error('marked: output to ' + err.path + ': No such directory');
return process.exit(1);
}
throw err;
}
/**
* Expose / Entry Point
*/
if (!module.parent) {
process.title = 'marked';
main(process.argv.slice(), function(err, code) {
if (err) return handleError(err);
return process.exit(code || 0);
});
} else {
module.exports = main;
}

View File

@@ -0,0 +1 @@
{"version":3,"file":"throwIfEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/throwIfEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAsChE,MAAM,UAAU,YAAY,CAAI,YAA6C;IAA7C,6BAAA,EAAA,kCAA6C;IAC3E,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,QAAQ,GAAG,IAAI,CAAC;YAChB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,EACD,cAAM,OAAA,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,EAArE,CAAqE,CAC5E,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO,IAAI,UAAU,EAAE,CAAC;AAC1B,CAAC"}

View File

@@ -0,0 +1,67 @@
{
"maxerr" : 50,
"bitwise" : true,
"camelcase" : true,
"curly" : true,
"eqeqeq" : true,
"forin" : true,
"immed" : true,
"indent" : 2,
"latedef" : true,
"newcap" : true,
"noarg" : true,
"noempty" : true,
"nonew" : true,
"plusplus" : true,
"quotmark" : true,
"undef" : true,
"unused" : true,
"strict" : true,
"trailing" : true,
"maxparams" : false,
"maxdepth" : false,
"maxstatements" : false,
"maxcomplexity" : false,
"maxlen" : false,
"asi" : false,
"boss" : false,
"debug" : false,
"eqnull" : true,
"es5" : false,
"esnext" : false,
"moz" : false,
"evil" : false,
"expr" : true,
"funcscope" : true,
"globalstrict" : true,
"iterator" : true,
"lastsemic" : false,
"laxbreak" : false,
"laxcomma" : false,
"loopfunc" : false,
"multistr" : false,
"proto" : false,
"scripturl" : false,
"smarttabs" : false,
"shadow" : false,
"sub" : false,
"supernew" : false,
"validthis" : false,
"browser" : true,
"couch" : false,
"devel" : true,
"dojo" : false,
"jquery" : false,
"mootools" : false,
"node" : true,
"nonstandard" : false,
"prototypejs" : false,
"rhino" : false,
"worker" : false,
"wsh" : false,
"yui" : false,
"nomen" : true,
"onevar" : true,
"passfail" : false,
"white" : true
}

View File

@@ -0,0 +1,124 @@
# get-stream
> Get a stream as a string, buffer, or array
## Install
```
$ npm install get-stream
```
## Usage
```js
const fs = require('fs');
const getStream = require('get-stream');
(async () => {
const stream = fs.createReadStream('unicorn.txt');
console.log(await getStream(stream));
/*
,,))))))));,
__)))))))))))))),
\|/ -\(((((''''((((((((.
-*-==//////(('' . `)))))),
/|\ ))| o ;-. '((((( ,(,
( `| / ) ;))))' ,_))^;(~
| | | ,))((((_ _____------~~~-. %,;(;(>';'~
o_); ; )))(((` ~---~ `:: \ %%~~)(v;(`('~
; ''''```` `: `:::|\,__,%% );`'; ~
| _ ) / `:|`----' `-'
______/\/~ | / /
/~;;.____/;;' / ___--,-( `;;;/
/ // _;______;'------~~~~~ /;;/\ /
// | | / ; \;;,\
(<_ | ; /',/-----' _>
\_| ||_ //~;~~~~~~~~~
`\_| (,~~
\~\
~~
*/
})();
```
## API
The methods returns a promise that resolves when the `end` event fires on the stream, indicating that there is no more data to be read. The stream is switched to flowing mode.
### getStream(stream, options?)
Get the `stream` as a string.
#### options
Type: `object`
##### encoding
Type: `string`\
Default: `'utf8'`
[Encoding](https://nodejs.org/api/buffer.html#buffer_buffer) of the incoming stream.
##### maxBuffer
Type: `number`\
Default: `Infinity`
Maximum length of the returned string. If it exceeds this value before the stream ends, the promise will be rejected with a `getStream.MaxBufferError` error.
### getStream.buffer(stream, options?)
Get the `stream` as a buffer.
It honors the `maxBuffer` option as above, but it refers to byte length rather than string length.
### getStream.array(stream, options?)
Get the `stream` as an array of values.
It honors both the `maxBuffer` and `encoding` options. The behavior changes slightly based on the encoding chosen:
- When `encoding` is unset, it assumes an [object mode stream](https://nodesource.com/blog/understanding-object-streams/) and collects values emitted from `stream` unmodified. In this case `maxBuffer` refers to the number of items in the array (not the sum of their sizes).
- When `encoding` is set to `buffer`, it collects an array of buffers. `maxBuffer` refers to the summed byte lengths of every buffer in the array.
- When `encoding` is set to anything else, it collects an array of strings. `maxBuffer` refers to the summed character lengths of every string in the array.
## Errors
If the input stream emits an `error` event, the promise will be rejected with the error. The buffered data will be attached to the `bufferedData` property of the error.
```js
(async () => {
try {
await getStream(streamThatErrorsAtTheEnd('unicorn'));
} catch (error) {
console.log(error.bufferedData);
//=> 'unicorn'
}
})()
```
## FAQ
### How is this different from [`concat-stream`](https://github.com/maxogden/concat-stream)?
This module accepts a stream instead of being one and returns a promise instead of using a callback. The API is simpler and it only supports returning a string, buffer, or array. It doesn't have a fragile type inference. You explicitly choose what you want. And it doesn't depend on the huge `readable-stream` package.
## Related
- [get-stdin](https://github.com/sindresorhus/get-stdin) - Get stdin as a string or buffer
---
<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-get-stream?utm_source=npm-get-stream&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>

View File

@@ -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":"dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z 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 EC FC"},D:{"1":"hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC","2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB"},E:{"1":"C K L G qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E F A HC zB IC JC KC LC 0B","132":"B"},F:{"1":"WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"0 1 2 3 4 5 6 7 8 9 F B C G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB PC QC RC SC qB AC TC rB"},G:{"1":"eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","2":"E zB UC BC VC WC XC YC ZC aC bC cC","132":"dC"},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 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","2":"I wC xC yC zC 0C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"BD","2":"AD"}},B:7,C:"CSS Environment Variables env()"};

View File

@@ -0,0 +1 @@
module.exports={A:{A:{"1":"B","2":"J D E CC","132":"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":"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 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 FC","2":"DC tB EC"},D:{"1":"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 jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC"},E:{"1":"v J D E F A B C K L G IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I HC zB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 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 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 TC rB","2":"F B PC QC RC SC qB AC"},G:{"1":"E UC BC 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 9B","2":"zB","260":"VC"},H:{"1":"oC"},I:{"1":"tB I f pC qC rC sC BC tC uC"},J:{"1":"D A"},K:{"1":"C h rB","2":"A B qB AC"},L:{"1":"H"},M:{"1":"H"},N:{"1":"A B"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"AD BD"}},B:4,C:"rem (root em) units"};

View File

@@ -0,0 +1,12 @@
export type CreateUser = {
firstname: string;
middlename?: string;
lastname: string;
username?: string;
email: string;
phone?: string;
password: string;
enabled?: boolean;
groups?: any;
profilePic?: string;
};

View File

@@ -0,0 +1,13 @@
import { ResponseHeaders } from "@octokit/types";
import { GraphQlEndpointOptions, GraphQlQueryResponse } from "./types";
type ServerResponseData<T> = Required<GraphQlQueryResponse<T>>;
export declare class GraphqlResponseError<ResponseData> extends Error {
readonly request: GraphQlEndpointOptions;
readonly headers: ResponseHeaders;
readonly response: ServerResponseData<ResponseData>;
name: string;
readonly errors: GraphQlQueryResponse<never>["errors"];
readonly data: ResponseData;
constructor(request: GraphQlEndpointOptions, headers: ResponseHeaders, response: ServerResponseData<ResponseData>);
}
export {};