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

@atom-ide-community/nuclide-analytics

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atom-ide-community/nuclide-analytics - npm Package Compare versions

Comparing version 0.7.5 to 0.7.6

34

lib/analytics.js

@@ -0,1 +1,12 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.track = track;
exports.isTrackSupported = isTrackSupported;
exports.setApplicationSessionObservable = setApplicationSessionObservable;
var _rxjs = require("rxjs");
/**

@@ -9,24 +20,15 @@ * Copyright (c) 2017-present, Facebook, Inc.

*
* @flow
*
* @format
*/
// This is a stubbed implementation that other packages use to record analytics data & performance.
function track(eventName, values, immediate) {} // Other packages can check this to avoid doing work that will be ignored
// anyway by the stubbed track implementation.
import type {SessionInfo} from '@atom-ide-community/nuclide-commons/analytics';
import {Observable} from 'rxjs';
// This is a stubbed implementation that other packages use to record analytics data & performance.
export function track(
eventName: string,
values?: {[key: string]: mixed},
immediate?: boolean,
): ?Promise<mixed> {}
// Other packages can check this to avoid doing work that will be ignored
// anyway by the stubbed track implementation.
export function isTrackSupported(): boolean {
function isTrackSupported() {
return false;
}
export function setApplicationSessionObservable(
ob: Observable<SessionInfo>,
): void {}
function setApplicationSessionObservable(ob) {}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL251Y2xpZGUvbnVjbGlkZS1hbmFseXRpY3MvbGliL2FuYWx5dGljcy5qcyJdLCJuYW1lcyI6WyJ0cmFjayIsImV2ZW50TmFtZSIsInZhbHVlcyIsImltbWVkaWF0ZSIsImlzVHJhY2tTdXBwb3J0ZWQiLCJzZXRBcHBsaWNhdGlvblNlc3Npb25PYnNlcnZhYmxlIiwib2IiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQWFBOztBQW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Y2soXHJcbiAgZXZlbnROYW1lOiBzdHJpbmcsXHJcbiAgdmFsdWVzPzoge1trZXk6IHN0cmluZ106IG1peGVkfSxcclxuICBpbW1lZGlhdGU/OiBib29sZWFuLFxyXG4pOiA/UHJvbWlzZTxtaXhlZD4ge31cclxuXHJcbi8vIE90aGVyIHBhY2thZ2VzIGNhbiBjaGVjayB0aGlzIHRvIGF2b2lkIGRvaW5nIHdvcmsgdGhhdCB3aWxsIGJlIGlnbm9yZWRcclxuLy8gYW55d2F5IGJ5IHRoZSBzdHViYmVkIHRyYWNrIGltcGxlbWVudGF0aW9uLlxyXG5leHBvcnQgZnVuY3Rpb24gaXNUcmFja1N1cHBvcnRlZCgpOiBib29sZWFuIHtcclxuICByZXR1cm4gZmFsc2U7XHJcbn1cclxuXHJcbmV4cG9ydCBmdW5jdGlvbiBzZXRBcHBsaWNhdGlvblNlc3Npb25PYnNlcnZhYmxlKFxyXG4gIG9iOiBPYnNlcnZhYmxlPFNlc3Npb25JbmZvPixcclxuKTogdm9pZCB7fVxyXG4iXX0=

@@ -0,1 +1,10 @@

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.HistogramTracker = void 0;
var _track = require("./track");
/**

@@ -9,15 +18,11 @@ * Copyright (c) 2017-present, Facebook, Inc.

*
* @flow strict-local
*
* @format
*/
import {track} from './track';
const HISTOGRAM_TRACKER_KEY = 'performance-histogram';
class Bucket {
_count: number;
_sum: number;
constructor() {
this._count = void 0;
this._sum = void 0;
this._count = 0;

@@ -27,3 +32,3 @@ this._sum = 0;

addValue(value: number): void {
addValue(value) {
this._sum += value;

@@ -33,29 +38,24 @@ this._count++;

getCount(): number {
getCount() {
return this._count;
}
getAverage(): number {
getAverage() {
return this._count > 0 ? this._sum / this._count : 0;
}
clear(): void {
clear() {
this._count = 0;
this._sum = 0;
}
}
export class HistogramTracker {
_eventName: string;
_maxValue: number;
_bucketSize: number;
_buckets: Array<Bucket>;
_intervalId: IntervalID;
constructor(
eventName: string,
maxValue: number,
numBuckets: number,
intervalSeconds: number = 60,
) {
class HistogramTracker {
constructor(eventName, maxValue, numBuckets, intervalSeconds = 60) {
this._eventName = void 0;
this._maxValue = void 0;
this._bucketSize = void 0;
this._buckets = void 0;
this._intervalId = void 0;
this._eventName = eventName;

@@ -65,2 +65,3 @@ this._maxValue = maxValue;

this._buckets = new Array(numBuckets);
for (let i = 0; i < numBuckets; i++) {

@@ -80,26 +81,27 @@ this._buckets[i] = new Bucket();

track(value: number): HistogramTracker {
const bucket = Math.min(
this._buckets.length - 1,
Math.floor(value / this._bucketSize),
);
track(value) {
const bucket = Math.min(this._buckets.length - 1, Math.floor(value / this._bucketSize));
this._buckets[bucket].addValue(value);
return this;
}
saveAnalytics(): void {
saveAnalytics() {
for (let i = 0; i < this._buckets.length; i++) {
const bucket = this._buckets[i];
if (bucket.getCount() > 0 && track != null) {
track(HISTOGRAM_TRACKER_KEY, {
if (bucket.getCount() > 0 && _track.track != null) {
(0, _track.track)(HISTOGRAM_TRACKER_KEY, {
eventName: this._eventName,
average: bucket.getAverage(),
samples: bucket.getCount(),
samples: bucket.getCount()
});
}
}
this.clear();
}
clear(): void {
clear() {
for (let i = 0; i < this._buckets.length; i++) {

@@ -109,2 +111,6 @@ this._buckets[i].clear();

}
}
exports.HistogramTracker = HistogramTracker;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL251Y2xpZGUvbnVjbGlkZS1hbmFseXRpY3MvbGliL0hpc3RvZ3JhbVRyYWNrZXIuanMiXSwibmFtZXMiOlsiSElTVE9HUkFNX1RSQUNLRVJfS0VZIiwiQnVja2V0IiwiY29uc3RydWN0b3IiLCJfY291bnQiLCJfc3VtIiwiYWRkVmFsdWUiLCJ2YWx1ZSIsImdldENvdW50IiwiZ2V0QXZlcmFnZSIsImNsZWFyIiwiSGlzdG9ncmFtVHJhY2tlciIsImV2ZW50TmFtZSIsIm1heFZhbHVlIiwibn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SsrKSB7XHJcbiAgICAgIHRoaXMuX2J1Y2tldHNbaV0uY2xlYXIoKTtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19

@@ -1,29 +0,88 @@

/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
* @format
*/
"use strict";
export {HistogramTracker} from './HistogramTracker';
export type {TrackingEvent} from '@atom-ide-community/nuclide-commons/analytics';
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "HistogramTracker", {
enumerable: true,
get: function () {
return _HistogramTracker.HistogramTracker;
}
});
Object.defineProperty(exports, "startTracking", {
enumerable: true,
get: function () {
return _analytics.startTracking;
}
});
Object.defineProperty(exports, "TimingTracker", {
enumerable: true,
get: function () {
return _analytics.TimingTracker;
}
});
Object.defineProperty(exports, "track", {
enumerable: true,
get: function () {
return _analytics.track;
}
});
Object.defineProperty(exports, "trackEvent", {
enumerable: true,
get: function () {
return _analytics.trackEvent;
}
});
Object.defineProperty(exports, "trackEvents", {
enumerable: true,
get: function () {
return _analytics.trackEvents;
}
});
Object.defineProperty(exports, "trackImmediate", {
enumerable: true,
get: function () {
return _analytics.trackImmediate;
}
});
Object.defineProperty(exports, "trackSampled", {
enumerable: true,
get: function () {
return _analytics.trackSampled;
}
});
Object.defineProperty(exports, "trackTiming", {
enumerable: true,
get: function () {
return _analytics.trackTiming;
}
});
Object.defineProperty(exports, "trackTimingSampled", {
enumerable: true,
get: function () {
return _analytics.trackTimingSampled;
}
});
Object.defineProperty(exports, "isTrackSupported", {
enumerable: true,
get: function () {
return _analytics.isTrackSupported;
}
});
Object.defineProperty(exports, "decorateTrackTiming", {
enumerable: true,
get: function () {
return _analytics.decorateTrackTiming;
}
});
Object.defineProperty(exports, "decorateTrackTimingSampled", {
enumerable: true,
get: function () {
return _analytics.decorateTrackTimingSampled;
}
});
export {
startTracking,
TimingTracker,
track,
trackEvent,
trackEvents,
trackImmediate,
trackSampled,
trackTiming,
trackTimingSampled,
isTrackSupported,
decorateTrackTiming,
decorateTrackTimingSampled,
} from '@atom-ide-community/nuclide-commons/analytics';
var _HistogramTracker = require("./HistogramTracker");
var _analytics = require("@atom-ide-community/nuclide-commons/analytics");
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL251Y2xpZGUvbnVjbGlkZS1hbmFseXRpY3MvbGliL21haW4uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBWUE7O0FBR0EiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogQ29weXJpZ2h0IChjKSAyMDE3LXByZXNlbnQsIEZhY2Vib29rLCBJbmMuXHJcbiAqIEFsbCByaWdodHMgcmVzZXJ2ZWQuXHJcbiAqXHJcbiAqIFRoaXMgc291cmNlIGNvZGUgaXMgbGljZW5zZWQgdW5kZXIgdGhlIEJTRC1zdHlsZSBsaWNlbnNlIGZvdW5kIGluIHRoZVxyXG4gKiBMSUNFTlNFIGZpbGUgaW4gdGhlIHJvb3QgZGlyZWN0b3J5IG9mIHRoaXMgc291cmNlIHRyZWUuIEFuIGFkZGl0aW9uYWwgZ3JhbnRcclxuICogb2YgcGF0ZW50IHJpZ2h0cyBjYW4gYmUgZm91bmQgaW4gdGhlIFBBVEVOVFMgZmlsZSBpbiB0aGUgc2FtZSBkaXJlY3RvcnkuXHJcbiAqXHJcbiAqIEBmbG93XHJcbiAqIEBmb3JtYXRcclxuICovXHJcblxyXG5leHBvcnQge0hpc3RvZ3JhbVRyYWNrZXJ9IGZyb20gJy4vSGlzdG9ncmFtVHJhY2tlcic7XHJcbmV4cG9ydCB0eXBlIHtUcmFja2luZ0V2ZW50fSBmcm9tICdAYXRvbS1pZGUtY29tbXVuaXR5L251Y2xpZGUtY29tbW9ucy9hbmFseXRpY3MnO1xyXG5cclxuZXhwb3J0IHtcclxuICBzdGFydFRyYWNraW5nLFxyXG4gIFRpbWluZ1RyYWNrZXIsXHJcbiAgdHJhY2ssXHJcbiAgdHJhY2tFdmVudCxcclxuICB0cmFja0V2ZW50cyxcclxuICB0cmFja0ltbWVkaWF0ZSxcclxuICB0cmFja1NhbXBsZWQsXHJcbiAgdHJhY2tUaW1pbmcsXHJcbiAgdHJhY2tUaW1pbmdTYW1wbGVkLFxyXG4gIGlzVHJhY2tTdXBwb3J0ZWQsXHJcbiAgZGVjb3JhdGVUcmFja1RpbWluZyxcclxuICBkZWNvcmF0ZVRyYWNrVGltaW5nU2FtcGxlZCxcclxufSBmcm9tICdAYXRvbS1pZGUtY29tbXVuaXR5L251Y2xpZGUtY29tbW9ucy9hbmFseXRpY3MnO1xyXG4iXX0=

@@ -0,1 +1,3 @@

"use strict";
/**

@@ -9,3 +11,3 @@ * Copyright (c) 2017-present, Facebook, Inc.

*
* @flow strict-local
*
* @format

@@ -15,3 +17,2 @@ */

/* eslint-disable nuclide-internal/no-commonjs */
// This extra module enables adding spies during testing.

@@ -25,1 +26,2 @@ // $FlowFixMe (>=0.85.0) (T35986896) Flow upgrade suppress

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL251Y2xpZGUvbnVjbGlkZS1hbmFseXRpY3MvbGliL3RyYWNrLmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJyZXF1aXJlIiwiZSJdLCJtYXBwaW5ncyI6Ijs7QUFBQTs7Ozs7Ozs7Ozs7O0FBWUE7QUFFQTtBQUNBO0FBQ0EsSUFBSTtBQUNGO0FBQ0FBLEVBQUFB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BjYXRjaCAoZSkge1xyXG4gIG1vZHVsZS5leHBvcnRzID0gcmVxdWlyZSgnLi9hbmFseXRpY3MnKTtcclxufVxyXG4iXX0=
{
"name": "@atom-ide-community/nuclide-analytics",
"main": "./dist/main.js",
"version": "0.7.5",
"description": "Provides a standard API for packages to send analytics to arbitrary providers.",
"author": "NEEDS OWNER",
"license": "BSD-3-Clause",
"repository": "https://github.com/facebook/nuclide/tree/master/modules/@atom-ide-community/nuclide-analytics",
"nuclide": {
"packageType": "NodeLibrary"
},
"scripts": {
"test": "node ../nuclide-jasmine/bin/jasmine-node-transpiled spec"
},
"dependencies": {
"@atom-ide-community/nuclide-commons": "^0.7.5",
"log4js": "1.1.1",
"rxjs-compat": "6.3.3"
}
"name": "@atom-ide-community/nuclide-analytics",
"main": "./dist/main.js",
"version": "0.7.6",
"description": "Provides a standard API for packages to send analytics to arbitrary providers.",
"author": "NEEDS OWNER",
"license": "BSD-3-Clause",
"repository": "https://github.com/facebook/nuclide/tree/master/modules/@atom-ide-community/nuclide-analytics",
"nuclide": {
"packageType": "NodeLibrary"
},
"scripts": {
"pub": "npm version patch && pnpm install",
"test": "node ../nuclide-jasmine/bin/jasmine-node-transpiled spec"
},
"dependencies": {
"@atom-ide-community/nuclide-commons": "0.7.7",
"log4js": "1.1.1",
"rxjs": "npm:rxjs-compat@6.3.3"
}
}
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