hastscript
Advanced tools
Comparing version 5.1.2 to 6.0.0
@@ -53,3 +53,3 @@ 'use strict' | ||
// Ignore nully and NaN values. | ||
// Ignore nullish and NaN values. | ||
if (value === null || value === undefined || value !== value) { | ||
@@ -56,0 +56,0 @@ return |
{ | ||
"name": "hastscript", | ||
"version": "5.1.2", | ||
"version": "6.0.0", | ||
"description": "hast utility to create trees", | ||
@@ -30,3 +30,6 @@ "license": "MIT", | ||
], | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.d.ts", | ||
"svg.d.ts", | ||
"index.js", | ||
@@ -39,2 +42,3 @@ "factory.js", | ||
"dependencies": { | ||
"@types/hast": "^2.0.0", | ||
"comma-separated-tokens": "^1.0.0", | ||
@@ -47,14 +51,15 @@ "hast-util-parse-selector": "^2.0.0", | ||
"browserify": "^16.0.0", | ||
"dtslint": "^3.0.0", | ||
"nyc": "^15.0.0", | ||
"prettier": "^1.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"prettier": "^2.0.0", | ||
"remark-cli": "^8.0.0", | ||
"remark-preset-wooorm": "^7.0.0", | ||
"svg-tag-names": "^2.0.0", | ||
"tape": "^4.0.0", | ||
"tape": "^5.0.0", | ||
"tinyify": "^2.0.0", | ||
"xo": "^0.27.0" | ||
"xo": "^0.32.0" | ||
}, | ||
"scripts": { | ||
"generate": "node build", | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"format": "remark . -qfo && prettier . --write && xo --fix", | ||
"build-bundle": "browserify . -s hastscript > hastscript.js", | ||
@@ -65,3 +70,4 @@ "build-mangle": "browserify . -s hastscript -p tinyify > hastscript.min.js", | ||
"test-coverage": "nyc --reporter lcov tape test.js", | ||
"test": "npm run generate && npm run format && npm run build && npm run test-coverage" | ||
"test-types": "dtslint .", | ||
"test": "npm run generate && npm run format && npm run build && npm run test-coverage && npm run test-types" | ||
}, | ||
@@ -86,2 +92,3 @@ "nyc": { | ||
"rules": { | ||
"unicorn/prefer-number-properties": "off", | ||
"no-self-compare": "off", | ||
@@ -88,0 +95,0 @@ "guard-for-in": "off" |
@@ -237,2 +237,4 @@ # hastscript | ||
— Create any unist tree | ||
* [`xastscript`](https://github.com/syntax-tree/xastscript) | ||
— Create a xast tree | ||
* [`hast-to-hyperscript`](https://github.com/syntax-tree/hast-to-hyperscript) | ||
@@ -297,11 +299,11 @@ — Convert a Node to React, Virtual DOM, Hyperscript, and more | ||
[contributing]: https://github.com/syntax-tree/.github/blob/master/contributing.md | ||
[contributing]: https://github.com/syntax-tree/.github/blob/HEAD/contributing.md | ||
[support]: https://github.com/syntax-tree/.github/blob/master/support.md | ||
[support]: https://github.com/syntax-tree/.github/blob/HEAD/support.md | ||
[coc]: https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md | ||
[coc]: https://github.com/syntax-tree/.github/blob/HEAD/code-of-conduct.md | ||
[hyperscript]: https://github.com/dominictarr/hyperscript | ||
[virtual-hyperscript]: https://github.com/Matt-Esch/virtual-dom/tree/master/virtual-hyperscript | ||
[virtual-hyperscript]: https://github.com/Matt-Esch/virtual-dom/tree/HEAD/virtual-hyperscript | ||
@@ -308,0 +310,0 @@ [react]: https://reactjs.org/docs/glossary.html#react-elements |
18307
10
249
329
5
10
+ Added@types/hast@^2.0.0
+ Added@types/hast@2.3.10(transitive)
+ Added@types/unist@2.0.10(transitive)