cloudcommerce 0.12.1 → 0.14.1

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.
Files changed (56) hide show
  1. package/.github/workflows/e2e-tests.yml +120 -0
  2. package/CHANGELOG.md +18 -0
  3. package/action.yml +52 -23
  4. package/package.json +2 -1
  5. package/packages/api/package.json +1 -1
  6. package/packages/apps/correios/package.json +1 -1
  7. package/packages/apps/custom-payment/package.json +1 -1
  8. package/packages/apps/custom-shipping/package.json +1 -1
  9. package/packages/apps/datafrete/package.json +1 -1
  10. package/packages/apps/discounts/package.json +1 -1
  11. package/packages/apps/emails/package.json +1 -1
  12. package/packages/apps/fb-conversions/package.json +1 -1
  13. package/packages/apps/frenet/package.json +1 -1
  14. package/packages/apps/galaxpay/package.json +1 -1
  15. package/packages/apps/google-analytics/package.json +1 -1
  16. package/packages/apps/infinitepay/package.json +1 -1
  17. package/packages/apps/jadlog/package.json +1 -1
  18. package/packages/apps/loyalty-points/package.json +1 -1
  19. package/packages/apps/melhor-envio/package.json +1 -1
  20. package/packages/apps/mercadopago/package.json +1 -1
  21. package/packages/apps/pagarme/package.json +1 -1
  22. package/packages/apps/paghiper/package.json +1 -1
  23. package/packages/apps/pix/package.json +1 -1
  24. package/packages/apps/tiny-erp/package.json +1 -1
  25. package/packages/apps/webhooks/package.json +1 -1
  26. package/packages/cli/package.json +1 -1
  27. package/packages/config/package.json +1 -1
  28. package/packages/emails/package.json +1 -1
  29. package/packages/events/lib/firebase.js +0 -2
  30. package/packages/events/lib/firebase.js.map +1 -1
  31. package/packages/events/package.json +1 -1
  32. package/packages/events/src/firebase.ts +0 -1
  33. package/packages/feeds/lib/firebase.js +3 -6
  34. package/packages/feeds/lib/firebase.js.map +1 -1
  35. package/packages/feeds/package.json +1 -1
  36. package/packages/feeds/src/firebase.ts +5 -7
  37. package/packages/firebase/lib/index.d.ts +0 -1
  38. package/packages/firebase/lib/index.js +1 -1
  39. package/packages/firebase/lib/index.js.map +1 -1
  40. package/packages/firebase/package.json +1 -1
  41. package/packages/firebase/src/index.ts +1 -1
  42. package/packages/i18n/package.json +1 -1
  43. package/packages/modules/lib/firebase.js +0 -1
  44. package/packages/modules/lib/firebase.js.map +1 -1
  45. package/packages/modules/package.json +3 -2
  46. package/packages/modules/src/firebase.ts +0 -1
  47. package/packages/modules/tests/modules.test.mjs +27 -0
  48. package/packages/passport/lib/firebase.js +0 -1
  49. package/packages/passport/lib/firebase.js.map +1 -1
  50. package/packages/passport/package.json +1 -1
  51. package/packages/passport/src/firebase.ts +0 -1
  52. package/packages/ssr/package.json +1 -1
  53. package/packages/storefront/dist/server/entry.mjs +1 -1
  54. package/packages/storefront/package.json +1 -1
  55. package/packages/types/package.json +1 -1
  56. package/turbo.json +3 -0
