New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hast-util-to-dom

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hast-util-to-dom - npm Package Compare versions

Comparing version 2.0.6 to 3.0.0

index.d.ts

100

package.json
{
"name": "hast-util-to-dom",
"version": "2.0.6",
"version": "3.0.0",
"description": "hast utility to transform to the DOM",

@@ -27,65 +27,52 @@ "license": "ISC",

],
"main": "dist/hast-util-to-dom.js",
"module": "dist/hast-util-to-dom.mjs",
"sideEffects": false,
"type": "module",
"main": "index.js",
"types": "index.d.ts",
"files": [
"dist/"
"lib/",
"index.d.ts",
"index.js"
],
"dependencies": {
"property-information": "^5.1.0",
"web-namespaces": "^1.1.3"
"property-information": "^6.0.0",
"web-namespaces": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/plugin-external-helpers": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@rollup/plugin-babel": "^5.0.0",
"@rollup/plugin-commonjs": "^15.0.0",
"@rollup/plugin-json": "^4.0.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"babel-eslint": "^10.0.0",
"babel-jest": "^26.0.0",
"eslint": "^7.0.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.0.0",
"@types/jsdom": "^16.0.0",
"@types/tape": "^4.0.0",
"@types/w3c-xmlserializer": "^2.0.0",
"c8": "^7.0.0",
"glob": "^7.0.0",
"hastscript": "^6.0.0",
"jasmine-core": "^3.0.0",
"jest-cli": "^26.0.0",
"karma": "^5.0.0",
"karma-chrome-launcher": "^3.0.0",
"karma-firefox-launcher": "^1.0.0",
"karma-jasmine": "^4.0.0",
"karma-mocha-reporter": "^2.0.0",
"karma-rollup-preprocessor": "^7.0.0",
"karma-safari-launcher": "^1.0.0",
"remark-cli": "^8.0.0",
"remark-preset-wooorm": "^7.0.0",
"rollup": "^2.0.0",
"w3c-xmlserializer": "^2.0.0"
"hastscript": "^7.0.0",
"jsdom": "^16.5.3",
"prettier": "^2.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",
"w3c-xmlserializer": "^2.0.0",
"xo": "^0.39.0"
},
"scripts": {
"clean": "rm -rf dist",
"build": "rollup -c",
"lint": "remark . -qfo && eslint . --fix",
"test": "jest",
"test:karma": "karma start --single-run --browsers ChromeHeadless,FirefoxHeadless,Safari karma.conf.js",
"test:karma:chrome": "karma start --single-run --browsers ChromeHeadless karma.conf.js",
"test:karma:firefox": "karma start --single-run --browsers FirefoxHeadless karma.conf.js",
"test:karma:safari": "karma start --single-run --browsers Safari karma.conf.js",
"test:dev": "jest --watchAll"
"prepack": "npm run build && npm run format",
"build": "rimraf \"{lib/**,test/**,}*.d.ts\" && tsc && type-coverage",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node test/index.js",
"test-coverage": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test/index.js",
"test": "npm run build && npm run format && npm run test-coverage"
},
"jest": {
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"/src/utils.js"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
},
"xo": {
"prettier": true
},
"remarkConfig": {

@@ -95,3 +82,8 @@ "plugins": [

]
},
"typeCoverage": {
"atLeast": 100,
"detail": true,
"strict": true
}
}

@@ -15,8 +15,5 @@ # hast-util-to-dom

[yarn][]:
This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c):
Node 12+ is needed to use it and it must be `import`ed instead of `require`d.
```sh
yarn add hast-util-to-dom
```
[npm][]:

@@ -74,2 +71,5 @@

This package exports the following identifiers: `toDom`.
There is no default export.
### `toDom(node[, options])`

@@ -87,3 +87,3 @@

Document interface to use (default: `global.document`).
Document interface to use (default: `globalThis.document`).

@@ -125,5 +125,5 @@ ###### `options.namespace`

[build-badge]: https://img.shields.io/travis/syntax-tree/hast-util-to-dom.svg
[build-badge]: https://github.com/syntax-tree/hast-util-to-dom/workflows/main/badge.svg
[build]: https://travis-ci.org/syntax-tree/hast-util-to-dom
[build]: https://github.com/syntax-tree/hast-util-to-dom/actions

@@ -152,4 +152,2 @@ [coverage-badge]: https://img.shields.io/codecov/c/github/syntax-tree/hast-util-to-dom.svg

[yarn]: https://yarnpkg.com/lang/en/docs/install
[npm]: https://docs.npmjs.com/cli/install

@@ -156,0 +154,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc