case-editor-tools 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/exporter/index.js CHANGED
@@ -111,7 +111,7 @@ const generateMessageConfigs = (study, outputPath, pretty) => {
111
111
  fs__default["default"].mkdirSync(messageConfigPath, { recursive: true });
112
112
  }
113
113
  study.messageConfigs.forEach(conf => {
114
- const fileName = `${messageConfigPath}/${conf.label.replace(' ', '_').toLocaleLowerCase()}.json`;
114
+ const fileName = `${messageConfigPath}/${conf.label.replace(/ /g, '_').toLocaleLowerCase()}.json`;
115
115
  const outputObject = types_messageConfig.buildMessageConfig(conf, study.studyKey);
116
116
  try {
117
117
  fs__default["default"].writeFileSync(fileName, JSON.stringify(outputObject, undefined, pretty ? 2 : undefined));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "case-editor-tools",
3
3
  "description": "Javascript tools to simplify survey and study coding for CASE.",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "main": "index.js",
6
6
  "license": "Apache-2.0",
7
7
  "repository": "github:case-framework/case-editor-tools",