diff --git a/README.md b/README.md index ee81faa..c09e592 100644 --- a/README.md +++ b/README.md @@ -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 `````` 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 diff --git a/package.json b/package.json index b989529..ad0bf19 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index cfd8cd1..6d90d00 100644 --- a/src/index.js +++ b/src/index.js @@ -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)) {