@smartsoft001/fb 2.127.0 → 2.128.0

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/index.js +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,8 +5,7 @@ var __decorateClass = (decorators, target, key, kind) => {
5
5
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
6
  if (decorator = decorators[i])
7
7
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
- if (kind && result)
9
- __defProp(target, key, result);
8
+ if (kind && result) __defProp(target, key, result);
10
9
  return result;
11
10
  };
12
11
 
@@ -16,6 +15,7 @@ var FbService = class {
16
15
  constructor(http) {
17
16
  this.http = http;
18
17
  }
18
+ http;
19
19
  async getUserId(token) {
20
20
  const { data } = await this.http.get("https://graph.facebook.com/me?access_token=" + token).toPromise();
21
21
  return data.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartsoft001/fb",
3
- "version": "2.127.0",
3
+ "version": "2.128.0",
4
4
  "description": "Utils for fb authorisation",
5
5
  "repository": {
6
6
  "type": "git",