firebase-contract 0.1.0 → 0.1.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.
@@ -339,7 +339,7 @@ const renderOperationGql = (ir, op, model) => {
339
339
  const rest = w.field.slice(dot + 1).split('.');
340
340
  let inner = `{ ${w.op}: ${value} }`;
341
341
  for (let i = rest.length - 1; i >= 0; i--)
342
- inner = `{ ${rest[i]}: ${inner} }`.replace(/^\{ /, '{ ').replace(/ \}$/, ' }');
342
+ inner = `{ ${rest[i]}: ${inner} }`;
343
343
  // strip outermost braces since group renderer adds them
344
344
  group.conds.push(inner.slice(2, -2));
345
345
  group.sub = true;
@@ -90,7 +90,7 @@ export const createTypeScriptSplitLayout = () => ({
90
90
  .filter((m) => Boolean(m));
91
91
  emit(moduleName, enums, [...models, table], false);
92
92
  }
93
- const exports = files.map(file => `export * from './${file.path.replace(/^types\//, 'types/').replace(/\.ts$/, '')}'`);
93
+ const exports = files.map(file => `export * from './${file.path.replace(/\.ts$/, '')}'`);
94
94
  files.push({ path: outputFile(context, 'types.ts'), content: `${[...headerBlocks(context), exports.join('\n')].join('\n\n')}\n` });
95
95
  return files;
96
96
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-contract",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "firebase-contract": "./dist/lib/cli/index.js",