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

property-information

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

property-information - npm Package Compare versions

Comparing version 6.1.1 to 6.2.0

29

lib/hast-to-react.d.ts

@@ -1,19 +0,10 @@

export namespace hastToReact {
const classId: string
const dataType: string
const itemId: string
const strokeDashArray: string
const strokeDashOffset: string
const strokeLineCap: string
const strokeLineJoin: string
const strokeMiterLimit: string
const typeOf: string
const xLinkActuate: string
const xLinkArcRole: string
const xLinkHref: string
const xLinkRole: string
const xLinkShow: string
const xLinkTitle: string
const xLinkType: string
const xmlnsXLink: string
}
/**
* `hast` is close to `React`, but differs in a couple of cases.
*
* To get a React property from a hast property, check if it is in
* `hastToReact`, if it is, then use the corresponding value,
* otherwise, use the hast property.
*
* @type {Record<string, string>}
*/
export const hastToReact: Record<string, string>

@@ -0,1 +1,10 @@

/**
* `hast` is close to `React`, but differs in a couple of cases.
*
* To get a React property from a hast property, check if it is in
* `hastToReact`, if it is, then use the corresponding value,
* otherwise, use the hast property.
*
* @type {Record<string, string>}
*/
export const hastToReact = {

@@ -2,0 +11,0 @@ classId: 'classID',

@@ -115,2 +115,3 @@ import {

onAuxClick: null,
onBeforeMatch: null,
onBeforePrint: null,

@@ -182,2 +183,3 @@ onBeforeUnload: null,

onScroll: null,
onScrollEnd: null,
onSecurityPolicyViolation: null,

@@ -184,0 +186,0 @@ onSeeked: null,

{
"name": "property-information",
"version": "6.1.1",
"version": "6.2.0",
"description": "Info on the properties and attributes of the web platform",

@@ -37,11 +37,6 @@ "license": "MIT",

"devDependencies": {
"@types/concat-stream": "^1.0.0",
"@types/mdast": "^3.0.0",
"@types/node": "^16.0.0",
"@types/tape": "^4.0.0",
"@types/unist": "^2.0.0",
"@types/node": "^18.0.0",
"alpha-sort": "^5.0.0",
"bail": "^2.0.0",
"c8": "^7.0.0",
"concat-stream": "^2.0.0",
"html-element-attributes": "^3.0.0",

@@ -51,20 +46,19 @@ "html-event-attributes": "^2.0.0",

"prettier": "^2.0.0",
"remark-cli": "^10.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"svg-element-attributes": "^2.0.0",
"svg-event-attributes": "^2.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"undici": "^5.0.0",
"unist-builder": "^3.0.0",
"xo": "^0.46.0"
"xo": "^0.53.0"
},
"scripts": {
"prepublishOnly": "npm run build && npm run format",
"generate": "node script/generate-react.js && node script/generate-exceptions.js",
"build": "rimraf \"{lib/**/,script/**,}*.d.ts\" && tsc && type-coverage",
"prepack": "npm run build && npm run format",
"generate": "node --conditions development script/generate-react.js && node --conditions development script/generate-exceptions.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"

@@ -71,0 +65,0 @@ },

@@ -49,3 +49,3 @@ # property-information

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][]:

@@ -56,13 +56,13 @@ ```sh

In Deno with [Skypack][]:
In Deno with [`esm.sh`][esmsh]:
```js
import * as propertyInformation from 'https://cdn.skypack.dev/property-information@6?dts'
import * as propertyInformation from 'https://esm.sh/property-information@6'
```
In browsers with [Skypack][]:
In browsers with [`esm.sh`][esmsh]:
```html
<script type="module">
import * as propertyInformation from 'https://cdn.skypack.dev/property-information@6?min'
import * as propertyInformation from 'https://esm.sh/property-information@6?bundle'
</script>

@@ -100,4 +100,4 @@ ```

This package exports the following identifiers: `html`, `svg`, `find`,
`normalize`, `hastToReact`.
This package exports the identifiers `html`, `svg`, `find`, `normalize`,
and `hastToReact`.
There is no default export.

@@ -263,4 +263,3 @@

This package is fully typed with [TypeScript][].
It exports the types `Info` and `Schema`, reflecting the interfaces of those
constructs.
It exports the additional types `Info` and `Schema`.

@@ -270,3 +269,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.

@@ -603,2 +602,3 @@

| `onAuxClick` | `onauxclick` | `html` |
| `onBeforeMatch` | `onbeforematch` | `html` |
| `onBeforePrint` | `onbeforeprint` | `svg`, `html` |

@@ -676,2 +676,3 @@ | `onBeforeUnload` | `onbeforeunload` | `html` |

| `onScroll` | `onscroll` | `svg`, `html` |
| `onScrollEnd` | `onscrollend` | `html` |
| `onSecurityPolicyViolation` | `onsecuritypolicyviolation` | `html` |

@@ -959,3 +960,3 @@ | `onSeeked` | `onseeked` | `svg`, `html` |

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

@@ -962,0 +963,0 @@ [author]: https://wooorm.com

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