Skip to content

Commit 3d42912

Browse files
committed
Merge branch 'headless' of https://github.com/sjanuary/appmetrics into headless
2 parents 3e389c9 + 9c478c6 commit 3d42912

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ The npm package for this project uses a semver-parsable X.0.Z version number for
468468
Non-release versions of this project (for example on github.com/RuntimeTools/appmetrics) will use semver-parsable X.0.Z-dev.B version numbers, where X.0.Z is the last release with Z incremented and B is an integer. For further information on the development process go to the [appmetrics wiki][3]: [Developing](https://github.com/RuntimeTools/appmetrics/wiki/Developing).
469469

470470
## Version
471-
1.1.3 development
471+
2.0 development
472472

473473
## Release History
474474
`1.1.2` - Update agent core to 3.0.10, support Node.js v7.

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@
1414
* limitations under the License.
1515
*******************************************************************************/
1616
var path = require("path")
17-
var main_filename = require.main.filename;
17+
if(require.main != null){
18+
var main_filename = require.main.filename;
19+
} else {
20+
var main_filename = "";
21+
}
1822
var module_dir = path.dirname(module.filename)
1923
var os = require("os")
2024
var aspect = require('./lib/aspect.js');

0 commit comments

Comments
 (0)