@fdaciuk/ajax
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "@fdaciuk/ajax", | ||
"description": "Ajax module in Vanilla JS", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "dist/ajax.min.js", | ||
@@ -6,0 +6,0 @@ "directories": { |
@@ -14,2 +14,3 @@ # Ajax | ||
[![CONTRIBUTING][contributing-image]][contributing-url] | ||
[![browser support][testling-image]][testling-url] | ||
@@ -84,2 +85,3 @@ You can use this module with _AMD_, _CommonJS_ or just like a method of `window` object! | ||
ajax.get( '/api/users' ); | ||
ajax.get( '/api/users/john' ); | ||
``` | ||
@@ -89,7 +91,7 @@ | ||
> Save a new register. | ||
> Save a new register or update part of this one. | ||
```js | ||
var ajax = new Ajax(); | ||
ajax.post( '/api/users', { data: 'value' }); | ||
ajax.post( '/api/users', { slug: 'john' }); | ||
``` | ||
@@ -99,7 +101,7 @@ | ||
> Upgrade part of a register. | ||
> Update an entire register. | ||
```js | ||
var ajax = new Ajax(); | ||
ajax.put( '/api/users', { slug: 'john' }); | ||
ajax.put( '/api/users', { slug: 'john', age: 37 }); | ||
``` | ||
@@ -175,1 +177,3 @@ | ||
[contributing-url]: CONTRIBUTING.md | ||
[testling-image]: https://ci.testling.com/fdaciuk/ajax.png | ||
[testling-url]: https://ci.testling.com/fdaciuk/ajax |
6013
175