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

material-table

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

material-table - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

6

dist/m-table-cell.js

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

import _objectSpread from "@babel/runtime/helpers/objectSpread";
/* eslint-disable no-unused-vars */

@@ -53,5 +55,5 @@ import * as React from 'react';

if (typeof this.props.columnDef.cellStyle === 'function') {
cellStyle = Object.assign(cellStyle, this.props.columnDef.cellStyle(this.props.value));
cellStyle = _objectSpread({}, cellStyle, this.props.columnDef.cellStyle(this.props.value));
} else {
cellStyle = Object.assign(cellStyle, this.props.columnDef.cellStyle);
cellStyle = _objectSpread({}, cellStyle, this.props.columnDef.cellStyle);
}

@@ -58,0 +60,0 @@

@@ -19,3 +19,3 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread";

const calculatedProps = this.getProps(props);
this.state = Object.assign({
this.state = _objectSpread({
columns: [],

@@ -62,3 +62,3 @@ currentPage: 0,

calculatedProps.options = Object.assign(MaterialTable.defaultProps.options, calculatedProps.options);
calculatedProps.options = _objectSpread({}, MaterialTable.defaultProps.options, calculatedProps.options);
return calculatedProps;

@@ -154,3 +154,3 @@ }

if (value.toString().toUpperCase().includes(this.state.searchText.toUpperCase())) {
if (value && value.toString().toUpperCase().includes(this.state.searchText.toUpperCase())) {
result = true;

@@ -249,3 +249,3 @@ }

}),
localization: Object.assign(MaterialTable.defaultProps.localization, this.props.localization)
localization: _objectSpread({}, MaterialTable.defaultProps.localization, this.props.localization)
}), React.createElement("div", {

@@ -256,3 +256,3 @@ style: {

}, React.createElement(Table, null, React.createElement(MTableHeader, {
localization: Object.assign(MaterialTable.defaultProps.localization, this.props.localization),
localization: _objectSpread({}, MaterialTable.defaultProps.localization, this.props.localization),
columns: this.state.columns,

@@ -259,0 +259,0 @@ hasSelection: props.options.selection,

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

onClick: (event: any, data: any) => void;
iconProps: IconProps
iconProps?: IconProps
}

@@ -21,0 +21,0 @@

{
"name": "material-table",
"version": "1.1.1",
"version": "1.1.2",
"description": "Datatable for React based on https://material-ui.com/api/table/ with additional features",

@@ -5,0 +5,0 @@ "main": "dist/material-table.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