Skip to content

Commit

Permalink
Merge pull request #20 from tanainc/eh/avoid-node-deps
Browse files Browse the repository at this point in the history
Do not pull in process, this will be used in a browser setting
  • Loading branch information
eirikhm authored Nov 26, 2023
2 parents c9d1a58 + 3cea689 commit ab46a7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/converters/logseq/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { exit } from 'process';
import {
NodeType,
TanaIntermediateAttribute,
Expand Down Expand Up @@ -586,8 +585,7 @@ export class LogseqConverter implements IConverter {
}

if (node.type !== 'field') {
console.error('Trying to get attr def for non-field node');
exit();
throw new Error('Trying to get attr def for non-field node');
}

let intermediateAttr: TanaIntermediateAttribute | undefined = this.attrMap.get(node.name);
Expand Down

0 comments on commit ab46a7b

Please sign in to comment.