update
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
||||
var _core = require("@babel/core");
|
||||
const TRACE_ID = "__source";
|
||||
const FILE_NAME_VAR = "_jsxFileName";
|
||||
const createNodeFromNullish = (val, fn) => val == null ? _core.types.nullLiteral() : fn(val);
|
||||
var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
|
||||
api.assertVersion(7);
|
||||
function makeTrace(fileNameIdentifier, {
|
||||
line,
|
||||
column
|
||||
}) {
|
||||
const fileLineLiteral = createNodeFromNullish(line, _core.types.numericLiteral);
|
||||
const fileColumnLiteral = createNodeFromNullish(column, c => _core.types.numericLiteral(c + 1));
|
||||
return _core.template.expression.ast`{
|
||||
fileName: ${fileNameIdentifier},
|
||||
lineNumber: ${fileLineLiteral},
|
||||
columnNumber: ${fileColumnLiteral},
|
||||
}`;
|
||||
}
|
||||
const isSourceAttr = attr => _core.types.isJSXAttribute(attr) && attr.name.name === TRACE_ID;
|
||||
return {
|
||||
name: "transform-react-jsx-source",
|
||||
visitor: {
|
||||
JSXOpeningElement(path, state) {
|
||||
const {
|
||||
node
|
||||
} = path;
|
||||
if (!node.loc || path.node.attributes.some(isSourceAttr)) {
|
||||
return;
|
||||
}
|
||||
if (!state.fileNameIdentifier) {
|
||||
const fileNameId = path.scope.generateUidIdentifier(FILE_NAME_VAR);
|
||||
state.fileNameIdentifier = fileNameId;
|
||||
path.scope.getProgramParent().push({
|
||||
id: fileNameId,
|
||||
init: _core.types.stringLiteral(state.filename || "")
|
||||
});
|
||||
}
|
||||
node.attributes.push(_core.types.jsxAttribute(_core.types.jsxIdentifier(TRACE_ID), _core.types.jsxExpressionContainer(makeTrace(_core.types.cloneNode(state.fileNameIdentifier), node.loc.start))));
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
@@ -0,0 +1,81 @@
|
||||
import { SourceMapConsumer } from 'source-map-js'
|
||||
|
||||
import { ProcessOptions } from './postcss.js'
|
||||
|
||||
declare namespace PreviousMap {
|
||||
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
||||
export { PreviousMap_ as default }
|
||||
}
|
||||
|
||||
/**
|
||||
* Source map information from input CSS.
|
||||
* For example, source map after Sass compiler.
|
||||
*
|
||||
* This class will automatically find source map in input CSS or in file system
|
||||
* near input file (according `from` option).
|
||||
*
|
||||
* ```js
|
||||
* const root = parse(css, { from: 'a.sass.css' })
|
||||
* root.input.map //=> PreviousMap
|
||||
* ```
|
||||
*/
|
||||
declare class PreviousMap_ {
|
||||
/**
|
||||
* `sourceMappingURL` content.
|
||||
*/
|
||||
annotation?: string
|
||||
|
||||
/**
|
||||
* The CSS source identifier. Contains `Input#file` if the user
|
||||
* set the `from` option, or `Input#id` if they did not.
|
||||
*/
|
||||
file?: string
|
||||
|
||||
/**
|
||||
* Was source map inlined by data-uri to input CSS.
|
||||
*/
|
||||
inline: boolean
|
||||
|
||||
/**
|
||||
* Path to source map file.
|
||||
*/
|
||||
mapFile?: string
|
||||
|
||||
/**
|
||||
* The directory with source map file, if source map is in separated file.
|
||||
*/
|
||||
root?: string
|
||||
|
||||
/**
|
||||
* Source map file content.
|
||||
*/
|
||||
text?: string
|
||||
|
||||
/**
|
||||
* @param css Input CSS source.
|
||||
* @param opts Process options.
|
||||
*/
|
||||
constructor(css: string, opts?: ProcessOptions)
|
||||
|
||||
/**
|
||||
* Create a instance of `SourceMapGenerator` class
|
||||
* from the `source-map` library to work with source map information.
|
||||
*
|
||||
* It is lazy method, so it will create object only on first call
|
||||
* and then it will use cache.
|
||||
*
|
||||
* @return Object with source map information.
|
||||
*/
|
||||
consumer(): SourceMapConsumer
|
||||
|
||||
/**
|
||||
* Does source map contains `sourcesContent` with input source text.
|
||||
*
|
||||
* @return Is `sourcesContent` present.
|
||||
*/
|
||||
withContent(): boolean
|
||||
}
|
||||
|
||||
declare class PreviousMap extends PreviousMap_ {}
|
||||
|
||||
export = PreviousMap
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"4":0.00391,"48":0.00391,"50":0.00391,"52":0.01953,"56":0.00391,"59":0.01172,"78":0.01953,"87":0.00391,"88":0.00391,"92":0.00391,"100":0.00391,"103":0.00391,"107":0.00391,"108":0.00391,"109":0.00781,"113":0.00781,"114":0.00391,"115":0.17963,"122":0.00391,"124":0.00391,"125":0.00781,"126":0.00391,"127":0.00391,"128":0.0781,"129":0.00391,"130":0.00391,"131":0.01172,"132":0.02343,"133":0.01562,"134":0.02343,"135":0.4647,"136":1.39018,"137":0.00781,_:"2 3 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 51 53 54 55 57 58 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 89 90 91 93 94 95 96 97 98 99 101 102 104 105 106 110 111 112 116 117 118 119 120 121 123 138 139 140 3.5 3.6"},D:{"43":0.00391,"46":0.00391,"49":0.02734,"58":0.00391,"66":0.04296,"73":0.00391,"75":0.03905,"76":0.00391,"79":0.02343,"80":0.00781,"81":0.00391,"83":0.00391,"84":0.00391,"85":0.00391,"86":0.00391,"87":0.03515,"88":0.00781,"89":0.00391,"90":0.00781,"91":0.00781,"92":0.00391,"93":0.00391,"94":0.00781,"95":0.00391,"96":0.00391,"97":0.00391,"98":0.00391,"99":0.00391,"100":0.00391,"102":0.00781,"103":0.05858,"104":0.03905,"105":0.00781,"106":0.01953,"107":0.01953,"108":0.02734,"109":0.91768,"110":0.03124,"111":0.01562,"112":0.01953,"113":0.00781,"114":0.01953,"115":0.00391,"116":0.12496,"117":0.00391,"118":0.01562,"119":0.04296,"120":0.03905,"121":0.05467,"122":0.09763,"123":0.04686,"124":0.07029,"125":0.03515,"126":0.11715,"127":0.03515,"128":0.1523,"129":0.05858,"130":0.10544,"131":0.42565,"132":0.65214,"133":8.19269,"134":14.17515,"135":0.01172,"136":0.00391,_:"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 45 47 48 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 67 68 69 70 71 72 74 77 78 101 137 138"},F:{"46":0.00391,"87":0.01562,"88":0.00781,"95":0.01953,"102":0.00391,"107":0.00391,"114":0.00391,"116":0.35926,"117":1.03092,_:"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 103 104 105 106 108 109 110 111 112 113 115 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.00781,"92":0.00391,"101":0.00391,"107":0.00391,"108":0.00391,"109":0.04296,"110":0.00391,"114":0.00391,"119":0.00391,"120":0.00391,"121":0.00391,"122":0.01953,"124":0.00781,"125":0.00391,"126":0.01562,"127":0.00391,"128":0.00391,"129":0.01172,"130":0.01562,"131":0.04296,"132":0.06248,"133":1.14417,"134":2.58902,_:"12 13 14 15 16 18 79 80 81 83 84 85 86 87 88 89 90 91 93 94 95 96 97 98 99 100 102 103 104 105 106 111 112 113 115 116 117 118 123"},E:{"13":0.00391,"14":0.02343,"15":0.00391,_:"0 4 5 6 7 8 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.01172,"12.1":0.00781,"13.1":0.04686,"14.1":0.04296,"15.1":0.00781,"15.2-15.3":0.00781,"15.4":0.01562,"15.5":0.01953,"15.6":0.17573,"16.0":0.03905,"16.1":0.02343,"16.2":0.02343,"16.3":0.03905,"16.4":0.01562,"16.5":0.02734,"16.6":0.21868,"17.0":0.01953,"17.1":0.13277,"17.2":0.02734,"17.3":0.02734,"17.4":0.05467,"17.5":0.08982,"17.6":0.26945,"18.0":0.05858,"18.1":0.13277,"18.2":0.05467,"18.3":1.37847,"18.4":0.02343},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00253,"5.0-5.1":0,"6.0-6.1":0.0076,"7.0-7.1":0.00507,"8.1-8.4":0,"9.0-9.2":0.0038,"9.3":0.01774,"10.0-10.2":0.00127,"10.3":0.02914,"11.0-11.2":0.13432,"11.3-11.4":0.00887,"12.0-12.1":0.00507,"12.2-12.5":0.12545,"13.0-13.1":0.00253,"13.2":0.0038,"13.3":0.00507,"13.4-13.7":0.01774,"14.0-14.4":0.04435,"14.5-14.8":0.05322,"15.0-15.1":0.02914,"15.2-15.3":0.02914,"15.4":0.03548,"15.5":0.04055,"15.6-15.8":0.49926,"16.0":0.07096,"16.1":0.14572,"16.2":0.07603,"16.3":0.13178,"16.4":0.02914,"16.5":0.05449,"16.6-16.7":0.59176,"17.0":0.03548,"17.1":0.06336,"17.2":0.04815,"17.3":0.06716,"17.4":0.13432,"17.5":0.29905,"17.6-17.7":0.868,"18.0":0.24329,"18.1":0.79577,"18.2":0.35607,"18.3":7.44197,"18.4":0.11024},P:{"4":0.05165,"20":0.01033,"21":0.02066,"22":0.02066,"23":0.03099,"24":0.04132,"25":0.03099,"26":0.08264,"27":2.20022,"5.0-5.4":0.01033,_:"6.2-6.4 8.2 9.2 10.1 12.0 14.0 15.0 18.0","7.2-7.4":0.01033,"11.1-11.2":0.01033,"13.0":0.02066,"16.0":0.01033,"17.0":0.01033,"19.0":0.01033},I:{"0":0.03041,"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.3657,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.05858,_:"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.34742},Q:{_:"14.9"},O:{"0":0.03048},H:{"0":0},L:{"0":46.1359}};
|
||||
@@ -0,0 +1,113 @@
|
||||
import type { Handler } from "gensync";
|
||||
|
||||
import type {
|
||||
ConfigFile,
|
||||
IgnoreFile,
|
||||
RelativeConfig,
|
||||
FilePackageData,
|
||||
} from "./types.ts";
|
||||
|
||||
import type { CallerMetadata } from "../validation/options.ts";
|
||||
|
||||
export type { ConfigFile, IgnoreFile, RelativeConfig, FilePackageData };
|
||||
|
||||
export function findConfigUpwards(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
rootDir: string,
|
||||
): string | null {
|
||||
return null;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line require-yield
|
||||
export function* findPackageData(filepath: string): Handler<FilePackageData> {
|
||||
return {
|
||||
filepath,
|
||||
directories: [],
|
||||
pkg: null,
|
||||
isPackage: false,
|
||||
};
|
||||
}
|
||||
|
||||
// eslint-disable-next-line require-yield
|
||||
export function* findRelativeConfig(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
pkgData: FilePackageData,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
envName: string,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
caller: CallerMetadata | undefined,
|
||||
): Handler<RelativeConfig> {
|
||||
return { config: null, ignore: null };
|
||||
}
|
||||
|
||||
// eslint-disable-next-line require-yield
|
||||
export function* findRootConfig(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
dirname: string,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
envName: string,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
caller: CallerMetadata | undefined,
|
||||
): Handler<ConfigFile | null> {
|
||||
return null;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line require-yield
|
||||
export function* loadConfig(
|
||||
name: string,
|
||||
dirname: string,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
envName: string,
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
caller: CallerMetadata | undefined,
|
||||
): Handler<ConfigFile> {
|
||||
throw new Error(`Cannot load ${name} relative to ${dirname} in a browser`);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line require-yield
|
||||
export function* resolveShowConfigPath(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
dirname: string,
|
||||
): Handler<string | null> {
|
||||
return null;
|
||||
}
|
||||
|
||||
export const ROOT_CONFIG_FILENAMES: string[] = [];
|
||||
|
||||
type Resolved =
|
||||
| { loader: "require"; filepath: string }
|
||||
| { loader: "import"; filepath: string };
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export function resolvePlugin(name: string, dirname: string): Resolved | null {
|
||||
return null;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
export function resolvePreset(name: string, dirname: string): Resolved | null {
|
||||
return null;
|
||||
}
|
||||
|
||||
export function loadPlugin(
|
||||
name: string,
|
||||
dirname: string,
|
||||
): Handler<{
|
||||
filepath: string;
|
||||
value: unknown;
|
||||
}> {
|
||||
throw new Error(
|
||||
`Cannot load plugin ${name} relative to ${dirname} in a browser`,
|
||||
);
|
||||
}
|
||||
|
||||
export function loadPreset(
|
||||
name: string,
|
||||
dirname: string,
|
||||
): Handler<{
|
||||
filepath: string;
|
||||
value: unknown;
|
||||
}> {
|
||||
throw new Error(
|
||||
`Cannot load preset ${name} relative to ${dirname} in a browser`,
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
const { ESLint } = require("./eslint");
|
||||
const { LegacyESLint } = require("./legacy-eslint");
|
||||
|
||||
module.exports = {
|
||||
ESLint,
|
||||
LegacyESLint,
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"2":0.00438,"48":0.00438,"52":0.03506,"59":0.03506,"60":0.00438,"68":0.00438,"72":0.03068,"76":0.00438,"78":0.04821,"82":0.00438,"88":0.02192,"102":0.00438,"106":0.00438,"113":0.00438,"115":0.35941,"119":0.00438,"125":0.00438,"127":0.00438,"128":0.09204,"129":0.00438,"130":0.00438,"131":0.01315,"132":0.0263,"133":0.0263,"134":0.04383,"135":0.60047,"136":2.24848,"137":0.00877,_:"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 61 62 63 64 65 66 67 69 70 71 73 74 75 77 79 80 81 83 84 85 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 107 108 109 110 111 112 114 116 117 118 120 121 122 123 124 126 138 139 140 3.5 3.6"},D:{"38":0.00438,"41":0.00438,"42":0.00438,"43":0.00438,"46":0.00438,"47":0.00438,"48":0.00438,"49":0.03506,"50":0.00438,"51":0.00438,"52":0.00438,"53":0.00438,"54":0.00438,"55":0.00438,"56":0.00877,"57":0.00438,"58":0.00438,"59":0.00438,"60":0.00438,"63":0.0526,"65":0.00438,"66":0.15341,"70":0.00438,"77":0.00877,"79":0.02192,"80":0.00438,"81":0.00877,"84":0.00438,"85":0.0263,"86":0.02192,"87":0.03945,"88":0.01315,"89":0.00438,"90":0.00438,"91":0.24545,"92":0.13587,"93":0.00438,"94":0.00438,"95":0.00438,"96":0.00438,"97":0.00438,"99":0.00438,"100":0.00438,"101":0.00438,"102":0.00438,"103":0.07013,"104":0.00877,"105":0.01315,"106":0.00877,"107":0.00877,"108":0.02192,"109":2.3712,"110":0.02192,"111":0.01315,"112":0.00877,"113":0.00438,"114":0.0263,"115":0.00438,"116":0.21477,"117":0.00438,"118":0.01315,"119":0.0263,"120":0.03068,"121":0.0263,"122":0.07451,"123":0.0263,"124":0.07451,"125":0.07013,"126":0.11396,"127":0.0263,"128":0.21477,"129":0.03945,"130":0.09643,"131":0.44707,"132":0.49966,"133":7.71846,"134":15.33612,"135":0.03068,"136":0.00438,_:"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 44 45 61 62 64 67 68 69 71 72 73 74 75 76 78 83 98 137 138"},F:{"46":0.00438,"69":0.00438,"85":0.00438,"87":0.02192,"88":0.00877,"89":0.00438,"95":0.02192,"102":0.00438,"114":0.01315,"115":0.00438,"116":0.19285,"117":0.86783,_:"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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 86 90 91 92 93 94 96 97 98 99 100 101 103 104 105 106 107 108 109 110 111 112 113 9.5-9.6 10.0-10.1 10.5 10.6 11.1 11.5 11.6 12.1"},B:{"17":0.01753,"85":0.01315,"90":0.04383,"92":0.00438,"108":0.00438,"109":0.04383,"114":0.00438,"122":0.00438,"123":0.00438,"124":0.00438,"125":0.00438,"126":0.00877,"127":0.00438,"128":0.00438,"129":0.00877,"130":0.03068,"131":0.04821,"132":0.07013,"133":1.16588,"134":2.77006,_:"12 13 14 15 16 18 79 80 81 83 84 86 87 88 89 91 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 110 111 112 113 115 116 117 118 119 120 121"},E:{"8":0.00438,"13":0.00438,"14":0.02192,"15":0.00438,_:"0 4 5 6 7 9 10 11 12 3.1 3.2 5.1 6.1 7.1 9.1 10.1","11.1":0.03506,"12.1":0.01315,"13.1":0.05698,"14.1":0.16655,"15.1":0.00877,"15.2-15.3":0.00877,"15.4":0.01315,"15.5":0.02192,"15.6":0.21915,"16.0":0.03068,"16.1":0.03068,"16.2":0.02192,"16.3":0.0526,"16.4":0.02192,"16.5":0.03945,"16.6":0.20162,"17.0":0.0263,"17.1":0.12272,"17.2":0.03945,"17.3":0.03506,"17.4":0.07889,"17.5":0.17094,"17.6":0.40324,"18.0":0.07889,"18.1":0.17094,"18.2":0.08766,"18.3":1.7532,"18.4":0.0526},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00276,"5.0-5.1":0,"6.0-6.1":0.00829,"7.0-7.1":0.00553,"8.1-8.4":0,"9.0-9.2":0.00415,"9.3":0.01934,"10.0-10.2":0.00138,"10.3":0.03178,"11.0-11.2":0.14647,"11.3-11.4":0.00967,"12.0-12.1":0.00553,"12.2-12.5":0.1368,"13.0-13.1":0.00276,"13.2":0.00415,"13.3":0.00553,"13.4-13.7":0.01934,"14.0-14.4":0.04836,"14.5-14.8":0.05803,"15.0-15.1":0.03178,"15.2-15.3":0.03178,"15.4":0.03869,"15.5":0.04422,"15.6-15.8":0.54442,"16.0":0.07738,"16.1":0.1589,"16.2":0.08291,"16.3":0.14371,"16.4":0.03178,"16.5":0.05942,"16.6-16.7":0.64529,"17.0":0.03869,"17.1":0.06909,"17.2":0.05251,"17.3":0.07323,"17.4":0.14647,"17.5":0.3261,"17.6-17.7":0.94652,"18.0":0.2653,"18.1":0.86776,"18.2":0.38828,"18.3":8.11521,"18.4":0.12022},P:{"4":0.05184,"20":0.01037,"21":0.02074,"22":0.02074,"23":0.02074,"24":0.16589,"25":0.04147,"26":0.08295,"27":2.41581,"5.0-5.4":0.01037,_:"6.2-6.4 8.2 9.2 10.1 11.1-11.2 12.0 14.0 15.0 16.0 18.0","7.2-7.4":0.01037,"13.0":0.01037,"17.0":0.01037,"19.0":0.01037},I:{"0":0.02803,"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.38196,_:"10 11 12 11.1 11.5 12.1"},A:{"8":0.00461,"11":0.1751,_:"6 7 9 10 5.5"},S:{_:"2.5 3.0-3.1"},J:{_:"7 10"},N:{_:"10 11"},R:{_:"0"},M:{"0":0.49991},Q:{"14.9":0.00562},O:{"0":0.07864},H:{"0":0},L:{"0":39.03786}};
|
||||
@@ -0,0 +1,57 @@
|
||||
export type EventBus = import("./event_utils").EventBus;
|
||||
export type PDFScriptingManagerOptions = {
|
||||
/**
|
||||
* - The application event bus.
|
||||
*/
|
||||
eventBus: EventBus;
|
||||
/**
|
||||
* - The path and filename of the
|
||||
* scripting bundle.
|
||||
*/
|
||||
sandboxBundleSrc?: string | undefined;
|
||||
/**
|
||||
* - The factory that is used when
|
||||
* initializing scripting; must contain a `createScripting` method.
|
||||
* PLEASE NOTE: Primarily intended for the default viewer use-case.
|
||||
*/
|
||||
externalServices?: Object | undefined;
|
||||
/**
|
||||
* - The function that is used to lookup
|
||||
* the necessary document properties.
|
||||
*/
|
||||
docProperties?: Function | undefined;
|
||||
};
|
||||
/**
|
||||
* @typedef {Object} PDFScriptingManagerOptions
|
||||
* @property {EventBus} eventBus - The application event bus.
|
||||
* @property {string} [sandboxBundleSrc] - The path and filename of the
|
||||
* scripting bundle.
|
||||
* @property {Object} [externalServices] - The factory that is used when
|
||||
* initializing scripting; must contain a `createScripting` method.
|
||||
* PLEASE NOTE: Primarily intended for the default viewer use-case.
|
||||
* @property {function} [docProperties] - The function that is used to lookup
|
||||
* the necessary document properties.
|
||||
*/
|
||||
export class PDFScriptingManager {
|
||||
/**
|
||||
* @param {PDFScriptingManagerOptions} options
|
||||
*/
|
||||
constructor({ eventBus, externalServices, docProperties }: PDFScriptingManagerOptions);
|
||||
setViewer(pdfViewer: any): void;
|
||||
setDocument(pdfDocument: any): Promise<void>;
|
||||
dispatchWillSave(): Promise<any>;
|
||||
dispatchDidSave(): Promise<any>;
|
||||
dispatchWillPrint(): Promise<void>;
|
||||
dispatchDidPrint(): Promise<any>;
|
||||
get destroyPromise(): any;
|
||||
get ready(): boolean;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
private get _pageOpenPending();
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
private get _visitedPages();
|
||||
#private;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E F A B mC"},B:{"1":"0 9 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","2":"C L M G N O P"},C:{"1":"0 9 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","2":"1 2 3 4 5 6 7 8 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 qC rC"},D:{"1":"0 9 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","2":"1 2 3 4 5 6 7 8 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"},E:{"1":"IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","2":"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"},F:{"1":"0 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","2":"1 2 3 4 5 6 7 8 F B C G N O P QB RB SB 4C 5C 6C 7C FC kC 8C GC"},G:{"1":"IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","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"},H:{"2":"WD"},I:{"2":"LC J I XD YD ZD aD lC bD cD"},J:{"2":"D A"},K:{"1":"H","2":"A B C FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"2":"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:5,C:"Permissions API",D:true};
|
||||
@@ -0,0 +1,148 @@
|
||||
/**
|
||||
* @fileoverview Prefers Object.hasOwn() instead of Object.prototype.hasOwnProperty.call()
|
||||
* @author Nitin Kumar
|
||||
* @author Gautam Arora
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Requirements
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
const astUtils = require("./utils/ast-utils");
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Helpers
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Checks if the given node is considered to be an access to a property of `Object.prototype`.
|
||||
* @param {ASTNode} node `MemberExpression` node to evaluate.
|
||||
* @returns {boolean} `true` if `node.object` is `Object`, `Object.prototype`, or `{}` (empty 'ObjectExpression' node).
|
||||
*/
|
||||
function hasLeftHandObject(node) {
|
||||
/*
|
||||
* ({}).hasOwnProperty.call(obj, prop) - `true`
|
||||
* ({ foo }.hasOwnProperty.call(obj, prop)) - `false`, object literal should be empty
|
||||
*/
|
||||
if (
|
||||
node.object.type === "ObjectExpression" &&
|
||||
node.object.properties.length === 0
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const objectNodeToCheck =
|
||||
node.object.type === "MemberExpression" &&
|
||||
astUtils.getStaticPropertyName(node.object) === "prototype"
|
||||
? node.object.object
|
||||
: node.object;
|
||||
|
||||
if (
|
||||
objectNodeToCheck.type === "Identifier" &&
|
||||
objectNodeToCheck.name === "Object"
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
docs: {
|
||||
description:
|
||||
"Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/prefer-object-has-own",
|
||||
},
|
||||
schema: [],
|
||||
messages: {
|
||||
useHasOwn:
|
||||
"Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'.",
|
||||
},
|
||||
fixable: "code",
|
||||
},
|
||||
create(context) {
|
||||
const sourceCode = context.sourceCode;
|
||||
|
||||
return {
|
||||
CallExpression(node) {
|
||||
if (
|
||||
!(
|
||||
node.callee.type === "MemberExpression" &&
|
||||
node.callee.object.type === "MemberExpression"
|
||||
)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
const calleePropertyName = astUtils.getStaticPropertyName(
|
||||
node.callee,
|
||||
);
|
||||
const objectPropertyName = astUtils.getStaticPropertyName(
|
||||
node.callee.object,
|
||||
);
|
||||
const isObject = hasLeftHandObject(node.callee.object);
|
||||
|
||||
// check `Object` scope
|
||||
const scope = sourceCode.getScope(node);
|
||||
const variable = astUtils.getVariableByName(scope, "Object");
|
||||
|
||||
if (
|
||||
calleePropertyName === "call" &&
|
||||
objectPropertyName === "hasOwnProperty" &&
|
||||
isObject &&
|
||||
variable &&
|
||||
variable.scope.type === "global"
|
||||
) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: "useHasOwn",
|
||||
fix(fixer) {
|
||||
if (
|
||||
sourceCode.getCommentsInside(node.callee)
|
||||
.length > 0
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const tokenJustBeforeNode =
|
||||
sourceCode.getTokenBefore(node.callee, {
|
||||
includeComments: true,
|
||||
});
|
||||
|
||||
// for https://github.com/eslint/eslint/pull/15346#issuecomment-991417335
|
||||
if (
|
||||
tokenJustBeforeNode &&
|
||||
tokenJustBeforeNode.range[1] ===
|
||||
node.callee.range[0] &&
|
||||
!astUtils.canTokensBeAdjacent(
|
||||
tokenJustBeforeNode,
|
||||
"Object.hasOwn",
|
||||
)
|
||||
) {
|
||||
return fixer.replaceText(
|
||||
node.callee,
|
||||
" Object.hasOwn",
|
||||
);
|
||||
}
|
||||
|
||||
return fixer.replaceText(
|
||||
node.callee,
|
||||
"Object.hasOwn",
|
||||
);
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,136 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
const jsxRuntime = require("react/jsx-runtime");
|
||||
const React = require("react");
|
||||
const warning = require("tiny-warning");
|
||||
const CatchBoundary = require("./CatchBoundary.cjs");
|
||||
const useRouterState = require("./useRouterState.cjs");
|
||||
const useRouter = require("./useRouter.cjs");
|
||||
const Transitioner = require("./Transitioner.cjs");
|
||||
const matchContext = require("./matchContext.cjs");
|
||||
const Match = require("./Match.cjs");
|
||||
const SafeFragment = require("./SafeFragment.cjs");
|
||||
function _interopNamespaceDefault(e) {
|
||||
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
||||
if (e) {
|
||||
for (const k in e) {
|
||||
if (k !== "default") {
|
||||
const d = Object.getOwnPropertyDescriptor(e, k);
|
||||
Object.defineProperty(n, k, d.get ? d : {
|
||||
enumerable: true,
|
||||
get: () => e[k]
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
n.default = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
||||
function Matches() {
|
||||
const router = useRouter.useRouter();
|
||||
const pendingElement = router.options.defaultPendingComponent ? /* @__PURE__ */ jsxRuntime.jsx(router.options.defaultPendingComponent, {}) : null;
|
||||
const ResolvedSuspense = router.isServer || typeof document !== "undefined" && router.clientSsr ? SafeFragment.SafeFragment : React__namespace.Suspense;
|
||||
const inner = /* @__PURE__ */ jsxRuntime.jsxs(ResolvedSuspense, { fallback: pendingElement, children: [
|
||||
/* @__PURE__ */ jsxRuntime.jsx(Transitioner.Transitioner, {}),
|
||||
/* @__PURE__ */ jsxRuntime.jsx(MatchesInner, {})
|
||||
] });
|
||||
return router.options.InnerWrap ? /* @__PURE__ */ jsxRuntime.jsx(router.options.InnerWrap, { children: inner }) : inner;
|
||||
}
|
||||
function MatchesInner() {
|
||||
const matchId = useRouterState.useRouterState({
|
||||
select: (s) => {
|
||||
var _a;
|
||||
return (_a = s.matches[0]) == null ? void 0 : _a.id;
|
||||
}
|
||||
});
|
||||
const resetKey = useRouterState.useRouterState({
|
||||
select: (s) => s.loadedAt
|
||||
});
|
||||
return /* @__PURE__ */ jsxRuntime.jsx(matchContext.matchContext.Provider, { value: matchId, children: /* @__PURE__ */ jsxRuntime.jsx(
|
||||
CatchBoundary.CatchBoundary,
|
||||
{
|
||||
getResetKey: () => resetKey,
|
||||
errorComponent: CatchBoundary.ErrorComponent,
|
||||
onCatch: (error) => {
|
||||
warning(
|
||||
false,
|
||||
`The following error wasn't caught by any route! At the very least, consider setting an 'errorComponent' in your RootRoute!`
|
||||
);
|
||||
warning(false, error.message || error.toString());
|
||||
},
|
||||
children: matchId ? /* @__PURE__ */ jsxRuntime.jsx(Match.Match, { matchId }) : null
|
||||
}
|
||||
) });
|
||||
}
|
||||
function useMatchRoute() {
|
||||
const router = useRouter.useRouter();
|
||||
useRouterState.useRouterState({
|
||||
select: (s) => {
|
||||
var _a;
|
||||
return [s.location.href, (_a = s.resolvedLocation) == null ? void 0 : _a.href, s.status];
|
||||
},
|
||||
structuralSharing: true
|
||||
});
|
||||
return React__namespace.useCallback(
|
||||
(opts) => {
|
||||
const { pending, caseSensitive, fuzzy, includeSearch, ...rest } = opts;
|
||||
return router.matchRoute(rest, {
|
||||
pending,
|
||||
caseSensitive,
|
||||
fuzzy,
|
||||
includeSearch
|
||||
});
|
||||
},
|
||||
[router]
|
||||
);
|
||||
}
|
||||
function MatchRoute(props) {
|
||||
const matchRoute = useMatchRoute();
|
||||
const params = matchRoute(props);
|
||||
if (typeof props.children === "function") {
|
||||
return props.children(params);
|
||||
}
|
||||
return params ? props.children : null;
|
||||
}
|
||||
function useMatches(opts) {
|
||||
return useRouterState.useRouterState({
|
||||
select: (state) => {
|
||||
const matches = state.matches;
|
||||
return (opts == null ? void 0 : opts.select) ? opts.select(matches) : matches;
|
||||
},
|
||||
structuralSharing: opts == null ? void 0 : opts.structuralSharing
|
||||
});
|
||||
}
|
||||
function useParentMatches(opts) {
|
||||
const contextMatchId = React__namespace.useContext(matchContext.matchContext);
|
||||
return useMatches({
|
||||
select: (matches) => {
|
||||
matches = matches.slice(
|
||||
0,
|
||||
matches.findIndex((d) => d.id === contextMatchId)
|
||||
);
|
||||
return (opts == null ? void 0 : opts.select) ? opts.select(matches) : matches;
|
||||
},
|
||||
structuralSharing: opts == null ? void 0 : opts.structuralSharing
|
||||
});
|
||||
}
|
||||
function useChildMatches(opts) {
|
||||
const contextMatchId = React__namespace.useContext(matchContext.matchContext);
|
||||
return useMatches({
|
||||
select: (matches) => {
|
||||
matches = matches.slice(
|
||||
matches.findIndex((d) => d.id === contextMatchId) + 1
|
||||
);
|
||||
return (opts == null ? void 0 : opts.select) ? opts.select(matches) : matches;
|
||||
},
|
||||
structuralSharing: opts == null ? void 0 : opts.structuralSharing
|
||||
});
|
||||
}
|
||||
exports.MatchRoute = MatchRoute;
|
||||
exports.Matches = Matches;
|
||||
exports.useChildMatches = useChildMatches;
|
||||
exports.useMatchRoute = useMatchRoute;
|
||||
exports.useMatches = useMatches;
|
||||
exports.useParentMatches = useParentMatches;
|
||||
//# sourceMappingURL=Matches.cjs.map
|
||||
@@ -0,0 +1,125 @@
|
||||
import * as React from 'react'
|
||||
import { Outlet } from './Match'
|
||||
import type { AsyncRouteComponent } from './route'
|
||||
|
||||
// If the load fails due to module not found, it may mean a new version of
|
||||
// the build was deployed and the user's browser is still using an old version.
|
||||
// If this happens, the old version in the user's browser would have an outdated
|
||||
// URL to the lazy module.
|
||||
// In that case, we want to attempt one window refresh to get the latest.
|
||||
function isModuleNotFoundError(error: any): boolean {
|
||||
// chrome: "Failed to fetch dynamically imported module: http://localhost:5173/src/routes/posts.index.tsx?tsr-split"
|
||||
// firefox: "error loading dynamically imported module: http://localhost:5173/src/routes/posts.index.tsx?tsr-split"
|
||||
// safari: "Importing a module script failed."
|
||||
if (typeof error?.message !== 'string') return false
|
||||
return (
|
||||
error.message.startsWith('Failed to fetch dynamically imported module') ||
|
||||
error.message.startsWith('error loading dynamically imported module') ||
|
||||
error.message.startsWith('Importing a module script failed')
|
||||
)
|
||||
}
|
||||
|
||||
export function ClientOnly({
|
||||
children,
|
||||
fallback = null,
|
||||
}: React.PropsWithChildren<{ fallback?: React.ReactNode }>) {
|
||||
return useHydrated() ? <>{children}</> : <>{fallback}</>
|
||||
}
|
||||
|
||||
function subscribe() {
|
||||
return () => {}
|
||||
}
|
||||
|
||||
export function useHydrated() {
|
||||
return React.useSyncExternalStore(
|
||||
subscribe,
|
||||
() => true,
|
||||
() => false,
|
||||
)
|
||||
}
|
||||
|
||||
export function lazyRouteComponent<
|
||||
T extends Record<string, any>,
|
||||
TKey extends keyof T = 'default',
|
||||
>(
|
||||
importer: () => Promise<T>,
|
||||
exportName?: TKey,
|
||||
ssr?: () => boolean,
|
||||
): T[TKey] extends (props: infer TProps) => any
|
||||
? AsyncRouteComponent<TProps>
|
||||
: never {
|
||||
let loadPromise: Promise<any> | undefined
|
||||
let comp: T[TKey] | T['default']
|
||||
let error: any
|
||||
let reload: boolean
|
||||
|
||||
const load = () => {
|
||||
if (typeof document === 'undefined' && ssr?.() === false) {
|
||||
comp = (() => null) as any
|
||||
return Promise.resolve()
|
||||
}
|
||||
if (!loadPromise) {
|
||||
loadPromise = importer()
|
||||
.then((res) => {
|
||||
loadPromise = undefined
|
||||
comp = res[exportName ?? 'default']
|
||||
})
|
||||
.catch((err) => {
|
||||
// We don't want an error thrown from preload in this case, because
|
||||
// there's nothing we want to do about module not found during preload.
|
||||
// Record the error, the rest is handled during the render path.
|
||||
error = err
|
||||
if (isModuleNotFoundError(error)) {
|
||||
if (
|
||||
error instanceof Error &&
|
||||
typeof window !== 'undefined' &&
|
||||
typeof sessionStorage !== 'undefined'
|
||||
) {
|
||||
// Again, we want to reload one time on module not found error and not enter
|
||||
// a reload loop if there is some other issue besides an old deploy.
|
||||
// That's why we store our reload attempt in sessionStorage.
|
||||
// Use error.message as key because it contains the module path that failed.
|
||||
const storageKey = `tanstack_router_reload:${error.message}`
|
||||
if (!sessionStorage.getItem(storageKey)) {
|
||||
sessionStorage.setItem(storageKey, '1')
|
||||
reload = true
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return loadPromise
|
||||
}
|
||||
|
||||
const lazyComp = function Lazy(props: any) {
|
||||
// Now that we're out of preload and into actual render path,
|
||||
if (reload) {
|
||||
// If it was a module loading error,
|
||||
// throw eternal suspense while we wait for window to reload
|
||||
window.location.reload()
|
||||
throw new Promise(() => {})
|
||||
}
|
||||
if (error) {
|
||||
// Otherwise, just throw the error
|
||||
throw error
|
||||
}
|
||||
|
||||
if (!comp) {
|
||||
throw load()
|
||||
}
|
||||
|
||||
if (ssr?.() === false) {
|
||||
return (
|
||||
<ClientOnly fallback={<Outlet />}>
|
||||
{React.createElement(comp, props)}
|
||||
</ClientOnly>
|
||||
)
|
||||
}
|
||||
return React.createElement(comp, props)
|
||||
}
|
||||
|
||||
;(lazyComp as any).preload = load
|
||||
|
||||
return lazyComp as any
|
||||
}
|
||||
@@ -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 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:{"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":"A B C L M G 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","2":"J PB K D E sC SC tC uC vC","33":"F"},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:{"1":"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":"E SC 9C lC AD BD CD DD","33":"ED FD"},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:5,C:"CSS filter() function",D:true};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"E F A B","2":"K D mC"},B:{"1":"C L M G N O P","4":"0 9 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":"1 2 3 4 5 6 7 8 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","4":"0 9 J PB K D E F A B C L M G N O 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","16":"nC LC qC rC"},D:{"4":"0 7 8 9 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","16":"1 2 3 4 5 6 J PB K D E F A B C L M G N O P QB"},E:{"4":"K D E F A B C L M G 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","16":"J PB sC SC"},F:{"4":"0 1 2 3 4 5 6 7 8 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 8C GC","16":"F B 4C 5C 6C 7C FC kC"},G:{"4":"E 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","16":"SC 9C lC AD BD"},H:{"2":"WD"},I:{"4":"J I aD lC bD cD","16":"LC XD YD ZD"},J:{"4":"D A"},K:{"4":"H GC","16":"A B C FC kC"},L:{"4":"I"},M:{"4":"EC"},N:{"1":"A B"},O:{"4":"HC"},P:{"4":"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:{"4":"oD"},R:{"4":"pD"},S:{"1":"qD","4":"rD"}},B:6,C:"X-Frame-Options HTTP header",D:true};
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E F A B mC"},B:{"1":"0 9 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","2":"C L M G N O P Q H R S T U V W X Y Z a b c d e","322":"f g h"},C:{"1":"0 9 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","2":"1 2 3 4 5 6 7 8 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 qC rC","194":"d e f"},D:{"1":"0 9 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","2":"1 2 3 4 5 6 7 8 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","322":"f g h"},E:{"1":"VC HC 0C IC WC XC YC ZC aC 1C JC bC cC dC eC fC 2C KC gC hC iC jC 3C","2":"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"},F:{"1":"0 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","2":"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 4C 5C 6C 7C FC kC 8C GC"},G:{"1":"VC HC TD IC WC XC YC ZC aC UD JC bC cC dC eC fC VD KC gC hC iC jC","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"},H:{"2":"WD"},I:{"1":"I","2":"LC J XD YD ZD aD lC bD cD"},J:{"2":"D A"},K:{"1":"H","2":"A B C FC kC GC"},L:{"1":"I"},M:{"1":"EC"},N:{"2":"A B"},O:{"1":"HC"},P:{"1":"1 2 3 4 5 6 7 8 KC nD","2":"J dD eD fD gD hD TC iD jD kD lD mD IC JC"},Q:{"2":"oD"},R:{"2":"pD"},S:{"2":"qD rD"}},B:4,C:"CSS Cascade Layers",D:true};
|
||||
@@ -0,0 +1,20 @@
|
||||
import { defaultSerializeError } from './router.js';
|
||||
export declare const TSR_DEFERRED_PROMISE: unique symbol;
|
||||
export type DeferredPromiseState<T> = {
|
||||
status: 'pending';
|
||||
data?: T;
|
||||
error?: unknown;
|
||||
} | {
|
||||
status: 'success';
|
||||
data: T;
|
||||
} | {
|
||||
status: 'error';
|
||||
data?: T;
|
||||
error: unknown;
|
||||
};
|
||||
export type DeferredPromise<T> = Promise<T> & {
|
||||
[TSR_DEFERRED_PROMISE]: DeferredPromiseState<T>;
|
||||
};
|
||||
export declare function defer<T>(_promise: Promise<T>, options?: {
|
||||
serializeError?: typeof defaultSerializeError;
|
||||
}): DeferredPromise<T>;
|
||||
Reference in New Issue
Block a user