gitsheets 0.22.2 → 0.22.3

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.
@@ -57,16 +57,16 @@ exports.handler = async function query({
57
57
  try {
58
58
  for await (const record of sheet.query()) {
59
59
  const originalPath = record[Symbol.for('gitsheets-path')];
60
- logger.info(`rewriting ${path.join(root, prefix, sheetName, originalPath)}.toml`);
60
+ logger.info(`rewriting ${path.join(root, prefix||'', sheetName, originalPath)}.toml`);
61
61
  const { path: normalizedPath } = await sheet.upsert(record);
62
62
 
63
63
  if (normalizedPath !== originalPath) {
64
- logger.warn(`^- moved to ${path.join(root, prefix, sheetName, normalizedPath)}.toml`);
64
+ logger.warn(`^- moved to ${path.join(root, prefix||'', sheetName, normalizedPath)}.toml`);
65
65
  }
66
66
  }
67
67
  } catch (err) {
68
68
  if (err.constructor.name == 'TomlError') {
69
- logger.error(`failed to parse ${path.join(root, prefix, err.file)}\n${err.message}`);
69
+ logger.error(`failed to parse ${path.join(root, prefix||'', err.file)}\n${err.message}`);
70
70
  process.exit(1);
71
71
  }
72
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitsheets",
3
- "version": "0.22.2",
3
+ "version": "0.22.3",
4
4
  "description": "A toolkit for using a git repository to store low-volume, high-touch, human-scale data",
5
5
  "main": "lib/GitSheets.js",
6
6
  "scripts": {