Skip to content

Commit

Permalink
fix: keyswithmetadata require
Browse files Browse the repository at this point in the history
Remove the duplicate require & exports line and change the
remaining import to include .json in the file reference. This
makes the require Webpack-friendly and allows usage in browser
environment.
  • Loading branch information
tkurki committed Jan 3, 2024
1 parent fbf3751 commit 2ffd12a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,12 @@ module.exports.chaiModule = chaiAsPromised;
module.exports.getTv4 = getTv4;
module.exports.subSchemas = subSchemas;
module.exports.units = require('../schemas/definitions').definitions.units;
module.exports.metadata = require('./keyswithmetadata');
module.exports.metadata = require('./keyswithmetadata.json');
module.exports.FullSignalK = FullSignalK;
module.exports.fakeMmsiId = "urn:mrn:imo:mmsi:230099999";
module.exports.getSourceId = getSourceId;
module.exports.keyForSourceIdPath = keyForSourceIdPath;

module.exports.metadata = require('./keyswithmetadata');

var metadataByRegex = []
_.forIn(module.exports.metadata, (value, key) => {
Expand Down

0 comments on commit 2ffd12a

Please sign in to comment.