inferred-types 0.55.1 → 0.55.2

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.
@@ -18,8 +18,8 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  ShapeApiImplementation: () => ShapeApiImplementation,
24
24
  addFnToProps: () => addFnToProps,
25
25
  addPropsToFn: () => addPropsToFn,
@@ -480,7 +480,7 @@ __export(src_exports, {
480
480
  youtubeEmbed: () => youtubeEmbed,
481
481
  youtubeMeta: () => youtubeMeta
482
482
  });
483
- module.exports = __toCommonJS(src_exports);
483
+ module.exports = __toCommonJS(index_exports);
484
484
 
485
485
  // src/api/defineApi.ts
486
486
  function asEscapeFunction(fn2) {
@@ -3538,6 +3538,9 @@ function intersect(value, _intersectedWith) {
3538
3538
 
3539
3539
  // src/literals/stripTrailing.ts
3540
3540
  function stripTrailing(content, ...strip2) {
3541
+ if (isUndefined(content)) {
3542
+ return void 0;
3543
+ }
3541
3544
  let output = String(content);
3542
3545
  for (const s of strip2) {
3543
3546
  if (output.endsWith(String(s))) {
@@ -4952,6 +4955,9 @@ function stripChars(content, ...strip2) {
4952
4955
 
4953
4956
  // src/literals/stripLeading.ts
4954
4957
  function stripLeading(content, ...strip2) {
4958
+ if (isUndefined(content)) {
4959
+ return void 0;
4960
+ }
4955
4961
  let output = String(content);
4956
4962
  for (const s of strip2) {
4957
4963
  if (output.startsWith(String(s))) {