@maioradv/nestjs-core 2.3.4 → 2.3.5

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.
@@ -7,3 +7,4 @@ export * from './image.helper';
7
7
  export * from './email.helper';
8
8
  export * from './price.helper';
9
9
  export * from './whatsapp.helper';
10
+ export * from './where.helper';
@@ -23,3 +23,4 @@ __exportStar(require("./image.helper"), exports);
23
23
  __exportStar(require("./email.helper"), exports);
24
24
  __exportStar(require("./price.helper"), exports);
25
25
  __exportStar(require("./whatsapp.helper"), exports);
26
+ __exportStar(require("./where.helper"), exports);
@@ -0,0 +1 @@
1
+ export declare function searchId(str: string | undefined): number | undefined;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.searchId = searchId;
4
+ function searchId(str) {
5
+ if (!str)
6
+ return undefined;
7
+ const num = !isNaN(+str) ? +str : undefined;
8
+ return num && num < 2e9 && num > 0 ? num : undefined;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/nestjs-core",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "NestJS helpers by MaiorADV",
5
5
  "repository": "https://github.com/maioradv/nestjs-core.git",
6
6
  "author": "Maior ADV Srl",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@aws-sdk/client-s3": "^3",
21
21
  "@maioradv/accounts-lib": "^1.5.5",
22
- "@maioradv/notifications-lib": "^1.0.8",
22
+ "@maioradv/notifications-lib": "^1.0.9",
23
23
  "@maioradv/types": "^0.0.7",
24
24
  "@nestjs/cache-manager": "^3",
25
25
  "@nestjs/common": "^11",