backend-manager 2.5.66 → 2.5.67
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.
|
|
3
|
+
"version": "2.5.67",
|
|
4
4
|
"description": "Quick tools for developing Firebase functions",
|
|
5
5
|
"main": "src/manager/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@google-cloud/storage": "^5.20.5",
|
|
32
32
|
"@sendgrid/mail": "^7.7.0",
|
|
33
33
|
"@sentry/node": "^6.19.7",
|
|
34
|
-
"backend-assistant": "^1.0.
|
|
34
|
+
"backend-assistant": "^1.0.2",
|
|
35
35
|
"busboy": "^1.6.0",
|
|
36
36
|
"chalk": "^4.1.2",
|
|
37
37
|
"cors": "^2.8.5",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"lowdb": "^1.0.0",
|
|
48
48
|
"mailchimp-api-v3": "^1.15.0",
|
|
49
49
|
"moment": "^2.29.4",
|
|
50
|
-
"nanoid": "^3.3.
|
|
50
|
+
"nanoid": "^3.3.6",
|
|
51
51
|
"node-fetch": "^2.6.9",
|
|
52
52
|
"node-powertools": "^0.0.23",
|
|
53
53
|
"npm-api": "^1.0.1",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const _ = require('lodash');
|
|
2
|
+
const jetpack = require('fs-jetpack');
|
|
2
3
|
|
|
3
4
|
function Module() {
|
|
4
5
|
|
|
@@ -24,11 +25,18 @@ Module.prototype.main = function () {
|
|
|
24
25
|
const processorPath = `${process.cwd()}/payment-processors/${productId}.js`
|
|
25
26
|
let processor;
|
|
26
27
|
// console.log('---processorPath', processorPath);
|
|
28
|
+
|
|
27
29
|
try {
|
|
30
|
+
if (!jetpack.exists(processorPath)) {
|
|
31
|
+
self.assistant.warn('Subprocessor does not exist:', processorPath, {environment: 'production'})
|
|
32
|
+
|
|
33
|
+
return resolve({data: {}})
|
|
34
|
+
}
|
|
28
35
|
processor = new (require(processorPath));
|
|
29
36
|
processor.Manager = self.Manager;
|
|
30
37
|
} catch (e) {
|
|
31
|
-
self.assistant.error('
|
|
38
|
+
self.assistant.error('Subprocessor failed to load:', processorPath, e, {environment: 'production'})
|
|
39
|
+
|
|
32
40
|
return resolve({data: {}})
|
|
33
41
|
}
|
|
34
42
|
|