@crowdin/app-project-module 0.19.0 → 0.19.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.
Files changed (2) hide show
  1. package/out/index.js +2 -2
  2. package/package.json +1 -1
package/out/index.js CHANGED
@@ -161,7 +161,7 @@ function addCrowdinEndpoints(app, config) {
161
161
  app.use('/reports', (0, ui_module_1.default)(config), express_1.default.static(config.projectReports.uiPath));
162
162
  }
163
163
  return {
164
- getMetadata: storage.getStorage().getMetadata,
164
+ getMetadata: storage.getStorage().getMetadata.bind(storage.getStorage()),
165
165
  saveMetadata: (id, metadata) => __awaiter(this, void 0, void 0, function* () {
166
166
  const existing = yield storage.getStorage().getMetadata(id);
167
167
  if (existing) {
@@ -171,7 +171,7 @@ function addCrowdinEndpoints(app, config) {
171
171
  yield storage.getStorage().saveMetadata(id, metadata);
172
172
  }
173
173
  }),
174
- deleteMetadata: storage.getStorage().deleteMetadata,
174
+ deleteMetadata: storage.getStorage().deleteMetadata.bind(storage.getStorage()),
175
175
  getUserSettings: (clientId) => __awaiter(this, void 0, void 0, function* () {
176
176
  const integrationCredentials = yield storage.getStorage().getIntegrationCredentials(clientId);
177
177
  if (integrationCredentials === null || integrationCredentials === void 0 ? void 0 : integrationCredentials.config) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.19.0",
3
+ "version": "0.19.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",