i18next-xhr-backend
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -0,1 +1,5 @@ | ||
### 3.0.1 | ||
- typescript: Fix the types and use exposed types from i18next [319](https://github.com/i18next/i18next-xhr-backend/pull/319) | ||
### 3.0.0 | ||
@@ -2,0 +6,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).i18nextXHRBackend=e()}(this,function(){"use strict";function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=[],o=e.forEach,n=e.slice;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return(r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)})(t)}function a(t,e){if(e&&"object"===r(e)){var o="",n=encodeURIComponent;for(var i in e)o+="&"+n(i)+"="+n(e[i]);if(!o)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+o.slice(1)}return t}function s(t,e,o,n,i){n&&"object"===r(n)&&(i||(n._t=new Date),n=a("",n).slice(1)),e.queryStringParams&&(t=a(t,e.queryStringParams));try{var s;(s=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,n&&s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var l=e.customHeaders;if(l)for(var u in l)s.setRequestHeader(u,l[u]);s.onreadystatechange=function(){s.readyState>3&&o&&o(s.responseText,s)},s.send(n)}catch(t){console&&console.log(t)}}var l=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.init(t,o),this.type="backend"}var i,r,a;return i=e,(r=[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=t,this.options=function(t){return o.call(n.call(arguments,1),function(e){if(e)for(var o in e)void 0===t[o]&&(t[o]=e[o])}),t}(e,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:s})}},{key:"readMulti",value:function(t,e,o){var n=this.options.loadPath;"function"==typeof this.options.loadPath&&(n=this.options.loadPath(t,e));var i=this.services.interpolator.interpolate(n,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(i,o)}},{key:"read",value:function(t,e,o){var n=this.options.loadPath;"function"==typeof this.options.loadPath&&(n=this.options.loadPath([t],[e]));var i=this.services.interpolator.interpolate(n,{lng:t,ns:e});this.loadUrl(i,o)}},{key:"loadUrl",value:function(t,e){var o=this;this.options.ajax(t,this.options,function(n,i){if(i.status>=500&&i.status<600)return e("failed loading "+t,!0);if(i.status>=400&&i.status<500)return e("failed loading "+t,!1);var r,a;try{r=o.options.parse(n,t)}catch(e){a="failed parsing "+t+" to json"}if(a)return e(a,!1);e(null,r)})}},{key:"create",value:function(t,e,o,n){var i=this;"string"==typeof t&&(t=[t]);var r={};r[o]=n||"",t.forEach(function(t){var o=i.services.interpolator.interpolate(i.options.addPath,{lng:t,ns:e});i.options.ajax(o,i.options,function(t,e){},r)})}}])&&t(i.prototype,r),a&&t(i,a),e}();return l.type="backend",l}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).i18nextXHRBackend=e()}(this,function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var e=[],n=e.forEach,o=e.slice;function i(t){return n.call(o.call(arguments,1),function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return(a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}function s(t,e){if(e&&"object"===a(e)){var n="",o=encodeURIComponent;for(var i in e)n+="&"+o(i)+"="+o(e[i]);if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t}function l(t,e,n,o,i){o&&"object"===a(o)&&(i||(o._t=new Date),o=s("",o).slice(1)),e.queryStringParams&&(t=s(t,e.queryStringParams));try{var r;(r=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(o?"POST":"GET",t,1),e.crossDomain||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.withCredentials=!!e.withCredentials,o&&r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.overrideMimeType&&r.overrideMimeType("application/json");var l=e.customHeaders;if(l)for(var u in l)r.setRequestHeader(u,l[u]);r.onreadystatechange=function(){r.readyState>3&&n&&n(r.responseText,r)},r.send(o)}catch(t){console&&console.log(t)}}function u(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:l}}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.init(t,n),this.type="backend"}var n,o,r;return n=e,(o=[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=t,this.options=i(e,this.options||{},u())}},{key:"readMulti",value:function(t,e,n){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath(t,e));var i=this.services.interpolator.interpolate(o,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(i,n)}},{key:"read",value:function(t,e,n){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath([t],[e]));var i=this.services.interpolator.interpolate(o,{lng:t,ns:e});this.loadUrl(i,n)}},{key:"loadUrl",value:function(t,e){var n=this;this.options.ajax(t,this.options,function(o,i){if(i.status>=500&&i.status<600)return e("failed loading "+t,!0);if(i.status>=400&&i.status<500)return e("failed loading "+t,!1);var r,a;try{r=n.options.parse(o,t)}catch(e){a="failed parsing "+t+" to json"}if(a)return e(a,!1);e(null,r)})}},{key:"create",value:function(t,e,n,o){var i=this;"string"==typeof t&&(t=[t]);var r={};r[n]=o||"",t.forEach(function(t){var n=i.services.interpolator.interpolate(i.options.addPath,{lng:t,ns:e});i.options.ajax(n,i.options,function(t,e){},r)})}}])&&t(n.prototype,o),r&&t(n,r),e}();return c.type="backend",c}); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).i18nextXHRBackend=e()}(this,function(){"use strict";function t(t,e){for(var o=0;o<e.length;o++){var n=e[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var e=[],o=e.forEach,n=e.slice;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return(r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":i(t)})(t)}function a(t,e){if(e&&"object"===r(e)){var o="",n=encodeURIComponent;for(var i in e)o+="&"+n(i)+"="+n(e[i]);if(!o)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+o.slice(1)}return t}function s(t,e,o,n,i){n&&"object"===r(n)&&(i||(n._t=new Date),n=a("",n).slice(1)),e.queryStringParams&&(t=a(t,e.queryStringParams));try{var s;(s=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(n?"POST":"GET",t,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,n&&s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var l=e.customHeaders;if(l)for(var u in l)s.setRequestHeader(u,l[u]);s.onreadystatechange=function(){s.readyState>3&&o&&o(s.responseText,s)},s.send(n)}catch(t){console&&console.log(t)}}var l=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.init(t,o),this.type="backend"}var i,r,a;return i=e,(r=[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=t,this.options=function(t){return o.call(n.call(arguments,1),function(e){if(e)for(var o in e)void 0===t[o]&&(t[o]=e[o])}),t}(e,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:s})}},{key:"readMulti",value:function(t,e,o){var n=this.options.loadPath;"function"==typeof this.options.loadPath&&(n=this.options.loadPath(t,e));var i=this.services.interpolator.interpolate(n,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(i,o)}},{key:"read",value:function(t,e,o){var n=this.options.loadPath;"function"==typeof this.options.loadPath&&(n=this.options.loadPath([t],[e]));var i=this.services.interpolator.interpolate(n,{lng:t,ns:e});this.loadUrl(i,o)}},{key:"loadUrl",value:function(t,e){var o=this;this.options.ajax(t,this.options,function(n,i){if(i.status>=500&&i.status<600)return e("failed loading "+t,!0);if(i.status>=400&&i.status<500)return e("failed loading "+t,!1);var r,a;try{r=o.options.parse(n,t)}catch(e){a="failed parsing "+t+" to json"}if(a)return e(a,!1);e(null,r)})}},{key:"create",value:function(t,e,o,n){var i=this;"string"==typeof t&&(t=[t]);var r={};r[o]=n||"",t.forEach(function(t){var o=i.services.interpolator.interpolate(i.options.addPath,{lng:t,ns:e});i.options.ajax(o,i.options,function(t,e){},r)})}}])&&t(i.prototype,r),a&&t(i,a),e}();return l.type="backend",l}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).i18nextXHRBackend=e()}(this,function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var e=[],n=e.forEach,o=e.slice;function i(t){return n.call(o.call(arguments,1),function(e){if(e)for(var n in e)void 0===t[n]&&(t[n]=e[n])}),t}function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){return(a="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(t){return r(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":r(t)})(t)}function s(t,e){if(e&&"object"===a(e)){var n="",o=encodeURIComponent;for(var i in e)n+="&"+o(i)+"="+o(e[i]);if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t}function l(t,e,n,o,i){o&&"object"===a(o)&&(i||(o._t=new Date),o=s("",o).slice(1)),e.queryStringParams&&(t=s(t,e.queryStringParams));try{var r;(r=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(o?"POST":"GET",t,1),e.crossDomain||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.withCredentials=!!e.withCredentials,o&&r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.overrideMimeType&&r.overrideMimeType("application/json");var l=e.customHeaders;if(l)for(var u in l)r.setRequestHeader(u,l[u]);r.onreadystatechange=function(){r.readyState>3&&n&&n(r.responseText,r)},r.send(o)}catch(t){console&&console.log(t)}}function u(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:l}}var c=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.init(t,n),this.type="backend"}var n,o,r;return n=e,(o=[{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=t,this.options=i(e,this.options||{},u())}},{key:"readMulti",value:function(t,e,n){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath(t,e));var i=this.services.interpolator.interpolate(o,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(i,n)}},{key:"read",value:function(t,e,n){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath([t],[e]));var i=this.services.interpolator.interpolate(o,{lng:t,ns:e});this.loadUrl(i,n)}},{key:"loadUrl",value:function(t,e){var n=this;this.options.ajax(t,this.options,function(o,i){if(i.status>=500&&i.status<600)return e("failed loading "+t,!0);if(i.status>=400&&i.status<500)return e("failed loading "+t,!1);var r,a;try{r=n.options.parse(o,t)}catch(e){a="failed parsing "+t+" to json"}if(a)return e(a,!1);e(null,r)})}},{key:"create",value:function(t,e,n,o){var i=this;"string"==typeof t&&(t=[t]);var r={};r[n]=o||"",t.forEach(function(t){var n=i.services.interpolator.interpolate(i.options.addPath,{lng:t,ns:e});i.options.ajax(n,i.options,function(t,e){},r)})}}])&&t(n.prototype,o),r&&t(n,r),e}();return c.type="backend",c}); |
140
index.d.ts
@@ -1,67 +0,89 @@ | ||
declare namespace I18NextXhrBackend { | ||
type LoadPathOption = string | ((lngs: string[], namespaces: string[]) => string); | ||
import * as i18next from "i18next"; | ||
interface BackendOptions { | ||
/** | ||
* path where resources get loaded from, or a function | ||
* returning a path: | ||
* function(lngs, namespaces) { return customPath; } | ||
* the returned path will interpolate lng, ns if provided like giving a static path | ||
*/ | ||
loadPath?: LoadPathOption; | ||
/** | ||
* path to post missing resources | ||
*/ | ||
addPath?: string; | ||
/** | ||
* your backend server supports multiLoading | ||
* locales/resources.json?lng=de+en&ns=ns1+ns2 | ||
* set loadPath: '/locales/resources.json?lng={{lng}}&ns={{ns}}' to adapt to multiLoading | ||
*/ | ||
allowMultiLoading?: boolean; | ||
/** | ||
* parse data after it has been fetched | ||
* in example use https://www.npmjs.com/package/json5 | ||
* here it removes the letter a from the json (bad idea) | ||
*/ | ||
parse?(data: string): string; | ||
/** | ||
* allow cross domain requests | ||
*/ | ||
crossDomain?: boolean; | ||
/** | ||
* allow credentials on cross domain requests | ||
*/ | ||
withCredentials?: boolean; | ||
/** | ||
* define a custom xhr function | ||
* can be used to support XDomainRequest in IE 8 and 9 | ||
*/ | ||
ajax?(url: string, options: BackendOptions, callback: AjaxRequestCallback, data: {} | string, cache: boolean): void; | ||
/** | ||
* adds parameters to resource URL. 'example.com' -> 'example.com?v=1.3.5' | ||
*/ | ||
queryStringParams?: { [key: string]: string }; | ||
type LoadPathOption = | ||
| string | ||
| ((lngs: string[], namespaces: string[]) => string); | ||
/** | ||
* @see https://github.com/i18next/i18next-xhr-backend/blob/281c7e235e1157b33122adacef1957252e5700f1/src/ajax.js#L52 | ||
*/ | ||
customHeaders?: { [key: string]: string }; | ||
} | ||
interface BackendOptions { | ||
/** | ||
* path where resources get loaded from, or a function | ||
* returning a path: | ||
* function(lngs, namespaces) { return customPath; } | ||
* the returned path will interpolate lng, ns if provided like giving a static path | ||
*/ | ||
loadPath?: LoadPathOption; | ||
/** | ||
* path to post missing resources | ||
*/ | ||
addPath?: string; | ||
/** | ||
* your backend server supports multiLoading | ||
* locales/resources.json?lng=de+en&ns=ns1+ns2 | ||
* set loadPath: '/locales/resources.json?lng={{lng}}&ns={{ns}}' to adapt to multiLoading | ||
*/ | ||
allowMultiLoading?: boolean; | ||
/** | ||
* parse data after it has been fetched | ||
* in example use https://www.npmjs.com/package/json5 | ||
* here it removes the letter a from the json (bad idea) | ||
*/ | ||
parse?(data: string): string; | ||
/** | ||
* allow cross domain requests | ||
*/ | ||
crossDomain?: boolean; | ||
/** | ||
* allow credentials on cross domain requests | ||
*/ | ||
withCredentials?: boolean; | ||
/** | ||
* define a custom xhr function | ||
* can be used to support XDomainRequest in IE 8 and 9 | ||
*/ | ||
ajax?( | ||
url: string, | ||
options: BackendOptions, | ||
callback: AjaxRequestCallback, | ||
data: {} | string, | ||
cache: boolean | ||
): void; | ||
/** | ||
* adds parameters to resource URL. 'example.com' -> 'example.com?v=1.3.5' | ||
*/ | ||
queryStringParams?: { [key: string]: string }; | ||
type AjaxRequestCallback = (response: string, x: XMLHttpRequest) => void; | ||
type LoadCallback = (error: any, result: string | false) => void; | ||
/** | ||
* @see https://github.com/i18next/i18next-xhr-backend/blob/281c7e235e1157b33122adacef1957252e5700f1/src/ajax.js#L52 | ||
*/ | ||
customHeaders?: { [key: string]: string }; | ||
} | ||
export default class I18NextXhrBackend { | ||
constructor(services?: any, options?: I18NextXhrBackend.BackendOptions); | ||
init(services?: any, options?: I18NextXhrBackend.BackendOptions): void; | ||
readMulti(languages: string[], namespaces: string[], callback: I18NextXhrBackend.LoadCallback): void; | ||
read(language: string, namespace: string, callback: I18NextXhrBackend.LoadCallback): void; | ||
loadUrl(url: string, callback: I18NextXhrBackend.LoadCallback): void; | ||
create(languages: string | string[], namespace: string, key: string, fallbackValue: string): void; | ||
type AjaxRequestCallback = (response: string, x: XMLHttpRequest) => void; | ||
// type LoadCallback = (error: any, result: string | false) => void; | ||
export default class I18NextXhrBackend | ||
implements i18next.BackendModule<BackendOptions> { | ||
constructor(services?: any, options?: BackendOptions); | ||
init(services?: any, options?: BackendOptions): void; | ||
readMulti( | ||
languages: string[], | ||
namespaces: string[], | ||
callback: i18next.ReadCallback | ||
): void; | ||
read( | ||
language: string, | ||
namespace: string, | ||
callback: i18next.ReadCallback | ||
): void; | ||
loadUrl(url: string, callback: i18next.ReadCallback): void; | ||
create( | ||
languages: string | string[], | ||
namespace: string, | ||
key: string, | ||
fallbackValue: string | ||
): void; | ||
type: "backend"; | ||
services: any; | ||
options: I18NextXhrBackend.BackendOptions; | ||
options: BackendOptions; | ||
} |
{ | ||
"name": "i18next-xhr-backend", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "backend layer for i18next using browsers xhr", | ||
@@ -19,43 +19,44 @@ "main": "./dist/cjs/i18nextXHRBackend.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.4.5" | ||
"@babel/runtime": "^7.5.5" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.4.5", | ||
"@babel/plugin-transform-runtime": "^7.4.4", | ||
"@babel/preset-env": "^7.4.5", | ||
"babel-eslint": "^10.0.1", | ||
"@babel/core": "^7.5.5", | ||
"@babel/plugin-transform-runtime": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"babel-eslint": "^10.0.2", | ||
"babel-polyfill": "^6.26.0", | ||
"babelify": "^10.0.0", | ||
"browserify": "13.3.0", | ||
"browserify-istanbul": "2.0.0", | ||
"chai": "3.5.0", | ||
"coveralls": "2.11.15", | ||
"browserify": "16.3.0", | ||
"browserify-istanbul": "3.0.1", | ||
"chai": "4.2.0", | ||
"coveralls": "3.0.5", | ||
"cpy-cli": "^2.0.0", | ||
"dtslint": "^0.4.2", | ||
"eslint": "3.13.0", | ||
"eslint-config-airbnb": "13.0.0", | ||
"i18next": "4.1.4", | ||
"dtslint": "^0.9.0", | ||
"eslint": "6.1.0", | ||
"eslint-config-airbnb": "17.1.1", | ||
"i18next": "^17.0.8", | ||
"istanbul": "gotwarlost/istanbul#source-map", | ||
"json5": "0.5.1", | ||
"karma": "1.3.0", | ||
"karma-browserify": "5.1.0", | ||
"json5": "2.1.0", | ||
"karma": "4.2.0", | ||
"karma-browserify": "6.1.0", | ||
"karma-chai": "0.1.0", | ||
"karma-chrome-launcher": "2.0.0", | ||
"karma-cli": "1.0.1", | ||
"karma-chrome-launcher": "3.0.0", | ||
"karma-cli": "2.0.0", | ||
"karma-coverage": "douglasduteil/karma-coverage#next", | ||
"karma-coveralls": "1.1.2", | ||
"karma-coveralls": "2.1.0", | ||
"karma-expect": "1.1.3", | ||
"karma-mocha": "1.3.0", | ||
"karma-phantomjs-launcher": "1.0.2", | ||
"karma-phantomjs-launcher": "1.0.4", | ||
"karma-sinon": "1.0.5", | ||
"karma-spec-reporter": "0.0.26", | ||
"mocha": "3.2.0", | ||
"phantomjs-prebuilt": "2.1.14", | ||
"rimraf": "2.5.4", | ||
"rollup": "^1.13.1", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-node-resolve": "^5.0.1", | ||
"rollup-plugin-terser": "^5.0.0", | ||
"sinon": "1.17.7", | ||
"tslint": "^5.12.1", | ||
"typescript": "^3.3.1" | ||
"karma-spec-reporter": "0.0.32", | ||
"mocha": "6.2.0", | ||
"phantomjs-prebuilt": "2.1.16", | ||
"rimraf": "2.6.3", | ||
"rollup": "^1.18.0", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-terser": "^5.1.1", | ||
"sinon": "7.3.2", | ||
"tslint": "^5.18.0", | ||
"typescript": "^3.5.3" | ||
}, | ||
@@ -62,0 +63,0 @@ "scripts": { |
@@ -5,4 +5,5 @@ { | ||
"rules": { | ||
"semicolon": false | ||
"semicolon": false, | ||
"no-null-undefined-union": false | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
46306
19
930
0
39
Updated@babel/runtime@^7.5.5