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

react-tabulator

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tabulator - npm Package Compare versions

Comparing version 0.14.8 to 0.15.0

3

CHANGELOG.md

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

## [0.14.8] - 2021-02-25
## [0.15.0] - 2021-02-25
- feat: when "options" prop changed, rebuild and rerender the table.
- fix: Util: stringifyCensor to compare "options" props.
- fix: take "layout" from prop - thanks @ViralLka

@@ -4,0 +5,0 @@ - switched from yarn to npm as yarn build doesn't work anymore.

@@ -0,0 +0,0 @@ export interface IProps {

@@ -0,0 +0,0 @@ "use strict";

export default function (cell: any, onRendered: (fn: any) => void, success: (value: any) => void, cancel: () => void, editorParams?: any): HTMLDivElement;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare type I18nSettings = {

@@ -0,0 +0,0 @@ "use strict";

export default function (cell: any, onRendered: (fn: any) => void, success: (value: any) => void, cancel: () => void, editorParams?: any): HTMLDivElement;

@@ -0,0 +0,0 @@ "use strict";

export default function (cell: any, formatterParams: any, onRendered: (fn: any) => void): HTMLDivElement;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export { default as ReactTabulator } from './ReactTabulator';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import * as React from 'react';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export declare function clone(obj: any): any;

@@ -23,4 +23,19 @@ "use strict";

exports.isSameArray = isSameArray;
// source: https://stackoverflow.com/questions/4816099/chrome-sendrequest-error-typeerror-converting-circular-structure-to-json
function stringifyCensor(censor) {
var i = 0;
return function (key, value) {
if (i !== 0 && typeof censor === 'object' && typeof value == 'object' && censor == value) {
return '[Circular]';
}
if (i >= 29) {
// seems to be a harded maximum of 30 serialized objects?
return '[Unknown]';
}
++i; // so we know we aren't using the original object anymore
return value;
};
}
function isSameObject(a, b) {
return JSON.stringify(a) === JSON.stringify(b);
return JSON.stringify(a, stringifyCensor(a)) === JSON.stringify(b, stringifyCensor(b));
}

@@ -30,5 +45,5 @@ exports.isSameObject = isSameObject;

return function customFormatter(cell, formatterParams, onRendered) {
//cell - the cell component
//formatterParams - parameters set for the column
//onRendered - function to call when the formatter has been rendered
// cell - the cell component
// formatterParams - parameters set for the column
// onRendered - function to call when the formatter has been rendered
var renderFn = function () {

@@ -35,0 +50,0 @@ var cellEl = cell.getElement();

{
"name": "react-tabulator",
"version": "0.14.8",
"version": "0.15.0",
"description": "React Tabulator is based on tabulator - a JS table library with many advanced features.",

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

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