inferred-types 0.43.6 → 0.45.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/NetworkConstants.d.ts +29 -0
- package/dist/constants/NetworkConstants.d.ts.map +1 -0
- package/dist/constants/NetworkConstants.js +83 -0
- package/dist/constants/RepoConstants.d.ts +31 -0
- package/dist/constants/RepoConstants.d.ts.map +1 -0
- package/dist/constants/RepoConstants.js +48 -0
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -1
- package/dist/constants/tsconfig.tsbuildinfo +1 -1
- package/dist/inferred-types/index.cjs +646 -312
- package/dist/inferred-types/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/dictionary/valuesOf.d.ts +1 -1
- package/dist/runtime/dictionary/valuesOf.d.ts.map +1 -1
- package/dist/runtime/dictionary/withKeys.d.ts +1 -1
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +1 -0
- package/dist/runtime/literals/index.d.ts +1 -0
- package/dist/runtime/literals/index.d.ts.map +1 -1
- package/dist/runtime/literals/index.js +1 -0
- package/dist/runtime/literals/takeNumericCharacters.d.ts +9 -0
- package/dist/runtime/literals/takeNumericCharacters.d.ts.map +1 -0
- package/dist/runtime/literals/takeNumericCharacters.js +12 -0
- package/dist/runtime/meta/index.d.ts +3 -0
- package/dist/runtime/meta/index.d.ts.map +1 -0
- package/dist/runtime/meta/index.js +2 -0
- package/dist/runtime/meta/urlMeta.d.ts +52 -0
- package/dist/runtime/meta/urlMeta.d.ts.map +1 -0
- package/dist/runtime/meta/urlMeta.js +57 -0
- package/dist/runtime/meta/youtube-meta.d.ts +31 -0
- package/dist/runtime/meta/youtube-meta.d.ts.map +1 -0
- package/dist/runtime/meta/youtube-meta.js +19 -0
- package/dist/runtime/runtime-types/parse.d.ts +1 -1
- package/dist/runtime/runtime-types/shape-helpers/getTokenData.d.ts +1 -1
- package/dist/runtime/runtime-types/shape-helpers/getTokenName.d.ts +1 -1
- package/dist/runtime/runtime-types/shape-helpers/singletons.d.ts.map +1 -1
- package/dist/runtime/runtime-types/shape-helpers/singletons.js +1 -1
- package/dist/runtime/runtime-types/shape.d.ts +1 -1
- package/dist/runtime/tsconfig.tsbuildinfo +1 -1
- package/dist/runtime/type-conversion/asChars.d.ts +8 -0
- package/dist/runtime/type-conversion/asChars.d.ts.map +1 -0
- package/dist/runtime/type-conversion/asChars.js +8 -0
- package/dist/runtime/type-conversion/index.d.ts +2 -0
- package/dist/runtime/type-conversion/index.d.ts.map +1 -1
- package/dist/runtime/type-conversion/index.js +2 -0
- package/dist/runtime/type-conversion/ip6GroupExpansion.d.ts +14 -0
- package/dist/runtime/type-conversion/ip6GroupExpansion.d.ts.map +1 -0
- package/dist/runtime/type-conversion/ip6GroupExpansion.js +15 -0
- package/dist/runtime/type-guards/index.d.ts +4 -0
- package/dist/runtime/type-guards/index.d.ts.map +1 -1
- package/dist/runtime/type-guards/index.js +4 -0
- package/dist/runtime/type-guards/isHexadecimal.d.ts +8 -0
- package/dist/runtime/type-guards/isHexadecimal.d.ts.map +1 -0
- package/dist/runtime/type-guards/isHexadecimal.js +13 -0
- package/dist/runtime/type-guards/isUrl.d.ts +20 -4
- package/dist/runtime/type-guards/isUrl.d.ts.map +1 -1
- package/dist/runtime/type-guards/isUrl.js +29 -9
- package/dist/runtime/type-guards/network-tg.d.ts +48 -0
- package/dist/runtime/type-guards/network-tg.d.ts.map +1 -0
- package/dist/runtime/type-guards/network-tg.js +85 -0
- package/dist/runtime/type-guards/repos.d.ts +45 -0
- package/dist/runtime/type-guards/repos.d.ts.map +1 -0
- package/dist/runtime/type-guards/repos.js +77 -0
- package/dist/runtime/type-guards/youtube.d.ts +42 -0
- package/dist/runtime/type-guards/youtube.d.ts.map +1 -0
- package/dist/runtime/type-guards/youtube.js +74 -0
- package/dist/types/{numeric-literals/ValueCallback.d.ts → api/api.d.ts} +1 -1
- package/dist/types/api/api.d.ts.map +1 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/index.d.ts.map +1 -0
- package/dist/types/api/index.js +1 -0
- package/dist/types/boolean-logic/branching/OnPass.d.ts +29 -0
- package/dist/types/boolean-logic/branching/OnPass.d.ts.map +1 -0
- package/dist/types/boolean-logic/branching/index.d.ts +1 -0
- package/dist/types/boolean-logic/branching/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/branching/index.js +1 -0
- package/dist/types/boolean-logic/combinators/And.d.ts +1 -1
- package/dist/types/boolean-logic/combinators/And.d.ts.map +1 -1
- package/dist/types/boolean-logic/combinators/Not.d.ts +5 -6
- package/dist/types/boolean-logic/combinators/Not.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/Extends.d.ts +2 -1
- package/dist/types/boolean-logic/operators/Extends.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsBoolean.d.ts +2 -1
- package/dist/types/boolean-logic/operators/IsBoolean.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsCssHexadecimal.d.ts +9 -0
- package/dist/types/boolean-logic/operators/IsCssHexadecimal.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsCssHexadecimal.js +1 -0
- package/dist/types/boolean-logic/operators/IsEqual.d.ts +7 -1
- package/dist/types/boolean-logic/operators/IsEqual.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsLessThan.d.ts +13 -0
- package/dist/types/boolean-logic/operators/IsLessThan.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsLessThan.js +1 -0
- package/dist/types/boolean-logic/operators/IsNever.d.ts +2 -1
- package/dist/types/boolean-logic/operators/IsNever.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsNumber.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsNumber.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsString.d.ts +2 -2
- package/dist/types/boolean-logic/operators/IsString.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/IsUrl.d.ts +35 -0
- package/dist/types/boolean-logic/operators/IsUrl.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/IsUrl.js +1 -0
- package/dist/types/boolean-logic/operators/Network-operators.d.ts +71 -0
- package/dist/types/boolean-logic/operators/Network-operators.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/Network-operators.js +1 -0
- package/dist/types/boolean-logic/operators/YouTube-operators.d.ts +32 -0
- package/dist/types/boolean-logic/operators/YouTube-operators.d.ts.map +1 -0
- package/dist/types/boolean-logic/operators/YouTube-operators.js +1 -0
- package/dist/types/boolean-logic/operators/index.d.ts +4 -1
- package/dist/types/boolean-logic/operators/index.d.ts.map +1 -1
- package/dist/types/boolean-logic/operators/index.js +4 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/literals/ExpandRecursively.d.ts +7 -1
- package/dist/types/literals/ExpandRecursively.d.ts.map +1 -1
- package/dist/types/literals/Shape.d.ts +1 -1
- package/dist/types/literals/Shape.d.ts.map +1 -1
- package/dist/types/numeric-literals/index.d.ts +0 -1
- package/dist/types/numeric-literals/index.d.ts.map +1 -1
- package/dist/types/numeric-literals/index.js +0 -1
- package/dist/types/string-literals/RetainUntil.d.ts +33 -0
- package/dist/types/string-literals/RetainUntil.d.ts.map +1 -0
- package/dist/types/string-literals/RetainUntil.js +1 -0
- package/dist/types/string-literals/Split.d.ts +3 -3
- package/dist/types/string-literals/Split.d.ts.map +1 -1
- package/dist/types/string-literals/StripAfter.d.ts +2 -2
- package/dist/types/string-literals/StripAfter.d.ts.map +1 -1
- package/dist/types/string-literals/StripBefore.d.ts +2 -2
- package/dist/types/string-literals/StripBefore.d.ts.map +1 -1
- package/dist/types/string-literals/StripUntil.d.ts +6 -0
- package/dist/types/string-literals/StripUntil.d.ts.map +1 -0
- package/dist/types/string-literals/StripUntil.js +1 -0
- package/dist/types/string-literals/character-sets/DomainName.d.ts +26 -18
- package/dist/types/string-literals/character-sets/DomainName.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/InlineSvg.d.ts +2 -2
- package/dist/types/string-literals/character-sets/InlineSvg.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/IpAddress.d.ts +28 -4
- package/dist/types/string-literals/character-sets/IpAddress.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Optional.d.ts +14 -0
- package/dist/types/string-literals/character-sets/Optional.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/Optional.js +1 -0
- package/dist/types/string-literals/character-sets/Repos.d.ts +108 -0
- package/dist/types/string-literals/character-sets/Repos.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/Repos.js +1 -0
- package/dist/types/string-literals/character-sets/Url.d.ts +208 -6
- package/dist/types/string-literals/character-sets/Url.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/Url.js +1 -0
- package/dist/types/string-literals/character-sets/YouTube.d.ts +127 -0
- package/dist/types/string-literals/character-sets/YouTube.d.ts.map +1 -0
- package/dist/types/string-literals/character-sets/YouTube.js +1 -0
- package/dist/types/string-literals/character-sets/index.d.ts +4 -0
- package/dist/types/string-literals/character-sets/index.d.ts.map +1 -1
- package/dist/types/string-literals/character-sets/index.js +4 -0
- package/dist/types/string-literals/index.d.ts +2 -0
- package/dist/types/string-literals/index.d.ts.map +1 -1
- package/dist/types/string-literals/index.js +2 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dist/types/type-conversion/MergeObjects.d.ts.map +1 -1
- package/dist/types/type-conversion/RetainChars.d.ts +15 -0
- package/dist/types/type-conversion/RetainChars.d.ts.map +1 -0
- package/dist/types/type-conversion/RetainChars.js +1 -0
- package/dist/types/type-conversion/StripChars.d.ts +18 -0
- package/dist/types/type-conversion/StripChars.d.ts.map +1 -0
- package/dist/types/type-conversion/StripChars.js +1 -0
- package/dist/types/type-conversion/index.d.ts +2 -0
- package/dist/types/type-conversion/index.d.ts.map +1 -1
- package/dist/types/type-conversion/index.js +2 -0
- package/package.json +9 -9
- package/dist/constants/TCP_IP.d.ts +0 -11
- package/dist/constants/TCP_IP.d.ts.map +0 -1
- package/dist/constants/TCP_IP.js +0 -10
- package/dist/types/boolean-logic/operators/IsHexadecimal.d.ts +0 -9
- package/dist/types/boolean-logic/operators/IsHexadecimal.d.ts.map +0 -1
- package/dist/types/numeric-literals/ValueCallback.d.ts.map +0 -1
- /package/dist/types/{boolean-logic/operators/IsHexadecimal.js → api/api.js} +0 -0
- /package/dist/types/{numeric-literals/ValueCallback.js → boolean-logic/branching/OnPass.js} +0 -0
|
@@ -29,6 +29,7 @@ __export(inferred_types_exports, {
|
|
|
29
29
|
FALSY_TYPE_KINDS: () => FALSY_TYPE_KINDS,
|
|
30
30
|
FALSY_VALUES: () => FALSY_VALUES,
|
|
31
31
|
FILTER: () => FILTER,
|
|
32
|
+
GITHUB_INSIGHT_CATEGORY_LOOKUP: () => GITHUB_INSIGHT_CATEGORY_LOOKUP,
|
|
32
33
|
HASH_TABLE_ALPHA_LOWER: () => HASH_TABLE_ALPHA_LOWER,
|
|
33
34
|
HASH_TABLE_ALPHA_UPPER: () => HASH_TABLE_ALPHA_UPPER,
|
|
34
35
|
HASH_TABLE_CHAR: () => HASH_TABLE_CHAR,
|
|
@@ -45,6 +46,7 @@ __export(inferred_types_exports, {
|
|
|
45
46
|
MONTH_NAME: () => MONTH_NAME,
|
|
46
47
|
MapCardinality: () => MapCardinality,
|
|
47
48
|
NARROW_CONTAINER_TYPE_KINDS: () => NARROW_CONTAINER_TYPE_KINDS,
|
|
49
|
+
NETWORK_PROTOCOL_LOOKUP: () => NETWORK_PROTOCOL_LOOKUP,
|
|
48
50
|
NON_ZERO_NUMERIC_CHAR: () => NON_ZERO_NUMERIC_CHAR,
|
|
49
51
|
NOT_APPLICABLE: () => NOT_APPLICABLE,
|
|
50
52
|
NOT_DEFINED: () => NOT_DEFINED,
|
|
@@ -55,11 +57,15 @@ __export(inferred_types_exports, {
|
|
|
55
57
|
OPTION: () => OPTION,
|
|
56
58
|
PLURAL_EXCEPTIONS: () => PLURAL_EXCEPTIONS,
|
|
57
59
|
PLURAL_EXCEPTIONS_OLD: () => PLURAL_EXCEPTIONS_OLD,
|
|
60
|
+
REPO_PAGE_TYPES: () => REPO_PAGE_TYPES,
|
|
61
|
+
REPO_SOURCES: () => REPO_SOURCES,
|
|
62
|
+
REPO_SOURCE_LOOKUP: () => REPO_SOURCE_LOOKUP,
|
|
58
63
|
RESULT: () => RESULT,
|
|
59
64
|
SHAPE_DELIMITER: () => SHAPE_DELIMITER,
|
|
60
65
|
SHAPE_PREFIXES: () => SHAPE_PREFIXES,
|
|
61
66
|
SINGULAR_NOUN_ENDINGS: () => SINGULAR_NOUN_ENDINGS,
|
|
62
67
|
ShapeApiImplementation: () => ShapeApiImplementation,
|
|
68
|
+
TOP_LEVEL_DOMAINS: () => TOP_LEVEL_DOMAINS,
|
|
63
69
|
TT_Atomics: () => TT_Atomics,
|
|
64
70
|
TT_Containers: () => TT_Containers,
|
|
65
71
|
TT_Functions: () => TT_Functions,
|
|
@@ -91,6 +97,7 @@ __export(inferred_types_exports, {
|
|
|
91
97
|
addPropsToFn: () => addPropsToFn,
|
|
92
98
|
and: () => and,
|
|
93
99
|
asArray: () => asArray,
|
|
100
|
+
asChars: () => asChars,
|
|
94
101
|
asRecord: () => asRecord,
|
|
95
102
|
asString: () => asString,
|
|
96
103
|
asVueRef: () => asVueRef,
|
|
@@ -114,10 +121,16 @@ __export(inferred_types_exports, {
|
|
|
114
121
|
fnMeta: () => fnMeta,
|
|
115
122
|
get: () => get,
|
|
116
123
|
getEach: () => getEach,
|
|
124
|
+
getUrlPath: () => getUrlPath,
|
|
125
|
+
getUrlPort: () => getUrlPort,
|
|
126
|
+
getUrlProtocol: () => getUrlProtocol,
|
|
127
|
+
getUrlQueryParams: () => getUrlQueryParams,
|
|
128
|
+
getUrlSource: () => getUrlSource,
|
|
117
129
|
handleDoneFn: () => handleDoneFn,
|
|
118
130
|
hasDefaultValue: () => hasDefaultValue,
|
|
119
131
|
hasIndexOf: () => hasIndexOf,
|
|
120
132
|
hasKeys: () => hasKeys,
|
|
133
|
+
hasUrlPort: () => hasUrlPort,
|
|
121
134
|
idLiteral: () => idLiteral,
|
|
122
135
|
idTypeGuard: () => idTypeGuard,
|
|
123
136
|
identity: () => identity,
|
|
@@ -145,14 +158,18 @@ __export(inferred_types_exports, {
|
|
|
145
158
|
indexOf: () => indexOf,
|
|
146
159
|
intersect: () => intersect,
|
|
147
160
|
intersection: () => intersection,
|
|
161
|
+
ip6GroupExpansion: () => ip6GroupExpansion,
|
|
148
162
|
ip6Prefix: () => ip6Prefix,
|
|
149
163
|
isArray: () => isArray,
|
|
164
|
+
isBitbucketUrl: () => isBitbucketUrl,
|
|
150
165
|
isBoolean: () => isBoolean,
|
|
151
166
|
isBox: () => isBox,
|
|
167
|
+
isCodeCommitUrl: () => isCodeCommitUrl,
|
|
152
168
|
isConstant: () => isConstant,
|
|
153
169
|
isContainer: () => isContainer,
|
|
154
170
|
isCssAspectRatio: () => isCssAspectRatio,
|
|
155
171
|
isDefined: () => isDefined,
|
|
172
|
+
isDomainName: () => isDomainName,
|
|
156
173
|
isDoneFn: () => isDoneFn,
|
|
157
174
|
isEqual: () => isEqual,
|
|
158
175
|
isErrorCondition: () => isErrorCondition,
|
|
@@ -160,8 +177,14 @@ __export(inferred_types_exports, {
|
|
|
160
177
|
isFalsy: () => isFalsy,
|
|
161
178
|
isFnWithParams: () => isFnWithParams,
|
|
162
179
|
isFunction: () => isFunction,
|
|
180
|
+
isGithubRepoUrl: () => isGithubRepoUrl,
|
|
181
|
+
isGithubUrl: () => isGithubUrl,
|
|
182
|
+
isHexadecimal: () => isHexadecimal,
|
|
163
183
|
isIndexable: () => isIndexable,
|
|
164
184
|
isInlineSvg: () => isInlineSvg,
|
|
185
|
+
isIp4Address: () => isIp4Address,
|
|
186
|
+
isIp6Address: () => isIp6Address,
|
|
187
|
+
isIpAddress: () => isIpAddress,
|
|
165
188
|
isLength: () => isLength,
|
|
166
189
|
isNever: () => isNever,
|
|
167
190
|
isNotNull: () => isNotNull,
|
|
@@ -172,8 +195,11 @@ __export(inferred_types_exports, {
|
|
|
172
195
|
isObject: () => isObject,
|
|
173
196
|
isReadonlyArray: () => isReadonlyArray,
|
|
174
197
|
isRef: () => isRef,
|
|
198
|
+
isRepoSource: () => isRepoSource,
|
|
199
|
+
isRepoUrl: () => isRepoUrl,
|
|
175
200
|
isSameTypeOf: () => isSameTypeOf,
|
|
176
201
|
isScalar: () => isScalar,
|
|
202
|
+
isSemanticVersion: () => isSemanticVersion,
|
|
177
203
|
isShape: () => isShape,
|
|
178
204
|
isSpecificConstant: () => isSpecificConstant,
|
|
179
205
|
isString: () => isString,
|
|
@@ -187,6 +213,13 @@ __export(inferred_types_exports, {
|
|
|
187
213
|
isUndefined: () => isUndefined,
|
|
188
214
|
isUri: () => isUri,
|
|
189
215
|
isUrl: () => isUrl,
|
|
216
|
+
isUrlPath: () => isUrlPath,
|
|
217
|
+
isUrlSource: () => isUrlSource,
|
|
218
|
+
isYouTubeFeedUrl: () => isYouTubeFeedUrl,
|
|
219
|
+
isYouTubePlaylistUrl: () => isYouTubePlaylistUrl,
|
|
220
|
+
isYouTubeShareUrl: () => isYouTubeShareUrl,
|
|
221
|
+
isYouTubeUrl: () => isYouTubeUrl,
|
|
222
|
+
isYouTubeVideoUrl: () => isYouTubeVideoUrl,
|
|
190
223
|
join: () => join,
|
|
191
224
|
keysOf: () => keysOf,
|
|
192
225
|
kindError: () => kindError,
|
|
@@ -209,6 +242,7 @@ __export(inferred_types_exports, {
|
|
|
209
242
|
pathJoin: () => pathJoin,
|
|
210
243
|
pluralize: () => pluralize,
|
|
211
244
|
pop: () => pop,
|
|
245
|
+
removeUrlProtocol: () => removeUrlProtocol,
|
|
212
246
|
result: () => result,
|
|
213
247
|
retain: () => retain,
|
|
214
248
|
retainAfter: () => retainAfter,
|
|
@@ -224,6 +258,7 @@ __export(inferred_types_exports, {
|
|
|
224
258
|
stripLeading: () => stripLeading,
|
|
225
259
|
stripTrailing: () => stripTrailing,
|
|
226
260
|
surround: () => surround,
|
|
261
|
+
takeNumericCharacters: () => takeNumericCharacters,
|
|
227
262
|
takeProp: () => takeProp,
|
|
228
263
|
toCamelCase: () => toCamelCase,
|
|
229
264
|
toKebabCase: () => toKebabCase,
|
|
@@ -242,17 +277,19 @@ __export(inferred_types_exports, {
|
|
|
242
277
|
tuple: () => tuple,
|
|
243
278
|
unbox: () => unbox,
|
|
244
279
|
uncapitalize: () => uncapitalize,
|
|
245
|
-
union: () =>
|
|
280
|
+
union: () => union,
|
|
246
281
|
unionize: () => unionize,
|
|
247
282
|
unique: () => unique,
|
|
248
283
|
uniqueKeys: () => uniqueKeys,
|
|
249
284
|
uppercase: () => uppercase,
|
|
285
|
+
urlMeta: () => urlMeta,
|
|
250
286
|
valuesOf: () => valuesOf,
|
|
251
287
|
widen: () => widen,
|
|
252
288
|
withDefaults: () => withDefaults,
|
|
253
289
|
withKeys: () => withKeys,
|
|
254
290
|
withoutKeys: () => withoutKeys,
|
|
255
|
-
withoutValue: () => withoutValue
|
|
291
|
+
withoutValue: () => withoutValue,
|
|
292
|
+
youtube: () => youtube
|
|
256
293
|
});
|
|
257
294
|
module.exports = __toCommonJS(inferred_types_exports);
|
|
258
295
|
|
|
@@ -948,18 +985,6 @@ var HASH_TABLE_CHAR = {
|
|
|
948
985
|
};
|
|
949
986
|
var HASH_TABLE_OTHER = "999";
|
|
950
987
|
|
|
951
|
-
// dist/constants/TCP_IP.js
|
|
952
|
-
var IPv6 = {
|
|
953
|
-
"Loopback": "::1/128",
|
|
954
|
-
"Multicast": "ff00::/8",
|
|
955
|
-
"IPv4MappedAddresses": "::FFFF:0:0/96",
|
|
956
|
-
"Unicast": "fe80::/10",
|
|
957
|
-
"DocumentationAddresses": "2001:db8::/32"
|
|
958
|
-
};
|
|
959
|
-
var IPv4 = {
|
|
960
|
-
"Loopback": "127.0.0.1"
|
|
961
|
-
};
|
|
962
|
-
|
|
963
988
|
// dist/constants/Geo.js
|
|
964
989
|
var US_STATE_LOOKUP_STRICT = [
|
|
965
990
|
{ name: "Alabama", abbrev: "AL" },
|
|
@@ -1041,6 +1066,126 @@ var ZIP_TO_STATE = {
|
|
|
1041
1066
|
"9": ["AK", "AS", "CA", "GU", "HI", "MH", "FM", "MP", "OR", "PW", "WA"]
|
|
1042
1067
|
};
|
|
1043
1068
|
|
|
1069
|
+
// dist/constants/RepoConstants.js
|
|
1070
|
+
var REPO_SOURCES = [
|
|
1071
|
+
"github",
|
|
1072
|
+
"bitbucket",
|
|
1073
|
+
"gitlab",
|
|
1074
|
+
"codecommit",
|
|
1075
|
+
"local"
|
|
1076
|
+
];
|
|
1077
|
+
var REPO_PAGE_TYPES = [
|
|
1078
|
+
"repo",
|
|
1079
|
+
"commits",
|
|
1080
|
+
"author",
|
|
1081
|
+
"org",
|
|
1082
|
+
"profile",
|
|
1083
|
+
"issues",
|
|
1084
|
+
"actions",
|
|
1085
|
+
"followers",
|
|
1086
|
+
"following",
|
|
1087
|
+
"docs",
|
|
1088
|
+
"unknown"
|
|
1089
|
+
];
|
|
1090
|
+
var REPO_SOURCE_LOOKUP = {
|
|
1091
|
+
"github": [`github.com`, "github.io"],
|
|
1092
|
+
"bitbucket": ["bitbucket.com"],
|
|
1093
|
+
"gitlab": ["gitlab.com"],
|
|
1094
|
+
"codecommit": ["https://aws.amazon.com/codecommit/"],
|
|
1095
|
+
"local": []
|
|
1096
|
+
};
|
|
1097
|
+
var GITHUB_INSIGHT_CATEGORY_LOOKUP = {
|
|
1098
|
+
pulse: "pulse",
|
|
1099
|
+
contributors: "graphs/contributors",
|
|
1100
|
+
community: "graphs/community",
|
|
1101
|
+
standards: "community",
|
|
1102
|
+
traffic: "graphs/traffic",
|
|
1103
|
+
commits: "graphs/commit-activity",
|
|
1104
|
+
code_frequency: "graphs/code-frequency",
|
|
1105
|
+
dependencies: "network/dependencies",
|
|
1106
|
+
dependents: "network/dependents",
|
|
1107
|
+
dependabot: "network/updates",
|
|
1108
|
+
network: "network",
|
|
1109
|
+
forks: "forks",
|
|
1110
|
+
people: "people"
|
|
1111
|
+
};
|
|
1112
|
+
|
|
1113
|
+
// dist/constants/NetworkConstants.js
|
|
1114
|
+
var IPv6 = {
|
|
1115
|
+
"Loopback": "::1/128",
|
|
1116
|
+
"Multicast": "ff00::/8",
|
|
1117
|
+
"IPv4MappedAddresses": "::FFFF:0:0/96",
|
|
1118
|
+
"Unicast": "fe80::/10",
|
|
1119
|
+
"DocumentationAddresses": "2001:db8::/32"
|
|
1120
|
+
};
|
|
1121
|
+
var IPv4 = {
|
|
1122
|
+
"Loopback": "127.0.0.1"
|
|
1123
|
+
};
|
|
1124
|
+
var NETWORK_PROTOCOL_LOOKUP = {
|
|
1125
|
+
http: ["http", "https"],
|
|
1126
|
+
ftp: ["ftp", "sftp"],
|
|
1127
|
+
file: ["", "file"],
|
|
1128
|
+
ws: ["ws", "wss"],
|
|
1129
|
+
ssh: ["", "ssh"],
|
|
1130
|
+
"scp": ["", "scp"]
|
|
1131
|
+
};
|
|
1132
|
+
var TOP_LEVEL_DOMAINS = [
|
|
1133
|
+
"com",
|
|
1134
|
+
"org",
|
|
1135
|
+
"net",
|
|
1136
|
+
"int",
|
|
1137
|
+
"edu",
|
|
1138
|
+
"gov",
|
|
1139
|
+
"io",
|
|
1140
|
+
"mil",
|
|
1141
|
+
"arpa",
|
|
1142
|
+
"academy",
|
|
1143
|
+
"agency",
|
|
1144
|
+
"analytics",
|
|
1145
|
+
"app",
|
|
1146
|
+
"art",
|
|
1147
|
+
"bet",
|
|
1148
|
+
"beer",
|
|
1149
|
+
"book",
|
|
1150
|
+
"coffee",
|
|
1151
|
+
"dot",
|
|
1152
|
+
"doctor",
|
|
1153
|
+
"dog",
|
|
1154
|
+
"family",
|
|
1155
|
+
"game",
|
|
1156
|
+
"guide",
|
|
1157
|
+
"guru",
|
|
1158
|
+
"info",
|
|
1159
|
+
"inc",
|
|
1160
|
+
"news",
|
|
1161
|
+
"new",
|
|
1162
|
+
"ninja",
|
|
1163
|
+
"now",
|
|
1164
|
+
"online",
|
|
1165
|
+
"page",
|
|
1166
|
+
"photos",
|
|
1167
|
+
"place",
|
|
1168
|
+
"pub",
|
|
1169
|
+
"room",
|
|
1170
|
+
"show",
|
|
1171
|
+
"technology",
|
|
1172
|
+
"tel",
|
|
1173
|
+
"tech",
|
|
1174
|
+
"team",
|
|
1175
|
+
"talk",
|
|
1176
|
+
"travel",
|
|
1177
|
+
"website",
|
|
1178
|
+
"work",
|
|
1179
|
+
"works",
|
|
1180
|
+
"wow",
|
|
1181
|
+
"uk",
|
|
1182
|
+
"us",
|
|
1183
|
+
"fr",
|
|
1184
|
+
"de",
|
|
1185
|
+
"eu",
|
|
1186
|
+
"london"
|
|
1187
|
+
];
|
|
1188
|
+
|
|
1044
1189
|
// dist/types/dictionary/MapTo.js
|
|
1045
1190
|
var toFinalizedConfig = (config) => {
|
|
1046
1191
|
return { ...config, finalized: true };
|
|
@@ -1351,11 +1496,13 @@ var isDoneFn = (val) => {
|
|
|
1351
1496
|
};
|
|
1352
1497
|
|
|
1353
1498
|
// dist/runtime/type-guards/isUrl.js
|
|
1354
|
-
var
|
|
1355
|
-
|
|
1499
|
+
var isUri = (val, ...protocols) => {
|
|
1500
|
+
const p = protocols.length === 0 ? valuesOf(NETWORK_PROTOCOL_LOOKUP).flat().filter((i) => i) : protocols;
|
|
1501
|
+
return isString(val) && p.some((i) => val.startsWith(`${i}://`));
|
|
1356
1502
|
};
|
|
1357
|
-
var
|
|
1358
|
-
|
|
1503
|
+
var isUrl = (val, ...protocols) => {
|
|
1504
|
+
const p = protocols.length === 0 ? ["http", "https"] : protocols;
|
|
1505
|
+
return isString(val) && p.some((i) => val.startsWith(`${i}://`));
|
|
1359
1506
|
};
|
|
1360
1507
|
|
|
1361
1508
|
// dist/runtime/type-guards/isCssAspectRatio.js
|
|
@@ -1378,177 +1525,24 @@ var isInlineSvg = (v) => {
|
|
|
1378
1525
|
return isString(v) && v.trim().startsWith(`<svg`) && v.trim().endsWith(`</svg>`);
|
|
1379
1526
|
};
|
|
1380
1527
|
|
|
1381
|
-
// dist/runtime/type-guards/
|
|
1382
|
-
var
|
|
1383
|
-
return
|
|
1384
|
-
};
|
|
1385
|
-
|
|
1386
|
-
// dist/runtime/type-guards/higher-order/startsWith.js
|
|
1387
|
-
var startsWith = (startingWith) => (val) => {
|
|
1388
|
-
return isString(val) ? val.startsWith(startingWith) ? true : false : isNumber(val) ? String(val).startsWith(startingWith) ? true : false : false;
|
|
1389
|
-
};
|
|
1390
|
-
|
|
1391
|
-
// dist/runtime/type-guards/higher-order/isLength.js
|
|
1392
|
-
function isLength(value, len) {
|
|
1393
|
-
return isArray(value) ? isEqual(value.length)(len) ? true : false : isString(value) ? isEqual(value.length)(len) ? true : false : isObject(value) ? isEqual(keysOf(value))(len) ? true : false : false;
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
// dist/runtime/type-guards/higher-order/isTypeOf.js
|
|
1397
|
-
var isTypeOf = (type) => (value) => {
|
|
1398
|
-
return typeof value === type;
|
|
1399
|
-
};
|
|
1400
|
-
|
|
1401
|
-
// dist/runtime/type-guards/higher-order/isTuple.js
|
|
1402
|
-
var isTuple = (...tuple3) => {
|
|
1403
|
-
const results = tuple3.map((i) => i(ShapeApiImplementation)).map((i) => isDoneFn(i) ? i.done() : i);
|
|
1404
|
-
return (v) => {
|
|
1405
|
-
return isArray(v) && v.length === results.length && results.every(isShape) && v.every((item, idx) => isSameTypeOf(results[idx])(item));
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
|
-
|
|
1409
|
-
// dist/runtime/boolean-logic/ifUndefined.js
|
|
1410
|
-
function ifUndefined(val, ifUndefined2, ifDefined2) {
|
|
1411
|
-
return isUndefined(val) ? ifUndefined2() : ifDefined2(val);
|
|
1412
|
-
}
|
|
1413
|
-
function ifDefined(val, ifVal, elseVal) {
|
|
1414
|
-
return isDefined(val) ? ifVal : elseVal;
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
// dist/runtime/boolean-logic/ifArrayPartial.js
|
|
1418
|
-
function ifArrayPartial() {
|
|
1419
|
-
return (isAnArray, isNotAnArray) => {
|
|
1420
|
-
return (val) => ifArray(val, isAnArray, isNotAnArray);
|
|
1421
|
-
};
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
// dist/runtime/boolean-logic/handleDoneFn.js
|
|
1425
|
-
var handleDoneFn = (val, call_bare_fn = false) => {
|
|
1426
|
-
return isObject(val) || isFunction(val) ? isDoneFn(val) ? val.done() : isFunction(val) ? call_bare_fn ? val() : val : val : isFunction(val) ? call_bare_fn ? val() : val : val;
|
|
1427
|
-
};
|
|
1428
|
-
|
|
1429
|
-
// dist/runtime/combinators/and.js
|
|
1430
|
-
var and = (...values) => {
|
|
1431
|
-
return values.every((i) => i === true);
|
|
1432
|
-
};
|
|
1433
|
-
|
|
1434
|
-
// dist/runtime/combinators/or.js
|
|
1435
|
-
function or(...conditions) {
|
|
1436
|
-
const values = conditions.some((v) => v === true ? true : false);
|
|
1437
|
-
return values;
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
// dist/runtime/dictionary/keysOf.js
|
|
1441
|
-
function keysOf(container) {
|
|
1442
|
-
const keys = Array.isArray(container) ? Object.keys(container).map((i) => Number(i)) : isObject(container) ? isRef(container) ? ["value"] : Object.keys(container) : [];
|
|
1443
|
-
return keys;
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
// dist/runtime/dictionary/entries.js
|
|
1447
|
-
function entries(obj) {
|
|
1448
|
-
const iterable = {
|
|
1449
|
-
*[Symbol.iterator]() {
|
|
1450
|
-
for (const k of keysOf(obj)) {
|
|
1451
|
-
yield [k, obj[k]];
|
|
1452
|
-
}
|
|
1453
|
-
}
|
|
1454
|
-
};
|
|
1455
|
-
return iterable;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
// dist/runtime/dictionary/get.js
|
|
1459
|
-
function updatedDotPath(value, dotpath, segment) {
|
|
1460
|
-
return isRef(value) ? dotpath.replace(segment, `Ref(${segment})`) : dotpath;
|
|
1461
|
-
}
|
|
1462
|
-
function getValue(value, dotPath, defaultValue, handleInvalid, fullDotPath) {
|
|
1463
|
-
const pathSegments = isTruthy(dotPath) ? dotPath.split(".") : [];
|
|
1464
|
-
const idx = pathSegments[0];
|
|
1465
|
-
const hasMoreSegments = pathSegments.length > 1;
|
|
1466
|
-
const valueIsIndexable = isContainer(value) && hasIndexOf(value, idx);
|
|
1467
|
-
const hasHandler = !isSpecificConstant("not-defined")(handleInvalid);
|
|
1468
|
-
const invalidDotPath = createErrorCondition("invalid-dot-path", `The segment "${idx}" in the dotpath "${fullDotPath}" was not indexable and no default value existed on: ${JSON.stringify(value)}`);
|
|
1469
|
-
const current = hasMoreSegments ? isContainer(value) && idx in value ? getValue(indexOf(value, idx), pathSegments.join(".").replace(`${idx}.`, ""), defaultValue, handleInvalid, updatedDotPath(value, fullDotPath, idx)) : hasHandler ? handleInvalid : invalidDotPath : valueIsIndexable ? hasDefaultValue(hasDefaultValue) ? indexOf(value, idx) || defaultValue : indexOf(value, idx) : hasHandler ? handleInvalid : invalidDotPath;
|
|
1470
|
-
return current;
|
|
1471
|
-
}
|
|
1472
|
-
function get(value, dotPath, options = {
|
|
1473
|
-
defaultValue: NO_DEFAULT_VALUE,
|
|
1474
|
-
handleInvalidDotpath: NOT_DEFINED
|
|
1475
|
-
}) {
|
|
1476
|
-
const outcome = dotPath === null || dotPath === "" ? value : getValue(value, dotPath, (options == null ? void 0 : options.defaultValue) || NO_DEFAULT_VALUE, (options == null ? void 0 : options.handleInvalidDotpath) || NOT_DEFINED, String(dotPath));
|
|
1477
|
-
return outcome;
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
// dist/runtime/dictionary/omit.js
|
|
1481
|
-
function omit(obj, ...removeKeys) {
|
|
1482
|
-
const keys = Object.keys(obj);
|
|
1483
|
-
return keys.reduce((acc, key) => removeKeys.includes(key) ? acc : {
|
|
1484
|
-
...acc,
|
|
1485
|
-
[key]: obj[key]
|
|
1486
|
-
}, {});
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
|
-
// dist/runtime/dictionary/retain.js
|
|
1490
|
-
var retain = (dict2, ...keys) => {
|
|
1491
|
-
let output = {};
|
|
1492
|
-
for (const k of keys) {
|
|
1493
|
-
output = {
|
|
1494
|
-
...output,
|
|
1495
|
-
[k]: dict2[k]
|
|
1496
|
-
};
|
|
1497
|
-
}
|
|
1498
|
-
return output;
|
|
1528
|
+
// dist/runtime/type-guards/youtube.js
|
|
1529
|
+
var isYouTubeUrl = (val) => {
|
|
1530
|
+
return isString(val) && (val.startsWith("https://www.youtube.com") || val.startsWith("https://youtube.com") || val.startsWith("https://youtu.be"));
|
|
1499
1531
|
};
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
var sharedKeys = (a, b) => {
|
|
1503
|
-
const ka = Object.keys(a);
|
|
1504
|
-
const kb = Object.keys(b);
|
|
1505
|
-
return ka.filter((k) => kb.includes(k));
|
|
1532
|
+
var isYouTubeShareUrl = (val) => {
|
|
1533
|
+
return isString(val) && val.startsWith(`https://youtu.be`);
|
|
1506
1534
|
};
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
var takeProp = (val, prop, otherwise) => {
|
|
1510
|
-
return (isObject(val) || isArray(val)) && prop in val ? val[prop] : otherwise;
|
|
1535
|
+
var isYouTubeVideoUrl = (val) => {
|
|
1536
|
+
return isString(val) && (val.startsWith("https://www.youtube.com") || val.startsWith("https://youtube.com") || val.startsWith("https://youtu.be"));
|
|
1511
1537
|
};
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
var withKeys = (dict2, ...keys) => retain(dict2, ...keys);
|
|
1515
|
-
|
|
1516
|
-
// dist/runtime/dictionary/withoutKeys.js
|
|
1517
|
-
var withoutKeys = (dict2, ...exclude) => omit(dict2, ...exclude);
|
|
1518
|
-
|
|
1519
|
-
// dist/runtime/dictionary/withoutValue.js
|
|
1520
|
-
function withoutValue(val) {
|
|
1521
|
-
return (obj) => {
|
|
1522
|
-
return Object.keys(obj).reduce((acc, key) => val === obj[key] ? acc : { ...acc, [key]: obj[key] }, {});
|
|
1523
|
-
};
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
// dist/runtime/dictionary/withDefaults.js
|
|
1527
|
-
var withDefaults = (with_defaults) => (obj) => {
|
|
1528
|
-
const merged = {
|
|
1529
|
-
...with_defaults,
|
|
1530
|
-
...obj
|
|
1531
|
-
};
|
|
1532
|
-
return merged;
|
|
1538
|
+
var isYouTubePlaylistUrl = (val) => {
|
|
1539
|
+
return isString(val) && (val === `https://www.youtube.com/feed/playlists` || val === `https://youtube.com/feed/playlists` || val === `https://www.youtube.com/channel/playlists` || val === `https://youtube.com/channel/playlists` || val.startsWith(`https://www.youtube.com/@`) && val.endsWith(`/playlists`) || val.startsWith(`https://youtube.com/@`) && val.endsWith(`/playlists`));
|
|
1533
1540
|
};
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
var valuesOf = (obj) => {
|
|
1537
|
-
const values = [];
|
|
1538
|
-
for (const k of Object.keys(obj)) {
|
|
1539
|
-
values.push(obj[k]);
|
|
1540
|
-
}
|
|
1541
|
-
return values;
|
|
1541
|
+
var feed_map = (type) => {
|
|
1542
|
+
return isUndefined(type) ? `/feed` : type === "liked" ? `/playlist?list=LL` : ["history", "playlists", "trending", "subscriptions"].includes(type) ? `/feed/${type}` : `/feed/`;
|
|
1542
1543
|
};
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
var createErrorCondition = (kind, msg = "", utility = "") => {
|
|
1546
|
-
return {
|
|
1547
|
-
__kind: "ErrorCondition",
|
|
1548
|
-
kind,
|
|
1549
|
-
msg,
|
|
1550
|
-
utility
|
|
1551
|
-
};
|
|
1544
|
+
var isYouTubeFeedUrl = (val, kind) => {
|
|
1545
|
+
return isString(val) && (val.startsWith(`https://www.youtube.com/${feed_map(kind)}`) || val.startsWith(`https://youtube.com/feed${feed_map(kind)}`));
|
|
1552
1546
|
};
|
|
1553
1547
|
|
|
1554
1548
|
// dist/runtime/literals/box.js
|
|
@@ -1820,63 +1814,440 @@ var truncate = (content, maxLength, ellipsis = false) => {
|
|
|
1820
1814
|
return overLimit ? ellipsis ? `${content.slice(0, maxLength)}${typeof ellipsis === "string" ? ellipsis : "..."}` : content.slice(0, maxLength) : content;
|
|
1821
1815
|
};
|
|
1822
1816
|
|
|
1823
|
-
// dist/runtime/
|
|
1824
|
-
var
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
err.kind = toKebabCase(kind);
|
|
1828
|
-
err.__kind = "KindError";
|
|
1829
|
-
err.context = context;
|
|
1830
|
-
return err;
|
|
1817
|
+
// dist/runtime/literals/takeNumericCharacters.js
|
|
1818
|
+
var takeNumericCharacters = (content) => {
|
|
1819
|
+
let nonNumericIdx = asChars(content).findIndex((i) => !NUMERIC_CHAR.includes(i));
|
|
1820
|
+
return content.slice(0, nonNumericIdx);
|
|
1831
1821
|
};
|
|
1832
1822
|
|
|
1833
|
-
// dist/runtime/
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
const fn2 = (...args) => func(...args);
|
|
1839
|
-
const props = Object.keys(fn2).reduce((acc, key) => ({ ...acc, [key]: fn2[key] }), {});
|
|
1840
|
-
return {
|
|
1841
|
-
fn: fn2,
|
|
1842
|
-
props
|
|
1843
|
-
};
|
|
1844
|
-
};
|
|
1823
|
+
// dist/runtime/dictionary/keysOf.js
|
|
1824
|
+
function keysOf(container) {
|
|
1825
|
+
const keys = Array.isArray(container) ? Object.keys(container).map((i) => Number(i)) : isObject(container) ? isRef(container) ? ["value"] : Object.keys(container) : [];
|
|
1826
|
+
return keys;
|
|
1827
|
+
}
|
|
1845
1828
|
|
|
1846
|
-
// dist/runtime/
|
|
1847
|
-
|
|
1848
|
-
const
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1829
|
+
// dist/runtime/dictionary/entries.js
|
|
1830
|
+
function entries(obj) {
|
|
1831
|
+
const iterable = {
|
|
1832
|
+
*[Symbol.iterator]() {
|
|
1833
|
+
for (const k of keysOf(obj)) {
|
|
1834
|
+
yield [k, obj[k]];
|
|
1835
|
+
}
|
|
1852
1836
|
}
|
|
1853
|
-
return localFn;
|
|
1854
1837
|
};
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
// dist/runtime/initializers/addPropsToFn.js
|
|
1858
|
-
var addFnToProps = (props, _clone_fn) => (fn2) => {
|
|
1859
|
-
const localFn = (...args) => fn2(args);
|
|
1860
|
-
for (const k in props) {
|
|
1861
|
-
localFn[k] = props[k];
|
|
1862
|
-
}
|
|
1863
|
-
return localFn;
|
|
1864
|
-
};
|
|
1865
|
-
|
|
1866
|
-
// dist/runtime/initializers/createFnWithProps.js
|
|
1867
|
-
var createFnWithProps = (fn2, props, narrowing = false) => {
|
|
1868
|
-
const fnWithProps = fn2;
|
|
1869
|
-
for (const prop of keysOf(props)) {
|
|
1870
|
-
fnWithProps[prop] = props[prop];
|
|
1871
|
-
}
|
|
1872
|
-
return isTrue(narrowing) ? fnWithProps : fnWithProps;
|
|
1873
|
-
};
|
|
1838
|
+
return iterable;
|
|
1839
|
+
}
|
|
1874
1840
|
|
|
1875
|
-
// dist/runtime/
|
|
1876
|
-
function
|
|
1877
|
-
return (
|
|
1878
|
-
|
|
1879
|
-
|
|
1841
|
+
// dist/runtime/dictionary/get.js
|
|
1842
|
+
function updatedDotPath(value, dotpath, segment) {
|
|
1843
|
+
return isRef(value) ? dotpath.replace(segment, `Ref(${segment})`) : dotpath;
|
|
1844
|
+
}
|
|
1845
|
+
function getValue(value, dotPath, defaultValue, handleInvalid, fullDotPath) {
|
|
1846
|
+
const pathSegments = isTruthy(dotPath) ? dotPath.split(".") : [];
|
|
1847
|
+
const idx = pathSegments[0];
|
|
1848
|
+
const hasMoreSegments = pathSegments.length > 1;
|
|
1849
|
+
const valueIsIndexable = isContainer(value) && hasIndexOf(value, idx);
|
|
1850
|
+
const hasHandler = !isSpecificConstant("not-defined")(handleInvalid);
|
|
1851
|
+
const invalidDotPath = createErrorCondition("invalid-dot-path", `The segment "${idx}" in the dotpath "${fullDotPath}" was not indexable and no default value existed on: ${JSON.stringify(value)}`);
|
|
1852
|
+
const current = hasMoreSegments ? isContainer(value) && idx in value ? getValue(indexOf(value, idx), pathSegments.join(".").replace(`${idx}.`, ""), defaultValue, handleInvalid, updatedDotPath(value, fullDotPath, idx)) : hasHandler ? handleInvalid : invalidDotPath : valueIsIndexable ? hasDefaultValue(hasDefaultValue) ? indexOf(value, idx) || defaultValue : indexOf(value, idx) : hasHandler ? handleInvalid : invalidDotPath;
|
|
1853
|
+
return current;
|
|
1854
|
+
}
|
|
1855
|
+
function get(value, dotPath, options = {
|
|
1856
|
+
defaultValue: NO_DEFAULT_VALUE,
|
|
1857
|
+
handleInvalidDotpath: NOT_DEFINED
|
|
1858
|
+
}) {
|
|
1859
|
+
const outcome = dotPath === null || dotPath === "" ? value : getValue(value, dotPath, (options == null ? void 0 : options.defaultValue) || NO_DEFAULT_VALUE, (options == null ? void 0 : options.handleInvalidDotpath) || NOT_DEFINED, String(dotPath));
|
|
1860
|
+
return outcome;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
// dist/runtime/dictionary/omit.js
|
|
1864
|
+
function omit(obj, ...removeKeys) {
|
|
1865
|
+
const keys = Object.keys(obj);
|
|
1866
|
+
return keys.reduce((acc, key) => removeKeys.includes(key) ? acc : {
|
|
1867
|
+
...acc,
|
|
1868
|
+
[key]: obj[key]
|
|
1869
|
+
}, {});
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
// dist/runtime/dictionary/retain.js
|
|
1873
|
+
var retain = (dict2, ...keys) => {
|
|
1874
|
+
let output = {};
|
|
1875
|
+
for (const k of keys) {
|
|
1876
|
+
output = {
|
|
1877
|
+
...output,
|
|
1878
|
+
[k]: dict2[k]
|
|
1879
|
+
};
|
|
1880
|
+
}
|
|
1881
|
+
return output;
|
|
1882
|
+
};
|
|
1883
|
+
|
|
1884
|
+
// dist/runtime/dictionary/sharedKeys.js
|
|
1885
|
+
var sharedKeys = (a, b) => {
|
|
1886
|
+
const ka = Object.keys(a);
|
|
1887
|
+
const kb = Object.keys(b);
|
|
1888
|
+
return ka.filter((k) => kb.includes(k));
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
// dist/runtime/dictionary/takeProp.js
|
|
1892
|
+
var takeProp = (val, prop, otherwise) => {
|
|
1893
|
+
return (isObject(val) || isArray(val)) && prop in val ? val[prop] : otherwise;
|
|
1894
|
+
};
|
|
1895
|
+
|
|
1896
|
+
// dist/runtime/dictionary/withKeys.js
|
|
1897
|
+
var withKeys = (dict2, ...keys) => retain(dict2, ...keys);
|
|
1898
|
+
|
|
1899
|
+
// dist/runtime/dictionary/withoutKeys.js
|
|
1900
|
+
var withoutKeys = (dict2, ...exclude) => omit(dict2, ...exclude);
|
|
1901
|
+
|
|
1902
|
+
// dist/runtime/dictionary/withoutValue.js
|
|
1903
|
+
function withoutValue(val) {
|
|
1904
|
+
return (obj) => {
|
|
1905
|
+
return Object.keys(obj).reduce((acc, key) => val === obj[key] ? acc : { ...acc, [key]: obj[key] }, {});
|
|
1906
|
+
};
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
// dist/runtime/dictionary/withDefaults.js
|
|
1910
|
+
var withDefaults = (with_defaults) => (obj) => {
|
|
1911
|
+
const merged = {
|
|
1912
|
+
...with_defaults,
|
|
1913
|
+
...obj
|
|
1914
|
+
};
|
|
1915
|
+
return merged;
|
|
1916
|
+
};
|
|
1917
|
+
|
|
1918
|
+
// dist/runtime/dictionary/valuesOf.js
|
|
1919
|
+
var valuesOf = (obj) => {
|
|
1920
|
+
const values = [];
|
|
1921
|
+
for (const k of Object.keys(obj)) {
|
|
1922
|
+
values.push(obj[k]);
|
|
1923
|
+
}
|
|
1924
|
+
return values;
|
|
1925
|
+
};
|
|
1926
|
+
|
|
1927
|
+
// dist/runtime/type-guards/repos.js
|
|
1928
|
+
var isRepoSource = (v) => {
|
|
1929
|
+
return isString(v) && REPO_SOURCES.includes(v);
|
|
1930
|
+
};
|
|
1931
|
+
var isSemanticVersion = (v, allowPrefix = false) => {
|
|
1932
|
+
return isString(v) && v.split(".").length === 3 && !Number.isNaN(Number(v.split(".")[1])) && !Number.isNaN(Number(v.split(".")[2])) && (!Number.isNaN(Number(v.split(".")[0])) || allowPrefix && !Number.isNaN(Number(stripLeading(v.split(".")[0], "v").trim())));
|
|
1933
|
+
};
|
|
1934
|
+
var isRepoUrl = (val) => {
|
|
1935
|
+
const baseUrls = valuesOf(REPO_SOURCE_LOOKUP).flat();
|
|
1936
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1937
|
+
};
|
|
1938
|
+
var isGithubUrl = (val) => {
|
|
1939
|
+
const baseUrls = REPO_SOURCE_LOOKUP["github"];
|
|
1940
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1941
|
+
};
|
|
1942
|
+
var isGithubRepoUrl = (val) => {
|
|
1943
|
+
const baseUrls = [""];
|
|
1944
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1945
|
+
};
|
|
1946
|
+
var isBitbucketUrl = (val) => {
|
|
1947
|
+
const baseUrls = REPO_SOURCE_LOOKUP["bitbucket"];
|
|
1948
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1949
|
+
};
|
|
1950
|
+
var isCodeCommitUrl = (val) => {
|
|
1951
|
+
const baseUrls = REPO_SOURCE_LOOKUP["codecommit"];
|
|
1952
|
+
return isString(val) && baseUrls.every((u) => val === u || val.startsWith(`${u}/`));
|
|
1953
|
+
};
|
|
1954
|
+
|
|
1955
|
+
// dist/runtime/type-conversion/asChars.js
|
|
1956
|
+
var asChars = (str) => {
|
|
1957
|
+
return str.split("");
|
|
1958
|
+
};
|
|
1959
|
+
|
|
1960
|
+
// dist/runtime/type-guards/isAlpha.js
|
|
1961
|
+
var isAlpha = (value) => {
|
|
1962
|
+
return isString(value) && split(value).every((v) => ALPHA_CHARS.includes(v));
|
|
1963
|
+
};
|
|
1964
|
+
|
|
1965
|
+
// dist/runtime/type-conversion/mergeObjects.js
|
|
1966
|
+
function mergeObjects(defVal, override) {
|
|
1967
|
+
const intersectingKeys = sharedKeys(defVal, override);
|
|
1968
|
+
const defUnique = withoutKeys(defVal, ...intersectingKeys);
|
|
1969
|
+
const overrideUnique = withoutKeys(defVal, ...intersectingKeys);
|
|
1970
|
+
const merged = {
|
|
1971
|
+
...intersectingKeys.reduce((acc, key) => typeof override[key] === "undefined" ? { ...acc, [key]: defVal[key] } : { ...acc, [key]: override[key] }, {}),
|
|
1972
|
+
...defUnique,
|
|
1973
|
+
...overrideUnique
|
|
1974
|
+
};
|
|
1975
|
+
return merged;
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
// dist/runtime/type-conversion/optional.js
|
|
1979
|
+
function optional(...values) {
|
|
1980
|
+
return values.length === 1 ? values[0] : values;
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
// dist/runtime/type-conversion/mergeScalars.js
|
|
1984
|
+
function mergeScalars(a, b) {
|
|
1985
|
+
return isUndefined(b) ? a : b;
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
// dist/runtime/type-conversion/mergeTuples.js
|
|
1989
|
+
function mergeTuples(a, b) {
|
|
1990
|
+
return b.length > a.length ? b.map((v, idx) => v !== void 0 ? v : a[idx]) : [...b, ...a.slice(b.length)].map((v, idx) => v !== void 0 ? v : a[idx]);
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
// dist/runtime/type-conversion/unionize.js
|
|
1994
|
+
function unionize(value, inUnionWith) {
|
|
1995
|
+
return value;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
// dist/runtime/type-conversion/intersect.js
|
|
1999
|
+
function intersect(value, intersectedWith) {
|
|
2000
|
+
return value;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
// dist/runtime/type-conversion/never.js
|
|
2004
|
+
function never(val) {
|
|
2005
|
+
return val;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
// dist/runtime/type-conversion/union.js
|
|
2009
|
+
var union = (...options) => (value) => value;
|
|
2010
|
+
|
|
2011
|
+
// dist/runtime/type-conversion/toNumber.js
|
|
2012
|
+
var convertScalar = (val) => {
|
|
2013
|
+
switch (typeof val) {
|
|
2014
|
+
case "number":
|
|
2015
|
+
return val;
|
|
2016
|
+
case "string":
|
|
2017
|
+
return Number(val);
|
|
2018
|
+
case "boolean":
|
|
2019
|
+
return val ? 1 : 0;
|
|
2020
|
+
default:
|
|
2021
|
+
throw Error(`${typeof val} is an invalid scalar type to convert to a number!`);
|
|
2022
|
+
}
|
|
2023
|
+
};
|
|
2024
|
+
var convertList = (val) => val.map((i) => convertScalar(i));
|
|
2025
|
+
function toNumber(value) {
|
|
2026
|
+
return Array.isArray(value) ? convertList(value) : convertScalar(value);
|
|
2027
|
+
}
|
|
2028
|
+
|
|
2029
|
+
// dist/runtime/type-conversion/asRecord.js
|
|
2030
|
+
var asRecord = (obj) => {
|
|
2031
|
+
return obj;
|
|
2032
|
+
};
|
|
2033
|
+
|
|
2034
|
+
// dist/runtime/type-conversion/asString.js
|
|
2035
|
+
var asString = (value) => {
|
|
2036
|
+
return isString(value) ? value : isNumber(value) ? `${value}` : isBoolean(value) ? `${value}` : String(value);
|
|
2037
|
+
};
|
|
2038
|
+
|
|
2039
|
+
// dist/runtime/type-conversion/ip6GroupExpansion.js
|
|
2040
|
+
var ip6GroupExpansion = (ip) => {
|
|
2041
|
+
return stripTrailing(ip.replaceAll("::", ":0000:"), ":");
|
|
2042
|
+
};
|
|
2043
|
+
|
|
2044
|
+
// dist/runtime/type-guards/isHexadecimal.js
|
|
2045
|
+
var isHexadecimal = (val) => {
|
|
2046
|
+
return isString(val) && asChars(val).every((i) => isNumericString(i) || ["a", "b", "c", "d", "e", "f"].includes(i.toLowerCase()));
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
// dist/runtime/meta/youtube-meta.js
|
|
2050
|
+
var youtube = (url) => {
|
|
2051
|
+
return isYouTubeUrl(url) ? {
|
|
2052
|
+
url,
|
|
2053
|
+
isYouTubeUrl: true,
|
|
2054
|
+
isShareUrl: isYouTubeShareUrl(url)
|
|
2055
|
+
} : {
|
|
2056
|
+
url,
|
|
2057
|
+
isYouTubeUrl: false
|
|
2058
|
+
};
|
|
2059
|
+
};
|
|
2060
|
+
|
|
2061
|
+
// dist/runtime/meta/urlMeta.js
|
|
2062
|
+
var PROTOCOLS = Object.values(NETWORK_PROTOCOL_LOOKUP).flat().filter((i) => i !== "");
|
|
2063
|
+
var getUrlProtocol = (url) => {
|
|
2064
|
+
const proto = PROTOCOLS.find((p) => url.startsWith(`${p}://`));
|
|
2065
|
+
return proto;
|
|
2066
|
+
};
|
|
2067
|
+
var removeUrlProtocol = (url) => {
|
|
2068
|
+
return stripBefore(url, "://");
|
|
2069
|
+
};
|
|
2070
|
+
var ensurePath = (val) => val === "" ? "" : stripTrailing(ensureLeading(val, "/"), "/");
|
|
2071
|
+
var getUrlPath = (url) => {
|
|
2072
|
+
return isUrl(url) ? ensurePath(stripAfter(stripBefore(removeUrlProtocol(url), "/"), "?")) : Never;
|
|
2073
|
+
};
|
|
2074
|
+
var getUrlQueryParams = (url) => {
|
|
2075
|
+
const qp = stripBefore(url, "?");
|
|
2076
|
+
return qp === "" ? qp : `?${qp}`;
|
|
2077
|
+
};
|
|
2078
|
+
var getUrlPort = (url) => {
|
|
2079
|
+
const candidate = takeNumericCharacters(stripBefore(removeUrlProtocol(url), ":"));
|
|
2080
|
+
return candidate === "" ? "default" : Number(candidate);
|
|
2081
|
+
};
|
|
2082
|
+
var getUrlSource = (url) => {
|
|
2083
|
+
const candidate = stripAfter(stripAfter(stripAfter(removeUrlProtocol(url), "/"), "?"), ":");
|
|
2084
|
+
return isIpAddress(candidate) || isDomainName(candidate) ? candidate : Never;
|
|
2085
|
+
};
|
|
2086
|
+
var urlMeta = (url) => {
|
|
2087
|
+
return {
|
|
2088
|
+
url,
|
|
2089
|
+
isUrl: isUrl(url),
|
|
2090
|
+
protocol: getUrlProtocol(url),
|
|
2091
|
+
path: getUrlPath(url),
|
|
2092
|
+
queryParameters: getUrlQueryParams(url),
|
|
2093
|
+
port: getUrlPort(url),
|
|
2094
|
+
source: getUrlSource(url),
|
|
2095
|
+
isIpAddress: isIpAddress(getUrlSource(url)),
|
|
2096
|
+
isIp4Address: isIp4Address(getUrlSource(url)),
|
|
2097
|
+
isIp6Address: isIp6Address(getUrlSource(url))
|
|
2098
|
+
};
|
|
2099
|
+
};
|
|
2100
|
+
|
|
2101
|
+
// dist/runtime/type-guards/network-tg.js
|
|
2102
|
+
var isIp4Address = (val) => {
|
|
2103
|
+
return isString(val) && val.split(".").length === 4 && val.split(".").every((i) => isNumericString(i)) && val.split(".").every((i) => Number(i) >= 0 && Number(i) <= 255);
|
|
2104
|
+
};
|
|
2105
|
+
var isIp6Address = (val) => {
|
|
2106
|
+
const expanded = isString(val) ? ip6GroupExpansion(val) : "";
|
|
2107
|
+
return isString(val) && isString(expanded) && expanded.split(":").every((i) => asChars(i).length >= 1 && asChars(i).length <= 4) && expanded.split(":").every((i) => isHexadecimal(i));
|
|
2108
|
+
};
|
|
2109
|
+
var isIpAddress = (val) => {
|
|
2110
|
+
return isIp4Address(val) || isIp6Address(val);
|
|
2111
|
+
};
|
|
2112
|
+
var hasUrlPort = (val) => {
|
|
2113
|
+
return isString(val) && asChars(removeUrlProtocol(val)).some((i) => i === ":");
|
|
2114
|
+
};
|
|
2115
|
+
var isUrlPath = (val) => {
|
|
2116
|
+
return isString(val) && (val === "" || val.startsWith("/")) && asChars(val).every((c) => isAlpha(c) || isNumericString(c) || c === "_" || c === "@" || c === "." || c === "-");
|
|
2117
|
+
};
|
|
2118
|
+
var isDomainName = (val) => {
|
|
2119
|
+
return isString(val) && val.split(".").filter((i) => i).length > 1 && isString(val.split(".").filter((i) => i).pop()) && asChars(val.split(".").filter((i) => i).pop()).length > 1 && val.split(".").filter((i) => i).every((i) => isAlpha(i) || isNumericString(i) || i === "-" || i === "_");
|
|
2120
|
+
};
|
|
2121
|
+
var isUrlSource = (val) => {
|
|
2122
|
+
return isDomainName(val) || isIpAddress(val);
|
|
2123
|
+
};
|
|
2124
|
+
|
|
2125
|
+
// dist/runtime/type-guards/higher-order/endsWith.js
|
|
2126
|
+
var endsWith = (endingIn2) => (val) => {
|
|
2127
|
+
return ifString(val, (v) => v.endsWith(endingIn2) ? true : false, (v) => ifNumber(v, (n) => String(n).endsWith(endingIn2) ? true : false, () => false));
|
|
2128
|
+
};
|
|
2129
|
+
|
|
2130
|
+
// dist/runtime/type-guards/higher-order/startsWith.js
|
|
2131
|
+
var startsWith = (startingWith) => (val) => {
|
|
2132
|
+
return isString(val) ? val.startsWith(startingWith) ? true : false : isNumber(val) ? String(val).startsWith(startingWith) ? true : false : false;
|
|
2133
|
+
};
|
|
2134
|
+
|
|
2135
|
+
// dist/runtime/type-guards/higher-order/isLength.js
|
|
2136
|
+
function isLength(value, len) {
|
|
2137
|
+
return isArray(value) ? isEqual(value.length)(len) ? true : false : isString(value) ? isEqual(value.length)(len) ? true : false : isObject(value) ? isEqual(keysOf(value))(len) ? true : false : false;
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
// dist/runtime/type-guards/higher-order/isTypeOf.js
|
|
2141
|
+
var isTypeOf = (type) => (value) => {
|
|
2142
|
+
return typeof value === type;
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2145
|
+
// dist/runtime/type-guards/higher-order/isTuple.js
|
|
2146
|
+
var isTuple = (...tuple3) => {
|
|
2147
|
+
const results = tuple3.map((i) => i(ShapeApiImplementation)).map((i) => isDoneFn(i) ? i.done() : i);
|
|
2148
|
+
return (v) => {
|
|
2149
|
+
return isArray(v) && v.length === results.length && results.every(isShape) && v.every((item, idx) => isSameTypeOf(results[idx])(item));
|
|
2150
|
+
};
|
|
2151
|
+
};
|
|
2152
|
+
|
|
2153
|
+
// dist/runtime/boolean-logic/ifUndefined.js
|
|
2154
|
+
function ifUndefined(val, ifUndefined2, ifDefined2) {
|
|
2155
|
+
return isUndefined(val) ? ifUndefined2() : ifDefined2(val);
|
|
2156
|
+
}
|
|
2157
|
+
function ifDefined(val, ifVal, elseVal) {
|
|
2158
|
+
return isDefined(val) ? ifVal : elseVal;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
// dist/runtime/boolean-logic/ifArrayPartial.js
|
|
2162
|
+
function ifArrayPartial() {
|
|
2163
|
+
return (isAnArray, isNotAnArray) => {
|
|
2164
|
+
return (val) => ifArray(val, isAnArray, isNotAnArray);
|
|
2165
|
+
};
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
// dist/runtime/boolean-logic/handleDoneFn.js
|
|
2169
|
+
var handleDoneFn = (val, call_bare_fn = false) => {
|
|
2170
|
+
return isObject(val) || isFunction(val) ? isDoneFn(val) ? val.done() : isFunction(val) ? call_bare_fn ? val() : val : val : isFunction(val) ? call_bare_fn ? val() : val : val;
|
|
2171
|
+
};
|
|
2172
|
+
|
|
2173
|
+
// dist/runtime/combinators/and.js
|
|
2174
|
+
var and = (...values) => {
|
|
2175
|
+
return values.every((i) => i === true);
|
|
2176
|
+
};
|
|
2177
|
+
|
|
2178
|
+
// dist/runtime/combinators/or.js
|
|
2179
|
+
function or(...conditions) {
|
|
2180
|
+
const values = conditions.some((v) => v === true ? true : false);
|
|
2181
|
+
return values;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
// dist/runtime/errors/createErrorCondition.js
|
|
2185
|
+
var createErrorCondition = (kind, msg = "", utility = "") => {
|
|
2186
|
+
return {
|
|
2187
|
+
__kind: "ErrorCondition",
|
|
2188
|
+
kind,
|
|
2189
|
+
msg,
|
|
2190
|
+
utility
|
|
2191
|
+
};
|
|
2192
|
+
};
|
|
2193
|
+
|
|
2194
|
+
// dist/runtime/errors/kindedError.js
|
|
2195
|
+
var kindError = (kind, _defineContext) => (msg, context) => {
|
|
2196
|
+
const err = new Error(msg);
|
|
2197
|
+
err.name = toPascalCase(kind);
|
|
2198
|
+
err.kind = toKebabCase(kind);
|
|
2199
|
+
err.__kind = "KindError";
|
|
2200
|
+
err.context = context;
|
|
2201
|
+
return err;
|
|
2202
|
+
};
|
|
2203
|
+
|
|
2204
|
+
// dist/runtime/functional/result.js
|
|
2205
|
+
var result = "NOT READY";
|
|
2206
|
+
|
|
2207
|
+
// dist/runtime/functions/fnMeta.js
|
|
2208
|
+
var fnMeta = (func) => {
|
|
2209
|
+
const fn2 = (...args) => func(...args);
|
|
2210
|
+
const props = Object.keys(fn2).reduce((acc, key) => ({ ...acc, [key]: fn2[key] }), {});
|
|
2211
|
+
return {
|
|
2212
|
+
fn: fn2,
|
|
2213
|
+
props
|
|
2214
|
+
};
|
|
2215
|
+
};
|
|
2216
|
+
|
|
2217
|
+
// dist/runtime/initializers/addFnToProps.js
|
|
2218
|
+
var addPropsToFn = (fn2, clone_fn) => {
|
|
2219
|
+
const localFn = clone_fn ? (...args) => fn2(args) : fn2;
|
|
2220
|
+
return (obj) => {
|
|
2221
|
+
for (const k in obj) {
|
|
2222
|
+
localFn[k] = obj[k];
|
|
2223
|
+
}
|
|
2224
|
+
return localFn;
|
|
2225
|
+
};
|
|
2226
|
+
};
|
|
2227
|
+
|
|
2228
|
+
// dist/runtime/initializers/addPropsToFn.js
|
|
2229
|
+
var addFnToProps = (props, _clone_fn) => (fn2) => {
|
|
2230
|
+
const localFn = (...args) => fn2(args);
|
|
2231
|
+
for (const k in props) {
|
|
2232
|
+
localFn[k] = props[k];
|
|
2233
|
+
}
|
|
2234
|
+
return localFn;
|
|
2235
|
+
};
|
|
2236
|
+
|
|
2237
|
+
// dist/runtime/initializers/createFnWithProps.js
|
|
2238
|
+
var createFnWithProps = (fn2, props, narrowing = false) => {
|
|
2239
|
+
const fnWithProps = fn2;
|
|
2240
|
+
for (const prop of keysOf(props)) {
|
|
2241
|
+
fnWithProps[prop] = props[prop];
|
|
2242
|
+
}
|
|
2243
|
+
return isTrue(narrowing) ? fnWithProps : fnWithProps;
|
|
2244
|
+
};
|
|
2245
|
+
|
|
2246
|
+
// dist/runtime/initializers/defineObj.js
|
|
2247
|
+
function defineObj(literal2 = {}) {
|
|
2248
|
+
return (wide2 = {}) => {
|
|
2249
|
+
const obj = literal2 ? { ...literal2, ...wide2 } : wide2;
|
|
2250
|
+
return obj;
|
|
1880
2251
|
};
|
|
1881
2252
|
}
|
|
1882
2253
|
|
|
@@ -2098,7 +2469,7 @@ var weakMap = (_key, _value) => {
|
|
|
2098
2469
|
};
|
|
2099
2470
|
|
|
2100
2471
|
// dist/runtime/runtime-types/shape-helpers/union.js
|
|
2101
|
-
var
|
|
2472
|
+
var union2 = (...elements) => {
|
|
2102
2473
|
const result2 = elements.map((_el) => {
|
|
2103
2474
|
});
|
|
2104
2475
|
return result2;
|
|
@@ -2115,7 +2486,7 @@ var ShapeApiImplementation = {
|
|
|
2115
2486
|
unknown,
|
|
2116
2487
|
undefined: undefinedType,
|
|
2117
2488
|
null: nullType,
|
|
2118
|
-
union,
|
|
2489
|
+
union: union2,
|
|
2119
2490
|
fn,
|
|
2120
2491
|
record,
|
|
2121
2492
|
array,
|
|
@@ -2223,80 +2594,6 @@ var uniqueKeys = (left, right) => {
|
|
|
2223
2594
|
];
|
|
2224
2595
|
};
|
|
2225
2596
|
|
|
2226
|
-
// dist/runtime/type-conversion/mergeObjects.js
|
|
2227
|
-
function mergeObjects(defVal, override) {
|
|
2228
|
-
const intersectingKeys = sharedKeys(defVal, override);
|
|
2229
|
-
const defUnique = withoutKeys(defVal, ...intersectingKeys);
|
|
2230
|
-
const overrideUnique = withoutKeys(defVal, ...intersectingKeys);
|
|
2231
|
-
const merged = {
|
|
2232
|
-
...intersectingKeys.reduce((acc, key) => typeof override[key] === "undefined" ? { ...acc, [key]: defVal[key] } : { ...acc, [key]: override[key] }, {}),
|
|
2233
|
-
...defUnique,
|
|
2234
|
-
...overrideUnique
|
|
2235
|
-
};
|
|
2236
|
-
return merged;
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
// dist/runtime/type-conversion/optional.js
|
|
2240
|
-
function optional(...values) {
|
|
2241
|
-
return values.length === 1 ? values[0] : values;
|
|
2242
|
-
}
|
|
2243
|
-
|
|
2244
|
-
// dist/runtime/type-conversion/mergeScalars.js
|
|
2245
|
-
function mergeScalars(a, b) {
|
|
2246
|
-
return isUndefined(b) ? a : b;
|
|
2247
|
-
}
|
|
2248
|
-
|
|
2249
|
-
// dist/runtime/type-conversion/mergeTuples.js
|
|
2250
|
-
function mergeTuples(a, b) {
|
|
2251
|
-
return b.length > a.length ? b.map((v, idx) => v !== void 0 ? v : a[idx]) : [...b, ...a.slice(b.length)].map((v, idx) => v !== void 0 ? v : a[idx]);
|
|
2252
|
-
}
|
|
2253
|
-
|
|
2254
|
-
// dist/runtime/type-conversion/unionize.js
|
|
2255
|
-
function unionize(value, inUnionWith) {
|
|
2256
|
-
return value;
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
// dist/runtime/type-conversion/intersect.js
|
|
2260
|
-
function intersect(value, intersectedWith) {
|
|
2261
|
-
return value;
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
|
-
// dist/runtime/type-conversion/never.js
|
|
2265
|
-
function never(val) {
|
|
2266
|
-
return val;
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
// dist/runtime/type-conversion/union.js
|
|
2270
|
-
var union2 = (...options) => (value) => value;
|
|
2271
|
-
|
|
2272
|
-
// dist/runtime/type-conversion/toNumber.js
|
|
2273
|
-
var convertScalar = (val) => {
|
|
2274
|
-
switch (typeof val) {
|
|
2275
|
-
case "number":
|
|
2276
|
-
return val;
|
|
2277
|
-
case "string":
|
|
2278
|
-
return Number(val);
|
|
2279
|
-
case "boolean":
|
|
2280
|
-
return val ? 1 : 0;
|
|
2281
|
-
default:
|
|
2282
|
-
throw Error(`${typeof val} is an invalid scalar type to convert to a number!`);
|
|
2283
|
-
}
|
|
2284
|
-
};
|
|
2285
|
-
var convertList = (val) => val.map((i) => convertScalar(i));
|
|
2286
|
-
function toNumber(value) {
|
|
2287
|
-
return Array.isArray(value) ? convertList(value) : convertScalar(value);
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
// dist/runtime/type-conversion/asRecord.js
|
|
2291
|
-
var asRecord = (obj) => {
|
|
2292
|
-
return obj;
|
|
2293
|
-
};
|
|
2294
|
-
|
|
2295
|
-
// dist/runtime/type-conversion/asString.js
|
|
2296
|
-
var asString = (value) => {
|
|
2297
|
-
return isString(value) ? value : isNumber(value) ? `${value}` : isBoolean(value) ? `${value}` : String(value);
|
|
2298
|
-
};
|
|
2299
|
-
|
|
2300
2597
|
// dist/runtime/vuejs/asVueRef.js
|
|
2301
2598
|
var asVueRef = (value) => ({
|
|
2302
2599
|
value,
|
|
@@ -2314,6 +2611,7 @@ var asVueRef = (value) => ({
|
|
|
2314
2611
|
FALSY_TYPE_KINDS,
|
|
2315
2612
|
FALSY_VALUES,
|
|
2316
2613
|
FILTER,
|
|
2614
|
+
GITHUB_INSIGHT_CATEGORY_LOOKUP,
|
|
2317
2615
|
HASH_TABLE_ALPHA_LOWER,
|
|
2318
2616
|
HASH_TABLE_ALPHA_UPPER,
|
|
2319
2617
|
HASH_TABLE_CHAR,
|
|
@@ -2330,6 +2628,7 @@ var asVueRef = (value) => ({
|
|
|
2330
2628
|
MONTH_NAME,
|
|
2331
2629
|
MapCardinality,
|
|
2332
2630
|
NARROW_CONTAINER_TYPE_KINDS,
|
|
2631
|
+
NETWORK_PROTOCOL_LOOKUP,
|
|
2333
2632
|
NON_ZERO_NUMERIC_CHAR,
|
|
2334
2633
|
NOT_APPLICABLE,
|
|
2335
2634
|
NOT_DEFINED,
|
|
@@ -2340,11 +2639,15 @@ var asVueRef = (value) => ({
|
|
|
2340
2639
|
OPTION,
|
|
2341
2640
|
PLURAL_EXCEPTIONS,
|
|
2342
2641
|
PLURAL_EXCEPTIONS_OLD,
|
|
2642
|
+
REPO_PAGE_TYPES,
|
|
2643
|
+
REPO_SOURCES,
|
|
2644
|
+
REPO_SOURCE_LOOKUP,
|
|
2343
2645
|
RESULT,
|
|
2344
2646
|
SHAPE_DELIMITER,
|
|
2345
2647
|
SHAPE_PREFIXES,
|
|
2346
2648
|
SINGULAR_NOUN_ENDINGS,
|
|
2347
2649
|
ShapeApiImplementation,
|
|
2650
|
+
TOP_LEVEL_DOMAINS,
|
|
2348
2651
|
TT_Atomics,
|
|
2349
2652
|
TT_Containers,
|
|
2350
2653
|
TT_Functions,
|
|
@@ -2376,6 +2679,7 @@ var asVueRef = (value) => ({
|
|
|
2376
2679
|
addPropsToFn,
|
|
2377
2680
|
and,
|
|
2378
2681
|
asArray,
|
|
2682
|
+
asChars,
|
|
2379
2683
|
asRecord,
|
|
2380
2684
|
asString,
|
|
2381
2685
|
asVueRef,
|
|
@@ -2399,10 +2703,16 @@ var asVueRef = (value) => ({
|
|
|
2399
2703
|
fnMeta,
|
|
2400
2704
|
get,
|
|
2401
2705
|
getEach,
|
|
2706
|
+
getUrlPath,
|
|
2707
|
+
getUrlPort,
|
|
2708
|
+
getUrlProtocol,
|
|
2709
|
+
getUrlQueryParams,
|
|
2710
|
+
getUrlSource,
|
|
2402
2711
|
handleDoneFn,
|
|
2403
2712
|
hasDefaultValue,
|
|
2404
2713
|
hasIndexOf,
|
|
2405
2714
|
hasKeys,
|
|
2715
|
+
hasUrlPort,
|
|
2406
2716
|
idLiteral,
|
|
2407
2717
|
idTypeGuard,
|
|
2408
2718
|
identity,
|
|
@@ -2430,14 +2740,18 @@ var asVueRef = (value) => ({
|
|
|
2430
2740
|
indexOf,
|
|
2431
2741
|
intersect,
|
|
2432
2742
|
intersection,
|
|
2743
|
+
ip6GroupExpansion,
|
|
2433
2744
|
ip6Prefix,
|
|
2434
2745
|
isArray,
|
|
2746
|
+
isBitbucketUrl,
|
|
2435
2747
|
isBoolean,
|
|
2436
2748
|
isBox,
|
|
2749
|
+
isCodeCommitUrl,
|
|
2437
2750
|
isConstant,
|
|
2438
2751
|
isContainer,
|
|
2439
2752
|
isCssAspectRatio,
|
|
2440
2753
|
isDefined,
|
|
2754
|
+
isDomainName,
|
|
2441
2755
|
isDoneFn,
|
|
2442
2756
|
isEqual,
|
|
2443
2757
|
isErrorCondition,
|
|
@@ -2445,8 +2759,14 @@ var asVueRef = (value) => ({
|
|
|
2445
2759
|
isFalsy,
|
|
2446
2760
|
isFnWithParams,
|
|
2447
2761
|
isFunction,
|
|
2762
|
+
isGithubRepoUrl,
|
|
2763
|
+
isGithubUrl,
|
|
2764
|
+
isHexadecimal,
|
|
2448
2765
|
isIndexable,
|
|
2449
2766
|
isInlineSvg,
|
|
2767
|
+
isIp4Address,
|
|
2768
|
+
isIp6Address,
|
|
2769
|
+
isIpAddress,
|
|
2450
2770
|
isLength,
|
|
2451
2771
|
isNever,
|
|
2452
2772
|
isNotNull,
|
|
@@ -2457,8 +2777,11 @@ var asVueRef = (value) => ({
|
|
|
2457
2777
|
isObject,
|
|
2458
2778
|
isReadonlyArray,
|
|
2459
2779
|
isRef,
|
|
2780
|
+
isRepoSource,
|
|
2781
|
+
isRepoUrl,
|
|
2460
2782
|
isSameTypeOf,
|
|
2461
2783
|
isScalar,
|
|
2784
|
+
isSemanticVersion,
|
|
2462
2785
|
isShape,
|
|
2463
2786
|
isSpecificConstant,
|
|
2464
2787
|
isString,
|
|
@@ -2472,6 +2795,13 @@ var asVueRef = (value) => ({
|
|
|
2472
2795
|
isUndefined,
|
|
2473
2796
|
isUri,
|
|
2474
2797
|
isUrl,
|
|
2798
|
+
isUrlPath,
|
|
2799
|
+
isUrlSource,
|
|
2800
|
+
isYouTubeFeedUrl,
|
|
2801
|
+
isYouTubePlaylistUrl,
|
|
2802
|
+
isYouTubeShareUrl,
|
|
2803
|
+
isYouTubeUrl,
|
|
2804
|
+
isYouTubeVideoUrl,
|
|
2475
2805
|
join,
|
|
2476
2806
|
keysOf,
|
|
2477
2807
|
kindError,
|
|
@@ -2494,6 +2824,7 @@ var asVueRef = (value) => ({
|
|
|
2494
2824
|
pathJoin,
|
|
2495
2825
|
pluralize,
|
|
2496
2826
|
pop,
|
|
2827
|
+
removeUrlProtocol,
|
|
2497
2828
|
result,
|
|
2498
2829
|
retain,
|
|
2499
2830
|
retainAfter,
|
|
@@ -2509,6 +2840,7 @@ var asVueRef = (value) => ({
|
|
|
2509
2840
|
stripLeading,
|
|
2510
2841
|
stripTrailing,
|
|
2511
2842
|
surround,
|
|
2843
|
+
takeNumericCharacters,
|
|
2512
2844
|
takeProp,
|
|
2513
2845
|
toCamelCase,
|
|
2514
2846
|
toKebabCase,
|
|
@@ -2532,10 +2864,12 @@ var asVueRef = (value) => ({
|
|
|
2532
2864
|
unique,
|
|
2533
2865
|
uniqueKeys,
|
|
2534
2866
|
uppercase,
|
|
2867
|
+
urlMeta,
|
|
2535
2868
|
valuesOf,
|
|
2536
2869
|
widen,
|
|
2537
2870
|
withDefaults,
|
|
2538
2871
|
withKeys,
|
|
2539
2872
|
withoutKeys,
|
|
2540
|
-
withoutValue
|
|
2873
|
+
withoutValue,
|
|
2874
|
+
youtube
|
|
2541
2875
|
});
|