Socket
Socket
Sign inDemoInstall

@skypilot/steampress

Package Overview
Dependencies
52
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.3 to 1.2.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 1.2.0 (2019-11-26)
* add: Can conditionally exclude a cell from the output ([7b4fc02](https://github.com/skypilotcc/steampress/commit/7b4fc02))
## <small>1.1.3 (2019-11-25)</small>

@@ -2,0 +8,0 @@

9

lib/excel/parseExcelRow.js

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

disallowEmptyCellsInColumn = disallowEmptyCellsInRow,
exclude,
ignoreRowIfFalsy,

@@ -61,3 +62,3 @@ ignoreRowIfTruthy,

if (cellIsEmpty(actualValue)) {
if (defaultValue !== undefined) {
if (!exclude && defaultValue !== undefined) {
transformedRow[outputProperty] = defaultValue;

@@ -72,3 +73,3 @@ return;

}
} else if (disallowEmptyCellsInColumn) {
} else if (!exclude && disallowEmptyCellsInColumn) {
throw new Error(`ERROR: Row ${rowIndex + 1} contains no value for '${outputProperty}', but the cell cannot be empty and no default value has been set`);

@@ -87,2 +88,6 @@ }

if (exclude) {
return;
}
let transformedValue = initialValue;

@@ -89,0 +94,0 @@ const isValidOptions = {

@@ -18,2 +18,3 @@ import { Integer, JsonObject } from '@skypilot/common-types';

disallowEmptyCellsInColumn?: boolean;
exclude?: boolean | ((...args: any[]) => boolean);
expectedHeader?: string;

@@ -20,0 +21,0 @@ ignoreRowIf?: IgnoreRowIf;

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/skypilotcc/steampress#readme",
"version": "1.1.3",
"version": "1.2.0",
"main": "lib/index.js",

@@ -8,0 +8,0 @@ "author": {

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