update
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "rc",
|
||||
"version": "1.2.8",
|
||||
"description": "hardwired configuration loader",
|
||||
"main": "index.js",
|
||||
"browser": "browser.js",
|
||||
"scripts": {
|
||||
"test": "set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/dominictarr/rc.git"
|
||||
},
|
||||
"license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
|
||||
"keywords": [
|
||||
"config",
|
||||
"rc",
|
||||
"unix",
|
||||
"defaults"
|
||||
],
|
||||
"bin": "./cli.js",
|
||||
"author": "Dominic Tarr <dominic.tarr@gmail.com> (dominictarr.com)",
|
||||
"dependencies": {
|
||||
"deep-extend": "^0.6.0",
|
||||
"ini": "~1.3.0",
|
||||
"minimist": "^1.2.0",
|
||||
"strip-json-comments": "~2.0.1"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
import * as React from 'react'
|
||||
import invariant from 'tiny-invariant'
|
||||
import { useRouterState } from './useRouterState'
|
||||
import { dummyMatchContext, matchContext } from './matchContext'
|
||||
import type {
|
||||
StructuralSharingOption,
|
||||
ValidateSelected,
|
||||
} from './structuralSharing'
|
||||
import type {
|
||||
AnyRouter,
|
||||
MakeRouteMatch,
|
||||
MakeRouteMatchUnion,
|
||||
RegisteredRouter,
|
||||
StrictOrFrom,
|
||||
ThrowConstraint,
|
||||
ThrowOrOptional,
|
||||
} from '@tanstack/router-core'
|
||||
|
||||
export interface UseMatchBaseOptions<
|
||||
TRouter extends AnyRouter,
|
||||
TFrom,
|
||||
TStrict extends boolean,
|
||||
TThrow extends boolean,
|
||||
TSelected,
|
||||
TStructuralSharing extends boolean,
|
||||
> {
|
||||
select?: (
|
||||
match: MakeRouteMatch<TRouter['routeTree'], TFrom, TStrict>,
|
||||
) => ValidateSelected<TRouter, TSelected, TStructuralSharing>
|
||||
shouldThrow?: TThrow
|
||||
}
|
||||
|
||||
export type UseMatchRoute<out TFrom> = <
|
||||
TRouter extends AnyRouter = RegisteredRouter,
|
||||
TSelected = unknown,
|
||||
TStructuralSharing extends boolean = boolean,
|
||||
>(
|
||||
opts?: UseMatchBaseOptions<
|
||||
TRouter,
|
||||
TFrom,
|
||||
true,
|
||||
true,
|
||||
TSelected,
|
||||
TStructuralSharing
|
||||
> &
|
||||
StructuralSharingOption<TRouter, TSelected, TStructuralSharing>,
|
||||
) => UseMatchResult<TRouter, TFrom, true, TSelected>
|
||||
|
||||
export type UseMatchOptions<
|
||||
TRouter extends AnyRouter,
|
||||
TFrom extends string | undefined,
|
||||
TStrict extends boolean,
|
||||
TThrow extends boolean,
|
||||
TSelected,
|
||||
TStructuralSharing extends boolean,
|
||||
> = StrictOrFrom<TRouter, TFrom, TStrict> &
|
||||
UseMatchBaseOptions<
|
||||
TRouter,
|
||||
TFrom,
|
||||
TStrict,
|
||||
TThrow,
|
||||
TSelected,
|
||||
TStructuralSharing
|
||||
> &
|
||||
StructuralSharingOption<TRouter, TSelected, TStructuralSharing>
|
||||
|
||||
export type UseMatchResult<
|
||||
TRouter extends AnyRouter,
|
||||
TFrom,
|
||||
TStrict extends boolean,
|
||||
TSelected,
|
||||
> = unknown extends TSelected
|
||||
? TStrict extends true
|
||||
? MakeRouteMatch<TRouter['routeTree'], TFrom, TStrict>
|
||||
: MakeRouteMatchUnion<TRouter>
|
||||
: TSelected
|
||||
|
||||
export function useMatch<
|
||||
TRouter extends AnyRouter = RegisteredRouter,
|
||||
const TFrom extends string | undefined = undefined,
|
||||
TStrict extends boolean = true,
|
||||
TThrow extends boolean = true,
|
||||
TSelected = unknown,
|
||||
TStructuralSharing extends boolean = boolean,
|
||||
>(
|
||||
opts: UseMatchOptions<
|
||||
TRouter,
|
||||
TFrom,
|
||||
TStrict,
|
||||
ThrowConstraint<TStrict, TThrow>,
|
||||
TSelected,
|
||||
TStructuralSharing
|
||||
>,
|
||||
): ThrowOrOptional<UseMatchResult<TRouter, TFrom, TStrict, TSelected>, TThrow> {
|
||||
const nearestMatchId = React.useContext(
|
||||
opts.from ? dummyMatchContext : matchContext,
|
||||
)
|
||||
|
||||
const matchSelection = useRouterState({
|
||||
select: (state: any) => {
|
||||
const match = state.matches.find((d: any) =>
|
||||
opts.from ? opts.from === d.routeId : d.id === nearestMatchId,
|
||||
)
|
||||
invariant(
|
||||
!((opts.shouldThrow ?? true) && !match),
|
||||
`Could not find ${opts.from ? `an active match from "${opts.from}"` : 'a nearest match!'}`,
|
||||
)
|
||||
|
||||
if (match === undefined) {
|
||||
return undefined
|
||||
}
|
||||
|
||||
return opts.select ? opts.select(match) : match
|
||||
},
|
||||
structuralSharing: opts.structuralSharing,
|
||||
} as any)
|
||||
|
||||
return matchSelection as any
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
/**
|
||||
* @fileoverview Rule to flag when using multiline strings
|
||||
* @author Ilya Volodin
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Requirements
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
const astUtils = require("./utils/ast-utils");
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "Disallow multiline strings",
|
||||
recommended: false,
|
||||
frozen: true,
|
||||
url: "https://eslint.org/docs/latest/rules/no-multi-str",
|
||||
},
|
||||
|
||||
schema: [],
|
||||
|
||||
messages: {
|
||||
multilineString:
|
||||
"Multiline support is limited to browsers supporting ES5 only.",
|
||||
},
|
||||
},
|
||||
|
||||
create(context) {
|
||||
/**
|
||||
* Determines if a given node is part of JSX syntax.
|
||||
* @param {ASTNode} node The node to check.
|
||||
* @returns {boolean} True if the node is a JSX node, false if not.
|
||||
* @private
|
||||
*/
|
||||
function isJSXElement(node) {
|
||||
return node.type.indexOf("JSX") === 0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Public API
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
return {
|
||||
Literal(node) {
|
||||
if (
|
||||
astUtils.LINEBREAK_MATCHER.test(node.raw) &&
|
||||
!isJSXElement(node.parent)
|
||||
) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: "multilineString",
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "Backend.h"
|
||||
#include "../closure.h"
|
||||
#include <napi.h>
|
||||
|
||||
class SvgBackend : public Napi::ObjectWrap<SvgBackend>, public Backend
|
||||
{
|
||||
private:
|
||||
cairo_surface_t* createSurface();
|
||||
cairo_surface_t* recreateSurface();
|
||||
|
||||
public:
|
||||
PdfSvgClosure* _closure = NULL;
|
||||
inline PdfSvgClosure* closure() { return _closure; }
|
||||
|
||||
SvgBackend(Napi::CallbackInfo& info);
|
||||
~SvgBackend();
|
||||
|
||||
static void Initialize(Napi::Object target);
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"48":0.01034,"52":0.02069,"75":0.00517,"78":0.0362,"84":0.00517,"99":0.00517,"102":0.00517,"103":0.00517,"109":0.00517,"110":0.00517,"111":0.01034,"112":0.00517,"113":0.00517,"115":0.55858,"116":0.00517,"121":0.00517,"125":0.01034,"126":0.01034,"127":0.00517,"128":0.31032,"129":0.00517,"130":0.00517,"131":0.01552,"132":0.05689,"133":0.04138,"134":0.05172,"135":1.25162,"136":4.07036,"137":0.00517,_:"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 49 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 76 77 79 80 81 82 83 85 86 87 88 89 90 91 92 93 94 95 96 97 98 100 101 104 105 106 107 108 114 117 118 119 120 122 123 124 138 139 140 3.5 3.6"},D:{"38":0.00517,"49":0.02069,"52":0.15516,"66":0.03103,"74":0.00517,"79":0.02069,"80":0.02069,"81":0.00517,"84":0.00517,"85":0.00517,"86":0.00517,"87":0.06724,"88":0.00517,"90":0.01034,"92":0.00517,"94":0.00517,"96":0.00517,"97":0.00517,"98":0.00517,"99":0.01034,"100":0.00517,"101":0.00517,"102":0.00517,"103":0.06724,"104":0.01552,"105":0.00517,"106":0.01034,"107":0.01552,"108":0.02069,"109":0.54823,"110":0.01034,"111":0.02069,"112":0.00517,"113":0.04655,"114":0.08275,"115":0.01034,"116":0.11896,"118":0.03103,"119":0.01552,"120":0.08275,"121":0.03103,"122":0.19136,"123":0.04655,"124":0.12413,"125":0.13447,"126":0.08792,"127":0.05172,"128":0.11896,"129":0.04655,"130":0.08275,"131":0.7396,"132":0.78614,"133":6.64085,"134":11.43529,"135":0.03103,"136":0.00517,_:"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 39 40 41 42 43 44 45 46 47 48 50 51 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 75 76 77 78 83 89 91 93 95 117 137 138"},F:{"46":0.01034,"87":0.02586,"88":0.01034,"95":0.04138,"109":0.00517,"113":0.00517,"114":0.01552,"115":0.00517,"116":0.28446,"117":1.40161,_:"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 85 86 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 110 111 112 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"95":0.00517,"108":0.00517,"109":0.08275,"112":0.00517,"113":0.00517,"115":0.00517,"120":0.00517,"121":0.00517,"122":0.00517,"124":0.00517,"125":0.01034,"126":0.02069,"127":0.00517,"128":0.01034,"129":0.02069,"130":0.03103,"131":0.13447,"132":0.13964,"133":3.09803,"134":7.14253,_:"12 13 14 15 16 17 18 79 80 81 83 84 85 86 87 88 89 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 110 111 114 116 117 118 119 123"},E:{"8":0.00517,"14":0.01552,"15":0.01034,_:"0 4 5 6 7 9 10 11 12 13 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.00517,"12.1":0.04138,"13.1":0.09827,"14.1":0.08275,"15.1":0.01034,"15.2-15.3":0.01034,"15.4":0.04655,"15.5":0.02069,"15.6":0.3879,"16.0":0.12413,"16.1":0.05172,"16.2":0.04138,"16.3":0.07758,"16.4":0.03103,"16.5":0.08275,"16.6":0.52754,"17.0":0.01552,"17.1":0.30515,"17.2":0.05689,"17.3":0.07758,"17.4":0.14482,"17.5":0.23791,"17.6":0.82235,"18.0":0.14482,"18.1":0.41893,"18.2":0.19136,"18.3":4.3031,"18.4":0.06206},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00451,"5.0-5.1":0,"6.0-6.1":0.01352,"7.0-7.1":0.00901,"8.1-8.4":0,"9.0-9.2":0.00676,"9.3":0.03155,"10.0-10.2":0.00225,"10.3":0.05182,"11.0-11.2":0.23884,"11.3-11.4":0.01577,"12.0-12.1":0.00901,"12.2-12.5":0.22307,"13.0-13.1":0.00451,"13.2":0.00676,"13.3":0.00901,"13.4-13.7":0.03155,"14.0-14.4":0.07886,"14.5-14.8":0.09464,"15.0-15.1":0.05182,"15.2-15.3":0.05182,"15.4":0.06309,"15.5":0.0721,"15.6-15.8":0.88777,"16.0":0.12618,"16.1":0.25912,"16.2":0.13519,"16.3":0.23434,"16.4":0.05182,"16.5":0.09689,"16.6-16.7":1.05226,"17.0":0.06309,"17.1":0.11266,"17.2":0.08562,"17.3":0.11942,"17.4":0.23884,"17.5":0.53176,"17.6-17.7":1.54346,"18.0":0.43262,"18.1":1.41503,"18.2":0.63316,"18.3":13.23321,"18.4":0.19603},P:{"4":0.04195,"20":0.01049,"21":0.02098,"22":0.01049,"23":0.04195,"24":0.02098,"25":0.02098,"26":0.07342,"27":3.70226,"5.0-5.4":0.02098,"6.2-6.4":0.01049,"7.2-7.4":0.01049,_:"8.2 9.2 10.1 11.1-11.2 12.0 13.0 15.0 16.0 18.0 19.0","14.0":0.01049,"17.0":0.01049},I:{"0":0.02409,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":0.30899,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.17068,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.90284},Q:{"14.9":0.00483},O:{"0":0.1207},H:{"0":0},L:{"0":20.24575}};
|
||||
@@ -0,0 +1,200 @@
|
||||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Ivan Kopeykin @vankop
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
const DescriptionFileUtils = require("./DescriptionFileUtils");
|
||||
const forEachBail = require("./forEachBail");
|
||||
const { processExportsField } = require("./util/entrypoints");
|
||||
const { parseIdentifier } = require("./util/identifier");
|
||||
const {
|
||||
invalidSegmentRegEx,
|
||||
deprecatedInvalidSegmentRegEx
|
||||
} = require("./util/path");
|
||||
|
||||
/** @typedef {import("./Resolver")} Resolver */
|
||||
/** @typedef {import("./Resolver").JsonObject} JsonObject */
|
||||
/** @typedef {import("./Resolver").ResolveRequest} ResolveRequest */
|
||||
/** @typedef {import("./Resolver").ResolveStepHook} ResolveStepHook */
|
||||
/** @typedef {import("./util/entrypoints").ExportsField} ExportsField */
|
||||
/** @typedef {import("./util/entrypoints").FieldProcessor} FieldProcessor */
|
||||
|
||||
module.exports = class ExportsFieldPlugin {
|
||||
/**
|
||||
* @param {string | ResolveStepHook} source source
|
||||
* @param {Set<string>} conditionNames condition names
|
||||
* @param {string | string[]} fieldNamePath name path
|
||||
* @param {string | ResolveStepHook} target target
|
||||
*/
|
||||
constructor(source, conditionNames, fieldNamePath, target) {
|
||||
this.source = source;
|
||||
this.target = target;
|
||||
this.conditionNames = conditionNames;
|
||||
this.fieldName = fieldNamePath;
|
||||
/** @type {WeakMap<JsonObject, FieldProcessor>} */
|
||||
this.fieldProcessorCache = new WeakMap();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Resolver} resolver the resolver
|
||||
* @returns {void}
|
||||
*/
|
||||
apply(resolver) {
|
||||
const target = resolver.ensureHook(this.target);
|
||||
resolver
|
||||
.getHook(this.source)
|
||||
.tapAsync("ExportsFieldPlugin", (request, resolveContext, callback) => {
|
||||
// When there is no description file, abort
|
||||
if (!request.descriptionFilePath) return callback();
|
||||
if (
|
||||
// When the description file is inherited from parent, abort
|
||||
// (There is no description file inside of this package)
|
||||
request.relativePath !== "." ||
|
||||
request.request === undefined
|
||||
)
|
||||
return callback();
|
||||
|
||||
const remainingRequest =
|
||||
request.query || request.fragment
|
||||
? (request.request === "." ? "./" : request.request) +
|
||||
request.query +
|
||||
request.fragment
|
||||
: request.request;
|
||||
const exportsField =
|
||||
/** @type {ExportsField|null|undefined} */
|
||||
(
|
||||
DescriptionFileUtils.getField(
|
||||
/** @type {JsonObject} */ (request.descriptionFileData),
|
||||
this.fieldName
|
||||
)
|
||||
);
|
||||
if (!exportsField) return callback();
|
||||
|
||||
if (request.directory) {
|
||||
return callback(
|
||||
new Error(
|
||||
`Resolving to directories is not possible with the exports field (request was ${remainingRequest}/)`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/** @type {string[]} */
|
||||
let paths;
|
||||
/** @type {string | null} */
|
||||
let usedField;
|
||||
|
||||
try {
|
||||
// We attach the cache to the description file instead of the exportsField value
|
||||
// because we use a WeakMap and the exportsField could be a string too.
|
||||
// Description file is always an object when exports field can be accessed.
|
||||
let fieldProcessor = this.fieldProcessorCache.get(
|
||||
/** @type {JsonObject} */ (request.descriptionFileData)
|
||||
);
|
||||
if (fieldProcessor === undefined) {
|
||||
fieldProcessor = processExportsField(exportsField);
|
||||
this.fieldProcessorCache.set(
|
||||
/** @type {JsonObject} */ (request.descriptionFileData),
|
||||
fieldProcessor
|
||||
);
|
||||
}
|
||||
[paths, usedField] = fieldProcessor(
|
||||
remainingRequest,
|
||||
this.conditionNames
|
||||
);
|
||||
} catch (/** @type {unknown} */ err) {
|
||||
if (resolveContext.log) {
|
||||
resolveContext.log(
|
||||
`Exports field in ${request.descriptionFilePath} can't be processed: ${err}`
|
||||
);
|
||||
}
|
||||
return callback(/** @type {Error} */ (err));
|
||||
}
|
||||
|
||||
if (paths.length === 0) {
|
||||
return callback(
|
||||
new Error(
|
||||
`Package path ${remainingRequest} is not exported from package ${request.descriptionFileRoot} (see exports field in ${request.descriptionFilePath})`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
forEachBail(
|
||||
paths,
|
||||
/**
|
||||
* @param {string} p path
|
||||
* @param {(err?: null|Error, result?: null|ResolveRequest) => void} callback callback
|
||||
* @param {number} i index
|
||||
* @returns {void}
|
||||
*/
|
||||
(p, callback, i) => {
|
||||
const parsedIdentifier = parseIdentifier(p);
|
||||
|
||||
if (!parsedIdentifier) return callback();
|
||||
|
||||
const [relativePath, query, fragment] = parsedIdentifier;
|
||||
|
||||
if (relativePath.length === 0 || !relativePath.startsWith("./")) {
|
||||
if (paths.length === i) {
|
||||
return callback(
|
||||
new Error(
|
||||
`Invalid "exports" target "${p}" defined for "${usedField}" in the package config ${request.descriptionFilePath}, targets must start with "./"`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return callback();
|
||||
}
|
||||
|
||||
if (
|
||||
invalidSegmentRegEx.exec(relativePath.slice(2)) !== null &&
|
||||
deprecatedInvalidSegmentRegEx.test(relativePath.slice(2)) !== null
|
||||
) {
|
||||
if (paths.length === i) {
|
||||
return callback(
|
||||
new Error(
|
||||
`Invalid "exports" target "${p}" defined for "${usedField}" in the package config ${request.descriptionFilePath}, targets must start with "./"`
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
return callback();
|
||||
}
|
||||
|
||||
/** @type {ResolveRequest} */
|
||||
const obj = {
|
||||
...request,
|
||||
request: undefined,
|
||||
path: resolver.join(
|
||||
/** @type {string} */ (request.descriptionFileRoot),
|
||||
relativePath
|
||||
),
|
||||
relativePath,
|
||||
query,
|
||||
fragment
|
||||
};
|
||||
|
||||
resolver.doResolve(
|
||||
target,
|
||||
obj,
|
||||
"using exports field: " + p,
|
||||
resolveContext,
|
||||
(err, result) => {
|
||||
if (err) return callback(err);
|
||||
// Don't allow to continue - https://github.com/webpack/enhanced-resolve/issues/400
|
||||
if (result === undefined) return callback(null, null);
|
||||
callback(null, result);
|
||||
}
|
||||
);
|
||||
},
|
||||
/**
|
||||
* @param {null|Error} [err] error
|
||||
* @param {null|ResolveRequest} [result] result
|
||||
* @returns {void}
|
||||
*/
|
||||
(err, result) => callback(err, result || null)
|
||||
);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,72 @@
|
||||
'use strict';
|
||||
|
||||
// do not edit .js files directly - edit src/index.jst
|
||||
|
||||
|
||||
var envHasBigInt64Array = typeof BigInt64Array !== 'undefined';
|
||||
|
||||
|
||||
module.exports = function equal(a, b) {
|
||||
if (a === b) return true;
|
||||
|
||||
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
||||
if (a.constructor !== b.constructor) return false;
|
||||
|
||||
var length, i, keys;
|
||||
if (Array.isArray(a)) {
|
||||
length = a.length;
|
||||
if (length != b.length) return false;
|
||||
for (i = length; i-- !== 0;)
|
||||
if (!equal(a[i], b[i])) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if ((a instanceof Map) && (b instanceof Map)) {
|
||||
if (a.size !== b.size) return false;
|
||||
for (i of a.entries())
|
||||
if (!b.has(i[0])) return false;
|
||||
for (i of a.entries())
|
||||
if (!equal(i[1], b.get(i[0]))) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((a instanceof Set) && (b instanceof Set)) {
|
||||
if (a.size !== b.size) return false;
|
||||
for (i of a.entries())
|
||||
if (!b.has(i[0])) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
||||
length = a.length;
|
||||
if (length != b.length) return false;
|
||||
for (i = length; i-- !== 0;)
|
||||
if (a[i] !== b[i]) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
||||
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
||||
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
||||
|
||||
keys = Object.keys(a);
|
||||
length = keys.length;
|
||||
if (length !== Object.keys(b).length) return false;
|
||||
|
||||
for (i = length; i-- !== 0;)
|
||||
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
||||
|
||||
for (i = length; i-- !== 0;) {
|
||||
var key = keys[i];
|
||||
|
||||
if (!equal(a[key], b[key])) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// true if both NaN, false otherwise
|
||||
return a!==a && b!==b;
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
declare const pathExists: {
|
||||
/**
|
||||
Check if a path exists.
|
||||
|
||||
@returns Whether the path exists.
|
||||
|
||||
@example
|
||||
```
|
||||
// foo.ts
|
||||
import pathExists = require('path-exists');
|
||||
|
||||
(async () => {
|
||||
console.log(await pathExists('foo.ts'));
|
||||
//=> true
|
||||
})();
|
||||
```
|
||||
*/
|
||||
(path: string): Promise<boolean>;
|
||||
|
||||
/**
|
||||
Synchronously check if a path exists.
|
||||
|
||||
@returns Whether the path exists.
|
||||
*/
|
||||
sync(path: string): boolean;
|
||||
};
|
||||
|
||||
export = pathExists;
|
||||
@@ -0,0 +1,421 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = applyDecs2301;
|
||||
var _checkInRHS = require("checkInRHS");
|
||||
var _setFunctionName = require("setFunctionName");
|
||||
var _toPropertyKey = require("toPropertyKey");
|
||||
function applyDecs2301Factory() {
|
||||
function createAddInitializerMethod(initializers, decoratorFinishedRef) {
|
||||
return function addInitializer(initializer) {
|
||||
assertNotFinished(decoratorFinishedRef, "addInitializer");
|
||||
assertCallable(initializer, "An initializer");
|
||||
initializers.push(initializer);
|
||||
};
|
||||
}
|
||||
function assertInstanceIfPrivate(has, target) {
|
||||
if (!has(target)) {
|
||||
throw new TypeError("Attempted to access private element on non-instance");
|
||||
}
|
||||
}
|
||||
function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand) {
|
||||
var kindStr;
|
||||
switch (kind) {
|
||||
case 1:
|
||||
kindStr = "accessor";
|
||||
break;
|
||||
case 2:
|
||||
kindStr = "method";
|
||||
break;
|
||||
case 3:
|
||||
kindStr = "getter";
|
||||
break;
|
||||
case 4:
|
||||
kindStr = "setter";
|
||||
break;
|
||||
default:
|
||||
kindStr = "field";
|
||||
}
|
||||
var ctx = {
|
||||
kind: kindStr,
|
||||
name: isPrivate ? "#" + name : _toPropertyKey(name),
|
||||
static: isStatic,
|
||||
private: isPrivate
|
||||
};
|
||||
var decoratorFinishedRef = {
|
||||
v: false
|
||||
};
|
||||
if (kind !== 0) {
|
||||
ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef);
|
||||
}
|
||||
var get, set;
|
||||
if (!isPrivate && (kind === 0 || kind === 2)) {
|
||||
get = function (target) {
|
||||
return target[name];
|
||||
};
|
||||
if (kind === 0) {
|
||||
set = function (target, v) {
|
||||
target[name] = v;
|
||||
};
|
||||
}
|
||||
} else if (kind === 2) {
|
||||
get = function (target) {
|
||||
assertInstanceIfPrivate(hasPrivateBrand, target);
|
||||
return desc.value;
|
||||
};
|
||||
} else {
|
||||
var t = kind === 0 || kind === 1;
|
||||
if (t || kind === 3) {
|
||||
if (isPrivate) {
|
||||
get = function (target) {
|
||||
assertInstanceIfPrivate(hasPrivateBrand, target);
|
||||
return desc.get.call(target);
|
||||
};
|
||||
} else {
|
||||
get = function (target) {
|
||||
return desc.get.call(target);
|
||||
};
|
||||
}
|
||||
}
|
||||
if (t || kind === 4) {
|
||||
if (isPrivate) {
|
||||
set = function (target, value) {
|
||||
assertInstanceIfPrivate(hasPrivateBrand, target);
|
||||
desc.set.call(target, value);
|
||||
};
|
||||
} else {
|
||||
set = function (target, value) {
|
||||
desc.set.call(target, value);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
var has = isPrivate ? hasPrivateBrand.bind() : function (target) {
|
||||
return name in target;
|
||||
};
|
||||
ctx.access = get && set ? {
|
||||
get: get,
|
||||
set: set,
|
||||
has: has
|
||||
} : get ? {
|
||||
get: get,
|
||||
has: has
|
||||
} : {
|
||||
set: set,
|
||||
has: has
|
||||
};
|
||||
try {
|
||||
return dec(value, ctx);
|
||||
} finally {
|
||||
decoratorFinishedRef.v = true;
|
||||
}
|
||||
}
|
||||
function assertNotFinished(decoratorFinishedRef, fnName) {
|
||||
if (decoratorFinishedRef.v) {
|
||||
throw new Error("attempted to call " + fnName + " after decoration was finished");
|
||||
}
|
||||
}
|
||||
function assertCallable(fn, hint) {
|
||||
if (typeof fn !== "function") {
|
||||
throw new TypeError(hint + " must be a function");
|
||||
}
|
||||
}
|
||||
function assertValidReturnValue(kind, value) {
|
||||
var type = typeof value;
|
||||
if (kind === 1) {
|
||||
if (type !== "object" || value === null) {
|
||||
throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");
|
||||
}
|
||||
if (value.get !== undefined) {
|
||||
assertCallable(value.get, "accessor.get");
|
||||
}
|
||||
if (value.set !== undefined) {
|
||||
assertCallable(value.set, "accessor.set");
|
||||
}
|
||||
if (value.init !== undefined) {
|
||||
assertCallable(value.init, "accessor.init");
|
||||
}
|
||||
} else if (type !== "function") {
|
||||
var hint;
|
||||
if (kind === 0) {
|
||||
hint = "field";
|
||||
} else if (kind === 10) {
|
||||
hint = "class";
|
||||
} else {
|
||||
hint = "method";
|
||||
}
|
||||
throw new TypeError(hint + " decorators must return a function or void 0");
|
||||
}
|
||||
}
|
||||
function curryThis1(fn) {
|
||||
return function () {
|
||||
return fn(this);
|
||||
};
|
||||
}
|
||||
function curryThis2(fn) {
|
||||
return function (value) {
|
||||
fn(this, value);
|
||||
};
|
||||
}
|
||||
function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand) {
|
||||
var decs = decInfo[0];
|
||||
var desc, init, prefix, value;
|
||||
if (isPrivate) {
|
||||
if (kind === 0 || kind === 1) {
|
||||
desc = {
|
||||
get: curryThis1(decInfo[3]),
|
||||
set: curryThis2(decInfo[4])
|
||||
};
|
||||
prefix = "get";
|
||||
} else {
|
||||
if (kind === 3) {
|
||||
desc = {
|
||||
get: decInfo[3]
|
||||
};
|
||||
prefix = "get";
|
||||
} else if (kind === 4) {
|
||||
desc = {
|
||||
set: decInfo[3]
|
||||
};
|
||||
prefix = "set";
|
||||
} else {
|
||||
desc = {
|
||||
value: decInfo[3]
|
||||
};
|
||||
}
|
||||
}
|
||||
if (kind !== 0) {
|
||||
if (kind === 1) {
|
||||
_setFunctionName(desc.set, "#" + name, "set");
|
||||
}
|
||||
_setFunctionName(desc[prefix || "value"], "#" + name, prefix);
|
||||
}
|
||||
} else if (kind !== 0) {
|
||||
desc = Object.getOwnPropertyDescriptor(base, name);
|
||||
}
|
||||
if (kind === 1) {
|
||||
value = {
|
||||
get: desc.get,
|
||||
set: desc.set
|
||||
};
|
||||
} else if (kind === 2) {
|
||||
value = desc.value;
|
||||
} else if (kind === 3) {
|
||||
value = desc.get;
|
||||
} else if (kind === 4) {
|
||||
value = desc.set;
|
||||
}
|
||||
var newValue, get, set;
|
||||
if (typeof decs === "function") {
|
||||
newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand);
|
||||
if (newValue !== void 0) {
|
||||
assertValidReturnValue(kind, newValue);
|
||||
if (kind === 0) {
|
||||
init = newValue;
|
||||
} else if (kind === 1) {
|
||||
init = newValue.init;
|
||||
get = newValue.get || value.get;
|
||||
set = newValue.set || value.set;
|
||||
value = {
|
||||
get: get,
|
||||
set: set
|
||||
};
|
||||
} else {
|
||||
value = newValue;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (var i = decs.length - 1; i >= 0; i--) {
|
||||
var dec = decs[i];
|
||||
newValue = memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand);
|
||||
if (newValue !== void 0) {
|
||||
assertValidReturnValue(kind, newValue);
|
||||
var newInit;
|
||||
if (kind === 0) {
|
||||
newInit = newValue;
|
||||
} else if (kind === 1) {
|
||||
newInit = newValue.init;
|
||||
get = newValue.get || value.get;
|
||||
set = newValue.set || value.set;
|
||||
value = {
|
||||
get: get,
|
||||
set: set
|
||||
};
|
||||
} else {
|
||||
value = newValue;
|
||||
}
|
||||
if (newInit !== void 0) {
|
||||
if (init === void 0) {
|
||||
init = newInit;
|
||||
} else if (typeof init === "function") {
|
||||
init = [init, newInit];
|
||||
} else {
|
||||
init.push(newInit);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (kind === 0 || kind === 1) {
|
||||
if (init === void 0) {
|
||||
init = function (instance, init) {
|
||||
return init;
|
||||
};
|
||||
} else if (typeof init !== "function") {
|
||||
var ownInitializers = init;
|
||||
init = function (instance, init) {
|
||||
var value = init;
|
||||
for (var i = 0; i < ownInitializers.length; i++) {
|
||||
value = ownInitializers[i].call(instance, value);
|
||||
}
|
||||
return value;
|
||||
};
|
||||
} else {
|
||||
var originalInitializer = init;
|
||||
init = function (instance, init) {
|
||||
return originalInitializer.call(instance, init);
|
||||
};
|
||||
}
|
||||
ret.push(init);
|
||||
}
|
||||
if (kind !== 0) {
|
||||
if (kind === 1) {
|
||||
desc.get = value.get;
|
||||
desc.set = value.set;
|
||||
} else if (kind === 2) {
|
||||
desc.value = value;
|
||||
} else if (kind === 3) {
|
||||
desc.get = value;
|
||||
} else if (kind === 4) {
|
||||
desc.set = value;
|
||||
}
|
||||
if (isPrivate) {
|
||||
if (kind === 1) {
|
||||
ret.push(function (instance, args) {
|
||||
return value.get.call(instance, args);
|
||||
});
|
||||
ret.push(function (instance, args) {
|
||||
return value.set.call(instance, args);
|
||||
});
|
||||
} else if (kind === 2) {
|
||||
ret.push(value);
|
||||
} else {
|
||||
ret.push(function (instance, args) {
|
||||
return value.call(instance, args);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
Object.defineProperty(base, name, desc);
|
||||
}
|
||||
}
|
||||
}
|
||||
function applyMemberDecs(Class, decInfos, instanceBrand) {
|
||||
var ret = [];
|
||||
var protoInitializers;
|
||||
var staticInitializers;
|
||||
var staticBrand;
|
||||
var existingProtoNonFields = new Map();
|
||||
var existingStaticNonFields = new Map();
|
||||
for (var i = 0; i < decInfos.length; i++) {
|
||||
var decInfo = decInfos[i];
|
||||
if (!Array.isArray(decInfo)) continue;
|
||||
var kind = decInfo[1];
|
||||
var name = decInfo[2];
|
||||
var isPrivate = decInfo.length > 3;
|
||||
var isStatic = kind >= 5;
|
||||
var base;
|
||||
var initializers;
|
||||
var hasPrivateBrand = instanceBrand;
|
||||
if (isStatic) {
|
||||
base = Class;
|
||||
kind = kind - 5;
|
||||
if (kind !== 0) {
|
||||
staticInitializers = staticInitializers || [];
|
||||
initializers = staticInitializers;
|
||||
}
|
||||
if (isPrivate && !staticBrand) {
|
||||
staticBrand = function (_) {
|
||||
return _checkInRHS(_) === Class;
|
||||
};
|
||||
}
|
||||
hasPrivateBrand = staticBrand;
|
||||
} else {
|
||||
base = Class.prototype;
|
||||
if (kind !== 0) {
|
||||
protoInitializers = protoInitializers || [];
|
||||
initializers = protoInitializers;
|
||||
}
|
||||
}
|
||||
if (kind !== 0 && !isPrivate) {
|
||||
var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields;
|
||||
var existingKind = existingNonFields.get(name) || 0;
|
||||
if (existingKind === true || existingKind === 3 && kind !== 4 || existingKind === 4 && kind !== 3) {
|
||||
throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name);
|
||||
} else if (!existingKind && kind > 2) {
|
||||
existingNonFields.set(name, kind);
|
||||
} else {
|
||||
existingNonFields.set(name, true);
|
||||
}
|
||||
}
|
||||
applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand);
|
||||
}
|
||||
pushInitializers(ret, protoInitializers);
|
||||
pushInitializers(ret, staticInitializers);
|
||||
return ret;
|
||||
}
|
||||
function pushInitializers(ret, initializers) {
|
||||
if (initializers) {
|
||||
ret.push(function (instance) {
|
||||
for (var i = 0; i < initializers.length; i++) {
|
||||
initializers[i].call(instance);
|
||||
}
|
||||
return instance;
|
||||
});
|
||||
}
|
||||
}
|
||||
function applyClassDecs(targetClass, classDecs) {
|
||||
if (classDecs.length > 0) {
|
||||
var initializers = [];
|
||||
var newClass = targetClass;
|
||||
var name = targetClass.name;
|
||||
for (var i = classDecs.length - 1; i >= 0; i--) {
|
||||
var decoratorFinishedRef = {
|
||||
v: false
|
||||
};
|
||||
try {
|
||||
var nextNewClass = classDecs[i](newClass, {
|
||||
kind: "class",
|
||||
name: name,
|
||||
addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef)
|
||||
});
|
||||
} finally {
|
||||
decoratorFinishedRef.v = true;
|
||||
}
|
||||
if (nextNewClass !== undefined) {
|
||||
assertValidReturnValue(10, nextNewClass);
|
||||
newClass = nextNewClass;
|
||||
}
|
||||
}
|
||||
return [newClass, function () {
|
||||
for (var i = 0; i < initializers.length; i++) {
|
||||
initializers[i].call(newClass);
|
||||
}
|
||||
}];
|
||||
}
|
||||
}
|
||||
return function applyDecs2301(targetClass, memberDecs, classDecs, instanceBrand) {
|
||||
return {
|
||||
e: applyMemberDecs(targetClass, memberDecs, instanceBrand),
|
||||
get c() {
|
||||
return applyClassDecs(targetClass, classDecs);
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
function applyDecs2301(targetClass, memberDecs, classDecs, instanceBrand) {
|
||||
return (exports.default = applyDecs2301 = applyDecs2301Factory())(targetClass, memberDecs, classDecs, instanceBrand);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=applyDecs2301.js.map
|
||||
@@ -0,0 +1,37 @@
|
||||
'use strict';
|
||||
|
||||
var metaSchema = require('./refs/json-schema-draft-07.json');
|
||||
|
||||
module.exports = {
|
||||
$id: 'https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js',
|
||||
definitions: {
|
||||
simpleTypes: metaSchema.definitions.simpleTypes
|
||||
},
|
||||
type: 'object',
|
||||
dependencies: {
|
||||
schema: ['validate'],
|
||||
$data: ['validate'],
|
||||
statements: ['inline'],
|
||||
valid: {not: {required: ['macro']}}
|
||||
},
|
||||
properties: {
|
||||
type: metaSchema.properties.type,
|
||||
schema: {type: 'boolean'},
|
||||
statements: {type: 'boolean'},
|
||||
dependencies: {
|
||||
type: 'array',
|
||||
items: {type: 'string'}
|
||||
},
|
||||
metaSchema: {type: 'object'},
|
||||
modifying: {type: 'boolean'},
|
||||
valid: {type: 'boolean'},
|
||||
$data: {type: 'boolean'},
|
||||
async: {type: 'boolean'},
|
||||
errors: {
|
||||
anyOf: [
|
||||
{type: 'boolean'},
|
||||
{const: 'full'}
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
module.exports={C:{"48":0.00447,"78":0.00894,"104":0.03575,"115":0.03575,"116":0.00894,"127":0.00894,"128":0.00894,"131":0.00447,"133":0.01788,"134":0.00447,"135":0.48712,"136":1.9753,_:"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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 105 106 107 108 109 110 111 112 113 114 117 118 119 120 121 122 123 124 125 126 129 130 132 137 138 139 140 3.5 3.6"},D:{"43":0.00447,"45":0.00447,"47":0.00447,"48":0.00447,"49":0.00447,"50":0.00447,"57":0.00447,"87":0.00447,"89":0.00447,"93":0.00447,"94":0.00447,"101":0.00447,"103":0.02235,"104":0.00894,"105":0.00894,"106":0.01341,"107":0.00894,"108":0.02681,"109":0.10726,"110":0.00447,"111":0.02235,"112":0.01788,"113":0.00894,"116":1.54181,"119":0.00447,"121":0.00447,"122":0.06257,"124":0.12066,"126":0.00894,"127":0.01341,"128":0.42456,"129":0.14301,"130":0.00447,"131":0.19664,"132":0.37987,"133":5.81417,"134":10.68538,_:"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 44 46 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 83 84 85 86 88 90 91 92 95 96 97 98 99 100 102 114 115 117 118 120 123 125 135 136 137 138"},F:{"89":0.00447,"95":2.01105,"113":0.00447,"116":0.35305,"117":1.2692,_:"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 46 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 85 86 87 88 90 91 92 93 94 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 114 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"92":0.00447,"106":0.00447,"108":0.00894,"109":0.02235,"110":0.06704,"121":0.00447,"122":0.02681,"125":0.00447,"126":0.03128,"128":0.00447,"130":0.00894,"131":0.00894,"132":0.00894,"133":1.41667,"134":4.31259,_:"12 13 14 15 16 17 18 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 107 111 112 113 114 115 116 117 118 119 120 123 124 127 129"},E:{"14":0.12513,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 13.1 17.0 17.2","11.1":0.01788,"12.1":0.00447,"14.1":0.01341,"15.1":0.15195,"15.2-15.3":0.04916,"15.4":0.12066,"15.5":0.01788,"15.6":0.32177,"16.0":0.93402,"16.1":0.01788,"16.2":0.08938,"16.3":0.06704,"16.4":0.00447,"16.5":0.01788,"16.6":0.90721,"17.1":0.14748,"17.3":0.32624,"17.4":0.04916,"17.5":0.54969,"17.6":0.39774,"18.0":0.08491,"18.1":0.62119,"18.2":0.63907,"18.3":5.28683,"18.4":0.00894},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00544,"5.0-5.1":0,"6.0-6.1":0.01631,"7.0-7.1":0.01087,"8.1-8.4":0,"9.0-9.2":0.00816,"9.3":0.03806,"10.0-10.2":0.00272,"10.3":0.06253,"11.0-11.2":0.28816,"11.3-11.4":0.01903,"12.0-12.1":0.01087,"12.2-12.5":0.26913,"13.0-13.1":0.00544,"13.2":0.00816,"13.3":0.01087,"13.4-13.7":0.03806,"14.0-14.4":0.09515,"14.5-14.8":0.11418,"15.0-15.1":0.06253,"15.2-15.3":0.06253,"15.4":0.07612,"15.5":0.08699,"15.6-15.8":1.07108,"16.0":0.15224,"16.1":0.31263,"16.2":0.16311,"16.3":0.28272,"16.4":0.06253,"16.5":0.11689,"16.6-16.7":1.26953,"17.0":0.07612,"17.1":0.13592,"17.2":0.1033,"17.3":0.14408,"17.4":0.28816,"17.5":0.64156,"17.6-17.7":1.86216,"18.0":0.52195,"18.1":1.70721,"18.2":0.76389,"18.3":15.96567,"18.4":0.23651},P:{"4":0.17683,"24":0.0208,"25":0.0104,"27":5.18022,_:"20 21 22 23 26 6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0","5.0-5.4":0.05201,"7.2-7.4":0.05201},I:{"0":0.0276,"3":0,"4":0,"2.1":0,"2.2":0,"2.3":0,"4.1":0,"4.2-4.3":0.00001,"4.4":0,"4.4.3-4.4.4":0.00003},K:{"0":1.39381,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.01788,_:"6 7 8 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.14934},Q:{_:"14.9"},O:{"0":0.02212},H:{"0":0},L:{"0":21.33222}};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E mC","132":"F A B"},B:{"1":"0 9 C L M G N O P Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I"},C:{"1":"0 1 2 3 4 5 6 7 8 9 J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC qC rC","2":"nC LC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC"},E:{"1":"J PB K D E F A B C L M G sC SC tC uC vC wC TC FC GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C"},F:{"1":"0 1 2 3 4 5 6 7 8 B C G N O P QB RB SB TB UB VB WB XB YB ZB 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 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 5C 6C 7C FC kC 8C GC","2":"F 4C"},G:{"1":"E lC AD BD CD DD ED FD GD HD ID JD KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","2":"SC 9C"},H:{"2":"WD"},I:{"1":"LC J I YD ZD aD lC bD cD","2":"XD"},J:{"1":"D A"},K:{"1":"A B C H FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"132":"A B"},O:{"1":"HC"},P:{"1":"1 2 3 4 5 6 7 8 J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"1":"oD"},R:{"1":"pD"},S:{"1":"qD rD"}},B:6,C:"TTF/OTF - TrueType and OpenType font support",D:true};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E F A B mC"},B:{"2":"0 9 C L M G N O P H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I","16":"Q"},C:{"2":"0 1 2 3 4 5 6 7 8 9 nC LC J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC oC pC qC rC"},D:{"2":"0 1 2 3 4 5 6 7 8 9 J PB K D E F A B C L M G N O P QB RB SB TB UB VB WB XB YB ZB aB bB cB dB eB fB gB hB iB jB kB lB mB nB oB pB qB rB sB tB uB vB MC wB NC xB yB zB 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z AB BB CB DB EB FB GB HB IB JB KB LB MB NB OB I PC EC QC RC"},E:{"1":"B","2":"J PB K D E F A C L M G sC SC tC uC vC wC TC FC GC xC yC zC UC VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C"},F:{"2":"0 1 2 3 4 5 6 7 8 F B C G N O P QB RB SB TB UB VB WB XB YB ZB 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 0B 1B 2B 3B 4B 5B 6B 7B 8B 9B AC BC CC DC Q H R OC S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z 4C 5C 6C 7C FC kC 8C GC"},G:{"2":"E SC 9C lC AD BD CD DD ED FD GD HD ID JD KD LD MD ND OD PD QD RD SD UC VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC"},H:{"2":"WD"},I:{"2":"LC J I XD YD ZD aD lC bD cD"},J:{"2":"D A"},K:{"2":"A B C H FC kC GC"},L:{"2":"I"},M:{"2":"EC"},N:{"2":"A B"},O:{"2":"HC"},P:{"2":"1 2 3 4 5 6 7 8 J dD eD fD gD hD TC iD jD kD lD mD IC JC KC nD"},Q:{"2":"oD"},R:{"2":"pD"},S:{"2":"qD rD"}},B:7,C:"Explicit descendant combinator >>",D:true};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = _maybeArrayLike;
|
||||
var _arrayLikeToArray = require("./arrayLikeToArray.js");
|
||||
function _maybeArrayLike(orElse, arr, i) {
|
||||
if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
|
||||
var len = arr.length;
|
||||
return (0, _arrayLikeToArray.default)(arr, i !== void 0 && i < len ? i : len);
|
||||
}
|
||||
return orElse(arr, i);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=maybeArrayLike.js.map
|
||||
Reference in New Issue
Block a user