@dereekb/firebase-server 13.11.10 → 13.11.12

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/index.cjs.js CHANGED
@@ -7082,7 +7082,7 @@ function _ts_generator$a(thisArg, body) {
7082
7082
  * @returns The handler's return value.
7083
7083
  */ function dispatch(params, auth, rawRequest) {
7084
7084
  return _async_to_generator$a(function() {
7085
- var _auth_token, _auth_oidcValidatedToken, callableRequest, appRequest, contextRequest;
7085
+ var callableRequest, appRequest, contextRequest;
7086
7086
  return _ts_generator$a(this, function(_state) {
7087
7087
  // Build a synthetic CallableRequest that the dispatch chain expects. Layer the
7088
7088
  // OIDC-validated claim subset over the base token so standard JWT claims
@@ -7092,7 +7092,7 @@ function _ts_generator$a(thisArg, body) {
7092
7092
  data: params,
7093
7093
  auth: auth ? {
7094
7094
  uid: auth.uid,
7095
- token: _object_spread$d({}, (_auth_token = auth.token) !== null && _auth_token !== void 0 ? _auth_token : {}, (_auth_oidcValidatedToken = auth.oidcValidatedToken) !== null && _auth_oidcValidatedToken !== void 0 ? _auth_oidcValidatedToken : {})
7095
+ token: _object_spread$d({}, auth.token, auth.oidcValidatedToken)
7096
7096
  } : undefined,
7097
7097
  rawRequest: rawRequest,
7098
7098
  acceptsStreaming: false
@@ -11761,7 +11761,10 @@ var FirebaseNestServerRootModule = function FirebaseNestServerRootModule() {
11761
11761
  // Respect explicit overrides; only compute defaults when not already set on the config
11762
11762
  var isApiEnabled = (_config_envConfig_isApiEnabled = config.envConfig.isApiEnabled) !== null && _config_envConfig_isApiEnabled !== void 0 ? _config_envConfig_isApiEnabled : appUrl != null && apiPrefix != null;
11763
11763
  var isWebhooksEnabled = (_config_envConfig_isWebhooksEnabled = config.envConfig.isWebhooksEnabled) !== null && _config_envConfig_isWebhooksEnabled !== void 0 ? _config_envConfig_isWebhooksEnabled : appUrl != null && Boolean(config.configureWebhooks);
11764
- var apiPrefixPath = apiPrefix ? apiPrefix.startsWith('/') ? apiPrefix : "/".concat(apiPrefix) : undefined;
11764
+ var apiPrefixPath;
11765
+ if (apiPrefix) {
11766
+ apiPrefixPath = apiPrefix.startsWith('/') ? apiPrefix : "/".concat(apiPrefix);
11767
+ }
11765
11768
  var appApiUrl = (_config_envConfig_appApiUrl = config.envConfig.appApiUrl) !== null && _config_envConfig_appApiUrl !== void 0 ? _config_envConfig_appApiUrl : isApiEnabled && appUrl && apiPrefixPath ? util.websiteUrlFromPaths(appUrl, apiPrefixPath) : undefined;
11766
11769
  var webhookPaths = apiPrefixPath ? [
11767
11770
  apiPrefixPath,
package/index.esm.js CHANGED
@@ -7080,7 +7080,7 @@ function _ts_generator$a(thisArg, body) {
7080
7080
  * @returns The handler's return value.
7081
7081
  */ function dispatch(params, auth, rawRequest) {
7082
7082
  return _async_to_generator$a(function() {
7083
- var _auth_token, _auth_oidcValidatedToken, callableRequest, appRequest, contextRequest;
7083
+ var callableRequest, appRequest, contextRequest;
7084
7084
  return _ts_generator$a(this, function(_state) {
7085
7085
  // Build a synthetic CallableRequest that the dispatch chain expects. Layer the
7086
7086
  // OIDC-validated claim subset over the base token so standard JWT claims
@@ -7090,7 +7090,7 @@ function _ts_generator$a(thisArg, body) {
7090
7090
  data: params,
7091
7091
  auth: auth ? {
7092
7092
  uid: auth.uid,
7093
- token: _object_spread$d({}, (_auth_token = auth.token) !== null && _auth_token !== void 0 ? _auth_token : {}, (_auth_oidcValidatedToken = auth.oidcValidatedToken) !== null && _auth_oidcValidatedToken !== void 0 ? _auth_oidcValidatedToken : {})
7093
+ token: _object_spread$d({}, auth.token, auth.oidcValidatedToken)
7094
7094
  } : undefined,
7095
7095
  rawRequest: rawRequest,
7096
7096
  acceptsStreaming: false
@@ -11759,7 +11759,10 @@ var FirebaseNestServerRootModule = function FirebaseNestServerRootModule() {
11759
11759
  // Respect explicit overrides; only compute defaults when not already set on the config
11760
11760
  var isApiEnabled = (_config_envConfig_isApiEnabled = config.envConfig.isApiEnabled) !== null && _config_envConfig_isApiEnabled !== void 0 ? _config_envConfig_isApiEnabled : appUrl != null && apiPrefix != null;
11761
11761
  var isWebhooksEnabled = (_config_envConfig_isWebhooksEnabled = config.envConfig.isWebhooksEnabled) !== null && _config_envConfig_isWebhooksEnabled !== void 0 ? _config_envConfig_isWebhooksEnabled : appUrl != null && Boolean(config.configureWebhooks);
11762
- var apiPrefixPath = apiPrefix ? apiPrefix.startsWith('/') ? apiPrefix : "/".concat(apiPrefix) : undefined;
11762
+ var apiPrefixPath;
11763
+ if (apiPrefix) {
11764
+ apiPrefixPath = apiPrefix.startsWith('/') ? apiPrefix : "/".concat(apiPrefix);
11765
+ }
11763
11766
  var appApiUrl = (_config_envConfig_appApiUrl = config.envConfig.appApiUrl) !== null && _config_envConfig_appApiUrl !== void 0 ? _config_envConfig_appApiUrl : isApiEnabled && appUrl && apiPrefixPath ? websiteUrlFromPaths(appUrl, apiPrefixPath) : undefined;
11764
11767
  var webhookPaths = apiPrefixPath ? [
11765
11768
  apiPrefixPath,
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@dereekb/firebase-server/mailgun",
3
- "version": "13.11.10",
3
+ "version": "13.11.12",
4
4
  "peerDependencies": {
5
- "@dereekb/analytics": "13.11.10",
6
- "@dereekb/firebase": "13.11.10",
7
- "@dereekb/firebase-server": "13.11.10",
8
- "@dereekb/date": "13.11.10",
9
- "@dereekb/nestjs": "13.11.10",
10
- "@dereekb/model": "13.11.10",
11
- "@dereekb/rxjs": "13.11.10",
12
- "@dereekb/util": "13.11.10"
5
+ "@dereekb/analytics": "13.11.12",
6
+ "@dereekb/firebase": "13.11.12",
7
+ "@dereekb/firebase-server": "13.11.12",
8
+ "@dereekb/date": "13.11.12",
9
+ "@dereekb/nestjs": "13.11.12",
10
+ "@dereekb/model": "13.11.12",
11
+ "@dereekb/rxjs": "13.11.12",
12
+ "@dereekb/util": "13.11.12"
13
13
  },
14
14
  "exports": {
15
15
  "./package.json": "./package.json",