backend-manager 2.5.35 → 2.5.37

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "2.5.35",
3
+ "version": "2.5.37",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -26,6 +26,9 @@ SubscriptionResolver.prototype.resolve = function () {
26
26
  },
27
27
  }
28
28
 
29
+ const profile = self.profile;
30
+ const resource = self.resource;
31
+
29
32
  if (profile.processor === 'paypal') {
30
33
  if (resource.status === 'ACTIVE') {
31
34
  resolved.status = 'active';
@@ -585,7 +585,7 @@ Manager.prototype.Roles = function () {
585
585
  Manager.prototype.SubscriptionResolver = function () {
586
586
  const self = this;
587
587
  self.libraries.SubscriptionResolver = self.libraries.SubscriptionResolver || require('./helpers/subscription-resolver.js');
588
- return new self.libraries.SubscriptionResolver(self, ...arguments);
588
+ return new self.libraries.SubscriptionResolver(...arguments);
589
589
  };
590
590
 
591
591
  Manager.prototype.storage = function (options) {