Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svg-element-attributes

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg-element-attributes - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

2

index.d.ts

@@ -6,2 +6,2 @@ /**

*/
export const svgElementAttributes: Record<string, Array<string>>
export const svgElementAttributes: Record<string, Array<string>>;
{
"name": "svg-element-attributes",
"version": "2.0.1",
"version": "2.1.0",
"description": "Map of SVG elements to allowed attributes",

@@ -34,32 +34,25 @@ "license": "MIT",

"devDependencies": {
"@types/concat-stream": "^1.0.0",
"@types/hast": "^2.0.0",
"@types/node": "^16.0.0",
"@types/tape": "^4.0.0",
"@types/node": "^20.0.0",
"aria-attributes": "^2.0.0",
"bail": "^2.0.0",
"c8": "^7.0.0",
"concat-stream": "^2.0.0",
"hast-util-is-event-handler": "^2.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",
"c8": "^8.0.0",
"hast-util-from-html": "^2.0.0",
"hast-util-is-event-handler": "^3.0.0",
"hast-util-select": "^6.0.0",
"hast-util-to-string": "^3.0.0",
"node-fetch": "^3.0.0",
"prettier": "^3.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",
"xo": "^0.56.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
"build": "rimraf \"*.d.ts\" && tsc && type-coverage",
"generate": "node build",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node test.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js",
"test": "npm run build && npm run format && npm run test-coverage"
"generate": "node --conditions development build.js",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api": "node --conditions development test.js",
"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"
},

@@ -66,0 +59,0 @@ "prettier": {

@@ -45,3 +45,3 @@ # svg-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][]:

@@ -52,13 +52,13 @@ ```sh

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

@@ -108,3 +108,3 @@ ```

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

@@ -120,2 +120,3 @@

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

@@ -125,3 +126,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.

@@ -179,3 +180,3 @@

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

@@ -182,0 +183,0 @@ [license]: license

Sorry, the diff of this file is too big to display

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