inferred-types 0.43.4 → 0.43.5

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.
@@ -151,6 +151,7 @@ __export(inferred_types_exports, {
151
151
  isBox: () => isBox,
152
152
  isConstant: () => isConstant,
153
153
  isContainer: () => isContainer,
154
+ isCssAspectRatio: () => isCssAspectRatio,
154
155
  isDefined: () => isDefined,
155
156
  isDoneFn: () => isDoneFn,
156
157
  isEqual: () => isEqual,
@@ -183,6 +184,7 @@ __export(inferred_types_exports, {
183
184
  isTypeToken: () => isTypeToken,
184
185
  isTypeTuple: () => isTypeTuple,
185
186
  isUndefined: () => isUndefined,
187
+ isUri: () => isUri,
186
188
  isUrl: () => isUrl,
187
189
  join: () => join,
188
190
  keysOf: () => keysOf,
@@ -1351,6 +1353,24 @@ var isDoneFn = (val) => {
1351
1353
  var isUrl = (val) => {
1352
1354
  return isString(val) && (val.startsWith("http://") || val.startsWith("https://"));
1353
1355
  };
1356
+ var isUri = (val) => {
1357
+ return isString(val) && (val.startsWith("http://") || val.startsWith("https://") || val.startsWith("file://") || val.startsWith("wss://") || val.startsWith("ws://"));
1358
+ };
1359
+
1360
+ // dist/runtime/type-guards/isCssAspectRatio.js
1361
+ var tokens = [
1362
+ "1",
1363
+ "inherit",
1364
+ "initial",
1365
+ "revert",
1366
+ "revert-layer",
1367
+ "unset",
1368
+ "auto"
1369
+ ];
1370
+ var isRatio = (val) => /[0-9]{1,4}\s*\/\s*[0-9]{1,4}/.test(val);
1371
+ var isCssAspectRatio = (val) => {
1372
+ return isString(val) && val.split(/\s+/).every((i) => tokens.includes(i) || isRatio(i));
1373
+ };
1354
1374
 
1355
1375
  // dist/runtime/type-guards/higher-order/endsWith.js
1356
1376
  var endsWith = (endingIn2) => (val) => {
@@ -2410,6 +2430,7 @@ var asVueRef = (value) => ({
2410
2430
  isBox,
2411
2431
  isConstant,
2412
2432
  isContainer,
2433
+ isCssAspectRatio,
2413
2434
  isDefined,
2414
2435
  isDoneFn,
2415
2436
  isEqual,
@@ -2442,6 +2463,7 @@ var asVueRef = (value) => ({
2442
2463
  isTypeToken,
2443
2464
  isTypeTuple,
2444
2465
  isUndefined,
2466
+ isUri,
2445
2467
  isUrl,
2446
2468
  join,
2447
2469
  keysOf,