Skip to content

Commit 0d3334c

Browse files
committed
Implement a better way of guessing the framework name and version
1 parent 7010f4d commit 0d3334c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

index.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,6 @@ exports.init = function(opts) {
2929
}
3030
};
3131

32-
exports.getFrameworkName = function getFrameworkName() {
33-
if (!opts.framework) { return null; }
34-
return opts.framework.name || null;
35-
};
36-
37-
exports.getFrameworkVersion = function getFrameworkVersion() {
38-
if (!opts.framework) { return null; }
39-
40-
try {
41-
var frameworkVersion = opts.framework.version.match(REGEX_VERSION);
42-
if (frameworkVersion && frameworkVersion[0]) {
43-
return frameworkVersion[0];
44-
}
45-
} catch (error) {
46-
return null;
47-
}
48-
};
49-
5032
exports.getDatabaseType = function getDatabaseType() {
5133
return 'MongoDB';
5234
};

0 commit comments

Comments
 (0)