@cloudcommerce/app-paghiper 2.16.0 → 2.16.5

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.
@@ -4,9 +4,12 @@ import * as functions from 'firebase-functions/v1';
4
4
  import config from '@cloudcommerce/firebase/lib/config';
5
5
  import handleWebhook from './functions-lib/handle-webhook.js';
6
6
 
7
+ const { httpsFunctionOptions } = config.get();
8
+
7
9
  export const paghiper = {
8
10
  webhook: functions
9
- .region(config.get().httpsFunctionOptions.region)
11
+ .region(httpsFunctionOptions.region)
12
+ .runWith(httpsFunctionOptions)
10
13
  .https.onRequest((req, res) => {
11
14
  if (req.method !== 'POST') {
12
15
  res.sendStatus(405);
@@ -1 +1 @@
1
- {"version":3,"file":"paghiper-webhook.js","sourceRoot":"","sources":["../src/paghiper-webhook.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAE3D,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,SAAS;SACf,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC;SAChD,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC5B,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YAC1B,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC;aAAM,CAAC;YACN,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC,CAAC;CACL,CAAC"}
1
+ {"version":3,"file":"paghiper-webhook.js","sourceRoot":"","sources":["../src/paghiper-webhook.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAE3D,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAE9C,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,SAAS;SACf,MAAM,CAAC,oBAAoB,CAAC,MAAM,CAAC;SACnC,OAAO,CAAC,oBAAoB,CAAC;SAC7B,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC5B,IAAI,GAAG,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;YAC1B,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;QACtB,CAAC;aAAM,CAAC;YACN,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC,CAAC;CACL,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-paghiper",
3
3
  "type": "module",
4
- "version": "2.16.0",
4
+ "version": "2.16.5",
5
5
  "description": "e-com.plus Cloud Commerce app to integrate PagHiper",
6
6
  "main": "lib/paghiper.js",
7
7
  "exports": {
@@ -29,12 +29,12 @@
29
29
  "axios": "^1.6.8",
30
30
  "firebase-admin": "^12.1.0",
31
31
  "firebase-functions": "^4.9.0",
32
- "@cloudcommerce/api": "2.16.0",
33
- "@cloudcommerce/firebase": "2.16.0"
32
+ "@cloudcommerce/api": "2.16.5",
33
+ "@cloudcommerce/firebase": "2.16.5"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@firebase/app-types": "^0.9.1",
37
- "@cloudcommerce/types": "2.16.0"
37
+ "@cloudcommerce/types": "2.16.5"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "bash ../../../scripts/build-lib.sh"