Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

pick-html-attribute-props

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pick-html-attribute-props - npm Package Compare versions

Comparing version
1.3.1
to
1.3.2
+1
-1
attr-names.d.ts
/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -4,0 +4,0 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)

// eslint-disable-next-line spaced-comment
/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -5,0 +5,0 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)

@@ -5,3 +5,3 @@ 'use strict';

/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -8,0 +8,0 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)

@@ -7,8 +7,2 @@ 'use strict';

// eslint-disable-next-line spaced-comment
/**!
* pick-html-attribute-props v1.3.1
*
* Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)
* Licensed under the ISC license (https://gitlab.com/bsara/pick-html-attribute-props/blob/master/LICENSE)
*/

@@ -15,0 +9,0 @@

@@ -5,3 +5,3 @@ 'use strict';

/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -8,0 +8,0 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)

/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -4,0 +4,0 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)

// eslint-disable-next-line spaced-comment
/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -5,0 +5,0 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)

{
"name": "pick-html-attribute-props",
"version": "1.3.1",
"version": "1.3.2",
"description": "Pickers and other helper functions used to filter standard HTML attribute values from an object",

@@ -5,0 +5,0 @@ "authors": [

/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -4,0 +4,0 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)

// eslint-disable-next-line spaced-comment
/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -5,0 +5,0 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)

@@ -106,3 +106,3 @@ # pick-html-attribute-props [![NPM Package](https://img.shields.io/npm/v/pick-html-attribute-props.svg?style=flat-square)][npm]

pickFormHtmlAttrProps({ onChange: handleChange }, { omitEventHandlers: true }); // returns `{}` (event handlers are being ommitted from result)
pickFormHtmlAttrProps({ id: 42, name: "Doctor Who", blah: 78 }); // returns `{ id: 42, name: "Doctor Who" }` ("blah" is not a valid HTML Input attribute)
pickFormHtmlAttrProps({ id: 42, name: "Doctor Who", blah: 78 }); // returns `{ id: 42, name: "Doctor Who" }` ("blah" is not a valid HTML Form attribute)
```

@@ -224,3 +224,3 @@

pickTextAreaHtmlAttrProps({ onChange: handleChange }, { omitEventHandlers: true }); // returns `{}` (event handlers are being ommitted from result)
pickTextAreaHtmlAttrProps({ id: 42, name: "Doctor Who", blah: 78 }); // returns `{ id: 42, name: "Doctor Who" }` ("blah" is not a valid HTML Input attribute)
pickTextAreaHtmlAttrProps({ id: 42, name: "Doctor Who", blah: 78 }); // returns `{ id: 42, name: "Doctor Who" }` ("blah" is not a valid HTML TextArea attribute)
```

@@ -236,3 +236,3 @@

Returns a list of attribute names that are valid for [any HTML element][form-html-attrs].
Returns a list of attribute names that are valid for [an HTML Form element][form-html-attrs].

@@ -243,5 +243,5 @@ > NOTE: A list of attribute names returned can be found in [`attr-names.js`](https://gitlab.com/bsara/pick-html-attribute-props/-/blob/master/attr-names.js#L15-26).

```javascript
import { getGlobalHtmlAttrNames } from 'pick-html-attribute-props/attr-names';
import { getFormHtmlAttrNames } from 'pick-html-attribute-props/attr-names';
console.log(getGlobalHtmlAttrNames()); // list of attribute names that are valid for any HTML element
console.log(getFormHtmlAttrNames()); // list of attribute names that are valid for an HTML Form element
```

@@ -248,0 +248,0 @@

@@ -9,3 +9,3 @@ (function (global, factory) {

/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -164,3 +164,3 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)

/**!
* pick-html-attribute-props v1.3.1
* pick-html-attribute-props v1.3.2
*

@@ -167,0 +167,0 @@ * Copyright (c) 2023, Brandon D. Sara (https://bsara.dev/)