@@ -0,0 +1,120 @@
1
+ name: E2E tests
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - "packages/**"
7
+ - "!packages/storefront"
8
+ - "!packages/ssr"
9
+ - "!packages/feeds"
10
+ - "!packages/passort"
11
+ - "!packages/!18n"
12
+ - "!packages/__skeleton"
13
+ push:
14
+ branches:
15
+ - main
16
+ paths:
17
+ - ".github/workflows/e2e-tests.yml"
18
+ - "packages/**"
19
+ - "!packages/storefront"
20
+ - "!packages/ssr"
21
+ - "!packages/feeds"
22
+ - "!packages/passort"
23
+ - "!packages/!18n"
24
+ - "!packages/__skeleton"
25
+
26
+ jobs:
27
+ setup:
28
+ name: Test apps
29
+ runs-on: ubuntu-latest
30
+ if: |
31
+ !contains(github.event.head_commit.message, '[skip ci]')
32
+
33
+ steps:
34
+ - uses: actions/checkout@v3
35
+
36
+ - uses: actions/checkout@v3
37
+ with:
38
+ repository: ecomplus/store
39
+ path: store
40
+
41
+ - uses: actions/setup-node@v3
42
+ with:
43
+ node-version: 18
44
+
45
+ - uses: pnpm/action-setup@v2
46
+ with:
47
+ version: 8
48
+ run_install: false
49
+
50
+ - name: Get pnpm store directory
51
+ id: pnpm-paths
52
+ shell: bash
53
+ run: |
54
+ echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
55
+
56
+ - uses: actions/cache@v3
57
+ with:
58
+ path: ${{ steps.pnpm-paths.outputs.STORE_PATH }}
59
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
60
+ restore-keys: |
61
+ ${{ runner.os }}-pnpm-store-
62
+
63
+ - shell: bash
64
+ run: bash scripts/pre-install.sh && pnpm install --frozen-lockfile
65
+
66
+ - uses: actions/cache@v3
67
+ with:
68
+ path: |
69
+ **/.turbo
70
+ **/.cache/turbo
71
+ packages/*/lib
72
+ packages/apps/*/lib
73
+ packages/apps/*/assets/*.min.js
74
+ key: ${{ runner.os }}-turbo-${{ github.sha }}
75
+ restore-keys: |
76
+ ${{ runner.os }}-turbo-
77
+
78
+ - shell: bash
79
+ env:
80
+ ECOM_STORE_ID: ${{ secrets.ECOM_STORE_ID }}
81
+ ECOM_AUTHENTICATION_ID: ${{ secrets.ECOM_AUTHENTICATION_ID }}
82
+ ECOM_API_KEY: ${{ secrets.ECOM_API_KEY }}
83
+ run: pnpm build
84
+
85
+ - name: Get npm global directories
86
+ id: npm-paths
87
+ shell: bash
88
+ run: |
89
+ lib_path=$(npm list -g | head -1)
90
+ echo "LIB_PATH=$lib_path" >> $GITHUB_OUTPUT
91
+ echo "BIN_PATH=${lib_path/\/lib//bin}" >> $GITHUB_OUTPUT
92
+
93
+ - uses: actions/cache@v3
94
+ id: npm-g-cache
95
+ with:
96
+ path: |
97
+ ${{ steps.npm-paths.outputs.LIB_PATH }}
98
+ ${{ steps.npm-paths.outputs.BIN_PATH }}
99
+ ~/.npm-global/bin
100
+ key: ${{ runner.os }}-npm-globals-firebase-tools-12.0.1
101
+
102
+ - if: steps.npm-g-cache.outputs.cache-hit != 'true'
103
+ shell: bash
104
+ run: npm install -g firebase-tools@12.0.1
105
+
106
+ - name: Initialize Firebase emulators
107
+ shell: bash
108
+ working-directory: store
109
+ env:
110
+ ECOM_STORE_ID: ${{ secrets.ECOM_STORE_ID }}
111
+ ECOM_AUTHENTICATION_ID: ${{ secrets.ECOM_AUTHENTICATION_ID }}
112
+ ECOM_API_KEY: ${{ secrets.ECOM_API_KEY }}
113
+ run: |
114
+ firebase --project=ecom2-002 emulators:start --only functions &
115
+
116
+ - name: Run tests
117
+ shell: bash
118
+ run: |
119
+ sleep 10
120
+ pnpm test:e2e
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
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.14.1](https://github.com/ecomplus/cloud-commerce/compare/v0.14.0...v0.14.1) (2023-05-17)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **feeds:** Use default functions (non-SSR) region to deploy ([ca2d141](https://github.com/ecomplus/cloud-commerce/commit/ca2d14187abcf9e8425060e3986d1df4ab67901b))
11
+
12
+ ## [0.14.0](https://github.com/ecomplus/cloud-commerce/compare/v0.12.1...v0.14.0) (2023-05-17)
13
+
14
+
15
+ ### ⚠ BREAKING CHANGES
16
+
17
+ * **firebase:** Must add `import '@cloudcommerce/firebase/lib/init';` on all codebases except ssr
18
+
19
+ ### Bug Fixes
20
+
21
+ * **firebase:** Do not run app init on all functions sources excepting SSR ([010e722](https://github.com/ecomplus/cloud-commerce/commit/010e7227e12951709f1b0a8c30766957c0e36aa0))
22
+
5
23
  ### [0.12.1](https://github.com/ecomplus/cloud-commerce/compare/v0.12.0...v0.12.1) (2023-05-16)
6
24
 
7
25
  ## [0.12.0](https://github.com/ecomplus/cloud-commerce/compare/v0.11.0...v0.12.0) (2023-05-16)
package/action.yml CHANGED
@@ -54,23 +54,55 @@ runs:
54
54
  cache: 'npm'
55
55
  cache-dependency-path: '**/package-lock.json'
56
56
 
57
- - if: github.event_name == 'push'
58
- shell: bash
59
- run: npm i --location=global firebase-tools@12
57
+ - uses: actions/cache@v3
58
+ id: npm-cache
59
+ with:
60
+ path: |
61
+ **/node_modules
62
+ key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
60
63
 
61
- - shell: bash
64
+ - if: steps.npm-cache.outputs.cache-hit != 'true'
65
+ shell: bash
62
66
  run: npm ci --omit=dev
63
67
 
64
- - shell: bash
68
+ - name: Get npm global directories
69
+ id: npm-paths
70
+ shell: bash
71
+ run: |
72
+ lib_path=$(npm list -g | head -1)
73
+ echo "LIB_PATH=$lib_path" >> $GITHUB_OUTPUT
74
+ echo "BIN_PATH=${lib_path/\/lib//bin}" >> $GITHUB_OUTPUT
75
+
76
+ - uses: actions/cache@v3
77
+ id: npm-g-cache
78
+ with:
79
+ path: |
80
+ ${{ steps.npm-paths.outputs.LIB_PATH }}
81
+ ${{ steps.npm-paths.outputs.BIN_PATH }}
82
+ ~/.npm-global/bin
83
+ key: ${{ runner.os }}-npm-g-firebase-tools-12.0.1
84
+
85
+ - if: ${{ github.event_name == 'push' && steps.npm-g-cache.outputs.cache-hit != 'true' }}
86
+ shell: bash
87
+ run: npm i --location=global firebase-tools@12.0.1
88
+
89
+ - if: steps.npm-cache.outputs.cache-hit != 'true'
90
+ name: Install functions dependencies
91
+ shell: bash
65
92
  working-directory: functions
66
- env:
67
- ECOM_STORE_ID: ${{ inputs.ecom-store-id }}
68
93
  run: |
69
94
  for d in */ ; do
70
95
  cd $d
71
96
  npm ci
72
97
  cd ..
73
98
  done
99
+
100
+ - name: Set ECOM_STORE_ID and GITHUB_REF env
101
+ shell: bash
102
+ working-directory: functions
103
+ env:
104
+ ECOM_STORE_ID: ${{ inputs.ecom-store-id }}
105
+ run: |
74
106
  echo "ecom_store_id=${ECOM_STORE_ID:-$(cat config.json | jq -r '.storeId')}" >> $GITHUB_ENV
75
107
  echo "git_branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
76
108
 
@@ -78,34 +110,30 @@ runs:
78
110
  id: changes
79
111
  with:
80
112
  filters: |
81
- core:
82
- - 'functions/core/**'
83
- events:
84
- - 'functions/events/**'
85
- modules:
86
- - 'functions/modules/**'
87
- passport:
88
- - 'functions/passport/**'
113
+ many:
114
+ - 'functions/many/**'
115
+ withApps:
116
+ - 'functions/with-apps/**'
89
117
  ssr:
90
118
  - 'functions/ssr/**'
91
119
 
92
- - if: steps.changes.outputs.core != 'true' && steps.changes.outputs.events != 'true'
120
+ - name: Check functions codebase to deploy
93
121
  shell: bash
94
122
  env:
95
123
  DEPLOY_CODEBASE: ${{ inputs.deploy-codebase }}
96
- CHS_MODULES: ${{ steps.changes.outputs.modules }}
97
- CHS_PASSPORT: ${{ steps.changes.outputs.passport }}
124
+ CHS_MANY: ${{ steps.changes.outputs.many }}
125
+ CHS_WITH_APPS: ${{ steps.changes.outputs.withApps }}
98
126
  CHS_SSR: ${{ steps.changes.outputs.ssr }}
99
127
  run: |
100
128
  if [ -z "$DEPLOY_CODEBASE" ]; then
101
129
  if [ $CHS_SSR == 'true' ]; then
102
- if [ $CHS_MODULES != 'true' ] && [ $CHS_PASSPORT != 'true' ]; then
130
+ if [ $CHS_MANY != 'true' ] && [ $CHS_WITH_APPS != 'true' ]; then
103
131
  deploy_codebase="ssr"
104
132
  fi
105
- elif [ $CHS_MODULES == 'true' ] && [ $CHS_PASSPORT != 'true' ]; then
106
- deploy_codebase="modules"
107
- elif [ $CHS_MODULES != 'true' ] && [ $CHS_PASSPORT == 'true' ]; then
108
- deploy_codebase="passport"
133
+ elif [ $CHS_MANY == 'true' ] && [ $CHS_WITH_APPS != 'true' ]; then
134
+ deploy_codebase="many"
135
+ elif [ $CHS_MANY != 'true' ] && [ $CHS_WITH_APPS == 'true' ]; then
136
+ deploy_codebase="with-apps"
109
137
  fi
110
138
  else
111
139
  deploy_codebase=$DEPLOY_CODEBASE
@@ -171,6 +199,7 @@ runs:
171
199
  fi
172
200
 
173
201
  - if: github.event_name == 'pull_request'
202
+ name: Build storefront static
174
203
  shell: bash
175
204
  env:
176
205
  ECOM_STORE_ID: ${{ env.ecom_store_id }}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloudcommerce",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
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>",
@@ -43,6 +43,7 @@
43
43
  "new-pkg": "bash scripts/new-package.sh",
44
44
  "build": "turbo run build --filter='!./ecomplus-stores/**'",
45
45
  "test": "turbo run test --filter='!./ecomplus-stores/**'",
46
+ "test:e2e": "turbo run test:e2e --filter='./packages/**'",
46
47
  "release": "bash scripts/version-and-release.sh",
47
48
  "store:run": "pnpm build && npm --prefix \"store\" run",
48
49
  "start": "pnpm store:run start",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/api",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce APIs client/adapter",
6
6
  "main": "lib/api.js",
7
7
  "types": "lib/api.d.ts",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-correios",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app for Correios shipping calculation",
6
6
  "main": "lib/correios.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-custom-payment",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app for simple custom payment methods",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-custom-shipping",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app for custom shipping methods",
6
6
  "main": "lib/custom-shipping.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-datafrete",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Datafrete shipping gateway ",
6
6
  "main": "lib/datafrete.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-discounts",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app for complex discount rules",
6
6
  "main": "lib/discounts.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-emails",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce default transactional email app",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-fb-conversions",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to send carts/orders to Facebook Conversions API",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-frenet",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app for Frenet shipping calculation",
6
6
  "main": "lib/frenet.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-galaxpay",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Galax Pay for recurring payments",
6
6
  "main": "lib/galaxpay.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-google-analytics",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to send carts/orders events to GA Measurement Protocol",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-infinitepay",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate InfinitePay",
6
6
  "main": "lib/infinitepay.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-jadlog",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app for Jadlog shipping calculation",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-loyalty-points",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to handle simple loyalty points programs",
6
6
  "main": "lib/loyalty-points.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-melhor-envio",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Melhor Envio",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-mercadopago",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Mercado Pago",
6
6
  "main": "lib/mercadopago.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-pagarme",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pagar.me",
6
6
  "main": "lib/pagarme.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-paghiper",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate PagHiper",
6
6
  "main": "lib/paghiper.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-pix",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app to integrate Pix API (Bacen)",
6
6
  "main": "lib/pix.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-tiny-erp",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app for Tiny ERP",
6
6
  "main": "lib/tiny-erp.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-webhooks",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app for general order webhooks",
6
6
  "main": "lib/index.js",
