gcf-common-lib 0.13.2 → 0.13.3
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.js +1 -7
- package/index.ts +1 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -50,13 +50,7 @@ class GcfCommon {
|
|
|
50
50
|
stack: err.stack,
|
|
51
51
|
},
|
|
52
52
|
};
|
|
53
|
-
|
|
54
|
-
error: {
|
|
55
|
-
name: err.name,
|
|
56
|
-
message: `GCF [${fname}]: ${err.message}`,
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
yield this.publish(event, context, response, attr).catch(noop_1.default);
|
|
53
|
+
yield this.publish(event, context, response, { error: '1' }).catch(noop_1.default);
|
|
60
54
|
throw err;
|
|
61
55
|
}));
|
|
62
56
|
});
|
package/index.ts
CHANGED
|
@@ -89,13 +89,7 @@ export class GcfCommon {
|
|
|
89
89
|
stack: err.stack,
|
|
90
90
|
},
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
error: {
|
|
94
|
-
name: err.name,
|
|
95
|
-
message: `GCF [${fname}]: ${err.message}`,
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
await this.publish(event, context, response, attr).catch(noop);
|
|
92
|
+
await this.publish(event, context, response, {error: '1'}).catch(noop);
|
|
99
93
|
throw err;
|
|
100
94
|
})
|
|
101
95
|
;
|