mdast-util-phrasing
Advanced tools
Comparing version 1.0.0 to 1.0.1
10
index.js
@@ -1,6 +0,6 @@ | ||
'use strict'; | ||
'use strict' | ||
var is = require('unist-util-is'); | ||
var is = require('unist-util-is') | ||
module.exports = isPhrasing; | ||
module.exports = isPhrasing | ||
@@ -20,7 +20,7 @@ var phrasing = [ | ||
'text' | ||
]; | ||
] | ||
/* Check if a node is a phrasing element */ | ||
function isPhrasing(node) { | ||
return is(phrasing, node); | ||
return is(phrasing, node) | ||
} |
{ | ||
"name": "mdast-util-phrasing", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Check if a node is a phrasing element", | ||
@@ -17,3 +17,3 @@ "license": "MIT", | ||
"Victor Felder <victor@draft.li> (https://draft.li)", | ||
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)" | ||
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)" | ||
], | ||
@@ -27,17 +27,14 @@ "files": [ | ||
"devDependencies": { | ||
"remark-cli": "^4.0.0", | ||
"remark-preset-wooorm": "^3.0.0", | ||
"nyc": "^11.0.0", | ||
"nyc": "^13.0.0", | ||
"prettier": "^1.14.3", | ||
"remark-cli": "^6.0.0", | ||
"remark-preset-wooorm": "^4.0.0", | ||
"tape": "^4.4.0", | ||
"xo": "^0.18.1" | ||
"xo": "^0.23.0" | ||
}, | ||
"scripts": { | ||
"build-md": "remark . --quiet --frail --output", | ||
"build": "npm run build-md", | ||
"lint": "xo", | ||
"test-api": "node test.js", | ||
"format": "remark . -qfo && prettier --write '**/*.js' && xo --fix", | ||
"test-api": "node test", | ||
"test-coverage": "nyc --reporter lcov tape test.js", | ||
"pretest": "npm run lint", | ||
"test": "node test.js", | ||
"posttest": "npm run test-coverage" | ||
"test": "npm run format && npm run test-coverage" | ||
}, | ||
@@ -50,4 +47,12 @@ "nyc": { | ||
}, | ||
"prettier": { | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"bracketSpacing": false, | ||
"semi": false, | ||
"trailingComma": "none" | ||
}, | ||
"xo": { | ||
"space": true, | ||
"prettier": true, | ||
"esnext": false, | ||
@@ -54,0 +59,0 @@ "rules": { |
@@ -16,3 +16,3 @@ # mdast-util-phrasing [![Build Status][build-badge]][build-page] [![Coverage Status][coverage-badge]][coverage-page] | ||
```javascript | ||
var phrasing = require('mdast-util-phrasing'); | ||
var phrasing = require('mdast-util-phrasing') | ||
@@ -22,3 +22,3 @@ phrasing({ | ||
children: [{type: 'text', value: 'Alpha'}] | ||
}); //=> false | ||
}) // => false | ||
@@ -28,3 +28,3 @@ phrasing({ | ||
children: [{type: 'text', value: 'Delta'}] | ||
}); //=> true | ||
}) // => true | ||
``` | ||
@@ -70,3 +70,3 @@ | ||
[license]: LICENSE | ||
[license]: license | ||
@@ -73,0 +73,0 @@ [node]: https://github.com/syntax-tree/mdast#ast |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4683
6
1