Skip to content

Commit bda1aa5

Browse files
authored
Merge pull request #69 from snyk/fix/mainline-graphlib
fix: Switch back to `graphlib`
2 parents cfb9e0a + 4aabc83 commit bda1aa5

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"url": "https://github.com/snyk/dep-graph/issues"
3131
},
3232
"devDependencies": {
33+
"@types/graphlib": "^2.1.6",
3334
"@types/jest": "^25",
3435
"@types/node": "^8",
3536
"@types/object-hash": "^1.3.1",
@@ -42,7 +43,7 @@
4243
"typescript": "~3.8.3"
4344
},
4445
"dependencies": {
45-
"@snyk/graphlib": "2.1.9-patch.2",
46+
"graphlib": "^2.1.8",
4647
"lodash.isequal": "^4.5.0",
4748
"object-hash": "^2.0.3",
4849
"semver": "^6.0.0",

src/core/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as graphlib from '@snyk/graphlib';
1+
import * as graphlib from 'graphlib';
22
import * as types from './types';
33
import { DepGraphImpl } from './dep-graph';
44

src/core/create-from-json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as semver from 'semver';
2-
import * as graphlib from '@snyk/graphlib';
2+
import * as graphlib from 'graphlib';
33
import * as types from './types';
44

55
import { DepGraph, DepGraphData, GraphNode } from './types';

src/core/dep-graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as _isEqual from 'lodash.isequal';
2-
import * as graphlib from '@snyk/graphlib';
2+
import * as graphlib from 'graphlib';
33
import * as types from './types';
44
import { createFromJSON } from './create-from-json';
55

src/core/validate-graph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as graphlib from '@snyk/graphlib';
1+
import * as graphlib from 'graphlib';
22
import { ValidationError } from './errors';
33

44
function assert(condition: boolean, msg: string) {

0 commit comments

Comments
 (0)