Socket
Socket
Sign inDemoInstall

keen-js

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keen-js - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

2

dist/keen.umd.js

@@ -107,3 +107,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

module.exports = {"name":"keen-js","version":"5.0.2","license":"MIT","main":"dist/node/keen.umd.js","browser":"dist/keen.umd.js","style":"dist/keen.css","repository":{"type":"git","url":"https://github.com/keen/keen-js.git"},"scripts":{"start":"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js","test":"jest","build":"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js","preversion":"npm run build","version":"git add .","postversion":"git push && git push --tags","profile":"webpack --profile --json > stats.json","analyze":"webpack-bundle-analyzer stats.json /dist"},"bugs":"https://github.com/keen/keen-js/issues","author":"Keen IO <team@keen.io> (https://keen.io/)","contributors":["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],"dependencies":{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.6","keen-tracking":"^2.0.1"},"devDependencies":{"autoprefixer":"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","concurrently":"^3.5.1","cssnano":"^3.10.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7","gulp":"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5","jest":"^22.4.3","postcss":"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3","precss":"^3.1.2","style-loader":"^0.20.3","webpack":"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}};
module.exports = {"name":"keen-js","version":"5.0.3","license":"MIT","main":"dist/node/keen.umd.js","browser":"dist/keen.umd.js","style":"dist/keen.css","repository":{"type":"git","url":"https://github.com/keen/keen-js.git"},"scripts":{"start":"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js","test":"jest","build":"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js","preversion":"npm run build","version":"git add .","postversion":"git push && git push --tags","profile":"webpack --profile --json > stats.json","analyze":"webpack-bundle-analyzer stats.json /dist"},"bugs":"https://github.com/keen/keen-js/issues","author":"Keen IO <team@keen.io> (https://keen.io/)","contributors":["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],"dependencies":{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.6","keen-tracking":"^2.0.1"},"devDependencies":{"autoprefixer":"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","concurrently":"^3.5.1","cssnano":"^3.10.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7","gulp":"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5","jest":"^22.4.3","postcss":"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3","precss":"^3.1.2","style-loader":"^0.20.3","webpack":"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}};

@@ -110,0 +110,0 @@ /***/ }),

@@ -1,2 +0,2 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("keen-dataviz"),require("keen-analysis"),require("keen-tracking"));else if("function"==typeof define&&define.amd)define(["keen-dataviz","keen-analysis","keen-tracking"],t);else{var n="object"==typeof exports?t(require("keen-dataviz"),require("keen-analysis"),require("keen-tracking")):t(e["keen-dataviz"],e["keen-analysis"],e["keen-tracking"]);for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(window,function(e,t,n){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(s,o,function(t){return e[t]}.bind(null,o));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(t,n){t.exports=e},function(e){e.exports={name:"keen-js",version:"5.0.2",license:"MIT",main:"dist/node/keen.umd.js",browser:"dist/keen.umd.js",style:"dist/keen.css",repository:{type:"git",url:"https://github.com/keen/keen-js.git"},scripts:{start:"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js",test:"jest",build:"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js",preversion:"npm run build",version:"git add .",postversion:"git push && git push --tags",profile:"webpack --profile --json > stats.json",analyze:"webpack-bundle-analyzer stats.json /dist"},bugs:"https://github.com/keen/keen-js/issues",author:"Keen IO <team@keen.io> (https://keen.io/)",contributors:["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],dependencies:{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.6","keen-tracking":"^2.0.1"},devDependencies:{autoprefixer:"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0",concurrently:"^3.5.1",cssnano:"^3.10.0",eslint:"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7",gulp:"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5",jest:"^22.4.3",postcss:"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3",precss:"^3.1.2","style-loader":"^0.20.3",webpack:"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(n(3)),o=r(n(2)),i=n(0);function r(e){return e&&e.__esModule?e:{default:e}}s.default.extendLibrary(s.default,o.default),s.default.version=n(1).version,s.default.prototype.draw=function(e,t,n){var s=(0,i.Dataviz)().attributes(n).el(t).prepare();return this.run(e,function(e,t){e?s.message(e.message):s.data(t).render()}),s},t.default=s.default},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.Keen=t.Dataset=t.Dataviz=t.extendKeenGlobalObject=void 0;var s=n(0);Object.defineProperty(t,"Dataviz",{enumerable:!0,get:function(){return s.Dataviz}}),Object.defineProperty(t,"Dataset",{enumerable:!0,get:function(){return s.Dataset}});var o,i=n(4),r=(o=i)&&o.__esModule?o:{default:o};var a=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u=t.extendKeenGlobalObject=function(e){e.Keen=c};"undefined"!=typeof KEEN_EXPOSE_AS_GLOBAL_OBJECT&&u(a);var c=t.Keen=r.default;c.Dataviz=s.Dataviz,c.Dataset=s.Dataset,t.default=c}).call(this,n(5))}])});
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("keen-dataviz"),require("keen-analysis"),require("keen-tracking"));else if("function"==typeof define&&define.amd)define(["keen-dataviz","keen-analysis","keen-tracking"],t);else{var n="object"==typeof exports?t(require("keen-dataviz"),require("keen-analysis"),require("keen-tracking")):t(e["keen-dataviz"],e["keen-analysis"],e["keen-tracking"]);for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(window,function(e,t,n){return function(e){var t={};function n(s){if(t[s])return t[s].exports;var o=t[s]={i:s,l:!1,exports:{}};return e[s].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(s,o,function(t){return e[t]}.bind(null,o));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(t,n){t.exports=e},function(e){e.exports={name:"keen-js",version:"5.0.3",license:"MIT",main:"dist/node/keen.umd.js",browser:"dist/keen.umd.js",style:"dist/keen.css",repository:{type:"git",url:"https://github.com/keen/keen-js.git"},scripts:{start:"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js",test:"jest",build:"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js",preversion:"npm run build",version:"git add .",postversion:"git push && git push --tags",profile:"webpack --profile --json > stats.json",analyze:"webpack-bundle-analyzer stats.json /dist"},bugs:"https://github.com/keen/keen-js/issues",author:"Keen IO <team@keen.io> (https://keen.io/)",contributors:["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],dependencies:{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.6","keen-tracking":"^2.0.1"},devDependencies:{autoprefixer:"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0",concurrently:"^3.5.1",cssnano:"^3.10.0",eslint:"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7",gulp:"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5",jest:"^22.4.3",postcss:"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3",precss:"^3.1.2","style-loader":"^0.20.3",webpack:"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}}},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r(n(3)),o=r(n(2)),i=n(0);function r(e){return e&&e.__esModule?e:{default:e}}s.default.extendLibrary(s.default,o.default),s.default.version=n(1).version,s.default.prototype.draw=function(e,t,n){var s=(0,i.Dataviz)().attributes(n).el(t).prepare();return this.run(e,function(e,t){e?s.message(e.message):s.data(t).render()}),s},t.default=s.default},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.Keen=t.Dataset=t.Dataviz=t.extendKeenGlobalObject=void 0;var s=n(0);Object.defineProperty(t,"Dataviz",{enumerable:!0,get:function(){return s.Dataviz}}),Object.defineProperty(t,"Dataset",{enumerable:!0,get:function(){return s.Dataset}});var o,i=n(4),r=(o=i)&&o.__esModule?o:{default:o};var a=void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u=t.extendKeenGlobalObject=function(e){e.Keen=c};"undefined"!=typeof KEEN_EXPOSE_AS_GLOBAL_OBJECT&&u(a);var c=t.Keen=r.default;c.Dataviz=s.Dataviz,c.Dataset=s.Dataset,t.default=c}).call(this,n(5))}])});
//# sourceMappingURL=keen.umd.min.js.map

@@ -107,3 +107,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

module.exports = {"name":"keen-js","version":"5.0.2","license":"MIT","main":"dist/node/keen.umd.js","browser":"dist/keen.umd.js","style":"dist/keen.css","repository":{"type":"git","url":"https://github.com/keen/keen-js.git"},"scripts":{"start":"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js","test":"jest","build":"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js","preversion":"npm run build","version":"git add .","postversion":"git push && git push --tags","profile":"webpack --profile --json > stats.json","analyze":"webpack-bundle-analyzer stats.json /dist"},"bugs":"https://github.com/keen/keen-js/issues","author":"Keen IO <team@keen.io> (https://keen.io/)","contributors":["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],"dependencies":{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.6","keen-tracking":"^2.0.1"},"devDependencies":{"autoprefixer":"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","concurrently":"^3.5.1","cssnano":"^3.10.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7","gulp":"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5","jest":"^22.4.3","postcss":"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3","precss":"^3.1.2","style-loader":"^0.20.3","webpack":"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}};
module.exports = {"name":"keen-js","version":"5.0.3","license":"MIT","main":"dist/node/keen.umd.js","browser":"dist/keen.umd.js","style":"dist/keen.css","repository":{"type":"git","url":"https://github.com/keen/keen-js.git"},"scripts":{"start":"NODE_ENV=development webpack-dev-server","postcss-watch":"node_modules/postcss-cli/bin/postcss style/keen.css -o test/demo/keen.css --watch --config postcss.config.js","test":"jest","build":"NODE_ENV=production webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 webpack -p && npm run build:bundle && npm run build:node && npm run build:css && npm run build:css:min","build:bundle":"NODE_ENV=production BUNDLE=1 webpack -p && NODE_ENV=production OPTIMIZE_MINIMIZE=1 BUNDLE=1 webpack -p ","build:node":"TARGET=node NODE_ENV=production webpack -p","build:css":"node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.css --config postcss.config.js","build:css:min":"OPTIMIZE_MINIMIZE=1 node_modules/postcss-cli/bin/postcss style/keen.css -o dist/keen.min.css --config postcss.config.js","preversion":"npm run build","version":"git add .","postversion":"git push && git push --tags","profile":"webpack --profile --json > stats.json","analyze":"webpack-bundle-analyzer stats.json /dist"},"bugs":"https://github.com/keen/keen-js/issues","author":"Keen IO <team@keen.io> (https://keen.io/)","contributors":["Dustin Larimer <dustin@keen.io> (https://github.com/dustinlarimer)","Joanne Cheng <joanne@keen.io> (http://joannecheng.me)","Adam Kasprowicz <adam.kasprowicz@keen.io> (https://github.com/adamkasprowicz)"],"dependencies":{"keen-analysis":"^2.0.0","keen-dataviz":"^2.0.6","keen-tracking":"^2.0.1"},"devDependencies":{"autoprefixer":"^8.2.0","babel-loader":"^7.1.4","babel-plugin-transform-es2015-modules-commonjs":"^6.26.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","concurrently":"^3.5.1","cssnano":"^3.10.0","eslint":"^4.19.1","eslint-config-airbnb":"^16.1.0","eslint-loader":"^2.0.0","eslint-plugin-import":"^2.11.0","eslint-plugin-jsx-a11y":"^6.0.3","eslint-plugin-react":"^7.7.0","event-stream":"^3.1.7","gulp":"^3.8.10","gulp-awspublish":"0.0.23","gulp-rename":"^1.2.0","gulp-util":"^3.0.1","html-loader":"^0.5.5","jest":"^22.4.3","postcss":"^6.0.21","postcss-cli":"^5.0.0","postcss-cssnext":"^2.4.0","postcss-import":"^8.2.0","postcss-loader":"^2.1.3","precss":"^3.1.2","style-loader":"^0.20.3","webpack":"^4.5.0","webpack-bundle-analyzer":"^2.11.1","webpack-cli":"^2.0.13","webpack-dev-server":"^3.1.1"}};

@@ -110,0 +110,0 @@ /***/ }),

{
"name": "keen-js",
"version": "5.0.3",
"version": "5.0.4",
"license": "MIT",

@@ -5,0 +5,0 @@ "main": "dist/node/keen.umd.js",

@@ -1,8 +0,8 @@

# Keen IO JavaScript SDK (v5)
# Keen JavaScript SDK
This is v5 of the Keen IO JS SDK. Previous versions and their documentation are available as [branches](https://github.com/keen/keen-js/branches) of this repo.
This is v5 of the Keen JS SDK. Previous versions and their documentation are available as [branches](https://github.com/keen/keen-js/branches) of this repo.
### Get Project ID & API Keys
If you haven’t done so already, [login to Keen IO to create a project](https://keen.io/login?s=gh_js). The Project ID and API Keys are available on the Access page of the Project Console. You will need these for the next steps.
If you haven’t done so already, [login to Keen to create a project](https://keen.io/login?s=gh_js). The Project ID and API Keys are available on the Access page of the Project Console. You will need these for the next steps.

@@ -21,6 +21,4 @@ ### Installation

## Use standalone packages for better performance
**Install standalone packages for better performance**
---
# Stream Events - Keen Tracking JS

@@ -30,234 +28,34 @@

[Full documentation is available in the keen-tracking.js repo](https://github.com/keen/keen-tracking.js/blob/master/docs/README.md).
### Installation
### Automated Event Tracking (Browser-only)
Automatically record `pageviews`, `clicks`, and `form_submissions` events with robust data models.
[Learn how to configure and customize this functionality here](https://github.com/keen/keen-tracking.js/blob/master/docs/auto-tracking.md)
### Pageview Tracking (Browser/Front-end)
First, let's create a new `client` instance with your Project ID and Write Key, and use the `.extendEvents()` method to define a solid baseline data model that will be applied to every single event that is recorded. Consistent data models and property names make life much easier later on, when analyzing and managing several event streams. This setup also includes our [data enrichment add-ons](https://keen.io/docs/streams/data-enrichment-overview/), which will populate additional information when an event is received on our end.
```javascript
import KeenTracking from 'keen-tracking';
const client = new KeenTracking({
projectId: 'PROJECT_ID',
writeKey: 'WRITE_KEY'
});
const helpers = KeenTracking.helpers;
const utils = KeenTracking.utils;
const sessionCookie = utils.cookie('rename-this-example-cookie');
if (!sessionCookie.get('guest_id')) {
sessionCookie.set('guest_id', helpers.getUniqueId());
}
// optional enrichment
client.extendEvents(() => {
return {
geo: {
info: { /* Enriched */ },
ip_address: '${keen.ip}',
},
page: {
info: { /* Enriched */ },
title: document.title,
url: document.location.href
},
referrer: {
info: { /* Enriched */ },
url: document.referrer
},
tech: {
browser: helpers.getBrowserProfile(),
info: { /* Enriched */ },
user_agent: '${keen.user_agent}'
},
time: helpers.getDatetimeIndex(),
visitor: {
guest_id: sessionCookie.get('guest_id')
/* Include additional visitor info here */
},
keen: {
addons: [
{
name: 'keen:ip_to_geo',
input: {
ip: 'geo.ip_address'
},
output : 'geo.info'
},
{
name: 'keen:ua_parser',
input: {
ua_string: 'tech.user_agent'
},
output: 'tech.info'
},
{
name: 'keen:url_parser',
input: {
url: 'page.url'
},
output: 'page.info'
},
{
name: 'keen:referrer_parser',
input: {
referrer_url: 'referrer.url',
page_url: 'page.url'
},
output: 'referrer.info'
}
]
}
}
});
client.recordEvent('pageviews', {});
```ssh
npm install keen-tracking --save
```
Every event that is recorded will inherit this baseline data model. Additional properties defined in `client.recordEvent()` will be applied before the event is finally recorded.
[Full documentation is available in the keen-tracking.js repo](https://github.com/keen/keen-tracking.js).
Want to get up and running faster? This can also be achieved in the browser with [automated event tracking](https://github.com/keen/keen-tracking.js/blob/master/docs/auto-tracking.md).
# Compute - Keen Analysis JS
---
Keen's powerful Compute API gives you fast answers to the questions that matter.
### Record Node.js Events (Back-end)
### Installation
```javascript
const KeenTracking = require('keen-tracking');
const client = new KeenTracking({
projectId: 'PROJECT_ID',
writeKey: 'WRITE_KEY'
});
client.recordEvent('purchases', {
item: 'Avocado',
price: 123
});
```ssh
npm install keen-analysis --save
```
---
**More examples:**
* [Record clicks and form submissions](https://github.com/keen/keen-tracking.js#click-and-form-submit-tracking-browserfront-end)
* [Block bots and improve device recognition](https://github.com/keen/keen-tracking.js#block-bots-and-improve-device-recognition-browserfront-end)
**What else can this SDK do?**
* [Automated tracking (browser-only)](https://github.com/keen/keen-tracking.js/blob/master/docs/auto-tracking.md)
* [Record multiple events in batches](https://github.com/keen/keen-tracking.js/blob/master/docs/record-events.md)
* [Extend event data models for a single event stream](https://github.com/keen/keen-tracking.js/blob/master/docs/extend-events.md)
* [Queue events to be recorded at a given time interval](https://github.com/keen/keen-tracking.js/blob/master/docs/defer-events.md)
**React Examples**
* [React Flux Logger](https://github.com/keen/keen-tracking.js/tree/master/docs/examples/react-flux): How to instrument a Flux ReduceStore
* [React Redux Middleware](https://github.com/keen/keen-tracking.js/tree/master/docs/examples/react-redux-middleware): How to instrument a Redux Store
**Documentation:** [Full documentation is available in the keen-tracking.js repo](https://github.com/keen/keen-tracking.js/blob/master/docs/README.md).
---
# Compute - Keen Analysis JS
Keen's powerful Compute API gives you fast answers to the questions that matter.
[Full documentation is available in the keen-analysis.js repo](https://github.com/keen/keen-analysis.js).
# Visualize - Keen Dataviz JS
### Running a Query
Create amazing charts with powerful tools like D3/C3.
Create a new `client` instance with your Project ID and Read Key, and use the `.query()` method to execute an ad-hoc query. This client instance is the core of the library and will be required for all API-related functionality.
### Installation
```javascript
import KeenAnalysis from 'keen-analysis';
const client = new KeenAnalysis({
projectId: 'YOUR_PROJECT_ID',
readKey: 'YOUR_READ_KEY'
});
client
.query('count', {
event_collection: 'pageviews',
group_by: 'device_type',
interval: 'daily',
timeframe: 'this_14_days'
})
.then(res => {
// Handle results
})
.catch(err => {
// Handle errors
});
```ssh
npm install keen-dataviz --save
```
**What else can this SDK do?**
* [Saved and Cached Queries](https://github.com/keen/keen-analysis.js/blob/master/README.md#saved-and-cached-queries)
* [Cached Datasets](https://github.com/keen/keen-analysis.js/blob/master/README.md#cached-datasets)
* [All other API resources](https://github.com/keen/keen-analysis.js/blob/master/README.md#api-resources)
**Documentation:** [Full documentation is available in the keen-analysis.js repo](https://github.com/keen/keen-analysis.js).
---
# Visualize - Keen Dataviz JS
**Documentation:** [Full documentation is available in the keen-dataviz.js repo](https://github.com/keen/keen-dataviz.js).
**Examples:** [keen.github.io/keen-dataviz.js](https://keen.github.io/keen-dataviz.js).
### Example
```javascript
import KeenAnalysis from 'keen-analysis';
import KeenDataviz from 'keen-dataviz';
const chart = new KeenDataviz()
.el('#my-chart-div')
.colors(['red', 'orange', 'green'])
.height(500)
.title('New Customers per Week')
.type('area')
.prepare();
// Use keen-analysis.js to run a query
// and pass the result into your chart:
const client = new KeenAnalysis({
projectId: 'YOUR_PROJECT_ID',
readKey: 'YOUR_READ_KEY'
});
client
.query('count', {
event_collection: 'pageviews',
timeframe: 'this_7_days',
interval: 'daily'
})
.then(function(res){
// Handle the result
chart
.data(res)
.render();
})
.catch(function(err){
// Handle the error
chart
.message(err.message);
});
```
---

@@ -264,0 +62,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc