@evlop/commons 1.0.98 → 1.0.99

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":"AAAA,wBAA8B,YAAY,oBAEzC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":"AAAA,wBAA8B,YAAY,oBAKzC"}
@@ -11,7 +11,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  function getUserToken() {
13
13
  return __awaiter(this, void 0, void 0, function* () {
14
- return localStorage.getItem('token');
14
+ try {
15
+ return localStorage.getItem('token');
16
+ }
17
+ catch (e) {
18
+ }
15
19
  });
16
20
  }
17
21
  exports.default = getUserToken;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA8B,YAAY;;QACtC,OAAO,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;CAAA;AAFD,+BAEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA8B,YAAY;;QACtC,IAAG;YACC,OAAO,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;SACxC;QAAC,OAAM,CAAC,EAAC;SACT;IACL,CAAC;CAAA;AALD,+BAKC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {