Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
2
node_modules/html-url-attributes/index.d.ts
generated
vendored
Normal file
2
node_modules/html-url-attributes/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
export { urlAttributes } from "./lib/index.js";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/html-url-attributes/index.d.ts.map
generated
vendored
Normal file
1
node_modules/html-url-attributes/index.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
|
||||
33
node_modules/html-url-attributes/index.js
generated
vendored
Normal file
33
node_modules/html-url-attributes/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* Utility with info on URL attributes.
|
||||
*
|
||||
* ## What is this?
|
||||
*
|
||||
* This package contains info on attributes that have URLs as values.
|
||||
*
|
||||
* ## When should I use this?
|
||||
*
|
||||
* You can use this package any time you’re rewriting URLs.
|
||||
*
|
||||
* ## Use
|
||||
*
|
||||
* ```js
|
||||
* import {urlAttributes} from 'html-url-attributes'
|
||||
*
|
||||
* console.log(urlAttributes.formAction)
|
||||
* //=> ['button', 'input']
|
||||
* console.log(urlAttributes.href)
|
||||
* //=> ['a', 'area', 'base', 'link']
|
||||
* ```
|
||||
*
|
||||
* ## API
|
||||
*
|
||||
* ### `urlAttributes`
|
||||
*
|
||||
* HTML URL properties (`Record<string, Array<string> | null>`).
|
||||
*
|
||||
* Each key is a property name and each value is a list of tag names it applies
|
||||
* to or `null` if it applies to all elements.
|
||||
*/
|
||||
|
||||
export {urlAttributes} from './lib/index.js'
|
||||
10
node_modules/html-url-attributes/lib/index.d.ts
generated
vendored
Normal file
10
node_modules/html-url-attributes/lib/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
/**
|
||||
* HTML URL properties.
|
||||
*
|
||||
* Each key is a property name and each value is a list of tag names it applies
|
||||
* to or `null` if it applies to all elements.
|
||||
*
|
||||
* @type {Record<string, Array<string> | null>}
|
||||
*/
|
||||
export const urlAttributes: Record<string, Array<string> | null>;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/html-url-attributes/lib/index.d.ts.map
generated
vendored
Normal file
1
node_modules/html-url-attributes/lib/index.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,4BAFU,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAwB7C"}
|
||||
31
node_modules/html-url-attributes/lib/index.js
generated
vendored
Normal file
31
node_modules/html-url-attributes/lib/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/**
|
||||
* HTML URL properties.
|
||||
*
|
||||
* Each key is a property name and each value is a list of tag names it applies
|
||||
* to or `null` if it applies to all elements.
|
||||
*
|
||||
* @type {Record<string, Array<string> | null>}
|
||||
*/
|
||||
export const urlAttributes = {
|
||||
action: ['form'],
|
||||
cite: ['blockquote', 'del', 'ins', 'q'],
|
||||
data: ['object'],
|
||||
formAction: ['button', 'input'],
|
||||
href: ['a', 'area', 'base', 'link'],
|
||||
icon: ['menuitem'],
|
||||
itemId: null,
|
||||
manifest: ['html'],
|
||||
ping: ['a', 'area'],
|
||||
poster: ['video'],
|
||||
src: [
|
||||
'audio',
|
||||
'embed',
|
||||
'iframe',
|
||||
'img',
|
||||
'input',
|
||||
'script',
|
||||
'source',
|
||||
'track',
|
||||
'video'
|
||||
]
|
||||
}
|
||||
21
node_modules/html-url-attributes/license
generated
vendored
Normal file
21
node_modules/html-url-attributes/license
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
(The MIT License)
|
||||
|
||||
Copyright (c) Titus Wormer
|
||||
|
||||
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.
|
||||
45
node_modules/html-url-attributes/package.json
generated
vendored
Normal file
45
node_modules/html-url-attributes/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
"name": "html-url-attributes",
|
||||
"version": "3.0.1",
|
||||
"description": "Map of URL attributes in HTML",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"attribute",
|
||||
"attribute",
|
||||
"html",
|
||||
"property",
|
||||
"url"
|
||||
],
|
||||
"repository": "https://github.com/rehypejs/rehype-minify/tree/main/packages/html-url-attributes",
|
||||
"bugs": "https://github.com/rehypejs/rehype-minify/issues",
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
},
|
||||
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
||||
"contributors": [
|
||||
"Titus Wormer <tituswormer@gmail.com>"
|
||||
],
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"index.d.ts.map",
|
||||
"index.js",
|
||||
"lib/"
|
||||
],
|
||||
"scripts": {},
|
||||
"typeCoverage": {
|
||||
"atLeast": 100,
|
||||
"detail": true,
|
||||
"ignoreCatch": true,
|
||||
"strict": true
|
||||
},
|
||||
"xo": {
|
||||
"prettier": true,
|
||||
"rules": {
|
||||
"capitalized-comments": "off"
|
||||
}
|
||||
}
|
||||
}
|
||||
180
node_modules/html-url-attributes/readme.md
generated
vendored
Normal file
180
node_modules/html-url-attributes/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,180 @@
|
|||
<!--This file is generated-->
|
||||
|
||||
# html-url-attributes
|
||||
|
||||
[![Build][build-badge]][build]
|
||||
[![Coverage][coverage-badge]][coverage]
|
||||
[![Downloads][downloads-badge]][downloads]
|
||||
[![Size][size-badge]][size]
|
||||
[![Sponsors][funding-sponsors-badge]][funding]
|
||||
[![Backers][funding-backers-badge]][funding]
|
||||
[![Chat][chat-badge]][chat]
|
||||
|
||||
Utility with info on URL attributes.
|
||||
|
||||
## Contents
|
||||
|
||||
* [What is this?](#what-is-this)
|
||||
* [When should I use this?](#when-should-i-use-this)
|
||||
* [Install](#install)
|
||||
* [Use](#use)
|
||||
* [API](#api)
|
||||
* [`urlAttributes`](#urlattributes)
|
||||
* [Syntax](#syntax)
|
||||
* [Syntax tree](#syntax-tree)
|
||||
* [Types](#types)
|
||||
* [Compatibility](#compatibility)
|
||||
* [Security](#security)
|
||||
* [Contribute](#contribute)
|
||||
* [License](#license)
|
||||
|
||||
## What is this?
|
||||
|
||||
This package contains info on attributes that have URLs as values.
|
||||
|
||||
## When should I use this?
|
||||
|
||||
You can use this package any time you’re rewriting URLs.
|
||||
|
||||
## Install
|
||||
|
||||
This package is [ESM only][esm].
|
||||
In Node.js (version 16+), install with [npm][]:
|
||||
|
||||
```sh
|
||||
npm install html-url-attributes
|
||||
```
|
||||
|
||||
In Deno with [`esm.sh`][esm-sh]:
|
||||
|
||||
```js
|
||||
import {urlAttributes} from 'https://esm.sh/html-url-attributes@3'
|
||||
```
|
||||
|
||||
In browsers with [`esm.sh`][esm-sh]:
|
||||
|
||||
```html
|
||||
<script type="module">
|
||||
import {urlAttributes} from 'https://esm.sh/html-url-attributes@3?bundle'
|
||||
</script>
|
||||
```
|
||||
|
||||
## Use
|
||||
|
||||
```js
|
||||
import {urlAttributes} from 'html-url-attributes'
|
||||
|
||||
console.log(urlAttributes.formAction)
|
||||
//=> ['button', 'input']
|
||||
console.log(urlAttributes.href)
|
||||
//=> ['a', 'area', 'base', 'link']
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
This package exports the identifier
|
||||
`urlAttributes`.
|
||||
There is no default export.
|
||||
|
||||
### `urlAttributes`
|
||||
|
||||
HTML URL properties (`Record<string, Array<string> | null>`).
|
||||
|
||||
Each key is a property name and each value is a list of tag names it applies
|
||||
to or `null` if it applies to all elements.
|
||||
|
||||
## Syntax
|
||||
|
||||
HTML is parsed according to WHATWG HTML (the living standard), which is also
|
||||
followed by all browsers.
|
||||
|
||||
## Syntax tree
|
||||
|
||||
The syntax tree used is [hast][].
|
||||
|
||||
## Types
|
||||
|
||||
This package is fully typed with [TypeScript][].
|
||||
|
||||
## Compatibility
|
||||
|
||||
Projects maintained by the unified collective are compatible with maintained
|
||||
versions of Node.js.
|
||||
|
||||
When we cut a new major release, we drop support for unmaintained versions of
|
||||
Node.
|
||||
This means we try to keep the current release line,
|
||||
`html-url-attributes@^3`,
|
||||
compatible with Node.js 16.
|
||||
|
||||
## Security
|
||||
|
||||
As **rehype** works on HTML and improper use of HTML can open you up to a
|
||||
[cross-site scripting (XSS)][xss] attack, use of rehype can also be unsafe.
|
||||
Use [`rehype-sanitize`][rehype-sanitize] to make the tree safe.
|
||||
|
||||
## Contribute
|
||||
|
||||
See [`contributing.md`][contributing] in [`rehypejs/.github`][health] for ways
|
||||
to get started.
|
||||
See [`support.md`][support] for ways to get help.
|
||||
|
||||
This project has a [code of conduct][coc].
|
||||
By interacting with this repository, organization, or community you agree to
|
||||
abide by its terms.
|
||||
|
||||
## License
|
||||
|
||||
[MIT][license] © [Titus Wormer][author]
|
||||
|
||||
[author]: https://wooorm.com
|
||||
|
||||
[build]: https://github.com/rehypejs/rehype-minify/actions
|
||||
|
||||
[build-badge]: https://github.com/rehypejs/rehype-minify/workflows/main/badge.svg
|
||||
|
||||
[chat]: https://github.com/rehypejs/rehype/discussions
|
||||
|
||||
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg
|
||||
|
||||
[coc]: https://github.com/rehypejs/.github/blob/main/code-of-conduct.md
|
||||
|
||||
[contributing]: https://github.com/rehypejs/.github/blob/main/contributing.md
|
||||
|
||||
[coverage]: https://codecov.io/github/rehypejs/rehype-minify
|
||||
|
||||
[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype-minify.svg
|
||||
|
||||
[downloads]: https://www.npmjs.com/package/html-url-attributes
|
||||
|
||||
[downloads-badge]: https://img.shields.io/npm/dm/html-url-attributes.svg
|
||||
|
||||
[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
||||
|
||||
[esm-sh]: https://esm.sh
|
||||
|
||||
[funding]: https://opencollective.com/unified
|
||||
|
||||
[funding-backers-badge]: https://opencollective.com/unified/backers/badge.svg
|
||||
|
||||
[funding-sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg
|
||||
|
||||
[hast]: https://github.com/syntax-tree/hast
|
||||
|
||||
[health]: https://github.com/rehypejs/.github
|
||||
|
||||
[license]: https://github.com/rehypejs/rehype-minify/blob/main/license
|
||||
|
||||
[npm]: https://docs.npmjs.com/cli/install
|
||||
|
||||
[rehype-sanitize]: https://github.com/rehypejs/rehype-sanitize
|
||||
|
||||
[size]: https://bundlejs.com/?q=html-url-attributes
|
||||
|
||||
[size-badge]: https://img.shields.io/bundlejs/size/html-url-attributes
|
||||
|
||||
[support]: https://github.com/rehypejs/.github/blob/main/support.md
|
||||
|
||||
[typescript]: https://www.typescriptlang.org
|
||||
|
||||
[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting
|
||||
Loading…
Add table
Add a link
Reference in a new issue