update
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
{{# def.definitions }}
|
||||
{{# def.errors }}
|
||||
{{# def.setupKeyword }}
|
||||
{{# def.$data }}
|
||||
|
||||
{{? !$isData }}
|
||||
var schema{{=$lvl}} = validate.schema{{=$schemaPath}};
|
||||
{{?}}
|
||||
var {{=$valid}} = equal({{=$data}}, schema{{=$lvl}});
|
||||
{{# def.checkError:'const' }}
|
||||
{{? $breakOnError }} else { {{?}}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"names":["_gensync","data","require","_index","_index2","_normalizeOpts","_rewriteStackTrace","parseRunner","gensync","parse","code","opts","config","loadConfig","parser","passes","normalizeOptions","exports","callback","undefined","beginHiddenCallStack","sync","errback","parseSync","args","parseAsync","async"],"sources":["../src/parse.ts"],"sourcesContent":["import gensync, { type Handler } from \"gensync\";\n\nimport loadConfig, { type InputOptions } from \"./config/index.ts\";\nimport parser, { type ParseResult } from \"./parser/index.ts\";\nimport normalizeOptions from \"./transformation/normalize-opts.ts\";\nimport type { ValidatedOptions } from \"./config/validation/options.ts\";\n\nimport { beginHiddenCallStack } from \"./errors/rewrite-stack-trace.ts\";\n\ntype FileParseCallback = {\n (err: Error, ast: null): void;\n (err: null, ast: ParseResult | null): void;\n};\n\ntype Parse = {\n (code: string, callback: FileParseCallback): void;\n (\n code: string,\n opts: InputOptions | undefined | null,\n callback: FileParseCallback,\n ): void;\n (code: string, opts?: InputOptions | null): ParseResult | null;\n};\n\nconst parseRunner = gensync(function* parse(\n code: string,\n opts: InputOptions | undefined | null,\n): Handler<ParseResult | null> {\n const config = yield* loadConfig(opts);\n\n if (config === null) {\n return null;\n }\n\n return yield* parser(config.passes, normalizeOptions(config), code);\n});\n\nexport const parse: Parse = function parse(\n code,\n opts?,\n callback?: FileParseCallback,\n) {\n if (typeof opts === \"function\") {\n callback = opts;\n opts = undefined as ValidatedOptions;\n }\n\n if (callback === undefined) {\n if (process.env.BABEL_8_BREAKING) {\n throw new Error(\n \"Starting from Babel 8.0.0, the 'parse' function expects a callback. If you need to call it synchronously, please use 'parseSync'.\",\n );\n } else {\n // console.warn(\n // \"Starting from Babel 8.0.0, the 'parse' function will expect a callback. If you need to call it synchronously, please use 'parseSync'.\",\n // );\n return beginHiddenCallStack(parseRunner.sync)(code, opts);\n }\n }\n\n beginHiddenCallStack(parseRunner.errback)(code, opts, callback);\n};\n\nexport function parseSync(...args: Parameters<typeof parseRunner.sync>) {\n return beginHiddenCallStack(parseRunner.sync)(...args);\n}\nexport function parseAsync(...args: Parameters<typeof parseRunner.async>) {\n return beginHiddenCallStack(parseRunner.async)(...args);\n}\n"],"mappings":";;;;;;;;AAAA,SAAAA,SAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,QAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,IAAAE,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAGA,IAAAI,kBAAA,GAAAJ,OAAA;AAiBA,MAAMK,WAAW,GAAGC,SAAMA,CAAC,CAAC,UAAUC,KAAKA,CACzCC,IAAY,EACZC,IAAqC,EACR;EAC7B,MAAMC,MAAM,GAAG,OAAO,IAAAC,cAAU,EAACF,IAAI,CAAC;EAEtC,IAAIC,MAAM,KAAK,IAAI,EAAE;IACnB,OAAO,IAAI;EACb;EAEA,OAAO,OAAO,IAAAE,eAAM,EAACF,MAAM,CAACG,MAAM,EAAE,IAAAC,sBAAgB,EAACJ,MAAM,CAAC,EAAEF,IAAI,CAAC;AACrE,CAAC,CAAC;AAEK,MAAMD,KAAY,GAAAQ,OAAA,CAAAR,KAAA,GAAG,SAASA,KAAKA,CACxCC,IAAI,EACJC,IAAK,EACLO,QAA4B,EAC5B;EACA,IAAI,OAAOP,IAAI,KAAK,UAAU,EAAE;IAC9BO,QAAQ,GAAGP,IAAI;IACfA,IAAI,GAAGQ,SAA6B;EACtC;EAEA,IAAID,QAAQ,KAAKC,SAAS,EAAE;IAKnB;MAIL,OAAO,IAAAC,uCAAoB,EAACb,WAAW,CAACc,IAAI,CAAC,CAACX,IAAI,EAAEC,IAAI,CAAC;IAC3D;EACF;EAEA,IAAAS,uCAAoB,EAACb,WAAW,CAACe,OAAO,CAAC,CAACZ,IAAI,EAAEC,IAAI,EAAEO,QAAQ,CAAC;AACjE,CAAC;AAEM,SAASK,SAASA,CAAC,GAAGC,IAAyC,EAAE;EACtE,OAAO,IAAAJ,uCAAoB,EAACb,WAAW,CAACc,IAAI,CAAC,CAAC,GAAGG,IAAI,CAAC;AACxD;AACO,SAASC,UAAUA,CAAC,GAAGD,IAA0C,EAAE;EACxE,OAAO,IAAAJ,uCAAoB,EAACb,WAAW,CAACmB,KAAK,CAAC,CAAC,GAAGF,IAAI,CAAC;AACzD;AAAC","ignoreList":[]}
|
||||
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-compiler-runtime.profiling.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var ReactSharedInternals =
|
||||
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
||||
exports.c = function (size) {
|
||||
return ReactSharedInternals.H.useMemoCache(size);
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
export type AnnotationEditorLayer = import("./annotation_editor_layer.js").AnnotationEditorLayer;
|
||||
/**
|
||||
* Basic text editor in order to create a FreeTex annotation.
|
||||
*/
|
||||
export class FreeTextEditor extends AnnotationEditor {
|
||||
static _freeTextDefaultContent: string;
|
||||
static _internalPadding: number;
|
||||
static _defaultColor: null;
|
||||
static _defaultFontSize: number;
|
||||
static get _keyboardManager(): any;
|
||||
static _type: string;
|
||||
static _editorType: number;
|
||||
/** @inheritdoc */
|
||||
static initialize(l10n: any, uiManager: any): void;
|
||||
/** @inheritdoc */
|
||||
static updateDefaultParams(type: any, value: any): void;
|
||||
/** @inheritdoc */
|
||||
static get defaultPropertiesToUpdate(): any[][];
|
||||
static "__#18@#getNodeContent"(node: any): any;
|
||||
static "__#18@#deserializeContent"(content: any): any;
|
||||
/** @inheritdoc */
|
||||
static deserialize(data: any, parent: any, uiManager: any): Promise<AnnotationEditor | null>;
|
||||
constructor(params: any);
|
||||
/** @inheritdoc */
|
||||
updateParams(type: any, value: any): void;
|
||||
/** @inheritdoc */
|
||||
get propertiesToUpdate(): any[][];
|
||||
/**
|
||||
* Helper to translate the editor with the keyboard when it's empty.
|
||||
* @param {number} x in page units.
|
||||
* @param {number} y in page units.
|
||||
*/
|
||||
_translateEmpty(x: number, y: number): void;
|
||||
/**
|
||||
* Commit the content we have in this editor.
|
||||
* @returns {undefined}
|
||||
*/
|
||||
commit(): undefined;
|
||||
/**
|
||||
* ondblclick callback.
|
||||
* @param {MouseEvent} event
|
||||
*/
|
||||
dblclick(event: MouseEvent): void;
|
||||
editorDivKeydown(event: any): void;
|
||||
editorDivFocus(event: any): void;
|
||||
editorDivBlur(event: any): void;
|
||||
editorDivInput(event: any): void;
|
||||
editorDiv: HTMLDivElement | undefined;
|
||||
overlayDiv: HTMLDivElement | undefined;
|
||||
editorDivPaste(event: any): void;
|
||||
/** @inheritdoc */
|
||||
serialize(isForCopying?: boolean): Object | null;
|
||||
/** @inheritdoc */
|
||||
renderAnnotationElement(annotation: any): HTMLElement | null;
|
||||
#private;
|
||||
}
|
||||
import { AnnotationEditor } from "./editor.js";
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,41 @@
|
||||
# globals [](https://travis-ci.org/sindresorhus/globals)
|
||||
|
||||
> Global identifiers from different JavaScript environments
|
||||
|
||||
Extracted from [JSHint](https://github.com/jshint/jshint/blob/3a8efa979dbb157bfb5c10b5826603a55a33b9ad/src/vars.js) and [ESLint](https://github.com/eslint/eslint/blob/b648406218f8a2d7302b98f5565e23199f44eb31/conf/environments.json) and merged.
|
||||
|
||||
It's just a [JSON file](globals.json), so use it in whatever environment you like.
|
||||
|
||||
**This module [no longer accepts](https://github.com/sindresorhus/globals/issues/82) new environments. If you need it for ESLint, just [create a plugin](http://eslint.org/docs/developer-guide/working-with-plugins#environments-in-plugins).**
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install globals
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const globals = require('globals');
|
||||
|
||||
console.log(globals.browser);
|
||||
/*
|
||||
{
|
||||
addEventListener: false,
|
||||
applicationCache: false,
|
||||
ArrayBuffer: false,
|
||||
atob: false,
|
||||
...
|
||||
}
|
||||
*/
|
||||
```
|
||||
|
||||
Each global is given a value of `true` or `false`. A value of `true` indicates that the variable may be overwritten. A value of `false` indicates that the variable should be considered read-only. This information is used by static analysis tools to flag incorrect behavior. We assume all variables should be `false` unless we hear otherwise.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
@@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"35":0.00187,"60":0.00187,"66":0.00187,"72":0.00187,"106":0.00561,"115":0.05607,"117":0.00187,"125":0.00187,"127":0.00561,"128":0.0243,"129":0.00561,"130":0.00187,"132":0.00374,"133":0.00374,"134":0.00561,"135":0.20933,"136":0.79059,"137":0.00748,_:"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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 64 65 67 68 69 70 71 73 74 75 76 77 78 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 104 105 107 108 109 110 111 112 113 114 116 118 119 120 121 122 123 124 126 131 138 139 140 3.5 3.6"},D:{"26":0.00187,"42":0.00187,"43":0.00561,"44":0.00374,"47":0.00187,"48":0.00187,"49":0.00187,"50":0.00187,"51":0.00187,"55":0.00187,"56":0.00187,"57":0.00187,"58":0.03925,"59":0.00187,"60":0.00187,"61":0.00935,"64":0.00187,"68":0.00187,"69":0.00561,"70":0.00187,"72":0.00187,"73":0.01308,"74":0.02056,"76":0.00748,"78":0.00561,"79":0.00374,"80":0.00374,"81":0.00187,"84":0.00187,"85":0.00187,"86":0.00374,"87":0.00561,"88":0.00374,"89":0.00187,"90":0.00374,"91":0.00187,"93":0.00187,"94":0.00187,"95":0.00374,"97":0.00187,"99":0.00187,"100":0.00374,"101":0.00561,"102":0.00187,"103":0.03738,"104":0.00187,"106":0.04486,"107":0.00187,"108":0.00935,"109":0.75321,"110":0.00187,"111":0.02804,"114":0.00748,"115":0.00187,"116":0.01308,"117":0.00561,"118":0.00374,"119":0.01495,"120":0.00561,"121":0.00187,"122":0.01121,"123":0.00748,"124":0.00561,"125":0.01495,"126":0.02243,"127":0.00748,"128":0.0299,"129":0.03738,"130":0.04486,"131":0.11401,"132":0.1084,"133":2.02973,"134":3.79781,"135":0.00187,_:"4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 45 46 52 53 54 62 63 65 66 67 71 75 77 83 92 96 98 105 112 113 136 137 138"},F:{"72":0.00187,"79":0.00374,"87":0.00748,"88":0.00374,"95":0.01121,"115":0.00187,"116":0.01495,"117":0.51024,_:"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 73 74 75 76 77 78 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 109 110 111 112 113 114 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"12":0.00187,"13":0.00187,"16":0.00187,"18":0.00748,"84":0.00561,"85":0.00187,"89":0.00187,"90":0.00187,"92":0.0299,"100":0.00748,"107":0.00748,"109":0.00374,"110":0.00561,"112":0.04112,"114":0.00935,"117":0.00935,"120":0.01682,"122":0.00187,"124":0.00187,"126":0.00374,"128":0.00187,"129":0.02804,"130":0.00748,"131":0.01869,"132":0.02056,"133":0.48033,"134":0.95693,_:"14 15 17 79 80 81 83 86 87 88 91 93 94 95 96 97 98 99 101 102 103 104 105 106 108 111 113 115 116 118 119 121 123 125 127"},E:{_:"0 4 5 6 7 8 9 10 11 12 13 14 15 3.1 3.2 5.1 6.1 7.1 9.1 10.1 11.1 12.1 15.4 15.5 16.0 16.4","13.1":0.00935,"14.1":0.07289,"15.1":0.00187,"15.2-15.3":0.00187,"15.6":0.01308,"16.1":0.00374,"16.2":0.00374,"16.3":0.00748,"16.5":0.00187,"16.6":0.05233,"17.0":0.00374,"17.1":0.05233,"17.2":0.00374,"17.3":0.00935,"17.4":0.00935,"17.5":0.03177,"17.6":0.15513,"18.0":0.00561,"18.1":0.01869,"18.2":0.01121,"18.3":0.10653,"18.4":0.00748},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00176,"5.0-5.1":0,"6.0-6.1":0.00529,"7.0-7.1":0.00353,"8.1-8.4":0,"9.0-9.2":0.00265,"9.3":0.01235,"10.0-10.2":0.00088,"10.3":0.02029,"11.0-11.2":0.09351,"11.3-11.4":0.00618,"12.0-12.1":0.00353,"12.2-12.5":0.08734,"13.0-13.1":0.00176,"13.2":0.00265,"13.3":0.00353,"13.4-13.7":0.01235,"14.0-14.4":0.03088,"14.5-14.8":0.03705,"15.0-15.1":0.02029,"15.2-15.3":0.02029,"15.4":0.0247,"15.5":0.02823,"15.6-15.8":0.34759,"16.0":0.0494,"16.1":0.10145,"16.2":0.05293,"16.3":0.09175,"16.4":0.02029,"16.5":0.03794,"16.6-16.7":0.41199,"17.0":0.0247,"17.1":0.04411,"17.2":0.03352,"17.3":0.04676,"17.4":0.09351,"17.5":0.2082,"17.6-17.7":0.60432,"18.0":0.16938,"18.1":0.55403,"18.2":0.2479,"18.3":5.18124,"18.4":0.07675},P:{"21":0.03296,"22":0.03296,"23":0.03296,"25":0.01099,"26":0.02198,"27":0.20877,_:"4 20 24 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","5.0-5.4":0.01099,"7.2-7.4":0.01099,"18.0":0.01099,"19.0":0.03296},I:{"0":0.04868,"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.00005},K:{"0":1.85371,_:"10 11 12 11.1 11.5 12.1"},A:{_:"6 7 8 9 10 11 5.5"},S:{"2.5":0.04879,_:"3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.02439},Q:{"14.9":0.00813},O:{"0":0.20328},H:{"0":1.48},L:{"0":75.31399}};
|
||||
@@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
SemVer: require('./semver.js'),
|
||||
Range: require('./range.js'),
|
||||
Comparator: require('./comparator.js'),
|
||||
}
|
||||
Reference in New Issue
Block a user