Skip to content

Commit

Permalink
v1.3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
zack9433 committed Oct 20, 2016
2 parents 9bccd4f + 37f9b29 commit 07468d0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions app/component/restful.provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ class RestProvider {
url: base + uri,
method: 'POST',
data: {
files: files,
otherInfo: data
files: files
}
};
if (data) {
setting.data.jsonData = JSON.stringify(data);
}
return Upload.upload(Object.assign(setting, options));
}
else {
Expand All @@ -47,10 +49,12 @@ class RestProvider {
url: base + uri,
method: 'PUT',
data: {
files: files,
otherInfo: data
files: files
}
};
if (data) {
setting.data.jsonData = JSON.stringify(data);
}
return Upload.upload(Object.assign(setting, options));
}
else {
Expand Down
2 changes: 1 addition & 1 deletion dist/sanji-rest-ui.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sanji-rest-ui",
"author": "Zack Yang <[email protected]> (https://github.com/zack9433)",
"description": "sanji-rest-ui UI",
"version": "1.3.10",
"version": "1.3.11",
"main": "dist/sanji-rest-ui.js",
"config": {
"ghooks": {
Expand All @@ -19,7 +19,7 @@
"prebuild": "rimraf dist && mkdir dist",
"build": "cross-env NODE_ENV=production webpack --config webpack.build.js --display-modules",
"commit": "git-cz",
"check-coverage": "istanbul check-coverage --statements 75 --branches 50 --functions 75 --lines 75",
"check-coverage": "istanbul check-coverage --statements 70 --branches 50 --functions 70 --lines 70",
"report-coverage": "cat ./coverage/lcov.info | codecov",
"start": "cross-env NODE_ENV=development node server/dev-server.js",
"postpublish": "publish-latest",
Expand Down

0 comments on commit 07468d0

Please sign in to comment.