Comparing version 6.4.0 to 6.4.4
@@ -6,5 +6,3 @@ "use strict" | ||
}) | ||
var tslib = require("tslib") | ||
var __assign = Object.assign | ||
var keys = Object.keys | ||
@@ -30,3 +28,3 @@ | ||
return typeof val === "object" ? val !== null : isFunction(val) | ||
} // tslint:disable-next-line:ban-types | ||
} | ||
@@ -65,4 +63,3 @@ function isFunction(val) { | ||
return event | ||
} // https://facebook.github.io/react/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored | ||
// Emulate JSX Expression logic to ignore certain type of children or className. | ||
} | ||
@@ -72,6 +69,2 @@ function isVisibleChild(value) { | ||
} | ||
/** | ||
* Convert a `value` to a className string. | ||
* `value` can be a string, an array or a `Dictionary<boolean>`. | ||
*/ | ||
@@ -120,9 +113,8 @@ function className(value) { | ||
} else if (isFunction(tag)) { | ||
// Custom elements. | ||
if (isObject(tag.defaultProps)) { | ||
attr = tslib.__assign(tslib.__assign({}, tag.defaultProps), attr) | ||
attr = __assign(__assign({}, tag.defaultProps), attr) | ||
} | ||
node = tag( | ||
tslib.__assign(tslib.__assign({}, attr), { | ||
__assign(__assign({}, attr), { | ||
children: children, | ||
@@ -205,4 +197,2 @@ }) | ||
} | ||
// fallthrough | ||
} | ||
@@ -209,0 +199,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { __assign } from "tslib" | ||
var __assign = Object.assign | ||
var keys = Object.keys | ||
@@ -22,3 +22,3 @@ | ||
return typeof val === "object" ? val !== null : isFunction(val) | ||
} // tslint:disable-next-line:ban-types | ||
} | ||
@@ -57,4 +57,3 @@ function isFunction(val) { | ||
return event | ||
} // https://facebook.github.io/react/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored | ||
// Emulate JSX Expression logic to ignore certain type of children or className. | ||
} | ||
@@ -64,6 +63,2 @@ function isVisibleChild(value) { | ||
} | ||
/** | ||
* Convert a `value` to a className string. | ||
* `value` can be a string, an array or a `Dictionary<boolean>`. | ||
*/ | ||
@@ -112,3 +107,2 @@ function className(value) { | ||
} else if (isFunction(tag)) { | ||
// Custom elements. | ||
if (isObject(tag.defaultProps)) { | ||
@@ -197,4 +191,2 @@ attr = __assign(__assign({}, tag.defaultProps), attr) | ||
} | ||
// fallthrough | ||
} | ||
@@ -201,0 +193,0 @@ |
@@ -6,5 +6,3 @@ "use strict" | ||
}) | ||
var tslib = require("tslib") | ||
var __assign = Object.assign | ||
var keys = Object.keys | ||
@@ -30,3 +28,3 @@ | ||
return typeof val === "object" ? val !== null : isFunction(val) | ||
} // tslint:disable-next-line:ban-types | ||
} | ||
@@ -67,4 +65,3 @@ function isFunction(val) { | ||
return event | ||
} // https://facebook.github.io/react/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored | ||
// Emulate JSX Expression logic to ignore certain type of children or className. | ||
} | ||
@@ -74,6 +71,2 @@ function isVisibleChild(value) { | ||
} | ||
/** | ||
* Convert a `value` to a className string. | ||
* `value` can be a string, an array or a `Dictionary<boolean>`. | ||
*/ | ||
@@ -172,3 +165,3 @@ function className(value) { | ||
if (!attr.namespaceURI && svg[tag] === 0) { | ||
attr = tslib.__assign(tslib.__assign({}, attr), { | ||
attr = __assign(__assign({}, attr), { | ||
namespaceURI: SVGNamespace, | ||
@@ -187,9 +180,8 @@ }) | ||
} else if (isFunction(tag)) { | ||
// Custom elements. | ||
if (isObject(tag.defaultProps)) { | ||
attr = tslib.__assign(tslib.__assign({}, tag.defaultProps), attr) | ||
attr = __assign(__assign({}, tag.defaultProps), attr) | ||
} | ||
node = tag( | ||
tslib.__assign(tslib.__assign({}, attr), { | ||
__assign(__assign({}, attr), { | ||
children: children, | ||
@@ -302,4 +294,2 @@ }) | ||
} | ||
// fallthrough | ||
} | ||
@@ -306,0 +296,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { __assign } from "tslib" | ||
var __assign = Object.assign | ||
var keys = Object.keys | ||
@@ -22,3 +22,3 @@ | ||
return typeof val === "object" ? val !== null : isFunction(val) | ||
} // tslint:disable-next-line:ban-types | ||
} | ||
@@ -59,4 +59,3 @@ function isFunction(val) { | ||
return event | ||
} // https://facebook.github.io/react/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored | ||
// Emulate JSX Expression logic to ignore certain type of children or className. | ||
} | ||
@@ -66,6 +65,2 @@ function isVisibleChild(value) { | ||
} | ||
/** | ||
* Convert a `value` to a className string. | ||
* `value` can be a string, an array or a `Dictionary<boolean>`. | ||
*/ | ||
@@ -178,3 +173,2 @@ function className(value) { | ||
} else if (isFunction(tag)) { | ||
// Custom elements. | ||
if (isObject(tag.defaultProps)) { | ||
@@ -293,4 +287,2 @@ attr = __assign(__assign({}, tag.defaultProps), attr) | ||
} | ||
// fallthrough | ||
} | ||
@@ -297,0 +289,0 @@ |
{ | ||
"name": "jsx-dom", | ||
"version": "6.4.0", | ||
"version": "6.4.4", | ||
"description": "JSX to document.createElement.", | ||
@@ -11,2 +11,3 @@ "main": "lib/index.cjs.js", | ||
"postpublish": "rm lib/*.js", | ||
"prepublishOnly": "yarn build && yarn test", | ||
"test": "nyc --reporter=html mocha test/test.tsx --require test/register" | ||
@@ -22,9 +23,9 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.5.5", | ||
"@types/babel__core": "^7.1.2", | ||
"@types/chai": "^4.2.0", | ||
"@babel/core": "^7.6.2", | ||
"@types/babel__core": "^7.1.3", | ||
"@types/chai": "^4.2.3", | ||
"@types/jsdom": "^12.2.4", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.7.3", | ||
"@types/prop-types": "^15.7.1", | ||
"@types/node": "^12.7.7", | ||
"@types/prop-types": "^15.7.3", | ||
"babel-preset-minify": "^0.5.1", | ||
@@ -38,11 +39,12 @@ "chai": "^4.2.0", | ||
"prettier": "^1.18.2", | ||
"rollup": "^1.20.3", | ||
"rollup": "^1.21.4", | ||
"rollup-plugin-prettier": "^0.6.0", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"rollup-typescript": "^1.2.0", | ||
"ts-node": "^8.3.0", | ||
"rollup-typescript": "^1.2.1", | ||
"ts-node": "^8.4.1", | ||
"tslib": "^1.10.0", | ||
"tslint-config-prettier": "^1.18.0", | ||
"tslint-eslint-rules": "^5.4.0", | ||
"tslint-plugin-prettier": "^2.0.1", | ||
"typescript": "^3.6.2" | ||
"typescript": "^3.6.3" | ||
}, | ||
@@ -49,0 +51,0 @@ "repository": { |
128364
25
10
3182