Socket
Socket
Sign inDemoInstall

posthtml-fetch

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

posthtml-fetch - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

4

lib/index.js

@@ -0,3 +1,3 @@

const path = require('path')
const got = require('got')
const path = require('path')
const isUrl = require('is-url')

@@ -31,3 +31,3 @@ const posthtml = require('posthtml')

if (node.attrs && node.attrs[options.attribute]) {
let url = options.got.url || node.attrs[options.attribute]
const url = options.got.url || node.attrs[options.attribute]

@@ -34,0 +34,0 @@ all.push(new Promise((resolve, reject) => {

{
"name": "posthtml-fetch",
"description": "PostHTML plugin for fetching and displaying remote content.",
"version": "2.2.0",
"version": "3.0.0",
"license": "MIT",

@@ -12,6 +12,6 @@ "author": "Cosmin Popovici (https://github.com/cossssmin)",

"engines": {
"node": ">=12"
"node": ">=14.0.0"
},
"scripts": {
"test": "nyc ava --verbose",
"test": "c8 ava --verbose",
"pretest": "xo",

@@ -43,7 +43,7 @@ "release": "np"

"devDependencies": {
"ava": "^4.1.0",
"ava": "^5.2.0",
"c8": "^7.12.0",
"np": "^7.0.0",
"nyc": "^15.1.0",
"xo": "^0.44.0"
"xo": "^0.53.1"
}
}

@@ -7,4 +7,4 @@ <div align="center">

[![Version][npm-version-shield]][npm]
[![Build][github-ci-shield]][github-ci]
[![License][license-shield]][license]
[![Build][github-ci-shield]][github-ci]
[![Downloads][npm-stats-shield]][npm-stats]

@@ -235,4 +235,4 @@ </div>

[github-ci]: https://github.com/posthtml/posthtml-fetch/actions
[github-ci-shield]: https://img.shields.io/github/workflow/status/posthtml/posthtml-fetch/Node.js%20CI
[github-ci-shield]: https://github.com/posthtml/posthtml-fetch/actions/workflows/nodejs.yml/badge.svg
[license]: ./license
[license-shield]: https://img.shields.io/npm/l/posthtml-fetch.svg
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