New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-element-attributes

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-element-attributes - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

13

index.js

@@ -18,2 +18,3 @@ /**

'id',
'inert',
'inputmode',

@@ -28,2 +29,3 @@ 'is',

'nonce',
'popover',
'slot',

@@ -101,2 +103,4 @@ 'spellcheck',

'name',
'popovertarget',
'popovertargetaction',
'type',

@@ -176,2 +180,3 @@ 'value'

'decoding',
'fetchpriority',
'height',

@@ -216,2 +221,4 @@ 'hspace',

'placeholder',
'popovertarget',
'popovertargetaction',
'readonly',

@@ -234,2 +241,3 @@ 'required',

'as',
'blocking',
'charset',

@@ -239,2 +247,3 @@ 'color',

'disabled',
'fetchpriority',
'href',

@@ -288,5 +297,7 @@ 'hreflang',

'async',
'blocking',
'charset',
'crossorigin',
'defer',
'fetchpriority',
'integrity',

@@ -310,3 +321,3 @@ 'language',

source: ['height', 'media', 'sizes', 'src', 'srcset', 'type', 'width'],
style: ['media', 'type'],
style: ['blocking', 'media', 'type'],
table: [

@@ -313,0 +324,0 @@ 'align',

28

package.json
{
"name": "html-element-attributes",
"version": "3.1.0",
"version": "3.2.0",
"description": "Map of HTML elements to allowed attributes",

@@ -35,28 +35,22 @@ "license": "MIT",

"devDependencies": {
"@types/concat-stream": "^1.6.0",
"@types/node": "^16.0.0",
"@types/tape": "^4.0.0",
"bail": "^2.0.0",
"@types/node": "^18.0.0",
"c8": "^7.0.0",
"concat-stream": "^2.0.0",
"hast-util-from-html": "^1.0.0",
"hast-util-select": "^5.0.0",
"hast-util-to-string": "^2.0.0",
"prettier": "^2.0.0",
"rehype-parse": "^8.0.0",
"remark-cli": "^10.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"unified": "^10.0.0",
"xo": "^0.46.0"
"typescript": "^5.0.0",
"undici": "^5.0.0",
"xo": "^0.54.0"
},
"scripts": {
"generate": "node build.js",
"prepublishOnly": "npm run build && npm run format",
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"prepack": "npm run build && npm run format",
"generate": "node --conditions development build.js",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node --conditions development test.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api",
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
"test": "npm run generate && npm run build && npm run format && npm run test-coverage"

@@ -63,0 +57,0 @@ },

@@ -44,3 +44,3 @@ # html-element-attributes

This package is [ESM only][esm].
In Node.js (version 12.20+, 14.14+, or 16.0+), install with [npm][]:
In Node.js (version 14.14+, 16.0+), install with [npm][]:

@@ -51,13 +51,13 @@ ```sh

In Deno with [Skypack][]:
In Deno with [`esm.sh`][esmsh]:
```js
import {htmlElementAttributes} from 'https://cdn.skypack.dev/html-element-attributes@3?dts'
import {htmlElementAttributes} from 'https://esm.sh/html-element-attributes@3'
```
In browsers with [Skypack][]:
In browsers with [`esm.sh`][esmsh]:
```html
<script type="module">
import {htmlElementAttributes} from 'https://cdn.skypack.dev/html-element-attributes@3?min'
import {htmlElementAttributes} from 'https://esm.sh/html-element-attributes@3?bundle'
</script>

@@ -94,3 +94,3 @@ ```

This package exports the following identifiers: `htmlElementAttributes`.
This package exports the identifier `htmlElementAttributes`.
There is no default export.

@@ -106,2 +106,3 @@

This package is fully typed with [TypeScript][].
It exports no additional types.

@@ -111,3 +112,3 @@ ## Compatibility

This package is at least compatible with all maintained versions of Node.js.
As of now, that is Node.js 12.20+, 14.14+, and 16.0+.
As of now, that is Node.js 14.14+ and 16.0+.
It also works in Deno and modern browsers.

@@ -165,3 +166,3 @@

[skypack]: https://www.skypack.dev
[esmsh]: https://esm.sh

@@ -168,0 +169,0 @@ [license]: license

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc