update
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
0 && 0;
|
||||
|
||||
//# sourceMappingURL=types.js.map
|
||||
@@ -0,0 +1,35 @@
|
||||
import * as pdfjs from 'pdfjs-dist';
|
||||
|
||||
import Document from './Document.js';
|
||||
import Outline from './Outline.js';
|
||||
import Page from './Page.js';
|
||||
import Thumbnail from './Thumbnail.js';
|
||||
|
||||
import useDocumentContext from './shared/hooks/useDocumentContext.js';
|
||||
import useOutlineContext from './shared/hooks/useOutlineContext.js';
|
||||
import usePageContext from './shared/hooks/usePageContext.js';
|
||||
|
||||
import PasswordResponses from './PasswordResponses.js';
|
||||
|
||||
export type { DocumentProps } from './Document.js';
|
||||
export type { OutlineProps } from './Outline.js';
|
||||
export type { PageProps } from './Page.js';
|
||||
export type { ThumbnailProps } from './Thumbnail.js';
|
||||
|
||||
import { displayWorkerWarning } from './shared/utils.js';
|
||||
|
||||
displayWorkerWarning();
|
||||
|
||||
pdfjs.GlobalWorkerOptions.workerSrc = 'pdf.worker.mjs';
|
||||
|
||||
export {
|
||||
pdfjs,
|
||||
Document,
|
||||
Outline,
|
||||
Page,
|
||||
Thumbnail,
|
||||
useDocumentContext,
|
||||
useOutlineContext,
|
||||
usePageContext,
|
||||
PasswordResponses,
|
||||
};
|
||||
@@ -0,0 +1,2 @@
|
||||
// XXX remove in v8 or beyond
|
||||
module.exports = require('./index.js')
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = deprecationWarning;
|
||||
const warnings = new Set();
|
||||
function deprecationWarning(oldName, newName, prefix = "") {
|
||||
if (warnings.has(oldName)) return;
|
||||
warnings.add(oldName);
|
||||
const {
|
||||
internal,
|
||||
trace
|
||||
} = captureShortStackTrace(1, 2);
|
||||
if (internal) {
|
||||
return;
|
||||
}
|
||||
console.warn(`${prefix}\`${oldName}\` has been deprecated, please migrate to \`${newName}\`\n${trace}`);
|
||||
}
|
||||
function captureShortStackTrace(skip, length) {
|
||||
const {
|
||||
stackTraceLimit,
|
||||
prepareStackTrace
|
||||
} = Error;
|
||||
let stackTrace;
|
||||
Error.stackTraceLimit = 1 + skip + length;
|
||||
Error.prepareStackTrace = function (err, stack) {
|
||||
stackTrace = stack;
|
||||
};
|
||||
new Error().stack;
|
||||
Error.stackTraceLimit = stackTraceLimit;
|
||||
Error.prepareStackTrace = prepareStackTrace;
|
||||
if (!stackTrace) return {
|
||||
internal: false,
|
||||
trace: ""
|
||||
};
|
||||
const shortStackTrace = stackTrace.slice(1 + skip, 1 + skip + length);
|
||||
return {
|
||||
internal: /[\\/]@babel[\\/]/.test(shortStackTrace[1].getFileName()),
|
||||
trace: shortStackTrace.map(frame => ` at ${frame}`).join("\n")
|
||||
};
|
||||
}
|
||||
|
||||
//# sourceMappingURL=deprecationWarning.js.map
|
||||
@@ -0,0 +1,5 @@
|
||||
import { _ as _default } from './colors-b_6i0Oi7.js';
|
||||
|
||||
|
||||
|
||||
export { _default as default };
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"E F A B","8":"K D mC"},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 rC","8":"nC LC qC"},D:{"1":"0 1 2 3 4 5 6 7 8 9 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","8":"J"},E:{"1":"PB 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","8":"J sC SC"},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 7C FC kC 8C GC","8":"F 4C 5C 6C"},G:{"1":"E 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","2":"SC"},H:{"2":"WD"},I:{"1":"LC J I YD ZD aD lC bD cD","2":"XD"},J:{"1":"D A"},K:{"1":"B C H FC kC GC","8":"A"},L:{"1":"I"},M:{"1":"EC"},N:{"1":"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:1,C:"Hashchange event",D:true};
|
||||
@@ -0,0 +1,62 @@
|
||||
/**
|
||||
* @fileoverview Define the cursor which iterates tokens only.
|
||||
* @author Toru Nagashima
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Requirements
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
const Cursor = require("./cursor");
|
||||
const { getFirstIndex, getLastIndex } = require("./utils");
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Exports
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* The cursor which iterates tokens only.
|
||||
*/
|
||||
module.exports = class ForwardTokenCursor extends Cursor {
|
||||
/**
|
||||
* Initializes this cursor.
|
||||
* @param {Token[]} tokens The array of tokens.
|
||||
* @param {Comment[]} comments The array of comments.
|
||||
* @param {Object} indexMap The map from locations to indices in `tokens`.
|
||||
* @param {number} startLoc The start location of the iteration range.
|
||||
* @param {number} endLoc The end location of the iteration range.
|
||||
*/
|
||||
constructor(tokens, comments, indexMap, startLoc, endLoc) {
|
||||
super();
|
||||
this.tokens = tokens;
|
||||
this.index = getFirstIndex(tokens, indexMap, startLoc);
|
||||
this.indexEnd = getLastIndex(tokens, indexMap, endLoc);
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
moveNext() {
|
||||
if (this.index <= this.indexEnd) {
|
||||
this.current = this.tokens[this.index];
|
||||
this.index += 1;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Shorthand for performance.
|
||||
*
|
||||
*/
|
||||
|
||||
/** @inheritdoc */
|
||||
getOneToken() {
|
||||
return this.index <= this.indexEnd ? this.tokens[this.index] : null;
|
||||
}
|
||||
|
||||
/** @inheritdoc */
|
||||
getAllTokens() {
|
||||
return this.tokens.slice(this.index, this.indexEnd + 1);
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={C:{"60":0.0193,"64":0.00483,"68":0.00483,"69":0.00483,"71":0.00483,"72":0.00483,"73":0.00483,"75":0.00483,"76":0.00483,"77":0.00483,"78":0.01448,"79":0.00483,"80":0.00483,"81":0.00483,"82":0.00483,"83":0.00483,"85":0.00965,"88":0.00483,"102":0.00483,"103":0.00483,"110":0.16888,"115":0.1737,"120":0.00483,"121":0.00483,"123":0.00483,"127":0.00965,"128":0.85885,"133":0.02895,"134":0.11098,"135":0.37635,"136":0.68033,"137":0.00483,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 61 62 63 65 66 67 70 74 84 86 87 89 90 91 92 93 94 95 96 97 98 99 100 101 104 105 106 107 108 109 111 112 113 114 116 117 118 119 122 124 125 126 129 130 131 132 138 139 140 3.5 3.6"},D:{"45":5.37988,"49":0.00483,"57":0.00483,"59":0.00483,"68":0.04825,"69":0.02413,"70":0.03378,"71":0.03378,"72":0.04825,"73":0.01448,"74":0.0386,"75":0.0386,"76":0.02895,"77":0.02413,"78":0.06273,"79":0.06755,"80":0.14475,"81":0.04825,"83":0.1158,"84":0.03378,"85":0.0579,"86":0.29433,"87":0.07238,"88":0.06755,"89":0.04343,"90":0.0579,"91":0.0193,"92":0.00483,"94":0.00483,"95":0.00483,"98":0.00483,"99":0.0193,"100":0.00483,"101":0.00965,"102":0.05308,"103":0.01448,"105":0.00965,"106":0.09168,"107":0.08685,"108":0.07238,"109":0.26055,"110":0.0193,"111":0.01448,"112":0.15923,"113":0.00483,"114":0.02413,"115":0.0193,"116":1.2159,"117":0.01448,"118":0.76235,"119":0.0386,"120":0.06273,"121":8.92625,"122":0.0579,"123":0.09168,"124":0.0965,"125":0.0772,"126":0.1544,"127":0.2123,"128":0.0772,"129":0.21713,"130":3.21345,"131":0.93605,"132":0.66585,"133":2.97703,"134":5.80448,"135":0.8685,_:"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 46 47 48 50 51 52 53 54 55 56 58 60 61 62 63 64 65 66 67 93 96 97 104 136 137 138"},F:{"46":0.00483,"49":0.00483,"52":0.00483,"53":0.01448,"54":0.0193,"55":0.01448,"56":0.00483,"60":0.00483,"63":0.00483,"65":0.00483,"67":0.00483,"68":0.00483,"70":0.00483,"73":0.00483,"74":0.00483,"87":0.0193,"88":0.01448,"102":0.00483,"107":0.00483,"108":0.00483,"109":0.00483,"114":0.00965,"115":0.00483,"116":0.20265,"117":0.37153,_:"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 50 51 57 58 62 64 66 69 71 72 75 76 77 78 79 80 81 82 83 84 85 86 89 90 91 92 93 94 95 96 97 98 99 100 101 103 104 105 106 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:{"14":0.00483,"15":0.00483,"18":0.01448,"79":0.02413,"80":0.05308,"81":0.04343,"83":0.05308,"84":0.03378,"85":0.02413,"86":0.04343,"87":0.02895,"88":0.0193,"89":0.03378,"90":0.02413,"91":0.06273,"92":0.00965,"100":0.00483,"105":0.00483,"106":0.11098,"108":0.00483,"109":0.13028,"119":0.00483,"120":0.00483,"122":0.00965,"124":0.00483,"126":0.00483,"127":0.00483,"129":0.00483,"130":0.0965,"131":0.1158,"132":0.01448,"133":0.68515,"134":2.09405,_:"12 13 16 17 93 94 95 96 97 98 99 101 102 103 104 107 110 111 112 113 114 115 116 117 118 121 123 125 128"},E:{"14":0.00483,_:"0 4 5 6 7 8 9 10 11 12 13 15 3.1 3.2 6.1 7.1 10.1 11.1 15.4 16.1 16.4","5.1":0.01448,"9.1":0.17853,"12.1":0.04343,"13.1":0.01448,"14.1":0.00483,"15.1":0.01448,"15.2-15.3":0.02895,"15.5":0.00965,"15.6":0.02413,"16.0":0.00483,"16.2":0.02895,"16.3":0.04343,"16.5":0.15923,"16.6":0.0772,"17.0":0.0193,"17.1":0.0772,"17.2":0.00483,"17.3":0.00965,"17.4":0.01448,"17.5":0.0386,"17.6":0.2316,"18.0":0.00965,"18.1":0.08203,"18.2":0.02413,"18.3":0.6562,"18.4":0.00483},G:{"8":0,"3.2":0,"4.0-4.1":0,"4.2-4.3":0.00192,"5.0-5.1":0,"6.0-6.1":0.00575,"7.0-7.1":0.00383,"8.1-8.4":0,"9.0-9.2":0.00287,"9.3":0.01341,"10.0-10.2":0.00096,"10.3":0.02203,"11.0-11.2":0.10154,"11.3-11.4":0.00671,"12.0-12.1":0.00383,"12.2-12.5":0.09483,"13.0-13.1":0.00192,"13.2":0.00287,"13.3":0.00383,"13.4-13.7":0.01341,"14.0-14.4":0.03353,"14.5-14.8":0.04023,"15.0-15.1":0.02203,"15.2-15.3":0.02203,"15.4":0.02682,"15.5":0.03065,"15.6-15.8":0.37741,"16.0":0.05364,"16.1":0.11016,"16.2":0.05747,"16.3":0.09962,"16.4":0.02203,"16.5":0.04119,"16.6-16.7":0.44734,"17.0":0.02682,"17.1":0.04789,"17.2":0.0364,"17.3":0.05077,"17.4":0.10154,"17.5":0.22606,"17.6-17.7":0.65616,"18.0":0.18392,"18.1":0.60156,"18.2":0.26917,"18.3":5.6257,"18.4":0.08334},P:{"20":0.01029,"21":0.01029,"22":0.06172,"23":0.10287,"24":0.03086,"25":0.03086,"26":0.04115,"27":2.1603,_:"4 5.0-5.4 6.2-6.4 8.2 9.2 10.1 12.0 14.0 16.0 17.0 18.0 19.0","7.2-7.4":0.04115,"11.1-11.2":0.01029,"13.0":0.02057,"15.0":0.01029},I:{"0":0.04131,"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":0.74003,_:"10 11 12 11.1 11.5 12.1"},A:{"11":0.04343,_:"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.9108},Q:{"14.9":0.06728},O:{"0":0.85905},H:{"0":0},L:{"0":39.96948}};
|
||||
Binary file not shown.
@@ -0,0 +1,51 @@
|
||||
import { SearchSchemaInput } from './route.cjs';
|
||||
export interface StandardSchemaValidatorProps<TInput, TOutput> {
|
||||
readonly types?: StandardSchemaValidatorTypes<TInput, TOutput> | undefined;
|
||||
readonly validate: AnyStandardSchemaValidate;
|
||||
}
|
||||
export interface StandardSchemaValidator<TInput, TOutput> {
|
||||
readonly '~standard': StandardSchemaValidatorProps<TInput, TOutput>;
|
||||
}
|
||||
export type AnyStandardSchemaValidator = StandardSchemaValidator<any, any>;
|
||||
export interface StandardSchemaValidatorTypes<TInput, TOutput> {
|
||||
readonly input: TInput;
|
||||
readonly output: TOutput;
|
||||
}
|
||||
export interface AnyStandardSchemaValidateSuccess {
|
||||
readonly value: any;
|
||||
readonly issues?: undefined;
|
||||
}
|
||||
export interface AnyStandardSchemaValidateFailure {
|
||||
readonly issues: ReadonlyArray<AnyStandardSchemaValidateIssue>;
|
||||
}
|
||||
export interface AnyStandardSchemaValidateIssue {
|
||||
readonly message: string;
|
||||
}
|
||||
export interface AnyStandardSchemaValidateInput {
|
||||
readonly value: any;
|
||||
}
|
||||
export type AnyStandardSchemaValidate = (value: unknown) => (AnyStandardSchemaValidateSuccess | AnyStandardSchemaValidateFailure) | Promise<AnyStandardSchemaValidateSuccess | AnyStandardSchemaValidateFailure>;
|
||||
export interface ValidatorObj<TInput, TOutput> {
|
||||
parse: ValidatorFn<TInput, TOutput>;
|
||||
}
|
||||
export type AnyValidatorObj = ValidatorObj<any, any>;
|
||||
export interface ValidatorAdapter<TInput, TOutput> {
|
||||
types: {
|
||||
input: TInput;
|
||||
output: TOutput;
|
||||
};
|
||||
parse: (input: unknown) => TOutput;
|
||||
}
|
||||
export type AnyValidatorAdapter = ValidatorAdapter<any, any>;
|
||||
export type AnyValidatorFn = ValidatorFn<any, any>;
|
||||
export type ValidatorFn<TInput, TOutput> = (input: TInput) => TOutput;
|
||||
export type Validator<TInput, TOutput> = ValidatorObj<TInput, TOutput> | ValidatorFn<TInput, TOutput> | ValidatorAdapter<TInput, TOutput> | StandardSchemaValidator<TInput, TOutput> | undefined;
|
||||
export type AnyValidator = Validator<any, any>;
|
||||
export type AnySchema = {};
|
||||
export type DefaultValidator = Validator<Record<string, unknown>, AnySchema>;
|
||||
export type ResolveSearchValidatorInputFn<TValidator> = TValidator extends (input: infer TSchemaInput) => any ? TSchemaInput extends SearchSchemaInput ? Omit<TSchemaInput, keyof SearchSchemaInput> : ResolveValidatorOutputFn<TValidator> : AnySchema;
|
||||
export type ResolveSearchValidatorInput<TValidator> = TValidator extends AnyStandardSchemaValidator ? NonNullable<TValidator['~standard']['types']>['input'] : TValidator extends AnyValidatorAdapter ? TValidator['types']['input'] : TValidator extends AnyValidatorObj ? ResolveSearchValidatorInputFn<TValidator['parse']> : ResolveSearchValidatorInputFn<TValidator>;
|
||||
export type ResolveValidatorInputFn<TValidator> = TValidator extends (input: infer TInput) => any ? TInput : undefined;
|
||||
export type ResolveValidatorInput<TValidator> = TValidator extends AnyStandardSchemaValidator ? NonNullable<TValidator['~standard']['types']>['input'] : TValidator extends AnyValidatorAdapter ? TValidator['types']['input'] : TValidator extends AnyValidatorObj ? ResolveValidatorInputFn<TValidator['parse']> : ResolveValidatorInputFn<TValidator>;
|
||||
export type ResolveValidatorOutputFn<TValidator> = TValidator extends (...args: any) => infer TSchema ? TSchema : AnySchema;
|
||||
export type ResolveValidatorOutput<TValidator> = unknown extends TValidator ? TValidator : TValidator extends AnyStandardSchemaValidator ? NonNullable<TValidator['~standard']['types']>['output'] : TValidator extends AnyValidatorAdapter ? TValidator['types']['output'] : TValidator extends AnyValidatorObj ? ResolveValidatorOutputFn<TValidator['parse']> : ResolveValidatorOutputFn<TValidator>;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
# Installation
|
||||
> `npm install --save @types/estree`
|
||||
|
||||
# Summary
|
||||
This package contains type definitions for estree (https://github.com/estree/estree).
|
||||
|
||||
# Details
|
||||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/estree.
|
||||
|
||||
### Additional Details
|
||||
* Last updated: Mon, 24 Mar 2025 07:34:10 GMT
|
||||
* Dependencies: none
|
||||
|
||||
# Credits
|
||||
These definitions were written by [RReverser](https://github.com/RReverser).
|
||||
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"name": "@eslint/config-array",
|
||||
"version": "0.19.2",
|
||||
"description": "General purpose glob-based configuration matching.",
|
||||
"author": "Nicholas C. Zakas",
|
||||
"type": "module",
|
||||
"main": "dist/esm/index.js",
|
||||
"types": "dist/esm/index.d.ts",
|
||||
"exports": {
|
||||
"require": {
|
||||
"types": "./dist/cjs/index.d.cts",
|
||||
"default": "./dist/cjs/index.cjs"
|
||||
},
|
||||
"import": {
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"default": "./dist/esm/index.js"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/eslint/rewrite.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/eslint/rewrite/issues"
|
||||
},
|
||||
"homepage": "https://github.com/eslint/rewrite#readme",
|
||||
"scripts": {
|
||||
"build:dedupe-types": "node ../../tools/dedupe-types.js dist/cjs/index.cjs dist/esm/index.js",
|
||||
"build:cts": "node ../../tools/build-cts.js dist/esm/index.d.ts dist/cjs/index.d.cts",
|
||||
"build:std__path": "rollup -c rollup.std__path-config.js && node fix-std__path-imports",
|
||||
"build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts && npm run build:std__path",
|
||||
"test:jsr": "npx jsr@latest publish --dry-run",
|
||||
"pretest": "npm run build",
|
||||
"test": "mocha tests/",
|
||||
"test:coverage": "c8 npm test"
|
||||
},
|
||||
"keywords": [
|
||||
"configuration",
|
||||
"configarray",
|
||||
"config file"
|
||||
],
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@eslint/object-schema": "^2.1.6",
|
||||
"debug": "^4.3.1",
|
||||
"minimatch": "^3.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jsr/std__path": "^1.0.4",
|
||||
"@types/minimatch": "^3.0.5",
|
||||
"c8": "^9.1.0",
|
||||
"mocha": "^10.4.0",
|
||||
"rollup": "^4.16.2",
|
||||
"rollup-plugin-copy": "^3.5.0",
|
||||
"typescript": "^5.4.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"names":["_assertClassBrand","require","_classStaticPrivateMethodGet","receiver","classConstructor","method","assertClassBrand"],"sources":["../../src/helpers/classStaticPrivateMethodGet.ts"],"sourcesContent":["/* @minVersion 7.3.2 */\n\nimport assertClassBrand from \"./assertClassBrand.ts\";\nexport default function _classStaticPrivateMethodGet<T extends Function>(\n receiver: Function,\n classConstructor: Function,\n method: T,\n) {\n assertClassBrand(classConstructor, receiver);\n return method;\n}\n"],"mappings":";;;;;;AAEA,IAAAA,iBAAA,GAAAC,OAAA;AACe,SAASC,4BAA4BA,CAClDC,QAAkB,EAClBC,gBAA0B,EAC1BC,MAAS,EACT;EACA,IAAAC,yBAAgB,EAACF,gBAAgB,EAAED,QAAQ,CAAC;EAC5C,OAAOE,MAAM;AACf","ignoreList":[]}
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Tobias Koppers @sokra
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
/** @typedef {import("./Resolver")} Resolver */
|
||||
/** @typedef {import("./Resolver").ResolveStepHook} ResolveStepHook */
|
||||
|
||||
module.exports = class NextPlugin {
|
||||
/**
|
||||
* @param {string | ResolveStepHook} source source
|
||||
* @param {string | ResolveStepHook} target target
|
||||
*/
|
||||
constructor(source, target) {
|
||||
this.source = source;
|
||||
this.target = target;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Resolver} resolver the resolver
|
||||
* @returns {void}
|
||||
*/
|
||||
apply(resolver) {
|
||||
const target = resolver.ensureHook(this.target);
|
||||
resolver
|
||||
.getHook(this.source)
|
||||
.tapAsync("NextPlugin", (request, resolveContext, callback) => {
|
||||
resolver.doResolve(target, request, null, resolveContext, callback);
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user