@zelgadis87/utils-core 5.1.3 → 5.1.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.
package/esbuild/index.mjs CHANGED
@@ -1128,6 +1128,15 @@ function pluralize(n, singular, plural) {
1128
1128
  function isNullOrUndefinedOrEmpty(source) {
1129
1129
  return isNullOrUndefined(source) || source.length === 0;
1130
1130
  }
1131
+ function wrapWithString(str, start, end = start) {
1132
+ if (isNullOrUndefinedOrEmpty(str))
1133
+ throw new Error(`Expected string to be non-empty, got: "${str}"`);
1134
+ if (isNullOrUndefinedOrEmpty(start))
1135
+ throw new Error(`Expected start delimiter to be non-empty, got: "${start}"`);
1136
+ if (isNullOrUndefinedOrEmpty(end))
1137
+ throw new Error(`Expected end delimiter to be non-empty, got: "${end}"`);
1138
+ return start + str + end;
1139
+ }
1131
1140
 
1132
1141
  // src/lazy/Lazy.ts
1133
1142
  var Lazy = class _Lazy {
@@ -2879,6 +2888,7 @@ export {
2879
2888
  upsert,
2880
2889
  withTryCatch,
2881
2890
  withTryCatchAsync,
2891
+ wrapWithString,
2882
2892
  xor
2883
2893
  };
2884
2894
  //# sourceMappingURL=index.mjs.map