new license file version [CI SKIP]
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"SubscriptionLog.d.ts","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLog.ts"],"names":[],"mappings":"AAAA,qBAAa,eAAe;IACP,eAAe,EAAE,MAAM;IACvB,iBAAiB,EAAE,MAAM;gBADzB,eAAe,EAAE,MAAM,EACvB,iBAAiB,GAAE,MAAiB;CAExD"}
|
||||
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.parse = void 0;
|
||||
var tslib_1 = require("tslib");
|
||||
function parse() {
|
||||
throw new Error("You're trying to format an uncompiled message with react-intl without parser, please import from 'react-int' instead");
|
||||
}
|
||||
exports.parse = parse;
|
||||
(0, tslib_1.__exportStar)(require("./types"), exports);
|
||||
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./is-implemented")()
|
||||
? Array.prototype[require("es6-symbol").iterator]
|
||||
: require("./shim");
|
||||
@@ -0,0 +1,8 @@
|
||||
export type RunnerTeam = {
|
||||
parentGroup: string;
|
||||
id: number;
|
||||
name: string;
|
||||
contact?: any;
|
||||
distance: number;
|
||||
distanceDonationAmount: number;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"C K L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"1":"0 1 2 3 4 5 6 7 8 9 tB I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB EC FC","16":"DC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 I v J D E F A B C K L G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB GC"},E:{"1":"I v J D E F A B C K L G HC zB IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC"},F:{"1":"0 1 2 3 4 5 6 7 8 9 B C G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e PC QC RC SC qB AC TC rB","16":"F"},G:{"1":"E zB UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B"},H:{"1":"oC"},I:{"1":"tB I f pC qC rC sC BC tC uC"},J:{"1":"D A"},K:{"1":"A B C h qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"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:7,C:"document.evaluate & XPath"};
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"check-password-strength","version":"2.0.2","files":{"index.test.js":{"checkedAt":1678883668045,"integrity":"sha512-Oi/bitWdQywcWXSUPmjk4Jr+r97v4yUBSlZeFnv+m2EztX/XkXMHE70+Vo3VDZZcoayknDC0H7UwLhnXfprk3g==","mode":420,"size":8701},".travis.yml":{"checkedAt":1678883668052,"integrity":"sha512-A/mMgoUpZ2zMgWjlq52EVnyxATfwM3PEbIdM3dujKBHRCalNEKu0rI0YV+F/2BX+XtS1fOsbGAQUmdY4NoTA+A==","mode":420,"size":41},"index.js":{"checkedAt":1678883668052,"integrity":"sha512-SE0pplQuUJTDykwhs/9m0P1REXj6Sit3kdFHl3msM7npUNJqgT4KRwybHQNsa75YReSGvS1F0ySlMaMsR0TXpg==","mode":420,"size":1506},"package.json":{"checkedAt":1678883668052,"integrity":"sha512-j4Ho+oiT48QXqJ0YRmLk0i+6sZUkBepTwMqunKjva+fTQTGxNeyq6l+3CN+3YNbl/DA4sXQ30CfgHXvF2tgqFQ==","mode":420,"size":1155},"LICENSE.md":{"checkedAt":1678883668054,"integrity":"sha512-VqUVGe5gNe6lHbf6vQlrglCD3yHXeW/WGgJBcdrZ4YtPEZ3Sq/w1k6/rMPyQ37/Wq4/hfA8ljsFLRi6INnGN/g==","mode":420,"size":1097},"README.md":{"checkedAt":1678883668057,"integrity":"sha512-k8CUVivemWEXTO/bwog+nGKxr6IadM6xgg09ro7QRhSlk4CIj+Cx27FENVov0jZ+cafc/FCCGcCfSDzRMPp/CA==","mode":420,"size":6264}}}
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com), James Kyle <me@thejameskyle.com> (thejameskyle.com)
|
||||
|
||||
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,42 @@
|
||||
'use strict';
|
||||
|
||||
var aFrom = require('es5-ext/array/from')
|
||||
, remove = require('es5-ext/array/#/remove')
|
||||
, value = require('es5-ext/object/valid-object')
|
||||
, d = require('d')
|
||||
, emit = require('./').methods.emit
|
||||
|
||||
, defineProperty = Object.defineProperty
|
||||
, hasOwnProperty = Object.prototype.hasOwnProperty
|
||||
, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
||||
|
||||
module.exports = function (e1, e2/*, name*/) {
|
||||
var pipes, pipe, desc, name;
|
||||
|
||||
(value(e1) && value(e2));
|
||||
name = arguments[2];
|
||||
if (name === undefined) name = 'emit';
|
||||
|
||||
pipe = {
|
||||
close: function () { remove.call(pipes, e2); }
|
||||
};
|
||||
if (hasOwnProperty.call(e1, '__eePipes__')) {
|
||||
(pipes = e1.__eePipes__).push(e2);
|
||||
return pipe;
|
||||
}
|
||||
defineProperty(e1, '__eePipes__', d('c', pipes = [e2]));
|
||||
desc = getOwnPropertyDescriptor(e1, name);
|
||||
if (!desc) {
|
||||
desc = d('c', undefined);
|
||||
} else {
|
||||
delete desc.get;
|
||||
delete desc.set;
|
||||
}
|
||||
desc.value = function () {
|
||||
var i, emitter, data = aFrom(pipes);
|
||||
emit.apply(this, arguments);
|
||||
for (i = 0; (emitter = data[i]); ++i) emit.apply(emitter, arguments);
|
||||
};
|
||||
defineProperty(e1, name, desc);
|
||||
return pipe;
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"zipAll.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/zipAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI7D;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,CAAC,KAAK,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,wBAAgB,MAAM,CAAC,CAAC,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AACxD,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACtG,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC"}
|
||||
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
Extract the keys from a type where the value type of the key extends the given `Condition`.
|
||||
|
||||
Internally this is used for the `ConditionalPick` and `ConditionalExcept` types.
|
||||
|
||||
@example
|
||||
```
|
||||
import {ConditionalKeys} from 'type-fest';
|
||||
|
||||
interface Example {
|
||||
a: string;
|
||||
b: string | number;
|
||||
c?: string;
|
||||
d: {};
|
||||
}
|
||||
|
||||
type StringKeysOnly = ConditionalKeys<Example, string>;
|
||||
//=> 'a'
|
||||
```
|
||||
|
||||
To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below.
|
||||
|
||||
@example
|
||||
```
|
||||
type StringKeysAndUndefined = ConditionalKeys<Example, string | undefined>;
|
||||
//=> 'a' | 'c'
|
||||
```
|
||||
|
||||
@category Utilities
|
||||
*/
|
||||
export type ConditionalKeys<Base, Condition> = NonNullable<
|
||||
// Wrap in `NonNullable` to strip away the `undefined` type from the produced union.
|
||||
{
|
||||
// Map through all the keys of the given base type.
|
||||
[Key in keyof Base]:
|
||||
// Pick only keys with types extending the given `Condition` type.
|
||||
Base[Key] extends Condition
|
||||
// Retain this key since the condition passes.
|
||||
? Key
|
||||
// Discard this key since the condition fails.
|
||||
: never;
|
||||
|
||||
// Convert the produced object into a union type of the keys which passed the conditional test.
|
||||
}[keyof Base]
|
||||
>;
|
||||
@@ -0,0 +1,61 @@
|
||||
"use strict";
|
||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||
return new (P || (P = Promise))(function (resolve, reject) {
|
||||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||
});
|
||||
};
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const ip_1 = __importDefault(require("ip"));
|
||||
const net_1 = __importDefault(require("net"));
|
||||
/**
|
||||
* Returns the IP address of the host that the Navigator is running on, as
|
||||
* a string in the dot-separated integer format.
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* ``` js
|
||||
* myIpAddress()
|
||||
* // would return the string "198.95.249.79" if you were running the
|
||||
* // Navigator on that host.
|
||||
* ```
|
||||
*
|
||||
* @return {String} external IP address
|
||||
*/
|
||||
function myIpAddress() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
return new Promise((resolve, reject) => {
|
||||
// 8.8.8.8:53 is "Google Public DNS":
|
||||
// https://developers.google.com/speed/public-dns/
|
||||
const socket = net_1.default.connect({ host: '8.8.8.8', port: 53 });
|
||||
const onError = () => {
|
||||
// if we fail to access Google DNS (as in firewall blocks access),
|
||||
// fallback to querying IP locally
|
||||
resolve(ip_1.default.address());
|
||||
};
|
||||
socket.once('error', onError);
|
||||
socket.once('connect', () => {
|
||||
socket.removeListener('error', onError);
|
||||
const addr = socket.address();
|
||||
socket.destroy();
|
||||
if (typeof addr === 'string') {
|
||||
resolve(addr);
|
||||
}
|
||||
else if (addr.address) {
|
||||
resolve(addr.address);
|
||||
}
|
||||
else {
|
||||
reject(new Error('Expected a `string`'));
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
exports.default = myIpAddress;
|
||||
//# sourceMappingURL=myIpAddress.js.map
|
||||
@@ -0,0 +1 @@
|
||||
test
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";
|
||||
@@ -0,0 +1,39 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.range = void 0;
|
||||
var Observable_1 = require("../Observable");
|
||||
var empty_1 = require("./empty");
|
||||
function range(start, count, scheduler) {
|
||||
if (count == null) {
|
||||
count = start;
|
||||
start = 0;
|
||||
}
|
||||
if (count <= 0) {
|
||||
return empty_1.EMPTY;
|
||||
}
|
||||
var end = count + start;
|
||||
return new Observable_1.Observable(scheduler
|
||||
?
|
||||
function (subscriber) {
|
||||
var n = start;
|
||||
return scheduler.schedule(function () {
|
||||
if (n < end) {
|
||||
subscriber.next(n++);
|
||||
this.schedule();
|
||||
}
|
||||
else {
|
||||
subscriber.complete();
|
||||
}
|
||||
});
|
||||
}
|
||||
:
|
||||
function (subscriber) {
|
||||
var n = start;
|
||||
while (n < end && !subscriber.closed) {
|
||||
subscriber.next(n++);
|
||||
}
|
||||
subscriber.complete();
|
||||
});
|
||||
}
|
||||
exports.range = range;
|
||||
//# sourceMappingURL=range.js.map
|
||||
@@ -0,0 +1,10 @@
|
||||
import { OperatorFunction } from '../types';
|
||||
/** @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. */
|
||||
export declare function mapTo<R>(value: R): OperatorFunction<unknown, R>;
|
||||
/**
|
||||
* @deprecated Do not specify explicit type parameters. Signatures with type parameters
|
||||
* that cannot be inferred will be removed in v8. `mapTo` itself will be removed in v9,
|
||||
* use {@link map} instead: `map(() => value)`.
|
||||
* */
|
||||
export declare function mapTo<T, R>(value: R): OperatorFunction<T, R>;
|
||||
//# sourceMappingURL=mapTo.d.ts.map
|
||||
@@ -0,0 +1,17 @@
|
||||
import { getUserAgent } from "universal-user-agent";
|
||||
import { VERSION } from "./version";
|
||||
const userAgent = `octokit-endpoint.js/${VERSION} ${getUserAgent()}`;
|
||||
// DEFAULTS has all properties set that EndpointOptions has, except url.
|
||||
// So we use RequestParameters and add method as additional required property.
|
||||
export const DEFAULTS = {
|
||||
method: "GET",
|
||||
baseUrl: "https://api.github.com",
|
||||
headers: {
|
||||
accept: "application/vnd.github.v3+json",
|
||||
"user-agent": userAgent,
|
||||
},
|
||||
mediaType: {
|
||||
format: "",
|
||||
previews: [],
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "fetch-blob",
|
||||
"version": "3.2.0",
|
||||
"description": "Blob & File implementation in Node.js, originally from node-fetch.",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"files": [
|
||||
"from.js",
|
||||
"file.js",
|
||||
"file.d.ts",
|
||||
"index.js",
|
||||
"index.d.ts",
|
||||
"from.d.ts",
|
||||
"streams.cjs"
|
||||
],
|
||||
"scripts": {
|
||||
"test": "node --experimental-loader ./test/http-loader.js ./test/test-wpt-in-node.js",
|
||||
"report": "c8 --reporter json --reporter text npm run test",
|
||||
"coverage": "npm run report && codecov -f coverage/coverage-final.json",
|
||||
"prepublishOnly": "tsc --declaration --emitDeclarationOnly --allowJs index.js from.js"
|
||||
},
|
||||
"repository": "https://github.com/node-fetch/fetch-blob.git",
|
||||
"keywords": [
|
||||
"blob",
|
||||
"file",
|
||||
"node-fetch"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^12.20 || >= 14.13"
|
||||
},
|
||||
"author": "Jimmy Wärting <jimmy@warting.se> (https://jimmy.warting.se)",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/node-fetch/fetch-blob/issues"
|
||||
},
|
||||
"homepage": "https://github.com/node-fetch/fetch-blob#readme",
|
||||
"devDependencies": {
|
||||
"@types/node": "^17.0.9",
|
||||
"c8": "^7.11.0",
|
||||
"typescript": "^4.5.4"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/jimmywarting"
|
||||
},
|
||||
{
|
||||
"type": "paypal",
|
||||
"url": "https://paypal.me/jimmywarting"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"node-domexception": "^1.0.0",
|
||||
"web-streams-polyfill": "^3.0.3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [ljharb]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: npm/available-typed-arrays
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
||||
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
|
||||
var floorDay = require("./floor-day");
|
||||
|
||||
module.exports = function () {
|
||||
floorDay.call(this).setDate(1);
|
||||
return this;
|
||||
};
|
||||
@@ -0,0 +1,13 @@
|
||||
var a = require('a');
|
||||
var b = require('b');
|
||||
var c = require('c');
|
||||
var abc = a.b(c);
|
||||
|
||||
var EventEmitter = require('events').EventEmitter;
|
||||
|
||||
var x = require('doom')(5,6,7);
|
||||
x(8,9);
|
||||
c.require('notthis');
|
||||
var y = require('y') * 100;
|
||||
|
||||
var EventEmitter2 = require('events2').EventEmitter();
|
||||
@@ -0,0 +1,20 @@
|
||||
import {
|
||||
PipelineProcessor,
|
||||
PipelineProcessorProps,
|
||||
ProcessorType,
|
||||
} from '../processor';
|
||||
import { ServerStorageOptions } from '../../storage/server';
|
||||
interface ServerPaginationLimitProps extends PipelineProcessorProps {
|
||||
page: number;
|
||||
limit: number;
|
||||
url?: (prevUrl: string, page: number, limit: number) => string;
|
||||
body?: (prevBody: BodyInit, page: number, limit: number) => BodyInit;
|
||||
}
|
||||
declare class ServerPaginationLimit extends PipelineProcessor<
|
||||
ServerStorageOptions,
|
||||
ServerPaginationLimitProps
|
||||
> {
|
||||
get type(): ProcessorType;
|
||||
_process(options?: ServerStorageOptions): ServerStorageOptions;
|
||||
}
|
||||
export default ServerPaginationLimit;
|
||||
@@ -0,0 +1,23 @@
|
||||
import { identity } from '../util/identity';
|
||||
import { operate } from '../util/lift';
|
||||
import { createOperatorSubscriber } from './OperatorSubscriber';
|
||||
export function distinctUntilChanged(comparator, keySelector) {
|
||||
if (keySelector === void 0) { keySelector = identity; }
|
||||
comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;
|
||||
return operate(function (source, subscriber) {
|
||||
var previousKey;
|
||||
var first = true;
|
||||
source.subscribe(createOperatorSubscriber(subscriber, function (value) {
|
||||
var currentKey = keySelector(value);
|
||||
if (first || !comparator(previousKey, currentKey)) {
|
||||
first = false;
|
||||
previousKey = currentKey;
|
||||
subscriber.next(value);
|
||||
}
|
||||
}));
|
||||
});
|
||||
}
|
||||
function defaultCompare(a, b) {
|
||||
return a === b;
|
||||
}
|
||||
//# sourceMappingURL=distinctUntilChanged.js.map
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"name": "require-relative",
|
||||
"version": "0.8.7",
|
||||
"description": "require and resolve modules relative to a path of your choice",
|
||||
"main": "index.js",
|
||||
"homepage": "https://github.com/kamicane/require-relative",
|
||||
"author": "Valerio Proietti <@kamicane> (http://mad4milk.net)",
|
||||
"keywords": [
|
||||
"require",
|
||||
"resolve",
|
||||
"modules",
|
||||
"relative"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/kamicane/require-relative/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/kamicane/require-relative.git"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
if (!require("./is-implemented")()) {
|
||||
Object.defineProperty(Array.prototype, "concat", {
|
||||
value: require("./shim"),
|
||||
configurable: true,
|
||||
enumerable: false,
|
||||
writable: true
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import * as fsStat from '@nodelib/fs.stat';
|
||||
import * as fsWalk from '@nodelib/fs.walk';
|
||||
import { Entry, Pattern, ReaderOptions } from '../types';
|
||||
import Reader from './reader';
|
||||
export default class ReaderSync extends Reader<Entry[]> {
|
||||
protected _walkSync: typeof fsWalk.walkSync;
|
||||
protected _statSync: typeof fsStat.statSync;
|
||||
dynamic(root: string, options: ReaderOptions): Entry[];
|
||||
static(patterns: Pattern[], options: ReaderOptions): Entry[];
|
||||
private _getEntry;
|
||||
private _getStat;
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
/**
|
||||
Convert a union type to an intersection type using [distributive conditional types](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).
|
||||
|
||||
Inspired by [this Stack Overflow answer](https://stackoverflow.com/a/50375286/2172153).
|
||||
|
||||
@example
|
||||
```
|
||||
import type {UnionToIntersection} from 'type-fest';
|
||||
|
||||
type Union = {the(): void} | {great(arg: string): void} | {escape: boolean};
|
||||
|
||||
type Intersection = UnionToIntersection<Union>;
|
||||
//=> {the(): void; great(arg: string): void; escape: boolean};
|
||||
```
|
||||
|
||||
A more applicable example which could make its way into your library code follows.
|
||||
|
||||
@example
|
||||
```
|
||||
import type {UnionToIntersection} from 'type-fest';
|
||||
|
||||
class CommandOne {
|
||||
commands: {
|
||||
a1: () => undefined,
|
||||
b1: () => undefined,
|
||||
}
|
||||
}
|
||||
|
||||
class CommandTwo {
|
||||
commands: {
|
||||
a2: (argA: string) => undefined,
|
||||
b2: (argB: string) => undefined,
|
||||
}
|
||||
}
|
||||
|
||||
const union = [new CommandOne(), new CommandTwo()].map(instance => instance.commands);
|
||||
type Union = typeof union;
|
||||
//=> {a1(): void; b1(): void} | {a2(argA: string): void; b2(argB: string): void}
|
||||
|
||||
type Intersection = UnionToIntersection<Union>;
|
||||
//=> {a1(): void; b1(): void; a2(argA: string): void; b2(argB: string): void}
|
||||
```
|
||||
|
||||
@category Type
|
||||
*/
|
||||
export type UnionToIntersection<Union> = (
|
||||
// `extends unknown` is always going to be the case and is used to convert the
|
||||
// `Union` into a [distributive conditional
|
||||
// type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).
|
||||
Union extends unknown
|
||||
// The union type is used as the only argument to a function since the union
|
||||
// of function arguments is an intersection.
|
||||
? (distributedUnion: Union) => void
|
||||
// This won't happen.
|
||||
: never
|
||||
// Infer the `Intersection` type since TypeScript represents the positional
|
||||
// arguments of unions of functions as an intersection of the union.
|
||||
) extends ((mergedIntersection: infer Intersection) => void)
|
||||
? Intersection
|
||||
: never;
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('forInRight', require('../forInRight'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1,78 @@
|
||||
# mimic-response
|
||||
|
||||
> Mimic a [Node.js HTTP response stream](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install mimic-response
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import {PassThrough as PassThroughStream} from 'node:stream';
|
||||
import mimicResponse from 'mimic-response';
|
||||
|
||||
const responseStream = getHttpResponseStream();
|
||||
const myStream = new PassThroughStream();
|
||||
|
||||
mimicResponse(responseStream, myStream);
|
||||
|
||||
console.log(myStream.statusCode);
|
||||
//=> 200
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### mimicResponse(from, to)
|
||||
|
||||
**Note #1:** The `from.destroy(error)` function is not proxied. You have to call it manually:
|
||||
|
||||
```js
|
||||
import {PassThrough as PassThroughStream} from 'node:stream';
|
||||
import mimicResponse from 'mimic-response';
|
||||
|
||||
const responseStream = getHttpResponseStream();
|
||||
|
||||
const myStream = new PassThroughStream({
|
||||
destroy(error, callback) {
|
||||
responseStream.destroy();
|
||||
|
||||
callback(error);
|
||||
}
|
||||
});
|
||||
|
||||
myStream.destroy();
|
||||
```
|
||||
|
||||
Please note that `myStream` and `responseStream` never throw. The error is passed to the request instead.
|
||||
|
||||
#### from
|
||||
|
||||
Type: `Stream`
|
||||
|
||||
[Node.js HTTP response stream.](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
|
||||
|
||||
#### to
|
||||
|
||||
Type: `Stream`
|
||||
|
||||
Any stream.
|
||||
|
||||
## Related
|
||||
|
||||
- [mimic-fn](https://github.com/sindresorhus/mimic-fn) - Make a function mimic another one
|
||||
- [clone-response](https://github.com/lukechilds/clone-response) - Clone a Node.js response stream
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-mimic-response?utm_source=npm-mimic-response&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
||||
</b>
|
||||
<br>
|
||||
<sub>
|
||||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||
</sub>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
# @octokit/openapi-types
|
||||
|
||||
> Generated TypeScript definitions based on GitHub's OpenAPI spec
|
||||
|
||||
This package is continously updated based on [GitHub's OpenAPI specification](https://github.com/github/rest-api-description/)
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { components } from "@octokit/openapi-types";
|
||||
|
||||
type Repository = components["schemas"]["full-repository"];
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
@@ -0,0 +1,177 @@
|
||||
declare namespace postcssValueParser {
|
||||
interface BaseNode {
|
||||
/**
|
||||
* The offset, inclusive, inside the CSS value at which the node starts.
|
||||
*/
|
||||
sourceIndex: number;
|
||||
|
||||
/**
|
||||
* The offset, exclusive, inside the CSS value at which the node ends.
|
||||
*/
|
||||
sourceEndIndex: number;
|
||||
|
||||
/**
|
||||
* The node's characteristic value
|
||||
*/
|
||||
value: string;
|
||||
}
|
||||
|
||||
interface ClosableNode {
|
||||
/**
|
||||
* Whether the parsed CSS value ended before the node was properly closed
|
||||
*/
|
||||
unclosed?: true;
|
||||
}
|
||||
|
||||
interface AdjacentAwareNode {
|
||||
/**
|
||||
* The token at the start of the node
|
||||
*/
|
||||
before: string;
|
||||
|
||||
/**
|
||||
* The token at the end of the node
|
||||
*/
|
||||
after: string;
|
||||
}
|
||||
|
||||
interface CommentNode extends BaseNode, ClosableNode {
|
||||
type: "comment";
|
||||
}
|
||||
|
||||
interface DivNode extends BaseNode, AdjacentAwareNode {
|
||||
type: "div";
|
||||
}
|
||||
|
||||
interface FunctionNode extends BaseNode, ClosableNode, AdjacentAwareNode {
|
||||
type: "function";
|
||||
|
||||
/**
|
||||
* Nodes inside the function
|
||||
*/
|
||||
nodes: Node[];
|
||||
}
|
||||
|
||||
interface SpaceNode extends BaseNode {
|
||||
type: "space";
|
||||
}
|
||||
|
||||
interface StringNode extends BaseNode, ClosableNode {
|
||||
type: "string";
|
||||
|
||||
/**
|
||||
* The quote type delimiting the string
|
||||
*/
|
||||
quote: '"' | "'";
|
||||
}
|
||||
|
||||
interface UnicodeRangeNode extends BaseNode {
|
||||
type: "unicode-range";
|
||||
}
|
||||
|
||||
interface WordNode extends BaseNode {
|
||||
type: "word";
|
||||
}
|
||||
|
||||
/**
|
||||
* Any node parsed from a CSS value
|
||||
*/
|
||||
type Node =
|
||||
| CommentNode
|
||||
| DivNode
|
||||
| FunctionNode
|
||||
| SpaceNode
|
||||
| StringNode
|
||||
| UnicodeRangeNode
|
||||
| WordNode;
|
||||
|
||||
interface CustomStringifierCallback {
|
||||
/**
|
||||
* @param node The node to stringify
|
||||
* @returns The serialized CSS representation of the node
|
||||
*/
|
||||
(nodes: Node): string | undefined;
|
||||
}
|
||||
|
||||
interface WalkCallback {
|
||||
/**
|
||||
* @param node The currently visited node
|
||||
* @param index The index of the node in the series of parsed nodes
|
||||
* @param nodes The series of parsed nodes
|
||||
* @returns Returning `false` will prevent traversal of descendant nodes (only applies if `bubble` was set to `true` in the `walk()` call)
|
||||
*/
|
||||
(node: Node, index: number, nodes: Node[]): void | boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* A CSS dimension, decomposed into its numeric and unit parts
|
||||
*/
|
||||
interface Dimension {
|
||||
number: string;
|
||||
unit: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A wrapper around a parsed CSS value that allows for inspecting and walking nodes
|
||||
*/
|
||||
interface ParsedValue {
|
||||
/**
|
||||
* The series of parsed nodes
|
||||
*/
|
||||
nodes: Node[];
|
||||
|
||||
/**
|
||||
* Walk all parsed nodes, applying a callback
|
||||
*
|
||||
* @param callback A visitor callback that will be executed for each node
|
||||
* @param bubble When set to `true`, walking will be done inside-out instead of outside-in
|
||||
*/
|
||||
walk(callback: WalkCallback, bubble?: boolean): this;
|
||||
}
|
||||
|
||||
interface ValueParser {
|
||||
/**
|
||||
* Decompose a CSS dimension into its numeric and unit part
|
||||
*
|
||||
* @param value The dimension to decompose
|
||||
* @returns An object representing `number` and `unit` part of the dimension or `false` if the decomposing fails
|
||||
*/
|
||||
unit(value: string): Dimension | false;
|
||||
|
||||
/**
|
||||
* Serialize a series of nodes into a CSS value
|
||||
*
|
||||
* @param nodes The nodes to stringify
|
||||
* @param custom A custom stringifier callback
|
||||
* @returns The generated CSS value
|
||||
*/
|
||||
stringify(nodes: Node | Node[], custom?: CustomStringifierCallback): string;
|
||||
|
||||
/**
|
||||
* Walk a series of nodes, applying a callback
|
||||
*
|
||||
* @param nodes The nodes to walk
|
||||
* @param callback A visitor callback that will be executed for each node
|
||||
* @param bubble When set to `true`, walking will be done inside-out instead of outside-in
|
||||
*/
|
||||
walk(nodes: Node[], callback: WalkCallback, bubble?: boolean): void;
|
||||
|
||||
/**
|
||||
* Parse a CSS value into a series of nodes to operate on
|
||||
*
|
||||
* @param value The value to parse
|
||||
*/
|
||||
new (value: string): ParsedValue;
|
||||
|
||||
/**
|
||||
* Parse a CSS value into a series of nodes to operate on
|
||||
*
|
||||
* @param value The value to parse
|
||||
*/
|
||||
(value: string): ParsedValue;
|
||||
}
|
||||
}
|
||||
|
||||
declare const postcssValueParser: postcssValueParser.ValueParser;
|
||||
|
||||
export = postcssValueParser;
|
||||
@@ -0,0 +1,69 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Code coverage report for csv2json/libs/interfaces/cli/index.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/interfaces/cli</a> index.js
|
||||
</h1>
|
||||
<div class='clearfix'>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>0/1</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>0/0</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>0/0</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">0% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>0/1</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="quiet">
|
||||
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
||||
</p>
|
||||
</div>
|
||||
<div class='status-line low'></div>
|
||||
<pre><table class="coverage">
|
||||
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a></td><td class="line-coverage quiet"><span class="cline-any cline-no"> </span></td><td class="text"><pre class="prettyprint lang-js"><span class="cstat-no" title="statement not covered" >module.exports = require("./main.js");</span></pre></td></tr>
|
||||
</table></pre>
|
||||
<div class='push'></div><!-- for sticky footer -->
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri May 11 2018 21:20:20 GMT+0100 (IST)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../../../prettify.js"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
if (typeof prettyPrint === 'function') {
|
||||
prettyPrint();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../../../sorter.js"></script>
|
||||
<script src="../../../../block-navigation.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,17 @@
|
||||
For recent changelog see CHANGELOG.md
|
||||
|
||||
-----
|
||||
|
||||
v1.0.0 -- 2015.12.04
|
||||
- autoBind changes:
|
||||
- replace `bindTo` argument with options and `resolveContext` option
|
||||
- Add support `overwriteDefinition`
|
||||
- Introduce IE11 bug workaround in `lazy` handler
|
||||
|
||||
v0.1.1 -- 2014.04.24
|
||||
- Add `autoBind` and `lazy` utilities
|
||||
- Allow to pass other options to be merged onto created descriptor.
|
||||
Useful when used with other custom utilties
|
||||
|
||||
v0.1.0 -- 2013.06.20
|
||||
Initial (derived from es5-ext project)
|
||||
@@ -0,0 +1,15 @@
|
||||
(The MIT License)
|
||||
|
||||
Copyright (c) 2011-2017 JP Richardson
|
||||
|
||||
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,23 @@
|
||||
/*! blob-to-buffer. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
||||
|
||||
if (!globalThis.DOMException) {
|
||||
const { MessageChannel } = require('worker_threads'),
|
||||
port = new MessageChannel().port1,
|
||||
ab = new ArrayBuffer()
|
||||
try { port.postMessage(ab, [ab, ab]) }
|
||||
catch (err) {
|
||||
err.constructor.name === 'DOMException' && (
|
||||
globalThis.DOMException = err.constructor
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = globalThis.DOMException
|
||||
|
||||
const e1 = new DOMException("Something went wrong", "BadThingsError");
|
||||
console.assert(e1.name === "BadThingsError");
|
||||
console.assert(e1.code === 0);
|
||||
|
||||
const e2 = new DOMException("Another exciting error message", "NoModificationAllowedError");
|
||||
console.assert(e2.name === "NoModificationAllowedError");
|
||||
console.assert(e2.code === 2);
|
||||
@@ -0,0 +1,5 @@
|
||||
declare module 'emoji-regex' {
|
||||
function emojiRegex(): RegExp;
|
||||
|
||||
export = emojiRegex;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = require("./is-implemented")() ? Math.acosh : require("./shim");
|
||||
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"Commands:": "Каманды:",
|
||||
"Options:": "Опцыі:",
|
||||
"Examples:": "Прыклады:",
|
||||
"boolean": "булевы тып",
|
||||
"count": "падлік",
|
||||
"string": "радковы тып",
|
||||
"number": "лік",
|
||||
"array": "масіў",
|
||||
"required": "неабходна",
|
||||
"default": "па змаўчанні",
|
||||
"default:": "па змаўчанні:",
|
||||
"choices:": "магчымасці:",
|
||||
"aliases:": "аліасы:",
|
||||
"generated-value": "згенераванае значэнне",
|
||||
"Not enough non-option arguments: got %s, need at least %s": {
|
||||
"one": "Недастаткова неапцыйных аргументаў: ёсць %s, трэба як мінімум %s",
|
||||
"other": "Недастаткова неапцыйных аргументаў: ёсць %s, трэба як мінімум %s"
|
||||
},
|
||||
"Too many non-option arguments: got %s, maximum of %s": {
|
||||
"one": "Занадта шмат неапцыйных аргументаў: ёсць %s, максімум дапушчальна %s",
|
||||
"other": "Занадта шмат неапцыйных аргументаў: ёсць %s, максімум дапушчальна %s"
|
||||
},
|
||||
"Missing argument value: %s": {
|
||||
"one": "Не хапае значэння аргументу: %s",
|
||||
"other": "Не хапае значэнняў аргументаў: %s"
|
||||
},
|
||||
"Missing required argument: %s": {
|
||||
"one": "Не хапае неабходнага аргументу: %s",
|
||||
"other": "Не хапае неабходных аргументаў: %s"
|
||||
},
|
||||
"Unknown argument: %s": {
|
||||
"one": "Невядомы аргумент: %s",
|
||||
"other": "Невядомыя аргументы: %s"
|
||||
},
|
||||
"Invalid values:": "Несапраўдныя значэння:",
|
||||
"Argument: %s, Given: %s, Choices: %s": "Аргумент: %s, Дадзенае значэнне: %s, Магчымасці: %s",
|
||||
"Argument check failed: %s": "Праверка аргументаў не ўдалася: %s",
|
||||
"Implications failed:": "Дадзены аргумент патрабуе наступны дадатковы аргумент:",
|
||||
"Not enough arguments following: %s": "Недастаткова наступных аргументаў: %s",
|
||||
"Invalid JSON config file: %s": "Несапраўдны файл канфігурацыі JSON: %s",
|
||||
"Path to JSON config file": "Шлях да файла канфігурацыі JSON",
|
||||
"Show help": "Паказаць дапамогу",
|
||||
"Show version number": "Паказаць нумар версіі",
|
||||
"Did you mean %s?": "Вы мелі на ўвазе %s?"
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
import Stats from '../Stats';
|
||||
import { Scope } from './utils/scope';
|
||||
import Stylesheet from './css/Stylesheet';
|
||||
import Fragment from './nodes/Fragment';
|
||||
import { Ast, CompileOptions, Var, Warning, CssResult } from '../interfaces';
|
||||
import TemplateScope from './nodes/shared/TemplateScope';
|
||||
import Slot from './nodes/Slot';
|
||||
import { Node, ImportDeclaration, ExportNamedDeclaration, Identifier, FunctionDeclaration } from 'estree';
|
||||
import Element from './nodes/Element';
|
||||
interface ComponentOptions {
|
||||
namespace?: string;
|
||||
tag?: string;
|
||||
immutable?: boolean;
|
||||
accessors?: boolean;
|
||||
preserveWhitespace?: boolean;
|
||||
}
|
||||
export default class Component {
|
||||
stats: Stats;
|
||||
warnings: Warning[];
|
||||
ignores: Set<string>;
|
||||
ignore_stack: Array<Set<string>>;
|
||||
ast: Ast;
|
||||
original_ast: Ast;
|
||||
source: string;
|
||||
name: Identifier;
|
||||
compile_options: CompileOptions;
|
||||
fragment: Fragment;
|
||||
module_scope: Scope;
|
||||
instance_scope: Scope;
|
||||
instance_scope_map: WeakMap<Node, Scope>;
|
||||
component_options: ComponentOptions;
|
||||
namespace: string;
|
||||
tag: string;
|
||||
accessors: boolean;
|
||||
vars: Var[];
|
||||
var_lookup: Map<string, Var>;
|
||||
imports: ImportDeclaration[];
|
||||
exports_from: ExportNamedDeclaration[];
|
||||
instance_exports_from: ExportNamedDeclaration[];
|
||||
hoistable_nodes: Set<Node>;
|
||||
node_for_declaration: Map<string, Node>;
|
||||
partly_hoisted: Array<(Node | Node[])>;
|
||||
fully_hoisted: Array<(Node | Node[])>;
|
||||
reactive_declarations: Array<{
|
||||
assignees: Set<string>;
|
||||
dependencies: Set<string>;
|
||||
node: Node;
|
||||
declaration: Node;
|
||||
}>;
|
||||
reactive_declaration_nodes: Set<Node>;
|
||||
has_reactive_assignments: boolean;
|
||||
injected_reactive_declaration_vars: Set<string>;
|
||||
helpers: Map<string, Identifier>;
|
||||
globals: Map<string, Identifier>;
|
||||
indirect_dependencies: Map<string, Set<string>>;
|
||||
file: string;
|
||||
locate: (c: number) => {
|
||||
line: number;
|
||||
column: number;
|
||||
};
|
||||
elements: Element[];
|
||||
stylesheet: Stylesheet;
|
||||
aliases: Map<string, Identifier>;
|
||||
used_names: Set<string>;
|
||||
globally_used_names: Set<string>;
|
||||
slots: Map<string, Slot>;
|
||||
slot_outlets: Set<string>;
|
||||
constructor(ast: Ast, source: string, name: string, compile_options: CompileOptions, stats: Stats, warnings: Warning[]);
|
||||
add_var(node: Node, variable: Var, add_to_lookup?: boolean): void;
|
||||
add_reference(node: Node, name: string): void;
|
||||
alias(name: string): Identifier;
|
||||
apply_stylesheet(element: Element): void;
|
||||
global(name: string): Identifier;
|
||||
generate(result?: {
|
||||
js: Node[];
|
||||
css: CssResult;
|
||||
}): {
|
||||
js: any;
|
||||
css: any;
|
||||
ast: Ast;
|
||||
warnings: Warning[];
|
||||
vars: Var[];
|
||||
stats: {
|
||||
timings: {
|
||||
total: number;
|
||||
};
|
||||
};
|
||||
};
|
||||
get_unique_name(name: string, scope?: Scope): Identifier;
|
||||
get_unique_name_maker(): (name: string) => Identifier;
|
||||
get_vars_report(): Var[];
|
||||
error(pos: {
|
||||
start: number;
|
||||
end: number;
|
||||
}, e: {
|
||||
code: string;
|
||||
message: string;
|
||||
}): void;
|
||||
warn(pos: {
|
||||
start: number;
|
||||
end: number;
|
||||
}, warning: {
|
||||
code: string;
|
||||
message: string;
|
||||
}): void;
|
||||
extract_imports(node: any): void;
|
||||
extract_exports(node: any, module_script?: boolean): void | import("estree").ClassDeclaration | FunctionDeclaration | import("estree").VariableDeclaration;
|
||||
private _extract_exports;
|
||||
extract_javascript(script: any): any;
|
||||
walk_module_js(): void;
|
||||
walk_instance_js_pre_template(): void;
|
||||
walk_instance_js_post_template(): void;
|
||||
post_template_walk(): void;
|
||||
track_references_and_mutations(): void;
|
||||
warn_on_undefined_store_value_references(node: Node, parent: Node, prop: string | number | symbol, scope: Scope): void;
|
||||
loop_protect(node: any, scope: Scope, timeout: number): Node | null;
|
||||
rewrite_props(get_insert: (variable: Var) => Node[]): void;
|
||||
hoist_instance_declarations(): void;
|
||||
extract_reactive_declarations(): void;
|
||||
warn_if_undefined(name: string, node: any, template_scope: TemplateScope): void;
|
||||
push_ignores(ignores: any): void;
|
||||
pop_ignores(): void;
|
||||
}
|
||||
export {};
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"chokidar","version":"3.5.3","files":{"LICENSE":{"checkedAt":1678883672843,"integrity":"sha512-ggsqGO01HdjtHwG0G5OpQLw3Iuk6P6+OFiv2ljykADNDq9IoNfzrC52xLpHwqhcScm/jlevDg4QzLis28gPs1g==","mode":420,"size":1129},"lib/constants.js":{"checkedAt":1678883672843,"integrity":"sha512-LaADlEAUw7Ju8x5Z5Dl8raBWaKYhhzROB21boiBy4caSKT7iwapnLsInhwhn2Epq7R2BlhwpBMWtHUlD07NJ9w==","mode":420,"size":1834},"lib/fsevents-handler.js":{"checkedAt":1678883672844,"integrity":"sha512-0CyfqzZ4xgGCwlv9/OQUEGr2AoqcDRcx9lhGDq2gWJuFMnVN0St9ZRvvgL+XE2HETMmXXm4ovjulyCjON40IrQ==","mode":420,"size":16274},"index.js":{"checkedAt":1678883672845,"integrity":"sha512-b8h5q2vlWCbA6YAmiAvyGCBYauQmVeS8tJ46l4gbMImqKnJGlBV8DHsJyxcDFcxHxpgyoburipVDxKe5xFmbFw==","mode":420,"size":28368},"package.json":{"checkedAt":1678883672845,"integrity":"sha512-7RaIcC+x2c4lObJErEdqmNqLQwVk8iv9I0DkmUG8I+jj0uOCEYihRCEI7AyDzR9Kue11yDNQOkesWxzYhqcHsQ==","mode":420,"size":1832},"lib/nodefs-handler.js":{"checkedAt":1678883672845,"integrity":"sha512-Yn34I3CQTMcylWunYpo28W81O6BvoD6sggWJg8B5bke50Mm3FEIkvl/9n5OzNQzdmslo5kSl6CMzaFPYQ/dBRQ==","mode":420,"size":20067},"README.md":{"checkedAt":1678883672845,"integrity":"sha512-0IVUdgmykXXS9BsES4/XFJWjo7WcW3gnaT56nenGXCQwQOcII9SYMckqWjlLbAceHzQTKC8f7uW09jD613H8UA==","mode":420,"size":14275},"types/index.d.ts":{"checkedAt":1678883672845,"integrity":"sha512-h/Z+tTiprEBD4EWpHDL9LWzXUjl7YVFLPAb9Y1aCngGtYCzHP/8Z3x4e4DHlEYqCQGPKu3yvbwtQAw1UkvtQYw==","mode":420,"size":6303}}}
|
||||
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"name": "is-string",
|
||||
"version": "1.0.7",
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"description": "Is this value a JS String object or primitive? This module works cross-realm/iframe, and despite ES6 @@toStringTag.",
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prepublishOnly": "safe-publish-latest",
|
||||
"prepublish": "not-in-publish || npm run prepublishOnly",
|
||||
"pretest": "npm run lint",
|
||||
"tests-only": "nyc tape 'test/**/*.js'",
|
||||
"test:corejs": "nyc tape test-corejs.js",
|
||||
"test": "npm run tests-only && npm run test:corejs",
|
||||
"posttest": "npx aud --production",
|
||||
"lint": "eslint .",
|
||||
"eccheck": "eclint check *.js **/*.js > /dev/null",
|
||||
"version": "auto-changelog && git add CHANGELOG.md",
|
||||
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/ljharb/is-string.git"
|
||||
},
|
||||
"keywords": [
|
||||
"String",
|
||||
"string",
|
||||
"ES6",
|
||||
"toStringTag",
|
||||
"@@toStringTag",
|
||||
"String object"
|
||||
],
|
||||
"dependencies": {
|
||||
"has-tostringtag": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^17.6.0",
|
||||
"aud": "^1.1.5",
|
||||
"auto-changelog": "^2.3.0",
|
||||
"core-js": "^3.16.0",
|
||||
"eclint": "^2.8.1",
|
||||
"eslint": "^7.32.0",
|
||||
"foreach": "^2.0.5",
|
||||
"indexof": "^0.0.1",
|
||||
"is": "^3.3.0",
|
||||
"nyc": "^10.3.2",
|
||||
"safe-publish-latest": "^1.1.4",
|
||||
"tape": "^5.3.0"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
"browsers": [
|
||||
"iexplore/6.0..latest",
|
||||
"firefox/3.0..6.0",
|
||||
"firefox/15.0..latest",
|
||||
"firefox/nightly",
|
||||
"chrome/4.0..10.0",
|
||||
"chrome/20.0..latest",
|
||||
"chrome/canary",
|
||||
"opera/10.0..latest",
|
||||
"opera/next",
|
||||
"safari/4.0..latest",
|
||||
"ipad/6.0..latest",
|
||||
"iphone/6.0..latest",
|
||||
"android-browser/4.2"
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
# global-dirs
|
||||
|
||||
> Get the directory of globally installed packages and binaries
|
||||
|
||||
Uses the same resolution logic as `npm` and `yarn`.
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install global-dirs
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const globalDirectories = require('global-dirs');
|
||||
|
||||
console.log(globalDirectories.npm.prefix);
|
||||
//=> '/usr/local'
|
||||
|
||||
console.log(globalDirectories.npm.packages);
|
||||
//=> '/usr/local/lib/node_modules'
|
||||
|
||||
console.log(globalDirectories.npm.binaries);
|
||||
//=> '/usr/local/bin'
|
||||
|
||||
console.log(globalDirectories.yarn.packages);
|
||||
//=> '/Users/sindresorhus/.config/yarn/global/node_modules'
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### globalDirectories
|
||||
|
||||
#### npm
|
||||
#### yarn
|
||||
|
||||
##### packages
|
||||
|
||||
Directory with globally installed packages.
|
||||
|
||||
Equivalent to `npm root --global`.
|
||||
|
||||
##### binaries
|
||||
|
||||
Directory with globally installed binaries.
|
||||
|
||||
Equivalent to `npm bin --global`.
|
||||
|
||||
##### prefix
|
||||
|
||||
Directory with directories for packages and binaries. You probably want either of the above.
|
||||
|
||||
Equivalent to `npm prefix --global`.
|
||||
|
||||
## Related
|
||||
|
||||
- [import-global](https://github.com/sindresorhus/import-global) - Import a globally installed module
|
||||
- [resolve-global](https://github.com/sindresorhus/resolve-global) - Resolve the path of a globally installed module
|
||||
- [is-installed-globally](https://github.com/sindresorhus/is-installed-globally) - Check if your package was installed globally
|
||||
|
||||
---
|
||||
|
||||
<div align="center">
|
||||
<b>
|
||||
<a href="https://tidelift.com/subscription/pkg/npm-global-dirs?utm_source=npm-global-dirs&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
|
||||
</b>
|
||||
<br>
|
||||
<sub>
|
||||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
|
||||
</sub>
|
||||
</div>
|
||||
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('wrapperLodash', require('../wrapperLodash'), require('./_falseOptions'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
@@ -0,0 +1 @@
|
||||
{"name":"define-lazy-prop","version":"2.0.0","files":{"license":{"checkedAt":1678883669272,"integrity":"sha512-nIst73auX/5NY2Fmv5Y116vWnNrEv4GaIUX3lpZG05rpXJY2S8EX+fpUS5hRjClCM0VdT2Za9DDHXXB5jdSrEw==","mode":420,"size":1109},"package.json":{"checkedAt":1678883671431,"integrity":"sha512-JL7zUv6AufBuY16tR3he5EedMSth4W0jX/vYtYgDBbQTJUxqCc9E0945GmEKwyHh/qe8Dim/NpoQYa+gmllJKw==","mode":420,"size":755},"index.d.ts":{"checkedAt":1678883671431,"integrity":"sha512-fzqxDzL3AuTVHmxJ+Y93eleYMXg/ckfqvLSW3q/RMOYz2Q75WqXuK9ohPgk3NirV2xdxuvSpGFtgvHNeV8w49Q==","mode":420,"size":802},"index.js":{"checkedAt":1678883671431,"integrity":"sha512-HGbHwBnMU+nek+RLIdFaI7qgm7ymzxG3/GMmmi6iYTI336J1wUrXr1Lx9cSnZURriDNV9hVpVXqP9yBD1vxaJg==","mode":420,"size":404},"readme.md":{"checkedAt":1678883671431,"integrity":"sha512-imTnfZPZMF0I3Er4vRIL2DmVbmIcH2cbzijqDYhGzoM0Owd2rsT/faN+arBIvWw+jYX2N7WWtrCalpyvdRdHpg==","mode":420,"size":1376}}}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "@types/relateurl",
|
||||
"version": "0.2.29",
|
||||
"description": "TypeScript definitions for relateurl",
|
||||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/relateurl",
|
||||
"license": "MIT",
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Tanguy Krotoff",
|
||||
"url": "https://github.com/tkrotoff",
|
||||
"githubUsername": "tkrotoff"
|
||||
}
|
||||
],
|
||||
"main": "",
|
||||
"types": "index.d.ts",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
||||
"directory": "types/relateurl"
|
||||
},
|
||||
"scripts": {},
|
||||
"dependencies": {},
|
||||
"typesPublisherContentHash": "96d1a1577ddd40b1e77180effe1baa063304a6d335a83af184bc7c1655ee8aee",
|
||||
"typeScriptVersion": "3.6"
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,277 @@
|
||||
language: node_js
|
||||
os:
|
||||
- linux
|
||||
node_js:
|
||||
- "11.8"
|
||||
- "10.15"
|
||||
- "9.11"
|
||||
- "8.15"
|
||||
- "7.10"
|
||||
- "6.16"
|
||||
- "5.12"
|
||||
- "4.9"
|
||||
- "iojs-v3.3"
|
||||
- "iojs-v2.5"
|
||||
- "iojs-v1.8"
|
||||
- "0.12"
|
||||
- "0.10"
|
||||
- "0.8"
|
||||
before_install:
|
||||
- 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
|
||||
- 'nvm install-latest-npm'
|
||||
install:
|
||||
- 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
|
||||
script:
|
||||
- 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
|
||||
- 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
|
||||
- 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
|
||||
- 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
|
||||
sudo: false
|
||||
env:
|
||||
- TEST=true
|
||||
matrix:
|
||||
fast_finish: true
|
||||
include:
|
||||
- node_js: "lts/*"
|
||||
env: PRETEST=true
|
||||
- node_js: "lts/*"
|
||||
env: POSTTEST=true
|
||||
- node_js: "4"
|
||||
env: COVERAGE=true
|
||||
- node_js: "11.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "11.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.14"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.13"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.12"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "10.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "9.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.14"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.13"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.12"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "8.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "7.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.15"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.14"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.13"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.12"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "6.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.10"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "5.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.8"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "4.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v3.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v3.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v3.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v2.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.7"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.5"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.3"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.2"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.1"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "iojs-v1.0"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.11"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.9"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.6"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
- node_js: "0.4"
|
||||
env: TEST=true ALLOW_FAILURE=true
|
||||
allow_failures:
|
||||
- os: osx
|
||||
- env: TEST=true ALLOW_FAILURE=true
|
||||
- env: COVERAGE=true
|
||||
- env: POSTTEST=true
|
||||
@@ -0,0 +1,141 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Code coverage report for csv2json/src/fileline.ts</title>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="../../prettify.css" />
|
||||
<link rel="stylesheet" href="../../base.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style type='text/css'>
|
||||
.coverage-summary .sorter {
|
||||
background-image: url(../../sort-arrow-sprite.png);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class='wrapper'>
|
||||
<div class='pad1'>
|
||||
<h1>
|
||||
<a href="../../index.html">All files</a> / <a href="index.html">csv2json/src</a> fileline.ts
|
||||
</h1>
|
||||
<div class='clearfix'>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Statements</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Branches</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Functions</span>
|
||||
<span class='fraction'>0/0</span>
|
||||
</div>
|
||||
<div class='fl pad1y space-right2'>
|
||||
<span class="strong">100% </span>
|
||||
<span class="quiet">Lines</span>
|
||||
<span class='fraction'>2/2</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="quiet">
|
||||
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
||||
</p>
|
||||
</div>
|
||||
<div class='status-line high'></div>
|
||||
<pre><table class="coverage">
|
||||
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
||||
<a name='L2'></a><a href='#L2'>2</a>
|
||||
<a name='L3'></a><a href='#L3'>3</a>
|
||||
<a name='L4'></a><a href='#L4'>4</a>
|
||||
<a name='L5'></a><a href='#L5'>5</a>
|
||||
<a name='L6'></a><a href='#L6'>6</a>
|
||||
<a name='L7'></a><a href='#L7'>7</a>
|
||||
<a name='L8'></a><a href='#L8'>8</a>
|
||||
<a name='L9'></a><a href='#L9'>9</a>
|
||||
<a name='L10'></a><a href='#L10'>10</a>
|
||||
<a name='L11'></a><a href='#L11'>11</a>
|
||||
<a name='L12'></a><a href='#L12'>12</a>
|
||||
<a name='L13'></a><a href='#L13'>13</a>
|
||||
<a name='L14'></a><a href='#L14'>14</a>
|
||||
<a name='L15'></a><a href='#L15'>15</a>
|
||||
<a name='L16'></a><a href='#L16'>16</a>
|
||||
<a name='L17'></a><a href='#L17'>17</a>
|
||||
<a name='L18'></a><a href='#L18'>18</a>
|
||||
<a name='L19'></a><a href='#L19'>19</a>
|
||||
<a name='L20'></a><a href='#L20'>20</a>
|
||||
<a name='L21'></a><a href='#L21'>21</a>
|
||||
<a name='L22'></a><a href='#L22'>22</a>
|
||||
<a name='L23'></a><a href='#L23'>23</a>
|
||||
<a name='L24'></a><a href='#L24'>24</a>
|
||||
<a name='L25'></a><a href='#L25'>25</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-yes">1x</span>
|
||||
<span class="cline-any cline-yes">1x</span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span>
|
||||
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { ParseRuntime } from "./ParseRuntime";
|
||||
import getEol from "./getEol";
|
||||
// const getEol = require("./getEol");
|
||||
/**
|
||||
* convert data chunk to file lines array
|
||||
* @param {string} data data chunk as utf8 string
|
||||
* @param {object} param Converter param object
|
||||
* @return {Object} {lines:[line1,line2...],partial:String}
|
||||
*/
|
||||
export function stringToLines(data: string, param: ParseRuntime): StringToLinesResult {
|
||||
const eol = getEol(data, param);
|
||||
const lines = data.split(eol);
|
||||
const partial = lines.pop() || "";
|
||||
return { lines: lines, partial: partial };
|
||||
};
|
||||
|
||||
|
||||
export interface StringToLinesResult {
|
||||
lines: Fileline[],
|
||||
/**
|
||||
* last line which could be incomplete line.
|
||||
*/
|
||||
partial: string
|
||||
}
|
||||
export type Fileline = string;</pre></td></tr>
|
||||
</table></pre>
|
||||
<div class='push'></div><!-- for sticky footer -->
|
||||
</div><!-- /wrapper -->
|
||||
<div class='footer quiet pad2 space-top1 center small'>
|
||||
Code coverage
|
||||
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Fri May 11 2018 21:20:20 GMT+0100 (IST)
|
||||
</div>
|
||||
</div>
|
||||
<script src="../../prettify.js"></script>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
if (typeof prettyPrint === 'function') {
|
||||
prettyPrint();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script src="../../sorter.js"></script>
|
||||
<script src="../../block-navigation.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"rules": {
|
||||
"func-name-matching": [2, "always"],
|
||||
"id-length": 1,
|
||||
},
|
||||
|
||||
"overrides": [
|
||||
{
|
||||
"files": "test/**",
|
||||
"rules": {
|
||||
"func-name-matching": 0,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"F A B","2":"J D E CC"},B:{"1":"C K L G M N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H"},C:{"2":"DC tB I v J D E F A B C K L G M N O w g x EC FC","132":"0 1 2 3 4 5 6 7 8 9 y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB uB ZB vB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H xB yB"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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","2":"I v J D E F","16":"A B"},E:{"1":"I v J D E F A B C K L G IC JC KC LC 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"HC zB"},F:{"1":"0 1 2 3 4 5 6 7 8 9 G M N O w g x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"F B C PC QC RC SC qB AC TC rB"},G:{"1":"E UC BC VC WC XC YC ZC aC bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","16":"zB"},H:{"2":"oC"},I:{"1":"tB I f sC BC tC uC","2":"pC qC rC"},J:{"1":"A","2":"D"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"132":"H"},N:{"1":"A","2":"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:{"132":"AD BD"}},B:6,C:"AAC audio file format"};
|
||||
@@ -0,0 +1,45 @@
|
||||
define(['exports', './parser', './whitespace-control', './helpers', '../utils'], function (exports, _parser, _whitespaceControl, _helpers, _utils) {
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.parseWithoutProcessing = parseWithoutProcessing;
|
||||
exports.parse = parse;
|
||||
// istanbul ignore next
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||||
|
||||
var _parser2 = _interopRequireDefault(_parser);
|
||||
|
||||
var _WhitespaceControl = _interopRequireDefault(_whitespaceControl);
|
||||
|
||||
exports.parser = _parser2['default'];
|
||||
|
||||
var yy = {};
|
||||
_utils.extend(yy, _helpers);
|
||||
|
||||
function parseWithoutProcessing(input, options) {
|
||||
// Just return if an already-compiled AST was passed in.
|
||||
if (input.type === 'Program') {
|
||||
return input;
|
||||
}
|
||||
|
||||
_parser2['default'].yy = yy;
|
||||
|
||||
// Altering the shared object here, but this is ok as parser is a sync operation
|
||||
yy.locInfo = function (locInfo) {
|
||||
return new yy.SourceLocation(options && options.srcName, locInfo);
|
||||
};
|
||||
|
||||
var ast = _parser2['default'].parse(input);
|
||||
|
||||
return ast;
|
||||
}
|
||||
|
||||
function parse(input, options) {
|
||||
var ast = parseWithoutProcessing(input, options);
|
||||
var strip = new _WhitespaceControl['default'](options);
|
||||
|
||||
return strip.accept(ast);
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi9oYW5kbGViYXJzL2NvbXBpbGVyL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7VUFLUyxNQUFNOztBQUVmLE1BQUksRUFBRSxHQUFHLEVBQUUsQ0FBQztBQUNaLFNBTFMsTUFBTSxDQUtSLEVBQUUsV0FBVSxDQUFDOztBQUViLFdBQVMsc0JBQXNCLENBQUMsS0FBSyxFQUFFLE9BQU8sRUFBRTs7QUFFckQsUUFBSSxLQUFLLENBQUMsSUFBSSxLQUFLLFNBQVMsRUFBRTtBQUM1QixhQUFPLEtBQUssQ0FBQztLQUNkOztBQUVELHdCQUFPLEVBQUUsR0FBRyxFQUFFLENBQUM7OztBQUdmLE1BQUUsQ0FBQyxPQUFPLEdBQUcsVUFBUyxPQUFPLEVBQUU7QUFDN0IsYUFBTyxJQUFJLEVBQUUsQ0FBQyxjQUFjLENBQUMsT0FBTyxJQUFJLE9BQU8sQ0FBQyxPQUFPLEVBQUUsT0FBTyxDQUFDLENBQUM7S0FDbkUsQ0FBQzs7QUFFRixRQUFJLEdBQUcsR0FBRyxvQkFBTyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUM7O0FBRTlCLFdBQU8sR0FBRyxDQUFDO0dBQ1o7O0FBRU0sV0FBUyxLQUFLLENBQUMsS0FBSyxFQUFFLE9BQU8sRUFBRTtBQUNwQyxRQUFJLEdBQUcsR0FBRyxzQkFBc0IsQ0FBQyxLQUFLLEVBQUUsT0FBTyxDQUFDLENBQUM7QUFDakQsUUFBSSxLQUFLLEdBQUcsa0NBQXNCLE9BQU8sQ0FBQyxDQUFDOztBQUUzQyxXQUFPLEtBQUssQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLENBQUM7R0FDMUIiLCJmaWxlIjoiYmFzZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBwYXJzZXIgZnJvbSAnLi9wYXJzZXInO1xuaW1wb3J0IFdoaXRlc3BhY2VDb250cm9sIGZyb20gJy4vd2hpdGVzcGFjZS1jb250cm9sJztcbmltcG9ydCAqIGFzIEhlbHBlcnMgZnJvbSAnLi9oZWxwZXJzJztcbmltcG9ydCB7IGV4dGVuZCB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IHsgcGFyc2VyIH07XG5cbmxldCB5eSA9IHt9O1xuZXh0ZW5kKHl5LCBIZWxwZXJzKTtcblxuZXhwb3J0IGZ1bmN0aW9uIHBhcnNlV2l0aG91dFByb2Nlc3NpbmcoaW5wdXQsIG9wdGlvbnMpIHtcbiAgLy8gSnVzdCByZXR1cm4gaWYgYW4gYWxyZWFkeS1jb21waWxlZCBBU1Qgd2FzIHBhc3NlZCBpbi5cbiAgaWYgKGlucHV0LnR5cGUgPT09ICdQcm9ncmFtJykge1xuICAgIHJldHVybiBpbnB1dDtcbiAgfVxuXG4gIHBhcnNlci55eSA9IHl5O1xuXG4gIC8vIEFsdGVyaW5nIHRoZSBzaGFyZWQgb2JqZWN0IGhlcmUsIGJ1dCB0aGlzIGlzIG9rIGFzIHBhcnNlciBpcyBhIHN5bmMgb3BlcmF0aW9uXG4gIHl5LmxvY0luZm8gPSBmdW5jdGlvbihsb2NJbmZvKSB7XG4gICAgcmV0dXJuIG5ldyB5eS5Tb3VyY2VMb2NhdGlvbihvcHRpb25zICYmIG9wdGlvbnMuc3JjTmFtZSwgbG9jSW5mbyk7XG4gIH07XG5cbiAgbGV0IGFzdCA9IHBhcnNlci5wYXJzZShpbnB1dCk7XG5cbiAgcmV0dXJuIGFzdDtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHBhcnNlKGlucHV0LCBvcHRpb25zKSB7XG4gIGxldCBhc3QgPSBwYXJzZVdpdGhvdXRQcm9jZXNzaW5nKGlucHV0LCBvcHRpb25zKTtcbiAgbGV0IHN0cmlwID0gbmV3IFdoaXRlc3BhY2VDb250cm9sKG9wdGlvbnMpO1xuXG4gIHJldHVybiBzdHJpcC5hY2NlcHQoYXN0KTtcbn1cbiJdfQ==
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"J D E F A B CC"},B:{"1":"N O P Q R S T U V W X Y Z a b c d e i j k l m n o p q r s t u f H","2":"C K L G M"},C:{"1":"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 OB EC FC"},D:{"1":"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 DB EB FB GB HB IB JB KB LB MB NB OB PB QB RB","194":"SB TB"},E:{"1":"A B C K L G 0B qB rB 1B MC NC 2B 3B 4B 5B sB 6B 7B 8B 9B OC","2":"I v J D E F HC zB IC JC KC LC"},F:{"1":"HB IB JB KB LB MB NB OB PB QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB h lB mB nB oB pB P Q R wB S T U V W X Y Z a b c d e","2":"0 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 PC QC RC SC qB AC TC rB","194":"GB"},G:{"1":"bC cC dC eC fC gC hC iC jC kC lC mC nC 2B 3B 4B 5B sB 6B 7B 8B 9B","2":"E zB UC BC VC WC XC YC ZC aC"},H:{"2":"oC"},I:{"1":"f","2":"tB I pC qC rC sC BC tC uC"},J:{"2":"D A"},K:{"1":"h","2":"A B C qB AC rB"},L:{"1":"H"},M:{"1":"H"},N:{"2":"A B"},O:{"1":"vC"},P:{"1":"g xC yC zC 0C 0B 1C 2C 3C 4C 5C sB 6C 7C 8C","2":"I wC"},Q:{"1":"1B"},R:{"1":"9C"},S:{"1":"BD","2":"AD"}},B:1,C:"DOM manipulation convenience methods"};
|
||||
Reference in New Issue
Block a user