update
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
const utils = require("./utils.cjs");
|
||||
function retainSearchParams(keys) {
|
||||
return ({ search, next }) => {
|
||||
const result = next(search);
|
||||
if (keys === true) {
|
||||
return { ...search, ...result };
|
||||
}
|
||||
keys.forEach((key) => {
|
||||
if (!(key in result)) {
|
||||
result[key] = search[key];
|
||||
}
|
||||
});
|
||||
return result;
|
||||
};
|
||||
}
|
||||
function stripSearchParams(input) {
|
||||
return ({ search, next }) => {
|
||||
if (input === true) {
|
||||
return {};
|
||||
}
|
||||
const result = next(search);
|
||||
if (Array.isArray(input)) {
|
||||
input.forEach((key) => {
|
||||
delete result[key];
|
||||
});
|
||||
} else {
|
||||
Object.entries(input).forEach(
|
||||
([key, value]) => {
|
||||
if (utils.deepEqual(result[key], value)) {
|
||||
delete result[key];
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
}
|
||||
exports.retainSearchParams = retainSearchParams;
|
||||
exports.stripSearchParams = stripSearchParams;
|
||||
//# sourceMappingURL=searchMiddleware.cjs.map
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 Evan Wallace
|
||||
|
||||
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,67 @@
|
||||
{
|
||||
"name": "prebuild-install",
|
||||
"version": "7.1.3",
|
||||
"description": "A command line tool to easily install prebuilt binaries for multiple version of node/iojs on a specific platform",
|
||||
"scripts": {
|
||||
"test": "standard && hallmark && tape test/*-test.js",
|
||||
"hallmark": "hallmark --fix"
|
||||
},
|
||||
"keywords": [
|
||||
"prebuilt",
|
||||
"binaries",
|
||||
"native",
|
||||
"addon",
|
||||
"module",
|
||||
"c",
|
||||
"c++",
|
||||
"bindings",
|
||||
"devops",
|
||||
"napi"
|
||||
],
|
||||
"dependencies": {
|
||||
"detect-libc": "^2.0.0",
|
||||
"expand-template": "^2.0.3",
|
||||
"github-from-package": "0.0.0",
|
||||
"minimist": "^1.2.3",
|
||||
"mkdirp-classic": "^0.5.3",
|
||||
"napi-build-utils": "^2.0.0",
|
||||
"node-abi": "^3.3.0",
|
||||
"pump": "^3.0.0",
|
||||
"rc": "^1.2.7",
|
||||
"simple-get": "^4.0.0",
|
||||
"tar-fs": "^2.0.0",
|
||||
"tunnel-agent": "^0.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"a-native-module": "^1.0.0",
|
||||
"hallmark": "^4.0.0",
|
||||
"nock": "^10.0.6",
|
||||
"rimraf": "^2.5.2",
|
||||
"standard": "^16.0.4",
|
||||
"tape": "^5.3.1",
|
||||
"tempy": "0.2.1"
|
||||
},
|
||||
"bin": "./bin.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/prebuild/prebuild-install.git"
|
||||
},
|
||||
"author": "Mathias Buus (@mafintosh)",
|
||||
"contributors": [
|
||||
"Julian Gruber <julian@juliangruber.com> (https://github.com/juliangruber)",
|
||||
"Brett Lawson <brett19@gmail.com> (https://github.com/brett19)",
|
||||
"Pieter Hintjens <ph@imatix.com> (https://github.com/hintjens)",
|
||||
"Lars-Magnus Skog <ralphtheninja@riseup.net> (https://github.com/ralphtheninja)",
|
||||
"Jesús Leganés Combarro <piranna@gmail.com> (https://github.com/piranna)",
|
||||
"Mathias Küsel <mathiask@hotmail.de> (https://github.com/mathiask88)",
|
||||
"Lukas Geiger <lukas.geiger94@gmail.com> (https://github.com/lgeiger)"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/prebuild/prebuild-install/issues"
|
||||
},
|
||||
"homepage": "https://github.com/prebuild/prebuild-install",
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
# path-exists [](https://travis-ci.org/sindresorhus/path-exists)
|
||||
|
||||
> Check if a path exists
|
||||
|
||||
NOTE: `fs.existsSync` has been un-deprecated in Node.js since 6.8.0. If you only need to check synchronously, this module is not needed.
|
||||
|
||||
While [`fs.exists()`](https://nodejs.org/api/fs.html#fs_fs_exists_path_callback) is being [deprecated](https://github.com/iojs/io.js/issues/103), there's still a genuine use-case of being able to check if a path exists for other purposes than doing IO with it.
|
||||
|
||||
Never use this before handling a file though:
|
||||
|
||||
> In particular, checking if a file exists before opening it is an anti-pattern that leaves you vulnerable to race conditions: another process may remove the file between the calls to `fs.exists()` and `fs.open()`. Just open the file and handle the error when it's not there.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install path-exists
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
// foo.js
|
||||
const pathExists = require('path-exists');
|
||||
|
||||
(async () => {
|
||||
console.log(await pathExists('foo.js'));
|
||||
//=> true
|
||||
})();
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### pathExists(path)
|
||||
|
||||
Returns a `Promise<boolean>` of whether the path exists.
|
||||
|
||||
### pathExists.sync(path)
|
||||
|
||||
Returns a `boolean` of whether the path exists.
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [path-exists-cli](https://github.com/sindresorhus/path-exists-cli) - CLI for this module
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"1":"F A B","2":"K D E 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 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","2":"nC LC","132":"J PB K D E F A B C L M G N O P QB qC rC"},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 6C 7C FC kC 8C GC","2":"F","4":"4C 5C"},G:{"260":"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:{"1":"LC J I ZD aD lC bD cD","2":"XD YD"},J:{"1":"D A"},K:{"1":"B C H FC kC GC","2":"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:"Audio element",D:true};
|
||||
@@ -0,0 +1,12 @@
|
||||
import { PDF_ROLE_TO_HTML_ROLE } from './constants.js';
|
||||
import type { StructTreeContent, StructTreeNode } from 'pdfjs-dist/types/src/display/api.js';
|
||||
import type { StructTreeNodeWithExtraAttributes } from './types.js';
|
||||
type PdfRole = keyof typeof PDF_ROLE_TO_HTML_ROLE;
|
||||
type Attributes = React.HTMLAttributes<HTMLElement>;
|
||||
export declare function isPdfRole(role: string): role is PdfRole;
|
||||
export declare function isStructTreeNode(node: StructTreeNode | StructTreeContent): node is StructTreeNode;
|
||||
export declare function isStructTreeNodeWithOnlyContentChild(node: StructTreeNode | StructTreeContent): boolean;
|
||||
export declare function getRoleAttributes(node: StructTreeNode | StructTreeContent): Attributes;
|
||||
export declare function getBaseAttributes(node: StructTreeNodeWithExtraAttributes | StructTreeContent): Attributes;
|
||||
export declare function getAttributes(node: StructTreeNodeWithExtraAttributes | StructTreeContent): Attributes | null;
|
||||
export {};
|
||||
@@ -0,0 +1,215 @@
|
||||
/*
|
||||
* WARNING: This file is autogenerated using the tools/update-eslint-all.js
|
||||
* script. Do not edit manually.
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
* IMPORTANT!
|
||||
*
|
||||
* We cannot add a "name" property to this object because it's still used in eslintrc
|
||||
* which doesn't support the "name" property. If we add a "name" property, it will
|
||||
* cause an error.
|
||||
*/
|
||||
|
||||
module.exports = Object.freeze({
|
||||
"rules": {
|
||||
"accessor-pairs": "error",
|
||||
"array-callback-return": "error",
|
||||
"arrow-body-style": "error",
|
||||
"block-scoped-var": "error",
|
||||
"camelcase": "error",
|
||||
"capitalized-comments": "error",
|
||||
"class-methods-use-this": "error",
|
||||
"complexity": "error",
|
||||
"consistent-return": "error",
|
||||
"consistent-this": "error",
|
||||
"constructor-super": "error",
|
||||
"curly": "error",
|
||||
"default-case": "error",
|
||||
"default-case-last": "error",
|
||||
"default-param-last": "error",
|
||||
"dot-notation": "error",
|
||||
"eqeqeq": "error",
|
||||
"for-direction": "error",
|
||||
"func-name-matching": "error",
|
||||
"func-names": "error",
|
||||
"func-style": "error",
|
||||
"getter-return": "error",
|
||||
"grouped-accessor-pairs": "error",
|
||||
"guard-for-in": "error",
|
||||
"id-denylist": "error",
|
||||
"id-length": "error",
|
||||
"id-match": "error",
|
||||
"init-declarations": "error",
|
||||
"logical-assignment-operators": "error",
|
||||
"max-classes-per-file": "error",
|
||||
"max-depth": "error",
|
||||
"max-lines": "error",
|
||||
"max-lines-per-function": "error",
|
||||
"max-nested-callbacks": "error",
|
||||
"max-params": "error",
|
||||
"max-statements": "error",
|
||||
"new-cap": "error",
|
||||
"no-alert": "error",
|
||||
"no-array-constructor": "error",
|
||||
"no-async-promise-executor": "error",
|
||||
"no-await-in-loop": "error",
|
||||
"no-bitwise": "error",
|
||||
"no-caller": "error",
|
||||
"no-case-declarations": "error",
|
||||
"no-class-assign": "error",
|
||||
"no-compare-neg-zero": "error",
|
||||
"no-cond-assign": "error",
|
||||
"no-console": "error",
|
||||
"no-const-assign": "error",
|
||||
"no-constant-binary-expression": "error",
|
||||
"no-constant-condition": "error",
|
||||
"no-constructor-return": "error",
|
||||
"no-continue": "error",
|
||||
"no-control-regex": "error",
|
||||
"no-debugger": "error",
|
||||
"no-delete-var": "error",
|
||||
"no-div-regex": "error",
|
||||
"no-dupe-args": "error",
|
||||
"no-dupe-class-members": "error",
|
||||
"no-dupe-else-if": "error",
|
||||
"no-dupe-keys": "error",
|
||||
"no-duplicate-case": "error",
|
||||
"no-duplicate-imports": "error",
|
||||
"no-else-return": "error",
|
||||
"no-empty": "error",
|
||||
"no-empty-character-class": "error",
|
||||
"no-empty-function": "error",
|
||||
"no-empty-pattern": "error",
|
||||
"no-empty-static-block": "error",
|
||||
"no-eq-null": "error",
|
||||
"no-eval": "error",
|
||||
"no-ex-assign": "error",
|
||||
"no-extend-native": "error",
|
||||
"no-extra-bind": "error",
|
||||
"no-extra-boolean-cast": "error",
|
||||
"no-extra-label": "error",
|
||||
"no-fallthrough": "error",
|
||||
"no-func-assign": "error",
|
||||
"no-global-assign": "error",
|
||||
"no-implicit-coercion": "error",
|
||||
"no-implicit-globals": "error",
|
||||
"no-implied-eval": "error",
|
||||
"no-import-assign": "error",
|
||||
"no-inline-comments": "error",
|
||||
"no-inner-declarations": "error",
|
||||
"no-invalid-regexp": "error",
|
||||
"no-invalid-this": "error",
|
||||
"no-irregular-whitespace": "error",
|
||||
"no-iterator": "error",
|
||||
"no-label-var": "error",
|
||||
"no-labels": "error",
|
||||
"no-lone-blocks": "error",
|
||||
"no-lonely-if": "error",
|
||||
"no-loop-func": "error",
|
||||
"no-loss-of-precision": "error",
|
||||
"no-magic-numbers": "error",
|
||||
"no-misleading-character-class": "error",
|
||||
"no-multi-assign": "error",
|
||||
"no-multi-str": "error",
|
||||
"no-negated-condition": "error",
|
||||
"no-nested-ternary": "error",
|
||||
"no-new": "error",
|
||||
"no-new-func": "error",
|
||||
"no-new-native-nonconstructor": "error",
|
||||
"no-new-wrappers": "error",
|
||||
"no-nonoctal-decimal-escape": "error",
|
||||
"no-obj-calls": "error",
|
||||
"no-object-constructor": "error",
|
||||
"no-octal": "error",
|
||||
"no-octal-escape": "error",
|
||||
"no-param-reassign": "error",
|
||||
"no-plusplus": "error",
|
||||
"no-promise-executor-return": "error",
|
||||
"no-proto": "error",
|
||||
"no-prototype-builtins": "error",
|
||||
"no-redeclare": "error",
|
||||
"no-regex-spaces": "error",
|
||||
"no-restricted-exports": "error",
|
||||
"no-restricted-globals": "error",
|
||||
"no-restricted-imports": "error",
|
||||
"no-restricted-properties": "error",
|
||||
"no-restricted-syntax": "error",
|
||||
"no-return-assign": "error",
|
||||
"no-script-url": "error",
|
||||
"no-self-assign": "error",
|
||||
"no-self-compare": "error",
|
||||
"no-sequences": "error",
|
||||
"no-setter-return": "error",
|
||||
"no-shadow": "error",
|
||||
"no-shadow-restricted-names": "error",
|
||||
"no-sparse-arrays": "error",
|
||||
"no-template-curly-in-string": "error",
|
||||
"no-ternary": "error",
|
||||
"no-this-before-super": "error",
|
||||
"no-throw-literal": "error",
|
||||
"no-undef": "error",
|
||||
"no-undef-init": "error",
|
||||
"no-undefined": "error",
|
||||
"no-underscore-dangle": "error",
|
||||
"no-unexpected-multiline": "error",
|
||||
"no-unmodified-loop-condition": "error",
|
||||
"no-unneeded-ternary": "error",
|
||||
"no-unreachable": "error",
|
||||
"no-unreachable-loop": "error",
|
||||
"no-unsafe-finally": "error",
|
||||
"no-unsafe-negation": "error",
|
||||
"no-unsafe-optional-chaining": "error",
|
||||
"no-unused-expressions": "error",
|
||||
"no-unused-labels": "error",
|
||||
"no-unused-private-class-members": "error",
|
||||
"no-unused-vars": "error",
|
||||
"no-use-before-define": "error",
|
||||
"no-useless-assignment": "error",
|
||||
"no-useless-backreference": "error",
|
||||
"no-useless-call": "error",
|
||||
"no-useless-catch": "error",
|
||||
"no-useless-computed-key": "error",
|
||||
"no-useless-concat": "error",
|
||||
"no-useless-constructor": "error",
|
||||
"no-useless-escape": "error",
|
||||
"no-useless-rename": "error",
|
||||
"no-useless-return": "error",
|
||||
"no-var": "error",
|
||||
"no-void": "error",
|
||||
"no-warning-comments": "error",
|
||||
"no-with": "error",
|
||||
"object-shorthand": "error",
|
||||
"one-var": "error",
|
||||
"operator-assignment": "error",
|
||||
"prefer-arrow-callback": "error",
|
||||
"prefer-const": "error",
|
||||
"prefer-destructuring": "error",
|
||||
"prefer-exponentiation-operator": "error",
|
||||
"prefer-named-capture-group": "error",
|
||||
"prefer-numeric-literals": "error",
|
||||
"prefer-object-has-own": "error",
|
||||
"prefer-object-spread": "error",
|
||||
"prefer-promise-reject-errors": "error",
|
||||
"prefer-regex-literals": "error",
|
||||
"prefer-rest-params": "error",
|
||||
"prefer-spread": "error",
|
||||
"prefer-template": "error",
|
||||
"radix": "error",
|
||||
"require-atomic-updates": "error",
|
||||
"require-await": "error",
|
||||
"require-unicode-regexp": "error",
|
||||
"require-yield": "error",
|
||||
"sort-imports": "error",
|
||||
"sort-keys": "error",
|
||||
"sort-vars": "error",
|
||||
"strict": "error",
|
||||
"symbol-description": "error",
|
||||
"unicode-bom": "error",
|
||||
"use-isnan": "error",
|
||||
"valid-typeof": "error",
|
||||
"vars-on-top": "error",
|
||||
"yoda": "error"
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"names":["_package","require","_configuration","_plugins"],"sources":["../../../src/config/files/index.ts"],"sourcesContent":["type indexBrowserType = typeof import(\"./index-browser\");\ntype indexType = typeof import(\"./index\");\n\n// Kind of gross, but essentially asserting that the exports of this module are the same as the\n// exports of index-browser, since this file may be replaced at bundle time with index-browser.\n({}) as any as indexBrowserType as indexType;\n\nexport { findPackageData } from \"./package.ts\";\n\nexport {\n findConfigUpwards,\n findRelativeConfig,\n findRootConfig,\n loadConfig,\n resolveShowConfigPath,\n ROOT_CONFIG_FILENAMES,\n} from \"./configuration.ts\";\nexport type {\n ConfigFile,\n IgnoreFile,\n RelativeConfig,\n FilePackageData,\n} from \"./types.ts\";\nexport {\n loadPlugin,\n loadPreset,\n resolvePlugin,\n resolvePreset,\n} from \"./plugins.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAcA,IAAAE,QAAA,GAAAF,OAAA;AAlBA,CAAC,CAAC,CAAC;AAA0C","ignoreList":[]}
|
||||
@@ -0,0 +1,31 @@
|
||||
# Turbo Stream <br> [](https://bundlejs.com/?q=turbo-stream)
|
||||
|
||||
A streaming data transport format that aims to support built-in features such as Promises, Dates, RegExps, Maps, Sets and more.
|
||||
|
||||
Decode runtime size: [](https://bundlejs.com/?q=turbo-stream&treeshake=%5B%7B+decode+%7D%5D)
|
||||
|
||||
## Shout Out!
|
||||
|
||||
Shout out to Rich Harris and his https://github.com/rich-harris/devalue project. Devalue has heavily influenced this project and portions
|
||||
of the code have been directly lifted from it. I highly recommend checking it out if you need something more cusomizable or without streaming support.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install turbo-stream
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import { decode, encode } from "turbo-stream";
|
||||
|
||||
const encodedStream = encode(Promise.resolve(42));
|
||||
const decoded = await decode(encodedStream);
|
||||
console.log(decoded.value); // a Promise
|
||||
console.log(await decoded.value); // 42
|
||||
await decoded.done; // wait for the stream to finish
|
||||
```
|
||||
|
||||
Stackblitz: https://stackblitz.com/edit/stackblitz-starters-2wm7dh?file=index.js
|
||||
React SSR Example: https://github.com/jacob-ebey/turbo-stream-react-example
|
||||
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = _toArray;
|
||||
var _arrayWithHoles = require("./arrayWithHoles.js");
|
||||
var _iterableToArray = require("./iterableToArray.js");
|
||||
var _unsupportedIterableToArray = require("./unsupportedIterableToArray.js");
|
||||
var _nonIterableRest = require("./nonIterableRest.js");
|
||||
function _toArray(arr) {
|
||||
return (0, _arrayWithHoles.default)(arr) || (0, _iterableToArray.default)(arr) || (0, _unsupportedIterableToArray.default)(arr) || (0, _nonIterableRest.default)();
|
||||
}
|
||||
|
||||
//# sourceMappingURL=toArray.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
module.exports={A:{A:{"2":"K D E F mC","420":"A B"},B:{"2":"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","420":"C L M G N O P"},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 9 J PB K D E F A B C L M 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","36":"G N O P","66":"1 2 3 4 5 6 7 8 QB RB SB TB UB VB WB XB"},E:{"2":"J PB K C L M G sC SC 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","33":"D E F A B uC vC wC TC"},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":"SC 9C lC AD BD 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","33":"E CD DD ED FD GD HD ID"},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:{"420":"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 Regions",D:true};
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "@tailwindcss/vite",
|
||||
"version": "4.1.2",
|
||||
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/tailwindlabs/tailwindcss.git",
|
||||
"directory": "packages/@tailwindcss-vite"
|
||||
},
|
||||
"bugs": "https://github.com/tailwindlabs/tailwindcss/issues",
|
||||
"homepage": "https://tailwindcss.com",
|
||||
"files": [
|
||||
"dist/"
|
||||
],
|
||||
"publishConfig": {
|
||||
"provenance": true,
|
||||
"access": "public"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"import": "./dist/index.mjs"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/oxide": "4.1.2",
|
||||
"@tailwindcss/node": "4.1.2",
|
||||
"tailwindcss": "4.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.14.8",
|
||||
"vite": "^6.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vite": "^5.2.0 || ^6"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsup-node",
|
||||
"dev": "pnpm run build -- --watch"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export type AnyUpdater = (prev: any) => any;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export interface ListenerValue<T> {
|
||||
prevVal: T;
|
||||
currentVal: T;
|
||||
}
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
export type Listener<T> = (value: ListenerValue<T>) => void;
|
||||
@@ -0,0 +1,3 @@
|
||||
# `@tailwindcss/oxide-linux-arm64-gnu`
|
||||
|
||||
This is the **aarch64-unknown-linux-gnu** binary for `@tailwindcss/oxide`
|
||||
@@ -0,0 +1,196 @@
|
||||
import { functionalUpdate } from "./utils.js";
|
||||
const storageKey = "tsr-scroll-restoration-v1_3";
|
||||
let sessionsStorage = false;
|
||||
try {
|
||||
sessionsStorage = typeof window !== "undefined" && typeof window.sessionStorage === "object";
|
||||
} catch {
|
||||
}
|
||||
const throttle = (fn, wait) => {
|
||||
let timeout;
|
||||
return (...args) => {
|
||||
if (!timeout) {
|
||||
timeout = setTimeout(() => {
|
||||
fn(...args);
|
||||
timeout = null;
|
||||
}, wait);
|
||||
}
|
||||
};
|
||||
};
|
||||
const scrollRestorationCache = sessionsStorage ? (() => {
|
||||
const state = JSON.parse(window.sessionStorage.getItem(storageKey) || "null") || {};
|
||||
return {
|
||||
state,
|
||||
// This setter is simply to make sure that we set the sessionStorage right
|
||||
// after the state is updated. It doesn't necessarily need to be a functional
|
||||
// update.
|
||||
set: (updater) => (scrollRestorationCache.state = functionalUpdate(updater, scrollRestorationCache.state) || scrollRestorationCache.state, window.sessionStorage.setItem(
|
||||
storageKey,
|
||||
JSON.stringify(scrollRestorationCache.state)
|
||||
))
|
||||
};
|
||||
})() : void 0;
|
||||
const defaultGetScrollRestorationKey = (location) => {
|
||||
return location.state.key || location.href;
|
||||
};
|
||||
function getCssSelector(el) {
|
||||
const path = [];
|
||||
let parent;
|
||||
while (parent = el.parentNode) {
|
||||
path.unshift(
|
||||
`${el.tagName}:nth-child(${[].indexOf.call(parent.children, el) + 1})`
|
||||
);
|
||||
el = parent;
|
||||
}
|
||||
return `${path.join(" > ")}`.toLowerCase();
|
||||
}
|
||||
let ignoreScroll = false;
|
||||
function restoreScroll(storageKey2, key, behavior, shouldScrollRestoration, scrollToTopSelectors) {
|
||||
var _a;
|
||||
let byKey;
|
||||
try {
|
||||
byKey = JSON.parse(sessionStorage.getItem(storageKey2) || "{}");
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
return;
|
||||
}
|
||||
const resolvedKey = key || ((_a = window.history.state) == null ? void 0 : _a.key);
|
||||
const elementEntries = byKey[resolvedKey];
|
||||
ignoreScroll = true;
|
||||
(() => {
|
||||
if (shouldScrollRestoration && elementEntries) {
|
||||
for (const elementSelector in elementEntries) {
|
||||
const entry = elementEntries[elementSelector];
|
||||
if (elementSelector === "window") {
|
||||
window.scrollTo({
|
||||
top: entry.scrollY,
|
||||
left: entry.scrollX,
|
||||
behavior
|
||||
});
|
||||
} else if (elementSelector) {
|
||||
const element = document.querySelector(elementSelector);
|
||||
if (element) {
|
||||
element.scrollLeft = entry.scrollX;
|
||||
element.scrollTop = entry.scrollY;
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
const hash = window.location.hash.split("#")[1];
|
||||
if (hash) {
|
||||
const hashScrollIntoViewOptions = (window.history.state || {}).__hashScrollIntoViewOptions ?? true;
|
||||
if (hashScrollIntoViewOptions) {
|
||||
const el = document.getElementById(hash);
|
||||
if (el) {
|
||||
el.scrollIntoView(hashScrollIntoViewOptions);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
[
|
||||
"window",
|
||||
...(scrollToTopSelectors == null ? void 0 : scrollToTopSelectors.filter((d) => d !== "window")) ?? []
|
||||
].forEach((selector) => {
|
||||
const element = selector === "window" ? window : document.querySelector(selector);
|
||||
if (element) {
|
||||
element.scrollTo({
|
||||
top: 0,
|
||||
left: 0,
|
||||
behavior
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
ignoreScroll = false;
|
||||
}
|
||||
function setupScrollRestoration(router, force) {
|
||||
const shouldScrollRestoration = force ?? router.options.scrollRestoration ?? false;
|
||||
if (shouldScrollRestoration) {
|
||||
router.isScrollRestoring = true;
|
||||
}
|
||||
if (typeof document === "undefined" || router.isScrollRestorationSetup) {
|
||||
return;
|
||||
}
|
||||
router.isScrollRestorationSetup = true;
|
||||
ignoreScroll = false;
|
||||
const getKey = router.options.getScrollRestorationKey || defaultGetScrollRestorationKey;
|
||||
window.history.scrollRestoration = "manual";
|
||||
const onScroll = (event) => {
|
||||
if (ignoreScroll || !router.isScrollRestoring) {
|
||||
return;
|
||||
}
|
||||
let elementSelector = "";
|
||||
if (event.target === document || event.target === window) {
|
||||
elementSelector = "window";
|
||||
} else {
|
||||
const attrId = event.target.getAttribute(
|
||||
"data-scroll-restoration-id"
|
||||
);
|
||||
if (attrId) {
|
||||
elementSelector = `[data-scroll-restoration-id="${attrId}"]`;
|
||||
} else {
|
||||
elementSelector = getCssSelector(event.target);
|
||||
}
|
||||
}
|
||||
const restoreKey = getKey(router.state.location);
|
||||
scrollRestorationCache.set((state) => {
|
||||
const keyEntry = state[restoreKey] = state[restoreKey] || {};
|
||||
const elementEntry = keyEntry[elementSelector] = keyEntry[elementSelector] || {};
|
||||
if (elementSelector === "window") {
|
||||
elementEntry.scrollX = window.scrollX || 0;
|
||||
elementEntry.scrollY = window.scrollY || 0;
|
||||
} else if (elementSelector) {
|
||||
const element = document.querySelector(elementSelector);
|
||||
if (element) {
|
||||
elementEntry.scrollX = element.scrollLeft || 0;
|
||||
elementEntry.scrollY = element.scrollTop || 0;
|
||||
}
|
||||
}
|
||||
return state;
|
||||
});
|
||||
};
|
||||
if (typeof document !== "undefined") {
|
||||
document.addEventListener("scroll", throttle(onScroll, 100), true);
|
||||
}
|
||||
router.subscribe("onRendered", (event) => {
|
||||
const cacheKey = getKey(event.toLocation);
|
||||
if (!router.resetNextScroll) {
|
||||
router.resetNextScroll = true;
|
||||
return;
|
||||
}
|
||||
restoreScroll(
|
||||
storageKey,
|
||||
cacheKey,
|
||||
router.options.scrollRestorationBehavior || void 0,
|
||||
router.isScrollRestoring || void 0,
|
||||
router.options.scrollToTopSelectors || void 0
|
||||
);
|
||||
if (router.isScrollRestoring) {
|
||||
scrollRestorationCache.set((state) => {
|
||||
state[cacheKey] = state[cacheKey] || {};
|
||||
return state;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
function handleHashScroll(router) {
|
||||
if (typeof document !== "undefined" && document.querySelector) {
|
||||
const hashScrollIntoViewOptions = router.state.location.state.__hashScrollIntoViewOptions ?? true;
|
||||
if (hashScrollIntoViewOptions && router.state.location.hash !== "") {
|
||||
const el = document.getElementById(router.state.location.hash);
|
||||
if (el) {
|
||||
el.scrollIntoView(hashScrollIntoViewOptions);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
export {
|
||||
defaultGetScrollRestorationKey,
|
||||
getCssSelector,
|
||||
handleHashScroll,
|
||||
restoreScroll,
|
||||
scrollRestorationCache,
|
||||
setupScrollRestoration,
|
||||
storageKey
|
||||
};
|
||||
//# sourceMappingURL=scroll-restoration.js.map
|
||||
Reference in New Issue
Block a user