Skip to content

Commit

Permalink
new release
Browse files Browse the repository at this point in the history
  • Loading branch information
maurictg committed Sep 23, 2020
1 parent d86cd35 commit d13c5c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,13 @@ If you are using NodeJS, you have to use the global like this:
The following helpers are out-of-the-box. You can also [add your own helper](#create-your-own-helper).

### $.ajax(options, callback)

**XSRF**
All QQuery's XHR helpers automatically add the XSRF-token if ```<meta name="csrf-token">``` is present.

HQuery will add the X-CSRF-TOKEN header automatically for you.


Create a XHR request to a server.
The options parameter accepts the following object:
```js
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@blocksharp/qquery",
"version": "1.0.0",
"version": "1.0.1",
"description": "QQuery is a small and lightweight JQuery alternative",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import { ajax, post, get, getJSON, serializeJSON } from './helpers';
import $ from './selector';

/**
* QQuery version 1.0.0
* QQuery version 1.0.1
* © 2020 maurictg, MIT Licence
*/

let QQuery = function() {
return {
extensions: { fadeIn, fadeOut, serialize },
version: '1.0.0',
version: '1.0.1',
init: function() {
const helpers = { ajax, post, get, getJSON, serializeJSON };
for (const [k, v] of Object.entries(helpers)) {
Expand Down

0 comments on commit d13c5c3

Please sign in to comment.