@feathersjs/authentication-client 5.0.5 → 5.0.7

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/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.0.7](https://github.com/feathersjs/feathers/compare/v5.0.6...v5.0.7) (2023-07-14)
7
+
8
+ **Note:** Version bump only for package @feathersjs/authentication-client
9
+
10
+
11
+
12
+
13
+
14
+ ## [5.0.6](https://github.com/feathersjs/feathers/compare/v5.0.5...v5.0.6) (2023-06-15)
15
+
16
+ ### Bug Fixes
17
+
18
+ - **authentication-client:** Do not trigger storage methods if storage not defined ([#3210](https://github.com/feathersjs/feathers/issues/3210)) ([261acbc](https://github.com/feathersjs/feathers/commit/261acbcde387db731e434cb106a27b49dcb64a9a))
19
+ - **authentication-client:** removeAccessToken throws error if storage not defined ([#3195](https://github.com/feathersjs/feathers/issues/3195)) ([b8e2769](https://github.com/feathersjs/feathers/commit/b8e27698f7958a91fe9a4ee64ec5591d23194c44))
20
+
6
21
  ## [5.0.5](https://github.com/feathersjs/feathers/compare/v5.0.4...v5.0.5) (2023-04-28)
7
22
 
8
23
  **Note:** Version bump only for package @feathersjs/authentication-client
package/lib/storage.js CHANGED
@@ -23,13 +23,16 @@ class StorageWrapper {
23
23
  this.storage = storage;
24
24
  }
25
25
  getItem(key) {
26
- return Promise.resolve(this.storage.getItem(key));
26
+ var _a;
27
+ return Promise.resolve((_a = this.storage) === null || _a === void 0 ? void 0 : _a.getItem(key));
27
28
  }
28
29
  setItem(key, value) {
29
- return Promise.resolve(this.storage.setItem(key, value));
30
+ var _a;
31
+ return Promise.resolve((_a = this.storage) === null || _a === void 0 ? void 0 : _a.setItem(key, value));
30
32
  }
31
33
  removeItem(key) {
32
- return Promise.resolve(this.storage.removeItem(key));
34
+ var _a;
35
+ return Promise.resolve((_a = this.storage) === null || _a === void 0 ? void 0 : _a.removeItem(key));
33
36
  }
34
37
  }
35
38
  exports.StorageWrapper = StorageWrapper;
@@ -1 +1 @@
1
- {"version":3,"file":"storage.js","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":";;;AAMA,MAAa,aAAa;IAGxB;QACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAA;IACjB,CAAC;IAED,OAAO,CAAC,GAAW;QACjB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IACzC,CAAC;IAED,OAAO,CAAC,GAAW,EAAE,KAAU;QAC7B,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAA;IACnD,CAAC;IAED,UAAU,CAAC,GAAW;QACpB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAE7B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAEtB,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;CACF;AAtBD,sCAsBC;AAED,MAAa,cAAc;IAGzB,YAAY,OAAY;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;IAED,OAAO,CAAC,GAAW;QACjB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAA;IACnD,CAAC;IAED,OAAO,CAAC,GAAW,EAAE,KAAU;QAC7B,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAA;IAC1D,CAAC;IAED,UAAU,CAAC,GAAW;QACpB,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,C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C,CAAA;IACvD,CAAC;CACF;AAlBD,wCAkBC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@feathersjs/authentication-client",
3
3
  "description": "The authentication plugin for feathers-client",
4
- "version": "5.0.5",
4
+ "version": "5.0.7",
5
5
  "homepage": "https://feathersjs.com",
6
6
  "main": "lib/",
7
7
  "types": "lib/",
@@ -53,25 +53,25 @@
53
53
  "access": "public"
54
54
  },
55
55
  "dependencies": {
56
- "@feathersjs/authentication": "^5.0.5",
57
- "@feathersjs/commons": "^5.0.5",
58
- "@feathersjs/errors": "^5.0.5",
59
- "@feathersjs/feathers": "^5.0.5"
56
+ "@feathersjs/authentication": "^5.0.7",
57
+ "@feathersjs/commons": "^5.0.7",
58
+ "@feathersjs/errors": "^5.0.7",
59
+ "@feathersjs/feathers": "^5.0.7"
60
60
  },
61
61
  "devDependencies": {
62
- "@feathersjs/authentication-local": "^5.0.5",
63
- "@feathersjs/express": "^5.0.5",
64
- "@feathersjs/memory": "^5.0.5",
65
- "@feathersjs/rest-client": "^5.0.5",
66
- "@feathersjs/socketio": "^5.0.5",
67
- "@feathersjs/socketio-client": "^5.0.5",
62
+ "@feathersjs/authentication-local": "^5.0.7",
63
+ "@feathersjs/express": "^5.0.7",
64
+ "@feathersjs/memory": "^5.0.7",
65
+ "@feathersjs/rest-client": "^5.0.7",
66
+ "@feathersjs/socketio": "^5.0.7",
67
+ "@feathersjs/socketio-client": "^5.0.7",
68
68
  "@types/mocha": "^10.0.1",
69
- "@types/node": "^18.15.11",
70
- "axios": "^1.3.4",
69
+ "@types/node": "^20.4.2",
70
+ "axios": "^1.4.0",
71
71
  "mocha": "^10.2.0",
72
72
  "shx": "^0.3.4",
73
73
  "ts-node": "^10.9.1",
74
- "typescript": "^5.0.3"
74
+ "typescript": "^5.1.6"
75
75
  },
76
- "gitHead": "42bd5e40ec73b10939b9a008ae8e49c39a191009"
76
+ "gitHead": "1ab855487d2dfacb114339c634621357bce3a56a"
77
77
  }
package/src/storage.ts CHANGED
@@ -36,14 +36,14 @@ export class StorageWrapper implements Storage {
36
36
  }
37
37
 
38
38
  getItem(key: string) {
39
- return Promise.resolve(this.storage.getItem(key))
39
+ return Promise.resolve(this.storage?.getItem(key))
40
40
  }
41
41
 
42
42
  setItem(key: string, value: any) {
43
- return Promise.resolve(this.storage.setItem(key, value))
43
+ return Promise.resolve(this.storage?.setItem(key, value))
44
44
  }
45
45
 
46
46
  removeItem(key: string) {
47
- return Promise.resolve(this.storage.removeItem(key))
47
+ return Promise.resolve(this.storage?.removeItem(key))
48
48
  }
49
49
  }