@leroymerlin-ta/common 0.1.0 → 0.1.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 CHANGED
@@ -1,17 +0,0 @@
1
- # Common Package
2
-
3
- ## README contents
4
-
5
- - What this package is
6
- - What it is NOT
7
- - Module overview
8
- - Stability guarantees
9
- - Versioning rules
10
-
11
- ## Next steps
12
-
13
- 1. Add env helpers (very high ROI)
14
- 2. Add base error classes
15
- 3. Add safe number / boolean parsing
16
- 4. Add retry utility
17
- 5. Publish v0.1.0
@@ -1,2 +1,4 @@
1
- export {};
1
+ export declare const KAFKA_TOPICS: {
2
+ WEBHOOK_TO_SEARCH: string;
3
+ };
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/constants/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/constants/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;CAExB,CAAA"}
@@ -1,2 +1,4 @@
1
- export {};
1
+ export const KAFKA_TOPICS = {
2
+ WEBHOOK_TO_SEARCH: 'webhook.to.search',
3
+ };
2
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/constants/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/constants/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG;IACxB,iBAAiB,EAAE,mBAAmB;CACzC,CAAA"}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export declare function validatedPort(value: unknown, defaultValue: number): number;
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/bootstrap/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/bootstrap/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAC3B,KAAK,EAAE,OAAO,EACd,YAAY,EAAE,MAAM,GACnB,MAAM,CAGR"}
@@ -1,2 +1,5 @@
1
- export {};
1
+ export function validatedPort(value, defaultValue) {
2
+ const num = Number(value);
3
+ return Number.isFinite(num) ? num : defaultValue;
4
+ }
2
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/bootstrap/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/bootstrap/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,aAAa,CAC3B,KAAc,EACd,YAAoB;IAEpB,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC;AACnD,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare function toNumberOrDefault(value: unknown, defaultValue: number): number;
1
+ export declare function test(): boolean;
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/test/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,OAAO,EACd,YAAY,EAAE,MAAM,GACnB,MAAM,CAGR"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/test/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,IAAI,IAAI,OAAO,CAE9B"}
@@ -1,5 +1,4 @@
1
- export function toNumberOrDefault(value, defaultValue) {
2
- const num = Number(value);
3
- return Number.isFinite(num) ? num : defaultValue;
1
+ export function test() {
2
+ return true;
4
3
  }
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/test/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB,CAC/B,KAAc,EACd,YAAoB;IAEpB,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1B,OAAO,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC;AACnD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/test/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,IAAI;IAClB,OAAO,IAAI,CAAC;AACd,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@leroymerlin-ta/common",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "access": "public",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
- "files": ["dist"],
8
+ "files": [
9
+ "dist"
10
+ ],
9
11
  "scripts": {
10
12
  "build": "tsc -p tsconfig.build.json",
11
- "prepublishOnly": "npm run build"
13
+ "prepublishOnly": "npm run build",
14
+ "publish:package": "./publish.sh",
15
+ "publish:patch": "npm version patch && npm run publish:package",
16
+ "publish:minor": "npm version minor && npm run publish:package",
17
+ "publish:major": "npm version major && npm run publish:package"
12
18
  }
13
- }
19
+ }