pick-html-attribute-props
Advanced tools
+1
-1
| /**! | ||
| * 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/) |
+1
-1
| // 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/) |
+0
-6
@@ -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/) |
+1
-1
| /**! | ||
| * 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/) |
+1
-1
| // 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/) |
+1
-1
| { | ||
| "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/) |
+5
-5
@@ -106,3 +106,3 @@ # pick-html-attribute-props [][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/) |
57328
-0.36%1069
-0.56%