cloudcommerce 0.0.36 → 0.0.39
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/.gitattributes +3 -0
- package/CHANGELOG.md +25 -0
- package/package.json +1 -1
- package/packages/api/package.json +1 -1
- package/packages/apps/discounts/package.json +1 -1
- package/packages/cli/config/firebase.json +22 -4
- package/packages/cli/lib/build.js +18 -0
- package/packages/cli/lib/index.js +9 -3
- package/packages/cli/package.json +1 -1
- package/packages/cli/src/build.ts +21 -0
- package/packages/cli/src/index.ts +9 -3
- package/packages/firebase/lib/handlers/check-store-events.js +3 -2
- package/packages/firebase/lib/handlers/check-store-events.js.map +1 -1
- package/packages/firebase/lib/index.d.ts +0 -2
- package/packages/firebase/lib/index.js +4 -28
- package/packages/firebase/lib/index.js.map +1 -1
- package/packages/firebase/package.json +3 -2
- package/packages/firebase/src/handlers/check-store-events.ts +3 -2
- package/packages/firebase/src/index.ts +5 -28
- package/packages/modules/firebase.js +1 -0
- package/packages/modules/lib/{firebase/index.js → firebase.js} +4 -3
- package/packages/modules/lib/firebase.js.map +1 -0
- package/packages/modules/package.json +5 -1
- package/packages/modules/src/firebase/.gitkeep +0 -0
- package/packages/modules/src/{firebase/index.ts → firebase.ts} +3 -2
- package/packages/passport/CHANGELOG.md +1 -0
- package/packages/passport/README.md +1 -0
- package/packages/passport/firebase.js +1 -0
- package/packages/passport/lib/firebase.js +16 -0
- package/packages/passport/lib/firebase.js.map +1 -0
- package/packages/passport/lib/index.js +1 -0
- package/packages/passport/lib/index.js.map +1 -0
- package/packages/passport/package.json +36 -0
- package/packages/passport/src/firebase/.gitkeep +0 -0
- package/packages/passport/src/firebase.ts +16 -0
- package/packages/passport/src/index.ts +0 -0
- package/packages/passport/tsconfig.json +3 -0
- package/packages/ssr/CHANGELOG.md +1 -0
- package/packages/ssr/README.md +1 -0
- package/packages/ssr/firebase.js +1 -0
- package/packages/ssr/lib/firebase.js +15 -0
- package/packages/ssr/lib/firebase.js.map +1 -0
- package/packages/ssr/lib/index.js +1 -0
- package/packages/ssr/lib/index.js.map +1 -0
- package/packages/ssr/package.json +37 -0
- package/packages/ssr/src/firebase/.gitkeep +0 -0
- package/packages/ssr/src/firebase.ts +15 -0
- package/packages/ssr/src/index.ts +0 -0
- package/packages/ssr/tsconfig.json +3 -0
- package/packages/storefront/package.json +1 -1
- package/packages/types/package.json +1 -1
- package/pnpm-lock.yaml +68 -4
- package/pnpm-workspace.yaml +2 -1
- package/packages/modules/lib/firebase/index.js.map +0 -1
package/.gitattributes
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
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.39](https://github.com/ecomplus/cloud-commerce/compare/v0.0.38...v0.0.39) (2022-07-29)
|
|
6
|
+
|
|
7
|
+
### [0.0.38](https://github.com/ecomplus/cloud-commerce/compare/v0.0.37...v0.0.38) (2022-07-28)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* Add root `firebase.js` as complement to pkg named export to prevent no-unresolved eslint error ([a65587b](https://github.com/ecomplus/cloud-commerce/commit/a65587b840015aa9224df2458eb5b10385002c81))
|
|
13
|
+
* **firebase:** Edit `/config` pkg export to `./lib/config.js` to get TS declaration ([b873572](https://github.com/ecomplus/cloud-commerce/commit/b873572e16162094249f6bdc6a25ec8c1b344111))
|
|
14
|
+
|
|
15
|
+
### [0.0.37](https://github.com/ecomplus/cloud-commerce/compare/v0.0.36...v0.0.37) (2022-07-27)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **passport:** Setup `@cloudcommerce/passport` pkg for passport API (customers authentication) ([00a5c4b](https://github.com/ecomplus/cloud-commerce/commit/00a5c4bfb08083a770a9148377e506b920037242))
|
|
21
|
+
* **ssr:** Setup `@cloudcommerce/ssr` pkg to deploy isolated function ([59b8686](https://github.com/ecomplus/cloud-commerce/commit/59b8686efece3256b7a3809762601d4949d116f3))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **firebase:** Proper named imports from `firebase-admin` (cjs) package ([74aca73](https://github.com/ecomplus/cloud-commerce/commit/74aca73a76431d7d8f3f3e5c862085284cb2a6bd))
|
|
27
|
+
* **firebase:** Remove (test only) z function and ssr (moved to `@cloudcommerce/ssr`) ([dc8b8e5](https://github.com/ecomplus/cloud-commerce/commit/dc8b8e5d706f535806b306d8b24c34e4acdf8d7f))
|
|
28
|
+
* **modules:** Add `/firebase` named export to package.json ([0d3520f](https://github.com/ecomplus/cloud-commerce/commit/0d3520fc9b24877af5b14127e168ad2280b8ca4e))
|
|
29
|
+
|
|
5
30
|
### [0.0.36](https://github.com/ecomplus/cloud-commerce/compare/v0.0.35...v0.0.36) (2022-07-27)
|
|
6
31
|
|
|
7
32
|
### [0.0.35](https://github.com/ecomplus/cloud-commerce/compare/v0.0.34...v0.0.35) (2022-07-27)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudcommerce",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.39",
|
|
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>",
|
|
@@ -3,10 +3,28 @@
|
|
|
3
3
|
"rules": "firestore.rules",
|
|
4
4
|
"indexes": "firestore.indexes.json"
|
|
5
5
|
},
|
|
6
|
-
"functions":
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
"functions": [
|
|
7
|
+
{
|
|
8
|
+
"predeploy": "npm run build -- --codebase core --dir \"$RESOURCE_DIR\"",
|
|
9
|
+
"source": "functions/core",
|
|
10
|
+
"codebase": "core"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"predeploy": "npm run build -- --codebase modules --dir \"$RESOURCE_DIR\"",
|
|
14
|
+
"source": "functions/modules",
|
|
15
|
+
"codebase": "modules"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"predeploy": "npm run build -- --codebase passport --dir \"$RESOURCE_DIR\"",
|
|
19
|
+
"source": "functions/passport",
|
|
20
|
+
"codebase": "passport"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"predeploy": "npm run build -- --codebase ssr --dir \"$RESOURCE_DIR\"",
|
|
24
|
+
"source": "functions/ssr",
|
|
25
|
+
"codebase": "ssr"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
10
28
|
"hosting": {
|
|
11
29
|
"public": "public",
|
|
12
30
|
"ignore": [
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { fs } from 'zx';
|
|
3
|
+
|
|
4
|
+
const copyFunctionsConfig = async () => {
|
|
5
|
+
const functionsDir = path.join(process.cwd(), 'functions');
|
|
6
|
+
const filesToCopy = ['.env', 'config.json'];
|
|
7
|
+
const dirents = await fs.readdir(functionsDir, { withFileTypes: true });
|
|
8
|
+
for (let i = 0; i < dirents.length; i++) {
|
|
9
|
+
if (dirents[i].isDirectory() && dirents[i].name.charAt(0) !== '.') {
|
|
10
|
+
for (let ii = 0; ii < filesToCopy.length; ii++) {
|
|
11
|
+
// eslint-disable-next-line no-await-in-loop
|
|
12
|
+
await fs.copy(path.join(functionsDir, filesToCopy[ii]), path.join(functionsDir, dirents[i].name, filesToCopy[ii]));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default copyFunctionsConfig;
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
$, argv, fs, echo, chalk,
|
|
5
5
|
} from 'zx';
|
|
6
6
|
import login from './login.js';
|
|
7
|
+
import build from './build.js';
|
|
7
8
|
|
|
8
9
|
const { FIREBASE_PROJECT_ID, GOOGLE_APPLICATION_CREDENTIALS } = process.env;
|
|
9
10
|
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
|
|
@@ -33,7 +34,7 @@ if (projectId) {
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export default async () => {
|
|
36
|
-
fs.
|
|
37
|
+
await fs.copy(path.join(__dirname, '..', 'config'), pwd);
|
|
37
38
|
const options = Object.keys(argv).reduce((opts, key) => {
|
|
38
39
|
if (key !== '_' && key !== 'deploy' && key !== 'commit') {
|
|
39
40
|
// eslint-disable-next-line no-param-reassign
|
|
@@ -45,6 +46,7 @@ export default async () => {
|
|
|
45
46
|
return $`firebase --project=${projectId} ${cmd}${options}`;
|
|
46
47
|
};
|
|
47
48
|
if (argv._.includes('serve')) {
|
|
49
|
+
await build();
|
|
48
50
|
return $firebase('emulators:start').catch(async (err) => {
|
|
49
51
|
await echo`
|
|
50
52
|
Try killing open emulators with:
|
|
@@ -62,6 +64,9 @@ ${chalk.bold('npx kill-port 4000 9099 5001 8080 5000 8085 9199 4400 4500')}
|
|
|
62
64
|
if (argv._.find((cmd) => /^(\w+:)?logs?$/.test(cmd))) {
|
|
63
65
|
return $firebase('functions:log');
|
|
64
66
|
}
|
|
67
|
+
if (argv._.includes('build')) {
|
|
68
|
+
return build();
|
|
69
|
+
}
|
|
65
70
|
if (argv._.includes('deploy')) {
|
|
66
71
|
return $firebase('deploy');
|
|
67
72
|
}
|
|
@@ -71,7 +76,7 @@ ${chalk.bold('npx kill-port 4000 9099 5001 8080 5000 8085 9199 4400 4500')}
|
|
|
71
76
|
}
|
|
72
77
|
if (argv._.includes('setup')) {
|
|
73
78
|
const { storeId, authenticationId, apiKey } = await login();
|
|
74
|
-
fs.
|
|
79
|
+
await fs.writeFile(path.join(pwd, 'functions', '.env'), `ECOM_AUTHENTICATION_ID=${authenticationId}
|
|
75
80
|
ECOM_API_KEY=${apiKey}
|
|
76
81
|
ECOM_STORE_ID=${storeId}
|
|
77
82
|
`);
|
|
@@ -79,7 +84,8 @@ ECOM_STORE_ID=${storeId}
|
|
|
79
84
|
await $firebase('deploy');
|
|
80
85
|
}
|
|
81
86
|
if (argv.commit !== false) {
|
|
82
|
-
fs.
|
|
87
|
+
await fs.writeFile(path.join(pwd, 'functions', 'config.json'), JSON.stringify({ storeId }, null, 2));
|
|
88
|
+
await build();
|
|
83
89
|
try {
|
|
84
90
|
await $`git add .firebaserc functions/config.json`;
|
|
85
91
|
await $`git commit -m "Setup store [skip ci]"`;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
import { fs } from 'zx';
|
|
3
|
+
|
|
4
|
+
const copyFunctionsConfig = async () => {
|
|
5
|
+
const functionsDir = path.join(process.cwd(), 'functions');
|
|
6
|
+
const filesToCopy = ['.env', 'config.json'];
|
|
7
|
+
const dirents = await fs.readdir(functionsDir, { withFileTypes: true });
|
|
8
|
+
for (let i = 0; i < dirents.length; i++) {
|
|
9
|
+
if (dirents[i].isDirectory() && dirents[i].name.charAt(0) !== '.') {
|
|
10
|
+
for (let ii = 0; ii < filesToCopy.length; ii++) {
|
|
11
|
+
// eslint-disable-next-line no-await-in-loop
|
|
12
|
+
await fs.copy(
|
|
13
|
+
path.join(functionsDir, filesToCopy[ii]),
|
|
14
|
+
path.join(functionsDir, dirents[i].name, filesToCopy[ii]),
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default copyFunctionsConfig;
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
chalk,
|
|
9
9
|
} from 'zx';
|
|
10
10
|
import login from './login';
|
|
11
|
+
import build from './build';
|
|
11
12
|
|
|
12
13
|
const {
|
|
13
14
|
FIREBASE_PROJECT_ID,
|
|
@@ -45,7 +46,7 @@ if (projectId) {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
export default async () => {
|
|
48
|
-
fs.
|
|
49
|
+
await fs.copy(path.join(__dirname, '..', 'config'), pwd);
|
|
49
50
|
|
|
50
51
|
const options = Object.keys(argv).reduce((opts, key) => {
|
|
51
52
|
if (key !== '_' && key !== 'deploy' && key !== 'commit') {
|
|
@@ -59,6 +60,7 @@ export default async () => {
|
|
|
59
60
|
};
|
|
60
61
|
|
|
61
62
|
if (argv._.includes('serve')) {
|
|
63
|
+
await build();
|
|
62
64
|
return $firebase('emulators:start').catch(async (err: any) => {
|
|
63
65
|
await echo`
|
|
64
66
|
Try killing open emulators with:
|
|
@@ -77,6 +79,9 @@ ${chalk.bold('npx kill-port 4000 9099 5001 8080 5000 8085 9199 4400 4500')}
|
|
|
77
79
|
if (argv._.find((cmd) => /^(\w+:)?logs?$/.test(cmd))) {
|
|
78
80
|
return $firebase('functions:log');
|
|
79
81
|
}
|
|
82
|
+
if (argv._.includes('build')) {
|
|
83
|
+
return build();
|
|
84
|
+
}
|
|
80
85
|
if (argv._.includes('deploy')) {
|
|
81
86
|
return $firebase('deploy');
|
|
82
87
|
}
|
|
@@ -87,7 +92,7 @@ ${chalk.bold('npx kill-port 4000 9099 5001 8080 5000 8085 9199 4400 4500')}
|
|
|
87
92
|
|
|
88
93
|
if (argv._.includes('setup')) {
|
|
89
94
|
const { storeId, authenticationId, apiKey } = await login();
|
|
90
|
-
fs.
|
|
95
|
+
await fs.writeFile(
|
|
91
96
|
path.join(pwd, 'functions', '.env'),
|
|
92
97
|
`ECOM_AUTHENTICATION_ID=${authenticationId}
|
|
93
98
|
ECOM_API_KEY=${apiKey}
|
|
@@ -98,10 +103,11 @@ ECOM_STORE_ID=${storeId}
|
|
|
98
103
|
await $firebase('deploy');
|
|
99
104
|
}
|
|
100
105
|
if (argv.commit !== false) {
|
|
101
|
-
fs.
|
|
106
|
+
await fs.writeFile(
|
|
102
107
|
path.join(pwd, 'functions', 'config.json'),
|
|
103
108
|
JSON.stringify({ storeId }, null, 2),
|
|
104
109
|
);
|
|
110
|
+
await build();
|
|
105
111
|
try {
|
|
106
112
|
await $`git add .firebaserc functions/config.json`;
|
|
107
113
|
await $`git commit -m "Setup store [skip ci]"`;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
// eslint-disable-next-line import/no-unresolved
|
|
2
|
+
import { getFirestore } from 'firebase-admin/firestore';
|
|
2
3
|
import { logger } from 'firebase-functions';
|
|
3
4
|
import api from '@cloudcommerce/api';
|
|
4
5
|
import getEnv from '../env.js';
|
|
5
6
|
|
|
6
7
|
export default async () => {
|
|
7
8
|
const { authenticationId, apiKey } = getEnv();
|
|
8
|
-
const eventsSubs = await
|
|
9
|
+
const eventsSubs = await getFirestore().collection('eventsSubs').get();
|
|
9
10
|
const listenedEvents = [];
|
|
10
11
|
eventsSubs.forEach((doc) => {
|
|
11
12
|
const eventSub = doc.data();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-store-events.js","sourceRoot":"","sources":["../../src/handlers/check-store-events.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"check-store-events.js","sourceRoot":"","sources":["../../src/handlers/check-store-events.ts"],"names":[],"mappings":"AACA,gDAAgD;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,eAAe,KAAK,IAAI,EAAE;IACxB,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;IAC9C,MAAM,UAAU,GAAG,MAAM,YAAY,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,GAAG,EAAE,CAAC;IACvE,MAAM,cAAc,GAAwB,EAAE,CAAC;IAC/C,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACzB,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,EAAc,CAAC;QACxC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YAC5C,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SACrC;IACH,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC;IAChC;QACE,QAAQ;QACR,UAAU;QACV,OAAO;KACR,CAAC,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QAC3B,MAAM,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,MAAM,GAAG,CAAC;YACrC,gBAAgB;YAChB,MAAM;YACN,QAAQ,EAAE,UAAU,QAAoB,EAAE;SAC3C,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,WAAW,EAAE,MAAM,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import 'source-map-support/register.js';
|
|
2
2
|
import '@cloudcommerce/api/fetch-polyfill.js';
|
|
3
|
-
export declare const z: import("firebase-functions/v2/https").HttpsFunction;
|
|
4
|
-
export declare const ssr: import("firebase-functions/v2/https").HttpsFunction;
|
|
5
3
|
export declare const cronStoreEvents: import("firebase-functions/v1").CloudFunction<unknown>;
|
|
@@ -1,37 +1,13 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
1
2
|
import 'source-map-support/register.js';
|
|
2
3
|
import '@cloudcommerce/api/fetch-polyfill.js';
|
|
3
|
-
import
|
|
4
|
-
import { pubsub, logger } from 'firebase-functions';
|
|
4
|
+
// https://github.com/import-js/eslint-plugin-import/issues/1810
|
|
5
5
|
// eslint-disable-next-line import/no-unresolved
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
6
|
+
import { initializeApp } from 'firebase-admin/app';
|
|
7
|
+
import { pubsub } from 'firebase-functions';
|
|
8
8
|
import checkStoreEvents from './handlers/check-store-events.js';
|
|
9
9
|
|
|
10
10
|
initializeApp();
|
|
11
|
-
const processId = String(Date.now());
|
|
12
|
-
const options = config.get().httpsFunctionOptions;
|
|
13
|
-
|
|
14
|
-
export const z = onRequest(options, ({ url }, response) => {
|
|
15
|
-
process.env.ECOM_API_KEY = '***';
|
|
16
|
-
if (url === '/hello') {
|
|
17
|
-
logger.info('Hello logs!', {
|
|
18
|
-
structuredData: true,
|
|
19
|
-
});
|
|
20
|
-
response.send(config.get().hello);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (url === '/pid') {
|
|
24
|
-
response.send(processId);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
response.send({
|
|
28
|
-
config: config.get(),
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export const ssr = onRequest(options, (request, response) => {
|
|
33
|
-
response.send('<h1>Hello SSR!</h1>');
|
|
34
|
-
});
|
|
35
11
|
|
|
36
12
|
export const cronStoreEvents = pubsub.schedule('* * * * *').onRun(() => {
|
|
37
13
|
return checkStoreEvents();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,gCAAgC,CAAC;AACxC,OAAO,sCAAsC,CAAC;AAC9C,gEAAgE;AAChE,gDAAgD;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAE7D,aAAa,EAAE,CAAC;AAEhB,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE;IACrE,OAAO,gBAAgB,EAAE,CAAC;AAC5B,CAAC,CAAC,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/firebase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.39",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce on Firebase",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./lib/index.js",
|
|
10
|
-
"./config": "./config.js"
|
|
10
|
+
"./config": "./config.js",
|
|
11
|
+
"./lib/config": "./lib/config.js"
|
|
11
12
|
},
|
|
12
13
|
"repository": {
|
|
13
14
|
"type": "git",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { EventSub } from '../types';
|
|
2
|
-
|
|
2
|
+
// eslint-disable-next-line import/no-unresolved
|
|
3
|
+
import { getFirestore } from 'firebase-admin/firestore';
|
|
3
4
|
import { logger } from 'firebase-functions';
|
|
4
5
|
import api from '@cloudcommerce/api';
|
|
5
6
|
import getEnv from '../env';
|
|
6
7
|
|
|
7
8
|
export default async () => {
|
|
8
9
|
const { authenticationId, apiKey } = getEnv();
|
|
9
|
-
const eventsSubs = await
|
|
10
|
+
const eventsSubs = await getFirestore().collection('eventsSubs').get();
|
|
10
11
|
const listenedEvents: EventSub['event'][] = [];
|
|
11
12
|
eventsSubs.forEach((doc) => {
|
|
12
13
|
const eventSub = doc.data() as EventSub;
|
|
@@ -1,37 +1,14 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
|
|
1
3
|
import 'source-map-support/register.js';
|
|
2
4
|
import '@cloudcommerce/api/fetch-polyfill.js';
|
|
3
|
-
import
|
|
4
|
-
import { pubsub, logger } from 'firebase-functions';
|
|
5
|
+
// https://github.com/import-js/eslint-plugin-import/issues/1810
|
|
5
6
|
// eslint-disable-next-line import/no-unresolved
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
7
|
+
import { initializeApp } from 'firebase-admin/app';
|
|
8
|
+
import { pubsub } from 'firebase-functions';
|
|
8
9
|
import checkStoreEvents from './handlers/check-store-events';
|
|
9
10
|
|
|
10
11
|
initializeApp();
|
|
11
|
-
const processId = String(Date.now());
|
|
12
|
-
const options = config.get().httpsFunctionOptions;
|
|
13
|
-
|
|
14
|
-
export const z = onRequest(options, ({ url }, response) => {
|
|
15
|
-
process.env.ECOM_API_KEY = '***';
|
|
16
|
-
if (url === '/hello') {
|
|
17
|
-
logger.info('Hello logs!', {
|
|
18
|
-
structuredData: true,
|
|
19
|
-
});
|
|
20
|
-
response.send(config.get().hello);
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (url === '/pid') {
|
|
24
|
-
response.send(processId);
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
response.send({
|
|
28
|
-
config: config.get(),
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export const ssr = onRequest(options, (request, response) => {
|
|
33
|
-
response.send('<h1>Hello SSR!</h1>');
|
|
34
|
-
});
|
|
35
12
|
|
|
36
13
|
export const cronStoreEvents = pubsub.schedule('* * * * *').onRun(() => {
|
|
37
14
|
return checkStoreEvents();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/firebase.js';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable import/prefer-default-export */
|
|
2
2
|
import 'source-map-support/register.js';
|
|
3
|
-
|
|
3
|
+
// eslint-disable-next-line import/no-unresolved
|
|
4
|
+
import { initializeApp } from 'firebase-admin/app';
|
|
4
5
|
// eslint-disable-next-line import/no-unresolved
|
|
5
6
|
import { onRequest } from 'firebase-functions/v2/https';
|
|
6
7
|
import config from '@cloudcommerce/firebase/lib/config';
|
|
@@ -8,8 +9,8 @@ import config from '@cloudcommerce/firebase/lib/config';
|
|
|
8
9
|
initializeApp();
|
|
9
10
|
const options = config.get().httpsFunctionOptions;
|
|
10
11
|
|
|
11
|
-
export const
|
|
12
|
+
export const modulesApi = onRequest(options, (request, response) => {
|
|
12
13
|
process.env.ECOM_API_KEY = '***';
|
|
13
14
|
response.send('Hello modules!');
|
|
14
15
|
});
|
|
15
|
-
// # sourceMappingURL=
|
|
16
|
+
// # sourceMappingURL=firebase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,gCAAgC,CAAC;AACxC,gDAAgD;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,aAAa,EAAE,CAAC;AAChB,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;IACjE,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,KAAK,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/modules",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.39",
|
|
5
5
|
"description": "E-Com Plus Cloud Commerce modules API",
|
|
6
6
|
"main": "lib/index.cjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./lib/index.js",
|
|
9
|
+
"./firebase": "./lib/firebase.js"
|
|
10
|
+
},
|
|
7
11
|
"repository": {
|
|
8
12
|
"type": "git",
|
|
9
13
|
"url": "git+https://github.com/ecomplus/cloud-commerce.git",
|
|
File without changes
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* eslint-disable import/prefer-default-export */
|
|
2
2
|
|
|
3
3
|
import 'source-map-support/register.js';
|
|
4
|
-
|
|
4
|
+
// eslint-disable-next-line import/no-unresolved
|
|
5
|
+
import { initializeApp } from 'firebase-admin/app';
|
|
5
6
|
// eslint-disable-next-line import/no-unresolved
|
|
6
7
|
import { onRequest } from 'firebase-functions/v2/https';
|
|
7
8
|
import config from '@cloudcommerce/firebase/lib/config';
|
|
@@ -9,7 +10,7 @@ import config from '@cloudcommerce/firebase/lib/config';
|
|
|
9
10
|
initializeApp();
|
|
10
11
|
const options = config.get().httpsFunctionOptions;
|
|
11
12
|
|
|
12
|
-
export const
|
|
13
|
+
export const modulesApi = onRequest(options, (request, response) => {
|
|
13
14
|
process.env.ECOM_API_KEY = '***';
|
|
14
15
|
response.send('Hello modules!');
|
|
15
16
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Please refer to GitHub [repository releases](https://github.com/ecomplus/cloud-commerce/releases) or monorepo unified [CHANGELOG.md](https://github.com/ecomplus/cloud-commerce/blob/main/CHANGELOG.md).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `@cloudcommerce/passport`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/firebase.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
import 'source-map-support/register.js';
|
|
3
|
+
// eslint-disable-next-line import/no-unresolved
|
|
4
|
+
import { initializeApp } from 'firebase-admin/app';
|
|
5
|
+
// eslint-disable-next-line import/no-unresolved
|
|
6
|
+
import { onRequest } from 'firebase-functions/v2/https';
|
|
7
|
+
import config from '@cloudcommerce/firebase/lib/config';
|
|
8
|
+
|
|
9
|
+
initializeApp();
|
|
10
|
+
const options = config.get().httpsFunctionOptions;
|
|
11
|
+
|
|
12
|
+
export const passportApi = onRequest(options, (request, response) => {
|
|
13
|
+
process.env.ECOM_API_KEY = '***';
|
|
14
|
+
response.send('Hello passport!');
|
|
15
|
+
});
|
|
16
|
+
// # sourceMappingURL=firebase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,gCAAgC,CAAC;AACxC,gDAAgD;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,aAAa,EAAE,CAAC;AAChB,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;IAClE,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,KAAK,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;AACnC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// # sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudcommerce/passport",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.39",
|
|
5
|
+
"description": "E-Com Plus Cloud Commerce customers authentication (passport) API",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./lib/index.js",
|
|
9
|
+
"./firebase": "./lib/firebase.js"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/ecomplus/cloud-commerce.git",
|
|
14
|
+
"directory": "packages/passport"
|
|
15
|
+
},
|
|
16
|
+
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
17
|
+
"license": "Apache 2.0 with Commons Clause",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/passport#readme",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "sh ../../scripts/build-lib.sh"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@cloudcommerce/api": "workspace:*",
|
|
27
|
+
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
+
"firebase-admin": "^11.0.0",
|
|
29
|
+
"firebase-functions": "^3.22.0",
|
|
30
|
+
"source-map-support": "^0.5.21"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@cloudcommerce/types": "workspace:*",
|
|
34
|
+
"@firebase/app-types": "^0.7.0"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
|
|
3
|
+
import 'source-map-support/register.js';
|
|
4
|
+
// eslint-disable-next-line import/no-unresolved
|
|
5
|
+
import { initializeApp } from 'firebase-admin/app';
|
|
6
|
+
// eslint-disable-next-line import/no-unresolved
|
|
7
|
+
import { onRequest } from 'firebase-functions/v2/https';
|
|
8
|
+
import config from '@cloudcommerce/firebase/lib/config';
|
|
9
|
+
|
|
10
|
+
initializeApp();
|
|
11
|
+
const options = config.get().httpsFunctionOptions;
|
|
12
|
+
|
|
13
|
+
export const passportApi = onRequest(options, (request, response) => {
|
|
14
|
+
process.env.ECOM_API_KEY = '***';
|
|
15
|
+
response.send('Hello passport!');
|
|
16
|
+
});
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Please refer to GitHub [repository releases](https://github.com/ecomplus/cloud-commerce/releases) or monorepo unified [CHANGELOG.md](https://github.com/ecomplus/cloud-commerce/blob/main/CHANGELOG.md).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `@cloudcommerce/ssr`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/firebase.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
import 'source-map-support/register.js';
|
|
3
|
+
// eslint-disable-next-line import/no-unresolved
|
|
4
|
+
import { initializeApp } from 'firebase-admin/app';
|
|
5
|
+
// eslint-disable-next-line import/no-unresolved
|
|
6
|
+
import { onRequest } from 'firebase-functions/v2/https';
|
|
7
|
+
import config from '@cloudcommerce/firebase/lib/config';
|
|
8
|
+
|
|
9
|
+
initializeApp();
|
|
10
|
+
const options = config.get().httpsFunctionOptions;
|
|
11
|
+
|
|
12
|
+
export const ssr = onRequest(options, (request, response) => {
|
|
13
|
+
response.send('<h1>Hello SSR!</h1>');
|
|
14
|
+
});
|
|
15
|
+
// # sourceMappingURL=firebase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firebase.js","sourceRoot":"","sources":["../src/firebase.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,gCAAgC,CAAC;AACxC,gDAAgD;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,aAAa,EAAE,CAAC;AAChB,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;IAC1D,QAAQ,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// # sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudcommerce/ssr",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.39",
|
|
5
|
+
"description": "E-Com Plus Cloud Commerce storefront SSR",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./lib/index.js",
|
|
9
|
+
"./firebase": "./lib/firebase.js"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/ecomplus/cloud-commerce.git",
|
|
14
|
+
"directory": "packages/ssr"
|
|
15
|
+
},
|
|
16
|
+
"author": "E-Com Club Softwares para E-commerce <ti@e-com.club>",
|
|
17
|
+
"license": "Apache 2.0 with Commons Clause",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/ecomplus/cloud-commerce/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/ssr#readme",
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "sh ../../scripts/build-lib.sh"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@cloudcommerce/api": "workspace:*",
|
|
27
|
+
"@cloudcommerce/firebase": "workspace:*",
|
|
28
|
+
"@cloudcommerce/storefront": "workspace:*",
|
|
29
|
+
"firebase-admin": "^11.0.0",
|
|
30
|
+
"firebase-functions": "^3.22.0",
|
|
31
|
+
"source-map-support": "^0.5.21"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@cloudcommerce/types": "workspace:*",
|
|
35
|
+
"@firebase/app-types": "^0.7.0"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
|
|
3
|
+
import 'source-map-support/register.js';
|
|
4
|
+
// eslint-disable-next-line import/no-unresolved
|
|
5
|
+
import { initializeApp } from 'firebase-admin/app';
|
|
6
|
+
// eslint-disable-next-line import/no-unresolved
|
|
7
|
+
import { onRequest } from 'firebase-functions/v2/https';
|
|
8
|
+
import config from '@cloudcommerce/firebase/lib/config';
|
|
9
|
+
|
|
10
|
+
initializeApp();
|
|
11
|
+
const options = config.get().httpsFunctionOptions;
|
|
12
|
+
|
|
13
|
+
export const ssr = onRequest(options, (request, response) => {
|
|
14
|
+
response.send('<h1>Hello SSR!</h1>');
|
|
15
|
+
});
|
|
File without changes
|
package/pnpm-lock.yaml
CHANGED
|
@@ -115,6 +115,46 @@ importers:
|
|
|
115
115
|
'@firebase/app-types': 0.7.0
|
|
116
116
|
json-schema-to-typescript: 11.0.1
|
|
117
117
|
|
|
118
|
+
packages/passport:
|
|
119
|
+
specifiers:
|
|
120
|
+
'@cloudcommerce/api': workspace:*
|
|
121
|
+
'@cloudcommerce/firebase': workspace:*
|
|
122
|
+
'@cloudcommerce/types': workspace:*
|
|
123
|
+
'@firebase/app-types': ^0.7.0
|
|
124
|
+
firebase-admin: ^11.0.0
|
|
125
|
+
firebase-functions: ^3.22.0
|
|
126
|
+
source-map-support: ^0.5.21
|
|
127
|
+
dependencies:
|
|
128
|
+
'@cloudcommerce/api': link:../api
|
|
129
|
+
'@cloudcommerce/firebase': link:../firebase
|
|
130
|
+
firebase-admin: 11.0.0_@firebase+app-types@0.7.0
|
|
131
|
+
firebase-functions: 3.22.0_firebase-admin@11.0.0
|
|
132
|
+
source-map-support: 0.5.21
|
|
133
|
+
devDependencies:
|
|
134
|
+
'@cloudcommerce/types': link:../types
|
|
135
|
+
'@firebase/app-types': 0.7.0
|
|
136
|
+
|
|
137
|
+
packages/ssr:
|
|
138
|
+
specifiers:
|
|
139
|
+
'@cloudcommerce/api': workspace:*
|
|
140
|
+
'@cloudcommerce/firebase': workspace:*
|
|
141
|
+
'@cloudcommerce/storefront': workspace:*
|
|
142
|
+
'@cloudcommerce/types': workspace:*
|
|
143
|
+
'@firebase/app-types': ^0.7.0
|
|
144
|
+
firebase-admin: ^11.0.0
|
|
145
|
+
firebase-functions: ^3.22.0
|
|
146
|
+
source-map-support: ^0.5.21
|
|
147
|
+
dependencies:
|
|
148
|
+
'@cloudcommerce/api': link:../api
|
|
149
|
+
'@cloudcommerce/firebase': link:../firebase
|
|
150
|
+
'@cloudcommerce/storefront': link:../storefront
|
|
151
|
+
firebase-admin: 11.0.0_@firebase+app-types@0.7.0
|
|
152
|
+
firebase-functions: 3.22.0_firebase-admin@11.0.0
|
|
153
|
+
source-map-support: 0.5.21
|
|
154
|
+
devDependencies:
|
|
155
|
+
'@cloudcommerce/types': link:../types
|
|
156
|
+
'@firebase/app-types': 0.7.0
|
|
157
|
+
|
|
118
158
|
packages/storefront:
|
|
119
159
|
specifiers:
|
|
120
160
|
'@cloudcommerce/api': workspace:*
|
|
@@ -131,15 +171,39 @@ importers:
|
|
|
131
171
|
|
|
132
172
|
store:
|
|
133
173
|
specifiers:
|
|
134
|
-
'@cloudcommerce/cli': ^0.0.
|
|
174
|
+
'@cloudcommerce/cli': ^0.0.38
|
|
135
175
|
dependencies:
|
|
136
176
|
'@cloudcommerce/cli': link:../packages/cli
|
|
137
177
|
|
|
138
|
-
store/functions:
|
|
178
|
+
store/functions/core:
|
|
179
|
+
specifiers:
|
|
180
|
+
'@cloudcommerce/firebase': ^0.0.38
|
|
181
|
+
dependencies:
|
|
182
|
+
'@cloudcommerce/firebase': link:../../../packages/firebase
|
|
183
|
+
|
|
184
|
+
store/functions/modules:
|
|
185
|
+
specifiers:
|
|
186
|
+
'@cloudcommerce/firebase': ^0.0.38
|
|
187
|
+
'@cloudcommerce/modules': ^0.0.38
|
|
188
|
+
dependencies:
|
|
189
|
+
'@cloudcommerce/firebase': link:../../../packages/firebase
|
|
190
|
+
'@cloudcommerce/modules': link:../../../packages/modules
|
|
191
|
+
|
|
192
|
+
store/functions/passport:
|
|
193
|
+
specifiers:
|
|
194
|
+
'@cloudcommerce/firebase': ^0.0.38
|
|
195
|
+
'@cloudcommerce/passport': ^0.0.38
|
|
196
|
+
dependencies:
|
|
197
|
+
'@cloudcommerce/firebase': link:../../../packages/firebase
|
|
198
|
+
'@cloudcommerce/passport': link:../../../packages/passport
|
|
199
|
+
|
|
200
|
+
store/functions/ssr:
|
|
139
201
|
specifiers:
|
|
140
|
-
'@cloudcommerce/firebase': ^0.0.
|
|
202
|
+
'@cloudcommerce/firebase': ^0.0.38
|
|
203
|
+
'@cloudcommerce/ssr': ^0.0.38
|
|
141
204
|
dependencies:
|
|
142
|
-
'@cloudcommerce/firebase': link
|
|
205
|
+
'@cloudcommerce/firebase': link:../../../packages/firebase
|
|
206
|
+
'@cloudcommerce/ssr': link:../../../packages/ssr
|
|
143
207
|
|
|
144
208
|
packages:
|
|
145
209
|
|
package/pnpm-workspace.yaml
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/firebase/index.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,gCAAgC,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,gDAAgD;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,aAAa,EAAE,CAAC;AAChB,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE;IACvE,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,KAAK,CAAC;IACjC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC"}
|