i18next-xhr-backend
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -0,1 +1,7 @@ | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
import * as utils from './utils'; | ||
@@ -6,3 +12,3 @@ | ||
// Must encode data | ||
if (data && (typeof data === 'undefined' ? 'undefined' : babelHelpers.typeof(data)) === 'object') { | ||
if (data && (typeof data === 'undefined' ? 'undefined' : _typeof(data)) === 'object') { | ||
var y = '', | ||
@@ -77,4 +83,5 @@ e = encodeURIComponent; | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
babelHelpers.classCallCheck(this, Backend); | ||
_classCallCheck(this, Backend); | ||
this.init(services, options); | ||
@@ -85,3 +92,3 @@ | ||
babelHelpers.createClass(Backend, [{ | ||
_createClass(Backend, [{ | ||
key: 'init', | ||
@@ -149,2 +156,3 @@ value: function init(services) { | ||
}]); | ||
return Backend; | ||
@@ -151,0 +159,0 @@ }(); |
{ | ||
"name": "i18next-xhr-backend", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "backend layer for i18next using browsers xhr", | ||
@@ -18,2 +18,3 @@ "main": "./index.js", | ||
"babel-eslint": "6.0.0-beta.5", | ||
"babel-preset-es2015-native-modules": "^6.6.0", | ||
"babel-preset-es2015": "6.6.0", | ||
@@ -61,3 +62,3 @@ "babel-preset-es2015-rollup": "1.1.1", | ||
"copy": "cp ./dist/umd/i18nextXHRBackend.min.js ./i18nextXHRBackend.min.js && cp ./dist/umd/i18nextXHRBackend.js ./i18nextXHRBackend.js", | ||
"build:es": "BABEL_ENV=es babel src --out-dir dist/es", | ||
"build:es": "BABEL_ENV=jsnext babel src --out-dir dist/es", | ||
"build:cjs": "babel src --out-dir dist/commonjs", | ||
@@ -64,0 +65,0 @@ "build:umd": "rollup -c rollup.config.js --format umd && rollup -c rollup.config.js --format umd --uglify", |
39714
708
40