7
7
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/cli",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce CLI tools",
6
6
  "bin": {
7
7
  "cloudcommerce": "./bin/run.mjs"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/config",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce base config",
6
6
  "main": "lib/config.js",
7
7
  "exports": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/emails",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce email sender",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,6 +1,4 @@
1
1
  /* eslint-disable import/prefer-default-export */
2
- import '@cloudcommerce/firebase/lib/init';
3
-
4
2
  export * from '@cloudcommerce/app-tiny-erp';
5
3
 
6
4
  export * from '@cloudcommerce/app-mercadopago/webhook';
@@ -1 +1 @@
1
- {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,kCAAkC,CAAC;AAE1C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,2BAA2B,CAAC;AAE1C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,0CAA0C,CAAC;AAEzD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,mCAAmC,CAAC;AAElD,cAAc,sCAAsC,CAAC;AAErD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,cAAc,6BAA6B,CAAC;AAE5C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,2BAA2B,CAAC;AAE1C,cAAc,oCAAoC,CAAC;AAEnD,cAAc,gCAAgC,CAAC;AAE/C,cAAc,wCAAwC,CAAC;AAEvD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,0CAA0C,CAAC;AAEzD,cAAc,kCAAkC,CAAC;AAEjD,cAAc,mCAAmC,CAAC;AAElD,cAAc,sCAAsC,CAAC;AAErD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,qCAAqC,CAAC;AAEpD,cAAc,wCAAwC,CAAC;AAEvD,cAAc,6BAA6B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/events",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce app events",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/prefer-default-export */
2
- import '@cloudcommerce/firebase/lib/init';
3
2
 
4
3
  export * from '@cloudcommerce/app-tiny-erp';
5
4
 
@@ -1,16 +1,13 @@
1
1
  /* eslint-disable import/prefer-default-export, import/first */
2
- import { initializeApp } from 'firebase-admin/app';
3
-
4
- initializeApp();
5
2
  import { onRequest } from 'firebase-functions/v2/https';
6
3
  import config from '@cloudcommerce/firebase/lib/config';
7
4
  import serveFeeds from './firebase/serve-feeds.js';
8
5
 
9
- const { ssrFunctionOptions } = config.get();
6
+ const { httpsFunctionOptions: { region } } = config.get();
10
7
 
11
8
  export const feeds = onRequest({
12
- concurrency: 80,
13
- ...ssrFunctionOptions,
9
+ concurrency: 300,
10
+ region,
14
11
  memory: '512MiB',
15
12
  timeoutSeconds: 120,
16
13
  }, serveFeeds);
@@ -1 +1 @@
1
- {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,aAAa,EAAE,CAAC;AAEhB,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAE5C,MAAM,CAAC,MAAM,KAAK,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,EAAE;IACf,GAAG,kBAAkB;IACrB,MAAM,EAAE,QAAQ;IAChB,cAAc,EAAE,GAAG;CACpB,EAAE,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,MAAM,EACJ,oBAAoB,EAAE,EAAE,MAAM,EAAE,GACjC,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,KAAK,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,GAAG;IAChB,MAAM;IACN,MAAM,EAAE,QAAQ;IAChB,cAAc,EAAE,GAAG;CACpB,EAAE,UAAU,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/feeds",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce catalog feeds",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,17 +1,15 @@
1
1
  /* eslint-disable import/prefer-default-export, import/first */
2
- import { initializeApp } from 'firebase-admin/app';
3
-
4
- initializeApp();
5
-
6
2
  import { onRequest } from 'firebase-functions/v2/https';
7
3
  import config from '@cloudcommerce/firebase/lib/config';
8
4
  import serveFeeds from './firebase/serve-feeds';
9
5
 
10
- const { ssrFunctionOptions } = config.get();
6
+ const {
7
+ httpsFunctionOptions: { region },
8
+ } = config.get();
11
9
 
12
10
  export const feeds = onRequest({
13
- concurrency: 80,
14
- ...ssrFunctionOptions,
11
+ concurrency: 300,
12
+ region,
15
13
  memory: '512MiB',
16
14
  timeoutSeconds: 120,
17
15
  }, serveFeeds);
@@ -1,3 +1,2 @@
1
- import './init';
2
1
  import functions from 'firebase-functions';
3
2
  export declare const cronStoreEvents: functions.CloudFunction<unknown>;
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/prefer-default-export */
2
- import './init.js';
2
+ // import './init.js';
3
3
  import functions from 'firebase-functions';
4
4
  import config from './config.js';
5
5
  import checkStoreEvents from './handlers/check-store-events.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,QAAQ,CAAC;AAChB,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAE7D,MAAM,EAAE,oBAAoB,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAE1D,MAAM,eAAe,GAAG,SAAS;KAC9B,MAAM,CAAC,MAAM,CAAC;KACd,OAAO,CAAC;IACP,cAAc,EAAE,GAAG;IACnB,MAAM,EAAE,OAAO;CAChB,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC,MAAM;KAClD,QAAQ,CAAC,WAAW,CAAC;KACrB,KAAK,CAAC,GAAG,EAAE;IACV,OAAO,gBAAgB,EAAE,CAAC;AAC5B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,mBAAmB;AACnB,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAE7D,MAAM,EAAE,oBAAoB,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAE1D,MAAM,eAAe,GAAG,SAAS;KAC9B,MAAM,CAAC,MAAM,CAAC;KACd,OAAO,CAAC;IACP,cAAc,EAAE,GAAG;IACnB,MAAM,EAAE,OAAO;CAChB,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,eAAe,GAAG,eAAe,CAAC,MAAM;KAClD,QAAQ,CAAC,WAAW,CAAC;KACrB,KAAK,CAAC,GAAG,EAAE;IACV,OAAO,gBAAgB,EAAE,CAAC;AAC5B,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/firebase",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce on Firebase",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/prefer-default-export */
2
- import './init';
2
+ // import './init';
3
3
  import functions from 'firebase-functions';
4
4
  import config from './config';
5
5
  import checkStoreEvents from './handlers/check-store-events';
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/i18n",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce i18n",
6
6
  "main": "lib/all.js",
7
7
  "exports": {
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/prefer-default-export */
2
- import '@cloudcommerce/firebase/lib/init';
3
2
  import { onRequest } from 'firebase-functions/v2/https';
4
3
  import config from '@cloudcommerce/firebase/lib/config';
5
4
  import serveModulesApi from './firebase/serve-modules-api.js';
@@ -1 +1 @@
1
- {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,kCAAkC,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAE3D,MAAM,EACJ,oBAAoB,EAAE,EAAE,MAAM,EAAE,EAChC,sBAAsB,EAAE,EAAE,MAAM,EAAE,GACnC,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,EAAE;IACf,MAAM;IACN,MAAM;CACP,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACd,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,iDAAiD;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAE3D,MAAM,EACJ,oBAAoB,EAAE,EAAE,MAAM,EAAE,EAChC,sBAAsB,EAAE,EAAE,MAAM,EAAE,GACnC,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAEjB,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;IAC/B,WAAW,EAAE,EAAE;IACf,MAAM;IACN,MAAM;CACP,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;IACd,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/modules",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce modules API",
6
6
  "main": "lib/index.cjs",
7
7
  "exports": {
@@ -21,7 +21,8 @@
21
21
  "homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/modules#readme",
22
22
  "scripts": {
23
23
  "build": "bash ../../scripts/build-lib.sh",
24
- "build:types": "bash scripts/build-types.sh"
24
+ "build:types": "bash scripts/build-types.sh",
25
+ "test:e2e": "node --test tests/modules.test.mjs"
25
26
  },
26
27
  "dependencies": {
27
28
  "@cloudcommerce/api": "workspace:*",
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/prefer-default-export */
2
- import '@cloudcommerce/firebase/lib/init';
3
2
  import { onRequest } from 'firebase-functions/v2/https';
4
3
  import config from '@cloudcommerce/firebase/lib/config';
5
4
  import serveModulesApi from './firebase/serve-modules-api';
@@ -0,0 +1,27 @@
1
+ import assert from 'node:assert';
2
+ import test, { describe } from 'node:test';
3
+
4
+ const baseUrl = 'http://127.0.0.1:5001/ecom2-002/southamerica-east1/modules';
5
+
6
+ describe('Test Schemas', async () => {
7
+ test('@checkout', async (/* t */) => {
8
+ const req = await fetch(`${baseUrl}/@checkout/schema`);
9
+ assert.strictEqual(req.status, 200);
10
+ });
11
+ test('apply_discount', async () => {
12
+ const req = await fetch(`${baseUrl}/apply_discount/schema`);
13
+ assert.strictEqual(req.status, 200);
14
+ });
15
+ test('calculate_shipping', async () => {
16
+ const req = await fetch(`${baseUrl}/calculate_shipping/schema`);
17
+ assert.strictEqual(req.status, 200);
18
+ });
19
+ test('create_transaction', async () => {
20
+ const req = await fetch(`${baseUrl}/create_transaction/schema`);
21
+ assert.strictEqual(req.status, 200);
22
+ });
23
+ test('list_payments', async () => {
24
+ const req = await fetch(`${baseUrl}/list_payments/schema`);
25
+ assert.strictEqual(req.status, 200);
26
+ });
27
+ });
@@ -1,4 +1,3 @@
1
- import '@cloudcommerce/firebase/lib/init';
2
1
  import functions from 'firebase-functions/v1';
3
2
  import config from '@cloudcommerce/firebase/lib/config';
4
3
  import servePassportApi from './firebase/serve-passport-api.js';
@@ -1 +1 @@
1
- {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,OAAO,kCAAkC,CAAC;AAC1C,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAE7D,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAC9C,MAAM,EAAE,MAAM,EAAE,GAAG,oBAAoB,CAAC;AAExC,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS;KAC9B,MAAM,CAAC,MAAM,CAAC;KACd,OAAO,CAAC;IACP,GAAG,oBAAoB;IACvB,MAAM,EAAE,OAAO;IACf,cAAc,EAAE,EAAE;CACnB,CAAC;KACD,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,MAAM,MAAM,oCAAoC,CAAC;AACxD,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAE7D,MAAM,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;AAC9C,MAAM,EAAE,MAAM,EAAE,GAAG,oBAAoB,CAAC;AAExC,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,SAAS;KAC9B,MAAM,CAAC,MAAM,CAAC;KACd,OAAO,CAAC;IACP,GAAG,oBAAoB;IACvB,MAAM,EAAE,OAAO;IACf,cAAc,EAAE,EAAE;CACnB,CAAC;KACD,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/passport",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce customers authentication (passport) API",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -1,4 +1,3 @@
1
- import '@cloudcommerce/firebase/lib/init';
2
1
  import functions from 'firebase-functions/v1';
3
2
  import config from '@cloudcommerce/firebase/lib/config';
4
3
  import servePassportApi from './firebase/serve-passport-api';
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/ssr",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce storefront SSR",
6
6
  "main": "lib/index.js",
7
7
  "exports": {
@@ -3086,7 +3086,7 @@ const _renderer1 = {
3086
3086
  const pageMap = new Map([["../../node_modules/.pnpm/@astrojs+image@0.16.8_astro@2.4.5_sharp@0.32.1/node_modules/@astrojs/image/dist/endpoint.js", _page0],["src/pages/index.astro", _page1],["src/pages/fallback.astro", _page2],["src/pages/app/index.astro", _page3],["src/pages/app/account.astro", _page4],["src/pages/[...slug].astro", _page5],]);
3087
3087
  const renderers = [Object.assign({"name":"astro:jsx","serverEntrypoint":"astro/jsx/server.js","jsxImportSource":"astro"}, { ssr: server_default }),Object.assign({"name":"@astrojs/vue","clientEntrypoint":"@astrojs/vue/client.js","serverEntrypoint":"@astrojs/vue/server.js"}, { ssr: _renderer1 }),];
3088
3088
 
3089
- const _manifest = Object.assign(deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":[],"scripts":[],"styles":[],"routeData":{"type":"endpoint","route":"/_image","pattern":"^\\/_image$","segments":[[{"content":"_image","dynamic":false,"spread":false}]],"params":[],"component":"../../node_modules/.pnpm/@astrojs+image@0.16.8_astro@2.4.5_sharp@0.32.1/node_modules/@astrojs/image/dist/endpoint.js","pathname":"/_image","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.be7b77c7.js"}],"styles":[{"type":"external","src":"/_astro/_...slug_.48ea2ee1.css"},{"type":"external","src":"/_astro/index.e56fc6b3.css"},{"type":"external","src":"/_astro/index.1eaf97c3.css"}],"routeData":{"route":"/","type":"page","pattern":"^\\/$","segments":[],"params":[],"component":"src/pages/index.astro","pathname":"/","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.be7b77c7.js"}],"styles":[{"type":"external","src":"/_astro/_...slug_.48ea2ee1.css"},{"type":"external","src":"/_astro/index.1eaf97c3.css"}],"routeData":{"route":"/fallback","type":"page","pattern":"^\\/fallback\\/?$","segments":[[{"content":"fallback","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/fallback.astro","pathname":"/fallback","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[],"styles":[],"routeData":{"route":"/app","type":"page","pattern":"^\\/app\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/index.astro","pathname":"/app","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[],"styles":[],"routeData":{"route":"/app/account","type":"page","pattern":"^\\/app\\/account\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}],[{"content":"account","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/account.astro","pathname":"/app/account","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.be7b77c7.js"}],"styles":[{"type":"external","src":"/_astro/_...slug_.48ea2ee1.css"},{"type":"external","src":"/_astro/index.1eaf97c3.css"}],"routeData":{"route":"/[...slug]","type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","prerender":false,"_meta":{"trailingSlash":"ignore"}}}],"site":"https://ecom2-002.web.app","base":"/","markdown":{"drafts":false,"syntaxHighlight":"shiki","shikiConfig":{"langs":[],"theme":"github-dark","wrap":false},"remarkPlugins":[],"rehypePlugins":[],"remarkRehype":{},"gfm":true,"smartypants":true},"pageMap":null,"componentMetadata":[["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro",{"propagation":"none","containsHead":true}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro",{"propagation":"none","containsHead":true}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro",{"propagation":"none","containsHead":true}]],"renderers":[],"entryModules":{"\u0000@astrojs-ssr-virtual-entry":"_@astrojs-ssr-virtual-entry.mjs","~/components/PitchBar.vue":"_astro/PitchBar.94f525f9.js","~/components/HeroSlider.vue":"_astro/HeroSlider.d677b64a.js","@astrojs/vue/client.js":"_astro/client.c2102734.js","~/components/Prices.vue":"_astro/Prices.b8d4b8e4.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/workbox-window/build/workbox-window.prod.es5.mjs":"_astro/workbox-window.prod.es5.dc90f814.js","/astro/hoisted.js?q=0":"_astro/hoisted.be7b77c7.js","~/components/ShopHeader.vue":"_astro/ShopHeader.f12e72f6.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/scripts/firebase-app.ts":"_astro/firebase-app.d513d4b8.js","astro:scripts/before-hydration.js":""},"assets":["/_astro/index.1eaf97c3.css","/_astro/index.e56fc6b3.css","/_astro/server.1dabec03.css","/_astro/_...slug_.48ea2ee1.css","/manifest.webmanifest","/robots.txt","/sw.js","/workbox-e0d788d4.js","/_astro/Carousel.e137cab2.js","/_astro/HeroSlider.d677b64a.js","/_astro/PitchBar.94f525f9.js","/_astro/Prices.b8d4b8e4.js","/_astro/ShopHeader.f12e72f6.js","/_astro/_plugin-vue_export-helper.116fec5b.js","/_astro/client.c2102734.js","/_astro/firebase-app.d513d4b8.js","/_astro/format-money.1a95a3b5.js","/_astro/hoisted.be7b77c7.js","/_astro/idle-callback.889bf0ea.js","/_astro/index.1190ddf5.js","/_astro/modules-info.bc2146d9.js","/_astro/preload-helper.101896b7.js","/_astro/runtime-dom.esm-bundler.e2053595.js","/_astro/session-utm.744b0db3.js","/_astro/workbox-window.prod.es5.dc90f814.js","/assets/cms-preview.css","/assets/cms.css","/assets/cvv.png","/assets/img-placeholder.png","/assets/payments.png","/assets/ssl-safe.png","/img/icon.png","/img/large-icon.png","/img/uploads/banner1.png","/img/uploads/banner2.png","/img/uploads/banner2.webp","/img/uploads/ecom-icon.png","/img/uploads/favicon.png","/img/uploads/headless.png","/img/uploads/headphone.png","/img/uploads/headphone.webp","/img/uploads/logo.png","/img/uploads/og-image.png","/img/uploads/passion.png","/img/uploads/passion.webp","/img/uploads/pwa-reliable.png","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.png","/img/uploads/rect89.webp","/img/uploads/ssl-safe.png"]}), {
3089
+ const _manifest = Object.assign(deserializeManifest({"adapterName":"@astrojs/node","routes":[{"file":"","links":[],"scripts":[],"styles":[],"routeData":{"type":"endpoint","route":"/_image","pattern":"^\\/_image$","segments":[[{"content":"_image","dynamic":false,"spread":false}]],"params":[],"component":"../../node_modules/.pnpm/@astrojs+image@0.16.8_astro@2.4.5_sharp@0.32.1/node_modules/@astrojs/image/dist/endpoint.js","pathname":"/_image","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.be7b77c7.js"}],"styles":[{"type":"external","src":"/_astro/_...slug_.48ea2ee1.css"},{"type":"external","src":"/_astro/index.e56fc6b3.css"},{"type":"external","src":"/_astro/index.1eaf97c3.css"}],"routeData":{"route":"/","type":"page","pattern":"^\\/$","segments":[],"params":[],"component":"src/pages/index.astro","pathname":"/","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.be7b77c7.js"}],"styles":[{"type":"external","src":"/_astro/_...slug_.48ea2ee1.css"},{"type":"external","src":"/_astro/index.1eaf97c3.css"}],"routeData":{"route":"/fallback","type":"page","pattern":"^\\/fallback\\/?$","segments":[[{"content":"fallback","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/fallback.astro","pathname":"/fallback","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[],"styles":[],"routeData":{"route":"/app","type":"page","pattern":"^\\/app\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/index.astro","pathname":"/app","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[],"styles":[],"routeData":{"route":"/app/account","type":"page","pattern":"^\\/app\\/account\\/?$","segments":[[{"content":"app","dynamic":false,"spread":false}],[{"content":"account","dynamic":false,"spread":false}]],"params":[],"component":"src/pages/app/account.astro","pathname":"/app/account","prerender":false,"_meta":{"trailingSlash":"ignore"}}},{"file":"","links":[],"scripts":[{"type":"external","value":"/_astro/hoisted.be7b77c7.js"}],"styles":[{"type":"external","src":"/_astro/_...slug_.48ea2ee1.css"},{"type":"external","src":"/_astro/index.1eaf97c3.css"}],"routeData":{"route":"/[...slug]","type":"page","pattern":"^(?:\\/(.*?))?\\/?$","segments":[[{"content":"...slug","dynamic":true,"spread":true}]],"params":["...slug"],"component":"src/pages/[...slug].astro","prerender":false,"_meta":{"trailingSlash":"ignore"}}}],"site":"https://ecom2-002.web.app","base":"/","markdown":{"drafts":false,"syntaxHighlight":"shiki","shikiConfig":{"langs":[],"theme":"github-dark","wrap":false},"remarkPlugins":[],"rehypePlugins":[],"remarkRehype":{},"gfm":true,"smartypants":true},"pageMap":null,"componentMetadata":[["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/[...slug].astro",{"propagation":"none","containsHead":true}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/fallback.astro",{"propagation":"none","containsHead":true}],["/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/pages/index.astro",{"propagation":"none","containsHead":true}]],"renderers":[],"entryModules":{"\u0000@astrojs-ssr-virtual-entry":"_@astrojs-ssr-virtual-entry.mjs","~/components/PitchBar.vue":"_astro/PitchBar.94f525f9.js","~/components/HeroSlider.vue":"_astro/HeroSlider.d677b64a.js","~/components/Prices.vue":"_astro/Prices.b8d4b8e4.js","@astrojs/vue/client.js":"_astro/client.c2102734.js","/astro/hoisted.js?q=0":"_astro/hoisted.be7b77c7.js","/home/leo/code/ecomplus/cloud-commerce/node_modules/workbox-window/build/workbox-window.prod.es5.mjs":"_astro/workbox-window.prod.es5.dc90f814.js","~/components/ShopHeader.vue":"_astro/ShopHeader.f12e72f6.js","/home/leo/code/ecomplus/cloud-commerce/packages/storefront/src/lib/scripts/firebase-app.ts":"_astro/firebase-app.d513d4b8.js","astro:scripts/before-hydration.js":""},"assets":["/_astro/index.1eaf97c3.css","/_astro/index.e56fc6b3.css","/_astro/server.1dabec03.css","/_astro/_...slug_.48ea2ee1.css","/manifest.webmanifest","/robots.txt","/sw.js","/workbox-e0d788d4.js","/_astro/Carousel.e137cab2.js","/_astro/HeroSlider.d677b64a.js","/_astro/PitchBar.94f525f9.js","/_astro/Prices.b8d4b8e4.js","/_astro/ShopHeader.f12e72f6.js","/_astro/_plugin-vue_export-helper.116fec5b.js","/_astro/client.c2102734.js","/_astro/firebase-app.d513d4b8.js","/_astro/format-money.1a95a3b5.js","/_astro/hoisted.be7b77c7.js","/_astro/idle-callback.889bf0ea.js","/_astro/index.1190ddf5.js","/_astro/modules-info.bc2146d9.js","/_astro/preload-helper.101896b7.js","/_astro/runtime-dom.esm-bundler.e2053595.js","/_astro/session-utm.744b0db3.js","/_astro/workbox-window.prod.es5.dc90f814.js","/assets/cms-preview.css","/assets/cms.css","/assets/cvv.png","/assets/img-placeholder.png","/assets/payments.png","/assets/ssl-safe.png","/img/icon.png","/img/large-icon.png","/img/uploads/banner1.png","/img/uploads/banner2.png","/img/uploads/banner2.webp","/img/uploads/ecom-icon.png","/img/uploads/favicon.png","/img/uploads/headless.png","/img/uploads/headphone.png","/img/uploads/headphone.webp","/img/uploads/logo.png","/img/uploads/og-image.png","/img/uploads/passion.png","/img/uploads/passion.webp","/img/uploads/pwa-reliable.png","/img/uploads/rect8589.png","/img/uploads/rect859.png","/img/uploads/rect89.png","/img/uploads/rect89.webp","/img/uploads/ssl-safe.png"]}), {
3090
3090
  pageMap: pageMap,
3091
3091
  renderers: renderers,
3092
3092
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/storefront",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce storefront with Astro",
6
6
  "bin": {
7
7
  "storefront": "./scripts/build-prod.sh"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/types",
3
3
  "type": "module",
4
- "version": "0.12.1",
4
+ "version": "0.14.1",
5
5
  "description": "E-Com Plus Cloud Commerce reusable type definitions",
6
6
  "main": "index.ts",
7
7
  "repository": {
package/turbo.json CHANGED
@@ -11,6 +11,9 @@
11
11
  },
12
12
  "test": {
13
13
  "outputs": []
14
+ },
15
+ "test:e2e": {
16
+ "outputs": []
14
17
  }
15
18
  },
16
19
  "globalDependencies": [