Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

keen-tracking

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

keen-tracking - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

7

CHANGELOG.md

@@ -9,2 +9,9 @@ <!--

-->
<a name="1.2.1"></a>
# 1.2.1 Fix queue polling
**FIXED:**
* Fixed a queue polling issue (#84) to prevent queue from polling until events are added to the queue, allowing scripts to close properly when queues are _not_ used
* Clear polling loop prior to replacing queue with a new one
<a name="1.2.0"></a>

@@ -11,0 +18,0 @@ # 1.2.0 Fix queue exiting

@@ -23,2 +23,5 @@ var Keen = require('./index');

this.queue.capacity++;
if (!this.queue.timer) {
this.queue.start();
}
this.emit('deferEvent', eventCollection, eventBody);

@@ -40,2 +43,5 @@ return this;

self.queue.capacity = self.queue.capacity + eventList.length;
if (!self.queue.timer) {
self.queue.start();
}
});

@@ -66,2 +72,3 @@ self.emit('deferEvents', eventsHash);

if (self.queue.capacity > 0) {
self.queue.pause();
clonedQueueConfig = JSON.parse(JSON.stringify(self.queue.config));

@@ -68,0 +75,0 @@ clonedQueueEvents = JSON.parse(JSON.stringify(self.queue.events));

4

lib/utils/queue.js

@@ -18,4 +18,2 @@ var Emitter = require('component-emitter');

this.timer = null;
this.start();
return this;

@@ -30,3 +28,3 @@ }

}
if (this.config.interval === 0) {
if (this.config.interval === 0 || this.capacity === 0) {
this.pause();

@@ -33,0 +31,0 @@ }

{
"name": "keen-tracking",
"version": "1.2.0",
"version": "1.2.1",
"description": "Data Collection SDK for Keen IO",

@@ -45,2 +45,3 @@ "main": "lib/server.js",

"gulp-strip-comments": "^1.0.1",
"gulp-uglify": "^1.5.2",
"gulp-util": "^3.0.4",

@@ -47,0 +48,0 @@ "gulp-yuicompressor": "0.0.3",

@@ -15,3 +15,3 @@ # keen-tracking.js [![Build Status](https://travis-ci.org/keen/keen-tracking.js.svg?branch=master)](https://travis-ci.org/keen/keen-tracking.js)

```html
<script src="https://d26b395fwzu5fz.cloudfront.net/keen-tracking-1.2.0.min.js"></script>
<script src="https://d26b395fwzu5fz.cloudfront.net/keen-tracking-1.2.1.min.js"></script>
```

@@ -35,2 +35,7 @@

**Using React? Check out these setup guides:**
* [React Flux Logger](./docs/examples/react-flux): How to instrument a Flux ReduceStore
* [React Redux Middleware](./docs/examples/react-redux-middleware): How to instrument a Redux Store
**Looking for compute capabilities?** Check out [keen-analysis.js](https://github.com/keen/keen-analysis.js).

@@ -128,3 +133,3 @@

What else can this SDK do?
**What else can this SDK do?**

@@ -135,2 +140,7 @@ * [Record multiple events in batches](./docs/record-events.md)

**Using React? Check out these setup guides:**
* [React Flux Logger](./docs/examples/react-flux): How to instrument a Flux ReduceStore
* [React Redux Middleware](./docs/examples/react-redux-middleware): How to instrument a Redux Store
[Full documentation is available here](./docs/README.md)

@@ -137,0 +147,0 @@

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