@crowdin/app-project-module 1.2.0 → 1.2.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.
@@ -624,13 +624,14 @@ class SQLiteStorage {
624
624
  });
625
625
  }
626
626
  saveTranslationCache(params) {
627
+ var _a;
627
628
  return __awaiter(this, void 0, void 0, function* () {
628
629
  this.db.prepare(`
629
630
  INSERT INTO translation_file_cache
630
631
  (integration_id, crowdin_id, file_id, language_id, etag)
631
632
  VALUES
632
633
  (@integrationId, @crowdinId, @fileId, @languageId, @etag)
633
- `).run(params);
634
+ `).run(Object.assign(Object.assign({}, params), { etag: (_a = params.etag) !== null && _a !== void 0 ? _a : null }));
634
635
  });
635
636
  }
636
637
  getFileTranslationCache(params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",