@baklavabg/common-ts 1.0.3 → 1.0.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"tryCatchSafeDecorator.d.ts","sourceRoot":"","sources":["../../src/utils/tryCatchSafeDecorator.ts"],"names":[],"mappings":"AA8BA,wBAAgB,QAAQ,CAAC,CAAC,GAAG,SAAS,EAAE,UAAU,GAAE,OAAc,EAAE,UAAU,GAAE,OAAc,EAAE,YAAY,CAAC,EAAE,CAAC,IAC3F,GAAG,GAAG,EAAE,IAAI,MAAM,EAAE,YAAY,kBAAkB,wBAItE"}
1
+ {"version":3,"file":"tryCatchSafeDecorator.d.ts","sourceRoot":"","sources":["../../src/utils/tryCatchSafeDecorator.ts"],"names":[],"mappings":"AA+BA,wBAAgB,QAAQ,CAAC,CAAC,GAAG,SAAS,EAAE,UAAU,GAAE,OAAc,EAAE,UAAU,GAAE,OAAc,EAAE,YAAY,CAAC,EAAE,CAAC,IAC3F,GAAG,GAAG,EAAE,IAAI,MAAM,EAAE,YAAY,kBAAkB,wBAItE"}
@@ -26,7 +26,8 @@
26
26
  // customReturn (default: undefined) - value to return if an error occurs
27
27
  //
28
28
  // See tryCatchSafe.ts for more details on parameter behavior.
29
- import { safe } from "./tryCatchSafe.js";
29
+ // import { safe } from "./tryCatchSafe.js";
30
+ import { safe } from "../safeExit/safe.js";
30
31
  export function TryCatch(printError = true, printStack = true, customReturn) {
31
32
  return function (_, __, descriptor) {
32
33
  descriptor.value = safe(descriptor.value, printError, printStack, customReturn);
@@ -1 +1 @@
1
- {"version":3,"file":"tryCatchSafeDecorator.js","sourceRoot":"","sources":["../../src/utils/tryCatchSafeDecorator.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,sFAAsF;AACtF,6FAA6F;AAC7F,kGAAkG;AAClG,EAAE;AACF,iBAAiB;AACjB,sDAAsD;AACtD,EAAE;AACF,kBAAkB;AAClB,wGAAw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UAAU,CAAM,EAAE,EAAU,EAAE,UAA8B;QAC/D,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,YAAmB,CAAC,CAAC;QACvF,OAAO,UAAU,CAAC;IACtB,CAAC,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baklavabg/common-ts",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "A comprehensive TypeScript library with common utility functions and custom types",
6
6
  "main": "./dist/index.js",