backend-manager 3.2.30 → 3.2.31

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
@@ -15,7 +15,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
15
15
  - `Security` in case of vulnerabilities.
16
16
 
17
17
  ---
18
- ## [3.2.0] - 2023-12-19
18
+ ## [3.2.30] - 2023-01-30
19
+ ### Added
20
+ - Modified `.assistant()` token/key check to use `options.apiKey || data.apiKey`
21
+
22
+ ## [3.2.0] - 2023-01-19
19
23
  ### Added
20
24
  - Added `.settings()` API. Put your settings in `./schema/*.js` and access them with `assistant.settings.*`.
21
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "3.2.30",
3
+ "version": "3.2.31",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -596,7 +596,7 @@ BackendAssistant.prototype.authenticate = async function (options) {
596
596
  return _resolve(self.request.user);
597
597
  }
598
598
  } else if (options.apiKey || data.apiKey) {
599
- const apiKey = apiKey || data.apiKey;
599
+ const apiKey = options.apiKey || data.apiKey;
600
600
  self.log('Found "options.apiKey"', apiKey, logOptions);
601
601
 
602
602
  if (apiKey.includes('test')) {