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.
- package/dist/inferred-types/index.cjs +22 -0
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-guards/index.d.ts +1 -0
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +1 -0
- package/dist/runtime/type-guards/isCssAspectRatio.d.ts +7 -0
- package/dist/runtime/type-guards/isCssAspectRatio.d.ts.map +1 -0
- package/dist/runtime/type-guards/isCssAspectRatio.js +12 -0
- package/dist/runtime/type-guards/isUrl.d.ts +4 -0
- package/dist/runtime/type-guards/isUrl.d.ts.map +1 -1
- package/dist/runtime/type-guards/isUrl.js +8 -0
- package/dist/types/string-literals/character-sets/CSS.d.ts +13 -0
- package/dist/types/string-literals/character-sets/CSS.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/CSS.js +1 -0
- package/dist/types/string-literals/character-sets/Url.d.ts +1 -0
- package/dist/types/string-literals/character-sets/Url.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/index.d.ts +1 -0
- package/dist/types/string-literals/character-sets/index.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/index.js +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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,
|