@flowerforce/flowerbase 1.7.2-beta.1 → 1.7.3-beta.0

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
@@ -1,3 +1,18 @@
1
+ ## 1.7.2 (2026-02-12)
2
+
3
+
4
+ ### 🩹 Fixes
5
+
6
+ - monit endpoint event ([e696efc](https://github.com/flowerforce/flowerbase/commit/e696efc))
7
+
8
+ - name trigger for monit ([f428fc2](https://github.com/flowerforce/flowerbase/commit/f428fc2))
9
+
10
+ - add mongo method countDocuments ([7a7d872](https://github.com/flowerforce/flowerbase/commit/7a7d872))
11
+
12
+ - add operator $size ([adbc749](https://github.com/flowerforce/flowerbase/commit/adbc749))
13
+
14
+ - add EJSON to context function ([2332c3c](https://github.com/flowerforce/flowerbase/commit/2332c3c))
15
+
1
16
  ## 1.7.1 (2026-02-04)
2
17
 
3
18
 
@@ -115,7 +115,7 @@ const functionsController = (app_1, _a) => __awaiter(void 0, [app_1, _a], void 0
115
115
  return JSON.stringify({ message: result.message, name: result.name });
116
116
  }
117
117
  res.type('application/json');
118
- return JSON.stringify(result);
118
+ return JSON.stringify(bson_1.EJSON.serialize(result, { relaxed: false }));
119
119
  }
120
120
  catch (error) {
121
121
  res.status(400);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowerforce/flowerbase",
3
- "version": "1.7.2-beta.1",
3
+ "version": "1.7.3-beta.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { ObjectId } from 'bson'
1
+ import { EJSON, ObjectId } from 'bson'
2
2
  import type { FastifyRequest } from 'fastify'
3
3
  import { ChangeStream, Document } from 'mongodb';
4
4
  import { services } from '../../services'
@@ -141,7 +141,7 @@ export const functionsController: FunctionController = async (
141
141
  return JSON.stringify({ message: result.message, name: result.name })
142
142
  }
143
143
  res.type('application/json')
144
- return JSON.stringify(result)
144
+ return JSON.stringify(EJSON.serialize(result, { relaxed: false }));
145
145
  } catch (error) {
146
146
  res.status(400)
147
147
  res.type('application/json')