inferred-types 0.43.3 → 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 +29 -0
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-guards/index.d.ts +2 -0
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +2 -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 +9 -0
- package/dist/runtime/type-guards/isUrl.d.ts.map +1 -0
- package/dist/runtime/type-guards/isUrl.js +15 -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,8 @@ __export(inferred_types_exports, {
|
|
|
183
184
|
isTypeToken: () => isTypeToken,
|
|
184
185
|
isTypeTuple: () => isTypeTuple,
|
|
185
186
|
isUndefined: () => isUndefined,
|
|
187
|
+
isUri: () => isUri,
|
|
188
|
+
isUrl: () => isUrl,
|
|
186
189
|
join: () => join,
|
|
187
190
|
keysOf: () => keysOf,
|
|
188
191
|
kindError: () => kindError,
|
|
@@ -1346,6 +1349,29 @@ var isDoneFn = (val) => {
|
|
|
1346
1349
|
return hasKeys("done")(val) && typeof val.done === "function";
|
|
1347
1350
|
};
|
|
1348
1351
|
|
|
1352
|
+
// dist/runtime/type-guards/isUrl.js
|
|
1353
|
+
var isUrl = (val) => {
|
|
1354
|
+
return isString(val) && (val.startsWith("http://") || val.startsWith("https://"));
|
|
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
|
+
};
|
|
1374
|
+
|
|
1349
1375
|
// dist/runtime/type-guards/higher-order/endsWith.js
|
|
1350
1376
|
var endsWith = (endingIn2) => (val) => {
|
|
1351
1377
|
return ifString(val, (v) => v.endsWith(endingIn2) ? true : false, (v) => ifNumber(v, (n) => String(n).endsWith(endingIn2) ? true : false, () => false));
|
|
@@ -2404,6 +2430,7 @@ var asVueRef = (value) => ({
|
|
|
2404
2430
|
isBox,
|
|
2405
2431
|
isConstant,
|
|
2406
2432
|
isContainer,
|
|
2433
|
+
isCssAspectRatio,
|
|
2407
2434
|
isDefined,
|
|
2408
2435
|
isDoneFn,
|
|
2409
2436
|
isEqual,
|
|
@@ -2436,6 +2463,8 @@ var asVueRef = (value) => ({
|
|
|
2436
2463
|
isTypeToken,
|
|
2437
2464
|
isTypeTuple,
|
|
2438
2465
|
isUndefined,
|
|
2466
|
+
isUri,
|
|
2467
|
+
isUrl,
|
|
2439
2468
|
join,
|
|
2440
2469
|
keysOf,
|
|
2441
2470
|
kindError,
|