Skip to content

Commit b516d59

Browse files
committed
Fix imports from js-graph-algorithms
Thanks to @leokolezhuk for sharing this patch: chen0040/js-graph-algorithms#12 (comment)
1 parent 01513c5 commit b516d59

File tree

3 files changed

+285
-0
lines changed

3 files changed

+285
-0
lines changed

Diff for: package-lock.json

+269
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"build": "ember build --environment=production",
1515
"lint:hbs": "ember-template-lint .",
1616
"lint:js": "eslint .",
17+
"postinstall": "patch-package",
1718
"start": "ember serve",
1819
"test": "ember test"
1920
},
@@ -84,6 +85,7 @@
8485
"moment-timezone": "0.5.0",
8586
"node-sass": "^4.14.1",
8687
"nokia-font": "backspace/nokia-font#primary",
88+
"patch-package": "^6.5.1",
8789
"pdfkit": "^0.10.0",
8890
"pouchdb-adapter-memory": "^7.3.1",
8991
"qunit-dom": "^1.0.0",

Diff for: patches/js-graph-algorithms+1.0.18.patch

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/node_modules/js-graph-algorithms/src/jsgraphs.js b/node_modules/js-graph-algorithms/src/jsgraphs.js
2+
index 12fbde5..1b112a6 100755
3+
--- a/node_modules/js-graph-algorithms/src/jsgraphs.js
4+
+++ b/node_modules/js-graph-algorithms/src/jsgraphs.js
5+
@@ -1202,7 +1202,4 @@ var jsgraphs = jsgraphs || {};
6+
jss.FordFulkerson = FordFulkerson;
7+
})(jsgraphs);
8+
9+
-var module = module || {};
10+
-if(module) {
11+
- module.exports = jsgraphs;
12+
-}
13+
\ No newline at end of file
14+
+module.exports = jsgraphs;

0 commit comments

Comments
 (0)