Skip to content

Commit

Permalink
Revert Updated detection of compact mode
Browse files Browse the repository at this point in the history
  • Loading branch information
crycode-de committed Dec 7, 2020
1 parent a806a2a commit 68edf69
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ By writing JSON data to the `raw.send` state you are able to send CAN messages c

### 1.0.0-beta.4 (2020-12-01)
* (crycode-de) Ignore read value if a parser returned `undefined`
* (crycode-de) Updated detection of compact mode
* (crycode-de) Updated dependencies

### 1.0.0-beta.3 (2020-11-25)
Expand Down
2 changes: 1 addition & 1 deletion build/main.js

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

2 changes: 1 addition & 1 deletion build/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ export class CanBusAdapter extends utils.Adapter {
}
}

if (require.main !== module) {
if (module.parent) {
// Export the constructor in compact mode
module.exports = (options: Partial<utils.AdapterOptions> | undefined) => new CanBusAdapter(options);
} else {
Expand Down

0 comments on commit 68edf69

Please sign in to comment.