heartraite 1.0.216 → 1.0.217

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/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from "./constants";
2
2
  export * from "./enum";
3
- export * from "./firebase";
4
3
  export * from "./helpers";
5
4
  export * from "./types";
6
5
  export * from "./utils";
package/dist/index.js CHANGED
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./constants"), exports);
18
18
  __exportStar(require("./enum"), exports);
19
- __exportStar(require("./firebase"), exports);
20
19
  __exportStar(require("./helpers"), exports);
21
20
  __exportStar(require("./types"), exports);
22
21
  __exportStar(require("./utils"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.216",
3
+ "version": "1.0.217",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,6 @@
28
28
  },
29
29
  "homepage": "https://github.com/agottfredsson/heartraite-npm#readme",
30
30
  "peerDependencies": {
31
- "firebase": "^11.0.1",
32
31
  "react": "^19.0.0",
33
32
  "react-dom": "^19.0.0"
34
33
  },
@@ -39,7 +38,6 @@
39
38
  "@types/node": "^22.9.0",
40
39
  "@types/react": "^19.0.2",
41
40
  "@types/react-dom": "^19.0.2",
42
- "firebase": "^11.0.1",
43
41
  "jest": "^29.7.0",
44
42
  "jest-environment-jsdom": "^29.7.0",
45
43
  "ts-jest": "^29.2.5",
package/src/index.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from "./constants";
2
2
  export * from "./enum";
3
- export * from "./firebase";
4
3
  export * from "./helpers";
5
4
  export * from "./types";
6
5
  export * from "./utils";
@@ -1,14 +0,0 @@
1
- import { Functions } from "firebase/functions";
2
- import { CloudFunctionTypes } from "../types";
3
- interface Params<T extends keyof CloudFunctionTypes> {
4
- functionName: T;
5
- functions: Functions;
6
- payload?: CloudFunctionTypes[T]["payload"];
7
- }
8
- /**
9
- * @deprecated This function is deprecated.
10
- * Use `callCloudFunction` inside application code instead.
11
- * This function will be removed in future versions.
12
- */
13
- export declare const callCloudFunction: <T extends keyof CloudFunctionTypes>({ payload, functions, functionName, }: Params<T>) => Promise<CloudFunctionTypes[T]["response"]>;
14
- export {};
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.callCloudFunction = void 0;
4
- const functions_1 = require("firebase/functions");
5
- /**
6
- * @deprecated This function is deprecated.
7
- * Use `callCloudFunction` inside application code instead.
8
- * This function will be removed in future versions.
9
- */
10
- const callCloudFunction = async ({ payload, functions, functionName, }) => {
11
- const fn = (0, functions_1.httpsCallable)(functions, functionName);
12
- const res = payload ? await fn(payload) : await fn();
13
- return res.data;
14
- };
15
- exports.callCloudFunction = callCloudFunction;
@@ -1 +0,0 @@
1
- export * from "./function.caller";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./function.caller"), exports);
@@ -1,29 +0,0 @@
1
- import { Functions, httpsCallable } from "firebase/functions";
2
- import { CloudFunctionTypes } from "../types";
3
-
4
- // Define the type of parameters for the generic function
5
- interface Params<T extends keyof CloudFunctionTypes> {
6
- functionName: T;
7
- functions: Functions;
8
- payload?: CloudFunctionTypes[T]["payload"];
9
- }
10
-
11
- /**
12
- * @deprecated This function is deprecated.
13
- * Use `callCloudFunction` inside application code instead.
14
- * This function will be removed in future versions.
15
- */
16
- export const callCloudFunction = async <T extends keyof CloudFunctionTypes>({
17
- payload,
18
- functions,
19
- functionName,
20
- }: Params<T>): Promise<CloudFunctionTypes[T]["response"]> => {
21
- const fn = httpsCallable<
22
- CloudFunctionTypes[T]["payload"],
23
- CloudFunctionTypes[T]["response"]
24
- >(functions, functionName);
25
-
26
- const res = payload ? await fn(payload) : await fn();
27
-
28
- return res.data;
29
- };
@@ -1 +0,0 @@
1
- export * from "./function.caller";