@leroymerlin-ta/common 0.1.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.
Files changed (46) hide show
  1. package/README.md +17 -0
  2. package/dist/config/index.d.ts +2 -0
  3. package/dist/config/index.d.ts.map +1 -0
  4. package/dist/config/index.js +2 -0
  5. package/dist/config/index.js.map +1 -0
  6. package/dist/connectors/index.d.ts +2 -0
  7. package/dist/connectors/index.d.ts.map +1 -0
  8. package/dist/connectors/index.js +2 -0
  9. package/dist/connectors/index.js.map +1 -0
  10. package/dist/core/constants/index.d.ts +2 -0
  11. package/dist/core/constants/index.d.ts.map +1 -0
  12. package/dist/core/constants/index.js +2 -0
  13. package/dist/core/constants/index.js.map +1 -0
  14. package/dist/core/index.d.ts +3 -0
  15. package/dist/core/index.d.ts.map +1 -0
  16. package/dist/core/index.js +3 -0
  17. package/dist/core/index.js.map +1 -0
  18. package/dist/core/interfaces/index.d.ts +2 -0
  19. package/dist/core/interfaces/index.d.ts.map +1 -0
  20. package/dist/core/interfaces/index.js +2 -0
  21. package/dist/core/interfaces/index.js.map +1 -0
  22. package/dist/index.d.ts +5 -0
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +5 -0
  25. package/dist/index.js.map +1 -0
  26. package/dist/utils/bootstrap/index.d.ts +2 -0
  27. package/dist/utils/bootstrap/index.d.ts.map +1 -0
  28. package/dist/utils/bootstrap/index.js +2 -0
  29. package/dist/utils/bootstrap/index.js.map +1 -0
  30. package/dist/utils/index.d.ts +4 -0
  31. package/dist/utils/index.d.ts.map +1 -0
  32. package/dist/utils/index.js +4 -0
  33. package/dist/utils/index.js.map +1 -0
  34. package/dist/utils/number/index.d.ts +2 -0
  35. package/dist/utils/number/index.d.ts.map +1 -0
  36. package/dist/utils/number/index.js +2 -0
  37. package/dist/utils/number/index.js.map +1 -0
  38. package/dist/utils/string/index.d.ts +2 -0
  39. package/dist/utils/string/index.d.ts.map +1 -0
  40. package/dist/utils/string/index.js +2 -0
  41. package/dist/utils/string/index.js.map +1 -0
  42. package/dist/utils/test/index.d.ts +2 -0
  43. package/dist/utils/test/index.d.ts.map +1 -0
  44. package/dist/utils/test/index.js +5 -0
  45. package/dist/utils/test/index.js.map +1 -0
  46. package/package.json +13 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
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
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/connectors/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/connectors/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/constants/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/constants/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from "./interfaces/index.js";
2
+ export * from "./constants/index.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./interfaces/index.js";
2
+ export * from "./constants/index.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/interfaces/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from "./config/index.js";
2
+ export * from "./connectors/index.js";
3
+ export * from "./core/index.js";
4
+ export * from "./utils/index.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export * from "./config/index.js";
2
+ export * from "./connectors/index.js";
3
+ export * from "./core/index.js";
4
+ export * from "./utils/index.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/bootstrap/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/bootstrap/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from "./bootstrap/index.js";
2
+ export * from "./string/index.js";
3
+ export * from "./number/index.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./bootstrap/index.js";
2
+ export * from "./string/index.js";
3
+ export * from "./number/index.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/number/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/number/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/string/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/string/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export declare function toNumberOrDefault(value: unknown, defaultValue: number): number;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,5 @@
1
+ export function toNumberOrDefault(value, defaultValue) {
2
+ const num = Number(value);
3
+ return Number.isFinite(num) ? num : defaultValue;
4
+ }
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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"}
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@leroymerlin-ta/common",
3
+ "version": "0.1.0",
4
+ "access": "public",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": ["dist"],
9
+ "scripts": {
10
+ "build": "tsc -p tsconfig.build.json",
11
+ "prepublishOnly": "npm run build"
12
+ }
13
+ }