Skip to content

Commit

Permalink
Merge pull request #52 from tone-row/revert-to-safe-strip-comments
Browse files Browse the repository at this point in the history
Revert to safe strip comments
  • Loading branch information
rob-gordon authored Oct 17, 2023
2 parents d5bcb76 + beaf4d5 commit 353cb9d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion graph-selector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graph-selector",
"version": "0.9.11",
"version": "0.9.12",
"description": "Parse indented text (flowchart.fun syntax) into a graph",
"source": "src/graph-selector.ts",
"main": "dist/graph-selector.js",
Expand Down Expand Up @@ -44,6 +44,7 @@
"vitest": "^0.34.5"
},
"dependencies": {
"@tone-row/strip-comments": "^2.0.6",
"@types/cytoscape": "^3.19.11",
"html-entities": "^2.4.0",
"monaco-editor": "^0.43.0",
Expand Down
4 changes: 3 additions & 1 deletion graph-selector/src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { getEdgeBreakIndex, getFeaturesIndex } from "./regexps";

import { getFeatureData } from "./getFeatureData";
import { matchAndRemovePointers } from "./matchAndRemovePointers";
import strip from "strip-comments";
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { strip } from "@tone-row/strip-comments";
import { ParseError } from "./ParseError";

// TODO: these types could probably be improved to match the target types (in ./types.ts) more closely
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 353cb9d

Please sign in to comment.