@nattyjs/firebase-functions 0.0.1-beta.3

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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `firebase-functions`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const firebase-functions= require('firebase-functions');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
package/dist/index.cjs ADDED
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ const express = require('@nattyjs/express');
4
+ const firebaseFunctions = require('firebase-functions');
5
+
6
+ const FirebaseFunctionModule = {
7
+ init(config) {
8
+ config.autoGeneratePort = false;
9
+ const app = express.ExpressModule.init(config);
10
+ return firebaseFunctions.https.onRequest(app);
11
+ }
12
+ };
13
+
14
+ exports.FirebaseFunctionModule = FirebaseFunctionModule;
@@ -0,0 +1,3 @@
1
+ declare const FirebaseFunctionModule: any;
2
+
3
+ export { FirebaseFunctionModule };
package/dist/index.mjs ADDED
@@ -0,0 +1,12 @@
1
+ import { ExpressModule } from '@nattyjs/express';
2
+ import { https } from 'firebase-functions';
3
+
4
+ const FirebaseFunctionModule = {
5
+ init(config) {
6
+ config.autoGeneratePort = false;
7
+ const app = ExpressModule.init(config);
8
+ return https.onRequest(app);
9
+ }
10
+ };
11
+
12
+ export { FirebaseFunctionModule };
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@nattyjs/firebase-functions",
3
+ "version": "0.0.1-beta.3",
4
+ "description": "",
5
+ "keywords": [],
6
+ "author": "ajayojha <ojhaajay@outlook.com>",
7
+ "license": "ISC",
8
+ "module": "./dist/index.mjs",
9
+ "main": "./dist/index.cjs",
10
+ "types": "./dist/index.d.ts",
11
+ "files": [
12
+ "dist"
13
+ ],
14
+ "scripts": {
15
+ "build": "unbuild"
16
+ },
17
+ "dependencies": {
18
+ "firebase-functions": "4.4.1",
19
+ "firebase-admin": "11.10.1",
20
+ "@nattyjs/express": "0.0.1-beta.4",
21
+ "@nattyjs/core": "0.0.1-beta.4",
22
+ "@nattyjs/types": "0.0.1-beta.4"
23
+ },
24
+ "devDependencies": {
25
+ "@types/node": "20.3.1",
26
+ "unbuild": "1.2.1"
27
+ }
28
+ }