@runnerpro/backend 1.0.12 → 1.0.13

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.
@@ -11,11 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.translate = exports.LANGUAGES = void 0;
13
13
  const { TranslationServiceClient } = require('@google-cloud/translate');
14
- const LANGUAGES = {
15
- EN: 'en',
16
- ES: 'es',
17
- FR: 'fr',
18
- };
14
+ const { LANGUAGES } = require('@runnerpro/common');
19
15
  exports.LANGUAGES = LANGUAGES;
20
16
  const translate = (text, { fromLanguage, toLanguage, }) => __awaiter(void 0, void 0, void 0, function* () {
21
17
  const projectId = process.env.GCP_PROYECT_ID;
@@ -1,8 +1,4 @@
1
- declare const LANGUAGES: {
2
- readonly EN: "en";
3
- readonly ES: "es";
4
- readonly FR: "fr";
5
- };
1
+ declare const LANGUAGES: any;
6
2
  type LANGUAGES_TYPE = keyof typeof LANGUAGES;
7
3
  declare const translate: (text: string, { fromLanguage, toLanguage, }: {
8
4
  fromLanguage: LANGUAGES_TYPE;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/translation/index.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS;;;;CAIL,CAAC;AAEX,KAAK,cAAc,GAAG,MAAM,OAAO,SAAS,CAAC;AAE7C,QAAA,MAAM,SAAS,SACP,MAAM;kBAIO,cAAc;gBAAc,cAAc;MAC5D,QAAQ,MAAM,CAgBhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/translation/index.ts"],"names":[],"mappings":"AACA,QAAA,MAAQ,SAAS,KAAiC,CAAC;AAEnD,KAAK,cAAc,GAAG,MAAM,OAAO,SAAS,CAAC;AAE7C,QAAA,MAAM,SAAS,SACP,MAAM;kBAIO,cAAc;gBAAc,cAAc;MAC5D,QAAQ,MAAM,CAgBhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
6
  ".": "./lib/cjs/index.js"
@@ -44,6 +44,7 @@
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@parse/node-apn": "6.0.1",
47
+ "@runnerpro/common": "^1.1.54",
47
48
  "axios": "^1.6.7",
48
49
  "nodemailer": "6.9.9",
49
50
  "pg": "8.11.3"