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/0.9.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
steffans committed Jul 1, 2016
2 parents 47e345d + 525939c commit e48b6fe
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 16 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ $ bower install vue-resource
```

### CDN
Available on [jsdelivr](https://cdn.jsdelivr.net/vue.resource/0.9.2/vue-resource.min.js), [cdnjs](https://cdnjs.com/libraries/vue-resource) or [npmcdn](https://npmcdn.com/[email protected].2/dist/vue-resource.min.js).
Available on [jsdelivr](https://cdn.jsdelivr.net/vue.resource/0.9.3/vue-resource.min.js), [cdnjs](https://cdnjs.com/libraries/vue-resource) or [npmcdn](https://npmcdn.com/[email protected].3/dist/vue-resource.min.js).
```html
<script src="https://cdn.jsdelivr.net/vue.resource/0.9.2/vue-resource.min.js"></script>
<script src="https://cdn.jsdelivr.net/vue.resource/0.9.3/vue-resource.min.js"></script>
```

## Documentation
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vue-resource",
"main": "dist/vue-resource.js",
"description": "A web request service for Vue.js",
"version": "0.9.2",
"version": "0.9.3",
"homepage": "https://github.com/vuejs/vue-resource",
"license": "MIT",
"ignore": [
Expand Down
3 changes: 1 addition & 2 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ var rollup = require('rollup');
var uglify = require('uglify-js');
var babel = require('rollup-plugin-babel');
var package = require('../package.json');
var version = process.env.VERSION || package.version;
var banner =
"/*!\n" +
" * vue-resource v" + version + "\n" +
" * vue-resource v" + package.version + "\n" +
" * https://github.com/vuejs/vue-resource\n" +
" * Released under the MIT License.\n" +
" */\n";
Expand Down
20 changes: 20 additions & 0 deletions build/release.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
var replace = require('replace-in-file');
var version = process.argv[2];

replace({
files: "bower.json",
replace: /("version"\s*:\s*")\d+\.\d+\.\d+("\s*,)/g,
with: "$1" + version + "$2"
});

replace({
files: "package.json",
replace: /("version"\s*:\s*")\d+\.\d+\.\d+("\s*,)/g,
with: "$1" + version + "$2"
});

replace({
files: "README.md",
replace: /(\/|@)\d+\.\d+\.\d+/g,
with: "$1" + version
});
4 changes: 2 additions & 2 deletions dist/vue-resource.common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-resource v0.9.2
* vue-resource v0.9.3
* https://github.com/vuejs/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -913,7 +913,7 @@ function timeout (request, next) {

if (request.timeout) {
timeout = setTimeout(function () {
request.cancel();
request.abort();
}, request.timeout);
}

Expand Down
4 changes: 2 additions & 2 deletions dist/vue-resource.es2015.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-resource v0.9.2
* vue-resource v0.9.3
* https://github.com/vuejs/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -911,7 +911,7 @@ function timeout (request, next) {

if (request.timeout) {
timeout = setTimeout(function () {
request.cancel();
request.abort();
}, request.timeout);
}

Expand Down
4 changes: 2 additions & 2 deletions dist/vue-resource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* vue-resource v0.9.2
* vue-resource v0.9.3
* https://github.com/vuejs/vue-resource
* Released under the MIT License.
*/
Expand Down Expand Up @@ -917,7 +917,7 @@

if (request.timeout) {
timeout = setTimeout(function () {
request.cancel();
request.abort();
}, request.timeout);
}

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

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "vue-resource",
"version": "0.9.2",
"version": "0.9.3",
"description": "A web request service for Vue.js",
"main": "dist/vue-resource.common.js",
"jsnext:main": "dist/vue-resource.es2015.js",
"scripts": {
"test": "webpack --config test/webpack.config.js",
"build": "node build/build.js",
"test": "webpack --config test/webpack.config.js"
"release": "node build/release.js"
},
"repository": {
"type": "git",
Expand All @@ -31,6 +32,7 @@
"babel-preset-es2015-loose-rollup": "^7.0.0",
"babel-runtime": "^6.9.2",
"jasmine-core": "^2.3.4",
"replace-in-file": "^1.1.1",
"rollup": "^0.33.0",
"rollup-plugin-babel": "^2.6.1",
"uglify-js": "^2.6.4",
Expand Down
2 changes: 1 addition & 1 deletion src/http/interceptor/timeout.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function (request, next) {

if (request.timeout) {
timeout = setTimeout(() => {
request.cancel();
request.abort();
}, request.timeout);
}

Expand Down

0 comments on commit e48b6fe

Please sign in to comment.