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

abstract-sheet

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-sheet - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

3

lib/abstract-sheet-exporters/_style.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createStyle = void 0;
exports.createStyle = createStyle;
function createStyle(style) {

@@ -112,3 +112,2 @@ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;

}
exports.createStyle = createStyle;
//# sourceMappingURL=_style.js.map

@@ -18,11 +18,21 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.xlsxWorkSheet = void 0;
exports.xlsxWorkSheet = xlsxWorkSheet;
const XLSX = __importStar(require("xlsx-js-style"));

@@ -52,3 +62,2 @@ function xlsxWorkSheet(sheet, styles) {

}
exports.xlsxWorkSheet = xlsxWorkSheet;
const cellObject = (colType) => {

@@ -55,0 +64,0 @@ switch (colType) {

@@ -18,11 +18,21 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.toCsv = void 0;
exports.toCsv = toCsv;
const XLSX = __importStar(require("xlsx-js-style"));

@@ -50,3 +60,2 @@ const _xlsx_sheet_1 = require("./_xlsx-sheet");

}
exports.toCsv = toCsv;
//# sourceMappingURL=csv.js.map

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.toReact = void 0;
exports.toReact = toReact;
const react_1 = __importDefault(require("react"));

@@ -93,3 +93,2 @@ function toReact({ abstractSheet }) {

}
exports.toReact = toReact;
function borderWidth(border) {

@@ -96,0 +95,0 @@ switch (border) {

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

/// <reference types="node" />
import { AbstractSheet } from "../abstract-sheet/abstract-sheet";
export declare function toXlsx(...abstractSheets: ReadonlyArray<AbstractSheet>): Buffer;
//# sourceMappingURL=xlsx.d.ts.map

@@ -18,11 +18,21 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.toXlsx = void 0;
exports.toXlsx = toXlsx;
const XLSX = __importStar(require("xlsx-js-style"));

@@ -45,3 +55,2 @@ const _xlsx_sheet_1 = require("./_xlsx-sheet");

}
exports.toXlsx = toXlsx;
//# sourceMappingURL=xlsx.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parsedXsd = exports.abstractSheetOfXml = exports.abstractSheetXml = void 0;
exports.parsedXsd = exports.abstractSheetXml = void 0;
exports.abstractSheetOfXml = abstractSheetOfXml;
const abstract_sheet_1 = require("../abstract-sheet/abstract-sheet");

@@ -131,4 +132,3 @@ const abstract_sheet_xsd_1 = require("../abstract-sheet/abstract-sheet-xsd");

}
exports.abstractSheetOfXml = abstractSheetOfXml;
exports.parsedXsd = (0, mustache_xml_1.parseXsd)(abstract_sheet_xsd_1.xsd);
//# sourceMappingURL=abstract-sheet-xml.js.map

@@ -18,9 +18,19 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -30,3 +40,6 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

Object.defineProperty(exports, "__esModule", { value: true });
exports.getChildren = exports.findElement = exports.parseXsd = exports.parseXml = exports.parseXmlCustom = exports.render = exports.parseMustacheXml = void 0;
exports.parseXsd = exports.parseXml = exports.render = exports.parseMustacheXml = void 0;
exports.parseXmlCustom = parseXmlCustom;
exports.findElement = findElement;
exports.getChildren = getChildren;
const FXmlP = __importStar(require("fast-xml-parser"));

@@ -43,3 +56,2 @@ const mustache_1 = __importDefault(require("mustache"));

}
exports.parseXmlCustom = parseXmlCustom;
const parseXml = (text) => transformFXP(xmlParser.parse(text));

@@ -98,3 +110,2 @@ exports.parseXml = parseXml;

}
exports.findElement = findElement;
function getChildren(elements) {

@@ -115,3 +126,2 @@ for (const elem of elements) {

}
exports.getChildren = getChildren;
function shouldSkipLevel(tag) {

@@ -118,0 +128,0 @@ return (tag.tagName === "all" || tag.tagName === "sequence" || tag.tagName === "choice" || tag.attributes.name === undefined);

@@ -18,11 +18,22 @@ "use strict";

});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __importStar = (this && this.__importStar) || (function () {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.errorToReadableText = exports.validateXml = void 0;
exports.validateXml = validateXml;
exports.errorToReadableText = errorToReadableText;
const FXmlP = __importStar(require("fast-xml-parser"));

@@ -82,3 +93,2 @@ const parse_mustache_xml_1 = require("./parse-mustache-xml");

}
exports.validateXml = validateXml;
function validateElements(element, schemaElement, completeSchema, getRangeOfElement) {

@@ -213,3 +223,2 @@ const errors = [];

}
exports.errorToReadableText = errorToReadableText;
function rangeLessThan(range1, range2) {

@@ -216,0 +225,0 @@ return range1.startLineNumber < range2.startLineNumber

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

exports.borderStyleRecord = Object.fromEntries(borderStyles.map((s) => [s, s]));
//dummy
//# sourceMappingURL=abstract-sheet.js.map
{
"name": "abstract-sheet",
"version": "0.0.7",
"version": "0.0.8",
"description": "Abstract sheet",

@@ -31,3 +31,3 @@ "author": "Divid AB <info@divid.se>",

},
"gitHead": "86ae6bb1c7cf9909c7ec473986770f4794912ae4"
"gitHead": "df738a548d2391d79ba376947c7707555818e91b"
}

@@ -85,1 +85,3 @@ export type AbstractSheet = {

export const borderStyleRecord = Object.fromEntries(borderStyles.map((s) => [s, s]));
//dummy

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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