fetch-node-website
Advanced tools
Comparing version 4.1.1 to 5.0.0
@@ -1,2 +0,2 @@ | ||
"use strict";require("core-js/modules/es.promise");require("core-js/modules/es.string.replace");var _got=_interopRequireDefault(require("got")); | ||
"use strict";var _got=_interopRequireDefault(require("got")); | ||
@@ -11,3 +11,3 @@ var _options=require("./options.js"); | ||
const pathA=path.replace(LEADING_SLASH_REGEXP,""); | ||
const response=await(0,_got.default)(pathA,{prefixUrl:mirror,stream:true}); | ||
const response=await _got.default.stream(pathA,{prefixUrl:mirror}); | ||
@@ -14,0 +14,0 @@ (0,_progress.addProgress)(response,progress,path); |
@@ -1,10 +0,9 @@ | ||
"use strict";require("core-js/modules/es.promise");Object.defineProperty(exports,"__esModule",{value:true});exports.addProgress=void 0;var _util=require("util"); | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.addProgress=void 0;var _stream=require("stream"); | ||
var _util=require("util"); | ||
var _cliProgress=require("cli-progress"); | ||
var _endOfStream=_interopRequireDefault(require("end-of-stream")); | ||
var _chalk=require("chalk"); | ||
var _figures=require("figures");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}} | ||
var _figures=require("figures"); | ||
const pEndOfStream=(0,_util.promisify)(_endOfStream.default); | ||
const pFinished=(0,_util.promisify)(_stream.finished); | ||
@@ -25,4 +24,4 @@ | ||
try{ | ||
await pEndOfStream(response,{writable:false}); | ||
}catch(_unused){} | ||
await pFinished(response,{writable:false}); | ||
}catch{} | ||
@@ -29,0 +28,0 @@ stopBar(bar); |
@@ -0,1 +1,7 @@ | ||
# 5.0.0 | ||
## Breaking changes | ||
- Minimal supported Node.js version is now `10.17.0` | ||
# 4.1.1 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "fetch-node-website", | ||
"version": "4.1.1", | ||
"version": "5.0.0", | ||
"main": "build/src/main.js", | ||
@@ -55,10 +55,9 @@ "files": [ | ||
"cli-progress": "^3.4.0", | ||
"core-js": "^3.4.7", | ||
"end-of-stream": "^1.4.4", | ||
"core-js": "^3.6.0", | ||
"figures": "^3.1.0", | ||
"got": "10.0.0-alpha.2.2", | ||
"got": "^10.2.0", | ||
"jest-validate": "^24.9.0" | ||
}, | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^0.30.61", | ||
"@ehmicky/dev-tasks": "^0.30.71", | ||
"ava": "^2.4.0", | ||
@@ -72,4 +71,4 @@ "get-stream": "^5.1.0", | ||
"engines": { | ||
"node": ">=8.12.0" | ||
"node": ">=10.17.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
6
31627
+ Added@sindresorhus/is@2.1.1(transitive)
+ Added@szmarczak/http-timer@4.0.6(transitive)
+ Addedcacheable-lookup@2.0.1(transitive)
+ Addedcacheable-request@7.0.4(transitive)
+ Addeddecompress-response@5.0.0(transitive)
+ Addeddefer-to-connect@2.0.1(transitive)
+ Addedgot@10.7.0(transitive)
+ Addednormalize-url@6.1.0(transitive)
+ Addedp-event@4.2.0(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-timeout@3.2.0(transitive)
+ Addedresponselike@2.0.1(transitive)
+ Addedtype-fest@0.10.0(transitive)
- Removedend-of-stream@^1.4.4
- Removed@sindresorhus/is@1.2.0(transitive)
- Removed@szmarczak/http-timer@2.1.0(transitive)
- Removed@types/tough-cookie@2.3.11(transitive)
- Removedcacheable-lookup@0.2.2(transitive)
- Removedcacheable-request@6.1.0(transitive)
- Removeddecompress-response@4.2.1(transitive)
- Removeddefer-to-connect@1.1.3(transitive)
- Removedgot@10.0.0-alpha.2.2(transitive)
- Removedjson-buffer@3.0.0(transitive)
- Removedkeyv@3.1.0(transitive)
- Removedlowercase-keys@1.0.1(transitive)
- Removednormalize-url@4.5.1(transitive)
- Removedresponselike@1.0.2(transitive)
- Removedtype-fest@0.8.1(transitive)
Updatedcore-js@^3.6.0
Updatedgot@^10.2.0