@smartsoft001/google 1.1.71 → 1.1.75

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/google",
3
- "version": "1.1.71",
3
+ "version": "1.1.75",
4
4
  "description": "This library was generated with [Nx](https://nx.dev).",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,11 +13,11 @@
13
13
  },
14
14
  "homepage": "https://github.com/emiljuchnikowski/smartsoft#readme",
15
15
  "dependencies": {
16
- "@nestjs/axios": "^0.1.0",
17
- "@nestjs/common": "9.4.0"
16
+ "@nestjs/axios": "3.0.0",
17
+ "@nestjs/common": "^10.0.5"
18
18
  },
19
19
  "peerDependencies": {
20
- "tslib": "2.4.1"
20
+ "tslib": "2.5.3"
21
21
  },
22
22
  "main": "./src/index.js",
23
23
  "types": "./src/index.d.ts"
@@ -4,31 +4,26 @@ exports.GoogleService = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const common_1 = require("@nestjs/common");
6
6
  const axios_1 = require("@nestjs/axios");
7
- let GoogleService = class GoogleService {
7
+ let GoogleService = exports.GoogleService = class GoogleService {
8
8
  constructor(http) {
9
9
  this.http = http;
10
10
  }
11
- getUserId(token) {
12
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
13
- const { data } = yield this.http
14
- .get('https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=' + token).toPromise();
15
- return data.user_id;
16
- });
11
+ async getUserId(token) {
12
+ const { data } = await this.http
13
+ .get('https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=' + token).toPromise();
14
+ return data.user_id;
17
15
  }
18
- getData(token) {
19
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
20
- const { data } = yield this.http
21
- .get('https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=' + token).toPromise();
22
- return {
23
- id: data.user_id,
24
- email: data.email
25
- };
26
- });
16
+ async getData(token) {
17
+ const { data } = await this.http
18
+ .get('https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=' + token).toPromise();
19
+ return {
20
+ id: data.user_id,
21
+ email: data.email
22
+ };
27
23
  }
28
24
  };
29
- GoogleService = tslib_1.__decorate([
25
+ exports.GoogleService = GoogleService = tslib_1.__decorate([
30
26
  (0, common_1.Injectable)(),
31
27
  tslib_1.__metadata("design:paramtypes", [axios_1.HttpService])
32
28
  ], GoogleService);
33
- exports.GoogleService = GoogleService;
34
29
  //# sourceMappingURL=google.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"google.service.js","sourceRoot":"","sources":["../../../../../../libs/shared/google/src/lib/google.service.ts"],"names":[],"mappings":";;;;AAAA,2CAA0C;AAC1C,yCAA0C;AAGnC,IAAM,aAAa,GAAnB,MAAM,aAAa;IACtB,YAAoB,IAAiB;QAAjB,SAAI,GAAJ,IAAI,CAAa;IAAI,CAAC;IAEpC,SAAS,CAAC,KAAa;;YACzB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI;iBAC3B,GAAG,CAAC,8DAA8D,GAAG,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC;YAE7F,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;KAAA;IAEK,OAAO,CAAC,KAAa;;YACvB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI;iBAC3B,GAAG,CAAC,8DAA8D,GAAG,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC;YAE7F,OAAO;gBACH,EAAE,EAAE,IAAI,CAAC,OAAO;gBAChB,KAAK,EAAE,IAAI,CAAC,KAAK;aACpB,CAAC;QACN,CAAC;KAAA;CACJ,CAAA;AAnBY,aAAa;IADzB,IAAA,mBAAU,GAAE;6CAEiB,mBAAW;GAD5B,aAAa,CAmBzB;AAnBY,sCAAa"}
1
+ {"version":3,"file":"google.service.js","sourceRoot":"","sources":["../../../../../../libs/shared/google/src/lib/google.service.ts"],"names":[],"mappings":";;;;AAAA,2CAA0C;AAC1C,yCAA0C;AAGnC,IAAM,aAAa,2BAAnB,MAAM,aAAa;IACtB,YAAoB,IAAiB;QAAjB,SAAI,GAAJ,IAAI,CAAa;IAAI,CAAC;IAE1C,KAAK,CAAC,SAAS,CAAC,KAAa;QACzB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI;aAC3B,GAAG,CAAC,8DAA8D,GAAG,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC;QAE7F,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,KAAa;QACvB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI;aAC3B,GAAG,CAAC,8DAA8D,GAAG,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC;QAE7F,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,OAAO;YAChB,KAAK,EAAE,IAAI,CAAC,KAAK;SACpB,CAAC;IACN,CAAC;CACJ,CAAA;wBAnBY,aAAa;IADzB,IAAA,mBAAU,GAAE;6CAEiB,mBAAW;GAD5B,aAAa,CAmBzB"}