xastscript
Advanced tools
Comparing version 1.0.1 to 2.0.0
@@ -35,3 +35,3 @@ 'use strict' | ||
// Ignore nully and NaN values. | ||
// Ignore nullish and NaN values. | ||
if (value !== null && value !== undefined && value === value) { | ||
@@ -38,0 +38,0 @@ attrs[attribute] = String(value) |
{ | ||
"name": "xastscript", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "xast utility to create trees", | ||
@@ -29,18 +29,24 @@ "license": "MIT", | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"types/index.d.ts" | ||
], | ||
"dependencies": {}, | ||
"types": "types", | ||
"dependencies": { | ||
"@types/xast": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"dtslint": "^4.0.0", | ||
"nyc": "^15.0.0", | ||
"prettier": "^1.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"tape": "^4.0.0", | ||
"xo": "^0.27.0" | ||
"prettier": "^2.0.0", | ||
"remark-cli": "^8.0.0", | ||
"remark-preset-wooorm": "^7.0.0", | ||
"tape": "^5.0.0", | ||
"xo": "^0.33.0" | ||
}, | ||
"scripts": { | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"format": "remark . -qfo && prettier . --write && xo --fix", | ||
"test-api": "node test", | ||
"test-coverage": "nyc --reporter lcov tape test.js", | ||
"test": "npm run format && npm run test-coverage" | ||
"test-types": "dtslint types", | ||
"test": "npm run format && npm run test-coverage && npm run test-types" | ||
}, | ||
@@ -65,2 +71,3 @@ "nyc": { | ||
"rules": { | ||
"unicorn/prefer-number-properties": "off", | ||
"no-self-compare": "off", | ||
@@ -67,0 +74,0 @@ "guard-for-in": "off" |
@@ -159,3 +159,3 @@ # xastscript | ||
Map of attributes (`Object.<*>`, optional). | ||
Nully (`null` or `undefined`) or `NaN` values are ignored, other values are | ||
Nullish (`null` or `undefined`) or `NaN` values are ignored, other values are | ||
turned to strings. | ||
@@ -229,5 +229,5 @@ | ||
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg | ||
[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg | ||
[chat]: https://spectrum.chat/unified/syntax-tree | ||
[chat]: https://github.com/syntax-tree/unist/discussions | ||
@@ -240,7 +240,7 @@ [npm]: https://docs.npmjs.com/cli/install | ||
[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 | ||
@@ -247,0 +247,0 @@ [unist]: https://github.com/syntax-tree/unist |
11499
5
79
1
7
+ Added@types/xast@^1.0.0
+ Added@types/unist@2.0.11(transitive)
+ Added@types/xast@1.0.7(transitive)