gcf-common-lib 0.47.0 → 0.48.0
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 +1 -1
- package/src/index.js +2 -2
- package/src/index.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gcf-common-lib",
|
|
3
3
|
"description": "Common helpers for Google Cloud Functions: Pub/Sub publishing, Mongo helpers, and utilities for Node 20+ (TypeScript).",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.48.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"branches": [
|
package/src/index.js
CHANGED
|
@@ -157,7 +157,7 @@ exports.GcfCommon = {
|
|
|
157
157
|
// },
|
|
158
158
|
getMetadataOrAttribute(payload) {
|
|
159
159
|
let metadataOrAttribute;
|
|
160
|
-
console.log('getMetadataOrAttribute:', payload);
|
|
160
|
+
// console.log('getMetadataOrAttribute:', payload);
|
|
161
161
|
if (payload?.request) {
|
|
162
162
|
metadataOrAttribute = exports.GcfCommon.getRequestAttributes(payload.request);
|
|
163
163
|
}
|
|
@@ -175,7 +175,7 @@ exports.GcfCommon = {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
console.log('metadataOrAttribute:', metadataOrAttribute);
|
|
178
|
+
// console.log('metadataOrAttribute:', metadataOrAttribute);
|
|
179
179
|
return metadataOrAttribute ?? {};
|
|
180
180
|
},
|
|
181
181
|
getRequestAttributes(request) {
|
package/src/index.ts
CHANGED
|
@@ -134,7 +134,7 @@ export const GcfCommon = {
|
|
|
134
134
|
getMetadataOrAttribute<E = TEvent>(payload: TPayload<E>) {
|
|
135
135
|
let metadataOrAttribute: TMetadataOrAttributes | undefined;
|
|
136
136
|
|
|
137
|
-
console.log('getMetadataOrAttribute:', payload);
|
|
137
|
+
// console.log('getMetadataOrAttribute:', payload);
|
|
138
138
|
|
|
139
139
|
if (payload?.request) {
|
|
140
140
|
metadataOrAttribute = GcfCommon.getRequestAttributes(payload.request);
|
|
@@ -153,7 +153,7 @@ export const GcfCommon = {
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
console.log('metadataOrAttribute:', metadataOrAttribute);
|
|
156
|
+
// console.log('metadataOrAttribute:', metadataOrAttribute);
|
|
157
157
|
|
|
158
158
|
return metadataOrAttribute ?? {};
|
|
159
159
|
},
|