gulp-deploy-http-push
Advanced tools
Comparing version 0.0.3 to 0.0.5
@@ -27,6 +27,5 @@ "use strict"; | ||
steps.push(function reduce(next) { | ||
// console.log('FFF', file.content); | ||
upload_1.upload(receiver, to, info, file.getHashRelease ? file.getHashRelease() : file.relative, file.getContent ? file.getContent() : file.contents && file.contents.toString(), file, function (error) { | ||
upload_1.upload(receiver, to, info, file.getHashRelease ? file.getHashRelease() : file.relative, file.contents, file, function (error) { | ||
if (error) { | ||
if (error.errno === 100302 || error.errno === 100305) { | ||
if (error.errno > 100000) { | ||
// 检测到后端限制了上传,要求用户输入信息再继续。 | ||
@@ -33,0 +32,0 @@ if (!authApi || !validateApi) { |
@@ -6,3 +6,3 @@ export declare function httpPush(options: IDeployOption[]): any; | ||
/** 符合条件的文件的glob */ | ||
match: string; | ||
match?: string; | ||
/** 要部署的basePath */ | ||
@@ -9,0 +9,0 @@ to: string; |
@@ -14,2 +14,3 @@ "use strict"; | ||
function httpPush(options) { | ||
console.log('[gulp-deploy-http-push] httpPush() is deprecated, use push() instead'); | ||
var restrictor = new restrictor_1.Restrictor(); | ||
@@ -21,5 +22,5 @@ return new Transform({ | ||
options.forEach(function (option) { | ||
if (filter_1.include(file.path, option.match, { | ||
if (!option.match || (option.match && filter_1.include(file.path, option.match, { | ||
root: file.base, | ||
})) { | ||
}))) { | ||
restrictor.add({ | ||
@@ -26,0 +27,0 @@ host: option.host, |
export { Deploy } from './deploy'; | ||
export { httpPush } from './http-push'; | ||
export { push } from './push'; |
@@ -13,1 +13,3 @@ "use strict"; | ||
exports.httpPush = http_push_1.httpPush; | ||
var push_1 = require("./push"); | ||
exports.push = push_1.push; |
{ | ||
"name": "gulp-deploy-http-push", | ||
"version": "0.0.3", | ||
"version": "0.0.5", | ||
"discription": "gulp-deploy-http-push", | ||
@@ -21,5 +21,5 @@ "scripts": { | ||
"type": "git", | ||
"url": "git+http://github.com/searchfe/gulp-deploy-http-push" | ||
"url": "git+http://xxx.com/demo" | ||
}, | ||
"homepage": "https://github.com/searchfe/gulp-deploy-http-push", | ||
"homepage": "http://xxx.com/demo", | ||
"devDependencies": { | ||
@@ -57,3 +57,4 @@ "@types/chai": "^4.1.4", | ||
"dependencies": { | ||
"prompt": "^1.0.0" | ||
"prompt": "^1.0.0", | ||
"readable-stream": "^3.4.0" | ||
}, | ||
@@ -60,0 +61,0 @@ "engines": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
415132
29
11690
2
6
+ Addedreadable-stream@^3.4.0
+ Addedinherits@2.0.4(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedutil-deprecate@1.0.2(transitive)