inferred-types 0.45.4 → 0.46.0
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/constants/tsconfig.tsbuildinfo +1 -1
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/boolean-logic/ifFunction.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/ifFunction.js +1 -2
- package/dist/runtime/boolean-logic/ifString.js +1 -2
- package/dist/runtime/boolean-logic/index.d.ts +2 -2
- package/dist/runtime/boolean-logic/index.d.ts.map +1 -1
- package/dist/runtime/boolean-logic/index.js +2 -2
- package/dist/runtime/meta/urlMeta.d.ts +11 -2
- package/dist/runtime/meta/urlMeta.d.ts.map +1 -1
- package/dist/runtime/meta/urlMeta.js +15 -1
- package/dist/runtime/meta/youtube-meta.d.ts +8 -1
- package/dist/runtime/meta/youtube-meta.d.ts.map +1 -1
- package/dist/runtime/meta/youtube-meta.js +25 -1
- package/dist/runtime/runtime-types/ip6Prefix.d.ts +1 -1
- package/dist/runtime/runtime-types/ip6Prefix.d.ts.map +1 -1
- package/dist/runtime/runtime-types/parse.d.ts +1 -10
- package/dist/runtime/runtime-types/parse.d.ts.map +1 -1
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-guards/higher-order/endsWith.d.ts.map +1 -1
- package/dist/runtime/type-guards/higher-order/endsWith.js +6 -3
- package/dist/runtime/type-guards/index.d.ts +0 -1
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +0 -1
- package/dist/runtime/type-guards/isPhoneNumber.d.ts.map +1 -1
- package/dist/runtime/type-guards/isPhoneNumber.js +1 -2
- package/dist/runtime/type-guards/network-tg.d.ts +1 -1
- package/dist/runtime/type-guards/network-tg.d.ts.map +1 -1
- package/dist/runtime/type-guards/network-tg.js +1 -2
- package/dist/runtime/type-guards/repos.d.ts +6 -0
- package/dist/runtime/type-guards/repos.d.ts.map +1 -1
- package/dist/runtime/type-guards/repos.js +6 -0
- package/dist/types/errors/KindError.d.ts +1 -1
- package/dist/types/errors/KindError.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Url.d.ts +3 -3
- package/dist/types/string-literals/character-sets/Url.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/YouTube.d.ts +5 -4
- package/dist/types/string-literals/character-sets/YouTube.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -17
- package/dist/inferred-types/index.cjs +0 -3241
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ifFunction.d.ts","sourceRoot":"","sources":["../../../src/runtime/boolean-logic/ifFunction.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ifFunction.d.ts","sourceRoot":"","sources":["../../../src/runtime/boolean-logic/ifFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,UAAU,EACV,EAAE,EACF,UAAU,EACX,0BAAwB;AAGzB;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,MAAM,SAAS,UAAU,EACzB,EAAE,SAAS,UAAU,EACrB,KAAK,SAAS,UAAU,EAExB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,KAAK,EAAE,EAC9C,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,KAAK,GAC9D,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,CAMnC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { isFunction } from "../index.js";
|
|
2
1
|
/**
|
|
3
2
|
* **ifFunction**(value, isFn, notFn)
|
|
4
3
|
*
|
|
@@ -8,7 +7,7 @@ import { isFunction } from "../index.js";
|
|
|
8
7
|
* **Related:** `isFunction`
|
|
9
8
|
*/
|
|
10
9
|
export function ifFunction(value, isFnCallback, notFnCallback) {
|
|
11
|
-
return (
|
|
10
|
+
return (typeof value === "function"
|
|
12
11
|
? isFnCallback(value)
|
|
13
12
|
: notFnCallback(value));
|
|
14
13
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { isString } from "../index.js";
|
|
2
1
|
/**
|
|
3
2
|
* **ifString**
|
|
4
3
|
*
|
|
@@ -11,7 +10,7 @@ import { isString } from "../index.js";
|
|
|
11
10
|
* @param elseVal the value (strongly typed) returned if val is NOT a _string
|
|
12
11
|
*/
|
|
13
12
|
export function ifString(val, ifVal, elseVal) {
|
|
14
|
-
return (
|
|
13
|
+
return (typeof val === "string"
|
|
15
14
|
? ifVal(val)
|
|
16
15
|
: elseVal(val));
|
|
17
16
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export * from "./ifArray";
|
|
2
2
|
export * from "./ifBoolean";
|
|
3
3
|
export * from "./ifNumber";
|
|
4
|
-
export * from "./ifString";
|
|
5
4
|
export * from "./ifNotNull";
|
|
6
5
|
export * from "./ifSameType";
|
|
7
|
-
export * from "./ifFunction";
|
|
8
6
|
export * from "./ifContainer";
|
|
9
7
|
export * from "./ifHasKey";
|
|
10
8
|
export * from "./ifLength";
|
|
@@ -12,8 +10,10 @@ export * from "./ifScalar";
|
|
|
12
10
|
export * from "./ifNull";
|
|
13
11
|
export * from "./ifObject";
|
|
14
12
|
export * from "./ifTrue";
|
|
13
|
+
export * from "./ifFunction";
|
|
15
14
|
export * from "./ifFalse";
|
|
16
15
|
export * from "./ifChar";
|
|
16
|
+
export * from "./ifString";
|
|
17
17
|
export * from "./ifUndefined";
|
|
18
18
|
export * from "./ifArrayPartial";
|
|
19
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/boolean-logic/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/runtime/boolean-logic/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export * from "./ifArray.js";
|
|
2
2
|
export * from "./ifBoolean.js";
|
|
3
3
|
export * from "./ifNumber.js";
|
|
4
|
-
export * from "./ifString.js";
|
|
5
4
|
export * from "./ifNotNull.js";
|
|
6
5
|
export * from "./ifSameType.js";
|
|
7
|
-
export * from "./ifFunction.js";
|
|
8
6
|
export * from "./ifContainer.js";
|
|
9
7
|
export * from "./ifHasKey.js";
|
|
10
8
|
export * from "./ifLength.js";
|
|
@@ -12,7 +10,9 @@ export * from "./ifScalar.js";
|
|
|
12
10
|
export * from "./ifNull.js";
|
|
13
11
|
export * from "./ifObject.js";
|
|
14
12
|
export * from "./ifTrue.js";
|
|
13
|
+
export * from "./ifFunction.js";
|
|
15
14
|
export * from "./ifFalse.js";
|
|
16
15
|
export * from "./ifChar.js";
|
|
16
|
+
export * from "./ifString.js";
|
|
17
17
|
export * from "./ifUndefined.js";
|
|
18
18
|
export * from "./ifArrayPartial.js";
|
|
@@ -28,7 +28,16 @@ export type UrlMeta<T> = {
|
|
|
28
28
|
export declare const getUrlProtocol: <T extends string>(url: T) => GetUrlProtocol<T>;
|
|
29
29
|
export declare const removeUrlProtocol: <T extends string>(url: T) => import("../../types/index").StripBefore<T, "://">;
|
|
30
30
|
export declare const getUrlPath: <T extends string>(url: T) => GetUrlPath<T>;
|
|
31
|
-
|
|
31
|
+
/**
|
|
32
|
+
* **getUrlQueryParams**`(url, [specific])`
|
|
33
|
+
*
|
|
34
|
+
* Get's the query parameter's part of a URL and optionally allows
|
|
35
|
+
* you to focus in on a specific key in the query parameters.
|
|
36
|
+
*
|
|
37
|
+
* If you do specify a particular query parameter it will decode
|
|
38
|
+
* the value with URIDecode.
|
|
39
|
+
*/
|
|
40
|
+
export declare const getUrlQueryParams: <T extends string, S extends string | undefined>(url: T, specific?: S) => string | GetUrlQueryParams<T, S> | undefined;
|
|
32
41
|
export declare const getUrlPort: <T extends string>(url: T) => number | "default";
|
|
33
42
|
export declare const getUrlSource: <T extends string>(url: T) => GetUrlSource<T>;
|
|
34
43
|
/**
|
|
@@ -42,7 +51,7 @@ export declare const urlMeta: <T extends string>(url: T) => {
|
|
|
42
51
|
isUrl: IsUrl<T>;
|
|
43
52
|
protocol: GetUrlProtocol<T>;
|
|
44
53
|
path: GetUrlPath<T>;
|
|
45
|
-
queryParameters: GetUrlQueryParams<T
|
|
54
|
+
queryParameters: string | GetUrlQueryParams<T, string | undefined> | undefined;
|
|
46
55
|
port: GetUrlPort<T>;
|
|
47
56
|
source: GetUrlSource<T>;
|
|
48
57
|
isIpAddress: IsIpAddress<GetUrlSource<T>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlMeta.d.ts","sourceRoot":"","sources":["../../../src/runtime/meta/urlMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,iBAAiB,EAEjB,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACb,0BAAwB;AAiBzB,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**`(url, [specific])`
|
|
22
|
+
*
|
|
23
|
+
* Get's the query parameter's part of a URL and optionally allows
|
|
24
|
+
* you to focus in on a specific key in the query parameters.
|
|
25
|
+
*
|
|
26
|
+
* If you do specify a particular query parameter it will decode
|
|
27
|
+
* the value with URIDecode.
|
|
28
|
+
*/
|
|
29
|
+
export const getUrlQueryParams = (url, specific = undefined) => {
|
|
21
30
|
const qp = stripBefore(url, "?");
|
|
31
|
+
if (specific) {
|
|
32
|
+
return (qp.includes(`${specific}=`)
|
|
33
|
+
? decodeURIComponent(stripAfter(stripBefore(qp, (`${specific}=`)), "&").replace(/\+/g, '%20'))
|
|
34
|
+
: undefined);
|
|
35
|
+
}
|
|
22
36
|
return (qp === ""
|
|
23
37
|
? qp
|
|
24
38
|
: `?${qp}`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { As, GetYouTubePageType, YouTubePageType, YouTubeShareUrl, YouTubeUrl } from "../../types/index";
|
|
1
|
+
import { As, GetYouTubePageType, YouTubeEmbedUrl, YouTubePageType, YouTubeShareUrl, YouTubeUrl, YouTubeVideoUrl } from "../../types/index";
|
|
2
2
|
/**
|
|
3
3
|
* **YouTubeMeta**`<T>`
|
|
4
4
|
*
|
|
@@ -28,6 +28,13 @@ export type YouTubeMeta<T extends string> = {
|
|
|
28
28
|
* that URL is for YouTube). Returns _never_ if not a YouTube URL.
|
|
29
29
|
*/
|
|
30
30
|
export declare const getYouTubePageType: <T extends string>(url: T) => GetYouTubePageType<T>;
|
|
31
|
+
/**
|
|
32
|
+
* **youtubeEmbed**`(url)`
|
|
33
|
+
*
|
|
34
|
+
* Takes a Video URL from YouTube and converts it to a "embed" URL
|
|
35
|
+
* that can be put into an iframe.
|
|
36
|
+
*/
|
|
37
|
+
export declare const youtubeEmbed: (url: YouTubeVideoUrl) => YouTubeEmbedUrl;
|
|
31
38
|
/**
|
|
32
39
|
* **youtube**`(url)`
|
|
33
40
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"youtube-meta.d.ts","sourceRoot":"","sources":["../../../src/runtime/meta/youtube-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,UAAU,
|
|
1
|
+
{"version":3,"file":"youtube-meta.d.ts","sourceRoot":"","sources":["../../../src/runtime/meta/youtube-meta.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,EAAE,EACF,kBAAkB,EAClB,eAAe,EACf,eAAe,EACf,eAAe,EACf,UAAU,EACV,eAAe,EAChB,0BAAwB;AAgBzB;;;;GAIG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,IAAI;IAC1C;;OAEG;IACH,GAAG,EAAE,CAAC,CAAC;IACP;;;OAGG;IACH,YAAY,EAAE,CAAC,SAAS,UAAU,GAAG,IAAI,GAAG,KAAK,CAAC;IAElD;;;SAGK;IACL,UAAU,EAAE,CAAC,SAAS,eAAe,GAAG,IAAI,GAAG,KAAK,CAAC;IAErD,QAAQ,EAAE,EAAE,CACV,kBAAkB,CAAC,CAAC,CAAC,EACrB,eAAe,CAChB,CAAA;CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,0BAA2B,CAAC,0BAyC1D,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,QAAS,eAAe,oBAchD,CAAA;AAGD;;;;;GAKG;AACH,eAAO,MAAM,WAAW,0BAA2B,CAAC,KAAG,YAAY,CAAC,CAcnE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getUrlPath, hasUrlQueryParameter, isYouTubeCreatorUrl, isYouTubeFeedUrl, isYouTubeShareUrl, isYouTubeUrl, isYouTubeVideoUrl, isYouTubeVideosInPlaylist, last } from "../index.js";
|
|
1
|
+
import { getUrlPath, getUrlQueryParams, hasUrlQueryParameter, isYouTubeCreatorUrl, isYouTubeFeedUrl, isYouTubeShareUrl, isYouTubeUrl, isYouTubeVideoUrl, isYouTubeVideosInPlaylist, last } from "../index.js";
|
|
2
2
|
import { Never } from "../../constants/Never.js";
|
|
3
3
|
/**
|
|
4
4
|
* **getYouTubePageType**`(url)`
|
|
@@ -46,6 +46,30 @@ export const getYouTubePageType = (url) => {
|
|
|
46
46
|
: "other"
|
|
47
47
|
: Never);
|
|
48
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* **youtubeEmbed**`(url)`
|
|
51
|
+
*
|
|
52
|
+
* Takes a Video URL from YouTube and converts it to a "embed" URL
|
|
53
|
+
* that can be put into an iframe.
|
|
54
|
+
*/
|
|
55
|
+
export const youtubeEmbed = (url) => {
|
|
56
|
+
if (hasUrlQueryParameter(url, "v")) {
|
|
57
|
+
const id = getUrlQueryParams(url, "v");
|
|
58
|
+
return `https://www.youtube.com/embed/${id}`;
|
|
59
|
+
}
|
|
60
|
+
else if (isYouTubeShareUrl(url)) {
|
|
61
|
+
const id = url.split("/").pop();
|
|
62
|
+
if (id) {
|
|
63
|
+
return `https://www.youtube.com/embed/${id}`;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
throw new Error(`Unexpected problem parsing share URL -- "${url}" -- into a YouTube embed URL`);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
throw new Error(`Unexpected URL structure; unable to convert "${url}" to a YouTube embed URL`);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
49
73
|
/**
|
|
50
74
|
* **youtube**`(url)`
|
|
51
75
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AsIp6Prefix } from "../../types/
|
|
1
|
+
import { AsIp6Prefix } from "../../types/index";
|
|
2
2
|
export declare const ip6Prefix: <T extends readonly (`9${string}` | `0${string}` | `1${string}` | `2${string}` | `3${string}` | `4${string}` | `5${string}` | `6${string}` | `7${string}` | `8${string}` | `A${string}` | `B${string}` | `C${string}` | `D${string}` | `E${string}` | `F${string}` | `a${string}` | `b${string}` | `c${string}` | `d${string}` | `e${string}` | `f${string}`)[]>(...groups: T) => AsIp6Prefix<T>;
|
|
3
3
|
//# sourceMappingURL=ip6Prefix.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ip6Prefix.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/ip6Prefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,
|
|
1
|
+
{"version":3,"file":"ip6Prefix.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/ip6Prefix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,0BAAwB;AAIxD,eAAO,MAAM,SAAS,8WAA8C,CAAC,mBAepE,CAAA"}
|
|
@@ -12,14 +12,5 @@ export type ParsedToken<TType> = {
|
|
|
12
12
|
* Detects if the value passed in is a type token
|
|
13
13
|
* from the `ShapeApi`.
|
|
14
14
|
*/
|
|
15
|
-
export declare const parse: <T>(value: T) =>
|
|
16
|
-
isToken: boolean;
|
|
17
|
-
type: T;
|
|
18
|
-
token: (T & `<<string${string}>>`) | (T & `<<number${string}>>`) | (T & `<<boolean${string}>>`) | (T & `<<undefined${string}>>`) | (T & `<<false${string}>>`) | (T & `<<map${string}>>`) | (T & `<<set${string}>>`) | (T & `<<true${string}>>`) | (T & `<<null${string}>>`) | (T & `<<fn${string}>>`) | (T & `<<tuple${string}>>`) | (T & `<<rec${string}>>`) | (T & `<<arr${string}>>`) | (T & `<<union${string}>>`) | (T & `<<obj${string}>>`) | (T & `<<gen${string}>>`) | (T & `<<string-set${string}>>`) | (T & `<<numeric-set${string}>>`) | (T & `<<union-set${string}>>`);
|
|
19
|
-
tokenName: string;
|
|
20
|
-
tokenData: string[];
|
|
21
|
-
} | {
|
|
22
|
-
isToken: boolean;
|
|
23
|
-
type: T;
|
|
24
|
-
};
|
|
15
|
+
export declare const parse: <T>(value: T) => unknown;
|
|
25
16
|
//# sourceMappingURL=parse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAKxC,MAAM,MAAM,WAAW,CACrB,KAAK,IACH;IACF,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,CAAC;AAaF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,aAAc,CAAC
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/runtime/runtime-types/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,0BAAwB;AAKxC,MAAM,MAAM,WAAW,CACrB,KAAK,IACH;IACF,OAAO,EAAE,IAAI,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;CAC9B,CAAC;AAaF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,aAAc,CAAC,YAOhC,CAAA"}
|