Comparing version
# Changelog | ||
## 1.5.1 (2015-10-06) | ||
* Use Buffer to get base64 string | ||
* Remove Base64 dependency | ||
## 1.5.0 (2015-10-05) | ||
@@ -4,0 +9,0 @@ |
@@ -5,6 +5,5 @@ /** | ||
var JSON3 = require('json3') | ||
var Base64 = require('Base64') | ||
module.exports = function objectToBase64 (object) { | ||
return Base64.btoa(JSON3.stringify(object)) | ||
return (new Buffer(JSON3.stringify(object))).toString('base64') | ||
} |
{ | ||
"name": "td-js-sdk", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"license": "Apache-2.0", | ||
@@ -18,6 +18,6 @@ "bugs": "https://github.com/treasure-data/td-js-sdk/issues", | ||
"scripts": { | ||
"build": "browserify -s Treasure -e ./lib > ./dist/td.js", | ||
"build": "browserify -s Treasure -e ./lib | bundle-collapser > ./dist/td.js", | ||
"build-all": "NODE_ENV=production npm run build-gzip && npm run minify-gzip && npm run build-loader", | ||
"build-gzip": "npm run build && cat ./dist/td.js | gzip > ./dist/td.js.gz", | ||
"build-loader": "cat ./src/loader.js | uglifyjs -m > ./dist/loader.min.js", | ||
"build-loader": "cat ./src/loader.js | uglifyjs -m -c > ./dist/loader.min.js", | ||
"clean": "rm -rf ./dist && mkdir -p ./dist", | ||
@@ -27,3 +27,3 @@ "e2e": "node ./bin/e2e.js", | ||
"e2e-server": "node ./bin/server.js", | ||
"minify": "browserify -s Treasure -e ./lib | uglifyjs -m > ./dist/td.min.js ", | ||
"minify": "browserify -s Treasure -e ./lib | uglifyjs -m -c > ./dist/td.min.js ", | ||
"minify-gzip": "npm run minify && cat ./dist/td.min.js | gzip > ./dist/td.min.js.gz", | ||
@@ -55,2 +55,3 @@ "test": "standard && node ./bin/test.js", | ||
"browserify-versionify": "^1.0.6", | ||
"bundle-collapser": "^1.2.1", | ||
"del": "^2.0.2", | ||
@@ -74,3 +75,2 @@ "envify": "^3.4.0", | ||
"dependencies": { | ||
"Base64": "^0.3.0", | ||
"cookies-js": "^1.1.0", | ||
@@ -77,0 +77,0 @@ "domready": "^0.3.0", |
@@ -15,3 +15,3 @@ # td-js-sdk | ||
<script type="text/javascript"> | ||
(function(t,e){if(e[t]===void 0){e[t]=function(){e[t].clients.push(this);this._init=[Array.prototype.slice.call(arguments)]};e[t].clients=[];var r=function(t){return function(){this["_"+t]=this["_"+t]||[];this["_"+t].push(Array.prototype.slice.call(arguments));return this}};var a=["addRecord","set","trackEvent","trackPageview","ready"];for(var n=0;n<a.length;n++){var s=a[n];e[t].prototype[s]=r(s)}var i=document.createElement("script");i.type="text/javascript";i.async=!0;i.src=(document.location.protocol==="https:"?"https:":"http:")+"//cdn.treasuredata.com/sdk/td-1.5.0.js";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(i,c)}})("Treasure",this); | ||
!function(t,e){if(void 0===e[t]){e[t]=function(){e[t].clients.push(this),this._init=[Array.prototype.slice.call(arguments)]},e[t].clients=[];for(var r=function(t){return function(){return this["_"+t]=this["_"+t]||[],this["_"+t].push(Array.prototype.slice.call(arguments)),this}},n=["addRecord","set","trackEvent","trackPageview","ready"],s=0;s<n.length;s++){var i=n[s];e[t].prototype[i]=r(i)}var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=("https:"===document.location.protocol?"https:":"http:")+"//cdn.treasuredata.com/sdk/td-1.5.1.j";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c)}}("Treasure",this); | ||
</script> | ||
@@ -18,0 +18,0 @@ ``` |
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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
7
-12.5%5
-28.57%51310
-80.99%19
5.56%17
-10.53%727
-88.6%- Removed
- Removed