Comparing version 2.2.2 to 3.0.0
{ | ||
"name": "a-rel", | ||
"version": "2.2.2", | ||
"version": "3.0.0", | ||
"description": "List of link types for `rel` on `a` and `area`", | ||
@@ -26,30 +26,36 @@ "license": "MIT", | ||
], | ||
"main": "index.json", | ||
"sideEffects": false, | ||
"type": "module", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"files": [ | ||
"index.json" | ||
"index.d.ts", | ||
"index.js" | ||
], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"@types/tape": "^4.0.0", | ||
"bail": "^1.0.0", | ||
"browserify": "^16.0.0", | ||
"c8": "^7.0.0", | ||
"concat-stream": "^2.0.0", | ||
"hast-util-select": "^3.0.0", | ||
"hast-util-select": "^4.0.0", | ||
"hast-util-to-string": "^1.0.0", | ||
"prettier": "^1.0.0", | ||
"rehype-parse": "^6.0.0", | ||
"remark-cli": "^7.0.0", | ||
"remark-preset-wooorm": "^6.0.0", | ||
"tape": "^4.0.0", | ||
"tinyify": "^2.0.0", | ||
"unified": "^8.0.0", | ||
"xo": "^0.25.0" | ||
"prettier": "^2.0.0", | ||
"rehype-parse": "^7.0.0", | ||
"remark-cli": "^9.0.0", | ||
"remark-preset-wooorm": "^8.0.0", | ||
"rimraf": "^3.0.0", | ||
"tape": "^5.0.0", | ||
"type-coverage": "^2.0.0", | ||
"typescript": "^4.0.0", | ||
"unified": "^9.0.0", | ||
"xo": "^0.38.0" | ||
}, | ||
"scripts": { | ||
"generate": "node build.js", | ||
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", | ||
"build-bundle": "browserify index.json -s aRel -o a-rel.js", | ||
"build-mangle": "browserify index.json -s aRel -p tinyify -o a-rel.min.js", | ||
"build": "npm run build-bundle && npm run build-mangle", | ||
"test-api": "node test", | ||
"test": "npm run generate && npm run format && npm run build && npm run test-api" | ||
"prepack": "npm run build && npm run format", | ||
"generate": "node build", | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage", | ||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix", | ||
"test-api": "node test.js", | ||
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js", | ||
"test": "npm run generate && npm run build && npm run format && npm run test-coverage" | ||
}, | ||
@@ -66,6 +72,7 @@ "prettier": { | ||
"prettier": true, | ||
"esnext": false, | ||
"ignores": [ | ||
"a-rel.js" | ||
] | ||
"rules": { | ||
"import/no-mutable-exports": "off", | ||
"no-var": "off", | ||
"prefer-arrow-callback": "off" | ||
} | ||
}, | ||
@@ -76,3 +83,11 @@ "remarkConfig": { | ||
] | ||
}, | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"detail": true, | ||
"strict": true, | ||
"ignoreFiles": [ | ||
"build.js" | ||
] | ||
} | ||
} |
# a-rel | ||
[![Build][build-badge]][build] | ||
[![Coverage][coverage-badge]][coverage] | ||
[![Downloads][downloads-badge]][downloads] | ||
@@ -13,2 +14,5 @@ [![Size][size-badge]][size] | ||
This package is ESM only: Node 12+ is needed to use it and it must be `import`ed | ||
instead of `require`d. | ||
[npm][]: | ||
@@ -23,3 +27,3 @@ | ||
```js | ||
var aRel = require('a-rel') | ||
import {aRel} from 'a-rel' | ||
@@ -46,6 +50,9 @@ console.log(aRel.slice(0, 10)) | ||
This package exports the following identifiers: `aRel`. | ||
There is no default export. | ||
### `aRel` | ||
`Array.<string>` — List of lowercase possible link types for `rel` on `a` and | ||
`area` elements. | ||
`string[]` — List of lowercase possible link types for `rel` on `a` and `area` | ||
elements. | ||
@@ -75,6 +82,10 @@ ## Related | ||
[build-badge]: https://img.shields.io/travis/wooorm/a-rel.svg | ||
[build-badge]: https://github.com/wooorm/a-rel/workflows/main/badge.svg | ||
[build]: https://travis-ci.org/wooorm/a-rel | ||
[build]: https://github.com/wooorm/a-rel/actions | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/a-rel.svg | ||
[coverage]: https://codecov.io/github/wooorm/a-rel | ||
[downloads-badge]: https://img.shields.io/npm/dm/a-rel.svg | ||
@@ -81,0 +92,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
6822
5
77
102
Yes
16
1