posthtml-attrs-parser
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "posthtml-attrs-parser", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "PostHTML helper that provides a better API to work with tag attributes.", | ||
"main": "lib/index.js", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
} | ||
}, | ||
"main": "dist/index.cjs", | ||
"module": "./dist/index.mjs", | ||
"files": [ | ||
"lib" | ||
"dist" | ||
], | ||
@@ -15,2 +22,4 @@ "author": "Kirill Maltsev <maltsevkirill@gmail.com>", | ||
"release": "np", | ||
"build": "unbuild", | ||
"prepack": "unbuild", | ||
"lint": "eslint lib/*.js", | ||
@@ -29,7 +38,8 @@ "pretest": "npm run lint", | ||
"devDependencies": { | ||
"@vitest/coverage-v8": "^1.2.1", | ||
"eslint": "^8.56.0", | ||
"np": "^9.2.0", | ||
"@vitest/coverage-v8": "^1.4.0", | ||
"eslint": "^8.5.7", | ||
"np": "^10.0.0", | ||
"posthtml": "^0.16.6", | ||
"vitest": "^1.2.1" | ||
"unbuild": "^2.0.0", | ||
"vitest": "^1.4.0" | ||
}, | ||
@@ -36,0 +46,0 @@ "engines": { |
@@ -13,3 +13,3 @@ <div align="center"> | ||
[npm]: https://www.npmjs.com/package/posthtml-attrs-parser | ||
[npm-version-shield]: https://img.shields.io/npm/v/posthtml-attrs-parser.svg | ||
[npm-version-shield]: https://img.shields.io/npm/v/posthtml-attrs-parser | ||
[npm-stats]: http://npm-stat.com/charts.html?package=posthtml-attrs-parser | ||
@@ -24,4 +24,2 @@ [npm-stats-shield]: https://img.shields.io/npm/dt/posthtml-attrs-parser.svg | ||
This plugin is ESM-only. | ||
## Usage | ||
@@ -51,2 +49,11 @@ ```js | ||
Both ESM and CJS exports are provided, you can use the plugin in CJS too: | ||
```js | ||
const posthtml = require('posthtml'); | ||
const parseAttrs = require('posthtml-attrs-parser'); | ||
// ... | ||
``` | ||
## Attributes | ||
@@ -53,0 +60,0 @@ |
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
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
11268
173
150
6
5