react-props-check 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -4
- package/dist/esm/index.js +1 -4
- package/dist/types/index.d.ts +1 -1
- package/package.json +11 -3
package/dist/cjs/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
2
|
const react_props = require("./react_props.js");
|
|
4
3
|
function isValidProp(property) {
|
|
5
4
|
return react_props.reactAcceptedPropertiesSet.has(property) || isDataAttribute(property);
|
|
@@ -7,6 +6,4 @@ function isValidProp(property) {
|
|
|
7
6
|
function isDataAttribute(property) {
|
|
8
7
|
return property.startsWith("data-");
|
|
9
8
|
}
|
|
10
|
-
exports
|
|
11
|
-
exports.reactAcceptedPropertiesSet = react_props.reactAcceptedPropertiesSet;
|
|
12
|
-
exports.default = isValidProp;
|
|
9
|
+
module.exports = isValidProp;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { reactAcceptedPropertiesSet } from "./react_props.js";
|
|
2
|
-
import { reactAcceptedProperties } from "./react_props.js";
|
|
3
2
|
function isValidProp(property) {
|
|
4
3
|
return reactAcceptedPropertiesSet.has(property) || isDataAttribute(property);
|
|
5
4
|
}
|
|
@@ -7,7 +6,5 @@ function isDataAttribute(property) {
|
|
|
7
6
|
return property.startsWith("data-");
|
|
8
7
|
}
|
|
9
8
|
export {
|
|
10
|
-
isValidProp as default
|
|
11
|
-
reactAcceptedProperties,
|
|
12
|
-
reactAcceptedPropertiesSet
|
|
9
|
+
isValidProp as default
|
|
13
10
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactAcceptedProp } from './react_props';
|
|
2
|
+
export type { ReactAcceptedProp } from './react_props';
|
|
2
3
|
export type DataAttribute = `data-${string}`;
|
|
3
4
|
declare function isValidProp(property: ReactAcceptedProp | DataAttribute): boolean;
|
|
4
5
|
export default isValidProp;
|
|
5
|
-
export * from './react_props';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-props-check",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Validate React properties to keep the DOM semantic.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"attributes",
|
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"author": "Marco Antonio Ghiani <marcoantonio.ghiani01@gmail.com>",
|
|
17
17
|
"sideEffects": false,
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": "./dist/esm/index.js",
|
|
21
|
+
"require": "./dist/cjs/index.js",
|
|
22
|
+
"types": "./dist/types/index.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
18
25
|
"main": "dist/cjs/index.js",
|
|
19
26
|
"module": "dist/esm/index.js",
|
|
20
27
|
"types": "dist/types/index.d.ts",
|
|
@@ -30,7 +37,8 @@
|
|
|
30
37
|
"lint": "eslint",
|
|
31
38
|
"lint:package": "sort-package-json",
|
|
32
39
|
"release": "semantic-release",
|
|
33
|
-
"test": "NODE_ENV=testing jest --passWithNoTests"
|
|
40
|
+
"test": "NODE_ENV=testing jest --passWithNoTests",
|
|
41
|
+
"update:deps": "ncu -u"
|
|
34
42
|
},
|
|
35
43
|
"config": {
|
|
36
44
|
"commitizen": {
|
|
@@ -40,5 +48,5 @@
|
|
|
40
48
|
"publishConfig": {
|
|
41
49
|
"access": "public"
|
|
42
50
|
},
|
|
43
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "21052bab2d2ecc692df47fe1a5032a9ade7424b5"
|
|
44
52
|
}
|