new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
|
||||
"name": "minimatch",
|
||||
"description": "a glob matcher in javascript",
|
||||
"version": "3.1.2",
|
||||
"publishConfig": {
|
||||
"tag": "v3-legacy"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/isaacs/minimatch.git"
|
||||
},
|
||||
"main": "minimatch.js",
|
||||
"scripts": {
|
||||
"test": "tap",
|
||||
"preversion": "npm test",
|
||||
"postversion": "npm publish",
|
||||
"postpublish": "git push origin --all; git push origin --tags"
|
||||
},
|
||||
"engines": {
|
||||
"node": "*"
|
||||
},
|
||||
"dependencies": {
|
||||
"brace-expansion": "^1.1.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"tap": "^15.1.6"
|
||||
},
|
||||
"license": "ISC",
|
||||
"files": [
|
||||
"minimatch.js"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"safe-regex-test","version":"1.0.0","files":{"LICENSE":{"checkedAt":1678883671602,"integrity":"sha512-zSWZlPMHqdrYcu0iKn0DZJ7EU8PHWsyOsYC+m2L4TRgwzvU+9Xsi8DCgqVoMt3xcoyvGCZp05dGObt+3xshLBw==","mode":420,"size":1071},".eslintrc":{"checkedAt":1678883671708,"integrity":"sha512-EBDRW6cKPexAflK5TvXZbx9EvGejXIyoPbyjoNOLl5Echn8KK7Z7Gs0WknJhkWSuAIaaX8pLKKihPo6R+hPg1Q==","mode":420,"size":122},"index.js":{"checkedAt":1678883671708,"integrity":"sha512-55pbKi6nLrnNe5F6U4SGZWEB4rz3F3moDcmQsePkl7MprNE02lHJnNxIc74BN6dXO4SbNwYRl3M/+uwee+A2mQ==","mode":420,"size":434},"test/index.js":{"checkedAt":1678883671708,"integrity":"sha512-/ZDSNI7rWFZiwI0Qtfj+ZAliLzTdqkXYwc2Y+t5U3lxKMaHVucArl4ViQ2qLRZFJk23xAoFwM20UUt8iLP7NEQ==","mode":420,"size":878},"CHANGELOG.md":{"checkedAt":1678883671708,"integrity":"sha512-hCHz8raW1WjKC88MyKDeYyCKB3I9tWn6th1jSdAOVQz5uxl5apGoxAwAVJdtz+nGuPhMXlURAvwIDulrXx3bPw==","mode":420,"size":803},"package.json":{"checkedAt":1678883671708,"integrity":"sha512-+KVioZ36TB6IObfEdPN3ofFSrVr9rOb6REx+duuueeTaRnsjSin2OjUXW9uC7ZxVfjWlwMlZDKn1Ut2eFHJskw==","mode":420,"size":1951},"README.md":{"checkedAt":1678883671708,"integrity":"sha512-eZeOhWusSFb2ruL8TpbTEskzGB3PDMIThzcDZC8DEwzUg+c6BYT7Mq3EGxBtFBvw43kbwNmdzjvV14MjrIisog==","mode":420,"size":1487},".github/FUNDING.yml":{"checkedAt":1678883671708,"integrity":"sha512-TGZqAhBMHbhTCfCT8T6ONDQvaV9qM11rdJSG7+4xFjQ8oF35q7fORDZJiS+OkzzLOXVEkImW4oQIf6WTo1He0w==","mode":420,"size":586}}}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"of.js","sourceRoot":"","sources":["../../../../src/internal/observable/of.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA4E9B,MAAM,UAAU,EAAE;IAAI,cAAiC;SAAjC,UAAiC,EAAjC,qBAAiC,EAAjC,IAAiC;QAAjC,yBAAiC;;IACrD,IAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,IAAI,CAAC,IAAW,EAAE,SAAS,CAAC,CAAC;AACtC,CAAC"}
|
||||
@@ -0,0 +1,102 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Code coverage report for csv2json/libs/core/defaultParsers/parser_json.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_json.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/39</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>0/34</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>0/2</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>0/39</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_json.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_json.js')
|
||||
Error: Unable to lookup source: /Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_json.js(ENOENT: no such file or directory, open '/Users/kxiang/work/projects/csv2json/libs/core/defaultParsers/parser_json.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,21 @@
|
||||
"use strict";
|
||||
|
||||
var isValue = require("../value/is")
|
||||
, isObject = require("../object/is")
|
||||
, stringCoerce = require("../string/coerce")
|
||||
, toShortString = require("./to-short-string");
|
||||
|
||||
var resolveMessage = function (message, value) {
|
||||
return message.replace("%v", toShortString(value));
|
||||
};
|
||||
|
||||
module.exports = function (value, defaultMessage, inputOptions) {
|
||||
if (!isObject(inputOptions)) throw new TypeError(resolveMessage(defaultMessage, value));
|
||||
if (!isValue(value)) {
|
||||
if ("default" in inputOptions) return inputOptions["default"];
|
||||
if (inputOptions.isOptional) return null;
|
||||
}
|
||||
var errorMessage = stringCoerce(inputOptions.errorMessage);
|
||||
if (!isValue(errorMessage)) errorMessage = defaultMessage;
|
||||
throw new TypeError(resolveMessage(errorMessage, value));
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"timeoutWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeoutWith.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAC3C,yCAA6C;AAE7C,qCAAoC;AA+EpC,SAAgB,WAAW,CACzB,GAAkB,EAClB,cAAkC,EAClC,SAAyB;IAEzB,IAAI,KAAgC,CAAC;IACrC,IAAI,IAAwB,CAAC;IAC7B,IAAI,KAA+B,CAAC;IACpC,SAAS,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,aAAK,CAAC;IAE/B,IAAI,oBAAW,CAAC,GAAG,CAAC,EAAE;QACpB,KAAK,GAAG,GAAG,CAAC;KACb;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAClC,IAAI,GAAG,GAAG,CAAC;KACZ;IAED,IAAI,cAAc,EAAE;QAClB,KAAK,GAAG,cAAM,OAAA,cAAc,EAAd,CAAc,CAAC;KAC9B;SAAM;QACL,MAAM,IAAI,SAAS,CAAC,qCAAqC,CAAC,CAAC;KAC5D;IAED,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE;QAEjC,MAAM,IAAI,SAAS,CAAC,sBAAsB,CAAC,CAAC;KAC7C;IAED,OAAO,iBAAO,CAAwB;QACpC,KAAK,OAAA;QACL,IAAI,MAAA;QACJ,SAAS,WAAA;QACT,IAAI,EAAE,KAAK;KACZ,CAAC,CAAC;AACL,CAAC;AAjCD,kCAiCC"}
|
||||
@@ -0,0 +1,72 @@
|
||||
var bgColors = [
|
||||
"linear-gradient(to right, #00b09b, #96c93d)",
|
||||
"linear-gradient(to right, #ff5f6d, #ffc371)",
|
||||
],
|
||||
i = 0;
|
||||
|
||||
Toastify({
|
||||
text: "Hi",
|
||||
duration: 4500,
|
||||
destination: "https://github.com/apvarun/toastify-js",
|
||||
newWindow: true,
|
||||
gravity: "top",
|
||||
position: 'left',
|
||||
}).showToast();
|
||||
|
||||
setTimeout(function() {
|
||||
Toastify({
|
||||
text: "Simple JavaScript Toasts",
|
||||
gravity: "top",
|
||||
position: 'center',
|
||||
style: {
|
||||
background: '#0f3443'
|
||||
}
|
||||
}).showToast();
|
||||
}, 1000);
|
||||
|
||||
// Options for the toast
|
||||
var options = {
|
||||
text: "Happy toasting!",
|
||||
duration: 2500,
|
||||
callback: function() {
|
||||
console.log("Toast hidden");
|
||||
Toastify.reposition();
|
||||
},
|
||||
close: true,
|
||||
style: {
|
||||
background: "linear-gradient(to right, #00b09b, #96c93d)",
|
||||
}
|
||||
};
|
||||
|
||||
// Initializing the toast
|
||||
var myToast = Toastify(options);
|
||||
|
||||
// Toast after delay
|
||||
setTimeout(function() {
|
||||
myToast.showToast();
|
||||
}, 4500);
|
||||
|
||||
setTimeout(function() {
|
||||
Toastify({
|
||||
text: "Highly customizable",
|
||||
gravity: "bottom",
|
||||
position: 'left',
|
||||
close: true,
|
||||
style: {
|
||||
background: "linear-gradient(to right, #ff5f6d, #ffc371)",
|
||||
}
|
||||
}).showToast();
|
||||
}, 3000);
|
||||
|
||||
// Displaying toast on manual action `Try`
|
||||
document.getElementById("new-toast").addEventListener("click", function() {
|
||||
Toastify({
|
||||
text: "I am a toast",
|
||||
duration: 3000,
|
||||
close: i % 3 ? true : false,
|
||||
style: {
|
||||
background: bgColors[i % 2],
|
||||
}
|
||||
}).showToast();
|
||||
i++;
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"is-npm","version":"6.0.0","files":{"license":{"checkedAt":1678883669302,"integrity":"sha512-0fM2/ycrxrltyaBKfQ748Ck23VlPUUBgNAR47ldf4B1V/HoXTfWBSk+vcshGKwEpmOynu4mOP5o+hyBfuRNa8g==","mode":420,"size":1117},"index.js":{"checkedAt":1678883672616,"integrity":"sha512-GROZ8xNXjEdEYRZI7wrvv9sFgGD+m6ZdH9Di381LqEoFAuC0+8Epvg37uAOvuNG2BPUxHDJROoKqqWxRU8xlPQ==","mode":420,"size":441},"package.json":{"checkedAt":1678883672616,"integrity":"sha512-LMaz4v3AhmCjcmle8LKU2QKhQ5Yr5iv9tMlMNi6bNtn6ttJkX0mAzbHC3Cugu/JBIdG9B6+wYFMgkv5xL/8QvA==","mode":420,"size":738},"index.d.ts":{"checkedAt":1678883672616,"integrity":"sha512-jFhtNEMzG+fx70C8Vs6s9RgKl/o2jWDTFWtYG3gqad5ZirZarC/D2GSOtCKghclivo9WR0kjBzWq/pUf4bAv4g==","mode":420,"size":780},"readme.md":{"checkedAt":1678883672616,"integrity":"sha512-CfZGnlKi4JysdxhhOaDpdzJfdNFz8WTrtM/fOYsd7d1Yh6yoNWzLTE1peaLxB6OClUdjgm4clX8G44bxT/xjww==","mode":420,"size":1960}}}
|
||||
@@ -0,0 +1,21 @@
|
||||
Copyright JS Foundation and other contributors, https://js.foundation/
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
||||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"scheduleAsyncIterable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleAsyncIterable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,UAAU,qBAAqB,CAAI,KAAuB,EAAE,SAAwB;IACxF,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,UAAU,CAAI,CAAC,UAAU,EAAE,EAAE;QACtC,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE;YAC1C,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/C,eAAe,CACb,UAAU,EACV,SAAS,EACT,GAAG,EAAE;gBACH,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;oBAC9B,IAAI,MAAM,CAAC,IAAI,EAAE;wBAGf,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;yBAAM;wBACL,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;qBAC/B;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"isDate.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isDate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,IAAI,CAErD"}
|
||||
@@ -0,0 +1,71 @@
|
||||
var test = require('tape')
|
||||
var through = require('../')
|
||||
|
||||
// must emit end before close.
|
||||
|
||||
test('buffering', function(assert) {
|
||||
var ts = through(function (data) {
|
||||
this.queue(data)
|
||||
}, function () {
|
||||
this.queue(null)
|
||||
})
|
||||
|
||||
var ended = false, actual = []
|
||||
|
||||
ts.on('data', actual.push.bind(actual))
|
||||
ts.on('end', function () {
|
||||
ended = true
|
||||
})
|
||||
|
||||
ts.write(1)
|
||||
ts.write(2)
|
||||
ts.write(3)
|
||||
assert.deepEqual(actual, [1, 2, 3])
|
||||
ts.pause()
|
||||
ts.write(4)
|
||||
ts.write(5)
|
||||
ts.write(6)
|
||||
assert.deepEqual(actual, [1, 2, 3])
|
||||
ts.resume()
|
||||
assert.deepEqual(actual, [1, 2, 3, 4, 5, 6])
|
||||
ts.pause()
|
||||
ts.end()
|
||||
assert.ok(!ended)
|
||||
ts.resume()
|
||||
assert.ok(ended)
|
||||
assert.end()
|
||||
})
|
||||
|
||||
test('buffering has data in queue, when ends', function (assert) {
|
||||
|
||||
/*
|
||||
* If stream ends while paused with data in the queue,
|
||||
* stream should still emit end after all data is written
|
||||
* on resume.
|
||||
*/
|
||||
|
||||
var ts = through(function (data) {
|
||||
this.queue(data)
|
||||
}, function () {
|
||||
this.queue(null)
|
||||
})
|
||||
|
||||
var ended = false, actual = []
|
||||
|
||||
ts.on('data', actual.push.bind(actual))
|
||||
ts.on('end', function () {
|
||||
ended = true
|
||||
})
|
||||
|
||||
ts.pause()
|
||||
ts.write(1)
|
||||
ts.write(2)
|
||||
ts.write(3)
|
||||
ts.end()
|
||||
assert.deepEqual(actual, [], 'no data written yet, still paused')
|
||||
assert.ok(!ended, 'end not emitted yet, still paused')
|
||||
ts.resume()
|
||||
assert.deepEqual(actual, [1, 2, 3], 'resumed, all data should be delivered')
|
||||
assert.ok(ended, 'end should be emitted once all data was delivered')
|
||||
assert.end();
|
||||
})
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v2.79.1
|
||||
Thu, 22 Sep 2022 04:55:29 GMT - commit 69ff4181e701a0fe0026d0ba147f31bc86beffa8
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
Released under the MIT License.
|
||||
*/
|
||||
export { version as VERSION, defineConfig, rollup, watch } from './shared/rollup.js';
|
||||
import 'path';
|
||||
import 'process';
|
||||
import 'perf_hooks';
|
||||
import 'crypto';
|
||||
import 'fs';
|
||||
import 'events';
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
var resolveException = require("../lib/resolve-exception")
|
||||
, coerce = require("./coerce");
|
||||
|
||||
module.exports = function (value/*, options*/) {
|
||||
var coerced = coerce(value);
|
||||
if (coerced !== null) return coerced;
|
||||
return resolveException(value, "%v is not a natural number", arguments[1]);
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
export declare function removeUndefinedProperties(obj: any): any;
|
||||
@@ -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":"pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB EC FC"},D:{"1":"aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC","2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB"},E:{"1":"9B OC","2":"I v J D E F A B C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B"},F:{"1":"PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"0 1 2 3 4 5 6 7 8 9 F B C G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PC QC RC SC qB AC TC rB"},G:{"1":"9B","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"},H:{"2":"oC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"1":"vC"},P:{"1":"g zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","2":"I wC xC yC"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"BD","2":"AD"}},B:6,C:"Lookbehind in JS regular expressions"};
|
||||
@@ -0,0 +1,209 @@
|
||||
|
||||
/**
|
||||
* Require the given path.
|
||||
*
|
||||
* @param {String} path
|
||||
* @return {Object} exports
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function require(path, parent, orig) {
|
||||
var resolved = require.resolve(path);
|
||||
|
||||
// lookup failed
|
||||
if (null == resolved) {
|
||||
orig = orig || path;
|
||||
parent = parent || 'root';
|
||||
var err = new Error('Failed to require "' + orig + '" from "' + parent + '"');
|
||||
err.path = orig;
|
||||
err.parent = parent;
|
||||
err.require = true;
|
||||
throw err;
|
||||
}
|
||||
|
||||
var module = require.modules[resolved];
|
||||
|
||||
// perform real require()
|
||||
// by invoking the module's
|
||||
// registered function
|
||||
if (!module.exports) {
|
||||
module.exports = {};
|
||||
module.client = module.component = true;
|
||||
module.call(this, module.exports, require.relative(resolved), module);
|
||||
}
|
||||
|
||||
return module.exports;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registered modules.
|
||||
*/
|
||||
|
||||
require.modules = {};
|
||||
|
||||
/**
|
||||
* Registered aliases.
|
||||
*/
|
||||
|
||||
require.aliases = {};
|
||||
|
||||
/**
|
||||
* Resolve `path`.
|
||||
*
|
||||
* Lookup:
|
||||
*
|
||||
* - PATH/index.js
|
||||
* - PATH.js
|
||||
* - PATH
|
||||
*
|
||||
* @param {String} path
|
||||
* @return {String} path or null
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.resolve = function(path) {
|
||||
if (path.charAt(0) === '/') path = path.slice(1);
|
||||
var index = path + '/index.js';
|
||||
|
||||
var paths = [
|
||||
path,
|
||||
path + '.js',
|
||||
path + '.json',
|
||||
path + '/index.js',
|
||||
path + '/index.json'
|
||||
];
|
||||
|
||||
for (var i = 0; i < paths.length; i++) {
|
||||
var path = paths[i];
|
||||
if (require.modules.hasOwnProperty(path)) return path;
|
||||
}
|
||||
|
||||
if (require.aliases.hasOwnProperty(index)) {
|
||||
return require.aliases[index];
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Normalize `path` relative to the current path.
|
||||
*
|
||||
* @param {String} curr
|
||||
* @param {String} path
|
||||
* @return {String}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.normalize = function(curr, path) {
|
||||
var segs = [];
|
||||
|
||||
if ('.' != path.charAt(0)) return path;
|
||||
|
||||
curr = curr.split('/');
|
||||
path = path.split('/');
|
||||
|
||||
for (var i = 0; i < path.length; ++i) {
|
||||
if ('..' == path[i]) {
|
||||
curr.pop();
|
||||
} else if ('.' != path[i] && '' != path[i]) {
|
||||
segs.push(path[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return curr.concat(segs).join('/');
|
||||
};
|
||||
|
||||
/**
|
||||
* Register module at `path` with callback `definition`.
|
||||
*
|
||||
* @param {String} path
|
||||
* @param {Function} definition
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.register = function(path, definition) {
|
||||
require.modules[path] = definition;
|
||||
};
|
||||
|
||||
/**
|
||||
* Alias a module definition.
|
||||
*
|
||||
* @param {String} from
|
||||
* @param {String} to
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.alias = function(from, to) {
|
||||
if (!require.modules.hasOwnProperty(from)) {
|
||||
throw new Error('Failed to alias "' + from + '", it does not exist');
|
||||
}
|
||||
require.aliases[to] = from;
|
||||
};
|
||||
|
||||
/**
|
||||
* Return a require function relative to the `parent` path.
|
||||
*
|
||||
* @param {String} parent
|
||||
* @return {Function}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.relative = function(parent) {
|
||||
var p = require.normalize(parent, '..');
|
||||
|
||||
/**
|
||||
* lastIndexOf helper.
|
||||
*/
|
||||
|
||||
function lastIndexOf(arr, obj) {
|
||||
var i = arr.length;
|
||||
while (i--) {
|
||||
if (arr[i] === obj) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* The relative require() itself.
|
||||
*/
|
||||
|
||||
function localRequire(path) {
|
||||
var resolved = localRequire.resolve(path);
|
||||
return require(resolved, parent, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve relative to the parent.
|
||||
*/
|
||||
|
||||
localRequire.resolve = function(path) {
|
||||
var c = path.charAt(0);
|
||||
if ('/' == c) return path.slice(1);
|
||||
if ('.' == c) return require.normalize(p, path);
|
||||
|
||||
// resolve deps by returning
|
||||
// the dep in the nearest "deps"
|
||||
// directory
|
||||
var segs = parent.split('/');
|
||||
var i = lastIndexOf(segs, 'deps') + 1;
|
||||
if (!i) i = 0;
|
||||
path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
|
||||
return path;
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if module is defined at `path`.
|
||||
*/
|
||||
|
||||
localRequire.exists = function(path) {
|
||||
return require.modules.hasOwnProperty(localRequire.resolve(path));
|
||||
};
|
||||
|
||||
return localRequire;
|
||||
};
|
||||
require.register("isarray/index.js", function(exports, require, module){
|
||||
module.exports = Array.isArray || function (arr) {
|
||||
return Object.prototype.toString.call(arr) == '[object Array]';
|
||||
};
|
||||
|
||||
});
|
||||
require.alias("isarray/index.js", "isarray/index.js");
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
'use strict';
|
||||
|
||||
/* eslint global-require: 0 */
|
||||
// https://262.ecma-international.org/6.0/#sec-abstract-operations
|
||||
var ES2015 = {
|
||||
'Abstract Equality Comparison': require('./2015/AbstractEqualityComparison'),
|
||||
'Abstract Relational Comparison': require('./2015/AbstractRelationalComparison'),
|
||||
'Strict Equality Comparison': require('./2015/StrictEqualityComparison'),
|
||||
abs: require('./2015/abs'),
|
||||
AdvanceStringIndex: require('./2015/AdvanceStringIndex'),
|
||||
ArrayCreate: require('./2015/ArrayCreate'),
|
||||
ArraySetLength: require('./2015/ArraySetLength'),
|
||||
ArraySpeciesCreate: require('./2015/ArraySpeciesCreate'),
|
||||
Call: require('./2015/Call'),
|
||||
CanonicalNumericIndexString: require('./2015/CanonicalNumericIndexString'),
|
||||
CharacterRange: require('./2015/CharacterRange'),
|
||||
CompletePropertyDescriptor: require('./2015/CompletePropertyDescriptor'),
|
||||
CompletionRecord: require('./2015/CompletionRecord'),
|
||||
CreateDataProperty: require('./2015/CreateDataProperty'),
|
||||
CreateDataPropertyOrThrow: require('./2015/CreateDataPropertyOrThrow'),
|
||||
CreateHTML: require('./2015/CreateHTML'),
|
||||
CreateIterResultObject: require('./2015/CreateIterResultObject'),
|
||||
CreateListFromArrayLike: require('./2015/CreateListFromArrayLike'),
|
||||
CreateMethodProperty: require('./2015/CreateMethodProperty'),
|
||||
DateFromTime: require('./2015/DateFromTime'),
|
||||
Day: require('./2015/Day'),
|
||||
DayFromYear: require('./2015/DayFromYear'),
|
||||
DaysInYear: require('./2015/DaysInYear'),
|
||||
DayWithinYear: require('./2015/DayWithinYear'),
|
||||
DefinePropertyOrThrow: require('./2015/DefinePropertyOrThrow'),
|
||||
DeletePropertyOrThrow: require('./2015/DeletePropertyOrThrow'),
|
||||
DetachArrayBuffer: require('./2015/DetachArrayBuffer'),
|
||||
EnumerableOwnNames: require('./2015/EnumerableOwnNames'),
|
||||
floor: require('./2015/floor'),
|
||||
FromPropertyDescriptor: require('./2015/FromPropertyDescriptor'),
|
||||
Get: require('./2015/Get'),
|
||||
GetGlobalObject: require('./2015/GetGlobalObject'),
|
||||
GetIterator: require('./2015/GetIterator'),
|
||||
GetMethod: require('./2015/GetMethod'),
|
||||
GetOwnPropertyKeys: require('./2015/GetOwnPropertyKeys'),
|
||||
GetPrototypeFromConstructor: require('./2015/GetPrototypeFromConstructor'),
|
||||
GetSubstitution: require('./2015/GetSubstitution'),
|
||||
GetV: require('./2015/GetV'),
|
||||
HasOwnProperty: require('./2015/HasOwnProperty'),
|
||||
HasProperty: require('./2015/HasProperty'),
|
||||
HourFromTime: require('./2015/HourFromTime'),
|
||||
InLeapYear: require('./2015/InLeapYear'),
|
||||
InstanceofOperator: require('./2015/InstanceofOperator'),
|
||||
Invoke: require('./2015/Invoke'),
|
||||
IsAccessorDescriptor: require('./2015/IsAccessorDescriptor'),
|
||||
IsArray: require('./2015/IsArray'),
|
||||
IsCallable: require('./2015/IsCallable'),
|
||||
IsCompatiblePropertyDescriptor: require('./2015/IsCompatiblePropertyDescriptor'),
|
||||
IsConcatSpreadable: require('./2015/IsConcatSpreadable'),
|
||||
IsConstructor: require('./2015/IsConstructor'),
|
||||
IsDataDescriptor: require('./2015/IsDataDescriptor'),
|
||||
IsDetachedBuffer: require('./2015/IsDetachedBuffer'),
|
||||
IsExtensible: require('./2015/IsExtensible'),
|
||||
IsGenericDescriptor: require('./2015/IsGenericDescriptor'),
|
||||
IsInteger: require('./2015/IsInteger'),
|
||||
IsPromise: require('./2015/IsPromise'),
|
||||
IsPropertyDescriptor: require('./2015/IsPropertyDescriptor'),
|
||||
IsPropertyKey: require('./2015/IsPropertyKey'),
|
||||
IsRegExp: require('./2015/IsRegExp'),
|
||||
IteratorClose: require('./2015/IteratorClose'),
|
||||
IteratorComplete: require('./2015/IteratorComplete'),
|
||||
IteratorNext: require('./2015/IteratorNext'),
|
||||
IteratorStep: require('./2015/IteratorStep'),
|
||||
IteratorValue: require('./2015/IteratorValue'),
|
||||
MakeDate: require('./2015/MakeDate'),
|
||||
MakeDay: require('./2015/MakeDay'),
|
||||
MakeTime: require('./2015/MakeTime'),
|
||||
max: require('./2015/max'),
|
||||
min: require('./2015/min'),
|
||||
MinFromTime: require('./2015/MinFromTime'),
|
||||
modulo: require('./2015/modulo'),
|
||||
MonthFromTime: require('./2015/MonthFromTime'),
|
||||
msFromTime: require('./2015/msFromTime'),
|
||||
NormalCompletion: require('./2015/NormalCompletion'),
|
||||
ObjectCreate: require('./2015/ObjectCreate'),
|
||||
ObjectDefineProperties: require('./2015/ObjectDefineProperties'),
|
||||
OrdinaryCreateFromConstructor: require('./2015/OrdinaryCreateFromConstructor'),
|
||||
OrdinaryDefineOwnProperty: require('./2015/OrdinaryDefineOwnProperty'),
|
||||
OrdinaryGetOwnProperty: require('./2015/OrdinaryGetOwnProperty'),
|
||||
OrdinaryHasInstance: require('./2015/OrdinaryHasInstance'),
|
||||
OrdinaryHasProperty: require('./2015/OrdinaryHasProperty'),
|
||||
QuoteJSONString: require('./2015/QuoteJSONString'),
|
||||
RegExpCreate: require('./2015/RegExpCreate'),
|
||||
RegExpExec: require('./2015/RegExpExec'),
|
||||
RequireObjectCoercible: require('./2015/RequireObjectCoercible'),
|
||||
SameValue: require('./2015/SameValue'),
|
||||
SameValueZero: require('./2015/SameValueZero'),
|
||||
SecFromTime: require('./2015/SecFromTime'),
|
||||
Set: require('./2015/Set'),
|
||||
SetFunctionName: require('./2015/SetFunctionName'),
|
||||
SetIntegrityLevel: require('./2015/SetIntegrityLevel'),
|
||||
SpeciesConstructor: require('./2015/SpeciesConstructor'),
|
||||
SplitMatch: require('./2015/SplitMatch'),
|
||||
StringCreate: require('./2015/StringCreate'),
|
||||
StringGetIndexProperty: require('./2015/StringGetIndexProperty'),
|
||||
SymbolDescriptiveString: require('./2015/SymbolDescriptiveString'),
|
||||
TestIntegrityLevel: require('./2015/TestIntegrityLevel'),
|
||||
thisBooleanValue: require('./2015/thisBooleanValue'),
|
||||
thisNumberValue: require('./2015/thisNumberValue'),
|
||||
thisStringValue: require('./2015/thisStringValue'),
|
||||
thisTimeValue: require('./2015/thisTimeValue'),
|
||||
TimeClip: require('./2015/TimeClip'),
|
||||
TimeFromYear: require('./2015/TimeFromYear'),
|
||||
TimeWithinDay: require('./2015/TimeWithinDay'),
|
||||
ToBoolean: require('./2015/ToBoolean'),
|
||||
ToDateString: require('./2015/ToDateString'),
|
||||
ToInt16: require('./2015/ToInt16'),
|
||||
ToInt32: require('./2015/ToInt32'),
|
||||
ToInt8: require('./2015/ToInt8'),
|
||||
ToInteger: require('./2015/ToInteger'),
|
||||
ToLength: require('./2015/ToLength'),
|
||||
ToNumber: require('./2015/ToNumber'),
|
||||
ToObject: require('./2015/ToObject'),
|
||||
ToPrimitive: require('./2015/ToPrimitive'),
|
||||
ToPropertyDescriptor: require('./2015/ToPropertyDescriptor'),
|
||||
ToPropertyKey: require('./2015/ToPropertyKey'),
|
||||
ToString: require('./2015/ToString'),
|
||||
ToUint16: require('./2015/ToUint16'),
|
||||
ToUint32: require('./2015/ToUint32'),
|
||||
ToUint8: require('./2015/ToUint8'),
|
||||
ToUint8Clamp: require('./2015/ToUint8Clamp'),
|
||||
Type: require('./2015/Type'),
|
||||
ValidateAndApplyPropertyDescriptor: require('./2015/ValidateAndApplyPropertyDescriptor'),
|
||||
ValidateTypedArray: require('./2015/ValidateTypedArray'),
|
||||
WeekDay: require('./2015/WeekDay'),
|
||||
YearFromTime: require('./2015/YearFromTime')
|
||||
};
|
||||
|
||||
module.exports = ES2015;
|
||||
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"name": "vite",
|
||||
"version": "2.1.5",
|
||||
"license": "MIT",
|
||||
"author": "Evan You",
|
||||
"description": "Native-ESM powered web dev build tool",
|
||||
"bin": {
|
||||
"vite": "bin/vite.js"
|
||||
},
|
||||
"main": "dist/node/index.js",
|
||||
"types": "dist/node/index.d.ts",
|
||||
"files": [
|
||||
"bin",
|
||||
"dist",
|
||||
"client.d.ts"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12.0.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/vitejs/vite.git",
|
||||
"directory": "packages/vite"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/vitejs/vite/issues"
|
||||
},
|
||||
"homepage": "https://github.com/vitejs/vite/tree/main/#readme",
|
||||
"scripts": {
|
||||
"predev": "rimraf dist",
|
||||
"dev": "run-p dev-client dev-node",
|
||||
"dev-client": "tsc -w --incremental --p src/client",
|
||||
"dev-node": "tsc -w --incremental --p src/node",
|
||||
"prebuild": "rimraf dist && yarn lint",
|
||||
"build": "run-s build-bundle build-types",
|
||||
"build-bundle": "rollup -c",
|
||||
"build-types": "run-s build-temp-types patch-types roll-types",
|
||||
"build-temp-types": "tsc --emitDeclarationOnly --outDir temp/node -p src/node",
|
||||
"patch-types": "node scripts/patchTypes",
|
||||
"roll-types": "api-extractor run && rimraf temp",
|
||||
"lint": "eslint --ext .ts src/**",
|
||||
"format": "prettier --write --parser typescript \"src/**/*.ts\"",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s --commit-path .",
|
||||
"release": "node ../../scripts/release.js"
|
||||
},
|
||||
"//": "READ .github/contributing.md to understand what to put under deps vs. devDeps!",
|
||||
"dependencies": {
|
||||
"esbuild": "^0.9.3",
|
||||
"postcss": "^8.2.1",
|
||||
"resolve": "^1.19.0",
|
||||
"rollup": "^2.38.5"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"fsevents": "~2.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ampproject/remapping": "^1.0.1",
|
||||
"@rollup/plugin-alias": "^3.1.1",
|
||||
"@rollup/plugin-commonjs": "^17.0.0",
|
||||
"@rollup/plugin-dynamic-import-vars": "^1.1.1",
|
||||
"@rollup/plugin-json": "^4.1.0",
|
||||
"@rollup/plugin-node-resolve": "^11.0.1",
|
||||
"@rollup/plugin-typescript": "^8.0.0",
|
||||
"@rollup/pluginutils": "^4.1.0",
|
||||
"@types/clean-css": "^4.2.3",
|
||||
"@types/convert-source-map": "^1.5.1",
|
||||
"@types/debug": "^4.1.5",
|
||||
"@types/es-module-lexer": "^0.3.0",
|
||||
"@types/estree": "^0.0.45",
|
||||
"@types/etag": "^1.8.0",
|
||||
"@types/less": "^3.0.2",
|
||||
"@types/mime": "^2.0.3",
|
||||
"@types/node": "^14.14.10",
|
||||
"@types/resolve": "^1.17.1",
|
||||
"@types/sass": "^1.16.0",
|
||||
"@types/stylus": "^0.48.33",
|
||||
"@types/ws": "^7.4.0",
|
||||
"@vue/compiler-dom": "^3.0.4",
|
||||
"acorn": "^8.0.4",
|
||||
"acorn-class-fields": "^0.3.7",
|
||||
"acorn-numeric-separator": "^0.3.6",
|
||||
"acorn-static-class-features": "^0.2.4",
|
||||
"brotli-size": "^4.0.0",
|
||||
"builtin-modules": "^3.2.0",
|
||||
"cac": "^6.6.1",
|
||||
"chalk": "^4.1.0",
|
||||
"chokidar": "^3.5.1",
|
||||
"clean-css": "^4.2.3",
|
||||
"compression": "^1.7.4",
|
||||
"connect": "^3.7.0",
|
||||
"connect-history-api-fallback": "^1.6.0",
|
||||
"convert-source-map": "^1.7.0",
|
||||
"cors": "^2.8.5",
|
||||
"debug": "^4.3.1",
|
||||
"dotenv": "^8.2.0",
|
||||
"dotenv-expand": "^5.1.0",
|
||||
"enquirer": "^2.3.6",
|
||||
"es-module-lexer": "^0.4.0",
|
||||
"estree-walker": "^2.0.2",
|
||||
"etag": "^1.8.1",
|
||||
"execa": "^5.0.0",
|
||||
"fast-glob": "^3.2.4",
|
||||
"http-proxy": "^1.18.1",
|
||||
"launch-editor-middleware": "^2.2.1",
|
||||
"magic-string": "^0.25.7",
|
||||
"mime": "^2.4.7",
|
||||
"minimatch": "^3.0.4",
|
||||
"okie": "^1.0.1",
|
||||
"open": "^7.4.2",
|
||||
"open-in-editor": "^2.2.0",
|
||||
"periscopic": "^2.0.3",
|
||||
"postcss-import": "^13.0.0",
|
||||
"postcss-load-config": "^3.0.0",
|
||||
"postcss-modules": "^4.0.0",
|
||||
"resolve.exports": "^1.0.1",
|
||||
"rollup-plugin-license": "^2.2.0",
|
||||
"selfsigned": "^1.10.8",
|
||||
"sirv": "^1.0.10",
|
||||
"source-map": "^0.6.1",
|
||||
"source-map-support": "^0.5.19",
|
||||
"strip-ansi": "^6.0.0",
|
||||
"terser": "^5.5.1",
|
||||
"tslib": "^2.0.3",
|
||||
"types": "link:./types",
|
||||
"ws": "^7.4.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"mergeMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeMapTo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA2DhD,MAAM,UAAU,UAAU,CACxB,eAAkB,EAClB,cAAwH,EACxH,UAA6B;IAA7B,2BAAA,EAAA,qBAA6B;IAE7B,IAAI,UAAU,CAAC,cAAc,CAAC,EAAE;QAC9B,OAAO,QAAQ,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;KACpE;IACD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QACtC,UAAU,GAAG,cAAc,CAAC;KAC7B;IACD,OAAO,QAAQ,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC"}
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
var isNatural = require("../number/is-natural")
|
||||
, toShortString = require("../to-short-string-representation");
|
||||
|
||||
module.exports = function (arg) {
|
||||
var num = Number(arg);
|
||||
if (!isNatural(num)) throw new TypeError(toShortString(arg) + " is not a natural number");
|
||||
return num;
|
||||
};
|
||||
@@ -0,0 +1,39 @@
|
||||
import assertString from './util/assertString';
|
||||
var validMediaType = /^[a-z]+\/[a-z0-9\-\+\._]+$/i;
|
||||
var validAttribute = /^[a-z\-]+=[a-z0-9\-]+$/i;
|
||||
var validData = /^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;
|
||||
export default function isDataURI(str) {
|
||||
assertString(str);
|
||||
var data = str.split(',');
|
||||
|
||||
if (data.length < 2) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var attributes = data.shift().trim().split(';');
|
||||
var schemeAndMediaType = attributes.shift();
|
||||
|
||||
if (schemeAndMediaType.slice(0, 5) !== 'data:') {
|
||||
return false;
|
||||
}
|
||||
|
||||
var mediaType = schemeAndMediaType.slice(5);
|
||||
|
||||
if (mediaType !== '' && !validMediaType.test(mediaType)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var i = 0; i < attributes.length; i++) {
|
||||
if (!(i === attributes.length - 1 && attributes[i].toLowerCase() === 'base64') && !validAttribute.test(attributes[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
for (var _i = 0; _i < data.length; _i++) {
|
||||
if (!validData.test(data[_i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -0,0 +1,546 @@
|
||||
/* -*- Mode: js; js-indent-level: 2; -*- */
|
||||
/*
|
||||
* Copyright 2011 Mozilla Foundation and contributors
|
||||
* Licensed under the New BSD license. See LICENSE or:
|
||||
* http://opensource.org/licenses/BSD-3-Clause
|
||||
*/
|
||||
|
||||
/**
|
||||
* This is a helper function for getting values from parameter/options
|
||||
* objects.
|
||||
*
|
||||
* @param args The object we are extracting values from
|
||||
* @param name The name of the property we are getting.
|
||||
* @param defaultValue An optional value to return if the property is missing
|
||||
* from the object. If this is not specified and the property is missing, an
|
||||
* error will be thrown.
|
||||
*/
|
||||
function getArg(aArgs, aName, aDefaultValue) {
|
||||
if (aName in aArgs) {
|
||||
return aArgs[aName];
|
||||
} else if (arguments.length === 3) {
|
||||
return aDefaultValue;
|
||||
}
|
||||
throw new Error('"' + aName + '" is a required argument.');
|
||||
|
||||
}
|
||||
exports.getArg = getArg;
|
||||
|
||||
const urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/;
|
||||
const dataUrlRegexp = /^data:.+\,.+$/;
|
||||
|
||||
function urlParse(aUrl) {
|
||||
const match = aUrl.match(urlRegexp);
|
||||
if (!match) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
scheme: match[1],
|
||||
auth: match[2],
|
||||
host: match[3],
|
||||
port: match[4],
|
||||
path: match[5]
|
||||
};
|
||||
}
|
||||
exports.urlParse = urlParse;
|
||||
|
||||
function urlGenerate(aParsedUrl) {
|
||||
let url = "";
|
||||
if (aParsedUrl.scheme) {
|
||||
url += aParsedUrl.scheme + ":";
|
||||
}
|
||||
url += "//";
|
||||
if (aParsedUrl.auth) {
|
||||
url += aParsedUrl.auth + "@";
|
||||
}
|
||||
if (aParsedUrl.host) {
|
||||
url += aParsedUrl.host;
|
||||
}
|
||||
if (aParsedUrl.port) {
|
||||
url += ":" + aParsedUrl.port;
|
||||
}
|
||||
if (aParsedUrl.path) {
|
||||
url += aParsedUrl.path;
|
||||
}
|
||||
return url;
|
||||
}
|
||||
exports.urlGenerate = urlGenerate;
|
||||
|
||||
const MAX_CACHED_INPUTS = 32;
|
||||
|
||||
/**
|
||||
* Takes some function `f(input) -> result` and returns a memoized version of
|
||||
* `f`.
|
||||
*
|
||||
* We keep at most `MAX_CACHED_INPUTS` memoized results of `f` alive. The
|
||||
* memoization is a dumb-simple, linear least-recently-used cache.
|
||||
*/
|
||||
function lruMemoize(f) {
|
||||
const cache = [];
|
||||
|
||||
return function(input) {
|
||||
for (let i = 0; i < cache.length; i++) {
|
||||
if (cache[i].input === input) {
|
||||
const temp = cache[0];
|
||||
cache[0] = cache[i];
|
||||
cache[i] = temp;
|
||||
return cache[0].result;
|
||||
}
|
||||
}
|
||||
|
||||
const result = f(input);
|
||||
|
||||
cache.unshift({
|
||||
input,
|
||||
result,
|
||||
});
|
||||
|
||||
if (cache.length > MAX_CACHED_INPUTS) {
|
||||
cache.pop();
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalizes a path, or the path portion of a URL:
|
||||
*
|
||||
* - Replaces consecutive slashes with one slash.
|
||||
* - Removes unnecessary '.' parts.
|
||||
* - Removes unnecessary '<dir>/..' parts.
|
||||
*
|
||||
* Based on code in the Node.js 'path' core module.
|
||||
*
|
||||
* @param aPath The path or url to normalize.
|
||||
*/
|
||||
const normalize = lruMemoize(function normalize(aPath) {
|
||||
let path = aPath;
|
||||
const url = urlParse(aPath);
|
||||
if (url) {
|
||||
if (!url.path) {
|
||||
return aPath;
|
||||
}
|
||||
path = url.path;
|
||||
}
|
||||
const isAbsolute = exports.isAbsolute(path);
|
||||
|
||||
// Split the path into parts between `/` characters. This is much faster than
|
||||
// using `.split(/\/+/g)`.
|
||||
const parts = [];
|
||||
let start = 0;
|
||||
let i = 0;
|
||||
while (true) {
|
||||
start = i;
|
||||
i = path.indexOf("/", start);
|
||||
if (i === -1) {
|
||||
parts.push(path.slice(start));
|
||||
break;
|
||||
} else {
|
||||
parts.push(path.slice(start, i));
|
||||
while (i < path.length && path[i] === "/") {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let up = 0;
|
||||
for (i = parts.length - 1; i >= 0; i--) {
|
||||
const part = parts[i];
|
||||
if (part === ".") {
|
||||
parts.splice(i, 1);
|
||||
} else if (part === "..") {
|
||||
up++;
|
||||
} else if (up > 0) {
|
||||
if (part === "") {
|
||||
// The first part is blank if the path is absolute. Trying to go
|
||||
// above the root is a no-op. Therefore we can remove all '..' parts
|
||||
// directly after the root.
|
||||
parts.splice(i + 1, up);
|
||||
up = 0;
|
||||
} else {
|
||||
parts.splice(i, 2);
|
||||
up--;
|
||||
}
|
||||
}
|
||||
}
|
||||
path = parts.join("/");
|
||||
|
||||
if (path === "") {
|
||||
path = isAbsolute ? "/" : ".";
|
||||
}
|
||||
|
||||
if (url) {
|
||||
url.path = path;
|
||||
return urlGenerate(url);
|
||||
}
|
||||
return path;
|
||||
});
|
||||
exports.normalize = normalize;
|
||||
|
||||
/**
|
||||
* Joins two paths/URLs.
|
||||
*
|
||||
* @param aRoot The root path or URL.
|
||||
* @param aPath The path or URL to be joined with the root.
|
||||
*
|
||||
* - If aPath is a URL or a data URI, aPath is returned, unless aPath is a
|
||||
* scheme-relative URL: Then the scheme of aRoot, if any, is prepended
|
||||
* first.
|
||||
* - Otherwise aPath is a path. If aRoot is a URL, then its path portion
|
||||
* is updated with the result and aRoot is returned. Otherwise the result
|
||||
* is returned.
|
||||
* - If aPath is absolute, the result is aPath.
|
||||
* - Otherwise the two paths are joined with a slash.
|
||||
* - Joining for example 'http://' and 'www.example.com' is also supported.
|
||||
*/
|
||||
function join(aRoot, aPath) {
|
||||
if (aRoot === "") {
|
||||
aRoot = ".";
|
||||
}
|
||||
if (aPath === "") {
|
||||
aPath = ".";
|
||||
}
|
||||
const aPathUrl = urlParse(aPath);
|
||||
const aRootUrl = urlParse(aRoot);
|
||||
if (aRootUrl) {
|
||||
aRoot = aRootUrl.path || "/";
|
||||
}
|
||||
|
||||
// `join(foo, '//www.example.org')`
|
||||
if (aPathUrl && !aPathUrl.scheme) {
|
||||
if (aRootUrl) {
|
||||
aPathUrl.scheme = aRootUrl.scheme;
|
||||
}
|
||||
return urlGenerate(aPathUrl);
|
||||
}
|
||||
|
||||
if (aPathUrl || aPath.match(dataUrlRegexp)) {
|
||||
return aPath;
|
||||
}
|
||||
|
||||
// `join('http://', 'www.example.com')`
|
||||
if (aRootUrl && !aRootUrl.host && !aRootUrl.path) {
|
||||
aRootUrl.host = aPath;
|
||||
return urlGenerate(aRootUrl);
|
||||
}
|
||||
|
||||
const joined = aPath.charAt(0) === "/"
|
||||
? aPath
|
||||
: normalize(aRoot.replace(/\/+$/, "") + "/" + aPath);
|
||||
|
||||
if (aRootUrl) {
|
||||
aRootUrl.path = joined;
|
||||
return urlGenerate(aRootUrl);
|
||||
}
|
||||
return joined;
|
||||
}
|
||||
exports.join = join;
|
||||
|
||||
exports.isAbsolute = function(aPath) {
|
||||
return aPath.charAt(0) === "/" || urlRegexp.test(aPath);
|
||||
};
|
||||
|
||||
/**
|
||||
* Make a path relative to a URL or another path.
|
||||
*
|
||||
* @param aRoot The root path or URL.
|
||||
* @param aPath The path or URL to be made relative to aRoot.
|
||||
*/
|
||||
function relative(aRoot, aPath) {
|
||||
if (aRoot === "") {
|
||||
aRoot = ".";
|
||||
}
|
||||
|
||||
aRoot = aRoot.replace(/\/$/, "");
|
||||
|
||||
// It is possible for the path to be above the root. In this case, simply
|
||||
// checking whether the root is a prefix of the path won't work. Instead, we
|
||||
// need to remove components from the root one by one, until either we find
|
||||
// a prefix that fits, or we run out of components to remove.
|
||||
let level = 0;
|
||||
while (aPath.indexOf(aRoot + "/") !== 0) {
|
||||
const index = aRoot.lastIndexOf("/");
|
||||
if (index < 0) {
|
||||
return aPath;
|
||||
}
|
||||
|
||||
// If the only part of the root that is left is the scheme (i.e. http://,
|
||||
// file:///, etc.), one or more slashes (/), or simply nothing at all, we
|
||||
// have exhausted all components, so the path is not relative to the root.
|
||||
aRoot = aRoot.slice(0, index);
|
||||
if (aRoot.match(/^([^\/]+:\/)?\/*$/)) {
|
||||
return aPath;
|
||||
}
|
||||
|
||||
++level;
|
||||
}
|
||||
|
||||
// Make sure we add a "../" for each component we removed from the root.
|
||||
return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1);
|
||||
}
|
||||
exports.relative = relative;
|
||||
|
||||
const supportsNullProto = (function() {
|
||||
const obj = Object.create(null);
|
||||
return !("__proto__" in obj);
|
||||
}());
|
||||
|
||||
function identity(s) {
|
||||
return s;
|
||||
}
|
||||
|
||||
/**
|
||||
* Because behavior goes wacky when you set `__proto__` on objects, we
|
||||
* have to prefix all the strings in our set with an arbitrary character.
|
||||
*
|
||||
* See https://github.com/mozilla/source-map/pull/31 and
|
||||
* https://github.com/mozilla/source-map/issues/30
|
||||
*
|
||||
* @param String aStr
|
||||
*/
|
||||
function toSetString(aStr) {
|
||||
if (isProtoString(aStr)) {
|
||||
return "$" + aStr;
|
||||
}
|
||||
|
||||
return aStr;
|
||||
}
|
||||
exports.toSetString = supportsNullProto ? identity : toSetString;
|
||||
|
||||
function fromSetString(aStr) {
|
||||
if (isProtoString(aStr)) {
|
||||
return aStr.slice(1);
|
||||
}
|
||||
|
||||
return aStr;
|
||||
}
|
||||
exports.fromSetString = supportsNullProto ? identity : fromSetString;
|
||||
|
||||
function isProtoString(s) {
|
||||
if (!s) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const length = s.length;
|
||||
|
||||
if (length < 9 /* "__proto__".length */) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* eslint-disable no-multi-spaces */
|
||||
if (s.charCodeAt(length - 1) !== 95 /* '_' */ ||
|
||||
s.charCodeAt(length - 2) !== 95 /* '_' */ ||
|
||||
s.charCodeAt(length - 3) !== 111 /* 'o' */ ||
|
||||
s.charCodeAt(length - 4) !== 116 /* 't' */ ||
|
||||
s.charCodeAt(length - 5) !== 111 /* 'o' */ ||
|
||||
s.charCodeAt(length - 6) !== 114 /* 'r' */ ||
|
||||
s.charCodeAt(length - 7) !== 112 /* 'p' */ ||
|
||||
s.charCodeAt(length - 8) !== 95 /* '_' */ ||
|
||||
s.charCodeAt(length - 9) !== 95 /* '_' */) {
|
||||
return false;
|
||||
}
|
||||
/* eslint-enable no-multi-spaces */
|
||||
|
||||
for (let i = length - 10; i >= 0; i--) {
|
||||
if (s.charCodeAt(i) !== 36 /* '$' */) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Comparator between two mappings where the original positions are compared.
|
||||
*
|
||||
* Optionally pass in `true` as `onlyCompareGenerated` to consider two
|
||||
* mappings with the same original source/line/column, but different generated
|
||||
* line and column the same. Useful when searching for a mapping with a
|
||||
* stubbed out mapping.
|
||||
*/
|
||||
function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) {
|
||||
let cmp = strcmp(mappingA.source, mappingB.source);
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.originalLine - mappingB.originalLine;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.originalColumn - mappingB.originalColumn;
|
||||
if (cmp !== 0 || onlyCompareOriginal) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.generatedColumn - mappingB.generatedColumn;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.generatedLine - mappingB.generatedLine;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
return strcmp(mappingA.name, mappingB.name);
|
||||
}
|
||||
exports.compareByOriginalPositions = compareByOriginalPositions;
|
||||
|
||||
/**
|
||||
* Comparator between two mappings with deflated source and name indices where
|
||||
* the generated positions are compared.
|
||||
*
|
||||
* Optionally pass in `true` as `onlyCompareGenerated` to consider two
|
||||
* mappings with the same generated line and column, but different
|
||||
* source/name/original line and column the same. Useful when searching for a
|
||||
* mapping with a stubbed out mapping.
|
||||
*/
|
||||
function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) {
|
||||
let cmp = mappingA.generatedLine - mappingB.generatedLine;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.generatedColumn - mappingB.generatedColumn;
|
||||
if (cmp !== 0 || onlyCompareGenerated) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = strcmp(mappingA.source, mappingB.source);
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.originalLine - mappingB.originalLine;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.originalColumn - mappingB.originalColumn;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
return strcmp(mappingA.name, mappingB.name);
|
||||
}
|
||||
exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated;
|
||||
|
||||
function strcmp(aStr1, aStr2) {
|
||||
if (aStr1 === aStr2) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (aStr1 === null) {
|
||||
return 1; // aStr2 !== null
|
||||
}
|
||||
|
||||
if (aStr2 === null) {
|
||||
return -1; // aStr1 !== null
|
||||
}
|
||||
|
||||
if (aStr1 > aStr2) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Comparator between two mappings with inflated source and name strings where
|
||||
* the generated positions are compared.
|
||||
*/
|
||||
function compareByGeneratedPositionsInflated(mappingA, mappingB) {
|
||||
let cmp = mappingA.generatedLine - mappingB.generatedLine;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.generatedColumn - mappingB.generatedColumn;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = strcmp(mappingA.source, mappingB.source);
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.originalLine - mappingB.originalLine;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
cmp = mappingA.originalColumn - mappingB.originalColumn;
|
||||
if (cmp !== 0) {
|
||||
return cmp;
|
||||
}
|
||||
|
||||
return strcmp(mappingA.name, mappingB.name);
|
||||
}
|
||||
exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated;
|
||||
|
||||
/**
|
||||
* Strip any JSON XSSI avoidance prefix from the string (as documented
|
||||
* in the source maps specification), and then parse the string as
|
||||
* JSON.
|
||||
*/
|
||||
function parseSourceMapInput(str) {
|
||||
return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, ""));
|
||||
}
|
||||
exports.parseSourceMapInput = parseSourceMapInput;
|
||||
|
||||
/**
|
||||
* Compute the URL of a source given the the source root, the source's
|
||||
* URL, and the source map's URL.
|
||||
*/
|
||||
function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {
|
||||
sourceURL = sourceURL || "";
|
||||
|
||||
if (sourceRoot) {
|
||||
// This follows what Chrome does.
|
||||
if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") {
|
||||
sourceRoot += "/";
|
||||
}
|
||||
// The spec says:
|
||||
// Line 4: An optional source root, useful for relocating source
|
||||
// files on a server or removing repeated values in the
|
||||
// “sources” entry. This value is prepended to the individual
|
||||
// entries in the “source” field.
|
||||
sourceURL = sourceRoot + sourceURL;
|
||||
}
|
||||
|
||||
// Historically, SourceMapConsumer did not take the sourceMapURL as
|
||||
// a parameter. This mode is still somewhat supported, which is why
|
||||
// this code block is conditional. However, it's preferable to pass
|
||||
// the source map URL to SourceMapConsumer, so that this function
|
||||
// can implement the source URL resolution algorithm as outlined in
|
||||
// the spec. This block is basically the equivalent of:
|
||||
// new URL(sourceURL, sourceMapURL).toString()
|
||||
// ... except it avoids using URL, which wasn't available in the
|
||||
// older releases of node still supported by this library.
|
||||
//
|
||||
// The spec says:
|
||||
// If the sources are not absolute URLs after prepending of the
|
||||
// “sourceRoot”, the sources are resolved relative to the
|
||||
// SourceMap (like resolving script src in a html document).
|
||||
if (sourceMapURL) {
|
||||
const parsed = urlParse(sourceMapURL);
|
||||
if (!parsed) {
|
||||
throw new Error("sourceMapURL could not be parsed");
|
||||
}
|
||||
if (parsed.path) {
|
||||
// Strip the last path component, but keep the "/".
|
||||
const index = parsed.path.lastIndexOf("/");
|
||||
if (index >= 0) {
|
||||
parsed.path = parsed.path.substring(0, index + 1);
|
||||
}
|
||||
}
|
||||
sourceURL = join(urlGenerate(parsed), sourceURL);
|
||||
}
|
||||
|
||||
return normalize(sourceURL);
|
||||
}
|
||||
exports.computeSourceURL = computeSourceURL;
|
||||
@@ -0,0 +1,26 @@
|
||||
# detective Change Log
|
||||
All notable changes to this project will be documented in this file.
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## x.y.z - unreleased
|
||||
* update acorn-node to 1.8.2 (make use of acorn 7.x)
|
||||
|
||||
## 5.2.1 - 2022-05-27
|
||||
* Update to "minimist": "^1.2.6" from "^1.1.1" to quiet down dependabot security theater.
|
||||
|
||||
## 5.2.0 - 2019-01-28
|
||||
* Use acorn-node's option defaults, adds support for new ES features (https://github.com/browserify/detective/pull/81)
|
||||
|
||||
## 5.1.0 - 2018-02-28
|
||||
* Use acorn-node parser, which matches latest Node syntax support (https://github.com/browserify/detective/pull/78)
|
||||
* Add basic cli: `detective index.js` outputs dependency names (https://github.com/browserify/detective/pull/51)
|
||||
|
||||
## 5.0.2 - 2018-01-06
|
||||
* Extend support back to 0.8 until we can determine a LTS plan.
|
||||
|
||||
## 5.0.1 - 2018-01-02
|
||||
* Add engines field set to `>=4.0.0`.
|
||||
|
||||
## 5.0.0 - 2018-01-02
|
||||
* Fix: Don't crash on files with the spread operator (https://github.com/browserify/detective/pull/75)
|
||||
* Breaking: Drop support for node 0.12 (https://github.com/browserify/detective/pull/75)
|
||||
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var objToString = Object.prototype.toString
|
||||
, isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);
|
||||
|
||||
module.exports = function (value) {
|
||||
return typeof value === "function" && isFunctionStringTag(objToString.call(value));
|
||||
};
|
||||
@@ -0,0 +1,34 @@
|
||||
let { urlAlphabet } = require('./url-alphabet/index.cjs')
|
||||
let random = bytes => crypto.getRandomValues(new Uint8Array(bytes))
|
||||
let customRandom = (alphabet, defaultSize, getRandom) => {
|
||||
let mask = (2 << (Math.log(alphabet.length - 1) / Math.LN2)) - 1
|
||||
let step = -~((1.6 * mask * defaultSize) / alphabet.length)
|
||||
return (size = defaultSize) => {
|
||||
let id = ''
|
||||
while (true) {
|
||||
let bytes = getRandom(step)
|
||||
let j = step
|
||||
while (j--) {
|
||||
id += alphabet[bytes[j] & mask] || ''
|
||||
if (id.length === size) return id
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
let customAlphabet = (alphabet, size = 21) =>
|
||||
customRandom(alphabet, size, random)
|
||||
let nanoid = (size = 21) =>
|
||||
crypto.getRandomValues(new Uint8Array(size)).reduce((id, byte) => {
|
||||
byte &= 63
|
||||
if (byte < 36) {
|
||||
id += byte.toString(36)
|
||||
} else if (byte < 62) {
|
||||
id += (byte - 26).toString(36).toUpperCase()
|
||||
} else if (byte > 62) {
|
||||
id += '-'
|
||||
} else {
|
||||
id += '_'
|
||||
}
|
||||
return id
|
||||
}, '')
|
||||
module.exports = { nanoid, customAlphabet, customRandom, urlAlphabet, random }
|
||||
@@ -0,0 +1,12 @@
|
||||
var test = require('tape');
|
||||
var inspect = require('../');
|
||||
|
||||
var obj = { a: 1, b: [3, 4, undefined, null], c: undefined, d: null };
|
||||
|
||||
test('undef and null', function (t) {
|
||||
t.plan(1);
|
||||
t.equal(
|
||||
inspect(obj),
|
||||
'{ a: 1, b: [ 3, 4, undefined, null ], c: undefined, d: null }'
|
||||
);
|
||||
});
|
||||
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
||||
const async = require("./providers/async");
|
||||
const sync = require("./providers/sync");
|
||||
const settings_1 = require("./settings");
|
||||
exports.Settings = settings_1.default;
|
||||
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
||||
if (typeof optionsOrSettingsOrCallback === 'function') {
|
||||
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
||||
return;
|
||||
}
|
||||
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
||||
}
|
||||
exports.scandir = scandir;
|
||||
function scandirSync(path, optionsOrSettings) {
|
||||
const settings = getSettings(optionsOrSettings);
|
||||
return sync.read(path, settings);
|
||||
}
|
||||
exports.scandirSync = scandirSync;
|
||||
function getSettings(settingsOrOptions = {}) {
|
||||
if (settingsOrOptions instanceof settings_1.default) {
|
||||
return settingsOrOptions;
|
||||
}
|
||||
return new settings_1.default(settingsOrOptions);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
'use strict';
|
||||
|
||||
var inspect = require('../');
|
||||
var test = require('tape');
|
||||
var hasToStringTag = require('has-tostringtag/shams')();
|
||||
var forEach = require('for-each');
|
||||
|
||||
test('fakes', { skip: !hasToStringTag }, function (t) {
|
||||
forEach([
|
||||
'Array',
|
||||
'Boolean',
|
||||
'Date',
|
||||
'Error',
|
||||
'Number',
|
||||
'RegExp',
|
||||
'String'
|
||||
], function (expected) {
|
||||
var faker = {};
|
||||
faker[Symbol.toStringTag] = expected;
|
||||
|
||||
t.equal(
|
||||
inspect(faker),
|
||||
'{ [Symbol(Symbol.toStringTag)]: \'' + expected + '\' }',
|
||||
'faker masquerading as ' + expected + ' is not shown as one'
|
||||
);
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
@@ -0,0 +1,43 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
var inspect = require('object-inspect');
|
||||
var forEach = require('for-each');
|
||||
var v = require('es-value-fixtures');
|
||||
var availableTypedArrays = require('available-typed-arrays')();
|
||||
|
||||
var isArrayBuffer = require('..');
|
||||
|
||||
test('isArrayBuffer', function (t) {
|
||||
t.equal(typeof isArrayBuffer, 'function', 'is a function');
|
||||
|
||||
var nonABs = v.primitives.concat(
|
||||
v.objects,
|
||||
typeof SharedArrayBuffer === 'function' ? new SharedArrayBuffer() : []
|
||||
);
|
||||
forEach(nonABs, function (nonAB) {
|
||||
t.equal(isArrayBuffer(nonAB), false, inspect(nonAB) + ' is not an ArrayBuffer');
|
||||
});
|
||||
|
||||
t.test('actual ArrayBuffer instances', { skip: typeof ArrayBuffer === 'undefined' }, function (st) {
|
||||
var ab = new ArrayBuffer();
|
||||
st.equal(isArrayBuffer(ab), true, inspect(ab) + ' is an ArrayBuffer');
|
||||
|
||||
var ab42 = new ArrayBuffer(42);
|
||||
st.equal(isArrayBuffer(ab42), true, inspect(ab42) + ' is an ArrayBuffer');
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.test('Typed Arrays', { skip: availableTypedArrays.length === 0 }, function (st) {
|
||||
forEach(availableTypedArrays, function (TypedArray) {
|
||||
var ta = new global[TypedArray](0);
|
||||
st.equal(isArrayBuffer(ta.buffer), true, inspect(ta.buffer) + ', the TA\'s buffer, is an ArrayBuffer');
|
||||
st.equal(isArrayBuffer(ta), false, inspect(ta) + ' is not an ArrayBuffer');
|
||||
});
|
||||
|
||||
st.end();
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
@@ -0,0 +1,31 @@
|
||||
var baseSortedIndex = require('./_baseSortedIndex'),
|
||||
eq = require('./eq');
|
||||
|
||||
/**
|
||||
* This method is like `_.indexOf` except that it performs a binary
|
||||
* search on a sorted `array`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {*} value The value to search for.
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
* @example
|
||||
*
|
||||
* _.sortedIndexOf([4, 5, 5, 5, 6], 5);
|
||||
* // => 1
|
||||
*/
|
||||
function sortedIndexOf(array, value) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
if (length) {
|
||||
var index = baseSortedIndex(array, value);
|
||||
if (index < length && eq(array[index], value)) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
module.exports = sortedIndexOf;
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"name": "define-lazy-prop",
|
||||
"version": "2.0.0",
|
||||
"description": "Define a lazily evaluated property on an object",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/define-lazy-prop",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava && tsd"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.d.ts"
|
||||
],
|
||||
"keywords": [
|
||||
"lazy",
|
||||
"property",
|
||||
"properties",
|
||||
"prop",
|
||||
"define",
|
||||
"object",
|
||||
"value",
|
||||
"lazily",
|
||||
"laziness",
|
||||
"evaluation",
|
||||
"eval",
|
||||
"execute",
|
||||
"getter",
|
||||
"function",
|
||||
"fn",
|
||||
"memoize",
|
||||
"cache",
|
||||
"defer",
|
||||
"deferred"
|
||||
],
|
||||
"devDependencies": {
|
||||
"ava": "^1.4.1",
|
||||
"tsd": "^0.7.2",
|
||||
"xo": "^0.24.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"52":0.09902,"68":0.009,"72":0.02701,"78":0.0135,"83":0.009,"88":0.0045,"91":0.009,"95":0.0045,"99":0.0045,"100":0.0045,"102":0.06752,"103":1.66537,"104":0.0135,"105":0.0135,"106":0.009,"107":0.018,"108":0.04051,"109":5.89181,"110":3.42076,"111":0.009,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 69 70 71 73 74 75 76 77 79 80 81 82 84 85 86 87 89 90 92 93 94 96 97 98 101 112 3.5 3.6"},D:{"39":0.0045,"49":0.04951,"51":0.0045,"53":0.009,"60":0.32857,"61":0.009,"66":0.0045,"71":0.0135,"74":0.009,"75":0.009,"76":0.009,"77":0.009,"79":0.05401,"80":0.009,"81":0.018,"83":0.009,"84":0.0135,"85":0.03151,"86":0.02251,"87":0.02701,"88":0.0135,"89":0.0135,"90":0.0135,"91":0.02251,"92":0.02251,"94":0.009,"95":0.0045,"96":0.0135,"97":0.018,"98":0.0135,"99":0.018,"100":0.04051,"101":0.009,"102":0.02251,"103":0.06301,"104":0.02701,"105":0.08102,"106":0.03601,"107":0.09902,"108":0.41859,"109":14.99283,"110":9.51962,"111":0.009,"112":0.0135,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45 46 47 48 50 52 54 55 56 57 58 59 62 63 64 65 67 68 69 70 72 73 78 93 113"},F:{"46":0.009,"85":0.02251,"93":0.13503,"94":1.43132,"95":0.8867,_:"9 11 12 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 87 88 89 90 91 92 9.5-9.6 10.5 10.6 11.1 11.5 11.6 12.1","10.0-10.1":0},B:{"18":0.009,"92":0.009,"107":0.018,"108":0.05851,"109":1.00372,"110":1.31879,_:"12 13 14 15 16 17 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106"},E:{"4":0,"14":0.03151,_:"0 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 16.4","12.1":0.0045,"13.1":0.04051,"14.1":0.05401,"15.1":0.009,"15.2-15.3":0.009,"15.4":0.02251,"15.5":0.06752,"15.6":0.15303,"16.0":0.02701,"16.1":0.10802,"16.2":0.22955,"16.3":0.19354},G:{"8":0,"3.2":0.01705,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.06425,"6.0-6.1":0,"7.0-7.1":0.00393,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.01442,"10.0-10.2":0,"10.3":0.02754,"11.0-11.2":0.00524,"11.3-11.4":0.00262,"12.0-12.1":0.01049,"12.2-12.5":0.13637,"13.0-13.1":0.00393,"13.2":0.00393,"13.3":0.01442,"13.4-13.7":0.04589,"14.0-14.4":0.14948,"14.5-14.8":0.35534,"15.0-15.1":0.07474,"15.2-15.3":0.10883,"15.4":0.16653,"15.5":0.28322,"15.6":1.02407,"16.0":1.73869,"16.1":3.10761,"16.2":3.0132,"16.3":2.056,"16.4":0.01967},P:{"4":0.1535,"20":1.11542,"5.0-5.4":0.01042,"6.2-6.4":0.0206,"7.2-7.4":0.71259,"8.2":0.02044,"9.2":0.0307,"10.1":0.0217,"11.1-11.2":0.0307,"12.0":0.02036,"13.0":0.0307,"14.0":0.05117,"15.0":0.02047,"16.0":0.0614,"17.0":0.05117,"18.0":0.10233,"19.0":2.26153},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.01814,"4.4":0,"4.4.3-4.4.4":0.10281},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"8":0.01492,"9":0.00497,"11":0.07462,_:"6 7 10 5.5"},N:{"10":0.03712,"11":0.07423},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":0.04398},H:{"0":0.27067},L:{"0":38.94551},R:{_:"0"},M:{"0":0.20892},Q:{"13.1":0}};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"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 L"},C:{"1":"OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB EC FC"},D:{"1":"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":"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"},E:{"2":"I v J D HC zB IC JC KC","129":"B C K L G 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","194":"E F A LC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"F B C G M N O w g x y z PC QC RC SC qB AC TC rB"},G:{"2":"zB UC BC VC WC XC","129":"cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","194":"E YC ZC aC bC"},H:{"2":"oC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"1":"vC"},P:{"1":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"AD BD"}},B:1,C:"navigator.hardwareConcurrency"};
|
||||
@@ -0,0 +1,288 @@
|
||||
/*!
|
||||
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
||||
*
|
||||
* Copyright (c) 2015-present, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const isNumber = require('is-number');
|
||||
|
||||
const toRegexRange = (min, max, options) => {
|
||||
if (isNumber(min) === false) {
|
||||
throw new TypeError('toRegexRange: expected the first argument to be a number');
|
||||
}
|
||||
|
||||
if (max === void 0 || min === max) {
|
||||
return String(min);
|
||||
}
|
||||
|
||||
if (isNumber(max) === false) {
|
||||
throw new TypeError('toRegexRange: expected the second argument to be a number.');
|
||||
}
|
||||
|
||||
let opts = { relaxZeros: true, ...options };
|
||||
if (typeof opts.strictZeros === 'boolean') {
|
||||
opts.relaxZeros = opts.strictZeros === false;
|
||||
}
|
||||
|
||||
let relax = String(opts.relaxZeros);
|
||||
let shorthand = String(opts.shorthand);
|
||||
let capture = String(opts.capture);
|
||||
let wrap = String(opts.wrap);
|
||||
let cacheKey = min + ':' + max + '=' + relax + shorthand + capture + wrap;
|
||||
|
||||
if (toRegexRange.cache.hasOwnProperty(cacheKey)) {
|
||||
return toRegexRange.cache[cacheKey].result;
|
||||
}
|
||||
|
||||
let a = Math.min(min, max);
|
||||
let b = Math.max(min, max);
|
||||
|
||||
if (Math.abs(a - b) === 1) {
|
||||
let result = min + '|' + max;
|
||||
if (opts.capture) {
|
||||
return `(${result})`;
|
||||
}
|
||||
if (opts.wrap === false) {
|
||||
return result;
|
||||
}
|
||||
return `(?:${result})`;
|
||||
}
|
||||
|
||||
let isPadded = hasPadding(min) || hasPadding(max);
|
||||
let state = { min, max, a, b };
|
||||
let positives = [];
|
||||
let negatives = [];
|
||||
|
||||
if (isPadded) {
|
||||
state.isPadded = isPadded;
|
||||
state.maxLen = String(state.max).length;
|
||||
}
|
||||
|
||||
if (a < 0) {
|
||||
let newMin = b < 0 ? Math.abs(b) : 1;
|
||||
negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
|
||||
a = state.a = 0;
|
||||
}
|
||||
|
||||
if (b >= 0) {
|
||||
positives = splitToPatterns(a, b, state, opts);
|
||||
}
|
||||
|
||||
state.negatives = negatives;
|
||||
state.positives = positives;
|
||||
state.result = collatePatterns(negatives, positives, opts);
|
||||
|
||||
if (opts.capture === true) {
|
||||
state.result = `(${state.result})`;
|
||||
} else if (opts.wrap !== false && (positives.length + negatives.length) > 1) {
|
||||
state.result = `(?:${state.result})`;
|
||||
}
|
||||
|
||||
toRegexRange.cache[cacheKey] = state;
|
||||
return state.result;
|
||||
};
|
||||
|
||||
function collatePatterns(neg, pos, options) {
|
||||
let onlyNegative = filterPatterns(neg, pos, '-', false, options) || [];
|
||||
let onlyPositive = filterPatterns(pos, neg, '', false, options) || [];
|
||||
let intersected = filterPatterns(neg, pos, '-?', true, options) || [];
|
||||
let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
|
||||
return subpatterns.join('|');
|
||||
}
|
||||
|
||||
function splitToRanges(min, max) {
|
||||
let nines = 1;
|
||||
let zeros = 1;
|
||||
|
||||
let stop = countNines(min, nines);
|
||||
let stops = new Set([max]);
|
||||
|
||||
while (min <= stop && stop <= max) {
|
||||
stops.add(stop);
|
||||
nines += 1;
|
||||
stop = countNines(min, nines);
|
||||
}
|
||||
|
||||
stop = countZeros(max + 1, zeros) - 1;
|
||||
|
||||
while (min < stop && stop <= max) {
|
||||
stops.add(stop);
|
||||
zeros += 1;
|
||||
stop = countZeros(max + 1, zeros) - 1;
|
||||
}
|
||||
|
||||
stops = [...stops];
|
||||
stops.sort(compare);
|
||||
return stops;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a range to a regex pattern
|
||||
* @param {Number} `start`
|
||||
* @param {Number} `stop`
|
||||
* @return {String}
|
||||
*/
|
||||
|
||||
function rangeToPattern(start, stop, options) {
|
||||
if (start === stop) {
|
||||
return { pattern: start, count: [], digits: 0 };
|
||||
}
|
||||
|
||||
let zipped = zip(start, stop);
|
||||
let digits = zipped.length;
|
||||
let pattern = '';
|
||||
let count = 0;
|
||||
|
||||
for (let i = 0; i < digits; i++) {
|
||||
let [startDigit, stopDigit] = zipped[i];
|
||||
|
||||
if (startDigit === stopDigit) {
|
||||
pattern += startDigit;
|
||||
|
||||
} else if (startDigit !== '0' || stopDigit !== '9') {
|
||||
pattern += toCharacterClass(startDigit, stopDigit, options);
|
||||
|
||||
} else {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
if (count) {
|
||||
pattern += options.shorthand === true ? '\\d' : '[0-9]';
|
||||
}
|
||||
|
||||
return { pattern, count: [count], digits };
|
||||
}
|
||||
|
||||
function splitToPatterns(min, max, tok, options) {
|
||||
let ranges = splitToRanges(min, max);
|
||||
let tokens = [];
|
||||
let start = min;
|
||||
let prev;
|
||||
|
||||
for (let i = 0; i < ranges.length; i++) {
|
||||
let max = ranges[i];
|
||||
let obj = rangeToPattern(String(start), String(max), options);
|
||||
let zeros = '';
|
||||
|
||||
if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
|
||||
if (prev.count.length > 1) {
|
||||
prev.count.pop();
|
||||
}
|
||||
|
||||
prev.count.push(obj.count[0]);
|
||||
prev.string = prev.pattern + toQuantifier(prev.count);
|
||||
start = max + 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (tok.isPadded) {
|
||||
zeros = padZeros(max, tok, options);
|
||||
}
|
||||
|
||||
obj.string = zeros + obj.pattern + toQuantifier(obj.count);
|
||||
tokens.push(obj);
|
||||
start = max + 1;
|
||||
prev = obj;
|
||||
}
|
||||
|
||||
return tokens;
|
||||
}
|
||||
|
||||
function filterPatterns(arr, comparison, prefix, intersection, options) {
|
||||
let result = [];
|
||||
|
||||
for (let ele of arr) {
|
||||
let { string } = ele;
|
||||
|
||||
// only push if _both_ are negative...
|
||||
if (!intersection && !contains(comparison, 'string', string)) {
|
||||
result.push(prefix + string);
|
||||
}
|
||||
|
||||
// or _both_ are positive
|
||||
if (intersection && contains(comparison, 'string', string)) {
|
||||
result.push(prefix + string);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Zip strings
|
||||
*/
|
||||
|
||||
function zip(a, b) {
|
||||
let arr = [];
|
||||
for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
|
||||
return arr;
|
||||
}
|
||||
|
||||
function compare(a, b) {
|
||||
return a > b ? 1 : b > a ? -1 : 0;
|
||||
}
|
||||
|
||||
function contains(arr, key, val) {
|
||||
return arr.some(ele => ele[key] === val);
|
||||
}
|
||||
|
||||
function countNines(min, len) {
|
||||
return Number(String(min).slice(0, -len) + '9'.repeat(len));
|
||||
}
|
||||
|
||||
function countZeros(integer, zeros) {
|
||||
return integer - (integer % Math.pow(10, zeros));
|
||||
}
|
||||
|
||||
function toQuantifier(digits) {
|
||||
let [start = 0, stop = ''] = digits;
|
||||
if (stop || start > 1) {
|
||||
return `{${start + (stop ? ',' + stop : '')}}`;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
function toCharacterClass(a, b, options) {
|
||||
return `[${a}${(b - a === 1) ? '' : '-'}${b}]`;
|
||||
}
|
||||
|
||||
function hasPadding(str) {
|
||||
return /^-?(0+)\d/.test(str);
|
||||
}
|
||||
|
||||
function padZeros(value, tok, options) {
|
||||
if (!tok.isPadded) {
|
||||
return value;
|
||||
}
|
||||
|
||||
let diff = Math.abs(tok.maxLen - String(value).length);
|
||||
let relax = options.relaxZeros !== false;
|
||||
|
||||
switch (diff) {
|
||||
case 0:
|
||||
return '';
|
||||
case 1:
|
||||
return relax ? '0?' : '0';
|
||||
case 2:
|
||||
return relax ? '0{0,2}' : '00';
|
||||
default: {
|
||||
return relax ? `0{0,${diff}}` : `0{${diff}}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cache
|
||||
*/
|
||||
|
||||
toRegexRange.cache = {};
|
||||
toRegexRange.clearCache = () => (toRegexRange.cache = {});
|
||||
|
||||
/**
|
||||
* Expose `toRegexRange`
|
||||
*/
|
||||
|
||||
module.exports = toRegexRange;
|
||||
@@ -0,0 +1,21 @@
|
||||
import { ParseRuntime } from "./ParseRuntime";
|
||||
//return first eol found from a data chunk.
|
||||
export default function (data: string, param: ParseRuntime): string {
|
||||
if (!param.eol && data) {
|
||||
for (var i = 0, len = data.length; i < len; i++) {
|
||||
if (data[i] === "\r") {
|
||||
if (data[i + 1] === "\n") {
|
||||
param.eol = "\r\n";
|
||||
break;
|
||||
} else if (data[i + 1]) {
|
||||
param.eol = "\r";
|
||||
break;
|
||||
}
|
||||
} else if (data[i] === "\n") {
|
||||
param.eol = "\n";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return param.eol || "\n";
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = require('./async').during;
|
||||
@@ -0,0 +1,15 @@
|
||||
import * as fsScandir from '@nodelib/fs.scandir';
|
||||
import type { Entry } from '../types';
|
||||
import Reader from './reader';
|
||||
export default class SyncReader extends Reader {
|
||||
protected readonly _scandir: typeof fsScandir.scandirSync;
|
||||
private readonly _storage;
|
||||
private readonly _queue;
|
||||
read(): Entry[];
|
||||
private _pushToQueue;
|
||||
private _handleQueue;
|
||||
private _handleDirectory;
|
||||
private _handleError;
|
||||
private _handleEntry;
|
||||
private _pushToStorage;
|
||||
}
|
||||
@@ -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,"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,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0.01755,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0.01755,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0.28329,"110":0,"111":0,"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,"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,"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,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"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,"103":0.03259,"104":0,"105":0,"106":0.05014,"107":0,"108":0.06769,"109":2.59224,"110":1.11311,"111":0,"112":0,"113":0},F:{"9":0,"11":0,"12":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":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,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"9.5-9.6":0,"10.0-10.1":0,"10.5":0,"10.6":0,"11.1":0,"11.5":0,"11.6":0,"12.1":0},B:{"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"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,"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.01755,"108":0.01755,"109":0.08273,"110":0.34847},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.03259,"14":0,"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,"14.1":0.01755,"15.1":0,"15.2-15.3":0,"15.4":0,"15.5":0,"15.6":0.05014,"16.0":0.03259,"16.1":0.05014,"16.2":0,"16.3":0,"16.4":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0,"6.0-6.1":0,"7.0-7.1":0,"8.1-8.4":0,"9.0-9.2":0,"9.3":0,"10.0-10.2":0,"10.3":0,"11.0-11.2":0,"11.3-11.4":0.15672,"12.0-12.1":0,"12.2-12.5":0.15672,"13.0-13.1":0,"13.2":0,"13.3":0,"13.4-13.7":0,"14.0-14.4":0.07879,"14.5-14.8":0.2355,"15.0-15.1":0,"15.2-15.3":0.07879,"15.4":0,"15.5":1.02166,"15.6":0.54979,"16.0":0,"16.1":0.54979,"16.2":5.65722,"16.3":0.07879,"16.4":0},P:{"4":0,"20":0,"5.0-5.4":0,"6.2-6.4":0,"7.2-7.4":0,"8.2":0,"9.2":0,"10.1":0,"11.1-11.2":0,"12.0":0,"13.0":0,"14.0":0,"15.0":0,"16.0":0,"17.0":0,"18.0":0.07039,"19.0":2.60461},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},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0},O:{"0":0},H:{"0":0.06384},L:{"0":83.04303},R:{_:"0"},M:{"0":0},Q:{"13.1":0}};
|
||||
@@ -0,0 +1,48 @@
|
||||
function stringifyNode(node, custom) {
|
||||
var type = node.type;
|
||||
var value = node.value;
|
||||
var buf;
|
||||
var customResult;
|
||||
|
||||
if (custom && (customResult = custom(node)) !== undefined) {
|
||||
return customResult;
|
||||
} else if (type === "word" || type === "space") {
|
||||
return value;
|
||||
} else if (type === "string") {
|
||||
buf = node.quote || "";
|
||||
return buf + value + (node.unclosed ? "" : buf);
|
||||
} else if (type === "comment") {
|
||||
return "/*" + value + (node.unclosed ? "" : "*/");
|
||||
} else if (type === "div") {
|
||||
return (node.before || "") + value + (node.after || "");
|
||||
} else if (Array.isArray(node.nodes)) {
|
||||
buf = stringify(node.nodes, custom);
|
||||
if (type !== "function") {
|
||||
return buf;
|
||||
}
|
||||
return (
|
||||
value +
|
||||
"(" +
|
||||
(node.before || "") +
|
||||
buf +
|
||||
(node.after || "") +
|
||||
(node.unclosed ? "" : ")")
|
||||
);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function stringify(nodes, custom) {
|
||||
var result, i;
|
||||
|
||||
if (Array.isArray(nodes)) {
|
||||
result = "";
|
||||
for (i = nodes.length - 1; ~i; i -= 1) {
|
||||
result = stringifyNode(nodes[i], custom) + result;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return stringifyNode(nodes, custom);
|
||||
}
|
||||
|
||||
module.exports = stringify;
|
||||
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isEmpty = void 0;
|
||||
var lift_1 = require("../util/lift");
|
||||
var OperatorSubscriber_1 = require("./OperatorSubscriber");
|
||||
function isEmpty() {
|
||||
return lift_1.operate(function (source, subscriber) {
|
||||
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
|
||||
subscriber.next(false);
|
||||
subscriber.complete();
|
||||
}, function () {
|
||||
subscriber.next(true);
|
||||
subscriber.complete();
|
||||
}));
|
||||
});
|
||||
}
|
||||
exports.isEmpty = isEmpty;
|
||||
//# sourceMappingURL=isEmpty.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
#Copyright (c) 2014 Calvin Metcalf
|
||||
|
||||
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,47 @@
|
||||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
|
||||
var IsPropertyKey = require('./IsPropertyKey');
|
||||
var SameValue = require('./SameValue');
|
||||
var Type = require('./Type');
|
||||
|
||||
// IE 9 does not throw in strict mode when writability/configurability/extensibility is violated
|
||||
var noThrowOnStrictViolation = (function () {
|
||||
try {
|
||||
delete [].length;
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}());
|
||||
|
||||
// https://262.ecma-international.org/6.0/#sec-set-o-p-v-throw
|
||||
|
||||
module.exports = function Set(O, P, V, Throw) {
|
||||
if (Type(O) !== 'Object') {
|
||||
throw new $TypeError('Assertion failed: `O` must be an Object');
|
||||
}
|
||||
if (!IsPropertyKey(P)) {
|
||||
throw new $TypeError('Assertion failed: `P` must be a Property Key');
|
||||
}
|
||||
if (Type(Throw) !== 'Boolean') {
|
||||
throw new $TypeError('Assertion failed: `Throw` must be a Boolean');
|
||||
}
|
||||
if (Throw) {
|
||||
O[P] = V; // eslint-disable-line no-param-reassign
|
||||
if (noThrowOnStrictViolation && !SameValue(O[P], V)) {
|
||||
throw new $TypeError('Attempted to assign to readonly property.');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
O[P] = V; // eslint-disable-line no-param-reassign
|
||||
return noThrowOnStrictViolation ? SameValue(O[P], V) : true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 0.4
|
||||
- 0.6
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"2":"C K L G M","164":"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","3138":"N","12292":"O"},C:{"1":"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","260":"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 EC FC"},D:{"164":"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":"3B 4B 5B sB 6B 7B 8B 9B OC","2":"HC zB","164":"I v J D E F A B C K L G IC JC KC LC 0B qB rB 1B MC NC 2B"},F:{"2":"F B C PC QC RC SC qB AC TC rB","164":"0 1 2 3 4 5 6 7 8 9 G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e"},G:{"1":"3B 4B 5B sB 6B 7B 8B 9B","164":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B"},H:{"2":"oC"},I:{"164":"f tC uC","676":"tB I pC qC rC sC BC"},J:{"164":"D A"},K:{"2":"A B C qB AC rB","164":"h"},L:{"164":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"164":"vC"},P:{"164":"I g wC xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C"},Q:{"164":"1B"},R:{"164":"9C"},S:{"1":"BD","260":"AD"}},B:4,C:"CSS Masks"};
|
||||
@@ -0,0 +1,64 @@
|
||||
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
||||
export declare type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array | Uint16Array | Int16Array | Uint32Array | Int32Array;
|
||||
export declare const u8: (arr: TypedArray) => Uint8Array;
|
||||
export declare const u32: (arr: TypedArray) => Uint32Array;
|
||||
export declare const createView: (arr: TypedArray) => DataView;
|
||||
export declare const rotr: (word: number, shift: number) => number;
|
||||
export declare const isLE: boolean;
|
||||
/**
|
||||
* @example bytesToHex(Uint8Array.from([0xde, 0xad, 0xbe, 0xef]))
|
||||
*/
|
||||
export declare function bytesToHex(uint8a: Uint8Array): string;
|
||||
/**
|
||||
* @example hexToBytes('deadbeef')
|
||||
*/
|
||||
export declare function hexToBytes(hex: string): Uint8Array;
|
||||
export declare const nextTick: () => Promise<void>;
|
||||
export declare function asyncLoop(iters: number, tick: number, cb: (i: number) => void): Promise<void>;
|
||||
export declare function utf8ToBytes(str: string): Uint8Array;
|
||||
export declare type Input = Uint8Array | string;
|
||||
export declare function toBytes(data: Input): Uint8Array;
|
||||
/**
|
||||
* Concats Uint8Array-s into one; like `Buffer.concat([buf1, buf2])`
|
||||
* @example concatBytes(buf1, buf2)
|
||||
*/
|
||||
export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array;
|
||||
export declare abstract class Hash<T extends Hash<T>> {
|
||||
abstract blockLen: number;
|
||||
abstract outputLen: number;
|
||||
abstract update(buf: Input): this;
|
||||
abstract digestInto(buf: Uint8Array): void;
|
||||
abstract digest(): Uint8Array;
|
||||
abstract destroy(): void;
|
||||
abstract _cloneInto(to?: T): T;
|
||||
clone(): T;
|
||||
}
|
||||
/**
|
||||
* XOF: streaming API to read digest in chunks.
|
||||
* Same as 'squeeze' in keccak/k12 and 'seek' in blake3, but more generic name.
|
||||
* When hash used in XOF mode it is up to user to call '.destroy' afterwards, since we cannot destroy state, next call can require more bytes.
|
||||
*/
|
||||
export declare type HashXOF<T extends Hash<T>> = Hash<T> & {
|
||||
xof(bytes: number): Uint8Array;
|
||||
xofInto(buf: Uint8Array): Uint8Array;
|
||||
};
|
||||
declare type EmptyObj = {};
|
||||
export declare function checkOpts<T1 extends EmptyObj, T2 extends EmptyObj>(defaults: T1, opts?: T2): T1 & T2;
|
||||
export declare type CHash = ReturnType<typeof wrapConstructor>;
|
||||
export declare function wrapConstructor<T extends Hash<T>>(hashConstructor: () => Hash<T>): {
|
||||
(message: Input): Uint8Array;
|
||||
outputLen: number;
|
||||
blockLen: number;
|
||||
create(): Hash<T>;
|
||||
};
|
||||
export declare function wrapConstructorWithOpts<H extends Hash<H>, T extends Object>(hashCons: (opts?: T) => Hash<H>): {
|
||||
(msg: Input, opts?: T): Uint8Array;
|
||||
outputLen: number;
|
||||
blockLen: number;
|
||||
create(opts: T): Hash<H>;
|
||||
};
|
||||
/**
|
||||
* Secure PRNG
|
||||
*/
|
||||
export declare function randomBytes(bytesLength?: number): Uint8Array;
|
||||
export {};
|
||||
@@ -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,"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.00527,"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,"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,"108":0.02637,"109":0.40075,"110":0.30583,"111":0,"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,"50":0.00527,"51":0,"52":0,"53":0.00527,"54":0,"55":0,"56":0,"57":0,"58":0.01055,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0.00527,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0.00527,"76":0.76459,"77":0.08437,"78":0,"79":0.06328,"80":0,"81":0.06328,"83":0,"84":0.01582,"85":0.05273,"86":0,"87":0,"88":0.02109,"89":0.00527,"90":0.01582,"91":0,"92":0.01582,"93":0.02637,"94":0,"95":0.00527,"96":0.01055,"97":0.01055,"98":0,"99":0.00527,"100":0.05273,"101":0.00527,"102":0.00527,"103":0.10546,"104":0.00527,"105":0.06328,"106":0.02637,"107":0.04218,"108":0.6064,"109":9.2172,"110":5.22027,"111":0.01055,"112":0.01055,"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.00527,"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,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"60":0,"62":0,"63":0.08964,"64":0,"65":0,"66":0,"67":0.04746,"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.00527,"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.01582,"94":0.18983,"95":0.10546,"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.00527,"13":0,"14":0.00527,"15":0,"16":0.01582,"17":0.01582,"18":0.01582,"79":0,"80":0,"81":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0.00527,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0.058,"104":0.00527,"105":0.53785,"106":0,"107":0.01582,"108":0.16874,"109":1.46589,"110":1.95101},E:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0.01055,"14":0.01582,"15":0.00527,_:"0","3.1":0,"3.2":0,"5.1":0.01055,"6.1":0,"7.1":0,"9.1":0,"10.1":0,"11.1":0,"12.1":0.00527,"13.1":0.01582,"14.1":0.0791,"15.1":0.01582,"15.2-15.3":0,"15.4":0,"15.5":0.03691,"15.6":0.51148,"16.0":0.03164,"16.1":0.14237,"16.2":0.66967,"16.3":0.17401,"16.4":0},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0,"5.0-5.1":0.00372,"6.0-6.1":0,"7.0-7.1":0.00929,"8.1-8.4":0,"9.0-9.2":0,"9.3":0.00929,"10.0-10.2":0.00372,"10.3":0.00557,"11.0-11.2":0.01672,"11.3-11.4":0.0223,"12.0-12.1":0,"12.2-12.5":0.61131,"13.0-13.1":0,"13.2":0,"13.3":0,"13.4-13.7":0.05203,"14.0-14.4":0.06503,"14.5-14.8":0.20625,"15.0-15.1":0.11149,"15.2-15.3":0.17466,"15.4":0.08919,"15.5":1.47162,"15.6":1.09814,"16.0":1.56452,"16.1":2.37651,"16.2":5.37177,"16.3":2.74813,"16.4":0.04831},P:{"4":0.02113,"20":0.94039,"5.0-5.4":0.01057,"6.2-6.4":0,"7.2-7.4":0.13736,"8.2":0,"9.2":0.01057,"10.1":0,"11.1-11.2":0.01057,"12.0":0,"13.0":0.01057,"14.0":0,"15.0":0,"16.0":0.0317,"17.0":0.20076,"18.0":0.02113,"19.0":2.55703},I:{"0":0,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.10516,"4.4":0,"4.4.3-4.4.4":0.81125},K:{_:"0 10 11 12 11.1 11.5 12.1"},A:{"6":0,"7":0,"8":0,"9":0,"10":0.00527,"11":0.00527,"5.5":0},N:{"10":0,"11":0},S:{"2.5":0,_:"3.0-3.1"},J:{"7":0,"10":0.00473},O:{"0":0.27417},H:{"0":0.46095},L:{"0":51.97387},R:{_:"0"},M:{"0":0.09927},Q:{"13.1":0}};
|
||||
@@ -0,0 +1,95 @@
|
||||
import { identity } from './identity';
|
||||
import { UnaryFunction } from '../types';
|
||||
|
||||
export function pipe(): typeof identity;
|
||||
export function pipe<T, A>(fn1: UnaryFunction<T, A>): UnaryFunction<T, A>;
|
||||
export function pipe<T, A, B>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>): UnaryFunction<T, B>;
|
||||
export function pipe<T, A, B, C>(fn1: UnaryFunction<T, A>, fn2: UnaryFunction<A, B>, fn3: UnaryFunction<B, C>): UnaryFunction<T, C>;
|
||||
export function pipe<T, A, B, C, D>(
|
||||
fn1: UnaryFunction<T, A>,
|
||||
fn2: UnaryFunction<A, B>,
|
||||
fn3: UnaryFunction<B, C>,
|
||||
fn4: UnaryFunction<C, D>
|
||||
): UnaryFunction<T, D>;
|
||||
export function pipe<T, A, B, C, D, E>(
|
||||
fn1: UnaryFunction<T, A>,
|
||||
fn2: UnaryFunction<A, B>,
|
||||
fn3: UnaryFunction<B, C>,
|
||||
fn4: UnaryFunction<C, D>,
|
||||
fn5: UnaryFunction<D, E>
|
||||
): UnaryFunction<T, E>;
|
||||
export function pipe<T, A, B, C, D, E, F>(
|
||||
fn1: UnaryFunction<T, A>,
|
||||
fn2: UnaryFunction<A, B>,
|
||||
fn3: UnaryFunction<B, C>,
|
||||
fn4: UnaryFunction<C, D>,
|
||||
fn5: UnaryFunction<D, E>,
|
||||
fn6: UnaryFunction<E, F>
|
||||
): UnaryFunction<T, F>;
|
||||
export function pipe<T, A, B, C, D, E, F, G>(
|
||||
fn1: UnaryFunction<T, A>,
|
||||
fn2: UnaryFunction<A, B>,
|
||||
fn3: UnaryFunction<B, C>,
|
||||
fn4: UnaryFunction<C, D>,
|
||||
fn5: UnaryFunction<D, E>,
|
||||
fn6: UnaryFunction<E, F>,
|
||||
fn7: UnaryFunction<F, G>
|
||||
): UnaryFunction<T, G>;
|
||||
export function pipe<T, A, B, C, D, E, F, G, H>(
|
||||
fn1: UnaryFunction<T, A>,
|
||||
fn2: UnaryFunction<A, B>,
|
||||
fn3: UnaryFunction<B, C>,
|
||||
fn4: UnaryFunction<C, D>,
|
||||
fn5: UnaryFunction<D, E>,
|
||||
fn6: UnaryFunction<E, F>,
|
||||
fn7: UnaryFunction<F, G>,
|
||||
fn8: UnaryFunction<G, H>
|
||||
): UnaryFunction<T, H>;
|
||||
export function pipe<T, A, B, C, D, E, F, G, H, I>(
|
||||
fn1: UnaryFunction<T, A>,
|
||||
fn2: UnaryFunction<A, B>,
|
||||
fn3: UnaryFunction<B, C>,
|
||||
fn4: UnaryFunction<C, D>,
|
||||
fn5: UnaryFunction<D, E>,
|
||||
fn6: UnaryFunction<E, F>,
|
||||
fn7: UnaryFunction<F, G>,
|
||||
fn8: UnaryFunction<G, H>,
|
||||
fn9: UnaryFunction<H, I>
|
||||
): UnaryFunction<T, I>;
|
||||
export function pipe<T, A, B, C, D, E, F, G, H, I>(
|
||||
fn1: UnaryFunction<T, A>,
|
||||
fn2: UnaryFunction<A, B>,
|
||||
fn3: UnaryFunction<B, C>,
|
||||
fn4: UnaryFunction<C, D>,
|
||||
fn5: UnaryFunction<D, E>,
|
||||
fn6: UnaryFunction<E, F>,
|
||||
fn7: UnaryFunction<F, G>,
|
||||
fn8: UnaryFunction<G, H>,
|
||||
fn9: UnaryFunction<H, I>,
|
||||
...fns: UnaryFunction<any, any>[]
|
||||
): UnaryFunction<T, unknown>;
|
||||
|
||||
/**
|
||||
* pipe() can be called on one or more functions, each of which can take one argument ("UnaryFunction")
|
||||
* and uses it to return a value.
|
||||
* It returns a function that takes one argument, passes it to the first UnaryFunction, and then
|
||||
* passes the result to the next one, passes that result to the next one, and so on.
|
||||
*/
|
||||
export function pipe(...fns: Array<UnaryFunction<any, any>>): UnaryFunction<any, any> {
|
||||
return pipeFromArray(fns);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export function pipeFromArray<T, R>(fns: Array<UnaryFunction<T, R>>): UnaryFunction<T, R> {
|
||||
if (fns.length === 0) {
|
||||
return identity as UnaryFunction<any, any>;
|
||||
}
|
||||
|
||||
if (fns.length === 1) {
|
||||
return fns[0];
|
||||
}
|
||||
|
||||
return function piped(input: T): R {
|
||||
return fns.reduce((prev: any, fn: UnaryFunction<T, R>) => fn(prev), input as any);
|
||||
};
|
||||
}
|
||||
@@ -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":"mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB","2":"0 1 2 3 4 5 6 7 8 9 DC tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB EC FC"},D:{"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 xB yB GC","2":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB"},E:{"1":"L G 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E F A B HC zB IC JC KC LC 0B","132":"C K qB rB"},F:{"1":"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 WB XB YB ZB aB bB cB dB PC QC RC SC qB AC TC rB"},G:{"1":"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 dC","132":"eC fC gC hC iC jC"},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:{"2":"vC"},P:{"1":"g 2C 3C 4C 5C sB 6C 7C 8C","2":"I wC xC yC zC 0C 0B 1C"},Q:{"2":"1B"},R:{"1":"9C"},S:{"1":"BD","2":"AD"}},B:5,C:"CSS math functions min(), max() and clamp()"};
|
||||
@@ -0,0 +1,193 @@
|
||||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.sveltePreprocess = exports.transform = void 0;
|
||||
const utils_1 = require("./modules/utils");
|
||||
const tagInfo_1 = require("./modules/tagInfo");
|
||||
const language_1 = require("./modules/language");
|
||||
const prepareContent_1 = require("./modules/prepareContent");
|
||||
const markup_1 = require("./modules/markup");
|
||||
const transform = async (name, options, { content, map, filename, attributes }) => {
|
||||
if (options === false) {
|
||||
return { code: content };
|
||||
}
|
||||
if (typeof options === 'function') {
|
||||
return options({ content, map, filename, attributes });
|
||||
}
|
||||
// todo: maybe add a try-catch here looking for module-not-found errors
|
||||
const { transformer } = await Promise.resolve().then(() => __importStar(require(`./transformers/${name}`)));
|
||||
return transformer({
|
||||
content,
|
||||
filename,
|
||||
map,
|
||||
attributes,
|
||||
options: typeof options === 'boolean' ? null : options,
|
||||
});
|
||||
};
|
||||
exports.transform = transform;
|
||||
function sveltePreprocess(_a) {
|
||||
var _b, _c;
|
||||
var { aliases, markupTagName = 'template', preserve = [], defaults, sourceMap = (_c = ((_b = process === null || process === void 0 ? void 0 : process.env) === null || _b === void 0 ? void 0 : _b.NODE_ENV) === 'development') !== null && _c !== void 0 ? _c : false, ...rest } = _a === void 0 ? {} : _a;
|
||||
const defaultLanguages = Object.freeze({
|
||||
markup: 'html',
|
||||
style: 'css',
|
||||
script: 'javascript',
|
||||
...defaults,
|
||||
});
|
||||
const transformers = rest;
|
||||
if (aliases === null || aliases === void 0 ? void 0 : aliases.length) {
|
||||
language_1.addLanguageAlias(aliases);
|
||||
}
|
||||
function resolveLanguageArgs(name, alias) {
|
||||
const { [name]: nameOpts, [alias]: aliasOpts } = transformers;
|
||||
const opts = {};
|
||||
if (typeof nameOpts === 'object') {
|
||||
Object.assign(opts, nameOpts);
|
||||
}
|
||||
Object.assign(opts, language_1.getLanguageDefaults(name), language_1.getLanguageDefaults(alias));
|
||||
if (name !== alias && typeof aliasOpts === 'object') {
|
||||
Object.assign(opts, aliasOpts);
|
||||
}
|
||||
if (sourceMap && name in language_1.SOURCE_MAP_PROP_MAP) {
|
||||
const [path, value] = language_1.SOURCE_MAP_PROP_MAP[name];
|
||||
utils_1.setProp(opts, path, value);
|
||||
}
|
||||
return opts;
|
||||
}
|
||||
function getTransformerOptions(lang, alias, { ignoreAliasOverride } = {}) {
|
||||
const { [lang]: langOpts, [alias]: aliasOpts } = transformers;
|
||||
if (!ignoreAliasOverride && typeof aliasOpts === 'function') {
|
||||
return aliasOpts;
|
||||
}
|
||||
if (typeof langOpts === 'function')
|
||||
return langOpts;
|
||||
if (aliasOpts === false || langOpts === false)
|
||||
return false;
|
||||
return resolveLanguageArgs(lang, alias);
|
||||
}
|
||||
const getTransformerTo = (type, targetLanguage) => async (svelteFile) => {
|
||||
let { content, filename, lang, alias, dependencies, attributes, } = await tagInfo_1.getTagInfo(svelteFile);
|
||||
if (lang == null || alias == null) {
|
||||
alias = defaultLanguages[type];
|
||||
lang = language_1.getLanguageFromAlias(alias);
|
||||
}
|
||||
if (preserve.includes(lang) || preserve.includes(alias)) {
|
||||
return { code: content };
|
||||
}
|
||||
const transformerOptions = getTransformerOptions(lang, alias);
|
||||
content = prepareContent_1.prepareContent({
|
||||
options: transformerOptions,
|
||||
content,
|
||||
});
|
||||
if (lang === targetLanguage) {
|
||||
// has override method for alias
|
||||
// example: sugarss override should work apart from postcss
|
||||
if (typeof transformerOptions === 'function' && alias !== lang) {
|
||||
return transformerOptions({ content, filename, attributes });
|
||||
}
|
||||
// otherwise, we're done here
|
||||
return { code: content, dependencies };
|
||||
}
|
||||
const transformed = await exports.transform(lang, transformerOptions, {
|
||||
content,
|
||||
filename,
|
||||
attributes,
|
||||
});
|
||||
return {
|
||||
...transformed,
|
||||
dependencies: utils_1.concat(dependencies, transformed.dependencies),
|
||||
};
|
||||
};
|
||||
const scriptTransformer = getTransformerTo('script', 'javascript');
|
||||
const cssTransformer = getTransformerTo('style', 'css');
|
||||
const markupTransformer = getTransformerTo('markup', 'html');
|
||||
const markup = async ({ content, filename }) => {
|
||||
if (transformers.replace) {
|
||||
const transformed = await exports.transform('replace', transformers.replace, {
|
||||
content,
|
||||
filename,
|
||||
});
|
||||
content = transformed.code;
|
||||
}
|
||||
return markup_1.transformMarkup({ content, filename }, markupTransformer, {
|
||||
// we only pass the markupTagName because the rest of options
|
||||
// is fetched internally by the `markupTransformer`
|
||||
markupTagName,
|
||||
});
|
||||
};
|
||||
const script = async ({ content, attributes, filename, }) => {
|
||||
const transformResult = await scriptTransformer({
|
||||
content,
|
||||
attributes,
|
||||
filename,
|
||||
});
|
||||
let { code, map, dependencies, diagnostics } = transformResult;
|
||||
if (transformers.babel) {
|
||||
const transformed = await exports.transform('babel', getTransformerOptions('babel'), { content: code, map, filename, attributes });
|
||||
code = transformed.code;
|
||||
map = transformed.map;
|
||||
dependencies = utils_1.concat(dependencies, transformed.dependencies);
|
||||
diagnostics = utils_1.concat(diagnostics, transformed.diagnostics);
|
||||
}
|
||||
return { code, map, dependencies, diagnostics };
|
||||
};
|
||||
const style = async ({ content, attributes, filename, }) => {
|
||||
const transformResult = await cssTransformer({
|
||||
content,
|
||||
attributes,
|
||||
filename,
|
||||
});
|
||||
let { code, map, dependencies } = transformResult;
|
||||
const hasPostcss = await utils_1.hasDepInstalled('postcss');
|
||||
// istanbul ignore else
|
||||
if (hasPostcss) {
|
||||
if (transformers.postcss) {
|
||||
const { alias, lang } = language_1.getLanguage(attributes);
|
||||
const postcssOptions = getTransformerOptions('postcss', language_1.isAliasOf(alias, lang) ? alias : null,
|
||||
// todo: this seems wrong and ugly
|
||||
{ ignoreAliasOverride: true });
|
||||
const transformed = await exports.transform('postcss', postcssOptions, {
|
||||
content: code,
|
||||
map,
|
||||
filename,
|
||||
attributes,
|
||||
});
|
||||
code = transformed.code;
|
||||
map = transformed.map;
|
||||
dependencies = utils_1.concat(dependencies, transformed.dependencies);
|
||||
}
|
||||
const transformed = await exports.transform('globalStyle', getTransformerOptions('globalStyle'), { content: code, map, filename, attributes });
|
||||
code = transformed.code;
|
||||
map = transformed.map;
|
||||
}
|
||||
else if ('global' in attributes) {
|
||||
console.warn(`[svelte-preprocess] 'global' attribute found, but 'postcss' is not installed. 'postcss' is used to walk through the CSS and transform any necessary selector.`);
|
||||
}
|
||||
return { code, map, dependencies };
|
||||
};
|
||||
return {
|
||||
defaultLanguages,
|
||||
markup,
|
||||
script,
|
||||
style,
|
||||
};
|
||||
}
|
||||
exports.sveltePreprocess = sveltePreprocess;
|
||||
Reference in New Issue
Block a user