posthtml-fetch
Advanced tools
Comparing version 2.2.0 to 3.0.0
@@ -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 |
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
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
10823