Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/1.3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffan committed Jun 8, 2017
2 parents 00c2af8 + 69e09ad commit d66759e
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 103 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ $ npm install vue-resource
```

### CDN
Available on [jsdelivr](https://cdn.jsdelivr.net/npm/[email protected].3), [unpkg](https://unpkg.com/[email protected].3) or [cdnjs](https://cdnjs.com/libraries/vue-resource).
Available on [jsdelivr](https://cdn.jsdelivr.net/npm/[email protected].4), [unpkg](https://unpkg.com/[email protected].4) or [cdnjs](https://cdnjs.com/libraries/vue-resource).
```html
<script src="https://cdn.jsdelivr.net/npm/[email protected].3"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].4"></script>
```

## Example
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue-resource",
"main": "dist/vue-resource.js",
"version": "1.3.3",
"version": "1.3.4",
"description": "The HTTP client for Vue.js",
"homepage": "https://github.com/pagekit/vue-resource",
"license": "MIT",
Expand Down
3 changes: 2 additions & 1 deletion build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ rollup.rollup({
}).code, bundle);
})
.then(function (bundle) {
var code = fs.readFileSync('dist/vue-resource.js', 'utf8');
return write('dist/vue-resource.min.js',
banner + '\n' + uglify.minify('dist/vue-resource.js').code,
banner + '\n' + uglify.minify(code).code,
bundle);
})
.then(function (bundle) {
Expand Down
8 changes: 4 additions & 4 deletions dist/vue-resource.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-resource v1.3.3
* vue-resource v1.3.4
* https://github.com/pagekit/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1138,7 +1138,7 @@ var Client = function (context) {
}

function Client(request) {
return new PromiseObj(function (resolve) {
return new PromiseObj(function (resolve, reject) {

function exec() {

Expand All @@ -1163,10 +1163,10 @@ var Client = function (context) {
resHandlers.forEach(function (handler) {
response = when(response, function (response) {
return handler.call(context, response) || response;
});
}, reject);
});

when(response, resolve);
when(response, resolve, reject);

return;
}
Expand Down
8 changes: 4 additions & 4 deletions dist/vue-resource.es2015.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-resource v1.3.3
* vue-resource v1.3.4
* https://github.com/pagekit/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1136,7 +1136,7 @@ var Client = function (context) {
}

function Client(request) {
return new PromiseObj(function (resolve) {
return new PromiseObj(function (resolve, reject) {

function exec() {

Expand All @@ -1161,10 +1161,10 @@ var Client = function (context) {
resHandlers.forEach(function (handler) {
response = when(response, function (response) {
return handler.call(context, response) || response;
});
}, reject);
});

when(response, resolve);
when(response, resolve, reject);

return;
}
Expand Down
8 changes: 4 additions & 4 deletions dist/vue-resource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-resource v1.3.3
* vue-resource v1.3.4
* https://github.com/pagekit/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -1142,7 +1142,7 @@ var Client = function (context) {
}

function Client(request) {
return new PromiseObj(function (resolve) {
return new PromiseObj(function (resolve, reject) {

function exec() {

Expand All @@ -1167,10 +1167,10 @@ var Client = function (context) {
resHandlers.forEach(function (handler) {
response = when(response, function (response) {
return handler.call(context, response) || response;
});
}, reject);
});

when(response, resolve);
when(response, resolve, reject);

return;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/vue-resource.min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-resource",
"version": "1.3.3",
"version": "1.3.4",
"main": "dist/vue-resource.common.js",
"module": "dist/vue-resource.es2015.js",
"unpkg": "dist/vue-resource.min.js",
Expand Down Expand Up @@ -31,19 +31,19 @@
"got": false
},
"dependencies": {
"got": "^6.7.1"
"got": "^7.0.0"
},
"devDependencies": {
"buble": "^0.15.2",
"buble-loader": "^0.4.1",
"generate-release": "^0.12.0",
"generate-release": "^0.13.0",
"jasmine-core": "^2.6.2",
"jest": "^20.0.3",
"jest": "^20.0.4",
"replace-in-file": "^2.5.0",
"rollup": "^0.41.6",
"rollup": "^0.42.0",
"rollup-plugin-buble": "^0.15.0",
"uglify-js": "2.8.25",
"uglify-js": "^3.0.15",
"vue": "^2.3.3",
"webpack": "^2.5.1"
"webpack": "^2.6.1"
}
}
6 changes: 3 additions & 3 deletions src/http/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function (context) {
}

function Client(request) {
return new Promise(resolve => {
return new Promise((resolve, reject) => {

function exec() {

Expand All @@ -41,10 +41,10 @@ export default function (context) {
resHandlers.forEach(handler => {
response = when(response, response => {
return handler.call(context, response) || response;
});
}, reject);
});

when(response, resolve);
when(response, resolve, reject);

return;
}
Expand Down
Loading

0 comments on commit d66759e

Please sign in to comment.