@getguru/import-engine 0.1.0 → 0.1.1
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/README.md +1 -1
- package/docx-import-cli.js +7 -9
- package/package.json +4 -4
package/README.md
CHANGED
package/docx-import-cli.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
2
|
var __create = Object.create;
|
|
4
3
|
var __defProp = Object.defineProperty;
|
|
5
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -114321,7 +114320,7 @@ var import_jszip5 = __toESM(require_lib3());
|
|
|
114321
114320
|
var import_url_join6 = __toESM(require_url_join());
|
|
114322
114321
|
|
|
114323
114322
|
// packages/import-engine/package.json
|
|
114324
|
-
var version = "0.1.
|
|
114323
|
+
var version = "0.1.1";
|
|
114325
114324
|
|
|
114326
114325
|
// src/docx-import/detectors.js
|
|
114327
114326
|
function isGoogleSitesDoc(div) {
|
|
@@ -114345,7 +114344,7 @@ var showError;
|
|
|
114345
114344
|
var updateLoader;
|
|
114346
114345
|
var showReport;
|
|
114347
114346
|
var docLinkIndex = /* @__PURE__ */ new Map();
|
|
114348
|
-
var toolVersion = true ? `${version}+${"
|
|
114347
|
+
var toolVersion = true ? `${version}+${"e19020c"}` : version;
|
|
114349
114348
|
var pendingUpload = null;
|
|
114350
114349
|
function confirmPendingUpload() {
|
|
114351
114350
|
const upload = pendingUpload;
|
|
@@ -115342,7 +115341,7 @@ function checkBoardYaml(zip, task, report) {
|
|
|
115342
115341
|
}
|
|
115343
115342
|
}
|
|
115344
115343
|
if (board.Items) {
|
|
115345
|
-
let
|
|
115344
|
+
let checkCard = function(card) {
|
|
115346
115345
|
var possibleKeys = ["Type", "ID"];
|
|
115347
115346
|
var otherKeys = setSubtract(Object.keys(card), possibleKeys);
|
|
115348
115347
|
otherKeys.forEach(function(key) {
|
|
@@ -115358,7 +115357,7 @@ function checkBoardYaml(zip, task, report) {
|
|
|
115358
115357
|
if (!zip.files[`cards/${card.ID}.yaml`]) {
|
|
115359
115358
|
report.error(`This board references a card (ID = "${card.ID}") that does not seem to exist in this zip, we expect cards/${card.ID}.yaml would also exist.`);
|
|
115360
115359
|
}
|
|
115361
|
-
},
|
|
115360
|
+
}, checkSection = function(section) {
|
|
115362
115361
|
var possibleKeys = ["Type", "Items", "Title"];
|
|
115363
115362
|
var otherKeys = setSubtract(Object.keys(section), possibleKeys);
|
|
115364
115363
|
otherKeys.forEach(function(key) {
|
|
@@ -115377,13 +115376,12 @@ function checkBoardYaml(zip, task, report) {
|
|
|
115377
115376
|
} else if (item.Type != "card") {
|
|
115378
115377
|
report.error(`Section items must have Type = "card" but one has Type = "${item.Type}".`);
|
|
115379
115378
|
} else {
|
|
115380
|
-
|
|
115379
|
+
checkCard(item);
|
|
115381
115380
|
}
|
|
115382
115381
|
});
|
|
115383
115382
|
}
|
|
115384
115383
|
}
|
|
115385
115384
|
};
|
|
115386
|
-
var checkCard = checkCard2, checkSection = checkSection2;
|
|
115387
115385
|
var cardIds = [];
|
|
115388
115386
|
if (!Array.isArray(board.Items)) {
|
|
115389
115387
|
report.error(`The board's Items property is optional, but if it's provided it must be a list of objects.`);
|
|
@@ -115397,9 +115395,9 @@ function checkBoardYaml(zip, task, report) {
|
|
|
115397
115395
|
report.error(`Every item on the board needs a "Type" property.`);
|
|
115398
115396
|
} else {
|
|
115399
115397
|
if (item.Type == "card") {
|
|
115400
|
-
|
|
115398
|
+
checkCard(item);
|
|
115401
115399
|
} else if (item.Type == "section") {
|
|
115402
|
-
|
|
115400
|
+
checkSection(item);
|
|
115403
115401
|
} else {
|
|
115404
115402
|
report.error(`A board item has an unexpected Type value, we expect either "card" or "section" but got "${item.Type}" instead.`);
|
|
115405
115403
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getguru/import-engine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Command-line engine that turns Notion, Confluence, Google, Word, PDF, Markdown and spreadsheet exports into Guru import zips.",
|
|
5
5
|
"bin": {
|
|
6
|
-
"guru-import-engine": "
|
|
6
|
+
"guru-import-engine": "docx-import-cli.js"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"docx-import-cli.js",
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"LICENSE.md"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"jsdom": "
|
|
14
|
+
"jsdom": "28.1.0"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=22"
|
|
17
|
+
"node": ">=22.12"
|
|
18
18
|
},
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|