analytics-utils
Advanced tools
Comparing version 0.0.8 to 0.0.9
'use strict'; | ||
/* | ||
Input > "Bought%20keyword | ||
Output > "Bought keyword" | ||
/** | ||
* Decode URI string | ||
* | ||
* @param {String} s string to decode | ||
* @returns {String} decoded string | ||
* @example | ||
* decode("Bought%20keyword) | ||
* => "Bought keyword" | ||
*/ | ||
@@ -7,0 +12,0 @@ module.exports = decode; |
@@ -9,2 +9,4 @@ 'use strict'; | ||
var _extendApiJs = require('./extendApi.js'); | ||
var _getBrowserLocaleJs = require('./getBrowserLocale.js'); | ||
@@ -37,2 +39,3 @@ | ||
exports.extend = _extendJs; | ||
exports.extendApi = _extendApiJs; | ||
exports.getBrowserLocale = _getBrowserLocaleJs; | ||
@@ -39,0 +42,0 @@ exports.getTimeZone = _getTimeZoneJs; |
'use strict'; | ||
/** | ||
* Check if browser has access to LocalStorage | ||
* | ||
* @returns {Boolean} | ||
*/ | ||
module.exports = hasLocalStorage; | ||
@@ -4,0 +9,0 @@ function hasLocalStorage() { |
@@ -1,8 +0,12 @@ | ||
/* | ||
Input > "Bought%20keyword | ||
Output > "Bought keyword" | ||
/** | ||
* Decode URI string | ||
* | ||
* @param {String} s string to decode | ||
* @returns {String} decoded string | ||
* @example | ||
* decode("Bought%20keyword) | ||
* => "Bought keyword" | ||
*/ | ||
export default function decode(s) { | ||
return decodeURIComponent(s).replace(/\+/g, ' ') | ||
} | ||
} |
@@ -6,2 +6,3 @@ // @create-index | ||
export { default as extend } from './extend.js'; | ||
export { default as extendApi } from './extendApi.js'; | ||
export { default as getBrowserLocale } from './getBrowserLocale.js'; | ||
@@ -8,0 +9,0 @@ export { default as getTimeZone } from './getTimeZone.js'; |
@@ -0,1 +1,6 @@ | ||
/** | ||
* Check if browser has access to LocalStorage | ||
* | ||
* @returns {Boolean} | ||
*/ | ||
export default function hasLocalStorage() { | ||
@@ -2,0 +7,0 @@ try { |
{ | ||
"name": "analytics-utils", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "", | ||
@@ -49,4 +49,3 @@ "main": "dist/index.js", | ||
] | ||
}, | ||
"gitHead": "0d8e2b6e417b61f2b578bb7513526a636c889137" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
226338
39
6445
0