Socket
Socket
Sign inDemoInstall

table

Package Overview
Dependencies
17
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.7.2 to 6.7.3

2

dist/makeStreamConfig.d.ts

@@ -7,2 +7,2 @@ import type { StreamUserConfig } from './types/api';

*/
export declare const makeStreamConfig: (userConfig: StreamUserConfig) => StreamConfig;
export declare const makeStreamConfig: (config: StreamUserConfig) => StreamConfig;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeStreamConfig = void 0;
const lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));
const utils_1 = require("./utils");

@@ -32,5 +28,4 @@ const validateConfig_1 = require("./validateConfig");

*/
const makeStreamConfig = (userConfig) => {
validateConfig_1.validateConfig('streamConfig.json', userConfig);
const config = lodash_clonedeep_1.default(userConfig);
const makeStreamConfig = (config) => {
validateConfig_1.validateConfig('streamConfig.json', config);
if (config.columnDefault.width === undefined) {

@@ -37,0 +32,0 @@ throw new Error('Must provide config.columnDefault.width when creating a stream.');

@@ -7,2 +7,2 @@ import type { TableUserConfig } from './types/api';

*/
export declare const makeTableConfig: (rows: Row[], userConfig?: TableUserConfig) => TableConfig;
export declare const makeTableConfig: (rows: Row[], config?: TableUserConfig) => TableConfig;

@@ -7,3 +7,2 @@ "use strict";

exports.makeTableConfig = void 0;
const lodash_clonedeep_1 = __importDefault(require("lodash.clonedeep"));
const calculateColumnWidths_1 = __importDefault(require("./calculateColumnWidths"));

@@ -49,6 +48,5 @@ const utils_1 = require("./utils");

*/
const makeTableConfig = (rows, userConfig = {}) => {
const makeTableConfig = (rows, config = {}) => {
var _a, _b, _c;
validateConfig_1.validateConfig('config.json', userConfig);
const config = lodash_clonedeep_1.default(userConfig);
validateConfig_1.validateConfig('config.json', config);
return {

@@ -55,0 +53,0 @@ ...config,

@@ -9,3 +9,2 @@ {

"ajv": "^8.0.1",
"lodash.clonedeep": "^4.5.0",
"lodash.truncate": "^4.4.2",

@@ -19,3 +18,2 @@ "slice-ansi": "^4.0.0",

"@types/chai": "^4.2.16",
"@types/lodash.clonedeep": "^4.5.6",
"@types/lodash.mapvalues": "^4.6.6",

@@ -95,3 +93,3 @@ "@types/lodash.truncate": "^4.4.6",

},
"version": "6.7.2"
"version": "6.7.3"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc