New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@speedsters/react

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@speedsters/react - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

18

cjs/development/index.js

@@ -26,4 +26,4 @@ "use strict";

var socket;
var IReact = (function () {
function IReact() {
var SReact = (function () {
function SReact() {
this._data = {};

@@ -33,3 +33,3 @@ this.hasInitiateConnection = false;

}
Object.defineProperty(IReact.prototype, "data", {
Object.defineProperty(SReact.prototype, "data", {
get: function () {

@@ -41,3 +41,3 @@ return this._data;

});
IReact.prototype.connect = function (options) {
SReact.prototype.connect = function (options) {
if (options === void 0) { options = {}; }

@@ -49,3 +49,3 @@ this.hasInitiateConnection = true;

};
IReact.prototype.classComponent = function (_this, options) {
SReact.prototype.classComponent = function (_this, options) {
var _this_1 = this;

@@ -137,6 +137,6 @@ var _a, _b;

};
return IReact;
return SReact;
}());
exports.IReact = IReact;
var jsnpr = new IReact();
exports.default = jsnpr;
exports.SReact = SReact;
var sreact = new SReact();
exports.default = sreact;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.performanceNow = function () {
if (typeof window != undefined &&
if (typeof window != 'undefined' &&
'performance' in window === true &&

@@ -6,0 +6,0 @@ navigator.product != 'ReactNative') {

{
"name": "@speedsters/react",
"version": "0.0.5",
"version": "0.0.6",
"description": "A simple way of testing your react application performance",

@@ -5,0 +5,0 @@ "main": "./cjs/index.js",

@@ -61,6 +61,2 @@ # Speedsters

/*
* Add this line to the constructor
* and you're ready to GO!
*/
const options = {

@@ -71,16 +67,11 @@ excludes: {

},
/*
* 16 frame per second is the best performance you
* can get for an react-native app
*/
// specify the performance that you wanna this component to have
milliseconds: 16;
};
sreact.component(this, options);
sreact.classComponent(this, options);
/*
* Because this method is been bind on the constructor
* it will be measure by the sreact.component.
*
* NOTE: Arrow function will not be measured.
* Because those methods are been bind in the constructor
* it will be measure by the sreact.classComponent.
*/

@@ -99,3 +90,3 @@ this.handleChangeViewButton = this.handleChangeViewButton.bind(this);

// Will not be measured
// Arrow function will not be measured.
handleEditButton = () => {

@@ -102,0 +93,0 @@ ...

@@ -1,4 +0,4 @@

import { ConnectionOptions, IReact as JsnpReactType, ReactComponentOptions } from '@speedsters/type';
import { ConnectionOptions, IReact as SReactType, ReactComponentOptions } from '@speedsters/type';
export declare const RENDER_COUNT = "renderCount";
export declare class IReact implements JsnpReactType {
export declare class SReact implements SReactType {
private _data;

@@ -11,3 +11,3 @@ private hasInitiateConnection;

}
declare const jsnpr: IReact;
export default jsnpr;
declare const sreact: SReact;
export default sreact;
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