Comparing version 0.3.17 to 0.3.18
@@ -47,3 +47,3 @@ { | ||
"name": "febs", | ||
"version": "0.3.17" | ||
"version": "0.3.18" | ||
} |
@@ -111,2 +111,3 @@ 'use strict'; | ||
* @resolve | ||
* - data: 返回给客户端的数据. | ||
*/ | ||
@@ -121,3 +122,3 @@ exports.accept = function(app, finishCB, sessionGet, sessionSet, sessionClear) | ||
app.response.body = {err:'method is not post'}; | ||
resolve(); | ||
resolve(app.response.body); | ||
return; | ||
@@ -130,3 +131,3 @@ } | ||
app.response.body = {err:'leak param crc32'}; | ||
resolve(); | ||
resolve(app.response.body); | ||
return; | ||
@@ -140,3 +141,3 @@ } | ||
app.response.body = {err:'上传请求已经过期'}; | ||
resolve(); | ||
resolve(app.response.body); | ||
return; | ||
@@ -150,3 +151,3 @@ } | ||
app.response.body = {err:'crc32错误'}; | ||
resolve(); | ||
resolve(app.response.body); | ||
return; | ||
@@ -181,3 +182,3 @@ } | ||
app.response.body = fn; | ||
resolve(); | ||
resolve(app.response.body); | ||
}) | ||
@@ -193,3 +194,3 @@ .catch(err=>{ | ||
app.response.body = {err:0}; | ||
resolve(); | ||
resolve(app.response.body); | ||
}) | ||
@@ -196,0 +197,0 @@ .catch(err=>{ |
@@ -569,3 +569,3 @@ // Type definitions for febs | ||
*/ | ||
function accept(app: any, finishCB: (filename: string) => Promise<any>, sessionGet: () => any, sessionSet: (data: any) => void, sessionClear: () => void): Promise<void>; | ||
function accept(app: any, finishCB: (filename: string) => Promise<any>, sessionGet: () => any, sessionSet: (data: any) => void, sessionClear: () => void): Promise<any>; | ||
/** | ||
@@ -572,0 +572,0 @@ * @desc: 在用户登出或其他中断传输中清除上传的数据. |
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
690094
7186