new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./async').priorityQueue;
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E CC","164":"F A","260":"B"},B:{"1":"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","260":"C K L G M"},C:{"1":"8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2":"DC tB I v J D E EC FC","516":"0 1 2 3 4 5 6 7 F A B C K L G M N O w g x y z"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"I v J D E F A B C K L G M N O w g x y"},E:{"1":"J A B C IC LC 0B qB","2":"I v K L G HC zB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","1028":"D E F JC KC"},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 rB","2":"F B PC QC RC SC qB AC TC"},G:{"1":"ZC aC bC cC dC eC fC","2":"zB UC BC VC WC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","1028":"E XC YC"},H:{"1":"oC"},I:{"1":"f tC uC","2":"tB I pC qC rC sC BC"},J:{"16":"D","1028":"A"},K:{"1":"h rB","16":"A B C qB AC"},L:{"1":"H"},M:{"1":"H"},N:{"164":"A","260":"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:7,C:"Do Not Track API"};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports = require("./webServer.js");
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0.00481,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0.00241,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0.00481,"103":0.00241,"104":0.00241,"105":0.00241,"106":0.00241,"107":0.00241,"108":0.00962,"109":0.17557,"110":0.11785,"111":0.00481,"112":0,"3.5":0,"3.6":0},D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0.00241,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0.00241,"69":0.00241,"70":0.00481,"71":0.00481,"72":0.00241,"73":0,"74":0.00962,"75":0,"76":0,"77":0.00241,"78":0.00241,"79":0.00481,"80":0.00722,"81":0.00481,"83":0.00722,"84":0.00241,"85":0.00241,"86":0.00481,"87":0.00962,"88":0.00241,"89":0.00241,"90":0.00241,"91":0.00481,"92":0.00481,"93":0.00241,"94":0.00962,"95":0.00481,"96":0.00722,"97":0.00722,"98":0.00481,"99":0.00962,"100":0.00481,"101":0.00722,"102":0.00722,"103":0.02646,"104":0.01924,"105":0.01684,"106":0.01924,"107":0.03608,"108":0.10823,"109":2.68398,"110":1.21212,"111":0.00241,"112":0.00241,"113":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0.00241,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0.00241,"56":0,"57":0,"58":0.00241,"60":0.00241,"62":0,"63":0.00481,"64":0.00481,"65":0.00241,"66":0.00481,"67":0.11304,"68":0,"69":0,"70":0,"71":0,"72":0.00241,"73":0.00962,"74":0.00722,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0.02165,"95":0.02405,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0.00241,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0.00241,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0.00241,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0.00241,"108":0.00722,"109":0.10582,"110":0.12266},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0.00241,"15":0,_:"0","3.1":0,"3.2":0,"5.1":0,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0,"13.1":0.00241,"14.1":0.00241,"15.1":0,"15.2-15.3":0,"15.4":0.00241,"15.5":0.00241,"15.6":0.00962,"16.0":0.00241,"16.1":0.00722,"16.2":0.01203,"16.3":0.01203,"16.4":0},G:{"8":0.00088,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0.00088,"7.0-7.1":0.00673,"8.1-8.4":0,"9.0-9.2":0.00029,"9.3":0.00439,"10.0-10.2":0.00059,"10.3":0.0041,"11.0-11.2":0.00585,"11.3-11.4":0.00088,"12.0-12.1":0.0041,"12.2-12.5":0.06903,"13.0-13.1":0.00234,"13.2":0.00351,"13.3":0.00439,"13.4-13.7":0.01229,"14.0-14.4":0.04768,"14.5-14.8":0.06786,"15.0-15.1":0.04622,"15.2-15.3":0.03861,"15.4":0.03452,"15.5":0.07137,"15.6":0.13777,"16.0":0.23312,"16.1":0.42559,"16.2":0.69557,"16.3":0.78625,"16.4":0.0041},P:{"4":0.08944,"20":0.13913,"5.0-5.4":0,"6.2-6.4":0.00994,"7.2-7.4":0.05963,"8.2":0,"9.2":0.00994,"10.1":0,"11.1-11.2":0.00994,"12.0":0.00994,"13.0":0.02981,"14.0":0.01988,"15.0":0.00994,"16.0":0.04969,"17.0":0.03975,"18.0":0.04969,"19.0":0.40746},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0,"4.4":0,"4.4.3-4.4.4":0.03481},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0.00722,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0.51646,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":2.06584},H:{"0":2.31533},L:{"0":84.58253},R:{_:"0"},M:{"0":0.1519},Q:{"13.1":0}};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"date-time-pattern-generator.d.ts","sourceRoot":"","sources":["../../../../../packages/icu-messageformat-parser/date-time-pattern-generator.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,UAsCnE"}
|
||||
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./async').sortBy;
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"name": "@octokit/plugin-rest-endpoint-methods",
|
||||
"description": "Octokit plugin adding one method for all of api.github.com REST API endpoints",
|
||||
"version": "7.0.1",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"dist-*/",
|
||||
"bin/"
|
||||
],
|
||||
"source": "dist-src/index.js",
|
||||
"types": "dist-types/index.d.ts",
|
||||
"main": "dist-node/index.js",
|
||||
"module": "dist-web/index.js",
|
||||
"pika": true,
|
||||
"sideEffects": false,
|
||||
"keywords": [
|
||||
"github",
|
||||
"api",
|
||||
"sdk",
|
||||
"toolkit"
|
||||
],
|
||||
"repository": "github:octokit/plugin-rest-endpoint-methods.js",
|
||||
"dependencies": {
|
||||
"@octokit/types": "^9.0.0",
|
||||
"deprecation": "^2.3.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@octokit/core": ">=3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gimenete/type-writer": "^0.1.5",
|
||||
"@octokit/core": "^4.0.0",
|
||||
"@pika/pack": "^0.3.7",
|
||||
"@pika/plugin-build-node": "^0.9.0",
|
||||
"@pika/plugin-build-web": "^0.9.0",
|
||||
"@pika/plugin-ts-standard-pkg": "^0.9.0",
|
||||
"@types/fetch-mock": "^7.3.1",
|
||||
"@types/jest": "^29.0.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"fetch-mock": "^9.0.0",
|
||||
"fs-extra": "^11.0.0",
|
||||
"github-openapi-graphql-query": "^3.0.0",
|
||||
"jest": "^29.0.0",
|
||||
"lodash.camelcase": "^4.3.0",
|
||||
"lodash.set": "^4.3.2",
|
||||
"lodash.upperfirst": "^4.3.1",
|
||||
"mustache": "^4.0.0",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "2.8.3",
|
||||
"semantic-release-plugin-update-version-in-files": "^1.0.0",
|
||||
"sort-keys": "^4.2.0",
|
||||
"string-to-jsdoc-comment": "^1.0.0",
|
||||
"ts-jest": "^29.0.0",
|
||||
"typescript": "^4.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 14"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
import { Action } from './Action';
|
||||
import { SchedulerAction } from '../types';
|
||||
import { Subscription } from '../Subscription';
|
||||
import { AsyncScheduler } from './AsyncScheduler';
|
||||
import { TimerHandle } from './timerHandle';
|
||||
export declare class AsyncAction<T> extends Action<T> {
|
||||
protected scheduler: AsyncScheduler;
|
||||
protected work: (this: SchedulerAction<T>, state?: T) => void;
|
||||
id: TimerHandle | undefined;
|
||||
state?: T;
|
||||
delay: number;
|
||||
protected pending: boolean;
|
||||
constructor(scheduler: AsyncScheduler, work: (this: SchedulerAction<T>, state?: T) => void);
|
||||
schedule(state?: T, delay?: number): Subscription;
|
||||
protected requestAsyncId(scheduler: AsyncScheduler, _id?: TimerHandle, delay?: number): TimerHandle;
|
||||
protected recycleAsyncId(_scheduler: AsyncScheduler, id?: TimerHandle, delay?: number | null): TimerHandle | undefined;
|
||||
/**
|
||||
* Immediately executes this action and the `work` it contains.
|
||||
* @return {any}
|
||||
*/
|
||||
execute(state: T, delay: number): any;
|
||||
protected _execute(state: T, _delay: number): any;
|
||||
unsubscribe(): void;
|
||||
}
|
||||
//# sourceMappingURL=AsyncAction.d.ts.map
|
||||
@@ -0,0 +1,102 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Code coverage report for csv2json/libs/core/defaultParsers/parser_flat.js</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="../../../../prettify.css" />
|
||||
<link rel="stylesheet" href="../../../../base.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type='text/css'>
|
||||
.coverage-summary .sorter {
|
||||
background-image: url(../../../../sort-arrow-sprite.png);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class='wrapper'>
|
||||
<div class='pad1'>
|
||||
<h1>
|
||||
<a href="../../../../index.html">All files</a> / <a href="index.html">csv2json/libs/core/defaultParsers</a> parser_flat.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/4</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>0/0</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>0/1</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>0/4</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="quiet">
|
||||
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
||||
</p>
|
||||
</div>
|
||||
<div class='status-line low'></div>
|
||||
<pre><table class="coverage">
|
||||
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
||||
<a name='L2'></a><a href='#L2'>2</a>
|
||||
<a name='L3'></a><a href='#L3'>3</a>
|
||||
<a name='L4'></a><a href='#L4'>4</a>
|
||||
<a name='L5'></a><a href='#L5'>5</a>
|
||||
<a name='L6'></a><a href='#L6'>6</a>
|
||||
<a name='L7'></a><a href='#L7'>7</a>
|
||||
<a name='L8'></a><a href='#L8'>8</a>
|
||||
<a name='L9'></a><a href='#L9'>9</a>
|
||||
<a name='L10'></a><a href='#L10'>10</a>
|
||||
<a name='L11'></a><a href='#L11'>11</a>
|
||||
<a name='L12'></a><a href='#L12'>12</a></td><td class="line-coverage quiet"><span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span>
|
||||
<span class="cline-any cline-no">0</span></td><td class="text"><pre class="prettyprint lang-js">Unable to lookup source: /Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_flat.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_flat.js')
|
||||
Error: Unable to lookup source: /Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_flat.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_flat.js')
|
||||
at Context.defaultSourceLookup [as sourceFinder] (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/context.js:15:15)
|
||||
at Context.getSource (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/context.js:74:17)
|
||||
at Object.annotateSourceCode (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:172:38)
|
||||
at HtmlReport.onDetail (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-reports/lib/html/index.js:237:39)
|
||||
at Visitor.(anonymous function) [as onDetail] (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:34:30)
|
||||
at ReportNode.Node.visit (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:123:17)
|
||||
at /Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:116:23
|
||||
at Array.forEach (native)
|
||||
at visitChildren (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:115:32)
|
||||
at ReportNode.Node.visit (/Users/kxiang/work/projects/csv2json/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:126:5)</pre></td></tr>
|
||||
</table></pre>
|
||||
<div class='push'></div><!-- for sticky footer -->
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri May 11 2018 21:36:07 GMT+0100 (IST)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../../../prettify.js"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
if (typeof prettyPrint === 'function') {
|
||||
prettyPrint();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../../../sorter.js"></script>
|
||||
<script src="../../../../block-navigation.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,110 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Code coverage report for csv2json/libs/interfaces/cli</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> csv2json/libs/interfaces/cli
|
||||
</h1>
|
||||
<div class='clearfix'>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>0/24</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>0/4</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>0/6</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>0/24</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>
|
||||
<div class="pad1">
|
||||
<table class="coverage-summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
||||
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
||||
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
||||
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
||||
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
||||
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
||||
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr>
|
||||
<td class="file low" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
||||
<td data-value="0" class="pic low"><div class="chart"><div class="cover-fill" style="width: 0%;"></div><div class="cover-empty" style="width:100%;"></div></div></td>
|
||||
<td data-value="0" class="pct low">0%</td>
|
||||
<td data-value="1" class="abs low">0/1</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="0" class="abs high">0/0</td>
|
||||
<td data-value="100" class="pct high">100%</td>
|
||||
<td data-value="0" class="abs high">0/0</td>
|
||||
<td data-value="0" class="pct low">0%</td>
|
||||
<td data-value="1" class="abs low">0/1</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="file low" data-value="main.js"><a href="main.js.html">main.js</a></td>
|
||||
<td data-value="0" class="pic low"><div class="chart"><div class="cover-fill" style="width: 0%;"></div><div class="cover-empty" style="width:100%;"></div></div></td>
|
||||
<td data-value="0" class="pct low">0%</td>
|
||||
<td data-value="23" class="abs low">0/23</td>
|
||||
<td data-value="0" class="pct low">0%</td>
|
||||
<td data-value="4" class="abs low">0/4</td>
|
||||
<td data-value="0" class="pct low">0%</td>
|
||||
<td data-value="6" class="abs low">0/6</td>
|
||||
<td data-value="0" class="pct low">0%</td>
|
||||
<td data-value="23" class="abs low">0/23</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div><div class='push'></div><!-- for sticky footer -->
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri May 11 2018 21:20:20 GMT+0100 (IST)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../../../prettify.js"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
if (typeof prettyPrint === 'function') {
|
||||
prettyPrint();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../../../sorter.js"></script>
|
||||
<script src="../../../../block-navigation.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
'use strict';
|
||||
if (typeof global.Promise !== 'function') {
|
||||
global.Promise = require('./lib');
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.defaultIfEmpty = void 0;
|
||||
var lift_1 = require("../util/lift");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
function defaultIfEmpty(defaultValue) {
|
||||
return lift_1.operate(function (source, subscriber) {
|
||||
var hasValue = false;
|
||||
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) {
|
||||
hasValue = true;
|
||||
subscriber.next(value);
|
||||
}, function () {
|
||||
if (!hasValue) {
|
||||
subscriber.next(defaultValue);
|
||||
}
|
||||
subscriber.complete();
|
||||
}));
|
||||
});
|
||||
}
|
||||
exports.defaultIfEmpty = defaultIfEmpty;
|
||||
//# sourceMappingURL=defaultIfEmpty.js.map
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="clone node_modules" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -0,0 +1,20 @@
|
||||
var arrayPush = require('./_arrayPush'),
|
||||
isArray = require('./isArray');
|
||||
|
||||
/**
|
||||
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
||||
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
||||
* symbols of `object`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to query.
|
||||
* @param {Function} keysFunc The function to get the keys of `object`.
|
||||
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
||||
* @returns {Array} Returns the array of property names and symbols.
|
||||
*/
|
||||
function baseGetAllKeys(object, keysFunc, symbolsFunc) {
|
||||
var result = keysFunc(object);
|
||||
return isArray(object) ? result : arrayPush(result, symbolsFunc(object));
|
||||
}
|
||||
|
||||
module.exports = baseGetAllKeys;
|
||||
@@ -0,0 +1,40 @@
|
||||
# is-core-module <sup>[![Version Badge][2]][1]</sup>
|
||||
|
||||
[![github actions][actions-image]][actions-url]
|
||||
[![coverage][codecov-image]][codecov-url]
|
||||
[![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 specifier a node.js core module? Optionally provide a node version to check; defaults to the current node version.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var isCore = require('is-core-module');
|
||||
var assert = require('assert');
|
||||
assert(isCore('fs'));
|
||||
assert(!isCore('butts'));
|
||||
```
|
||||
|
||||
## Tests
|
||||
Clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[1]: https://npmjs.org/package/is-core-module
|
||||
[2]: https://versionbadg.es/inspect-js/is-core-module.svg
|
||||
[5]: https://david-dm.org/inspect-js/is-core-module.svg
|
||||
[6]: https://david-dm.org/inspect-js/is-core-module
|
||||
[7]: https://david-dm.org/inspect-js/is-core-module/dev-status.svg
|
||||
[8]: https://david-dm.org/inspect-js/is-core-module#info=devDependencies
|
||||
[11]: https://nodei.co/npm/is-core-module.png?downloads=true&stars=true
|
||||
[license-image]: https://img.shields.io/npm/l/is-core-module.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: https://img.shields.io/npm/dm/is-core-module.svg
|
||||
[downloads-url]: https://npm-stat.com/charts.html?package=is-core-module
|
||||
[codecov-image]: https://codecov.io/gh/inspect-js/is-core-module/branch/main/graphs/badge.svg
|
||||
[codecov-url]: https://app.codecov.io/gh/inspect-js/is-core-module/
|
||||
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/is-core-module
|
||||
[actions-url]: https://github.com/inspect-js/is-core-module/actions
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"chardet","version":"0.7.0","files":{"package.json":{"checkedAt":1678883671206,"integrity":"sha512-XS4HT9KSDO8VDWX8gzC14gA3t7sqXh0eclINqLPXGJsT13Iq+TtOV3TjJQ3OtCk2eEu4MtUO9J+yxES4gw28IQ==","mode":420,"size":962},".travis.yml":{"checkedAt":1678883671206,"integrity":"sha512-Ta5urRxZZI9nKXy024XBFj7f8I26JGf6MdlVao01W2Mv1qovZs8P/pKEAEax5xZyQCKo8Vb6PByHGWTHSsSmCQ==","mode":420,"size":52},"index.js":{"checkedAt":1678883671206,"integrity":"sha512-T8hyx5o/GqqhDXEJRN/NxLgn6MAcLiq5GHIW+K7mm1xOqfeIFeZwwPt0EIRMoz+/tNlw4tvt/dKk8oRpE8tdwQ==","mode":420,"size":3384},"LICENSE":{"checkedAt":1678883671206,"integrity":"sha512-LDmmINXje7i+hy0jj9lNd+J66sblt3HT5Lz3UYYoGWOAYl0oaxBnFwr44rnTlGnvFQ1yc215QFET1NEDtN8p7Q==","mode":420,"size":1059},"match.js":{"checkedAt":1678883671206,"integrity":"sha512-+3I+LqsbYmmsSWZF2L8zwMosQd9GbGQP9iM7m01IdMjB25KQks9+3e8aQJGykydVlw8YsM4u0ct3IJILQxCGIg==","mode":420,"size":155},"README.md":{"checkedAt":1678883671206,"integrity":"sha512-9obHPuTzFd3gF8OZd5UVFxqAsWiogcKZLMPUPGWoMGxL1yg/HGCFanOhj2BcF4l2c+ElZTIpOcJqmPMfVfpzaA==","mode":420,"size":1851},"encoding/iso2022.js":{"checkedAt":1678883671209,"integrity":"sha512-wYaSqW12YeJ3zz2ZvK0GCYmoAO7jU3FlE2QgA0Q9UddQU9Q5VTZaxSVNkqiC24feCDzvZ95la5tX5BZTSLSy8w==","mode":420,"size":4069},"encoding/mbcs.js":{"checkedAt":1678883671211,"integrity":"sha512-7Sv8bTE7PyCp3AYKwXeVgZpoTmOYs33RSvzlf/elj5M5u5WSrN/CdFQpsej9IYXtb1weiGJts17CbRFUHkxlbw==","mode":420,"size":17001},"encoding/unicode.js":{"checkedAt":1678883671216,"integrity":"sha512-JtNlc6QUCegllavlggzjhJd6wiEQ3/5jdGpTHLnaVCJfmMcbLkyIqftVZNvJLkEgw2IJkt82thmsY2RyMnzMPw==","mode":420,"size":3122},"encoding/sbcs.js":{"checkedAt":1678883671216,"integrity":"sha512-u8DMYHrFMGC+BBMxzadDO4w25JJFPcy02ZhWhH7Yz9W3v98qtBdpCzEHorTMqTgP3gV31pmQA98wUrIloWD0pw==","mode":420,"size":41063},"encoding/utf8.js":{"checkedAt":1678883671216,"integrity":"sha512-2Q+bemCw0khczgTxeuP5uGhu+Kd4elPa7kEnKlnTiyX5ITrEmvkQp97DD9X0qUi39RjKkATFZZEeyntpQBlN3A==","mode":420,"size":2125}}}
|
||||
@@ -0,0 +1,20 @@
|
||||
var baseFindIndex = require('./_baseFindIndex'),
|
||||
baseIsNaN = require('./_baseIsNaN'),
|
||||
strictIndexOf = require('./_strictIndexOf');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.indexOf` without `fromIndex` bounds checks.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {*} value The value to search for.
|
||||
* @param {number} fromIndex The index to search from.
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
*/
|
||||
function baseIndexOf(array, value, fromIndex) {
|
||||
return value === value
|
||||
? strictIndexOf(array, value, fromIndex)
|
||||
: baseFindIndex(array, baseIsNaN, fromIndex);
|
||||
}
|
||||
|
||||
module.exports = baseIndexOf;
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Input } from './utils.js';
|
||||
export declare type ArgonOpts = {
|
||||
t: number;
|
||||
m: number;
|
||||
p: number;
|
||||
version?: number;
|
||||
key?: Input;
|
||||
personalization?: Input;
|
||||
dkLen?: number;
|
||||
asyncTick?: number;
|
||||
maxmem?: number;
|
||||
onProgress?: (progress: number) => void;
|
||||
};
|
||||
export declare const argon2d: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array;
|
||||
export declare const argon2i: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array;
|
||||
export declare const argon2id: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array;
|
||||
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
Create a type that requires exactly one of the given keys and disallows more. The remaining keys are kept as is.
|
||||
|
||||
Use-cases:
|
||||
- Creating interfaces for components that only need one of the keys to display properly.
|
||||
- Declaring generic keys in a single place for a single use-case that gets narrowed down via `RequireExactlyOne`.
|
||||
|
||||
The caveat with `RequireExactlyOne` is that TypeScript doesn't always know at compile time every key that will exist at runtime. Therefore `RequireExactlyOne` can't do anything to prevent extra keys it doesn't know about.
|
||||
|
||||
@example
|
||||
```
|
||||
import type {RequireExactlyOne} from 'type-fest';
|
||||
|
||||
type Responder = {
|
||||
text: () => string;
|
||||
json: () => string;
|
||||
secure: boolean;
|
||||
};
|
||||
|
||||
const responder: RequireExactlyOne<Responder, 'text' | 'json'> = {
|
||||
// Adding a `text` key here would cause a compile error.
|
||||
|
||||
json: () => '{"message": "ok"}',
|
||||
secure: true
|
||||
};
|
||||
```
|
||||
|
||||
@category Object
|
||||
*/
|
||||
export type RequireExactlyOne<ObjectType, KeysType extends keyof ObjectType = keyof ObjectType> =
|
||||
{[Key in KeysType]: (
|
||||
Required<Pick<ObjectType, Key>> &
|
||||
Partial<Record<Exclude<KeysType, Key>, never>>
|
||||
)}[KeysType] & Omit<ObjectType, KeysType>;
|
||||
@@ -0,0 +1,14 @@
|
||||
'use strict'
|
||||
|
||||
/* eslint-disable no-var */
|
||||
|
||||
var queue = require('./')(worker, 1)
|
||||
|
||||
queue.push(42, function (err, result) {
|
||||
if (err) { throw err }
|
||||
console.log('the result is', result)
|
||||
})
|
||||
|
||||
function worker (arg, cb) {
|
||||
cb(null, 42 * 2)
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
var createRange = require('./_createRange');
|
||||
|
||||
/**
|
||||
* Creates an array of numbers (positive and/or negative) progressing from
|
||||
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
|
||||
* `start` is specified without an `end` or `step`. If `end` is not specified,
|
||||
* it's set to `start` with `start` then set to `0`.
|
||||
*
|
||||
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
||||
* floating-point values which can produce unexpected results.
|
||||
*
|
||||
* @static
|
||||
* @since 0.1.0
|
||||
* @memberOf _
|
||||
* @category Util
|
||||
* @param {number} [start=0] The start of the range.
|
||||
* @param {number} end The end of the range.
|
||||
* @param {number} [step=1] The value to increment or decrement by.
|
||||
* @returns {Array} Returns the range of numbers.
|
||||
* @see _.inRange, _.rangeRight
|
||||
* @example
|
||||
*
|
||||
* _.range(4);
|
||||
* // => [0, 1, 2, 3]
|
||||
*
|
||||
* _.range(-4);
|
||||
* // => [0, -1, -2, -3]
|
||||
*
|
||||
* _.range(1, 5);
|
||||
* // => [1, 2, 3, 4]
|
||||
*
|
||||
* _.range(0, 20, 5);
|
||||
* // => [0, 5, 10, 15]
|
||||
*
|
||||
* _.range(0, -4, -1);
|
||||
* // => [0, -1, -2, -3]
|
||||
*
|
||||
* _.range(1, 4, 0);
|
||||
* // => [1, 1, 1]
|
||||
*
|
||||
* _.range(0);
|
||||
* // => []
|
||||
*/
|
||||
var range = createRange();
|
||||
|
||||
module.exports = range;
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "rxjs/ajax",
|
||||
"types": "../dist/types/ajax/index.d.ts",
|
||||
"main": "../dist/cjs/ajax/index.js",
|
||||
"module": "../dist/esm5/ajax/index.js",
|
||||
"es2015": "../dist/esm/ajax/index.js",
|
||||
"sideEffects": false
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.retryWhen = void 0;
|
||||
var innerFrom_1 = require("../observable/innerFrom");
|
||||
var Subject_1 = require("../Subject");
|
||||
var lift_1 = require("../util/lift");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
function retryWhen(notifier) {
|
||||
return lift_1.operate(function (source, subscriber) {
|
||||
var innerSub;
|
||||
var syncResub = false;
|
||||
var errors$;
|
||||
var subscribeForRetryWhen = function () {
|
||||
innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, function (err) {
|
||||
if (!errors$) {
|
||||
errors$ = new Subject_1.Subject();
|
||||
innerFrom_1.innerFrom(notifier(errors$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
|
||||
return innerSub ? subscribeForRetryWhen() : (syncResub = true);
|
||||
}));
|
||||
}
|
||||
if (errors$) {
|
||||
errors$.next(err);
|
||||
}
|
||||
}));
|
||||
if (syncResub) {
|
||||
innerSub.unsubscribe();
|
||||
innerSub = null;
|
||||
syncResub = false;
|
||||
subscribeForRetryWhen();
|
||||
}
|
||||
};
|
||||
subscribeForRetryWhen();
|
||||
});
|
||||
}
|
||||
exports.retryWhen = retryWhen;
|
||||
//# sourceMappingURL=retryWhen.js.map
|
||||
@@ -0,0 +1,17 @@
|
||||
import {IncomingMessage} from 'http';
|
||||
|
||||
/**
|
||||
Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
|
||||
|
||||
Makes `toStream` include the properties from `fromStream`.
|
||||
|
||||
@param fromStream - The stream to copy the properties from.
|
||||
@param toStream - The stream to copy the properties to.
|
||||
@return The same object as `toStream`.
|
||||
*/
|
||||
declare function mimicResponse<T extends NodeJS.ReadableStream>(
|
||||
fromStream: IncomingMessage, // eslint-disable-line @typescript-eslint/prefer-readonly-parameter-types
|
||||
toStream: T,
|
||||
): T & IncomingMessage;
|
||||
|
||||
export = mimicResponse;
|
||||
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Better way to handle type checking
|
||||
* null, {}, array and date are objects, which confuses
|
||||
*/
|
||||
export default function typeOf(input) {
|
||||
var rawObject = Object.prototype.toString.call(input).toLowerCase();
|
||||
var typeOfRegex = /\[object (.*)]/g;
|
||||
var type = typeOfRegex.exec(rawObject)[1];
|
||||
return type;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
||||
|
||||
var hasToStringTag = require('has-tostringtag/shams')();
|
||||
var has = require('has');
|
||||
|
||||
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
||||
|
||||
module.exports = function setToStringTag(object, value) {
|
||||
var overrideIfSet = arguments.length > 2 && arguments[2] && arguments[2].force;
|
||||
if (toStringTag && (overrideIfSet || !has(object, toStringTag))) {
|
||||
if ($defineProperty) {
|
||||
$defineProperty(object, toStringTag, {
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
value: value,
|
||||
writable: false
|
||||
});
|
||||
} else {
|
||||
object[toStringTag] = value; // eslint-disable-line no-param-reassign
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,52 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.QueueAction = void 0;
|
||||
var AsyncAction_1 = require("./AsyncAction");
|
||||
var QueueAction = (function (_super) {
|
||||
__extends(QueueAction, _super);
|
||||
function QueueAction(scheduler, work) {
|
||||
var _this = _super.call(this, scheduler, work) || this;
|
||||
_this.scheduler = scheduler;
|
||||
_this.work = work;
|
||||
return _this;
|
||||
}
|
||||
QueueAction.prototype.schedule = function (state, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
if (delay > 0) {
|
||||
return _super.prototype.schedule.call(this, state, delay);
|
||||
}
|
||||
this.delay = delay;
|
||||
this.state = state;
|
||||
this.scheduler.flush(this);
|
||||
return this;
|
||||
};
|
||||
QueueAction.prototype.execute = function (state, delay) {
|
||||
return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay);
|
||||
};
|
||||
QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) {
|
||||
if (delay === void 0) { delay = 0; }
|
||||
if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) {
|
||||
return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);
|
||||
}
|
||||
scheduler.flush(this);
|
||||
return 0;
|
||||
};
|
||||
return QueueAction;
|
||||
}(AsyncAction_1.AsyncAction));
|
||||
exports.QueueAction = QueueAction;
|
||||
//# sourceMappingURL=QueueAction.js.map
|
||||
@@ -0,0 +1,93 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Code coverage report for csv2json/src/index.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> index.ts
|
||||
</h1>
|
||||
<div class='clearfix'>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>5/5</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>0/0</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>1/1</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>5/5</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></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-yes">1x</span>
|
||||
<span class="cline-any cline-yes">1x</span>
|
||||
<span class="cline-any cline-yes">15x</span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-yes">1x</span>
|
||||
<span class="cline-any cline-yes">1x</span></td><td class="text"><pre class="prettyprint lang-js">import { TransformOptions } from "stream";
|
||||
import { CSVParseParam } from "./Parameters";
|
||||
import { Converter } from "./Converter";
|
||||
const helper = function (param?: Partial<CSVParseParam>, options?: TransformOptions): Converter {
|
||||
return new Converter(param, options);
|
||||
}
|
||||
|
||||
helper["Converter"] = Converter;
|
||||
export =helper;</pre></td></tr>
|
||||
</table></pre>
|
||||
<div class='push'></div><!-- for sticky footer -->
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri May 11 2018 21:36:07 GMT+0100 (IST)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
if (typeof prettyPrint === 'function') {
|
||||
prettyPrint();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../sorter.js"></script>
|
||||
<script src="../../block-navigation.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,17 @@
|
||||
import Wrapper from './shared/Wrapper';
|
||||
import Renderer from '../Renderer';
|
||||
import Block from '../Block';
|
||||
import Slot from '../../nodes/Slot';
|
||||
import FragmentWrapper from './Fragment';
|
||||
import { Identifier } from 'estree';
|
||||
export default class SlotWrapper extends Wrapper {
|
||||
node: Slot;
|
||||
fragment: FragmentWrapper;
|
||||
fallback: Block | null;
|
||||
slot_block: Block;
|
||||
var: Identifier;
|
||||
dependencies: Set<string>;
|
||||
constructor(renderer: Renderer, block: Block, parent: Wrapper, node: Slot, strip_whitespace: boolean, next_sibling: Wrapper);
|
||||
render(block: Block, parent_node: Identifier, parent_nodes: Identifier): void;
|
||||
is_dependency_dynamic(name: string): boolean;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
* Copyright 2009-2011 Mozilla Foundation and contributors
|
||||
* Licensed under the New BSD license. See LICENSE.txt or:
|
||||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
exports.SourceMapGenerator = require("./lib/source-map-generator").SourceMapGenerator;
|
||||
exports.SourceMapConsumer = require("./lib/source-map-consumer").SourceMapConsumer;
|
||||
exports.SourceNode = require("./lib/source-node").SourceNode;
|
||||
@@ -0,0 +1,377 @@
|
||||
// Type definitions for sass 1.43
|
||||
// Project: https://github.com/sass/dart-sass
|
||||
// Definitions by: Alan Agius <https://github.com/alan-agius4>
|
||||
// Silas Rech <https://github.com/lenovouser>
|
||||
// Justin Leider <https://github.com/jleider>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { URL } from 'url';
|
||||
|
||||
export type ImporterReturnType = { file: string } | { contents: string } | Error | null;
|
||||
|
||||
export type Importer = (
|
||||
this: { fromImport: boolean },
|
||||
url: string,
|
||||
prev: string,
|
||||
done?: (data: ImporterReturnType) => void,
|
||||
) => ImporterReturnType | void;
|
||||
|
||||
export interface Options {
|
||||
/**
|
||||
* Path to a file to compile.
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
file?: string | undefined;
|
||||
|
||||
/**
|
||||
* A string to pass to compile.
|
||||
*
|
||||
* It is recommended that you use `includePaths` in conjunction with this so that sass can find files when using the @import directive.
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
data?: string | undefined;
|
||||
|
||||
/**
|
||||
* Handles when the @import directive is encountered.
|
||||
*
|
||||
* A custom importer allows extension of the sass engine in both a synchronous and asynchronous manner.
|
||||
*
|
||||
* @default undefined
|
||||
*/
|
||||
importer?: Importer | Importer[] | undefined;
|
||||
|
||||
/**
|
||||
* Holds a collection of custom functions that may be invoked by the sass files being compiled.
|
||||
*
|
||||
* @default undefined
|
||||
*/
|
||||
functions?: { [key: string]: (...args: types.SassType[]) => types.SassType | void } | undefined;
|
||||
|
||||
/**
|
||||
* An array of paths that should be looked in to attempt to resolve your @import declarations.
|
||||
* When using `data`, it is recommended that you use this.
|
||||
*
|
||||
* @default []
|
||||
*/
|
||||
includePaths?: string[] | undefined;
|
||||
|
||||
/**
|
||||
* Enable Sass Indented Syntax for parsing the data string or file.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
indentedSyntax?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Used to determine whether to use space or tab character for indentation.
|
||||
*
|
||||
* @default 'space'
|
||||
*/
|
||||
indentType?: 'space' | 'tab' | undefined;
|
||||
|
||||
/**
|
||||
* Used to determine the number of spaces or tabs to be used for indentation.
|
||||
*
|
||||
* @default 2
|
||||
*/
|
||||
indentWidth?: number | undefined;
|
||||
|
||||
/**
|
||||
* Used to determine which sequence to use for line breaks.
|
||||
*
|
||||
* @default 'lf'
|
||||
*/
|
||||
linefeed?: 'cr' | 'crlf' | 'lf' | 'lfcr' | undefined;
|
||||
|
||||
/**
|
||||
* Disable the inclusion of source map information in the output file.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
omitSourceMapUrl?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Specify the intended location of the output file.
|
||||
* Strongly recommended when outputting source maps so that they can properly refer back to their intended files.
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
outFile?: string | undefined;
|
||||
|
||||
/**
|
||||
* Determines the output format of the final CSS style.
|
||||
*
|
||||
* @default 'expanded'
|
||||
*/
|
||||
outputStyle?: 'compressed' | 'expanded' | undefined;
|
||||
|
||||
/**
|
||||
* Enables the outputting of a source map.
|
||||
*
|
||||
* @default undefined
|
||||
*/
|
||||
sourceMap?: boolean | string | undefined;
|
||||
|
||||
/**
|
||||
* Includes the contents in the source map information.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
sourceMapContents?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* Embeds the source map as a data URI.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
sourceMapEmbed?: boolean | undefined;
|
||||
|
||||
/**
|
||||
* The value will be emitted as `sourceRoot` in the source map information.
|
||||
*
|
||||
* @default undefined
|
||||
*/
|
||||
sourceMapRoot?: string | undefined;
|
||||
|
||||
/**
|
||||
* By default, Dart Sass will print only five instances of the same deprecation warning per compilation to avoid deluging
|
||||
* users in console noise. If you set verbose to `true`, it will instead print every deprecation warning it encounters.
|
||||
*/
|
||||
verbose?: boolean;
|
||||
|
||||
/**
|
||||
* If this option is set to `true`, Sass won’t print warnings that are caused by dependencies.
|
||||
*/
|
||||
quietDeps?: boolean;
|
||||
|
||||
/** An object to use to handle warnings and/or debug messages from Sass. */
|
||||
logger?: Logger;
|
||||
}
|
||||
|
||||
export interface Logger {
|
||||
/** This method is called when Sass emits a debug message due to a @debug rule. */
|
||||
debug?(message: string, options: { span?: SourceSpan }): void;
|
||||
|
||||
/** This method is called when Sass emits a debug message due to a @warn rule. */
|
||||
warn?(message: string, options: { deprecation: boolean; span?: SourceSpan; stack?: string }): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* An interface that represents a contiguous section ("span") of a text file.
|
||||
* This section may be empty if the `start` and `end` are the same location,
|
||||
* in which case it indicates a single position in the file.
|
||||
*/
|
||||
|
||||
export interface SourceSpan {
|
||||
/**
|
||||
* The location of the first character of this span, unless `end` points to
|
||||
* the same character, in which case the span is empty and refers to the point
|
||||
* between this character and the one before it.
|
||||
*/
|
||||
start: SourceLocation;
|
||||
|
||||
/**
|
||||
* The location of the first character after this span. This must point to a
|
||||
* location after `start`.
|
||||
*/
|
||||
end: SourceLocation;
|
||||
|
||||
/**
|
||||
* The absolute URL of the file that this span refers to. For files on disk,
|
||||
* this must be a `file://` URL.
|
||||
*
|
||||
* This must be `undefined` for files that are passed to the compiler without
|
||||
* a URL. It must not be `undefined` for any files that are importable.
|
||||
*/
|
||||
url?: URL;
|
||||
|
||||
/**
|
||||
* The text covered by the span. This must be the text between `start.offset`
|
||||
* (inclusive) and `end.offset` (exclusive) of the file referred by this
|
||||
* span. Its length must be `end.offset - start.offset`.
|
||||
*/
|
||||
text: string;
|
||||
|
||||
/**
|
||||
* Additional source text surrounding this span.
|
||||
*
|
||||
* The compiler may choose to omit this. If it's not `undefined`, it must
|
||||
* contain `text`. Furthermore, `text` must begin at column `start.column` of
|
||||
* a line in `context`.
|
||||
*
|
||||
* > This usually contains the full lines the span begins and ends on if the
|
||||
* > span itself doesn't cover the full lines, but the specific scope is up to
|
||||
* > the compiler.
|
||||
*/
|
||||
context?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* An interface that represents a location in a text file.
|
||||
*/
|
||||
export interface SourceLocation {
|
||||
/**
|
||||
* The 0-based offset of this location within the file it refers to, in terms
|
||||
* of UTF-16 code units.
|
||||
*/
|
||||
offset: number;
|
||||
|
||||
/**
|
||||
* The number of U+000A LINE FEED characters between the beginning of the file
|
||||
* and `offset`, exclusive.
|
||||
*
|
||||
* > In other words, this location's 0-based line.
|
||||
*/
|
||||
line: number;
|
||||
|
||||
/**
|
||||
* The number of UTF-16 code points between the last U+000A LINE FEED
|
||||
* character before `offset` and `offset`, exclusive.
|
||||
*
|
||||
* > In other words, this location's 0-based column.
|
||||
*/
|
||||
column: number;
|
||||
}
|
||||
|
||||
export interface SassException extends Error {
|
||||
/**
|
||||
* The error message.
|
||||
*/
|
||||
message: string;
|
||||
|
||||
/**
|
||||
* The formatted error.
|
||||
*/
|
||||
formatted: string;
|
||||
|
||||
/**
|
||||
* The line number of error.
|
||||
*/
|
||||
line: number;
|
||||
|
||||
/**
|
||||
* The column number of error.
|
||||
*/
|
||||
column: number;
|
||||
|
||||
/**
|
||||
* The status code.
|
||||
*/
|
||||
status: number;
|
||||
|
||||
/**
|
||||
* The filename of error.
|
||||
*
|
||||
* In case file option was not set (in favour of `data`), this will reflect the value `stdin`.
|
||||
*/
|
||||
file: string;
|
||||
}
|
||||
|
||||
export interface Result {
|
||||
/**
|
||||
* The compiled CSS.
|
||||
*
|
||||
* Write this to a file, or serve it out as needed.
|
||||
*/
|
||||
css: Buffer;
|
||||
|
||||
/**
|
||||
* The source map.
|
||||
*/
|
||||
map?: Buffer | undefined;
|
||||
stats: {
|
||||
/**
|
||||
* The path to the scss file, or `data` if the source was not a file.
|
||||
*/
|
||||
entry: string;
|
||||
|
||||
/**
|
||||
* `Date.now()` before the compilation.
|
||||
*/
|
||||
start: number;
|
||||
|
||||
/**
|
||||
* `Date.now()` after the compilation.
|
||||
*/
|
||||
end: number;
|
||||
|
||||
/**
|
||||
* `end - start`
|
||||
*/
|
||||
duration: number;
|
||||
|
||||
/**
|
||||
* Absolute paths to all related files in no particular order.
|
||||
*/
|
||||
includedFiles: string[];
|
||||
};
|
||||
}
|
||||
|
||||
export function render(options: Options, callback: (exception: SassException, result: Result) => void): void;
|
||||
export function renderSync(options: Options): Result;
|
||||
|
||||
export namespace types {
|
||||
abstract class SassType {}
|
||||
|
||||
interface Null extends SassType {
|
||||
NULL: Null;
|
||||
}
|
||||
|
||||
const Null: Null;
|
||||
|
||||
class Number implements SassType {
|
||||
constructor(value: number, unit?: string);
|
||||
getValue(): number;
|
||||
setValue(value: number): void;
|
||||
getUnit(): string;
|
||||
setUnit(unit: string): void;
|
||||
}
|
||||
|
||||
class String implements SassType {
|
||||
constructor(value: string);
|
||||
getValue(): string;
|
||||
setValue(value: string): void;
|
||||
}
|
||||
|
||||
class Boolean<T extends boolean = boolean> implements SassType {
|
||||
constructor(value: T);
|
||||
getValue(): T;
|
||||
static readonly TRUE: Boolean<true>;
|
||||
static readonly FALSE: Boolean<false>;
|
||||
}
|
||||
|
||||
class Color implements SassType {
|
||||
constructor(r: number, g: number, b: number, a?: number);
|
||||
getR(): number;
|
||||
setR(value: number): void;
|
||||
getG(): number;
|
||||
setG(value: number): void;
|
||||
getB(): number;
|
||||
setB(value: number): void;
|
||||
getA(): number;
|
||||
setA(value: number): void;
|
||||
}
|
||||
|
||||
class List<T extends SassType = SassType> implements SassType {
|
||||
constructor(length: number, commaSeparator?: boolean);
|
||||
getValue(index: number): T | undefined;
|
||||
setValue(index: number, value: T): void;
|
||||
getSeparator(): boolean;
|
||||
setSeparator(isComma: boolean): void;
|
||||
getLength(): number;
|
||||
}
|
||||
|
||||
class Map<K extends SassType = SassType, V extends SassType = SassType> implements SassType {
|
||||
constructor(length: number);
|
||||
getValue(index: number): V;
|
||||
setValue(index: number, value: V): void;
|
||||
getKey(index: number): K;
|
||||
setKey(index: number, key: K): void;
|
||||
getLength(): number;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
import { Observable } from '../Observable';
|
||||
import { ReplaySubject } from '../ReplaySubject';
|
||||
import { multicast } from './multicast';
|
||||
import { MonoTypeOperatorFunction, OperatorFunction, TimestampProvider, ObservableInput, ObservedValueOf } from '../types';
|
||||
import { isFunction } from '../util/isFunction';
|
||||
|
||||
/**
|
||||
* Creates a {@link ConnectableObservable} that uses a {@link ReplaySubject}
|
||||
* internally.
|
||||
*
|
||||
* @param bufferSize The buffer size for the underlying {@link ReplaySubject}.
|
||||
* @param windowTime The window time for the underlying {@link ReplaySubject}.
|
||||
* @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}.
|
||||
* @deprecated Will be removed in v8. To create a connectable observable that uses a
|
||||
* {@link ReplaySubject} under the hood, use {@link connectable}.
|
||||
* `source.pipe(publishReplay(size, time, scheduler))` is equivalent to
|
||||
* `connectable(source, { connector: () => new ReplaySubject(size, time, scheduler), resetOnDisconnect: false })`.
|
||||
* If you're using {@link refCount} after `publishReplay`, use the {@link share} operator instead.
|
||||
* `publishReplay(size, time, scheduler), refCount()` is equivalent to
|
||||
* `share({ connector: () => new ReplaySubject(size, time, scheduler), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`.
|
||||
* Details: https://rxjs.dev/deprecations/multicasting
|
||||
*/
|
||||
export function publishReplay<T>(
|
||||
bufferSize?: number,
|
||||
windowTime?: number,
|
||||
timestampProvider?: TimestampProvider
|
||||
): MonoTypeOperatorFunction<T>;
|
||||
|
||||
/**
|
||||
* Creates an observable, that when subscribed to, will create a {@link ReplaySubject},
|
||||
* and pass an observable from it (using [asObservable](api/index/class/Subject#asObservable)) to
|
||||
* the `selector` function, which then returns an observable that is subscribed to before
|
||||
* "connecting" the source to the internal `ReplaySubject`.
|
||||
*
|
||||
* Since this is deprecated, for additional details see the documentation for {@link connect}.
|
||||
*
|
||||
* @param bufferSize The buffer size for the underlying {@link ReplaySubject}.
|
||||
* @param windowTime The window time for the underlying {@link ReplaySubject}.
|
||||
* @param selector A function used to setup the multicast.
|
||||
* @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}.
|
||||
* @deprecated Will be removed in v8. Use the {@link connect} operator instead.
|
||||
* `source.pipe(publishReplay(size, window, selector, scheduler))` is equivalent to
|
||||
* `source.pipe(connect(selector, { connector: () => new ReplaySubject(size, window, scheduler) }))`.
|
||||
* Details: https://rxjs.dev/deprecations/multicasting
|
||||
*/
|
||||
export function publishReplay<T, O extends ObservableInput<any>>(
|
||||
bufferSize: number | undefined,
|
||||
windowTime: number | undefined,
|
||||
selector: (shared: Observable<T>) => O,
|
||||
timestampProvider?: TimestampProvider
|
||||
): OperatorFunction<T, ObservedValueOf<O>>;
|
||||
|
||||
/**
|
||||
* Creates a {@link ConnectableObservable} that uses a {@link ReplaySubject}
|
||||
* internally.
|
||||
*
|
||||
* @param bufferSize The buffer size for the underlying {@link ReplaySubject}.
|
||||
* @param windowTime The window time for the underlying {@link ReplaySubject}.
|
||||
* @param selector Passing `undefined` here determines that this operator will return a {@link ConnectableObservable}.
|
||||
* @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}.
|
||||
* @deprecated Will be removed in v8. To create a connectable observable that uses a
|
||||
* {@link ReplaySubject} under the hood, use {@link connectable}.
|
||||
* `source.pipe(publishReplay(size, time, scheduler))` is equivalent to
|
||||
* `connectable(source, { connector: () => new ReplaySubject(size, time, scheduler), resetOnDisconnect: false })`.
|
||||
* If you're using {@link refCount} after `publishReplay`, use the {@link share} operator instead.
|
||||
* `publishReplay(size, time, scheduler), refCount()` is equivalent to
|
||||
* `share({ connector: () => new ReplaySubject(size, time, scheduler), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`.
|
||||
* Details: https://rxjs.dev/deprecations/multicasting
|
||||
*/
|
||||
export function publishReplay<T, O extends ObservableInput<any>>(
|
||||
bufferSize: number | undefined,
|
||||
windowTime: number | undefined,
|
||||
selector: undefined,
|
||||
timestampProvider: TimestampProvider
|
||||
): OperatorFunction<T, ObservedValueOf<O>>;
|
||||
|
||||
/**
|
||||
* @deprecated Will be removed in v8. Use the {@link connectable} observable, the {@link connect} operator or the
|
||||
* {@link share} operator instead. See the overloads below for equivalent replacement examples of this operator's
|
||||
* behaviors.
|
||||
* Details: https://rxjs.dev/deprecations/multicasting
|
||||
*/
|
||||
export function publishReplay<T, R>(
|
||||
bufferSize?: number,
|
||||
windowTime?: number,
|
||||
selectorOrScheduler?: TimestampProvider | OperatorFunction<T, R>,
|
||||
timestampProvider?: TimestampProvider
|
||||
) {
|
||||
if (selectorOrScheduler && !isFunction(selectorOrScheduler)) {
|
||||
timestampProvider = selectorOrScheduler;
|
||||
}
|
||||
const selector = isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined;
|
||||
// Note, we're passing `selector!` here, because at runtime, `undefined` is an acceptable argument
|
||||
// but it makes our TypeScript signature for `multicast` unhappy (as it should, because it's gross).
|
||||
return (source: Observable<T>) => multicast(new ReplaySubject<T>(bufferSize, windowTime, timestampProvider), selector!)(source);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"rules": {
|
||||
"consistent-return": 1,
|
||||
"sort-keys": 0,
|
||||
},
|
||||
|
||||
"overrides": [
|
||||
{
|
||||
"files": "example/**",
|
||||
"rules": {
|
||||
"no-console": 0,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure';
|
||||
|
||||
declare function ensureSet<T>(value: any, options?: EnsureBaseOptions): Set<T>;
|
||||
declare function ensureSet<T>(value: any, options?: EnsureBaseOptions & EnsureIsOptional): Set<T> | null;
|
||||
declare function ensureSet<T>(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault<Set<T>>): Set<T>;
|
||||
|
||||
export default ensureSet;
|
||||
@@ -0,0 +1,33 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
|
||||
var IsArray = require('./IsArray');
|
||||
|
||||
var isByteValue = require('../helpers/isByteValue');
|
||||
|
||||
// https://262.ecma-international.org/12.0/#sec-bytelistequal
|
||||
|
||||
module.exports = function ByteListEqual(xBytes, yBytes) {
|
||||
if (!IsArray(xBytes) || !IsArray(yBytes)) {
|
||||
throw new $TypeError('Assertion failed: `xBytes` and `yBytes` must be sequences of byte values (an integer 0-255, inclusive)');
|
||||
}
|
||||
|
||||
if (xBytes.length !== yBytes.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var i = 0; i < xBytes.length; i += 1) {
|
||||
var xByte = xBytes[i];
|
||||
var yByte = yBytes[i];
|
||||
if (!isByteValue(xByte) || !isByteValue(yByte)) {
|
||||
throw new $TypeError('Assertion failed: `xBytes` and `yBytes` must be sequences of byte values (an integer 0-255, inclusive)');
|
||||
}
|
||||
if (xByte !== yByte) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
};
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Eric Elliott
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,4 @@
|
||||
/** Used to match template delimiters. */
|
||||
var reEvaluate = /<%([\s\S]+?)%>/g;
|
||||
|
||||
module.exports = reEvaluate;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Error subclass to use when an HTTP application error has occurred.
|
||||
*/
|
||||
export default class HTTPError extends Error {
|
||||
code: string;
|
||||
statusCode: number;
|
||||
constructor(statusCode: number, message?: string | undefined);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,17 @@
|
||||
import { operate } from '../util/lift';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
export function every(predicate, thisArg) {
|
||||
return operate((source, subscriber) => {
|
||||
let index = 0;
|
||||
source.subscribe(createOperatorSubscriber(subscriber, (value) => {
|
||||
if (!predicate.call(thisArg, value, index++, source)) {
|
||||
subscriber.next(false);
|
||||
subscriber.complete();
|
||||
}
|
||||
}, () => {
|
||||
subscriber.next(true);
|
||||
subscriber.complete();
|
||||
}));
|
||||
});
|
||||
}
|
||||
//# sourceMappingURL=every.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
Copyright (c) 2015-20 [these people](https://github.com/Rich-Harris/estree-walker/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.
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H","2":"C K"},C:{"1":"0 1 2 3 4 5 6 7 8 9 y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2":"DC tB I v J D E F A B C K L G M N O w g x EC FC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R 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":"I","36":"v J D E F A B C K L G M N O w g x"},E:{"1":"J D E F A B C K L G JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v HC zB IC"},F:{"1":"1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"0 F B C G M N O w g x y z PC QC RC SC qB AC TC rB"},G:{"2":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B","1028":"9B"},H:{"2":"oC"},I:{"2":"tB I pC qC rC sC BC","36":"f tC uC"},J:{"1":"A","2":"D"},K:{"2":"A B C qB AC rB","36":"h"},L:{"513":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"1":"vC"},P:{"36":"I","258":"g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"2":"1B"},R:{"258":"9C"},S:{"1":"AD BD"}},B:1,C:"Web Notifications"};
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,93 @@
|
||||
// @flow strict
|
||||
|
||||
type TemplateStringsArray = $ReadOnlyArray<string>;
|
||||
|
||||
export type Level = $Values<{
|
||||
None: 0,
|
||||
Basic: 1,
|
||||
Ansi256: 2,
|
||||
TrueColor: 3
|
||||
}>;
|
||||
|
||||
export type ChalkOptions = {|
|
||||
enabled?: boolean,
|
||||
level?: Level
|
||||
|};
|
||||
|
||||
export type ColorSupport = {|
|
||||
level: Level,
|
||||
hasBasic: boolean,
|
||||
has256: boolean,
|
||||
has16m: boolean
|
||||
|};
|
||||
|
||||
export interface Chalk {
|
||||
(...text: string[]): string,
|
||||
(text: TemplateStringsArray, ...placeholders: string[]): string,
|
||||
constructor(options?: ChalkOptions): Chalk,
|
||||
enabled: boolean,
|
||||
level: Level,
|
||||
rgb(r: number, g: number, b: number): Chalk,
|
||||
hsl(h: number, s: number, l: number): Chalk,
|
||||
hsv(h: number, s: number, v: number): Chalk,
|
||||
hwb(h: number, w: number, b: number): Chalk,
|
||||
bgHex(color: string): Chalk,
|
||||
bgKeyword(color: string): Chalk,
|
||||
bgRgb(r: number, g: number, b: number): Chalk,
|
||||
bgHsl(h: number, s: number, l: number): Chalk,
|
||||
bgHsv(h: number, s: number, v: number): Chalk,
|
||||
bgHwb(h: number, w: number, b: number): Chalk,
|
||||
hex(color: string): Chalk,
|
||||
keyword(color: string): Chalk,
|
||||
|
||||
+reset: Chalk,
|
||||
+bold: Chalk,
|
||||
+dim: Chalk,
|
||||
+italic: Chalk,
|
||||
+underline: Chalk,
|
||||
+inverse: Chalk,
|
||||
+hidden: Chalk,
|
||||
+strikethrough: Chalk,
|
||||
|
||||
+visible: Chalk,
|
||||
|
||||
+black: Chalk,
|
||||
+red: Chalk,
|
||||
+green: Chalk,
|
||||
+yellow: Chalk,
|
||||
+blue: Chalk,
|
||||
+magenta: Chalk,
|
||||
+cyan: Chalk,
|
||||
+white: Chalk,
|
||||
+gray: Chalk,
|
||||
+grey: Chalk,
|
||||
+blackBright: Chalk,
|
||||
+redBright: Chalk,
|
||||
+greenBright: Chalk,
|
||||
+yellowBright: Chalk,
|
||||
+blueBright: Chalk,
|
||||
+magentaBright: Chalk,
|
||||
+cyanBright: Chalk,
|
||||
+whiteBright: Chalk,
|
||||
|
||||
+bgBlack: Chalk,
|
||||
+bgRed: Chalk,
|
||||
+bgGreen: Chalk,
|
||||
+bgYellow: Chalk,
|
||||
+bgBlue: Chalk,
|
||||
+bgMagenta: Chalk,
|
||||
+bgCyan: Chalk,
|
||||
+bgWhite: Chalk,
|
||||
+bgBlackBright: Chalk,
|
||||
+bgRedBright: Chalk,
|
||||
+bgGreenBright: Chalk,
|
||||
+bgYellowBright: Chalk,
|
||||
+bgBlueBright: Chalk,
|
||||
+bgMagentaBright: Chalk,
|
||||
+bgCyanBright: Chalk,
|
||||
+bgWhiteBrigh: Chalk,
|
||||
|
||||
supportsColor: ColorSupport
|
||||
};
|
||||
|
||||
declare module.exports: Chalk;
|
||||
@@ -0,0 +1,47 @@
|
||||
'use strict';
|
||||
const path = require('path');
|
||||
const pathKey = require('path-key');
|
||||
|
||||
const npmRunPath = options => {
|
||||
options = {
|
||||
cwd: process.cwd(),
|
||||
path: process.env[pathKey()],
|
||||
execPath: process.execPath,
|
||||
...options
|
||||
};
|
||||
|
||||
let previous;
|
||||
let cwdPath = path.resolve(options.cwd);
|
||||
const result = [];
|
||||
|
||||
while (previous !== cwdPath) {
|
||||
result.push(path.join(cwdPath, 'node_modules/.bin'));
|
||||
previous = cwdPath;
|
||||
cwdPath = path.resolve(cwdPath, '..');
|
||||
}
|
||||
|
||||
// Ensure the running `node` binary is used
|
||||
const execPathDir = path.resolve(options.cwd, options.execPath, '..');
|
||||
result.push(execPathDir);
|
||||
|
||||
return result.concat(options.path).join(path.delimiter);
|
||||
};
|
||||
|
||||
module.exports = npmRunPath;
|
||||
// TODO: Remove this for the next major release
|
||||
module.exports.default = npmRunPath;
|
||||
|
||||
module.exports.env = options => {
|
||||
options = {
|
||||
env: process.env,
|
||||
...options
|
||||
};
|
||||
|
||||
const env = {...options.env};
|
||||
const path = pathKey({env});
|
||||
|
||||
options.path = env[path];
|
||||
env[path] = module.exports(options);
|
||||
|
||||
return env;
|
||||
};
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "proxy-agent",
|
||||
"version": "5.0.0",
|
||||
"description": "Maps proxy protocols to `http.Agent` implementations",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "mocha --reporter spec"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 8"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/TooTallNate/node-proxy-agent.git"
|
||||
},
|
||||
"keywords": [
|
||||
"http",
|
||||
"https",
|
||||
"socks",
|
||||
"agent",
|
||||
"mapping",
|
||||
"proxy",
|
||||
"cache"
|
||||
],
|
||||
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/TooTallNate/node-proxy-agent/issues"
|
||||
},
|
||||
"homepage": "https://github.com/TooTallNate/node-proxy-agent",
|
||||
"dependencies": {
|
||||
"agent-base": "^6.0.0",
|
||||
"debug": "4",
|
||||
"http-proxy-agent": "^4.0.0",
|
||||
"https-proxy-agent": "^5.0.0",
|
||||
"lru-cache": "^5.1.1",
|
||||
"pac-proxy-agent": "^5.0.0",
|
||||
"proxy-from-env": "^1.0.0",
|
||||
"socks-proxy-agent": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/agent-base": "^4.2.0",
|
||||
"mocha": "^6.2.1",
|
||||
"proxy": "^1.0.1",
|
||||
"socksv5": "0.0.6",
|
||||
"stream-to-buffer": "0.1.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"E F A B","4":"CC","132":"J D"},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 tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB EC FC","36":"DC"},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":"I v J D E F A B C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 F B C G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB 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 PC QC RC SC qB AC TC rB"},G:{"1":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},H:{"1":"oC"},I:{"1":"tB I f pC qC rC sC BC tC uC"},J:{"1":"D A"},K:{"1":"A B C h qB AC rB"},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:2,C:"CSS inline-block"};
|
||||
Reference in New Issue
Block a user