Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-node-website

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-node-website - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

build/src/spinner.js

8

build/src/main.js
"use strict";require("core-js/modules/es.promise");require("core-js/modules/es.string.replace");var _process=require("process");
var _crossFetch=_interopRequireDefault(require("cross-fetch"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}
var _crossFetch=_interopRequireDefault(require("cross-fetch"));
var _spinner=require("./spinner.js");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}
const fetchNodeWebsite=async function(path){
const fetchNodeWebsite=async function(path,{progress=true}={}){
const url=getUrl(path);

@@ -15,2 +17,4 @@

(0,_spinner.addSpinner)(response,progress);
return response;

@@ -17,0 +21,0 @@ };

{
"name": "fetch-node-website",
"version": "1.0.0",
"version": "1.1.0",
"main": "build/src/main.js",

@@ -53,10 +53,12 @@ "files": [

"dependencies": {
"core-js": "^3.2.0",
"cross-fetch": "^3.0.4"
"core-js": "^3.2.1",
"cross-fetch": "^3.0.4",
"ora": "^3.4.0"
},
"devDependencies": {
"ava": "^2.2.0",
"ava": "^2.3.0",
"gulp": "^4.0.2",
"gulp-shared-tasks": "^0.30.34",
"husky": "^3.0.3"
"gulp-shared-tasks": "^0.30.35",
"husky": "^3.0.4",
"sinon": "^7.4.1"
},

@@ -63,0 +65,0 @@ "engines": {

@@ -34,7 +34,15 @@ [![Codecov](https://img.shields.io/codecov/c/github/ehmicky/fetch-node-website.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/fetch-node-website)

## fetchNodeWebsite(path)
## fetchNodeWebsite(path, options?)
`path`: `string`<br> _Returns_:
`path`: `string`<br> `options`: `object`<br>_Returns_:
[`Promise<FetchResponse>`](https://developer.mozilla.org/en-US/docs/Web/API/Response)
### options
#### progress
_Type_: `boolean`<br>_Default_: `true`
Show a loading spinner.
## Node.js mirror

@@ -50,3 +58,3 @@

- [`get-node`](https://github.com/ehmicky/get-node): Download Node.js
- [`normalize-node-version`](https://github.com/ehmicky/normalize-node-versions):
- [`normalize-node-version`](https://github.com/ehmicky/normalize-node-version):
Normalize and validate Node.js versions

@@ -53,0 +61,0 @@ - [`all-node-versions`](https://github.com/ehmicky/all-node-versions): List all

Sorry, the diff of this file is not supported yet

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