fetch-node-website
Advanced tools
Comparing version 1.0.0 to 1.1.0
"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
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
23807
8
65
92
3
5
+ Addedora@^3.4.0
+ Addedansi-regex@4.1.1(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcli-cursor@2.1.0(transitive)
+ Addedcli-spinners@2.9.2(transitive)
+ Addedclone@1.0.4(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addeddefaults@1.0.4(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedlog-symbols@2.2.0(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addedonetime@2.0.1(transitive)
+ Addedora@3.4.0(transitive)
+ Addedrestore-cursor@2.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstrip-ansi@5.2.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedwcwidth@1.0.1(transitive)
Updatedcore-js@^3.2.1