cloudcommerce 0.0.26 → 0.0.27

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.27](https://github.com/ecomplus/cloud-commerce/compare/v0.0.26...v0.0.27) (2022-07-13)
6
+
7
+
8
+ ### Features
9
+
10
+ * **firebase:** Try to debug concurrency at function z `/pid` ([f9447ca](https://github.com/ecomplus/cloud-commerce/commit/f9447ca38e9669a8caedc08e5ce015428c92ce22))
11
+
5
12
  ### [0.0.26](https://github.com/ecomplus/cloud-commerce/compare/v0.0.25...v0.0.26) (2022-07-13)
6
13
 
7
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloudcommerce",
3
3
  "type": "module",
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native",
6
6
  "main": "packages/api/lib/index.js",
7
7
  "author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "description": "E-Com Plus Cloud Commerce APIs client/adapter",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-discounts",
3
3
  "type": "module",
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "description": "E-Com Plus Cloud Commerce app for complex discount rules",
6
6
  "main": "functions/dist/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "description": "E-Com Plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -7,15 +7,20 @@ import config from './config.js';
7
7
  const options = {
8
8
  region: process.env.DEPLOY_REGION || 'us-east1',
9
9
  };
10
+ const processId = String(Date.now());
10
11
 
11
- export const z = onRequest(options, (request, response) => {
12
- if (request.url === '/hello') {
12
+ export const z = onRequest(options, ({ url }, response) => {
13
+ if (url === '/hello') {
13
14
  logger.info('Hello logs!', {
14
15
  structuredData: true,
15
16
  });
16
17
  response.send(config.get().hello);
17
18
  return;
18
19
  }
20
+ if (url === '/pid') {
21
+ response.send(processId);
22
+ return;
23
+ }
19
24
  response.send({
20
25
  config: config.get(),
21
26
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,OAAO,GAAG;IACd,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,UAAU;CAChD,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;IACxD,IAAI,OAAO,CAAC,GAAG,KAAK,QAAQ,EAAE;QAC5B,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE;YACzB,cAAc,EAAE,IAAI;SACrB,CAAC,CAAC;QACH,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;QAClC,OAAO;KACR;IACD,QAAQ,CAAC,IAAI,CAAC;QACZ,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE;KACrB,CAAC,CAAC;AACL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AAE,EAAE;IAC1D,QAAQ,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -8,14 +8,20 @@ const options = {
8
8
  region: process.env.DEPLOY_REGION || 'us-east1',
9
9
  };
10
10
 
11
- export const z = onRequest(options, (request, response) => {
12
- if (request.url === '/hello') {
11
+ const processId = String(Date.now());
12
+
13
+ export const z = onRequest(options, ({ url }, response) => {
14
+ if (url === '/hello') {
13
15
  logger.info('Hello logs!', {
14
16
  structuredData: true,
15
17
  });
16
18
  response.send(config.get().hello);
17
19
  return;
18
20
  }
21
+ if (url === '/pid') {
22
+ response.send(processId);
23
+ return;
24
+ }
19
25
  response.send({
20
26
  config: config.get(),
21
27
  });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/storefront",
3
3
  "type": "module",
4
- "version": "0.0.26",
4
+ "version": "0.0.27",
5
5
  "description": "E-Com Plus Cloud Commerce storefront with Astro",
6
6
  "main": "src/index.js",
7
7
  "repository": {
package/pnpm-lock.yaml CHANGED
@@ -92,13 +92,13 @@ importers:
92
92
 
93
93
  store:
94
94
  specifiers:
95
- '@cloudcommerce/cli': ^0.0.25
95
+ '@cloudcommerce/cli': ^0.0.26
96
96
  dependencies:
97
97
  '@cloudcommerce/cli': link:../packages/cli
98
98
 
99
99
  store/functions:
100
100
  specifiers:
101
- '@cloudcommerce/firebase': ^0.0.25
101
+ '@cloudcommerce/firebase': ^0.0.26
102
102
  dependencies:
103
103
  '@cloudcommerce/firebase': link:../../packages/firebase
104
104