@microsoft/connected-workbooks 3.4.0-beta → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/utils/gridUtils.js +4 -4
- package/package.json +3 -1
package/dist/utils/gridUtils.js
CHANGED
|
@@ -79,7 +79,7 @@ var validateUniqueAndValidDataArray = function (arr) {
|
|
|
79
79
|
if (arr.some(function (element) { return element === ""; })) {
|
|
80
80
|
return false; // Array contains empty elements
|
|
81
81
|
}
|
|
82
|
-
var uniqueSet = new Set(arr);
|
|
82
|
+
var uniqueSet = new Set(arr.map(function (item) { return item.toLowerCase(); }));
|
|
83
83
|
return uniqueSet.size === arr.length;
|
|
84
84
|
};
|
|
85
85
|
var getAdjustedColumnNames = function (columnNames) {
|
|
@@ -93,11 +93,11 @@ var getAdjustedColumnNames = function (columnNames) {
|
|
|
93
93
|
return columnNames.map(function (name) {
|
|
94
94
|
var uniqueName = name;
|
|
95
95
|
i = 1;
|
|
96
|
-
while (uniqueNames.has(uniqueName)) {
|
|
96
|
+
while (uniqueNames.has(uniqueName.toLowerCase())) {
|
|
97
97
|
uniqueName = "".concat(name, " (").concat(i++, ")");
|
|
98
98
|
}
|
|
99
|
-
uniqueNames.add(uniqueName);
|
|
99
|
+
uniqueNames.add(uniqueName.toLowerCase());
|
|
100
100
|
return uniqueName;
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
|
-
exports.default = { parseToTableData: parseToTableData };
|
|
103
|
+
exports.default = { parseToTableData: parseToTableData, validateUniqueAndValidDataArray: validateUniqueAndValidDataArray };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/connected-workbooks",
|
|
3
|
-
"version": "3.4.0
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "Microsoft backed, Excel advanced xlsx workbook generation JavaScript library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -14,7 +14,9 @@
|
|
|
14
14
|
"build": "tsc",
|
|
15
15
|
"build-webpack-prod": "webpack --mode=production --node-env=production",
|
|
16
16
|
"build-webpack-dev": "webpack --mode=development --node-env=development",
|
|
17
|
+
"clean": "jest --clearCache",
|
|
17
18
|
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" --config .prettierrc",
|
|
19
|
+
"test:clean": "npm run clean && npm run test",
|
|
18
20
|
"test:node": "tsc && jest --config jest.config.node.js",
|
|
19
21
|
"test:jsdom": "tsc && jest --config jest.config.jsdom.js",
|
|
20
22
|
"test": "npm run test:jsdom && npm run test:node"
|