@becollective/utils 1.10.3 → 2.0.1
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/.semaphore/utils.yml +1 -1
- package/index.ts +7 -0
- package/lib/FeatureFlag.d.ts +12 -0
- package/lib/FeatureFlag.js +51 -0
- package/lib/constants/allowedHtmlTags.d.ts +7 -0
- package/lib/constants/allowedHtmlTags.js +8 -0
- package/lib/constants/avatarColours.d.ts +35 -0
- package/lib/constants/avatarColours.js +36 -0
- package/lib/constants/countries.d.ts +253 -0
- package/lib/constants/countries.js +254 -0
- package/lib/constants/currencies.d.ts +29 -0
- package/lib/constants/currencies.js +36 -0
- package/lib/constants/customFields.d.ts +11 -0
- package/lib/constants/customFields.js +12 -0
- package/lib/constants/distancesUnits.d.ts +11 -0
- package/lib/constants/distancesUnits.js +13 -0
- package/lib/constants/groups.d.ts +13 -0
- package/lib/constants/groups.js +85 -0
- package/lib/constants/insuranceStatuses.d.ts +15 -0
- package/lib/constants/insuranceStatuses.js +7 -0
- package/lib/constants/insuranceTypes.d.ts +35 -0
- package/lib/constants/insuranceTypes.js +36 -0
- package/lib/constants/languages.d.ts +2 -0
- package/lib/constants/languages.js +194 -0
- package/lib/constants/locales.d.ts +119 -0
- package/lib/constants/locales.js +191 -0
- package/lib/constants/notifications.d.ts +47 -0
- package/lib/constants/notifications.js +31 -0
- package/lib/constants/opportunities.d.ts +72 -0
- package/lib/constants/opportunities.js +82 -0
- package/lib/constants/qualificationTypes.d.ts +4 -0
- package/lib/constants/qualificationTypes.js +18 -0
- package/lib/constants/rules.d.ts +13 -0
- package/lib/constants/rules.js +21 -0
- package/lib/constants/subscriptions.d.ts +9 -0
- package/lib/constants/subscriptions.js +10 -0
- package/lib/constants/surveys.d.ts +16 -0
- package/lib/constants/surveys.js +17 -0
- package/lib/constants.d.ts +677 -0
- package/lib/constants.js +78 -0
- package/lib/date-time.d.ts +28 -0
- package/lib/date-time.js +79 -0
- package/lib/forms.d.ts +1 -0
- package/lib/forms.js +728 -0
- package/lib/locality.d.ts +5 -0
- package/lib/locality.js +15 -0
- package/lib/money.d.ts +7 -0
- package/lib/money.js +32 -0
- package/lib/opportunity.d.ts +1 -0
- package/lib/opportunity.js +11 -0
- package/lib/opportunityUser.d.ts +8 -0
- package/lib/opportunityUser.js +29 -0
- package/lib/password.d.ts +8 -0
- package/lib/password.js +43 -0
- package/lib/rrule/date.d.ts +4 -0
- package/lib/rrule/date.js +30 -0
- package/lib/rrule/index.d.ts +2 -0
- package/lib/rrule/index.js +18 -0
- package/lib/rrule/parsing.d.ts +6 -0
- package/lib/rrule/parsing.js +130 -0
- package/lib/rrule/parsing.test.d.ts +1 -0
- package/lib/rrule/parsing.test.js +11 -0
- package/lib/rrule.d.ts +49 -0
- package/lib/rrule.js +303 -0
- package/lib/src/FeatureFlag.d.ts +12 -0
- package/lib/src/FeatureFlag.js +51 -0
- package/lib/src/date-time.d.ts +28 -0
- package/lib/src/date-time.js +79 -0
- package/lib/src/forms.d.ts +1 -0
- package/lib/src/forms.js +728 -0
- package/lib/src/locality.d.ts +5 -0
- package/lib/src/locality.js +15 -0
- package/lib/src/money.d.ts +7 -0
- package/lib/src/money.js +32 -0
- package/lib/src/opportunity.d.ts +1 -0
- package/lib/src/opportunity.js +11 -0
- package/lib/src/opportunityUser.d.ts +8 -0
- package/lib/src/opportunityUser.js +29 -0
- package/lib/src/password.d.ts +8 -0
- package/lib/src/password.js +43 -0
- package/package.json +16 -28
- package/src/FeatureFlag.ts +26 -10
- package/src/constants/allowedHtmlTags.ts +6 -0
- package/src/constants/avatarColours.ts +34 -0
- package/src/constants/countries.ts +252 -0
- package/src/constants/currencies.ts +33 -0
- package/src/constants/customFields.ts +10 -0
- package/src/constants/distancesUnits.ts +11 -0
- package/src/constants/groups.ts +83 -0
- package/src/constants/insuranceStatuses.ts +5 -0
- package/src/constants/insuranceTypes.ts +34 -0
- package/src/constants/languages.ts +192 -0
- package/src/constants/locales.ts +189 -0
- package/src/constants/notifications.ts +30 -0
- package/src/constants/opportunities.ts +84 -0
- package/src/constants/qualificationTypes.ts +17 -0
- package/src/constants/rules.ts +22 -0
- package/src/constants/subscriptions.ts +8 -0
- package/src/constants/surveys.ts +15 -0
- package/src/constants.ts +42 -0
- package/src/{date-time.js → date-time.ts} +18 -11
- package/src/forms.ts +807 -0
- package/src/{opportunityUser.js → opportunityUser.ts} +5 -1
- package/src/{password.js → password.ts} +2 -0
- package/src/rrule/date.ts +25 -0
- package/src/rrule/index.ts +2 -0
- package/src/rrule/parsing.ts +136 -0
- package/src/rrule.ts +367 -0
- package/tests/{date-time.test.js → date-time.test.ts} +48 -46
- package/tests/featureFlag.test.ts +36 -39
- package/tests/forms.test-data.json +43 -0
- package/tests/forms.test-schema.json +144 -0
- package/tests/forms.test-uischema.json +117 -0
- package/tests/forms.test.ts +674 -0
- package/tests/{money.test.js → money.test.ts} +2 -3
- package/tests/{password.test.js → password.test.ts} +7 -6
- package/tests/rrule/parsing.test.ts +12 -0
- package/tests/rrule.test.ts +625 -0
- package/tsconfig.json +15 -12
- package/bundle.js +0 -270
- package/index.js +0 -25
- package/node_modules/axios/CHANGELOG.md +0 -685
- package/node_modules/axios/LICENSE +0 -19
- package/node_modules/axios/README.md +0 -800
- package/node_modules/axios/UPGRADE_GUIDE.md +0 -162
- package/node_modules/axios/dist/axios.js +0 -1756
- package/node_modules/axios/dist/axios.map +0 -1
- package/node_modules/axios/dist/axios.min.js +0 -3
- package/node_modules/axios/dist/axios.min.map +0 -1
- package/node_modules/axios/index.d.ts +0 -161
- package/node_modules/axios/index.js +0 -1
- package/node_modules/axios/lib/adapters/README.md +0 -37
- package/node_modules/axios/lib/adapters/http.js +0 -303
- package/node_modules/axios/lib/adapters/xhr.js +0 -179
- package/node_modules/axios/lib/axios.js +0 -56
- package/node_modules/axios/lib/cancel/Cancel.js +0 -19
- package/node_modules/axios/lib/cancel/CancelToken.js +0 -57
- package/node_modules/axios/lib/cancel/isCancel.js +0 -5
- package/node_modules/axios/lib/core/Axios.js +0 -95
- package/node_modules/axios/lib/core/InterceptorManager.js +0 -52
- package/node_modules/axios/lib/core/README.md +0 -7
- package/node_modules/axios/lib/core/buildFullPath.js +0 -20
- package/node_modules/axios/lib/core/createError.js +0 -18
- package/node_modules/axios/lib/core/dispatchRequest.js +0 -79
- package/node_modules/axios/lib/core/enhanceError.js +0 -42
- package/node_modules/axios/lib/core/mergeConfig.js +0 -87
- package/node_modules/axios/lib/core/settle.js +0 -25
- package/node_modules/axios/lib/core/transformData.js +0 -20
- package/node_modules/axios/lib/defaults.js +0 -98
- package/node_modules/axios/lib/helpers/README.md +0 -7
- package/node_modules/axios/lib/helpers/bind.js +0 -11
- package/node_modules/axios/lib/helpers/buildURL.js +0 -70
- package/node_modules/axios/lib/helpers/combineURLs.js +0 -14
- package/node_modules/axios/lib/helpers/cookies.js +0 -53
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +0 -24
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -14
- package/node_modules/axios/lib/helpers/isAxiosError.js +0 -11
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -68
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- package/node_modules/axios/lib/helpers/parseHeaders.js +0 -53
- package/node_modules/axios/lib/helpers/spread.js +0 -27
- package/node_modules/axios/lib/utils.js +0 -351
- package/node_modules/axios/package.json +0 -86
- package/node_modules/follow-redirects/LICENSE +0 -18
- package/node_modules/follow-redirects/README.md +0 -148
- package/node_modules/follow-redirects/debug.js +0 -14
- package/node_modules/follow-redirects/http.js +0 -1
- package/node_modules/follow-redirects/https.js +0 -1
- package/node_modules/follow-redirects/index.js +0 -535
- package/node_modules/follow-redirects/package.json +0 -59
- package/node_modules/lodash/LICENSE +0 -47
- package/node_modules/lodash/README.md +0 -39
- package/node_modules/lodash/_DataView.js +0 -7
- package/node_modules/lodash/_Hash.js +0 -32
- package/node_modules/lodash/_LazyWrapper.js +0 -28
- package/node_modules/lodash/_ListCache.js +0 -32
- package/node_modules/lodash/_LodashWrapper.js +0 -22
- package/node_modules/lodash/_Map.js +0 -7
- package/node_modules/lodash/_MapCache.js +0 -32
- package/node_modules/lodash/_Promise.js +0 -7
- package/node_modules/lodash/_Set.js +0 -7
- package/node_modules/lodash/_SetCache.js +0 -27
- package/node_modules/lodash/_Stack.js +0 -27
- package/node_modules/lodash/_Symbol.js +0 -6
- package/node_modules/lodash/_Uint8Array.js +0 -6
- package/node_modules/lodash/_WeakMap.js +0 -7
- package/node_modules/lodash/_apply.js +0 -21
- package/node_modules/lodash/_arrayAggregator.js +0 -22
- package/node_modules/lodash/_arrayEach.js +0 -22
- package/node_modules/lodash/_arrayEachRight.js +0 -21
- package/node_modules/lodash/_arrayEvery.js +0 -23
- package/node_modules/lodash/_arrayFilter.js +0 -25
- package/node_modules/lodash/_arrayIncludes.js +0 -17
- package/node_modules/lodash/_arrayIncludesWith.js +0 -22
- package/node_modules/lodash/_arrayLikeKeys.js +0 -49
- package/node_modules/lodash/_arrayMap.js +0 -21
- package/node_modules/lodash/_arrayPush.js +0 -20
- package/node_modules/lodash/_arrayReduce.js +0 -26
- package/node_modules/lodash/_arrayReduceRight.js +0 -24
- package/node_modules/lodash/_arraySample.js +0 -15
- package/node_modules/lodash/_arraySampleSize.js +0 -17
- package/node_modules/lodash/_arrayShuffle.js +0 -15
- package/node_modules/lodash/_arraySome.js +0 -23
- package/node_modules/lodash/_asciiSize.js +0 -12
- package/node_modules/lodash/_asciiToArray.js +0 -12
- package/node_modules/lodash/_asciiWords.js +0 -15
- package/node_modules/lodash/_assignMergeValue.js +0 -20
- package/node_modules/lodash/_assignValue.js +0 -28
- package/node_modules/lodash/_assocIndexOf.js +0 -21
- package/node_modules/lodash/_baseAggregator.js +0 -21
- package/node_modules/lodash/_baseAssign.js +0 -17
- package/node_modules/lodash/_baseAssignIn.js +0 -17
- package/node_modules/lodash/_baseAssignValue.js +0 -25
- package/node_modules/lodash/_baseAt.js +0 -23
- package/node_modules/lodash/_baseClamp.js +0 -22
- package/node_modules/lodash/_baseClone.js +0 -166
- package/node_modules/lodash/_baseConforms.js +0 -18
- package/node_modules/lodash/_baseConformsTo.js +0 -27
- package/node_modules/lodash/_baseCreate.js +0 -30
- package/node_modules/lodash/_baseDelay.js +0 -21
- package/node_modules/lodash/_baseDifference.js +0 -67
- package/node_modules/lodash/_baseEach.js +0 -14
- package/node_modules/lodash/_baseEachRight.js +0 -14
- package/node_modules/lodash/_baseEvery.js +0 -21
- package/node_modules/lodash/_baseExtremum.js +0 -32
- package/node_modules/lodash/_baseFill.js +0 -32
- package/node_modules/lodash/_baseFilter.js +0 -21
- package/node_modules/lodash/_baseFindIndex.js +0 -24
- package/node_modules/lodash/_baseFindKey.js +0 -23
- package/node_modules/lodash/_baseFlatten.js +0 -38
- package/node_modules/lodash/_baseFor.js +0 -16
- package/node_modules/lodash/_baseForOwn.js +0 -16
- package/node_modules/lodash/_baseForOwnRight.js +0 -16
- package/node_modules/lodash/_baseForRight.js +0 -15
- package/node_modules/lodash/_baseFunctions.js +0 -19
- package/node_modules/lodash/_baseGet.js +0 -24
- package/node_modules/lodash/_baseGetAllKeys.js +0 -20
- package/node_modules/lodash/_baseGetTag.js +0 -28
- package/node_modules/lodash/_baseGt.js +0 -14
- package/node_modules/lodash/_baseHas.js +0 -19
- package/node_modules/lodash/_baseHasIn.js +0 -13
- package/node_modules/lodash/_baseInRange.js +0 -18
- package/node_modules/lodash/_baseIndexOf.js +0 -20
- package/node_modules/lodash/_baseIndexOfWith.js +0 -23
- package/node_modules/lodash/_baseIntersection.js +0 -74
- package/node_modules/lodash/_baseInverter.js +0 -21
- package/node_modules/lodash/_baseInvoke.js +0 -24
- package/node_modules/lodash/_baseIsArguments.js +0 -18
- package/node_modules/lodash/_baseIsArrayBuffer.js +0 -17
- package/node_modules/lodash/_baseIsDate.js +0 -18
- package/node_modules/lodash/_baseIsEqual.js +0 -28
- package/node_modules/lodash/_baseIsEqualDeep.js +0 -83
- package/node_modules/lodash/_baseIsMap.js +0 -18
- package/node_modules/lodash/_baseIsMatch.js +0 -62
- package/node_modules/lodash/_baseIsNaN.js +0 -12
- package/node_modules/lodash/_baseIsNative.js +0 -47
- package/node_modules/lodash/_baseIsRegExp.js +0 -18
- package/node_modules/lodash/_baseIsSet.js +0 -18
- package/node_modules/lodash/_baseIsTypedArray.js +0 -60
- package/node_modules/lodash/_baseIteratee.js +0 -31
- package/node_modules/lodash/_baseKeys.js +0 -30
- package/node_modules/lodash/_baseKeysIn.js +0 -33
- package/node_modules/lodash/_baseLodash.js +0 -10
- package/node_modules/lodash/_baseLt.js +0 -14
- package/node_modules/lodash/_baseMap.js +0 -22
- package/node_modules/lodash/_baseMatches.js +0 -22
- package/node_modules/lodash/_baseMatchesProperty.js +0 -33
- package/node_modules/lodash/_baseMean.js +0 -20
- package/node_modules/lodash/_baseMerge.js +0 -42
- package/node_modules/lodash/_baseMergeDeep.js +0 -94
- package/node_modules/lodash/_baseNth.js +0 -20
- package/node_modules/lodash/_baseOrderBy.js +0 -49
- package/node_modules/lodash/_basePick.js +0 -19
- package/node_modules/lodash/_basePickBy.js +0 -30
- package/node_modules/lodash/_baseProperty.js +0 -14
- package/node_modules/lodash/_basePropertyDeep.js +0 -16
- package/node_modules/lodash/_basePropertyOf.js +0 -14
- package/node_modules/lodash/_basePullAll.js +0 -51
- package/node_modules/lodash/_basePullAt.js +0 -37
- package/node_modules/lodash/_baseRandom.js +0 -18
- package/node_modules/lodash/_baseRange.js +0 -28
- package/node_modules/lodash/_baseReduce.js +0 -23
- package/node_modules/lodash/_baseRepeat.js +0 -35
- package/node_modules/lodash/_baseRest.js +0 -17
- package/node_modules/lodash/_baseSample.js +0 -15
- package/node_modules/lodash/_baseSampleSize.js +0 -18
- package/node_modules/lodash/_baseSet.js +0 -51
- package/node_modules/lodash/_baseSetData.js +0 -17
- package/node_modules/lodash/_baseSetToString.js +0 -22
- package/node_modules/lodash/_baseShuffle.js +0 -15
- package/node_modules/lodash/_baseSlice.js +0 -31
- package/node_modules/lodash/_baseSome.js +0 -22
- package/node_modules/lodash/_baseSortBy.js +0 -21
- package/node_modules/lodash/_baseSortedIndex.js +0 -42
- package/node_modules/lodash/_baseSortedIndexBy.js +0 -67
- package/node_modules/lodash/_baseSortedUniq.js +0 -30
- package/node_modules/lodash/_baseSum.js +0 -24
- package/node_modules/lodash/_baseTimes.js +0 -20
- package/node_modules/lodash/_baseToNumber.js +0 -24
- package/node_modules/lodash/_baseToPairs.js +0 -18
- package/node_modules/lodash/_baseToString.js +0 -37
- package/node_modules/lodash/_baseTrim.js +0 -19
- package/node_modules/lodash/_baseUnary.js +0 -14
- package/node_modules/lodash/_baseUniq.js +0 -72
- package/node_modules/lodash/_baseUnset.js +0 -20
- package/node_modules/lodash/_baseUpdate.js +0 -18
- package/node_modules/lodash/_baseValues.js +0 -19
- package/node_modules/lodash/_baseWhile.js +0 -26
- package/node_modules/lodash/_baseWrapperValue.js +0 -25
- package/node_modules/lodash/_baseXor.js +0 -36
- package/node_modules/lodash/_baseZipObject.js +0 -23
- package/node_modules/lodash/_cacheHas.js +0 -13
- package/node_modules/lodash/_castArrayLikeObject.js +0 -14
- package/node_modules/lodash/_castFunction.js +0 -14
- package/node_modules/lodash/_castPath.js +0 -21
- package/node_modules/lodash/_castRest.js +0 -14
- package/node_modules/lodash/_castSlice.js +0 -18
- package/node_modules/lodash/_charsEndIndex.js +0 -19
- package/node_modules/lodash/_charsStartIndex.js +0 -20
- package/node_modules/lodash/_cloneArrayBuffer.js +0 -16
- package/node_modules/lodash/_cloneBuffer.js +0 -35
- package/node_modules/lodash/_cloneDataView.js +0 -16
- package/node_modules/lodash/_cloneRegExp.js +0 -17
- package/node_modules/lodash/_cloneSymbol.js +0 -18
- package/node_modules/lodash/_cloneTypedArray.js +0 -16
- package/node_modules/lodash/_compareAscending.js +0 -41
- package/node_modules/lodash/_compareMultiple.js +0 -44
- package/node_modules/lodash/_composeArgs.js +0 -39
- package/node_modules/lodash/_composeArgsRight.js +0 -41
- package/node_modules/lodash/_copyArray.js +0 -20
- package/node_modules/lodash/_copyObject.js +0 -40
- package/node_modules/lodash/_copySymbols.js +0 -16
- package/node_modules/lodash/_copySymbolsIn.js +0 -16
- package/node_modules/lodash/_coreJsData.js +0 -6
- package/node_modules/lodash/_countHolders.js +0 -21
- package/node_modules/lodash/_createAggregator.js +0 -23
- package/node_modules/lodash/_createAssigner.js +0 -37
- package/node_modules/lodash/_createBaseEach.js +0 -32
- package/node_modules/lodash/_createBaseFor.js +0 -25
- package/node_modules/lodash/_createBind.js +0 -28
- package/node_modules/lodash/_createCaseFirst.js +0 -33
- package/node_modules/lodash/_createCompounder.js +0 -24
- package/node_modules/lodash/_createCtor.js +0 -37
- package/node_modules/lodash/_createCurry.js +0 -46
- package/node_modules/lodash/_createFind.js +0 -25
- package/node_modules/lodash/_createFlow.js +0 -78
- package/node_modules/lodash/_createHybrid.js +0 -92
- package/node_modules/lodash/_createInverter.js +0 -17
- package/node_modules/lodash/_createMathOperation.js +0 -38
- package/node_modules/lodash/_createOver.js +0 -27
- package/node_modules/lodash/_createPadding.js +0 -33
- package/node_modules/lodash/_createPartial.js +0 -43
- package/node_modules/lodash/_createRange.js +0 -30
- package/node_modules/lodash/_createRecurry.js +0 -56
- package/node_modules/lodash/_createRelationalOperation.js +0 -20
- package/node_modules/lodash/_createRound.js +0 -35
- package/node_modules/lodash/_createSet.js +0 -19
- package/node_modules/lodash/_createToPairs.js +0 -30
- package/node_modules/lodash/_createWrap.js +0 -106
- package/node_modules/lodash/_customDefaultsAssignIn.js +0 -29
- package/node_modules/lodash/_customDefaultsMerge.js +0 -28
- package/node_modules/lodash/_customOmitClone.js +0 -16
- package/node_modules/lodash/_deburrLetter.js +0 -71
- package/node_modules/lodash/_defineProperty.js +0 -11
- package/node_modules/lodash/_equalArrays.js +0 -84
- package/node_modules/lodash/_equalByTag.js +0 -112
- package/node_modules/lodash/_equalObjects.js +0 -90
- package/node_modules/lodash/_escapeHtmlChar.js +0 -21
- package/node_modules/lodash/_escapeStringChar.js +0 -22
- package/node_modules/lodash/_flatRest.js +0 -16
- package/node_modules/lodash/_freeGlobal.js +0 -4
- package/node_modules/lodash/_getAllKeys.js +0 -16
- package/node_modules/lodash/_getAllKeysIn.js +0 -17
- package/node_modules/lodash/_getData.js +0 -15
- package/node_modules/lodash/_getFuncName.js +0 -31
- package/node_modules/lodash/_getHolder.js +0 -13
- package/node_modules/lodash/_getMapData.js +0 -18
- package/node_modules/lodash/_getMatchData.js +0 -24
- package/node_modules/lodash/_getNative.js +0 -17
- package/node_modules/lodash/_getPrototype.js +0 -6
- package/node_modules/lodash/_getRawTag.js +0 -46
- package/node_modules/lodash/_getSymbols.js +0 -30
- package/node_modules/lodash/_getSymbolsIn.js +0 -25
- package/node_modules/lodash/_getTag.js +0 -58
- package/node_modules/lodash/_getValue.js +0 -13
- package/node_modules/lodash/_getView.js +0 -33
- package/node_modules/lodash/_getWrapDetails.js +0 -17
- package/node_modules/lodash/_hasPath.js +0 -39
- package/node_modules/lodash/_hasUnicode.js +0 -26
- package/node_modules/lodash/_hasUnicodeWord.js +0 -15
- package/node_modules/lodash/_hashClear.js +0 -15
- package/node_modules/lodash/_hashDelete.js +0 -17
- package/node_modules/lodash/_hashGet.js +0 -30
- package/node_modules/lodash/_hashHas.js +0 -23
- package/node_modules/lodash/_hashSet.js +0 -23
- package/node_modules/lodash/_initCloneArray.js +0 -26
- package/node_modules/lodash/_initCloneByTag.js +0 -77
- package/node_modules/lodash/_initCloneObject.js +0 -18
- package/node_modules/lodash/_insertWrapDetails.js +0 -23
- package/node_modules/lodash/_isFlattenable.js +0 -20
- package/node_modules/lodash/_isIndex.js +0 -25
- package/node_modules/lodash/_isIterateeCall.js +0 -30
- package/node_modules/lodash/_isKey.js +0 -29
- package/node_modules/lodash/_isKeyable.js +0 -15
- package/node_modules/lodash/_isLaziable.js +0 -28
- package/node_modules/lodash/_isMaskable.js +0 -14
- package/node_modules/lodash/_isMasked.js +0 -20
- package/node_modules/lodash/_isPrototype.js +0 -18
- package/node_modules/lodash/_isStrictComparable.js +0 -15
- package/node_modules/lodash/_iteratorToArray.js +0 -18
- package/node_modules/lodash/_lazyClone.js +0 -23
- package/node_modules/lodash/_lazyReverse.js +0 -23
- package/node_modules/lodash/_lazyValue.js +0 -69
- package/node_modules/lodash/_listCacheClear.js +0 -13
- package/node_modules/lodash/_listCacheDelete.js +0 -35
- package/node_modules/lodash/_listCacheGet.js +0 -19
- package/node_modules/lodash/_listCacheHas.js +0 -16
- package/node_modules/lodash/_listCacheSet.js +0 -26
- package/node_modules/lodash/_mapCacheClear.js +0 -21
- package/node_modules/lodash/_mapCacheDelete.js +0 -18
- package/node_modules/lodash/_mapCacheGet.js +0 -16
- package/node_modules/lodash/_mapCacheHas.js +0 -16
- package/node_modules/lodash/_mapCacheSet.js +0 -22
- package/node_modules/lodash/_mapToArray.js +0 -18
- package/node_modules/lodash/_matchesStrictComparable.js +0 -20
- package/node_modules/lodash/_memoizeCapped.js +0 -26
- package/node_modules/lodash/_mergeData.js +0 -90
- package/node_modules/lodash/_metaMap.js +0 -6
- package/node_modules/lodash/_nativeCreate.js +0 -6
- package/node_modules/lodash/_nativeKeys.js +0 -6
- package/node_modules/lodash/_nativeKeysIn.js +0 -20
- package/node_modules/lodash/_nodeUtil.js +0 -30
- package/node_modules/lodash/_objectToString.js +0 -22
- package/node_modules/lodash/_overArg.js +0 -15
- package/node_modules/lodash/_overRest.js +0 -36
- package/node_modules/lodash/_parent.js +0 -16
- package/node_modules/lodash/_reEscape.js +0 -4
- package/node_modules/lodash/_reEvaluate.js +0 -4
- package/node_modules/lodash/_reInterpolate.js +0 -4
- package/node_modules/lodash/_realNames.js +0 -4
- package/node_modules/lodash/_reorder.js +0 -29
- package/node_modules/lodash/_replaceHolders.js +0 -29
- package/node_modules/lodash/_root.js +0 -9
- package/node_modules/lodash/_safeGet.js +0 -21
- package/node_modules/lodash/_setCacheAdd.js +0 -19
- package/node_modules/lodash/_setCacheHas.js +0 -14
- package/node_modules/lodash/_setData.js +0 -20
- package/node_modules/lodash/_setToArray.js +0 -18
- package/node_modules/lodash/_setToPairs.js +0 -18
- package/node_modules/lodash/_setToString.js +0 -14
- package/node_modules/lodash/_setWrapToString.js +0 -21
- package/node_modules/lodash/_shortOut.js +0 -37
- package/node_modules/lodash/_shuffleSelf.js +0 -28
- package/node_modules/lodash/_stackClear.js +0 -15
- package/node_modules/lodash/_stackDelete.js +0 -18
- package/node_modules/lodash/_stackGet.js +0 -14
- package/node_modules/lodash/_stackHas.js +0 -14
- package/node_modules/lodash/_stackSet.js +0 -34
- package/node_modules/lodash/_strictIndexOf.js +0 -23
- package/node_modules/lodash/_strictLastIndexOf.js +0 -21
- package/node_modules/lodash/_stringSize.js +0 -18
- package/node_modules/lodash/_stringToArray.js +0 -18
- package/node_modules/lodash/_stringToPath.js +0 -27
- package/node_modules/lodash/_toKey.js +0 -21
- package/node_modules/lodash/_toSource.js +0 -26
- package/node_modules/lodash/_trimmedEndIndex.js +0 -19
- package/node_modules/lodash/_unescapeHtmlChar.js +0 -21
- package/node_modules/lodash/_unicodeSize.js +0 -44
- package/node_modules/lodash/_unicodeToArray.js +0 -40
- package/node_modules/lodash/_unicodeWords.js +0 -69
- package/node_modules/lodash/_updateWrapDetails.js +0 -46
- package/node_modules/lodash/_wrapperClone.js +0 -23
- package/node_modules/lodash/add.js +0 -22
- package/node_modules/lodash/after.js +0 -42
- package/node_modules/lodash/array.js +0 -67
- package/node_modules/lodash/ary.js +0 -29
- package/node_modules/lodash/assign.js +0 -58
- package/node_modules/lodash/assignIn.js +0 -40
- package/node_modules/lodash/assignInWith.js +0 -38
- package/node_modules/lodash/assignWith.js +0 -37
- package/node_modules/lodash/at.js +0 -23
- package/node_modules/lodash/attempt.js +0 -35
- package/node_modules/lodash/before.js +0 -40
- package/node_modules/lodash/bind.js +0 -57
- package/node_modules/lodash/bindAll.js +0 -41
- package/node_modules/lodash/bindKey.js +0 -68
- package/node_modules/lodash/camelCase.js +0 -29
- package/node_modules/lodash/capitalize.js +0 -23
- package/node_modules/lodash/castArray.js +0 -44
- package/node_modules/lodash/ceil.js +0 -26
- package/node_modules/lodash/chain.js +0 -38
- package/node_modules/lodash/chunk.js +0 -50
- package/node_modules/lodash/clamp.js +0 -39
- package/node_modules/lodash/clone.js +0 -36
- package/node_modules/lodash/cloneDeep.js +0 -29
- package/node_modules/lodash/cloneDeepWith.js +0 -40
- package/node_modules/lodash/cloneWith.js +0 -42
- package/node_modules/lodash/collection.js +0 -30
- package/node_modules/lodash/commit.js +0 -33
- package/node_modules/lodash/compact.js +0 -31
- package/node_modules/lodash/concat.js +0 -43
- package/node_modules/lodash/cond.js +0 -60
- package/node_modules/lodash/conforms.js +0 -35
- package/node_modules/lodash/conformsTo.js +0 -32
- package/node_modules/lodash/constant.js +0 -26
- package/node_modules/lodash/core.js +0 -3877
- package/node_modules/lodash/core.min.js +0 -29
- package/node_modules/lodash/countBy.js +0 -40
- package/node_modules/lodash/create.js +0 -43
- package/node_modules/lodash/curry.js +0 -57
- package/node_modules/lodash/curryRight.js +0 -54
- package/node_modules/lodash/date.js +0 -3
- package/node_modules/lodash/debounce.js +0 -191
- package/node_modules/lodash/deburr.js +0 -45
- package/node_modules/lodash/defaultTo.js +0 -25
- package/node_modules/lodash/defaults.js +0 -64
- package/node_modules/lodash/defaultsDeep.js +0 -30
- package/node_modules/lodash/defer.js +0 -26
- package/node_modules/lodash/delay.js +0 -28
- package/node_modules/lodash/difference.js +0 -33
- package/node_modules/lodash/differenceBy.js +0 -44
- package/node_modules/lodash/differenceWith.js +0 -40
- package/node_modules/lodash/divide.js +0 -22
- package/node_modules/lodash/drop.js +0 -38
- package/node_modules/lodash/dropRight.js +0 -39
- package/node_modules/lodash/dropRightWhile.js +0 -45
- package/node_modules/lodash/dropWhile.js +0 -45
- package/node_modules/lodash/each.js +0 -1
- package/node_modules/lodash/eachRight.js +0 -1
- package/node_modules/lodash/endsWith.js +0 -43
- package/node_modules/lodash/entries.js +0 -1
- package/node_modules/lodash/entriesIn.js +0 -1
- package/node_modules/lodash/eq.js +0 -37
- package/node_modules/lodash/escape.js +0 -43
- package/node_modules/lodash/escapeRegExp.js +0 -32
- package/node_modules/lodash/every.js +0 -56
- package/node_modules/lodash/extend.js +0 -1
- package/node_modules/lodash/extendWith.js +0 -1
- package/node_modules/lodash/fill.js +0 -45
- package/node_modules/lodash/filter.js +0 -52
- package/node_modules/lodash/find.js +0 -42
- package/node_modules/lodash/findIndex.js +0 -55
- package/node_modules/lodash/findKey.js +0 -44
- package/node_modules/lodash/findLast.js +0 -25
- package/node_modules/lodash/findLastIndex.js +0 -59
- package/node_modules/lodash/findLastKey.js +0 -44
- package/node_modules/lodash/first.js +0 -1
- package/node_modules/lodash/flake.lock +0 -40
- package/node_modules/lodash/flake.nix +0 -20
- package/node_modules/lodash/flatMap.js +0 -29
- package/node_modules/lodash/flatMapDeep.js +0 -31
- package/node_modules/lodash/flatMapDepth.js +0 -31
- package/node_modules/lodash/flatten.js +0 -22
- package/node_modules/lodash/flattenDeep.js +0 -25
- package/node_modules/lodash/flattenDepth.js +0 -33
- package/node_modules/lodash/flip.js +0 -28
- package/node_modules/lodash/floor.js +0 -26
- package/node_modules/lodash/flow.js +0 -27
- package/node_modules/lodash/flowRight.js +0 -26
- package/node_modules/lodash/forEach.js +0 -41
- package/node_modules/lodash/forEachRight.js +0 -31
- package/node_modules/lodash/forIn.js +0 -39
- package/node_modules/lodash/forInRight.js +0 -37
- package/node_modules/lodash/forOwn.js +0 -36
- package/node_modules/lodash/forOwnRight.js +0 -34
- package/node_modules/lodash/fp/F.js +0 -1
- package/node_modules/lodash/fp/T.js +0 -1
- package/node_modules/lodash/fp/__.js +0 -1
- package/node_modules/lodash/fp/_baseConvert.js +0 -569
- package/node_modules/lodash/fp/_convertBrowser.js +0 -18
- package/node_modules/lodash/fp/_falseOptions.js +0 -7
- package/node_modules/lodash/fp/_mapping.js +0 -358
- package/node_modules/lodash/fp/_util.js +0 -16
- package/node_modules/lodash/fp/add.js +0 -5
- package/node_modules/lodash/fp/after.js +0 -5
- package/node_modules/lodash/fp/all.js +0 -1
- package/node_modules/lodash/fp/allPass.js +0 -1
- package/node_modules/lodash/fp/always.js +0 -1
- package/node_modules/lodash/fp/any.js +0 -1
- package/node_modules/lodash/fp/anyPass.js +0 -1
- package/node_modules/lodash/fp/apply.js +0 -1
- package/node_modules/lodash/fp/array.js +0 -2
- package/node_modules/lodash/fp/ary.js +0 -5
- package/node_modules/lodash/fp/assign.js +0 -5
- package/node_modules/lodash/fp/assignAll.js +0 -5
- package/node_modules/lodash/fp/assignAllWith.js +0 -5
- package/node_modules/lodash/fp/assignIn.js +0 -5
- package/node_modules/lodash/fp/assignInAll.js +0 -5
- package/node_modules/lodash/fp/assignInAllWith.js +0 -5
- package/node_modules/lodash/fp/assignInWith.js +0 -5
- package/node_modules/lodash/fp/assignWith.js +0 -5
- package/node_modules/lodash/fp/assoc.js +0 -1
- package/node_modules/lodash/fp/assocPath.js +0 -1
- package/node_modules/lodash/fp/at.js +0 -5
- package/node_modules/lodash/fp/attempt.js +0 -5
- package/node_modules/lodash/fp/before.js +0 -5
- package/node_modules/lodash/fp/bind.js +0 -5
- package/node_modules/lodash/fp/bindAll.js +0 -5
- package/node_modules/lodash/fp/bindKey.js +0 -5
- package/node_modules/lodash/fp/camelCase.js +0 -5
- package/node_modules/lodash/fp/capitalize.js +0 -5
- package/node_modules/lodash/fp/castArray.js +0 -5
- package/node_modules/lodash/fp/ceil.js +0 -5
- package/node_modules/lodash/fp/chain.js +0 -5
- package/node_modules/lodash/fp/chunk.js +0 -5
- package/node_modules/lodash/fp/clamp.js +0 -5
- package/node_modules/lodash/fp/clone.js +0 -5
- package/node_modules/lodash/fp/cloneDeep.js +0 -5
- package/node_modules/lodash/fp/cloneDeepWith.js +0 -5
- package/node_modules/lodash/fp/cloneWith.js +0 -5
- package/node_modules/lodash/fp/collection.js +0 -2
- package/node_modules/lodash/fp/commit.js +0 -5
- package/node_modules/lodash/fp/compact.js +0 -5
- package/node_modules/lodash/fp/complement.js +0 -1
- package/node_modules/lodash/fp/compose.js +0 -1
- package/node_modules/lodash/fp/concat.js +0 -5
- package/node_modules/lodash/fp/cond.js +0 -5
- package/node_modules/lodash/fp/conforms.js +0 -1
- package/node_modules/lodash/fp/conformsTo.js +0 -5
- package/node_modules/lodash/fp/constant.js +0 -5
- package/node_modules/lodash/fp/contains.js +0 -1
- package/node_modules/lodash/fp/convert.js +0 -18
- package/node_modules/lodash/fp/countBy.js +0 -5
- package/node_modules/lodash/fp/create.js +0 -5
- package/node_modules/lodash/fp/curry.js +0 -5
- package/node_modules/lodash/fp/curryN.js +0 -5
- package/node_modules/lodash/fp/curryRight.js +0 -5
- package/node_modules/lodash/fp/curryRightN.js +0 -5
- package/node_modules/lodash/fp/date.js +0 -2
- package/node_modules/lodash/fp/debounce.js +0 -5
- package/node_modules/lodash/fp/deburr.js +0 -5
- package/node_modules/lodash/fp/defaultTo.js +0 -5
- package/node_modules/lodash/fp/defaults.js +0 -5
- package/node_modules/lodash/fp/defaultsAll.js +0 -5
- package/node_modules/lodash/fp/defaultsDeep.js +0 -5
- package/node_modules/lodash/fp/defaultsDeepAll.js +0 -5
- package/node_modules/lodash/fp/defer.js +0 -5
- package/node_modules/lodash/fp/delay.js +0 -5
- package/node_modules/lodash/fp/difference.js +0 -5
- package/node_modules/lodash/fp/differenceBy.js +0 -5
- package/node_modules/lodash/fp/differenceWith.js +0 -5
- package/node_modules/lodash/fp/dissoc.js +0 -1
- package/node_modules/lodash/fp/dissocPath.js +0 -1
- package/node_modules/lodash/fp/divide.js +0 -5
- package/node_modules/lodash/fp/drop.js +0 -5
- package/node_modules/lodash/fp/dropLast.js +0 -1
- package/node_modules/lodash/fp/dropLastWhile.js +0 -1
- package/node_modules/lodash/fp/dropRight.js +0 -5
- package/node_modules/lodash/fp/dropRightWhile.js +0 -5
- package/node_modules/lodash/fp/dropWhile.js +0 -5
- package/node_modules/lodash/fp/each.js +0 -1
- package/node_modules/lodash/fp/eachRight.js +0 -1
- package/node_modules/lodash/fp/endsWith.js +0 -5
- package/node_modules/lodash/fp/entries.js +0 -1
- package/node_modules/lodash/fp/entriesIn.js +0 -1
- package/node_modules/lodash/fp/eq.js +0 -5
- package/node_modules/lodash/fp/equals.js +0 -1
- package/node_modules/lodash/fp/escape.js +0 -5
- package/node_modules/lodash/fp/escapeRegExp.js +0 -5
- package/node_modules/lodash/fp/every.js +0 -5
- package/node_modules/lodash/fp/extend.js +0 -1
- package/node_modules/lodash/fp/extendAll.js +0 -1
- package/node_modules/lodash/fp/extendAllWith.js +0 -1
- package/node_modules/lodash/fp/extendWith.js +0 -1
- package/node_modules/lodash/fp/fill.js +0 -5
- package/node_modules/lodash/fp/filter.js +0 -5
- package/node_modules/lodash/fp/find.js +0 -5
- package/node_modules/lodash/fp/findFrom.js +0 -5
- package/node_modules/lodash/fp/findIndex.js +0 -5
- package/node_modules/lodash/fp/findIndexFrom.js +0 -5
- package/node_modules/lodash/fp/findKey.js +0 -5
- package/node_modules/lodash/fp/findLast.js +0 -5
- package/node_modules/lodash/fp/findLastFrom.js +0 -5
- package/node_modules/lodash/fp/findLastIndex.js +0 -5
- package/node_modules/lodash/fp/findLastIndexFrom.js +0 -5
- package/node_modules/lodash/fp/findLastKey.js +0 -5
- package/node_modules/lodash/fp/first.js +0 -1
- package/node_modules/lodash/fp/flatMap.js +0 -5
- package/node_modules/lodash/fp/flatMapDeep.js +0 -5
- package/node_modules/lodash/fp/flatMapDepth.js +0 -5
- package/node_modules/lodash/fp/flatten.js +0 -5
- package/node_modules/lodash/fp/flattenDeep.js +0 -5
- package/node_modules/lodash/fp/flattenDepth.js +0 -5
- package/node_modules/lodash/fp/flip.js +0 -5
- package/node_modules/lodash/fp/floor.js +0 -5
- package/node_modules/lodash/fp/flow.js +0 -5
- package/node_modules/lodash/fp/flowRight.js +0 -5
- package/node_modules/lodash/fp/forEach.js +0 -5
- package/node_modules/lodash/fp/forEachRight.js +0 -5
- package/node_modules/lodash/fp/forIn.js +0 -5
- package/node_modules/lodash/fp/forInRight.js +0 -5
- package/node_modules/lodash/fp/forOwn.js +0 -5
- package/node_modules/lodash/fp/forOwnRight.js +0 -5
- package/node_modules/lodash/fp/fromPairs.js +0 -5
- package/node_modules/lodash/fp/function.js +0 -2
- package/node_modules/lodash/fp/functions.js +0 -5
- package/node_modules/lodash/fp/functionsIn.js +0 -5
- package/node_modules/lodash/fp/get.js +0 -5
- package/node_modules/lodash/fp/getOr.js +0 -5
- package/node_modules/lodash/fp/groupBy.js +0 -5
- package/node_modules/lodash/fp/gt.js +0 -5
- package/node_modules/lodash/fp/gte.js +0 -5
- package/node_modules/lodash/fp/has.js +0 -5
- package/node_modules/lodash/fp/hasIn.js +0 -5
- package/node_modules/lodash/fp/head.js +0 -5
- package/node_modules/lodash/fp/identical.js +0 -1
- package/node_modules/lodash/fp/identity.js +0 -5
- package/node_modules/lodash/fp/inRange.js +0 -5
- package/node_modules/lodash/fp/includes.js +0 -5
- package/node_modules/lodash/fp/includesFrom.js +0 -5
- package/node_modules/lodash/fp/indexBy.js +0 -1
- package/node_modules/lodash/fp/indexOf.js +0 -5
- package/node_modules/lodash/fp/indexOfFrom.js +0 -5
- package/node_modules/lodash/fp/init.js +0 -1
- package/node_modules/lodash/fp/initial.js +0 -5
- package/node_modules/lodash/fp/intersection.js +0 -5
- package/node_modules/lodash/fp/intersectionBy.js +0 -5
- package/node_modules/lodash/fp/intersectionWith.js +0 -5
- package/node_modules/lodash/fp/invert.js +0 -5
- package/node_modules/lodash/fp/invertBy.js +0 -5
- package/node_modules/lodash/fp/invertObj.js +0 -1
- package/node_modules/lodash/fp/invoke.js +0 -5
- package/node_modules/lodash/fp/invokeArgs.js +0 -5
- package/node_modules/lodash/fp/invokeArgsMap.js +0 -5
- package/node_modules/lodash/fp/invokeMap.js +0 -5
- package/node_modules/lodash/fp/isArguments.js +0 -5
- package/node_modules/lodash/fp/isArray.js +0 -5
- package/node_modules/lodash/fp/isArrayBuffer.js +0 -5
- package/node_modules/lodash/fp/isArrayLike.js +0 -5
- package/node_modules/lodash/fp/isArrayLikeObject.js +0 -5
- package/node_modules/lodash/fp/isBoolean.js +0 -5
- package/node_modules/lodash/fp/isBuffer.js +0 -5
- package/node_modules/lodash/fp/isDate.js +0 -5
- package/node_modules/lodash/fp/isElement.js +0 -5
- package/node_modules/lodash/fp/isEmpty.js +0 -5
- package/node_modules/lodash/fp/isEqual.js +0 -5
- package/node_modules/lodash/fp/isEqualWith.js +0 -5
- package/node_modules/lodash/fp/isError.js +0 -5
- package/node_modules/lodash/fp/isFinite.js +0 -5
- package/node_modules/lodash/fp/isFunction.js +0 -5
- package/node_modules/lodash/fp/isInteger.js +0 -5
- package/node_modules/lodash/fp/isLength.js +0 -5
- package/node_modules/lodash/fp/isMap.js +0 -5
- package/node_modules/lodash/fp/isMatch.js +0 -5
- package/node_modules/lodash/fp/isMatchWith.js +0 -5
- package/node_modules/lodash/fp/isNaN.js +0 -5
- package/node_modules/lodash/fp/isNative.js +0 -5
- package/node_modules/lodash/fp/isNil.js +0 -5
- package/node_modules/lodash/fp/isNull.js +0 -5
- package/node_modules/lodash/fp/isNumber.js +0 -5
- package/node_modules/lodash/fp/isObject.js +0 -5
- package/node_modules/lodash/fp/isObjectLike.js +0 -5
- package/node_modules/lodash/fp/isPlainObject.js +0 -5
- package/node_modules/lodash/fp/isRegExp.js +0 -5
- package/node_modules/lodash/fp/isSafeInteger.js +0 -5
- package/node_modules/lodash/fp/isSet.js +0 -5
- package/node_modules/lodash/fp/isString.js +0 -5
- package/node_modules/lodash/fp/isSymbol.js +0 -5
- package/node_modules/lodash/fp/isTypedArray.js +0 -5
- package/node_modules/lodash/fp/isUndefined.js +0 -5
- package/node_modules/lodash/fp/isWeakMap.js +0 -5
- package/node_modules/lodash/fp/isWeakSet.js +0 -5
- package/node_modules/lodash/fp/iteratee.js +0 -5
- package/node_modules/lodash/fp/join.js +0 -5
- package/node_modules/lodash/fp/juxt.js +0 -1
- package/node_modules/lodash/fp/kebabCase.js +0 -5
- package/node_modules/lodash/fp/keyBy.js +0 -5
- package/node_modules/lodash/fp/keys.js +0 -5
- package/node_modules/lodash/fp/keysIn.js +0 -5
- package/node_modules/lodash/fp/lang.js +0 -2
- package/node_modules/lodash/fp/last.js +0 -5
- package/node_modules/lodash/fp/lastIndexOf.js +0 -5
- package/node_modules/lodash/fp/lastIndexOfFrom.js +0 -5
- package/node_modules/lodash/fp/lowerCase.js +0 -5
- package/node_modules/lodash/fp/lowerFirst.js +0 -5
- package/node_modules/lodash/fp/lt.js +0 -5
- package/node_modules/lodash/fp/lte.js +0 -5
- package/node_modules/lodash/fp/map.js +0 -5
- package/node_modules/lodash/fp/mapKeys.js +0 -5
- package/node_modules/lodash/fp/mapValues.js +0 -5
- package/node_modules/lodash/fp/matches.js +0 -1
- package/node_modules/lodash/fp/matchesProperty.js +0 -5
- package/node_modules/lodash/fp/math.js +0 -2
- package/node_modules/lodash/fp/max.js +0 -5
- package/node_modules/lodash/fp/maxBy.js +0 -5
- package/node_modules/lodash/fp/mean.js +0 -5
- package/node_modules/lodash/fp/meanBy.js +0 -5
- package/node_modules/lodash/fp/memoize.js +0 -5
- package/node_modules/lodash/fp/merge.js +0 -5
- package/node_modules/lodash/fp/mergeAll.js +0 -5
- package/node_modules/lodash/fp/mergeAllWith.js +0 -5
- package/node_modules/lodash/fp/mergeWith.js +0 -5
- package/node_modules/lodash/fp/method.js +0 -5
- package/node_modules/lodash/fp/methodOf.js +0 -5
- package/node_modules/lodash/fp/min.js +0 -5
- package/node_modules/lodash/fp/minBy.js +0 -5
- package/node_modules/lodash/fp/mixin.js +0 -5
- package/node_modules/lodash/fp/multiply.js +0 -5
- package/node_modules/lodash/fp/nAry.js +0 -1
- package/node_modules/lodash/fp/negate.js +0 -5
- package/node_modules/lodash/fp/next.js +0 -5
- package/node_modules/lodash/fp/noop.js +0 -5
- package/node_modules/lodash/fp/now.js +0 -5
- package/node_modules/lodash/fp/nth.js +0 -5
- package/node_modules/lodash/fp/nthArg.js +0 -5
- package/node_modules/lodash/fp/number.js +0 -2
- package/node_modules/lodash/fp/object.js +0 -2
- package/node_modules/lodash/fp/omit.js +0 -5
- package/node_modules/lodash/fp/omitAll.js +0 -1
- package/node_modules/lodash/fp/omitBy.js +0 -5
- package/node_modules/lodash/fp/once.js +0 -5
- package/node_modules/lodash/fp/orderBy.js +0 -5
- package/node_modules/lodash/fp/over.js +0 -5
- package/node_modules/lodash/fp/overArgs.js +0 -5
- package/node_modules/lodash/fp/overEvery.js +0 -5
- package/node_modules/lodash/fp/overSome.js +0 -5
- package/node_modules/lodash/fp/pad.js +0 -5
- package/node_modules/lodash/fp/padChars.js +0 -5
- package/node_modules/lodash/fp/padCharsEnd.js +0 -5
- package/node_modules/lodash/fp/padCharsStart.js +0 -5
- package/node_modules/lodash/fp/padEnd.js +0 -5
- package/node_modules/lodash/fp/padStart.js +0 -5
- package/node_modules/lodash/fp/parseInt.js +0 -5
- package/node_modules/lodash/fp/partial.js +0 -5
- package/node_modules/lodash/fp/partialRight.js +0 -5
- package/node_modules/lodash/fp/partition.js +0 -5
- package/node_modules/lodash/fp/path.js +0 -1
- package/node_modules/lodash/fp/pathEq.js +0 -1
- package/node_modules/lodash/fp/pathOr.js +0 -1
- package/node_modules/lodash/fp/paths.js +0 -1
- package/node_modules/lodash/fp/pick.js +0 -5
- package/node_modules/lodash/fp/pickAll.js +0 -1
- package/node_modules/lodash/fp/pickBy.js +0 -5
- package/node_modules/lodash/fp/pipe.js +0 -1
- package/node_modules/lodash/fp/placeholder.js +0 -6
- package/node_modules/lodash/fp/plant.js +0 -5
- package/node_modules/lodash/fp/pluck.js +0 -1
- package/node_modules/lodash/fp/prop.js +0 -1
- package/node_modules/lodash/fp/propEq.js +0 -1
- package/node_modules/lodash/fp/propOr.js +0 -1
- package/node_modules/lodash/fp/property.js +0 -1
- package/node_modules/lodash/fp/propertyOf.js +0 -5
- package/node_modules/lodash/fp/props.js +0 -1
- package/node_modules/lodash/fp/pull.js +0 -5
- package/node_modules/lodash/fp/pullAll.js +0 -5
- package/node_modules/lodash/fp/pullAllBy.js +0 -5
- package/node_modules/lodash/fp/pullAllWith.js +0 -5
- package/node_modules/lodash/fp/pullAt.js +0 -5
- package/node_modules/lodash/fp/random.js +0 -5
- package/node_modules/lodash/fp/range.js +0 -5
- package/node_modules/lodash/fp/rangeRight.js +0 -5
- package/node_modules/lodash/fp/rangeStep.js +0 -5
- package/node_modules/lodash/fp/rangeStepRight.js +0 -5
- package/node_modules/lodash/fp/rearg.js +0 -5
- package/node_modules/lodash/fp/reduce.js +0 -5
- package/node_modules/lodash/fp/reduceRight.js +0 -5
- package/node_modules/lodash/fp/reject.js +0 -5
- package/node_modules/lodash/fp/remove.js +0 -5
- package/node_modules/lodash/fp/repeat.js +0 -5
- package/node_modules/lodash/fp/replace.js +0 -5
- package/node_modules/lodash/fp/rest.js +0 -5
- package/node_modules/lodash/fp/restFrom.js +0 -5
- package/node_modules/lodash/fp/result.js +0 -5
- package/node_modules/lodash/fp/reverse.js +0 -5
- package/node_modules/lodash/fp/round.js +0 -5
- package/node_modules/lodash/fp/sample.js +0 -5
- package/node_modules/lodash/fp/sampleSize.js +0 -5
- package/node_modules/lodash/fp/seq.js +0 -2
- package/node_modules/lodash/fp/set.js +0 -5
- package/node_modules/lodash/fp/setWith.js +0 -5
- package/node_modules/lodash/fp/shuffle.js +0 -5
- package/node_modules/lodash/fp/size.js +0 -5
- package/node_modules/lodash/fp/slice.js +0 -5
- package/node_modules/lodash/fp/snakeCase.js +0 -5
- package/node_modules/lodash/fp/some.js +0 -5
- package/node_modules/lodash/fp/sortBy.js +0 -5
- package/node_modules/lodash/fp/sortedIndex.js +0 -5
- package/node_modules/lodash/fp/sortedIndexBy.js +0 -5
- package/node_modules/lodash/fp/sortedIndexOf.js +0 -5
- package/node_modules/lodash/fp/sortedLastIndex.js +0 -5
- package/node_modules/lodash/fp/sortedLastIndexBy.js +0 -5
- package/node_modules/lodash/fp/sortedLastIndexOf.js +0 -5
- package/node_modules/lodash/fp/sortedUniq.js +0 -5
- package/node_modules/lodash/fp/sortedUniqBy.js +0 -5
- package/node_modules/lodash/fp/split.js +0 -5
- package/node_modules/lodash/fp/spread.js +0 -5
- package/node_modules/lodash/fp/spreadFrom.js +0 -5
- package/node_modules/lodash/fp/startCase.js +0 -5
- package/node_modules/lodash/fp/startsWith.js +0 -5
- package/node_modules/lodash/fp/string.js +0 -2
- package/node_modules/lodash/fp/stubArray.js +0 -5
- package/node_modules/lodash/fp/stubFalse.js +0 -5
- package/node_modules/lodash/fp/stubObject.js +0 -5
- package/node_modules/lodash/fp/stubString.js +0 -5
- package/node_modules/lodash/fp/stubTrue.js +0 -5
- package/node_modules/lodash/fp/subtract.js +0 -5
- package/node_modules/lodash/fp/sum.js +0 -5
- package/node_modules/lodash/fp/sumBy.js +0 -5
- package/node_modules/lodash/fp/symmetricDifference.js +0 -1
- package/node_modules/lodash/fp/symmetricDifferenceBy.js +0 -1
- package/node_modules/lodash/fp/symmetricDifferenceWith.js +0 -1
- package/node_modules/lodash/fp/tail.js +0 -5
- package/node_modules/lodash/fp/take.js +0 -5
- package/node_modules/lodash/fp/takeLast.js +0 -1
- package/node_modules/lodash/fp/takeLastWhile.js +0 -1
- package/node_modules/lodash/fp/takeRight.js +0 -5
- package/node_modules/lodash/fp/takeRightWhile.js +0 -5
- package/node_modules/lodash/fp/takeWhile.js +0 -5
- package/node_modules/lodash/fp/tap.js +0 -5
- package/node_modules/lodash/fp/template.js +0 -5
- package/node_modules/lodash/fp/templateSettings.js +0 -5
- package/node_modules/lodash/fp/throttle.js +0 -5
- package/node_modules/lodash/fp/thru.js +0 -5
- package/node_modules/lodash/fp/times.js +0 -5
- package/node_modules/lodash/fp/toArray.js +0 -5
- package/node_modules/lodash/fp/toFinite.js +0 -5
- package/node_modules/lodash/fp/toInteger.js +0 -5
- package/node_modules/lodash/fp/toIterator.js +0 -5
- package/node_modules/lodash/fp/toJSON.js +0 -5
- package/node_modules/lodash/fp/toLength.js +0 -5
- package/node_modules/lodash/fp/toLower.js +0 -5
- package/node_modules/lodash/fp/toNumber.js +0 -5
- package/node_modules/lodash/fp/toPairs.js +0 -5
- package/node_modules/lodash/fp/toPairsIn.js +0 -5
- package/node_modules/lodash/fp/toPath.js +0 -5
- package/node_modules/lodash/fp/toPlainObject.js +0 -5
- package/node_modules/lodash/fp/toSafeInteger.js +0 -5
- package/node_modules/lodash/fp/toString.js +0 -5
- package/node_modules/lodash/fp/toUpper.js +0 -5
- package/node_modules/lodash/fp/transform.js +0 -5
- package/node_modules/lodash/fp/trim.js +0 -5
- package/node_modules/lodash/fp/trimChars.js +0 -5
- package/node_modules/lodash/fp/trimCharsEnd.js +0 -5
- package/node_modules/lodash/fp/trimCharsStart.js +0 -5
- package/node_modules/lodash/fp/trimEnd.js +0 -5
- package/node_modules/lodash/fp/trimStart.js +0 -5
- package/node_modules/lodash/fp/truncate.js +0 -5
- package/node_modules/lodash/fp/unapply.js +0 -1
- package/node_modules/lodash/fp/unary.js +0 -5
- package/node_modules/lodash/fp/unescape.js +0 -5
- package/node_modules/lodash/fp/union.js +0 -5
- package/node_modules/lodash/fp/unionBy.js +0 -5
- package/node_modules/lodash/fp/unionWith.js +0 -5
- package/node_modules/lodash/fp/uniq.js +0 -5
- package/node_modules/lodash/fp/uniqBy.js +0 -5
- package/node_modules/lodash/fp/uniqWith.js +0 -5
- package/node_modules/lodash/fp/uniqueId.js +0 -5
- package/node_modules/lodash/fp/unnest.js +0 -1
- package/node_modules/lodash/fp/unset.js +0 -5
- package/node_modules/lodash/fp/unzip.js +0 -5
- package/node_modules/lodash/fp/unzipWith.js +0 -5
- package/node_modules/lodash/fp/update.js +0 -5
- package/node_modules/lodash/fp/updateWith.js +0 -5
- package/node_modules/lodash/fp/upperCase.js +0 -5
- package/node_modules/lodash/fp/upperFirst.js +0 -5
- package/node_modules/lodash/fp/useWith.js +0 -1
- package/node_modules/lodash/fp/util.js +0 -2
- package/node_modules/lodash/fp/value.js +0 -5
- package/node_modules/lodash/fp/valueOf.js +0 -5
- package/node_modules/lodash/fp/values.js +0 -5
- package/node_modules/lodash/fp/valuesIn.js +0 -5
- package/node_modules/lodash/fp/where.js +0 -1
- package/node_modules/lodash/fp/whereEq.js +0 -1
- package/node_modules/lodash/fp/without.js +0 -5
- package/node_modules/lodash/fp/words.js +0 -5
- package/node_modules/lodash/fp/wrap.js +0 -5
- package/node_modules/lodash/fp/wrapperAt.js +0 -5
- package/node_modules/lodash/fp/wrapperChain.js +0 -5
- package/node_modules/lodash/fp/wrapperLodash.js +0 -5
- package/node_modules/lodash/fp/wrapperReverse.js +0 -5
- package/node_modules/lodash/fp/wrapperValue.js +0 -5
- package/node_modules/lodash/fp/xor.js +0 -5
- package/node_modules/lodash/fp/xorBy.js +0 -5
- package/node_modules/lodash/fp/xorWith.js +0 -5
- package/node_modules/lodash/fp/zip.js +0 -5
- package/node_modules/lodash/fp/zipAll.js +0 -5
- package/node_modules/lodash/fp/zipObj.js +0 -1
- package/node_modules/lodash/fp/zipObject.js +0 -5
- package/node_modules/lodash/fp/zipObjectDeep.js +0 -5
- package/node_modules/lodash/fp/zipWith.js +0 -5
- package/node_modules/lodash/fp.js +0 -2
- package/node_modules/lodash/fromPairs.js +0 -28
- package/node_modules/lodash/function.js +0 -25
- package/node_modules/lodash/functions.js +0 -31
- package/node_modules/lodash/functionsIn.js +0 -31
- package/node_modules/lodash/get.js +0 -33
- package/node_modules/lodash/groupBy.js +0 -41
- package/node_modules/lodash/gt.js +0 -29
- package/node_modules/lodash/gte.js +0 -30
- package/node_modules/lodash/has.js +0 -35
- package/node_modules/lodash/hasIn.js +0 -34
- package/node_modules/lodash/head.js +0 -23
- package/node_modules/lodash/identity.js +0 -21
- package/node_modules/lodash/inRange.js +0 -55
- package/node_modules/lodash/includes.js +0 -53
- package/node_modules/lodash/index.js +0 -1
- package/node_modules/lodash/indexOf.js +0 -42
- package/node_modules/lodash/initial.js +0 -22
- package/node_modules/lodash/intersection.js +0 -30
- package/node_modules/lodash/intersectionBy.js +0 -45
- package/node_modules/lodash/intersectionWith.js +0 -41
- package/node_modules/lodash/invert.js +0 -42
- package/node_modules/lodash/invertBy.js +0 -56
- package/node_modules/lodash/invoke.js +0 -24
- package/node_modules/lodash/invokeMap.js +0 -41
- package/node_modules/lodash/isArguments.js +0 -36
- package/node_modules/lodash/isArray.js +0 -26
- package/node_modules/lodash/isArrayBuffer.js +0 -27
- package/node_modules/lodash/isArrayLike.js +0 -33
- package/node_modules/lodash/isArrayLikeObject.js +0 -33
- package/node_modules/lodash/isBoolean.js +0 -29
- package/node_modules/lodash/isBuffer.js +0 -38
- package/node_modules/lodash/isDate.js +0 -27
- package/node_modules/lodash/isElement.js +0 -25
- package/node_modules/lodash/isEmpty.js +0 -77
- package/node_modules/lodash/isEqual.js +0 -35
- package/node_modules/lodash/isEqualWith.js +0 -41
- package/node_modules/lodash/isError.js +0 -36
- package/node_modules/lodash/isFinite.js +0 -36
- package/node_modules/lodash/isFunction.js +0 -37
- package/node_modules/lodash/isInteger.js +0 -33
- package/node_modules/lodash/isLength.js +0 -35
- package/node_modules/lodash/isMap.js +0 -27
- package/node_modules/lodash/isMatch.js +0 -36
- package/node_modules/lodash/isMatchWith.js +0 -41
- package/node_modules/lodash/isNaN.js +0 -38
- package/node_modules/lodash/isNative.js +0 -40
- package/node_modules/lodash/isNil.js +0 -25
- package/node_modules/lodash/isNull.js +0 -22
- package/node_modules/lodash/isNumber.js +0 -38
- package/node_modules/lodash/isObject.js +0 -31
- package/node_modules/lodash/isObjectLike.js +0 -29
- package/node_modules/lodash/isPlainObject.js +0 -62
- package/node_modules/lodash/isRegExp.js +0 -27
- package/node_modules/lodash/isSafeInteger.js +0 -37
- package/node_modules/lodash/isSet.js +0 -27
- package/node_modules/lodash/isString.js +0 -30
- package/node_modules/lodash/isSymbol.js +0 -29
- package/node_modules/lodash/isTypedArray.js +0 -27
- package/node_modules/lodash/isUndefined.js +0 -22
- package/node_modules/lodash/isWeakMap.js +0 -28
- package/node_modules/lodash/isWeakSet.js +0 -28
- package/node_modules/lodash/iteratee.js +0 -53
- package/node_modules/lodash/join.js +0 -26
- package/node_modules/lodash/kebabCase.js +0 -28
- package/node_modules/lodash/keyBy.js +0 -36
- package/node_modules/lodash/keys.js +0 -37
- package/node_modules/lodash/keysIn.js +0 -32
- package/node_modules/lodash/lang.js +0 -58
- package/node_modules/lodash/last.js +0 -20
- package/node_modules/lodash/lastIndexOf.js +0 -46
- package/node_modules/lodash/lodash.js +0 -17209
- package/node_modules/lodash/lodash.min.js +0 -140
- package/node_modules/lodash/lowerCase.js +0 -27
- package/node_modules/lodash/lowerFirst.js +0 -22
- package/node_modules/lodash/lt.js +0 -29
- package/node_modules/lodash/lte.js +0 -30
- package/node_modules/lodash/map.js +0 -53
- package/node_modules/lodash/mapKeys.js +0 -36
- package/node_modules/lodash/mapValues.js +0 -43
- package/node_modules/lodash/matches.js +0 -46
- package/node_modules/lodash/matchesProperty.js +0 -44
- package/node_modules/lodash/math.js +0 -17
- package/node_modules/lodash/max.js +0 -29
- package/node_modules/lodash/maxBy.js +0 -34
- package/node_modules/lodash/mean.js +0 -22
- package/node_modules/lodash/meanBy.js +0 -31
- package/node_modules/lodash/memoize.js +0 -73
- package/node_modules/lodash/merge.js +0 -39
- package/node_modules/lodash/mergeWith.js +0 -39
- package/node_modules/lodash/method.js +0 -34
- package/node_modules/lodash/methodOf.js +0 -33
- package/node_modules/lodash/min.js +0 -29
- package/node_modules/lodash/minBy.js +0 -34
- package/node_modules/lodash/mixin.js +0 -74
- package/node_modules/lodash/multiply.js +0 -22
- package/node_modules/lodash/negate.js +0 -40
- package/node_modules/lodash/next.js +0 -35
- package/node_modules/lodash/noop.js +0 -17
- package/node_modules/lodash/now.js +0 -23
- package/node_modules/lodash/nth.js +0 -29
- package/node_modules/lodash/nthArg.js +0 -32
- package/node_modules/lodash/number.js +0 -5
- package/node_modules/lodash/object.js +0 -49
- package/node_modules/lodash/omit.js +0 -57
- package/node_modules/lodash/omitBy.js +0 -29
- package/node_modules/lodash/once.js +0 -25
- package/node_modules/lodash/orderBy.js +0 -47
- package/node_modules/lodash/over.js +0 -24
- package/node_modules/lodash/overArgs.js +0 -61
- package/node_modules/lodash/overEvery.js +0 -34
- package/node_modules/lodash/overSome.js +0 -37
- package/node_modules/lodash/package.json +0 -17
- package/node_modules/lodash/pad.js +0 -49
- package/node_modules/lodash/padEnd.js +0 -39
- package/node_modules/lodash/padStart.js +0 -39
- package/node_modules/lodash/parseInt.js +0 -43
- package/node_modules/lodash/partial.js +0 -50
- package/node_modules/lodash/partialRight.js +0 -49
- package/node_modules/lodash/partition.js +0 -43
- package/node_modules/lodash/pick.js +0 -25
- package/node_modules/lodash/pickBy.js +0 -37
- package/node_modules/lodash/plant.js +0 -48
- package/node_modules/lodash/property.js +0 -32
- package/node_modules/lodash/propertyOf.js +0 -30
- package/node_modules/lodash/pull.js +0 -29
- package/node_modules/lodash/pullAll.js +0 -29
- package/node_modules/lodash/pullAllBy.js +0 -33
- package/node_modules/lodash/pullAllWith.js +0 -32
- package/node_modules/lodash/pullAt.js +0 -43
- package/node_modules/lodash/random.js +0 -82
- package/node_modules/lodash/range.js +0 -46
- package/node_modules/lodash/rangeRight.js +0 -41
- package/node_modules/lodash/rearg.js +0 -33
- package/node_modules/lodash/reduce.js +0 -51
- package/node_modules/lodash/reduceRight.js +0 -36
- package/node_modules/lodash/reject.js +0 -46
- package/node_modules/lodash/release.md +0 -48
- package/node_modules/lodash/remove.js +0 -53
- package/node_modules/lodash/repeat.js +0 -37
- package/node_modules/lodash/replace.js +0 -29
- package/node_modules/lodash/rest.js +0 -40
- package/node_modules/lodash/result.js +0 -56
- package/node_modules/lodash/reverse.js +0 -34
- package/node_modules/lodash/round.js +0 -26
- package/node_modules/lodash/sample.js +0 -24
- package/node_modules/lodash/sampleSize.js +0 -37
- package/node_modules/lodash/seq.js +0 -16
- package/node_modules/lodash/set.js +0 -35
- package/node_modules/lodash/setWith.js +0 -32
- package/node_modules/lodash/shuffle.js +0 -25
- package/node_modules/lodash/size.js +0 -46
- package/node_modules/lodash/slice.js +0 -37
- package/node_modules/lodash/snakeCase.js +0 -28
- package/node_modules/lodash/some.js +0 -51
- package/node_modules/lodash/sortBy.js +0 -48
- package/node_modules/lodash/sortedIndex.js +0 -24
- package/node_modules/lodash/sortedIndexBy.js +0 -33
- package/node_modules/lodash/sortedIndexOf.js +0 -31
- package/node_modules/lodash/sortedLastIndex.js +0 -25
- package/node_modules/lodash/sortedLastIndexBy.js +0 -33
- package/node_modules/lodash/sortedLastIndexOf.js +0 -31
- package/node_modules/lodash/sortedUniq.js +0 -24
- package/node_modules/lodash/sortedUniqBy.js +0 -26
- package/node_modules/lodash/split.js +0 -52
- package/node_modules/lodash/spread.js +0 -63
- package/node_modules/lodash/startCase.js +0 -29
- package/node_modules/lodash/startsWith.js +0 -39
- package/node_modules/lodash/string.js +0 -33
- package/node_modules/lodash/stubArray.js +0 -23
- package/node_modules/lodash/stubFalse.js +0 -18
- package/node_modules/lodash/stubObject.js +0 -23
- package/node_modules/lodash/stubString.js +0 -18
- package/node_modules/lodash/stubTrue.js +0 -18
- package/node_modules/lodash/subtract.js +0 -22
- package/node_modules/lodash/sum.js +0 -24
- package/node_modules/lodash/sumBy.js +0 -33
- package/node_modules/lodash/tail.js +0 -22
- package/node_modules/lodash/take.js +0 -37
- package/node_modules/lodash/takeRight.js +0 -39
- package/node_modules/lodash/takeRightWhile.js +0 -45
- package/node_modules/lodash/takeWhile.js +0 -45
- package/node_modules/lodash/tap.js +0 -29
- package/node_modules/lodash/template.js +0 -272
- package/node_modules/lodash/templateSettings.js +0 -67
- package/node_modules/lodash/throttle.js +0 -69
- package/node_modules/lodash/thru.js +0 -28
- package/node_modules/lodash/times.js +0 -51
- package/node_modules/lodash/toArray.js +0 -58
- package/node_modules/lodash/toFinite.js +0 -42
- package/node_modules/lodash/toInteger.js +0 -36
- package/node_modules/lodash/toIterator.js +0 -23
- package/node_modules/lodash/toJSON.js +0 -1
- package/node_modules/lodash/toLength.js +0 -38
- package/node_modules/lodash/toLower.js +0 -28
- package/node_modules/lodash/toNumber.js +0 -64
- package/node_modules/lodash/toPairs.js +0 -30
- package/node_modules/lodash/toPairsIn.js +0 -30
- package/node_modules/lodash/toPath.js +0 -33
- package/node_modules/lodash/toPlainObject.js +0 -32
- package/node_modules/lodash/toSafeInteger.js +0 -37
- package/node_modules/lodash/toString.js +0 -28
- package/node_modules/lodash/toUpper.js +0 -28
- package/node_modules/lodash/transform.js +0 -65
- package/node_modules/lodash/trim.js +0 -47
- package/node_modules/lodash/trimEnd.js +0 -41
- package/node_modules/lodash/trimStart.js +0 -43
- package/node_modules/lodash/truncate.js +0 -111
- package/node_modules/lodash/unary.js +0 -22
- package/node_modules/lodash/unescape.js +0 -34
- package/node_modules/lodash/union.js +0 -26
- package/node_modules/lodash/unionBy.js +0 -39
- package/node_modules/lodash/unionWith.js +0 -34
- package/node_modules/lodash/uniq.js +0 -25
- package/node_modules/lodash/uniqBy.js +0 -31
- package/node_modules/lodash/uniqWith.js +0 -28
- package/node_modules/lodash/uniqueId.js +0 -28
- package/node_modules/lodash/unset.js +0 -34
- package/node_modules/lodash/unzip.js +0 -45
- package/node_modules/lodash/unzipWith.js +0 -39
- package/node_modules/lodash/update.js +0 -35
- package/node_modules/lodash/updateWith.js +0 -33
- package/node_modules/lodash/upperCase.js +0 -27
- package/node_modules/lodash/upperFirst.js +0 -22
- package/node_modules/lodash/util.js +0 -34
- package/node_modules/lodash/value.js +0 -1
- package/node_modules/lodash/valueOf.js +0 -1
- package/node_modules/lodash/values.js +0 -34
- package/node_modules/lodash/valuesIn.js +0 -32
- package/node_modules/lodash/without.js +0 -31
- package/node_modules/lodash/words.js +0 -35
- package/node_modules/lodash/wrap.js +0 -30
- package/node_modules/lodash/wrapperAt.js +0 -48
- package/node_modules/lodash/wrapperChain.js +0 -34
- package/node_modules/lodash/wrapperLodash.js +0 -147
- package/node_modules/lodash/wrapperReverse.js +0 -44
- package/node_modules/lodash/wrapperValue.js +0 -21
- package/node_modules/lodash/xor.js +0 -28
- package/node_modules/lodash/xorBy.js +0 -39
- package/node_modules/lodash/xorWith.js +0 -34
- package/node_modules/lodash/zip.js +0 -22
- package/node_modules/lodash/zipObject.js +0 -24
- package/node_modules/lodash/zipObjectDeep.js +0 -23
- package/node_modules/lodash/zipWith.js +0 -32
- package/rollup.config.js +0 -25
- /package/src/{locality.js → locality.ts} +0 -0
- /package/src/{money.js → money.ts} +0 -0
- /package/src/{opportunity.js → opportunity.ts} +0 -0
package/lib/rrule.js
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recurrencesBetweenV2 = exports.recurrencesBetween = exports.recurrenceToTextInTimezone = exports.recurrenceToText = exports.isValidRrule = exports.buildBcRruleString = exports.validateRruleConfigV2 = exports.validateRruleConfig = exports.parse = exports.toRruleStr = exports.toRruleObj = void 0;
|
|
4
|
+
const rrule_1 = require("rrule");
|
|
5
|
+
const luxon_1 = require("luxon");
|
|
6
|
+
const index_1 = require("./rrule/index");
|
|
7
|
+
Object.defineProperty(exports, "toRruleObj", { enumerable: true, get: function () { return index_1.toRruleObj; } });
|
|
8
|
+
Object.defineProperty(exports, "toRruleStr", { enumerable: true, get: function () { return index_1.toRruleStr; } });
|
|
9
|
+
const date_1 = require("./rrule/date");
|
|
10
|
+
const isEmpty = (obj) => {
|
|
11
|
+
if (Array.isArray(obj) || typeof obj === 'string') {
|
|
12
|
+
return obj.length === 0;
|
|
13
|
+
}
|
|
14
|
+
return !obj;
|
|
15
|
+
};
|
|
16
|
+
const omit = (obj, keys) => {
|
|
17
|
+
return Object.fromEntries(Object.entries(obj).filter(([key]) => !keys.includes(key)));
|
|
18
|
+
};
|
|
19
|
+
const omitBy = (obj, predicate) => {
|
|
20
|
+
return Object.fromEntries(Object.entries(obj).filter(([key, value]) => !predicate(value, key)));
|
|
21
|
+
};
|
|
22
|
+
const logError = (...args) => {
|
|
23
|
+
const logger = console.error || console.log;
|
|
24
|
+
logger(...args);
|
|
25
|
+
};
|
|
26
|
+
// Customised recurrenceRule parser for BeCollective
|
|
27
|
+
// We store DURATION in our rules, which are not supported by rrule
|
|
28
|
+
// We need to return this data and also remove it from our rrule configuration before parsing it
|
|
29
|
+
const parse = function parse(str) {
|
|
30
|
+
const icalObj = (0, index_1.toRruleObj)(str);
|
|
31
|
+
const duration = (0, index_1.getDuration)(icalObj);
|
|
32
|
+
// TODO delete unused?
|
|
33
|
+
// const until = icalObj.UNTIL;
|
|
34
|
+
const dtend = icalObj.DTEND;
|
|
35
|
+
const nondurationItems = omit(icalObj, ['DURATION', 'DTEND']);
|
|
36
|
+
const rrule = (0, rrule_1.rrulestr)((0, index_1.toRruleStr)(omitBy(nondurationItems, isEmpty)));
|
|
37
|
+
return { duration, durationString: icalObj.DURATION, rrule, dtend };
|
|
38
|
+
};
|
|
39
|
+
exports.parse = parse;
|
|
40
|
+
const validateRruleConfig = (obj) => {
|
|
41
|
+
const config = obj || {};
|
|
42
|
+
const REQUIRED_FIELDS = [
|
|
43
|
+
{ field: 'DTSTART', name: 'Start time' },
|
|
44
|
+
{ field: 'RRULE:FREQ', name: 'Frequency (Month/Weekly)' },
|
|
45
|
+
{ field: 'INTERVAL', name: 'Interval' },
|
|
46
|
+
{ field: 'UNTIL', name: 'Until' },
|
|
47
|
+
{ field: 'Duration', name: 'Duration' },
|
|
48
|
+
];
|
|
49
|
+
const errors = [];
|
|
50
|
+
REQUIRED_FIELDS.forEach((fieldConfig) => {
|
|
51
|
+
if (!config[fieldConfig.field]) {
|
|
52
|
+
errors.push(`Please enter a ${fieldConfig.name}`);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
if (config.DTSTART && config.UNTIL && luxon_1.DateTime.fromISO(config.DTSTART) > luxon_1.DateTime.fromISO(config.UNTIL)) {
|
|
56
|
+
errors.push('DTSTART must be earlier than or equal to UNTIL');
|
|
57
|
+
}
|
|
58
|
+
return errors;
|
|
59
|
+
};
|
|
60
|
+
exports.validateRruleConfig = validateRruleConfig;
|
|
61
|
+
const validateRruleConfigV2 = (bcRruleInstance) => {
|
|
62
|
+
const rruleInstance = bcRruleInstance.rrule;
|
|
63
|
+
const REQUIRED_RRULE_FIELDS = [
|
|
64
|
+
{ field: 'dtstart', name: 'Start time' },
|
|
65
|
+
{ field: 'interval', name: 'Interval' },
|
|
66
|
+
{ field: 'until', name: 'Until' },
|
|
67
|
+
];
|
|
68
|
+
const REQUIRED_BC_FIELDS = [{ field: 'duration', name: 'Duration' }];
|
|
69
|
+
const REQUIRED_BC_FREQ = {
|
|
70
|
+
field: 'freq',
|
|
71
|
+
name: 'Frequency (Month/Weekly/Yearly)',
|
|
72
|
+
values: [rrule_1.RRule.YEARLY, rrule_1.RRule.WEEKLY, rrule_1.RRule.MONTHLY],
|
|
73
|
+
};
|
|
74
|
+
const errors = [];
|
|
75
|
+
REQUIRED_RRULE_FIELDS.forEach((fieldConfig) => {
|
|
76
|
+
if (!rruleInstance.options[fieldConfig.field]) {
|
|
77
|
+
errors.push(`Please enter a ${fieldConfig.name}`);
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
if (!REQUIRED_BC_FREQ.values.includes(rruleInstance.options[REQUIRED_BC_FREQ.field])) {
|
|
81
|
+
errors.push(`Please enter a ${REQUIRED_BC_FREQ.name}`);
|
|
82
|
+
}
|
|
83
|
+
REQUIRED_BC_FIELDS.forEach((fieldConfig) => {
|
|
84
|
+
if (!bcRruleInstance[fieldConfig.field]) {
|
|
85
|
+
errors.push(`Please enter a ${fieldConfig.name}`);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
if (rruleInstance.options.dtstart &&
|
|
89
|
+
rruleInstance.options.until &&
|
|
90
|
+
luxon_1.DateTime.fromISO(rruleInstance.options.dtstart) > luxon_1.DateTime.fromISO(rruleInstance.options.until)) {
|
|
91
|
+
errors.push('DTSTART must be earlier than or equal to UNTIL');
|
|
92
|
+
}
|
|
93
|
+
return errors;
|
|
94
|
+
};
|
|
95
|
+
exports.validateRruleConfigV2 = validateRruleConfigV2;
|
|
96
|
+
/**
|
|
97
|
+
* a helper function that put offical rrule and becollective rrule fields together
|
|
98
|
+
* @param {Object} rruleInstance an RRule instance.
|
|
99
|
+
* @param {*} duration non rrule standard duration field.
|
|
100
|
+
*/
|
|
101
|
+
const buildBcRruleString = (rruleInstance, duration = '0H') => {
|
|
102
|
+
let rruleString = rruleInstance.toString();
|
|
103
|
+
if (duration) {
|
|
104
|
+
rruleString = `${rruleString};DURATION=${duration}`;
|
|
105
|
+
}
|
|
106
|
+
const bcRrule = (0, exports.parse)(rruleString);
|
|
107
|
+
const errors = (0, exports.validateRruleConfigV2)(bcRrule);
|
|
108
|
+
if (errors.length === 0) {
|
|
109
|
+
return rruleString;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
throw new Error(JSON.stringify(errors));
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
exports.buildBcRruleString = buildBcRruleString;
|
|
116
|
+
const isValidRrule = (obj) => (0, exports.validateRruleConfig)(obj).length === 0;
|
|
117
|
+
exports.isValidRrule = isValidRrule;
|
|
118
|
+
/* === TIMEZONE ISSUES WITH RRULE ===
|
|
119
|
+
|
|
120
|
+
The rrule library does not store, use or account for timezone. The timezone information is lost and this leads to bugs displaying times and with
|
|
121
|
+
generating recurrences. This happens because rrule determines the start time by interpreting DTSTART in the timezone of the runtime
|
|
122
|
+
environment. This is fine when the runtime and an opportunity share the same timezone. However, inconsistencies occur when they
|
|
123
|
+
differ, and daylight savings is introduced.
|
|
124
|
+
|
|
125
|
+
INCONSISTENT START & END TIMES
|
|
126
|
+
-------------------------------------------
|
|
127
|
+
We want to specify a start and end time (5pm - 7pm)
|
|
128
|
+
Technically we need to express this start and end time as UTC timestamps (2017-07-03 T07:00 - 2017-07-03 T09:00)
|
|
129
|
+
|
|
130
|
+
This presents a problem when we interpret rrule strings to display and generate recurrences.
|
|
131
|
+
|
|
132
|
+
Consider that we want a recurrenceRule to apply for ‘Asia/Taipei (+0800 UTC)’ and start at 1500 hours, we would have the following
|
|
133
|
+
UTC timestamp:
|
|
134
|
+
|
|
135
|
+
2017-07-03 T07:00
|
|
136
|
+
|
|
137
|
+
If our runtime is using Australia/Melbourne time, rrule would determine the start time of each recurrence to be at T17:00
|
|
138
|
+
|
|
139
|
+
In Asia/Taipei time, that is T15:00 which is correct
|
|
140
|
+
|
|
141
|
+
However, fast forward to October when daylight savings kicks in for Australia/Melbourne, and suddenly T17:00 translates to T14:00
|
|
142
|
+
in Asia/Taipei.
|
|
143
|
+
|
|
144
|
+
As illustrated above, we need to workaround the rrule library by incorporating timezone information in the way we display and
|
|
145
|
+
generate recurrences.
|
|
146
|
+
|
|
147
|
+
OFF BY ONE DATES
|
|
148
|
+
———————————
|
|
149
|
+
This bug occurs because the start time is determined using runtime’s timezone. When finding recurrences between a set of dates,
|
|
150
|
+
the correct dates and times are found for the runtime’s local timezone. But when the client uses these dates, the timezone
|
|
151
|
+
conversion could cause the date to change.
|
|
152
|
+
|
|
153
|
+
Example generated start time: 2017-10-10 T20:30 UTC
|
|
154
|
+
If a Melbourne client interprets this timestamp, it would translate to: 2017-10-11 T:07:30 AEST
|
|
155
|
+
|
|
156
|
+
So time is correct but date is WRONG
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
--- SUMMARY & TLDR ---;
|
|
160
|
+
The rrule spec causes us to lose timezone information and leads to inconsistent interpretations of DTSTART and UNTIL times. This is
|
|
161
|
+
further complicated by the fact that a rule is parsed and interpreted based on code runtime’s timezone, which means we are
|
|
162
|
+
potentially shuffling and converting things between 3 timezones: UTC -> runtime -> opportunity. Hence we must implement several
|
|
163
|
+
“tricks” so that we ignore the time portion from dates and the date portion from times.
|
|
164
|
+
|
|
165
|
+
***********************************************************/
|
|
166
|
+
// Return correct and consistent human readable values for a recurrenceRule
|
|
167
|
+
// We need to ignore DTSTART date component and use only the time component so start time is updated according to daylight
|
|
168
|
+
// savings
|
|
169
|
+
const recurrenceToText = (recurrenceRule, timezone, isFlexible = false) => {
|
|
170
|
+
const TIME_FORMAT = 'h:mm a';
|
|
171
|
+
try {
|
|
172
|
+
const { duration, rrule: rule } = (0, exports.parse)(recurrenceRule);
|
|
173
|
+
const dtstartToTimezone = luxon_1.DateTime.fromJSDate(rule.origOptions.dtstart).setZone(timezone);
|
|
174
|
+
const untilToTimezone = luxon_1.DateTime.fromJSDate(rule.origOptions.until).setZone(timezone);
|
|
175
|
+
const rrule = new rrule_1.RRule({
|
|
176
|
+
...rule.origOptions,
|
|
177
|
+
dtstart: luxon_1.DateTime.utc(dtstartToTimezone.year, dtstartToTimezone.month, dtstartToTimezone.day, dtstartToTimezone.hour, dtstartToTimezone.minute, dtstartToTimezone.second)
|
|
178
|
+
.toJSDate(),
|
|
179
|
+
tzid: timezone,
|
|
180
|
+
until: luxon_1.DateTime.utc(untilToTimezone.year, untilToTimezone.month, untilToTimezone.day, untilToTimezone.hour, untilToTimezone.minute, untilToTimezone.second)
|
|
181
|
+
.toJSDate(),
|
|
182
|
+
});
|
|
183
|
+
if (isFlexible) {
|
|
184
|
+
const hours = duration / 1000 / 60 / 60;
|
|
185
|
+
let ruleText = rrule.toText();
|
|
186
|
+
if (rule.origOptions.count === 1) {
|
|
187
|
+
// When it is not a repeating rule
|
|
188
|
+
ruleText = ruleText.replace(/every year until/i, 'in total by');
|
|
189
|
+
ruleText = ruleText.replace(/ \(~ approximate\)/i, '');
|
|
190
|
+
}
|
|
191
|
+
return {
|
|
192
|
+
text: `${hours} hours ${ruleText}`,
|
|
193
|
+
timezone,
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
// Get today's start time in the recurrenceRule's timezone, then convert that timestamp to our local time
|
|
197
|
+
const end = dtstartToTimezone.plus(duration);
|
|
198
|
+
return {
|
|
199
|
+
text: rrule.toText().charAt(0).toUpperCase() + rrule.toText().slice(1),
|
|
200
|
+
time: `${dtstartToTimezone.toFormat(TIME_FORMAT)} to ${end.toFormat(TIME_FORMAT)}`,
|
|
201
|
+
timezone,
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
catch (e) {
|
|
205
|
+
return { text: '', time: '', timezone };
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
exports.recurrenceToText = recurrenceToText;
|
|
209
|
+
// Return the text based on the specified timezone
|
|
210
|
+
// This method doesn't convert rrule to it's owner opportunity's timezone
|
|
211
|
+
const recurrenceToTextInTimezone = (recurrenceRule, timezone) => {
|
|
212
|
+
const TIME_FORMAT = 'h:mm A';
|
|
213
|
+
const localTimezone = timezone || 'UTC';
|
|
214
|
+
try {
|
|
215
|
+
const { duration, rrule: rule } = (0, exports.parse)(recurrenceRule);
|
|
216
|
+
const start = luxon_1.DateTime.fromISO((0, index_1.getStartTime)(recurrenceRule, localTimezone), 'HHmm').setZone(localTimezone);
|
|
217
|
+
const end = luxon_1.DateTime.fromISO((0, index_1.getEndTime)(start.toJSDate(), duration)).setZone(localTimezone);
|
|
218
|
+
return {
|
|
219
|
+
text: rule.toText().charAt(0).toUpperCase() + rule.toText().slice(1),
|
|
220
|
+
time: `${start.toFormat(TIME_FORMAT)} to ${end.toFormat(TIME_FORMAT)}`,
|
|
221
|
+
localTimezone,
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
catch (e) {
|
|
225
|
+
return { text: '', time: '', localTimezone };
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
exports.recurrenceToTextInTimezone = recurrenceToTextInTimezone;
|
|
229
|
+
const recurrencesBetween = (fromDate, toDate, recurrenceRule, timezone) => {
|
|
230
|
+
try {
|
|
231
|
+
// We need to deal with time and dates separately because timestamps will be converted and lead to errors
|
|
232
|
+
const time = (0, index_1.getStartTime)(recurrenceRule, timezone);
|
|
233
|
+
const { duration, rrule: rule } = (0, exports.parse)(recurrenceRule);
|
|
234
|
+
const recurrences = rule.between(fromDate, toDate);
|
|
235
|
+
return recurrences.map((start) => {
|
|
236
|
+
// eslint-disable-next-line no-undef
|
|
237
|
+
const fixed = (0, date_1.transpose)(start, time, timezone);
|
|
238
|
+
return {
|
|
239
|
+
from: fixed,
|
|
240
|
+
to: (0, index_1.getEndTime)(fixed, duration),
|
|
241
|
+
};
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
catch (e) {
|
|
245
|
+
logError('Error while generating recurrences between', fromDate.toString(), 'to', toDate.toString());
|
|
246
|
+
logError('RRULE:', recurrenceRule, 'TIMEZONE:', timezone);
|
|
247
|
+
logError('***\n\n', e, '\n\n***');
|
|
248
|
+
return [];
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
exports.recurrencesBetween = recurrencesBetween;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @param {*} rrule
|
|
255
|
+
* @param {*} timezone
|
|
256
|
+
* @param {*} from
|
|
257
|
+
* @param {*} isFlexible
|
|
258
|
+
* @returns an array of date in true utc (DST offset is considered)
|
|
259
|
+
*/
|
|
260
|
+
const recurrencesBetweenV2 = (rrule, timezone, from = new Date(), isFlexible = false) => {
|
|
261
|
+
const { duration, rrule: rule } = (0, exports.parse)(rrule);
|
|
262
|
+
const dtstartToTimezone = luxon_1.DateTime.fromJSDate(rule.origOptions.dtstart).setZone(timezone);
|
|
263
|
+
const untilToTimezone = luxon_1.DateTime.fromJSDate(rule.origOptions.until).setZone(timezone);
|
|
264
|
+
const rruleToConvert = new rrule_1.RRule({
|
|
265
|
+
...rule.origOptions,
|
|
266
|
+
dtstart: luxon_1.DateTime.utc(dtstartToTimezone.year, dtstartToTimezone.month, dtstartToTimezone.day, dtstartToTimezone.hour, dtstartToTimezone.minute, dtstartToTimezone.second).toJSDate(),
|
|
267
|
+
tzid: timezone,
|
|
268
|
+
until: luxon_1.DateTime.utc(untilToTimezone.year, untilToTimezone.month, untilToTimezone.day, untilToTimezone.hour, untilToTimezone.minute, untilToTimezone.second).toJSDate(),
|
|
269
|
+
});
|
|
270
|
+
const occurrences = rruleToConvert
|
|
271
|
+
.all()
|
|
272
|
+
.map((date) => luxon_1.DateTime.fromJSDate(date).toUTC().setZone('local', { keepLocalTime: true }));
|
|
273
|
+
if (!occurrences.length) {
|
|
274
|
+
return [];
|
|
275
|
+
}
|
|
276
|
+
const output = [];
|
|
277
|
+
if (isFlexible) {
|
|
278
|
+
let i = 0;
|
|
279
|
+
occurrences.map(o => {
|
|
280
|
+
output.push({ from: o.toJSDate(), to: o.toJSDate() });
|
|
281
|
+
// update "to" field
|
|
282
|
+
if (i > 0) {
|
|
283
|
+
output[i - 1].to = o.toUTC().minus({ seconds: 1 }).toJSDate();
|
|
284
|
+
}
|
|
285
|
+
if (i === occurrences.length - 1) {
|
|
286
|
+
output[i].to = luxon_1.DateTime.fromJSDate(rule.options.until).toUTC().minus({ seconds: 1 }).toJSDate();
|
|
287
|
+
}
|
|
288
|
+
i++;
|
|
289
|
+
});
|
|
290
|
+
return output.filter(((o) => from ? luxon_1.DateTime.fromJSDate(o.to) > luxon_1.DateTime.fromJSDate(from) : luxon_1.DateTime.fromJSDate(o.to) < luxon_1.DateTime.fromJSDate(rule.options.until)));
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
const output = [];
|
|
294
|
+
occurrences.map(o => {
|
|
295
|
+
output.push({
|
|
296
|
+
from: o.toJSDate(),
|
|
297
|
+
to: o.toUTC().plus(duration).toJSDate(),
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
return output.filter(((o) => from ? luxon_1.DateTime.fromJSDate(o.to) > luxon_1.DateTime.fromJSDate(from) : luxon_1.DateTime.fromJSDate(o.to) < luxon_1.DateTime.fromJSDate(rule.options.until)));
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
exports.recurrencesBetweenV2 = recurrencesBetweenV2;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class FeatureFlag {
|
|
2
|
+
ttl: number;
|
|
3
|
+
expiry: number;
|
|
4
|
+
constructor(ttl?: any);
|
|
5
|
+
isFeatureActive(feature: string, options: {
|
|
6
|
+
env: string;
|
|
7
|
+
region?: string;
|
|
8
|
+
}): Promise<boolean>;
|
|
9
|
+
clearCache(): void;
|
|
10
|
+
setCacheTtl(ttl: number): void;
|
|
11
|
+
}
|
|
12
|
+
export default FeatureFlag;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FeatureFlag = void 0;
|
|
4
|
+
const cache = {
|
|
5
|
+
store: new Map(),
|
|
6
|
+
memoize: async (feature, options) => {
|
|
7
|
+
const stringified = JSON.stringify({ feature, options });
|
|
8
|
+
const response = cache.store.get(stringified);
|
|
9
|
+
if (response) {
|
|
10
|
+
return JSON.parse(response);
|
|
11
|
+
}
|
|
12
|
+
const fetchResponse = await fetchFeatureActive(feature, options);
|
|
13
|
+
cache.store.set(stringified, JSON.stringify(fetchResponse));
|
|
14
|
+
return fetchResponse;
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
const fetchFeatureActive = async (feature, options) => {
|
|
18
|
+
const getFlagByFeatureUrl = `https://lb-central.becollective.com/api/v2/feature-flags/${feature}`;
|
|
19
|
+
let isFeatureActive = false;
|
|
20
|
+
const featureFlags = await fetch(getFlagByFeatureUrl, { method: 'get' });
|
|
21
|
+
const json = await featureFlags.json();
|
|
22
|
+
const environments = json.Environments;
|
|
23
|
+
if (environments) {
|
|
24
|
+
isFeatureActive = environments.includes(options.env);
|
|
25
|
+
}
|
|
26
|
+
return isFeatureActive;
|
|
27
|
+
};
|
|
28
|
+
class FeatureFlag {
|
|
29
|
+
constructor(ttl) {
|
|
30
|
+
this.ttl = ttl || 1000 * 60 * 5; // default to 5 minutes
|
|
31
|
+
this.expiry = Date.now() + ttl;
|
|
32
|
+
}
|
|
33
|
+
async isFeatureActive(feature, options) {
|
|
34
|
+
// Lazy expiration upon function call
|
|
35
|
+
const now = Date.now();
|
|
36
|
+
if (now >= this.expiry) {
|
|
37
|
+
cache.store.clear();
|
|
38
|
+
this.expiry = now + this.ttl;
|
|
39
|
+
}
|
|
40
|
+
return cache.memoize(feature, options);
|
|
41
|
+
}
|
|
42
|
+
clearCache() {
|
|
43
|
+
cache.store.clear();
|
|
44
|
+
}
|
|
45
|
+
setCacheTtl(ttl) {
|
|
46
|
+
this.ttl = ttl;
|
|
47
|
+
this.expiry = Date.now() + ttl;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.FeatureFlag = FeatureFlag;
|
|
51
|
+
exports.default = FeatureFlag;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get current age based on the given birth date
|
|
3
|
+
* @param {string} dateOfBirth
|
|
4
|
+
* @param {string} unit the measurement of the the difference
|
|
5
|
+
* The supported measurements are:
|
|
6
|
+
* years, months, weeks, days, hours, minutes, and seconds.
|
|
7
|
+
* @returns {number} age
|
|
8
|
+
*/
|
|
9
|
+
export declare const getAge: (dateOfBirth: any, unit?: string) => number;
|
|
10
|
+
/**
|
|
11
|
+
* Check if a user requires parent(guardian) consent
|
|
12
|
+
* i.e. Is under the age of 16 years, based on GDPR
|
|
13
|
+
* https://gdpr-info.eu/art-8-gdpr/
|
|
14
|
+
* @param {string} dateOfBirth moment.js compatible date time
|
|
15
|
+
* @returns {boolean}
|
|
16
|
+
* NOTE:
|
|
17
|
+
* We used to not allow child (under 16) to register,
|
|
18
|
+
* and birthdate is not a required field for ghost user
|
|
19
|
+
* So an existing user could have no birthdate, we assume these users are adults
|
|
20
|
+
* TODO:
|
|
21
|
+
* Remove above logic after we migrated all legacy
|
|
22
|
+
* data to have a consistent birthdate property.
|
|
23
|
+
* Then we should throw error if birthdate is not valid
|
|
24
|
+
*/
|
|
25
|
+
export declare const isUnderSixteen: (dateOfBirth: any) => boolean;
|
|
26
|
+
export declare const isUnderAge: (dateOfBirth: any, limit: any, maxAcknowledgedAge?: number | null) => boolean;
|
|
27
|
+
export declare const datesByThemselves: (a: any, b: any) => number;
|
|
28
|
+
export declare const getShiftText: (from: any, to: any, timezone: any) => string;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getShiftText = exports.datesByThemselves = exports.isUnderAge = exports.isUnderSixteen = exports.getAge = void 0;
|
|
4
|
+
const luxon_1 = require("luxon");
|
|
5
|
+
/**
|
|
6
|
+
* Get current age based on the given birth date
|
|
7
|
+
* @param {string} dateOfBirth
|
|
8
|
+
* @param {string} unit the measurement of the the difference
|
|
9
|
+
* The supported measurements are:
|
|
10
|
+
* years, months, weeks, days, hours, minutes, and seconds.
|
|
11
|
+
* @returns {number} age
|
|
12
|
+
*/
|
|
13
|
+
const getAge = (dateOfBirth, unit = 'years') => {
|
|
14
|
+
if (!dateOfBirth) {
|
|
15
|
+
throw new Error('Invalid date');
|
|
16
|
+
}
|
|
17
|
+
const dob = luxon_1.DateTime.fromJSDate(new Date(dateOfBirth));
|
|
18
|
+
if (!dob.isValid) {
|
|
19
|
+
throw new Error('Invalid date');
|
|
20
|
+
}
|
|
21
|
+
const age = dob.diffNow(unit);
|
|
22
|
+
const ageUnit = -age.as(unit);
|
|
23
|
+
// Note: luxon returns scientific notation, ie 6.976154236428209e-9
|
|
24
|
+
return Number(ageUnit.toString().split('.').shift());
|
|
25
|
+
};
|
|
26
|
+
exports.getAge = getAge;
|
|
27
|
+
/**
|
|
28
|
+
* Check if a user requires parent(guardian) consent
|
|
29
|
+
* i.e. Is under the age of 16 years, based on GDPR
|
|
30
|
+
* https://gdpr-info.eu/art-8-gdpr/
|
|
31
|
+
* @param {string} dateOfBirth moment.js compatible date time
|
|
32
|
+
* @returns {boolean}
|
|
33
|
+
* NOTE:
|
|
34
|
+
* We used to not allow child (under 16) to register,
|
|
35
|
+
* and birthdate is not a required field for ghost user
|
|
36
|
+
* So an existing user could have no birthdate, we assume these users are adults
|
|
37
|
+
* TODO:
|
|
38
|
+
* Remove above logic after we migrated all legacy
|
|
39
|
+
* data to have a consistent birthdate property.
|
|
40
|
+
* Then we should throw error if birthdate is not valid
|
|
41
|
+
*/
|
|
42
|
+
const isUnderSixteen = (dateOfBirth) => {
|
|
43
|
+
if (!dateOfBirth || !luxon_1.DateTime.fromJSDate(new Date(dateOfBirth)).isValid) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
const age = (0, exports.getAge)(dateOfBirth);
|
|
47
|
+
return isNaN(age) ? false : age < 16;
|
|
48
|
+
};
|
|
49
|
+
exports.isUnderSixteen = isUnderSixteen;
|
|
50
|
+
const isUnderAge = (dateOfBirth, limit, maxAcknowledgedAge = null) => {
|
|
51
|
+
if ((!dateOfBirth || !luxon_1.DateTime.fromJSDate(new Date(dateOfBirth)).isValid) && !maxAcknowledgedAge) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
if (dateOfBirth) {
|
|
55
|
+
const age = (0, exports.getAge)(dateOfBirth);
|
|
56
|
+
return isNaN(age) ? true : age < limit;
|
|
57
|
+
}
|
|
58
|
+
return maxAcknowledgedAge ? maxAcknowledgedAge < limit : true;
|
|
59
|
+
};
|
|
60
|
+
exports.isUnderAge = isUnderAge;
|
|
61
|
+
const datesByThemselves = (a, b) => {
|
|
62
|
+
if (!a.from)
|
|
63
|
+
return 1;
|
|
64
|
+
return new Date(a.from).getTime() - new Date(b.from).getTime();
|
|
65
|
+
};
|
|
66
|
+
exports.datesByThemselves = datesByThemselves;
|
|
67
|
+
const getShiftText = (from, to, timezone) => {
|
|
68
|
+
try {
|
|
69
|
+
if (!from || !to || !timezone)
|
|
70
|
+
return '';
|
|
71
|
+
const startToTimezone = luxon_1.DateTime.fromJSDate(from).setZone(timezone);
|
|
72
|
+
const endToTimezone = luxon_1.DateTime.fromJSDate(to).setZone(timezone);
|
|
73
|
+
return `${startToTimezone.toFormat('cccc, DD, h:mma')}-${endToTimezone.toFormat('h:mma')}`;
|
|
74
|
+
}
|
|
75
|
+
catch (e) {
|
|
76
|
+
return '';
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
exports.getShiftText = getShiftText;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|