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

react-data-grid-temp

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-data-grid-temp - npm Package Compare versions

Comparing version 7.0.0-canary.22.3 to 7.0.0-canary.22.4

21

lib/utils/columnUtils.js

@@ -14,21 +14,2 @@ var __assign = (this && this.__assign) || function () {

import { SELECT_COLUMN_KEY } from '../Columns';
// 修复sort的兼容性问题
function sort(array, compare) {
for (var i = 1; i < array.length; i += 1) {
var currentIndex = i;
while (currentIndex > 0) {
var nextIndex = currentIndex - 1;
var position = compare(array[currentIndex], array[nextIndex]);
if (position < 0) {
var swap = array[nextIndex];
array[nextIndex] = array[currentIndex];
array[currentIndex] = swap;
currentIndex = nextIndex;
}
else {
break;
}
}
}
}
export function getColumnMetrics(metrics) {

@@ -61,3 +42,3 @@ var left = 0;

});
sort(columns, function (_a, _b) {
columns.sort(function (_a, _b) {
var aKey = _a.key, frozenA = _a.frozen;

@@ -64,0 +45,0 @@ var bKey = _b.key, frozenB = _b.frozen;

2

package.json
{
"name": "react-data-grid-temp",
"version": "7.0.0-canary.22.3",
"version": "7.0.0-canary.22.4",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like",

Sorry, the diff of this file is not supported yet

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