@8ms/helpers 2.4.7 → 2.4.9
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/.yarnrc.yml +1 -0
- package/dist/_class/BaseClass.cjs +29 -0
- package/dist/{index-1SE8er2n.d.mts → _class/BaseClass.d.cts} +1 -12
- package/dist/_class/BaseClass.d.mts +21 -0
- package/dist/_class/BaseClass.mjs +28 -0
- package/dist/_class/BaseNamespace.cjs +21 -0
- package/dist/_class/BaseNamespace.d.cts +12 -0
- package/dist/_class/BaseNamespace.d.mts +12 -0
- package/dist/_class/BaseNamespace.mjs +20 -0
- package/dist/_class/index.cjs +5 -0
- package/dist/_class/index.d.cts +3 -0
- package/dist/_class/index.d.mts +2 -1
- package/dist/_class/index.mjs +2 -57
- package/dist/_virtual/_rolldown/runtime.cjs +25 -0
- package/dist/_virtual/_rolldown/runtime.mjs +26 -0
- package/dist/adverity/adverity.cjs +66 -0
- package/dist/{index-CXrNMYVx.d.mts → adverity/adverity.d.cts} +1 -1
- package/dist/adverity/adverity.d.mts +116 -0
- package/dist/adverity/adverity.mjs +62 -0
- package/dist/adverity/index.cjs +5 -0
- package/dist/adverity/index.d.cts +2 -0
- package/dist/adverity/index.d.mts +1 -1
- package/dist/adverity/index.mjs +1 -61
- package/dist/adverity/server/getJobs.cjs +25 -0
- package/dist/adverity/server/getJobs.d.cts +17 -0
- package/dist/adverity/server/getJobs.d.mts +17 -0
- package/dist/adverity/server/getJobs.mjs +24 -0
- package/dist/adverity/server/index.cjs +3 -0
- package/dist/adverity/server/index.d.cts +2 -0
- package/dist/adverity/server/index.d.mts +1 -17
- package/dist/adverity/server/index.mjs +1 -21
- package/dist/api/ApiResponseClass.cjs +113 -0
- package/dist/{api-DoLMPDFM.d.mts → api/ApiResponseClass.d.cts} +2 -19
- package/dist/api/ApiResponseClass.d.mts +44 -0
- package/dist/api/ApiResponseClass.mjs +112 -0
- package/dist/api/api.cjs +22 -0
- package/dist/api/api.d.cts +21 -0
- package/dist/api/api.d.mts +21 -0
- package/dist/api/api.mjs +18 -0
- package/dist/api/deleteRequest.cjs +23 -0
- package/dist/api/deleteRequest.d.cts +10 -0
- package/dist/api/deleteRequest.d.mts +10 -0
- package/dist/api/deleteRequest.mjs +22 -0
- package/dist/api/functions.cjs +28 -0
- package/dist/api/functions.d.cts +11 -0
- package/dist/api/functions.d.mts +11 -0
- package/dist/api/functions.mjs +22 -0
- package/dist/api/get.cjs +22 -0
- package/dist/api/get.d.cts +9 -0
- package/dist/api/get.d.mts +9 -0
- package/dist/{get-B9XztVOu.mjs → api/get.mjs} +3 -3
- package/dist/api/index.cjs +20 -0
- package/dist/api/index.d.cts +7 -0
- package/dist/api/index.d.mts +6 -2
- package/dist/api/index.mjs +6 -43
- package/dist/api/post.cjs +23 -0
- package/dist/api/post.d.cts +9 -0
- package/dist/api/post.d.mts +9 -0
- package/dist/{post-DiwZvONk.mjs → api/post.mjs} +3 -3
- package/dist/array/array.cjs +13 -0
- package/dist/array/array.d.cts +11 -0
- package/dist/array/array.d.mts +11 -0
- package/dist/array/array.mjs +11 -0
- package/dist/array/index.cjs +4 -0
- package/dist/array/index.d.cts +2 -0
- package/dist/array/index.d.mts +1 -10
- package/dist/array/index.mjs +1 -10
- package/dist/atInternet/atInternet.cjs +18 -0
- package/dist/atInternet/atInternet.d.cts +20 -0
- package/dist/atInternet/atInternet.d.mts +20 -0
- package/dist/atInternet/atInternet.mjs +16 -0
- package/dist/atInternet/index.cjs +3 -0
- package/dist/atInternet/index.d.cts +2 -0
- package/dist/atInternet/index.d.mts +1 -19
- package/dist/atInternet/index.mjs +1 -15
- package/dist/aws/cloudWatchLog/server/AwsCloudWatchLogNamespace.cjs +69 -0
- package/dist/aws/cloudWatchLog/server/AwsCloudWatchLogNamespace.d.cts +33 -0
- package/dist/aws/cloudWatchLog/server/AwsCloudWatchLogNamespace.d.mts +33 -0
- package/dist/aws/cloudWatchLog/server/AwsCloudWatchLogNamespace.mjs +68 -0
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.cjs +14 -0
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.cts +7 -0
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.mts +7 -0
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.mjs +13 -0
- package/dist/aws/cloudWatchLog/server/index.cjs +7 -0
- package/dist/aws/cloudWatchLog/server/index.d.cts +4 -0
- package/dist/aws/cloudWatchLog/server/index.d.mts +3 -47
- package/dist/aws/cloudWatchLog/server/index.mjs +3 -93
- package/dist/aws/cloudWatchLog/server/logEvent.cjs +9 -0
- package/dist/aws/cloudWatchLog/server/logEvent.d.cts +14 -0
- package/dist/aws/cloudWatchLog/server/logEvent.d.mts +14 -0
- package/dist/aws/cloudWatchLog/server/logEvent.mjs +8 -0
- package/dist/aws/cloudWatchMetric/server/AwsCloudWatchMetricNamespace.cjs +41 -0
- package/dist/aws/cloudWatchMetric/server/AwsCloudWatchMetricNamespace.d.cts +20 -0
- package/dist/aws/cloudWatchMetric/server/AwsCloudWatchMetricNamespace.d.mts +20 -0
- package/dist/aws/cloudWatchMetric/server/AwsCloudWatchMetricNamespace.mjs +39 -0
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.cjs +14 -0
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.cts +7 -0
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.mts +7 -0
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.mjs +13 -0
- package/dist/aws/cloudWatchMetric/server/index.cjs +5 -0
- package/dist/aws/cloudWatchMetric/server/index.d.cts +4 -0
- package/dist/aws/cloudWatchMetric/server/index.d.mts +3 -34
- package/dist/aws/cloudWatchMetric/server/index.mjs +2 -49
- package/dist/aws/cloudWatchMetric/server/logMetric.cjs +0 -0
- package/dist/aws/cloudWatchMetric/server/logMetric.d.cts +16 -0
- package/dist/aws/cloudWatchMetric/server/logMetric.d.mts +16 -0
- package/dist/aws/cloudWatchMetric/server/logMetric.mjs +1 -0
- package/dist/aws/ec2/server/AwsEc2Namespace.cjs +39 -0
- package/dist/aws/ec2/server/AwsEc2Namespace.d.cts +15 -0
- package/dist/aws/ec2/server/AwsEc2Namespace.d.mts +15 -0
- package/dist/aws/ec2/server/AwsEc2Namespace.mjs +38 -0
- package/dist/aws/ec2/server/awsEc2.cjs +14 -0
- package/dist/aws/ec2/server/awsEc2.d.cts +7 -0
- package/dist/aws/ec2/server/awsEc2.d.mts +7 -0
- package/dist/aws/ec2/server/awsEc2.mjs +13 -0
- package/dist/aws/ec2/server/index.cjs +5 -0
- package/dist/aws/ec2/server/index.d.cts +3 -0
- package/dist/aws/ec2/server/index.d.mts +2 -17
- package/dist/aws/ec2/server/index.mjs +2 -44
- package/dist/aws/ecs/server/AwsEcsNamespace.cjs +89 -0
- package/dist/aws/ecs/server/AwsEcsNamespace.d.cts +56 -0
- package/dist/aws/ecs/server/AwsEcsNamespace.d.mts +56 -0
- package/dist/aws/ecs/server/AwsEcsNamespace.mjs +88 -0
- package/dist/aws/ecs/server/awsEcs.cjs +14 -0
- package/dist/aws/ecs/server/awsEcs.d.cts +7 -0
- package/dist/aws/ecs/server/awsEcs.d.mts +7 -0
- package/dist/aws/ecs/server/awsEcs.mjs +13 -0
- package/dist/aws/ecs/server/index.cjs +5 -0
- package/dist/aws/ecs/server/index.d.cts +3 -0
- package/dist/aws/ecs/server/index.d.mts +2 -58
- package/dist/aws/ecs/server/index.mjs +2 -109
- package/dist/aws/glue/server/AwsGlueNamespace.cjs +26 -0
- package/dist/aws/glue/server/AwsGlueNamespace.d.cts +16 -0
- package/dist/aws/glue/server/AwsGlueNamespace.d.mts +16 -0
- package/dist/aws/glue/server/AwsGlueNamespace.mjs +25 -0
- package/dist/aws/glue/server/awsGlue.cjs +14 -0
- package/dist/aws/glue/server/awsGlue.d.cts +7 -0
- package/dist/aws/glue/server/awsGlue.d.mts +7 -0
- package/dist/aws/glue/server/awsGlue.mjs +13 -0
- package/dist/aws/glue/server/index.cjs +5 -0
- package/dist/aws/glue/server/index.d.cts +3 -0
- package/dist/aws/glue/server/index.d.mts +2 -18
- package/dist/aws/glue/server/index.mjs +2 -32
- package/dist/aws/lambda/server/AwsLambdaNamespace.cjs +43 -0
- package/dist/aws/lambda/server/AwsLambdaNamespace.d.cts +24 -0
- package/dist/aws/lambda/server/AwsLambdaNamespace.d.mts +24 -0
- package/dist/aws/lambda/server/AwsLambdaNamespace.mjs +42 -0
- package/dist/aws/lambda/server/awsLambda.cjs +18 -0
- package/dist/aws/lambda/server/awsLambda.d.cts +8 -0
- package/dist/aws/lambda/server/awsLambda.d.mts +8 -0
- package/dist/aws/lambda/server/awsLambda.mjs +16 -0
- package/dist/aws/lambda/server/index.cjs +6 -0
- package/dist/aws/lambda/server/index.d.cts +3 -0
- package/dist/aws/lambda/server/index.d.mts +2 -27
- package/dist/aws/lambda/server/index.mjs +2 -54
- package/dist/aws/s3/server/AwsS3Namespace.cjs +297 -0
- package/dist/aws/s3/server/AwsS3Namespace.d.cts +69 -0
- package/dist/aws/s3/server/AwsS3Namespace.d.mts +69 -0
- package/dist/aws/s3/server/AwsS3Namespace.mjs +296 -0
- package/dist/aws/s3/server/awsS3.cjs +23 -0
- package/dist/aws/s3/server/awsS3.d.cts +16 -0
- package/dist/aws/s3/server/awsS3.d.mts +16 -0
- package/dist/aws/s3/server/awsS3.mjs +21 -0
- package/dist/aws/s3/server/index.cjs +8 -0
- package/dist/aws/s3/server/index.d.cts +4 -0
- package/dist/aws/s3/server/index.d.mts +3 -123
- package/dist/aws/s3/server/index.mjs +3 -350
- package/dist/aws/s3/server/payload.cjs +38 -0
- package/dist/aws/s3/server/payload.d.cts +46 -0
- package/dist/aws/s3/server/payload.d.mts +46 -0
- package/dist/aws/s3/server/payload.mjs +36 -0
- package/dist/aws/server/aws.cjs +23 -0
- package/dist/{index-D-8_Li4c.d.mts → aws/server/aws.d.cts} +3 -7
- package/dist/aws/server/aws.d.mts +13 -0
- package/dist/{server-CCX9gh5k.mjs → aws/server/aws.mjs} +4 -13
- package/dist/aws/server/index.cjs +5 -0
- package/dist/aws/server/index.d.cts +3 -0
- package/dist/aws/server/index.d.mts +2 -1
- package/dist/aws/server/index.mjs +2 -1
- package/dist/aws/server/isResponse200.cjs +13 -0
- package/dist/aws/server/isResponse200.d.cts +7 -0
- package/dist/aws/server/isResponse200.d.mts +7 -0
- package/dist/aws/server/isResponse200.mjs +12 -0
- package/dist/aws/ses/server/AwsSesNamespace.cjs +37 -0
- package/dist/aws/ses/server/AwsSesNamespace.d.cts +13 -0
- package/dist/aws/ses/server/AwsSesNamespace.d.mts +13 -0
- package/dist/aws/ses/server/AwsSesNamespace.mjs +36 -0
- package/dist/aws/ses/server/SimpleEmail.cjs +220 -0
- package/dist/aws/ses/server/SimpleEmail.d.cts +92 -0
- package/dist/aws/ses/server/SimpleEmail.d.mts +92 -0
- package/dist/aws/ses/server/SimpleEmail.mjs +219 -0
- package/dist/aws/ses/server/awsSes.cjs +16 -0
- package/dist/aws/ses/server/awsSes.d.cts +8 -0
- package/dist/aws/ses/server/awsSes.d.mts +8 -0
- package/dist/aws/ses/server/awsSes.mjs +14 -0
- package/dist/aws/ses/server/index.cjs +7 -0
- package/dist/aws/ses/server/index.d.cts +4 -0
- package/dist/aws/ses/server/index.d.mts +3 -104
- package/dist/aws/ses/server/index.mjs +3 -263
- package/dist/aws/sqs/server/AwsSqsNamespace.cjs +47 -0
- package/dist/aws/sqs/server/AwsSqsNamespace.d.cts +38 -0
- package/dist/aws/sqs/server/AwsSqsNamespace.d.mts +38 -0
- package/dist/aws/sqs/server/AwsSqsNamespace.mjs +46 -0
- package/dist/aws/sqs/server/awsSqs.cjs +14 -0
- package/dist/aws/sqs/server/awsSqs.d.cts +7 -0
- package/dist/aws/sqs/server/awsSqs.d.mts +7 -0
- package/dist/aws/sqs/server/awsSqs.mjs +13 -0
- package/dist/aws/sqs/server/index.cjs +5 -0
- package/dist/aws/sqs/server/index.d.cts +3 -0
- package/dist/aws/sqs/server/index.d.mts +2 -40
- package/dist/aws/sqs/server/index.mjs +2 -52
- package/dist/aws/ssm/server/AwsSsmNamespace.cjs +34 -0
- package/dist/aws/ssm/server/AwsSsmNamespace.d.cts +15 -0
- package/dist/aws/ssm/server/AwsSsmNamespace.d.mts +15 -0
- package/dist/aws/ssm/server/AwsSsmNamespace.mjs +33 -0
- package/dist/aws/ssm/server/awsSsm.cjs +14 -0
- package/dist/aws/ssm/server/awsSsm.d.cts +7 -0
- package/dist/aws/ssm/server/awsSsm.d.mts +7 -0
- package/dist/aws/ssm/server/awsSsm.mjs +13 -0
- package/dist/aws/ssm/server/index.cjs +5 -0
- package/dist/aws/ssm/server/index.d.cts +3 -0
- package/dist/aws/ssm/server/index.d.mts +2 -17
- package/dist/aws/ssm/server/index.mjs +2 -43
- package/dist/boolean/boolean.cjs +13 -0
- package/dist/boolean/boolean.d.cts +7 -0
- package/dist/boolean/boolean.d.mts +7 -0
- package/dist/boolean/boolean.mjs +12 -0
- package/dist/boolean/index.cjs +3 -0
- package/dist/boolean/index.d.cts +2 -0
- package/dist/boolean/index.d.mts +1 -6
- package/dist/boolean/index.mjs +1 -11
- package/dist/brightData/serpApi/server/brightDataSerpApi.cjs +13 -0
- package/dist/brightData/serpApi/server/brightDataSerpApi.d.cts +13 -0
- package/dist/brightData/serpApi/server/brightDataSerpApi.d.mts +13 -0
- package/dist/brightData/serpApi/server/brightDataSerpApi.mjs +12 -0
- package/dist/brightData/serpApi/server/buildGoogleSerpUrl.cjs +101 -0
- package/dist/brightData/serpApi/server/buildGoogleSerpUrl.d.cts +34 -0
- package/dist/brightData/serpApi/server/buildGoogleSerpUrl.d.mts +34 -0
- package/dist/brightData/serpApi/server/buildGoogleSerpUrl.mjs +100 -0
- package/dist/brightData/serpApi/server/buildGoogleTrendsUrl.cjs +52 -0
- package/dist/brightData/serpApi/server/buildGoogleTrendsUrl.d.cts +24 -0
- package/dist/brightData/serpApi/server/buildGoogleTrendsUrl.d.mts +24 -0
- package/dist/brightData/serpApi/server/buildGoogleTrendsUrl.mjs +51 -0
- package/dist/brightData/serpApi/server/getAsyncRequestId.cjs +29 -0
- package/dist/brightData/serpApi/server/getAsyncRequestId.d.cts +11 -0
- package/dist/brightData/serpApi/server/getAsyncRequestId.d.mts +11 -0
- package/dist/brightData/serpApi/server/getAsyncRequestId.mjs +28 -0
- package/dist/brightData/serpApi/server/getAsyncResults.cjs +21 -0
- package/dist/brightData/serpApi/server/getAsyncResults.d.cts +11 -0
- package/dist/brightData/serpApi/server/getAsyncResults.d.mts +11 -0
- package/dist/brightData/serpApi/server/getAsyncResults.mjs +20 -0
- package/dist/brightData/serpApi/server/getRealtime.cjs +23 -0
- package/dist/brightData/serpApi/server/getRealtime.d.cts +9 -0
- package/dist/brightData/serpApi/server/getRealtime.d.mts +9 -0
- package/dist/brightData/serpApi/server/getRealtime.mjs +22 -0
- package/dist/brightData/serpApi/server/index.cjs +13 -0
- package/dist/brightData/serpApi/server/index.d.cts +7 -0
- package/dist/brightData/serpApi/server/index.d.mts +6 -92
- package/dist/brightData/serpApi/server/index.mjs +6 -223
- package/dist/brightData/server/brightData.cjs +19 -0
- package/dist/{index-DwYd5z_c.d.mts → brightData/server/brightData.d.cts} +1 -1
- package/dist/brightData/server/brightData.d.mts +18 -0
- package/dist/brightData/server/brightData.mjs +17 -0
- package/dist/brightData/server/index.cjs +4 -0
- package/dist/brightData/server/index.d.cts +2 -0
- package/dist/brightData/server/index.d.mts +1 -1
- package/dist/brightData/server/index.mjs +1 -16
- package/dist/brightData/webScraperIde/server/getBatch.cjs +19 -0
- package/dist/brightData/webScraperIde/server/getBatch.d.cts +11 -0
- package/dist/brightData/webScraperIde/server/getBatch.d.mts +11 -0
- package/dist/brightData/webScraperIde/server/getBatch.mjs +18 -0
- package/dist/brightData/webScraperIde/server/getRealtime.cjs +33 -0
- package/dist/brightData/webScraperIde/server/getRealtime.d.cts +11 -0
- package/dist/brightData/webScraperIde/server/getRealtime.d.mts +11 -0
- package/dist/brightData/webScraperIde/server/getRealtime.mjs +32 -0
- package/dist/brightData/webScraperIde/server/index.cjs +5 -0
- package/dist/brightData/webScraperIde/server/index.d.cts +3 -0
- package/dist/brightData/webScraperIde/server/index.d.mts +2 -18
- package/dist/brightData/webScraperIde/server/index.mjs +2 -47
- package/dist/cache/server/cache.cjs +32 -0
- package/dist/cache/server/cache.d.cts +10 -0
- package/dist/cache/server/cache.d.mts +10 -0
- package/dist/cache/server/cache.mjs +30 -0
- package/dist/cache/server/index.cjs +4 -0
- package/dist/cache/server/index.d.cts +2 -0
- package/dist/cache/server/index.d.mts +1 -9
- package/dist/cache/server/index.mjs +1 -29
- package/dist/crud/crud.cjs +10 -0
- package/dist/crud/crud.d.cts +10 -0
- package/dist/crud/crud.d.mts +10 -0
- package/dist/crud/crud.mjs +9 -0
- package/dist/crud/index.cjs +3 -0
- package/dist/crud/index.d.cts +2 -0
- package/dist/crud/index.d.mts +1 -9
- package/dist/crud/index.mjs +1 -8
- package/dist/crypto/server/getMd5.cjs +14 -0
- package/dist/crypto/server/getMd5.d.cts +7 -0
- package/dist/crypto/server/getMd5.d.mts +7 -0
- package/dist/crypto/server/getMd5.mjs +14 -0
- package/dist/crypto/server/getRandom.cjs +10 -0
- package/dist/crypto/server/getRandom.d.cts +7 -0
- package/dist/crypto/server/getRandom.d.mts +7 -0
- package/dist/crypto/server/getRandom.mjs +9 -0
- package/dist/crypto/server/getSha256.cjs +14 -0
- package/dist/crypto/server/getSha256.d.cts +7 -0
- package/dist/crypto/server/getSha256.d.mts +7 -0
- package/dist/crypto/server/getSha256.mjs +14 -0
- package/dist/crypto/server/index.cjs +7 -0
- package/dist/crypto/server/index.d.cts +4 -0
- package/dist/crypto/server/index.d.mts +3 -18
- package/dist/crypto/server/index.mjs +3 -30
- package/dist/date/calculation.cjs +272 -0
- package/dist/date/calculation.d.cts +106 -0
- package/dist/date/calculation.d.mts +106 -0
- package/dist/date/calculation.mjs +245 -0
- package/dist/date/date.cjs +27 -0
- package/dist/date/date.d.cts +40 -0
- package/dist/date/date.d.mts +40 -0
- package/dist/date/date.mjs +23 -0
- package/dist/date/financialYear.cjs +61 -0
- package/dist/date/financialYear.d.cts +23 -0
- package/dist/date/financialYear.d.mts +23 -0
- package/dist/date/financialYear.mjs +56 -0
- package/dist/date/format.cjs +177 -0
- package/dist/date/format.d.cts +89 -0
- package/dist/date/format.d.mts +89 -0
- package/dist/date/format.mjs +158 -0
- package/dist/date/index.cjs +57 -0
- package/dist/date/index.d.cts +5 -0
- package/dist/date/index.d.mts +4 -1
- package/dist/date/index.mjs +4 -474
- package/dist/drizzle/server/DrizzleNamespace.cjs +51 -0
- package/dist/drizzle/server/DrizzleNamespace.d.cts +10 -0
- package/dist/drizzle/server/DrizzleNamespace.d.mts +10 -0
- package/dist/drizzle/server/DrizzleNamespace.mjs +50 -0
- package/dist/drizzle/server/drizzle.cjs +22 -0
- package/dist/drizzle/server/drizzle.d.cts +15 -0
- package/dist/drizzle/server/drizzle.d.mts +15 -0
- package/dist/drizzle/server/drizzle.mjs +21 -0
- package/dist/drizzle/server/index.cjs +5 -0
- package/dist/drizzle/server/index.d.cts +3 -0
- package/dist/drizzle/server/index.d.mts +2 -21
- package/dist/drizzle/server/index.mjs +2 -65
- package/dist/environment/environment.cjs +69 -0
- package/dist/environment/environment.d.cts +37 -0
- package/dist/environment/environment.d.mts +37 -0
- package/dist/environment/environment.mjs +59 -0
- package/dist/environment/index.cjs +12 -0
- package/dist/environment/index.d.cts +2 -0
- package/dist/environment/index.d.mts +1 -36
- package/dist/environment/index.mjs +1 -58
- package/dist/eskimi/eskimi.cjs +93 -0
- package/dist/eskimi/eskimi.d.cts +52 -0
- package/dist/eskimi/eskimi.d.mts +52 -0
- package/dist/eskimi/eskimi.mjs +88 -0
- package/dist/eskimi/index.cjs +6 -0
- package/dist/eskimi/index.d.cts +2 -0
- package/dist/eskimi/index.d.mts +1 -51
- package/dist/eskimi/index.mjs +1 -87
- package/dist/eskimi/server/getAgeGroup.cjs +14 -0
- package/dist/eskimi/server/getAgeGroup.d.cts +7 -0
- package/dist/eskimi/server/getAgeGroup.d.mts +7 -0
- package/dist/eskimi/server/getAgeGroup.mjs +13 -0
- package/dist/eskimi/server/getData.cjs +14 -0
- package/dist/eskimi/server/getData.d.cts +7 -0
- package/dist/eskimi/server/getData.d.mts +7 -0
- package/dist/eskimi/server/getData.mjs +13 -0
- package/dist/eskimi/server/getDevice.cjs +14 -0
- package/dist/eskimi/server/getDevice.d.cts +7 -0
- package/dist/eskimi/server/getDevice.d.mts +7 -0
- package/dist/eskimi/server/getDevice.mjs +13 -0
- package/dist/eskimi/server/getGender.cjs +14 -0
- package/dist/eskimi/server/getGender.d.cts +7 -0
- package/dist/eskimi/server/getGender.d.mts +7 -0
- package/dist/eskimi/server/getGender.mjs +13 -0
- package/dist/eskimi/server/index.cjs +9 -0
- package/dist/eskimi/server/index.d.cts +5 -0
- package/dist/eskimi/server/index.d.mts +4 -24
- package/dist/eskimi/server/index.mjs +4 -43
- package/dist/file/getFileKey.cjs +21 -0
- package/dist/file/getFileKey.d.cts +7 -0
- package/dist/file/getFileKey.d.mts +7 -0
- package/dist/file/getFileKey.mjs +19 -0
- package/dist/file/index.cjs +3 -0
- package/dist/file/index.d.cts +2 -0
- package/dist/file/index.d.mts +1 -6
- package/dist/file/index.mjs +1 -17
- package/dist/file/server/createDirectory.cjs +16 -0
- package/dist/file/server/createDirectory.d.cts +8 -0
- package/dist/file/server/createDirectory.d.mts +8 -0
- package/dist/file/server/createDirectory.mjs +15 -0
- package/dist/file/server/index.cjs +3 -0
- package/dist/file/server/index.d.cts +2 -0
- package/dist/file/server/index.d.mts +1 -7
- package/dist/file/server/index.mjs +1 -14
- package/dist/geo/countries.cjs +1333 -0
- package/dist/geo/countries.d.cts +15 -0
- package/dist/geo/countries.d.mts +15 -0
- package/dist/geo/countries.mjs +1332 -0
- package/dist/geo/index.cjs +5 -0
- package/dist/geo/index.d.cts +3 -0
- package/dist/geo/index.d.mts +2 -25
- package/dist/geo/index.mjs +2 -1588
- package/dist/geo/languages.cjs +259 -0
- package/dist/geo/languages.d.cts +12 -0
- package/dist/geo/languages.d.mts +12 -0
- package/dist/geo/languages.mjs +258 -0
- package/dist/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.cjs +54 -0
- package/dist/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.cts +45 -0
- package/dist/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.d.mts +45 -0
- package/dist/googleAds/keywordPlanner/server/googleAdsKeywordPlanner.mjs +49 -0
- package/dist/googleAds/keywordPlanner/server/index.cjs +6 -0
- package/dist/googleAds/keywordPlanner/server/index.d.cts +2 -0
- package/dist/googleAds/keywordPlanner/server/index.d.mts +1 -44
- package/dist/googleAds/keywordPlanner/server/index.mjs +1 -48
- package/dist/googleAds/server/GoogleAdsNamespace.cjs +33 -0
- package/dist/googleAds/server/GoogleAdsNamespace.d.cts +18 -0
- package/dist/googleAds/server/GoogleAdsNamespace.d.mts +18 -0
- package/dist/googleAds/server/GoogleAdsNamespace.mjs +32 -0
- package/dist/googleAds/server/googleAds.cjs +19 -0
- package/dist/googleAds/server/googleAds.d.cts +15 -0
- package/dist/googleAds/server/googleAds.d.mts +15 -0
- package/dist/googleAds/server/googleAds.mjs +18 -0
- package/dist/googleAds/server/index.cjs +5 -0
- package/dist/googleAds/server/index.d.cts +3 -0
- package/dist/googleAds/server/index.d.mts +2 -28
- package/dist/googleAds/server/index.mjs +2 -43
- package/dist/googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.cjs +79 -0
- package/dist/googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.d.cts +53 -0
- package/dist/googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.d.mts +53 -0
- package/dist/googleCloud/bigquery/server/GoogleCloudBigqueryNamespace.mjs +78 -0
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.cjs +32 -0
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.cts +8 -0
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.mts +8 -0
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.mjs +30 -0
- package/dist/googleCloud/bigquery/server/index.cjs +8 -0
- package/dist/googleCloud/bigquery/server/index.d.cts +4 -0
- package/dist/googleCloud/bigquery/server/index.d.mts +4 -82
- package/dist/googleCloud/bigquery/server/index.mjs +3 -128
- package/dist/googleCloud/bigquery/server/loadData.cjs +10 -0
- package/dist/googleCloud/bigquery/server/loadData.d.cts +27 -0
- package/dist/googleCloud/bigquery/server/loadData.d.mts +27 -0
- package/dist/googleCloud/bigquery/server/loadData.mjs +9 -0
- package/dist/googleCloud/server/googleCloud.cjs +24 -0
- package/dist/{index-DVYYb5tw.d.mts → googleCloud/server/googleCloud.d.cts} +1 -1
- package/dist/googleCloud/server/googleCloud.d.mts +32 -0
- package/dist/googleCloud/server/googleCloud.mjs +23 -0
- package/dist/googleCloud/server/index.cjs +3 -0
- package/dist/googleCloud/server/index.d.cts +2 -0
- package/dist/googleCloud/server/index.d.mts +1 -1
- package/dist/googleCloud/server/index.mjs +1 -22
- package/dist/googleCloud/sheets/server/GoogleCloudSheetsNamespace.cjs +33 -0
- package/dist/googleCloud/sheets/server/GoogleCloudSheetsNamespace.d.cts +22 -0
- package/dist/googleCloud/sheets/server/GoogleCloudSheetsNamespace.d.mts +22 -0
- package/dist/googleCloud/sheets/server/GoogleCloudSheetsNamespace.mjs +32 -0
- package/dist/googleCloud/sheets/server/getAssociatedData.cjs +29 -0
- package/dist/googleCloud/sheets/server/getAssociatedData.d.cts +12 -0
- package/dist/googleCloud/sheets/server/getAssociatedData.d.mts +12 -0
- package/dist/googleCloud/sheets/server/getAssociatedData.mjs +28 -0
- package/dist/googleCloud/sheets/server/index.cjs +3 -0
- package/dist/googleCloud/sheets/server/index.d.cts +2 -0
- package/dist/googleCloud/sheets/server/index.d.mts +1 -21
- package/dist/googleCloud/sheets/server/index.mjs +1 -28
- package/dist/googleCloud/storage/server/GoogleCloudStorageNamespace.cjs +47 -0
- package/dist/googleCloud/storage/server/GoogleCloudStorageNamespace.d.cts +27 -0
- package/dist/googleCloud/storage/server/GoogleCloudStorageNamespace.d.mts +27 -0
- package/dist/googleCloud/storage/server/GoogleCloudStorageNamespace.mjs +46 -0
- package/dist/googleCloud/storage/server/googleCloudStorage.cjs +28 -0
- package/dist/googleCloud/storage/server/googleCloudStorage.d.cts +7 -0
- package/dist/googleCloud/storage/server/googleCloudStorage.d.mts +7 -0
- package/dist/googleCloud/storage/server/googleCloudStorage.mjs +27 -0
- package/dist/googleCloud/storage/server/index.cjs +5 -0
- package/dist/googleCloud/storage/server/index.d.cts +3 -0
- package/dist/googleCloud/storage/server/index.d.mts +2 -30
- package/dist/googleCloud/storage/server/index.mjs +2 -75
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.cjs +28 -0
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.cts +15 -0
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.mts +15 -0
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.mjs +27 -0
- package/dist/googlePageSpeed/server/googlePageSpeed.cjs +33 -0
- package/dist/googlePageSpeed/server/googlePageSpeed.d.cts +23 -0
- package/dist/googlePageSpeed/server/googlePageSpeed.d.mts +23 -0
- package/dist/googlePageSpeed/server/googlePageSpeed.mjs +30 -0
- package/dist/googlePageSpeed/server/index.cjs +7 -0
- package/dist/googlePageSpeed/server/index.d.cts +3 -0
- package/dist/googlePageSpeed/server/index.d.mts +2 -33
- package/dist/googlePageSpeed/server/index.mjs +2 -48
- package/dist/googleSearchIncidents/server/googleSearchIncidents.cjs +56 -0
- package/dist/googleSearchIncidents/server/googleSearchIncidents.d.cts +73 -0
- package/dist/googleSearchIncidents/server/googleSearchIncidents.d.mts +73 -0
- package/dist/googleSearchIncidents/server/googleSearchIncidents.mjs +52 -0
- package/dist/googleSearchIncidents/server/index.cjs +5 -0
- package/dist/googleSearchIncidents/server/index.d.cts +2 -0
- package/dist/googleSearchIncidents/server/index.d.mts +1 -72
- package/dist/googleSearchIncidents/server/index.mjs +1 -51
- package/dist/greenDomain/server/greenDomain.cjs +31 -0
- package/dist/greenDomain/server/greenDomain.d.cts +25 -0
- package/dist/greenDomain/server/greenDomain.d.mts +25 -0
- package/dist/greenDomain/server/greenDomain.mjs +28 -0
- package/dist/greenDomain/server/index.cjs +4 -0
- package/dist/greenDomain/server/index.d.cts +2 -0
- package/dist/greenDomain/server/index.d.mts +1 -24
- package/dist/greenDomain/server/index.mjs +1 -27
- package/dist/inngest/index.cjs +3 -0
- package/dist/inngest/index.d.cts +2 -0
- package/dist/inngest/index.d.mts +1 -9
- package/dist/inngest/index.mjs +1 -8
- package/dist/inngest/inngest.cjs +10 -0
- package/dist/inngest/inngest.d.cts +10 -0
- package/dist/inngest/inngest.d.mts +10 -0
- package/dist/inngest/inngest.mjs +9 -0
- package/dist/json/getJsonNewline.cjs +8 -0
- package/dist/json/getJsonNewline.d.cts +4 -0
- package/dist/json/getJsonNewline.d.mts +4 -0
- package/dist/json/getJsonNewline.mjs +7 -0
- package/dist/json/index.cjs +5 -0
- package/dist/json/index.d.cts +3 -0
- package/dist/json/index.d.mts +2 -6
- package/dist/json/index.mjs +2 -23
- package/dist/json/isJson.cjs +19 -0
- package/dist/json/isJson.d.cts +4 -0
- package/dist/json/isJson.d.mts +4 -0
- package/dist/json/isJson.mjs +18 -0
- package/dist/littleWarden/server/LittleWardenNamespace.cjs +26 -0
- package/dist/littleWarden/server/LittleWardenNamespace.d.cts +15 -0
- package/dist/littleWarden/server/LittleWardenNamespace.d.mts +15 -0
- package/dist/littleWarden/server/LittleWardenNamespace.mjs +25 -0
- package/dist/littleWarden/server/getUrlStatus.cjs +11 -0
- package/dist/littleWarden/server/getUrlStatus.d.cts +7 -0
- package/dist/littleWarden/server/getUrlStatus.d.mts +7 -0
- package/dist/littleWarden/server/getUrlStatus.mjs +10 -0
- package/dist/littleWarden/server/index.cjs +11 -0
- package/dist/littleWarden/server/index.d.cts +4 -0
- package/dist/littleWarden/server/index.d.mts +3 -55
- package/dist/littleWarden/server/index.mjs +3 -73
- package/dist/littleWarden/server/littleWarden.cjs +54 -0
- package/dist/littleWarden/server/littleWarden.d.cts +40 -0
- package/dist/littleWarden/server/littleWarden.d.mts +40 -0
- package/dist/littleWarden/server/littleWarden.mjs +48 -0
- package/dist/lodash/chunk.cjs +9 -0
- package/dist/lodash/chunk.d.cts +4 -0
- package/dist/lodash/chunk.d.mts +4 -0
- package/dist/lodash/chunk.mjs +8 -0
- package/dist/lodash/findKey.cjs +31 -0
- package/dist/lodash/findKey.d.cts +4 -0
- package/dist/lodash/findKey.d.mts +4 -0
- package/dist/lodash/findKey.mjs +30 -0
- package/dist/lodash/flatten.cjs +5 -0
- package/dist/lodash/flatten.d.cts +4 -0
- package/dist/lodash/flatten.d.mts +4 -0
- package/dist/lodash/flatten.mjs +4 -0
- package/dist/lodash/index.cjs +31 -0
- package/dist/lodash/index.d.cts +16 -0
- package/dist/lodash/index.d.mts +15 -47
- package/dist/lodash/index.mjs +15 -191
- package/dist/lodash/isDate.cjs +7 -0
- package/dist/lodash/isDate.d.cts +4 -0
- package/dist/lodash/isDate.d.mts +4 -0
- package/dist/lodash/isDate.mjs +6 -0
- package/dist/lodash/isEmpty.cjs +12 -0
- package/dist/lodash/isEmpty.d.cts +4 -0
- package/dist/lodash/isEmpty.d.mts +4 -0
- package/dist/lodash/isEmpty.mjs +11 -0
- package/dist/lodash/isEqual.cjs +33 -0
- package/dist/lodash/isEqual.d.cts +4 -0
- package/dist/lodash/isEqual.d.mts +4 -0
- package/dist/lodash/isEqual.mjs +32 -0
- package/dist/lodash/isFunction.cjs +5 -0
- package/dist/lodash/isFunction.d.cts +4 -0
- package/dist/lodash/isFunction.d.mts +4 -0
- package/dist/lodash/isFunction.mjs +4 -0
- package/dist/lodash/isObject.cjs +8 -0
- package/dist/lodash/isObject.d.cts +4 -0
- package/dist/lodash/isObject.d.mts +4 -0
- package/dist/lodash/isObject.mjs +7 -0
- package/dist/lodash/merge.cjs +21 -0
- package/dist/lodash/merge.d.cts +4 -0
- package/dist/lodash/merge.d.mts +4 -0
- package/dist/lodash/merge.mjs +20 -0
- package/dist/lodash/orderBy.cjs +26 -0
- package/dist/lodash/orderBy.d.cts +6 -0
- package/dist/lodash/orderBy.d.mts +6 -0
- package/dist/lodash/orderBy.mjs +25 -0
- package/dist/lodash/set.cjs +18 -0
- package/dist/lodash/set.d.cts +4 -0
- package/dist/lodash/set.d.mts +4 -0
- package/dist/lodash/set.mjs +17 -0
- package/dist/lodash/trim.cjs +10 -0
- package/dist/lodash/trim.d.cts +4 -0
- package/dist/lodash/trim.d.mts +4 -0
- package/dist/lodash/trim.mjs +9 -0
- package/dist/lodash/unescape.cjs +14 -0
- package/dist/lodash/unescape.d.cts +4 -0
- package/dist/lodash/unescape.d.mts +4 -0
- package/dist/lodash/unescape.mjs +13 -0
- package/dist/lodash/uniq.cjs +5 -0
- package/dist/lodash/uniq.d.cts +4 -0
- package/dist/lodash/uniq.d.mts +4 -0
- package/dist/lodash/uniq.mjs +4 -0
- package/dist/lodash/uniqBy.cjs +17 -0
- package/dist/lodash/uniqBy.d.cts +4 -0
- package/dist/lodash/uniqBy.d.mts +4 -0
- package/dist/lodash/uniqBy.mjs +16 -0
- package/dist/lumar/api/server/buildRequest.cjs +59 -0
- package/dist/lumar/api/server/buildRequest.d.cts +16 -0
- package/dist/lumar/api/server/buildRequest.d.mts +16 -0
- package/dist/lumar/api/server/buildRequest.mjs +58 -0
- package/dist/lumar/api/server/getData.cjs +8 -0
- package/dist/lumar/api/server/getData.d.cts +5 -0
- package/dist/lumar/api/server/getData.d.mts +5 -0
- package/dist/lumar/api/server/getData.mjs +7 -0
- package/dist/lumar/api/server/index.cjs +11 -0
- package/dist/lumar/api/server/index.d.cts +5 -0
- package/dist/lumar/api/server/index.d.mts +4 -64
- package/dist/lumar/api/server/index.mjs +4 -105
- package/dist/lumar/api/server/initClient.cjs +20 -0
- package/dist/lumar/api/server/initClient.d.cts +9 -0
- package/dist/lumar/api/server/initClient.d.mts +9 -0
- package/dist/lumar/api/server/initClient.mjs +19 -0
- package/dist/lumar/api/server/lumarApi.cjs +30 -0
- package/dist/lumar/api/server/lumarApi.d.cts +39 -0
- package/dist/lumar/api/server/lumarApi.d.mts +39 -0
- package/dist/lumar/api/server/lumarApi.mjs +27 -0
- package/dist/lumar/graphql/server/columns.cjs +32 -0
- package/dist/lumar/graphql/server/columns.d.cts +32 -0
- package/dist/lumar/graphql/server/columns.d.mts +32 -0
- package/dist/lumar/graphql/server/columns.mjs +31 -0
- package/dist/lumar/graphql/server/getData.cjs +15 -0
- package/dist/lumar/graphql/server/getData.d.cts +5 -0
- package/dist/lumar/graphql/server/getData.d.mts +5 -0
- package/dist/lumar/graphql/server/getData.mjs +14 -0
- package/dist/lumar/graphql/server/index.cjs +14 -0
- package/dist/lumar/graphql/server/index.d.cts +8 -0
- package/dist/lumar/graphql/server/index.d.mts +7 -306
- package/dist/lumar/graphql/server/index.mjs +6 -164
- package/dist/lumar/graphql/server/initClient.cjs +26 -0
- package/dist/lumar/graphql/server/initClient.d.cts +8 -0
- package/dist/lumar/graphql/server/initClient.d.mts +8 -0
- package/dist/lumar/graphql/server/initClient.mjs +25 -0
- package/dist/lumar/graphql/server/lumarGraphql.cjs +33 -0
- package/dist/lumar/graphql/server/lumarGraphql.d.cts +30 -0
- package/dist/lumar/graphql/server/lumarGraphql.d.mts +30 -0
- package/dist/lumar/graphql/server/lumarGraphql.mjs +30 -0
- package/dist/lumar/graphql/server/queries/crawl.cjs +0 -0
- package/dist/lumar/graphql/server/queries/crawl.d.cts +8 -0
- package/dist/lumar/graphql/server/queries/crawl.d.mts +8 -0
- package/dist/lumar/graphql/server/queries/crawl.mjs +1 -0
- package/dist/lumar/graphql/server/queries/getCrawls.cjs +33 -0
- package/dist/lumar/graphql/server/queries/getCrawls.d.cts +22 -0
- package/dist/lumar/graphql/server/queries/getCrawls.d.mts +23 -0
- package/dist/lumar/graphql/server/queries/getCrawls.mjs +33 -0
- package/dist/lumar/graphql/server/queries/getReportDifferences.cjs +38 -0
- package/dist/lumar/graphql/server/queries/getReportDifferences.d.cts +29 -0
- package/dist/lumar/graphql/server/queries/getReportDifferences.d.mts +30 -0
- package/dist/lumar/graphql/server/queries/getReportDifferences.mjs +38 -0
- package/dist/lumar/graphql/server/queries/getRows.cjs +57 -0
- package/dist/lumar/graphql/server/queries/getRows.d.cts +49 -0
- package/dist/lumar/graphql/server/queries/getRows.d.mts +50 -0
- package/dist/lumar/graphql/server/queries/getRows.mjs +57 -0
- package/dist/lumar/graphql/server/queries/getTotals.cjs +40 -0
- package/dist/lumar/graphql/server/queries/getTotals.d.cts +32 -0
- package/dist/lumar/graphql/server/queries/getTotals.d.mts +33 -0
- package/dist/lumar/graphql/server/queries/getTotals.mjs +40 -0
- package/dist/lumar/graphql/server/queries/row.cjs +0 -0
- package/dist/lumar/graphql/server/queries/row.d.cts +159 -0
- package/dist/lumar/graphql/server/queries/row.d.mts +159 -0
- package/dist/lumar/graphql/server/queries/row.mjs +1 -0
- package/dist/lumar/graphql/server/reportTemplates.cjs +71 -0
- package/dist/lumar/graphql/server/reportTemplates.d.cts +71 -0
- package/dist/lumar/graphql/server/reportTemplates.d.mts +71 -0
- package/dist/lumar/graphql/server/reportTemplates.mjs +70 -0
- package/dist/myTarget/server/index.cjs +3 -0
- package/dist/myTarget/server/index.d.cts +2 -0
- package/dist/myTarget/server/index.d.mts +1 -8
- package/dist/myTarget/server/index.mjs +1 -12
- package/dist/myTarget/server/myTarget.cjs +14 -0
- package/dist/myTarget/server/myTarget.d.cts +9 -0
- package/dist/myTarget/server/myTarget.d.mts +9 -0
- package/dist/myTarget/server/myTarget.mjs +13 -0
- package/dist/nextAuth/index.cjs +5 -0
- package/dist/nextAuth/index.d.cts +3 -0
- package/dist/nextAuth/index.d.mts +2 -11
- package/dist/nextAuth/index.mjs +2 -12
- package/dist/nextAuth/isSessionReady.cjs +7 -0
- package/dist/nextAuth/isSessionReady.d.cts +4 -0
- package/dist/nextAuth/isSessionReady.d.mts +4 -0
- package/dist/nextAuth/isSessionReady.mjs +6 -0
- package/dist/nextAuth/nextAuth.cjs +11 -0
- package/dist/nextAuth/nextAuth.d.cts +11 -0
- package/dist/nextAuth/nextAuth.d.mts +11 -0
- package/dist/nextAuth/nextAuth.mjs +9 -0
- package/dist/nextJs/client/LazyLoad.cjs +12 -0
- package/dist/nextJs/client/LazyLoad.d.cts +10 -0
- package/dist/nextJs/client/LazyLoad.d.mts +10 -0
- package/dist/nextJs/client/LazyLoad.mjs +10 -0
- package/dist/nextJs/client/index.cjs +3 -0
- package/dist/nextJs/client/index.d.cts +2 -0
- package/dist/nextJs/client/index.d.mts +1 -9
- package/dist/nextJs/client/index.mjs +1 -9
- package/dist/nextJs/index.cjs +4 -0
- package/dist/nextJs/index.d.cts +2 -0
- package/dist/nextJs/index.d.mts +1 -18
- package/dist/nextJs/index.mjs +1 -10
- package/dist/nextJs/nextJs.cjs +13 -0
- package/dist/nextJs/nextJs.d.cts +19 -0
- package/dist/nextJs/nextJs.d.mts +19 -0
- package/dist/nextJs/nextJs.mjs +11 -0
- package/dist/nextJs/tests/getIp.cjs +9 -0
- package/dist/nextJs/tests/getIp.d.cts +1 -0
- package/dist/nextJs/tests/getIp.d.mts +1 -0
- package/dist/nextJs/tests/getIp.mjs +10 -0
- package/dist/node_modules/data-uri-to-buffer/dist/index.cjs +37 -0
- package/dist/node_modules/data-uri-to-buffer/dist/index.mjs +37 -0
- package/dist/node_modules/fetch-blob/file.cjs +31 -0
- package/dist/node_modules/fetch-blob/file.mjs +31 -0
- package/dist/node_modules/fetch-blob/from.cjs +8 -0
- package/dist/node_modules/fetch-blob/from.mjs +9 -0
- package/dist/node_modules/fetch-blob/index.cjs +171 -0
- package/dist/node_modules/fetch-blob/index.mjs +172 -0
- package/dist/node_modules/fetch-blob/streams.cjs +45 -0
- package/dist/node_modules/fetch-blob/streams.mjs +41 -0
- package/dist/node_modules/formdata-polyfill/esm.min.cjs +83 -0
- package/dist/node_modules/formdata-polyfill/esm.min.mjs +82 -0
- package/dist/node_modules/node-domexception/index.cjs +18 -0
- package/dist/node_modules/node-domexception/index.mjs +15 -0
- package/dist/node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +3499 -0
- package/dist/node_modules/web-streams-polyfill/dist/ponyfill.es2018.mjs +3496 -0
- package/dist/number/formatCompact.cjs +16 -0
- package/dist/number/formatCompact.d.cts +7 -0
- package/dist/number/formatCompact.d.mts +7 -0
- package/dist/number/formatCompact.mjs +15 -0
- package/dist/number/formatCurrency.cjs +20 -0
- package/dist/number/formatCurrency.d.cts +8 -0
- package/dist/number/formatCurrency.d.mts +8 -0
- package/dist/number/formatCurrency.mjs +19 -0
- package/dist/number/formatStandard.cjs +16 -0
- package/dist/number/formatStandard.d.cts +7 -0
- package/dist/number/formatStandard.d.mts +7 -0
- package/dist/number/formatStandard.mjs +15 -0
- package/dist/number/getDecimal.cjs +12 -0
- package/dist/number/getDecimal.d.cts +7 -0
- package/dist/number/getDecimal.d.mts +7 -0
- package/dist/number/getDecimal.mjs +11 -0
- package/dist/number/getNumber.cjs +29 -0
- package/dist/number/getNumber.d.cts +7 -0
- package/dist/number/getNumber.d.mts +7 -0
- package/dist/{getDecimal-B9S_nqSJ.mjs → number/getNumber.mjs} +2 -11
- package/dist/number/getPercent.cjs +15 -0
- package/dist/number/getPercent.d.cts +4 -0
- package/dist/number/getPercent.d.mts +4 -0
- package/dist/number/getPercent.mjs +14 -0
- package/dist/number/getPercentIncrease.cjs +14 -0
- package/dist/number/getPercentIncrease.d.cts +7 -0
- package/dist/number/getPercentIncrease.d.mts +7 -0
- package/dist/number/getPercentIncrease.mjs +13 -0
- package/dist/number/getSafeDivide.cjs +16 -0
- package/dist/number/getSafeDivide.d.cts +13 -0
- package/dist/number/getSafeDivide.d.mts +13 -0
- package/dist/number/getSafeDivide.mjs +15 -0
- package/dist/number/index.cjs +17 -0
- package/dist/number/index.d.cts +9 -0
- package/dist/number/index.d.mts +8 -52
- package/dist/number/index.mjs +8 -80
- package/dist/object/index.cjs +3 -0
- package/dist/object/index.d.cts +2 -0
- package/dist/object/index.d.mts +1 -7
- package/dist/object/index.mjs +1 -20
- package/dist/object/replaceKeys.cjs +22 -0
- package/dist/object/replaceKeys.d.cts +8 -0
- package/dist/object/replaceKeys.d.mts +8 -0
- package/dist/object/replaceKeys.mjs +21 -0
- package/dist/onePassword/server/OnePasswordNamespace.cjs +40 -0
- package/dist/onePassword/server/OnePasswordNamespace.d.cts +17 -0
- package/dist/onePassword/server/OnePasswordNamespace.d.mts +17 -0
- package/dist/onePassword/server/OnePasswordNamespace.mjs +39 -0
- package/dist/onePassword/server/getIdsFromUrl.cjs +15 -0
- package/dist/onePassword/server/getIdsFromUrl.d.cts +11 -0
- package/dist/onePassword/server/getIdsFromUrl.d.mts +11 -0
- package/dist/onePassword/server/getIdsFromUrl.mjs +14 -0
- package/dist/onePassword/server/index.cjs +7 -0
- package/dist/onePassword/server/index.d.cts +4 -0
- package/dist/onePassword/server/index.d.mts +4 -34
- package/dist/onePassword/server/index.mjs +3 -59
- package/dist/onePassword/server/onePassword.cjs +14 -0
- package/dist/onePassword/server/onePassword.d.cts +11 -0
- package/dist/onePassword/server/onePassword.d.mts +11 -0
- package/dist/onePassword/server/onePassword.mjs +13 -0
- package/dist/openAi/server/OpenAiNamespace.cjs +28 -0
- package/dist/openAi/server/OpenAiNamespace.d.cts +15 -0
- package/dist/openAi/server/OpenAiNamespace.d.mts +15 -0
- package/dist/openAi/server/OpenAiNamespace.mjs +27 -0
- package/dist/openAi/server/index.cjs +5 -0
- package/dist/openAi/server/index.d.cts +3 -0
- package/dist/openAi/server/index.d.mts +3 -20
- package/dist/openAi/server/index.mjs +2 -41
- package/dist/openAi/server/openAi.cjs +19 -0
- package/dist/openAi/server/openAi.d.cts +9 -0
- package/dist/openAi/server/openAi.d.mts +9 -0
- package/dist/openAi/server/openAi.mjs +18 -0
- package/dist/prisma/getDecimal.cjs +14 -0
- package/dist/prisma/getDecimal.d.cts +7 -0
- package/dist/prisma/getDecimal.d.mts +7 -0
- package/dist/prisma/getDecimal.mjs +13 -0
- package/dist/prisma/index.cjs +3 -0
- package/dist/prisma/index.d.cts +2 -0
- package/dist/prisma/index.d.mts +1 -6
- package/dist/prisma/index.mjs +1 -12
- package/dist/prisma/server/PrismaNamespace.cjs +47 -0
- package/dist/prisma/server/PrismaNamespace.d.cts +11 -0
- package/dist/prisma/server/PrismaNamespace.d.mts +11 -0
- package/dist/prisma/server/PrismaNamespace.mjs +46 -0
- package/dist/prisma/server/index.cjs +5 -0
- package/dist/prisma/server/index.d.cts +3 -0
- package/dist/prisma/server/index.d.mts +2 -30
- package/dist/prisma/server/index.mjs +2 -60
- package/dist/prisma/server/prisma.cjs +21 -0
- package/dist/prisma/server/prisma.d.cts +24 -0
- package/dist/prisma/server/prisma.d.mts +24 -0
- package/dist/prisma/server/prisma.mjs +20 -0
- package/dist/snapchat/server/SnapchatNamespace.cjs +22 -0
- package/dist/snapchat/server/SnapchatNamespace.d.cts +18 -0
- package/dist/snapchat/server/SnapchatNamespace.d.mts +18 -0
- package/dist/snapchat/server/SnapchatNamespace.mjs +20 -0
- package/dist/snapchat/server/index.cjs +5 -0
- package/dist/snapchat/server/index.d.cts +3 -0
- package/dist/snapchat/server/index.d.mts +2 -24
- package/dist/snapchat/server/index.mjs +2 -34
- package/dist/snapchat/server/snapchat.cjs +19 -0
- package/dist/snapchat/server/snapchat.d.cts +11 -0
- package/dist/snapchat/server/snapchat.d.mts +11 -0
- package/dist/snapchat/server/snapchat.mjs +18 -0
- package/dist/sorting/byNumberAscending.cjs +15 -0
- package/dist/sorting/byNumberAscending.d.cts +7 -0
- package/dist/sorting/byNumberAscending.d.mts +7 -0
- package/dist/sorting/byNumberAscending.mjs +14 -0
- package/dist/sorting/byNumberDescending.cjs +15 -0
- package/dist/sorting/byNumberDescending.d.cts +7 -0
- package/dist/sorting/byNumberDescending.d.mts +7 -0
- package/dist/sorting/byNumberDescending.mjs +14 -0
- package/dist/sorting/byStringAscending.cjs +12 -0
- package/dist/sorting/byStringAscending.d.cts +7 -0
- package/dist/sorting/byStringAscending.d.mts +7 -0
- package/dist/sorting/byStringAscending.mjs +11 -0
- package/dist/sorting/byStringDescending.cjs +11 -0
- package/dist/sorting/byStringDescending.d.cts +7 -0
- package/dist/sorting/byStringDescending.d.mts +7 -0
- package/dist/sorting/byStringDescending.mjs +10 -0
- package/dist/sorting/index.cjs +9 -0
- package/dist/sorting/index.d.cts +5 -0
- package/dist/sorting/index.d.mts +4 -24
- package/dist/sorting/index.mjs +4 -45
- package/dist/sorting/sorting.cjs +9 -0
- package/dist/sorting/sorting.d.cts +5 -0
- package/dist/sorting/sorting.d.mts +5 -0
- package/dist/sorting/sorting.mjs +5 -0
- package/dist/stream/server/index.cjs +3 -0
- package/dist/stream/server/index.d.cts +2 -0
- package/dist/stream/server/index.d.mts +1 -14
- package/dist/stream/server/index.mjs +1 -45
- package/dist/stream/server/sort.cjs +46 -0
- package/dist/stream/server/sort.d.cts +15 -0
- package/dist/stream/server/sort.d.mts +15 -0
- package/dist/stream/server/sort.mjs +46 -0
- package/dist/string/getCapitalised.cjs +17 -0
- package/dist/string/getCapitalised.d.cts +8 -0
- package/dist/string/getCapitalised.d.mts +8 -0
- package/dist/string/getCapitalised.mjs +16 -0
- package/dist/string/getClean.cjs +29 -0
- package/dist/string/getClean.d.cts +20 -0
- package/dist/string/getClean.d.mts +20 -0
- package/dist/string/getClean.mjs +28 -0
- package/dist/string/getFolder.cjs +11 -0
- package/dist/string/getFolder.d.cts +7 -0
- package/dist/string/getFolder.d.mts +7 -0
- package/dist/string/getFolder.mjs +10 -0
- package/dist/string/getProperCase.cjs +23 -0
- package/dist/string/getProperCase.d.cts +13 -0
- package/dist/string/getProperCase.d.mts +13 -0
- package/dist/string/getProperCase.mjs +22 -0
- package/dist/string/getString.cjs +19 -0
- package/dist/string/getString.d.cts +7 -0
- package/dist/string/getString.d.mts +7 -0
- package/dist/string/getString.mjs +18 -0
- package/dist/string/getStringFromStream.cjs +16 -0
- package/dist/string/getStringFromStream.d.cts +8 -0
- package/dist/string/getStringFromStream.d.mts +8 -0
- package/dist/string/getStringFromStream.mjs +15 -0
- package/dist/string/getUnescaped.cjs +19 -0
- package/dist/string/getUnescaped.d.cts +9 -0
- package/dist/string/getUnescaped.d.mts +9 -0
- package/dist/string/getUnescaped.mjs +18 -0
- package/dist/string/getWithoutAccents.cjs +11 -0
- package/dist/string/getWithoutAccents.d.cts +8 -0
- package/dist/string/getWithoutAccents.d.mts +8 -0
- package/dist/string/getWithoutAccents.mjs +10 -0
- package/dist/string/getWithoutHtmlTags.cjs +11 -0
- package/dist/string/getWithoutHtmlTags.d.cts +8 -0
- package/dist/string/getWithoutHtmlTags.d.mts +8 -0
- package/dist/string/getWithoutHtmlTags.mjs +10 -0
- package/dist/string/getWithoutPunctuation.cjs +11 -0
- package/dist/string/getWithoutPunctuation.d.cts +8 -0
- package/dist/string/getWithoutPunctuation.d.mts +8 -0
- package/dist/string/getWithoutPunctuation.mjs +10 -0
- package/dist/string/getWithoutUnderscores.cjs +10 -0
- package/dist/string/getWithoutUnderscores.d.cts +7 -0
- package/dist/string/getWithoutUnderscores.d.mts +7 -0
- package/dist/string/getWithoutUnderscores.mjs +9 -0
- package/dist/string/getWithoutWhitespaces.cjs +11 -0
- package/dist/string/getWithoutWhitespaces.d.cts +8 -0
- package/dist/string/getWithoutWhitespaces.d.mts +8 -0
- package/dist/string/getWithoutWhitespaces.mjs +10 -0
- package/dist/string/index.cjs +28 -0
- package/dist/string/index.d.cts +14 -0
- package/dist/string/index.d.mts +13 -106
- package/dist/string/index.mjs +13 -172
- package/dist/string/reservedWords.cjs +25 -0
- package/dist/string/reservedWords.d.cts +8 -0
- package/dist/string/reservedWords.d.mts +8 -0
- package/dist/string/reservedWords.mjs +23 -0
- package/dist/swr/client/index.cjs +8 -0
- package/dist/swr/client/index.d.cts +2 -0
- package/dist/swr/client/index.d.mts +1 -46
- package/dist/swr/client/index.mjs +1 -38
- package/dist/swr/client/swr.cjs +45 -0
- package/dist/swr/client/swr.d.cts +47 -0
- package/dist/swr/client/swr.d.mts +47 -0
- package/dist/swr/client/swr.mjs +39 -0
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.cjs +31 -0
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.d.cts +34 -0
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.d.mts +34 -0
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.mjs +30 -0
- package/dist/upTimeRobot/server/index.cjs +10 -0
- package/dist/upTimeRobot/server/index.d.cts +3 -0
- package/dist/upTimeRobot/server/index.d.mts +2 -71
- package/dist/upTimeRobot/server/index.mjs +2 -77
- package/dist/upTimeRobot/server/upTimeRobot.cjs +57 -0
- package/dist/upTimeRobot/server/upTimeRobot.d.cts +42 -0
- package/dist/upTimeRobot/server/upTimeRobot.d.mts +42 -0
- package/dist/upTimeRobot/server/upTimeRobot.mjs +51 -0
- package/dist/url/index.cjs +6 -0
- package/dist/url/index.d.cts +2 -0
- package/dist/url/index.d.mts +1 -18
- package/dist/url/index.mjs +1 -37
- package/dist/url/server/index.cjs +3 -0
- package/dist/url/server/index.d.cts +2 -0
- package/dist/url/server/index.d.mts +1 -8
- package/dist/url/server/index.mjs +1 -29
- package/dist/url/server/writeUrlContents.cjs +33 -0
- package/dist/url/server/writeUrlContents.d.cts +9 -0
- package/dist/url/server/writeUrlContents.d.mts +9 -0
- package/dist/url/server/writeUrlContents.mjs +31 -0
- package/dist/url/url.cjs +42 -0
- package/dist/url/url.d.cts +19 -0
- package/dist/url/url.d.mts +19 -0
- package/dist/url/url.mjs +38 -0
- package/dist/util/defaultTo.cjs +21 -0
- package/dist/util/defaultTo.d.cts +7 -0
- package/dist/util/defaultTo.d.mts +7 -0
- package/dist/util/defaultTo.mjs +20 -0
- package/dist/util/getClean.cjs +16 -0
- package/dist/util/getClean.d.cts +13 -0
- package/dist/util/getClean.d.mts +13 -0
- package/dist/util/getClean.mjs +15 -0
- package/dist/util/getError.cjs +10 -0
- package/dist/util/getError.d.cts +4 -0
- package/dist/util/getError.d.mts +4 -0
- package/dist/util/getError.mjs +9 -0
- package/dist/util/getWithoutHash.cjs +15 -0
- package/dist/util/getWithoutHash.d.cts +7 -0
- package/dist/util/getWithoutHash.d.mts +7 -0
- package/dist/util/getWithoutHash.mjs +14 -0
- package/dist/util/getWithoutParameter.cjs +15 -0
- package/dist/util/getWithoutParameter.d.cts +7 -0
- package/dist/util/getWithoutParameter.d.mts +7 -0
- package/dist/util/getWithoutParameter.mjs +14 -0
- package/dist/util/index.cjs +17 -0
- package/dist/util/index.d.cts +9 -0
- package/dist/util/index.d.mts +8 -49
- package/dist/util/index.mjs +8 -97
- package/dist/util/isUndefined.cjs +12 -0
- package/dist/util/isUndefined.d.cts +7 -0
- package/dist/util/isUndefined.d.mts +7 -0
- package/dist/util/isUndefined.mjs +11 -0
- package/dist/util/promiseChunks.cjs +23 -0
- package/dist/util/promiseChunks.d.cts +8 -0
- package/dist/util/promiseChunks.d.mts +8 -0
- package/dist/util/promiseChunks.mjs +22 -0
- package/dist/util/server/getBrotliCompressed.cjs +18 -0
- package/dist/util/server/getBrotliCompressed.d.cts +9 -0
- package/dist/util/server/getBrotliCompressed.d.mts +9 -0
- package/dist/util/server/getBrotliCompressed.mjs +15 -0
- package/dist/util/server/getBrotliDecompressed.cjs +19 -0
- package/dist/util/server/getBrotliDecompressed.d.cts +9 -0
- package/dist/util/server/getBrotliDecompressed.d.mts +9 -0
- package/dist/util/server/getBrotliDecompressed.mjs +16 -0
- package/dist/util/server/getGzipCompressed.cjs +18 -0
- package/dist/util/server/getGzipCompressed.d.cts +9 -0
- package/dist/util/server/getGzipCompressed.d.mts +9 -0
- package/dist/util/server/getGzipCompressed.mjs +15 -0
- package/dist/util/server/getGzipDecompressed.cjs +19 -0
- package/dist/util/server/getGzipDecompressed.d.cts +9 -0
- package/dist/util/server/getGzipDecompressed.d.mts +9 -0
- package/dist/util/server/getGzipDecompressed.mjs +16 -0
- package/dist/util/server/index.cjs +9 -0
- package/dist/util/server/index.d.cts +5 -0
- package/dist/util/server/index.d.mts +4 -26
- package/dist/util/server/index.mjs +4 -55
- package/dist/util/sleep.cjs +7 -0
- package/dist/util/sleep.d.cts +4 -0
- package/dist/util/sleep.d.mts +4 -0
- package/dist/util/sleep.mjs +6 -0
- package/dist/webWorker/index.cjs +3 -0
- package/dist/webWorker/index.d.cts +2 -0
- package/dist/webWorker/index.d.mts +1 -10
- package/dist/webWorker/index.mjs +1 -9
- package/dist/webWorker/webWorker.cjs +11 -0
- package/dist/webWorker/webWorker.d.cts +11 -0
- package/dist/webWorker/webWorker.d.mts +11 -0
- package/dist/webWorker/webWorker.mjs +10 -0
- package/dist/xml/server/getXml.cjs +15 -0
- package/dist/xml/server/getXml.d.cts +4 -0
- package/dist/xml/server/getXml.d.mts +4 -0
- package/dist/xml/server/getXml.mjs +14 -0
- package/dist/xml/server/index.cjs +3 -0
- package/dist/xml/server/index.d.cts +2 -0
- package/dist/xml/server/index.d.mts +1 -3
- package/dist/xml/server/index.mjs +1 -13
- package/package.json +1013 -70
- package/tsdown.config.ts +15 -0
- package/dist/api-BJgcoGmU.mjs +0 -127
- package/dist/chunk-y_GBKt04.mjs +0 -5
- package/dist/index-BAU-daxD.d.mts +0 -246
- package/dist/index-BlUxbvhl.d.mts +0 -30
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_onePassword_server_onePassword = require("../../onePassword/server/onePassword.cjs");
|
|
3
|
+
require("../../onePassword/server/index.cjs");
|
|
4
|
+
const require_littleWarden_server_LittleWardenNamespace = require("./LittleWardenNamespace.cjs");
|
|
5
|
+
const require_littleWarden_server_getUrlStatus = require("./getUrlStatus.cjs");
|
|
6
|
+
//#region src/littleWarden/server/littleWarden.ts
|
|
7
|
+
const littleWardenNamespaces = /* @__PURE__ */ new Map();
|
|
8
|
+
const littleWardenClient = async (key = "default", config, vaultId, itemId) => {
|
|
9
|
+
if (littleWardenNamespaces.has(key)) return littleWardenNamespaces.get(key);
|
|
10
|
+
let instanceConfig;
|
|
11
|
+
if (config) instanceConfig = config;
|
|
12
|
+
else if (vaultId && itemId) instanceConfig = await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(vaultId, itemId);
|
|
13
|
+
else if (process.env.LITTLE_WARDEN_VAULT_ID && process.env.LITTLE_WARDEN_ITEM_ID) instanceConfig = await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(process.env.LITTLE_WARDEN_VAULT_ID, process.env.LITTLE_WARDEN_ITEM_ID);
|
|
14
|
+
else throw new Error(`Config required for namespace '${key}'`);
|
|
15
|
+
const namespace = new require_littleWarden_server_LittleWardenNamespace.LittleWardenNamespace(key, instanceConfig);
|
|
16
|
+
littleWardenNamespaces.set(key, namespace);
|
|
17
|
+
return namespace;
|
|
18
|
+
};
|
|
19
|
+
const littleWardenState = {
|
|
20
|
+
ALL_GOOD: "all_good",
|
|
21
|
+
DANGER: "danger",
|
|
22
|
+
WARNING: "warning"
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if the field is All Good.
|
|
26
|
+
*/
|
|
27
|
+
const isAllGood = ({ field }) => {
|
|
28
|
+
let response = false;
|
|
29
|
+
if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.ALL_GOOD === field["status"];
|
|
30
|
+
return response;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if the field is Warning.
|
|
34
|
+
*/
|
|
35
|
+
const isWarning = ({ field }) => {
|
|
36
|
+
let response = false;
|
|
37
|
+
if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.WARNING === field["status"];
|
|
38
|
+
return response;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Check if the field is Danger.
|
|
42
|
+
*/
|
|
43
|
+
const isDanger = ({ field }) => {
|
|
44
|
+
let response = false;
|
|
45
|
+
if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.DANGER === field["status"];
|
|
46
|
+
return response;
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.getUrlStatus = require_littleWarden_server_getUrlStatus.getUrlStatus;
|
|
50
|
+
exports.isAllGood = isAllGood;
|
|
51
|
+
exports.isDanger = isDanger;
|
|
52
|
+
exports.isWarning = isWarning;
|
|
53
|
+
exports.littleWardenClient = littleWardenClient;
|
|
54
|
+
exports.littleWardenState = littleWardenState;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { getUrlStatus } from "./getUrlStatus.cjs";
|
|
2
|
+
import { LittleWardenNamespace } from "./LittleWardenNamespace.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/littleWarden/server/littleWarden.d.ts
|
|
5
|
+
type LittleWardenConfig = {
|
|
6
|
+
apiKey: string;
|
|
7
|
+
};
|
|
8
|
+
declare const littleWardenClient: (key?: string, config?: LittleWardenConfig, vaultId?: string, itemId?: string) => Promise<LittleWardenNamespace>;
|
|
9
|
+
declare const littleWardenState: {
|
|
10
|
+
readonly ALL_GOOD: "all_good";
|
|
11
|
+
readonly DANGER: "danger";
|
|
12
|
+
readonly WARNING: "warning";
|
|
13
|
+
};
|
|
14
|
+
type LittleWardenState = typeof littleWardenState[keyof typeof littleWardenState];
|
|
15
|
+
/**
|
|
16
|
+
* Check if the field is All Good.
|
|
17
|
+
*/
|
|
18
|
+
declare const isAllGood: ({
|
|
19
|
+
field
|
|
20
|
+
}: {
|
|
21
|
+
field: any;
|
|
22
|
+
}) => boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Check if the field is Warning.
|
|
25
|
+
*/
|
|
26
|
+
declare const isWarning: ({
|
|
27
|
+
field
|
|
28
|
+
}: {
|
|
29
|
+
field: any;
|
|
30
|
+
}) => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Check if the field is Danger.
|
|
33
|
+
*/
|
|
34
|
+
declare const isDanger: ({
|
|
35
|
+
field
|
|
36
|
+
}: {
|
|
37
|
+
field: any;
|
|
38
|
+
}) => boolean;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { LittleWardenConfig, LittleWardenState, getUrlStatus, isAllGood, isDanger, isWarning, littleWardenClient, littleWardenState };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { getUrlStatus } from "./getUrlStatus.mjs";
|
|
2
|
+
import { LittleWardenNamespace } from "./LittleWardenNamespace.mjs";
|
|
3
|
+
|
|
4
|
+
//#region src/littleWarden/server/littleWarden.d.ts
|
|
5
|
+
type LittleWardenConfig = {
|
|
6
|
+
apiKey: string;
|
|
7
|
+
};
|
|
8
|
+
declare const littleWardenClient: (key?: string, config?: LittleWardenConfig, vaultId?: string, itemId?: string) => Promise<LittleWardenNamespace>;
|
|
9
|
+
declare const littleWardenState: {
|
|
10
|
+
readonly ALL_GOOD: "all_good";
|
|
11
|
+
readonly DANGER: "danger";
|
|
12
|
+
readonly WARNING: "warning";
|
|
13
|
+
};
|
|
14
|
+
type LittleWardenState = typeof littleWardenState[keyof typeof littleWardenState];
|
|
15
|
+
/**
|
|
16
|
+
* Check if the field is All Good.
|
|
17
|
+
*/
|
|
18
|
+
declare const isAllGood: ({
|
|
19
|
+
field
|
|
20
|
+
}: {
|
|
21
|
+
field: any;
|
|
22
|
+
}) => boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Check if the field is Warning.
|
|
25
|
+
*/
|
|
26
|
+
declare const isWarning: ({
|
|
27
|
+
field
|
|
28
|
+
}: {
|
|
29
|
+
field: any;
|
|
30
|
+
}) => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Check if the field is Danger.
|
|
33
|
+
*/
|
|
34
|
+
declare const isDanger: ({
|
|
35
|
+
field
|
|
36
|
+
}: {
|
|
37
|
+
field: any;
|
|
38
|
+
}) => boolean;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { LittleWardenConfig, LittleWardenState, getUrlStatus, isAllGood, isDanger, isWarning, littleWardenClient, littleWardenState };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { onePasswordClient } from "../../onePassword/server/onePassword.mjs";
|
|
2
|
+
import "../../onePassword/server/index.mjs";
|
|
3
|
+
import { LittleWardenNamespace } from "./LittleWardenNamespace.mjs";
|
|
4
|
+
import { getUrlStatus } from "./getUrlStatus.mjs";
|
|
5
|
+
//#region src/littleWarden/server/littleWarden.ts
|
|
6
|
+
const littleWardenNamespaces = /* @__PURE__ */ new Map();
|
|
7
|
+
const littleWardenClient = async (key = "default", config, vaultId, itemId) => {
|
|
8
|
+
if (littleWardenNamespaces.has(key)) return littleWardenNamespaces.get(key);
|
|
9
|
+
let instanceConfig;
|
|
10
|
+
if (config) instanceConfig = config;
|
|
11
|
+
else if (vaultId && itemId) instanceConfig = await (await onePasswordClient()).getJsonNote(vaultId, itemId);
|
|
12
|
+
else if (process.env.LITTLE_WARDEN_VAULT_ID && process.env.LITTLE_WARDEN_ITEM_ID) instanceConfig = await (await onePasswordClient()).getJsonNote(process.env.LITTLE_WARDEN_VAULT_ID, process.env.LITTLE_WARDEN_ITEM_ID);
|
|
13
|
+
else throw new Error(`Config required for namespace '${key}'`);
|
|
14
|
+
const namespace = new LittleWardenNamespace(key, instanceConfig);
|
|
15
|
+
littleWardenNamespaces.set(key, namespace);
|
|
16
|
+
return namespace;
|
|
17
|
+
};
|
|
18
|
+
const littleWardenState = {
|
|
19
|
+
ALL_GOOD: "all_good",
|
|
20
|
+
DANGER: "danger",
|
|
21
|
+
WARNING: "warning"
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if the field is All Good.
|
|
25
|
+
*/
|
|
26
|
+
const isAllGood = ({ field }) => {
|
|
27
|
+
let response = false;
|
|
28
|
+
if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.ALL_GOOD === field["status"];
|
|
29
|
+
return response;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if the field is Warning.
|
|
33
|
+
*/
|
|
34
|
+
const isWarning = ({ field }) => {
|
|
35
|
+
let response = false;
|
|
36
|
+
if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.WARNING === field["status"];
|
|
37
|
+
return response;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Check if the field is Danger.
|
|
41
|
+
*/
|
|
42
|
+
const isDanger = ({ field }) => {
|
|
43
|
+
let response = false;
|
|
44
|
+
if (void 0 !== field && void 0 !== field["status"]) response = littleWardenState.DANGER === field["status"];
|
|
45
|
+
return response;
|
|
46
|
+
};
|
|
47
|
+
//#endregion
|
|
48
|
+
export { getUrlStatus, isAllGood, isDanger, isWarning, littleWardenClient, littleWardenState };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/lodash/chunk.ts
|
|
3
|
+
const chunk = (array, size) => {
|
|
4
|
+
const result = [];
|
|
5
|
+
for (let i = 0; i < array.length; i += size) result.push(array.slice(i, i + size));
|
|
6
|
+
return result;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.chunk = chunk;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/lodash/findKey.ts
|
|
3
|
+
const findKey = (object, predicate) => {
|
|
4
|
+
if (object == null) return;
|
|
5
|
+
const iteratee = getBaseIteratee(predicate);
|
|
6
|
+
let result;
|
|
7
|
+
for (const key in object) if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
8
|
+
const value = object[key];
|
|
9
|
+
if (iteratee(value, key, object)) {
|
|
10
|
+
result = key;
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
const getBaseIteratee = (value) => {
|
|
17
|
+
if (typeof value === "function") return value;
|
|
18
|
+
if (value == null) return (val) => val;
|
|
19
|
+
if (typeof value === "object") return (obj) => baseMatches(obj, value);
|
|
20
|
+
return (obj) => obj[value];
|
|
21
|
+
};
|
|
22
|
+
const baseMatches = (object, source) => {
|
|
23
|
+
if (object === source) return true;
|
|
24
|
+
if (object == null || source == null) return false;
|
|
25
|
+
for (const key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
26
|
+
if (object[key] !== source[key]) return false;
|
|
27
|
+
}
|
|
28
|
+
return true;
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.findKey = findKey;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/lodash/findKey.ts
|
|
2
|
+
const findKey = (object, predicate) => {
|
|
3
|
+
if (object == null) return;
|
|
4
|
+
const iteratee = getBaseIteratee(predicate);
|
|
5
|
+
let result;
|
|
6
|
+
for (const key in object) if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
7
|
+
const value = object[key];
|
|
8
|
+
if (iteratee(value, key, object)) {
|
|
9
|
+
result = key;
|
|
10
|
+
break;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
const getBaseIteratee = (value) => {
|
|
16
|
+
if (typeof value === "function") return value;
|
|
17
|
+
if (value == null) return (val) => val;
|
|
18
|
+
if (typeof value === "object") return (obj) => baseMatches(obj, value);
|
|
19
|
+
return (obj) => obj[value];
|
|
20
|
+
};
|
|
21
|
+
const baseMatches = (object, source) => {
|
|
22
|
+
if (object === source) return true;
|
|
23
|
+
if (object == null || source == null) return false;
|
|
24
|
+
for (const key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
25
|
+
if (object[key] !== source[key]) return false;
|
|
26
|
+
}
|
|
27
|
+
return true;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { findKey };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_lodash_chunk = require("./chunk.cjs");
|
|
3
|
+
const require_lodash_findKey = require("./findKey.cjs");
|
|
4
|
+
const require_lodash_flatten = require("./flatten.cjs");
|
|
5
|
+
const require_lodash_set = require("./set.cjs");
|
|
6
|
+
const require_lodash_trim = require("./trim.cjs");
|
|
7
|
+
const require_lodash_isDate = require("./isDate.cjs");
|
|
8
|
+
const require_lodash_isEmpty = require("./isEmpty.cjs");
|
|
9
|
+
const require_lodash_isEqual = require("./isEqual.cjs");
|
|
10
|
+
const require_lodash_isFunction = require("./isFunction.cjs");
|
|
11
|
+
const require_lodash_isObject = require("./isObject.cjs");
|
|
12
|
+
const require_lodash_merge = require("./merge.cjs");
|
|
13
|
+
const require_lodash_orderBy = require("./orderBy.cjs");
|
|
14
|
+
const require_lodash_unescape = require("./unescape.cjs");
|
|
15
|
+
const require_lodash_uniq = require("./uniq.cjs");
|
|
16
|
+
const require_lodash_uniqBy = require("./uniqBy.cjs");
|
|
17
|
+
exports.chunk = require_lodash_chunk.chunk;
|
|
18
|
+
exports.findKey = require_lodash_findKey.findKey;
|
|
19
|
+
exports.flatten = require_lodash_flatten.flatten;
|
|
20
|
+
exports.isDate = require_lodash_isDate.isDate;
|
|
21
|
+
exports.isEmpty = require_lodash_isEmpty.isEmpty;
|
|
22
|
+
exports.isEqual = require_lodash_isEqual.isEqual;
|
|
23
|
+
exports.isFunction = require_lodash_isFunction.isFunction;
|
|
24
|
+
exports.isObject = require_lodash_isObject.isObject;
|
|
25
|
+
exports.merge = require_lodash_merge.merge;
|
|
26
|
+
exports.orderBy = require_lodash_orderBy.orderBy;
|
|
27
|
+
exports.set = require_lodash_set.set;
|
|
28
|
+
exports.trim = require_lodash_trim.trim;
|
|
29
|
+
exports.unescape = require_lodash_unescape.unescape;
|
|
30
|
+
exports.uniq = require_lodash_uniq.uniq;
|
|
31
|
+
exports.uniqBy = require_lodash_uniqBy.uniqBy;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { chunk } from "./chunk.cjs";
|
|
2
|
+
import { findKey } from "./findKey.cjs";
|
|
3
|
+
import { flatten } from "./flatten.cjs";
|
|
4
|
+
import { set } from "./set.cjs";
|
|
5
|
+
import { trim } from "./trim.cjs";
|
|
6
|
+
import { isDate } from "./isDate.cjs";
|
|
7
|
+
import { isEmpty } from "./isEmpty.cjs";
|
|
8
|
+
import { isEqual } from "./isEqual.cjs";
|
|
9
|
+
import { isFunction } from "./isFunction.cjs";
|
|
10
|
+
import { isObject } from "./isObject.cjs";
|
|
11
|
+
import { merge } from "./merge.cjs";
|
|
12
|
+
import { orderBy } from "./orderBy.cjs";
|
|
13
|
+
import { unescape } from "./unescape.cjs";
|
|
14
|
+
import { uniq } from "./uniq.cjs";
|
|
15
|
+
import { uniqBy } from "./uniqBy.cjs";
|
|
16
|
+
export { chunk, findKey, flatten, isDate, isEmpty, isEqual, isFunction, isObject, merge, orderBy, set, trim, unescape, uniq, uniqBy };
|
package/dist/lodash/index.d.mts
CHANGED
|
@@ -1,48 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
//#region src/lodash/isDate.d.ts
|
|
17
|
-
declare const isDate: (value: unknown) => value is Date;
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/lodash/isEmpty.d.ts
|
|
20
|
-
declare const isEmpty: (value: unknown) => boolean;
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/lodash/isEqual.d.ts
|
|
23
|
-
declare const isEqual: (a: unknown, b: unknown) => boolean;
|
|
24
|
-
//#endregion
|
|
25
|
-
//#region src/lodash/isFunction.d.ts
|
|
26
|
-
declare const isFunction: (value: any) => value is Function;
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/lodash/isObject.d.ts
|
|
29
|
-
declare const isObject: (value: unknown) => value is object;
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/lodash/merge.d.ts
|
|
32
|
-
declare const merge: <T extends object>(target: T, ...sources: any[]) => T;
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/lodash/orderBy.d.ts
|
|
35
|
-
type OrderDirection = "asc" | "desc";
|
|
36
|
-
type Iteratee<T> = ((item: T) => unknown) | string;
|
|
37
|
-
declare const orderBy: <T>(collection: T[] | Record<string, T>, iteratees: Iteratee<T> | Iteratee<T>[], orders?: OrderDirection | OrderDirection[]) => T[];
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/lodash/unescape.d.ts
|
|
40
|
-
declare const unescape: (str: string) => string;
|
|
41
|
-
//#endregion
|
|
42
|
-
//#region src/lodash/uniq.d.ts
|
|
43
|
-
declare const uniq: (arr: any[]) => any[];
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region src/lodash/uniqBy.d.ts
|
|
46
|
-
declare const uniqBy: <T>(collection: T[], iteratee: ((item: T) => unknown) | string) => T[];
|
|
47
|
-
//#endregion
|
|
1
|
+
import { chunk } from "./chunk.mjs";
|
|
2
|
+
import { findKey } from "./findKey.mjs";
|
|
3
|
+
import { flatten } from "./flatten.mjs";
|
|
4
|
+
import { set } from "./set.mjs";
|
|
5
|
+
import { trim } from "./trim.mjs";
|
|
6
|
+
import { isDate } from "./isDate.mjs";
|
|
7
|
+
import { isEmpty } from "./isEmpty.mjs";
|
|
8
|
+
import { isEqual } from "./isEqual.mjs";
|
|
9
|
+
import { isFunction } from "./isFunction.mjs";
|
|
10
|
+
import { isObject } from "./isObject.mjs";
|
|
11
|
+
import { merge } from "./merge.mjs";
|
|
12
|
+
import { orderBy } from "./orderBy.mjs";
|
|
13
|
+
import { unescape } from "./unescape.mjs";
|
|
14
|
+
import { uniq } from "./uniq.mjs";
|
|
15
|
+
import { uniqBy } from "./uniqBy.mjs";
|
|
48
16
|
export { chunk, findKey, flatten, isDate, isEmpty, isEqual, isFunction, isObject, merge, orderBy, set, trim, unescape, uniq, uniqBy };
|
package/dist/lodash/index.mjs
CHANGED
|
@@ -1,192 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
result = key;
|
|
17
|
-
break;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return result;
|
|
21
|
-
};
|
|
22
|
-
const getBaseIteratee = (value) => {
|
|
23
|
-
if (typeof value === "function") return value;
|
|
24
|
-
if (value == null) return (val) => val;
|
|
25
|
-
if (typeof value === "object") return (obj) => baseMatches(obj, value);
|
|
26
|
-
return (obj) => obj[value];
|
|
27
|
-
};
|
|
28
|
-
const baseMatches = (object, source) => {
|
|
29
|
-
if (object === source) return true;
|
|
30
|
-
if (object == null || source == null) return false;
|
|
31
|
-
for (const key in source) if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
32
|
-
if (object[key] !== source[key]) return false;
|
|
33
|
-
}
|
|
34
|
-
return true;
|
|
35
|
-
};
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region src/lodash/flatten.ts
|
|
38
|
-
const flatten = (array) => [].concat(...array);
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/lodash/set.ts
|
|
41
|
-
const set = (obj, path, value) => {
|
|
42
|
-
if (obj == null) return obj;
|
|
43
|
-
const keys = Array.isArray(path) ? path : path.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
44
|
-
let current = obj;
|
|
45
|
-
for (let i = 0; i < keys.length - 1; i++) {
|
|
46
|
-
const key = keys[i];
|
|
47
|
-
const nextKey = keys[i + 1];
|
|
48
|
-
const nextIsIndex = /^\d+$/.test(nextKey);
|
|
49
|
-
if (current[key] == null || typeof current[key] !== "object") current[key] = nextIsIndex ? [] : {};
|
|
50
|
-
current = current[key];
|
|
51
|
-
}
|
|
52
|
-
current[keys[keys.length - 1]] = value;
|
|
53
|
-
return obj;
|
|
54
|
-
};
|
|
55
|
-
//#endregion
|
|
56
|
-
//#region src/lodash/trim.ts
|
|
57
|
-
const trim = (str, chars) => {
|
|
58
|
-
if (!chars) return str.trim();
|
|
59
|
-
const escaped = chars.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
60
|
-
const pattern = new RegExp(`^[${escaped}]+|[${escaped}]+$`, "g");
|
|
61
|
-
return str.replace(pattern, "");
|
|
62
|
-
};
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/lodash/isDate.ts
|
|
65
|
-
const isDate = (value) => {
|
|
66
|
-
return value instanceof Date && !isNaN(value.getTime());
|
|
67
|
-
};
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/lodash/isEmpty.ts
|
|
70
|
-
const isEmpty = (value) => {
|
|
71
|
-
if (value == null) return true;
|
|
72
|
-
if (typeof value === "boolean" || typeof value === "number") return true;
|
|
73
|
-
if (typeof value === "string" || Array.isArray(value)) return value.length === 0;
|
|
74
|
-
if (value instanceof Map || value instanceof Set) return value.size === 0;
|
|
75
|
-
if (typeof value === "object") return Object.keys(value).length === 0;
|
|
76
|
-
return true;
|
|
77
|
-
};
|
|
78
|
-
//#endregion
|
|
79
|
-
//#region src/lodash/isEqual.ts
|
|
80
|
-
const isEqual = (a, b) => {
|
|
81
|
-
if (a === b) return true;
|
|
82
|
-
if (a == null || b == null) return a === b;
|
|
83
|
-
if (typeof a !== typeof b) return false;
|
|
84
|
-
if (a instanceof Date && b instanceof Date) return a.getTime() === b.getTime();
|
|
85
|
-
if (a instanceof RegExp && b instanceof RegExp) return a.toString() === b.toString();
|
|
86
|
-
if (Array.isArray(a) && Array.isArray(b)) {
|
|
87
|
-
if (a.length !== b.length) return false;
|
|
88
|
-
return a.every((item, i) => isEqual(item, b[i]));
|
|
89
|
-
}
|
|
90
|
-
if (Array.isArray(a) !== Array.isArray(b)) return false;
|
|
91
|
-
if (a instanceof Map && b instanceof Map) {
|
|
92
|
-
if (a.size !== b.size) return false;
|
|
93
|
-
for (const [key, val] of a) if (!b.has(key) || !isEqual(val, b.get(key))) return false;
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
if (a instanceof Set && b instanceof Set) {
|
|
97
|
-
if (a.size !== b.size) return false;
|
|
98
|
-
for (const val of a) if (!b.has(val)) return false;
|
|
99
|
-
return true;
|
|
100
|
-
}
|
|
101
|
-
if (typeof a === "object" && typeof b === "object") {
|
|
102
|
-
const keysA = Object.keys(a);
|
|
103
|
-
const keysB = Object.keys(b);
|
|
104
|
-
if (keysA.length !== keysB.length) return false;
|
|
105
|
-
return keysA.every((key) => Object.prototype.hasOwnProperty.call(b, key) && isEqual(a[key], b[key]));
|
|
106
|
-
}
|
|
107
|
-
return false;
|
|
108
|
-
};
|
|
109
|
-
//#endregion
|
|
110
|
-
//#region src/lodash/isFunction.ts
|
|
111
|
-
const isFunction = (value) => typeof value === "function";
|
|
112
|
-
//#endregion
|
|
113
|
-
//#region src/lodash/isObject.ts
|
|
114
|
-
const isObject = (value) => {
|
|
115
|
-
const type = typeof value;
|
|
116
|
-
return value != null && (type === "object" || type === "function");
|
|
117
|
-
};
|
|
118
|
-
//#endregion
|
|
119
|
-
//#region src/lodash/merge.ts
|
|
120
|
-
const merge = (target, ...sources) => {
|
|
121
|
-
for (const source of sources) {
|
|
122
|
-
if (source == null) continue;
|
|
123
|
-
for (const key of Object.keys(source)) {
|
|
124
|
-
const sourceVal = source[key];
|
|
125
|
-
const targetVal = target[key];
|
|
126
|
-
if (Array.isArray(sourceVal) && Array.isArray(targetVal)) {
|
|
127
|
-
const merged = [...targetVal];
|
|
128
|
-
for (let i = 0; i < sourceVal.length; i++) if (sourceVal[i] != null && typeof sourceVal[i] === "object") merged[i] = merge(targetVal[i] ?? {}, sourceVal[i]);
|
|
129
|
-
else merged[i] = sourceVal[i];
|
|
130
|
-
target[key] = merged;
|
|
131
|
-
} else if (sourceVal != null && typeof sourceVal === "object" && !Array.isArray(sourceVal) && !(sourceVal instanceof Date)) target[key] = merge(targetVal != null && typeof targetVal === "object" ? targetVal : {}, sourceVal);
|
|
132
|
-
else if (sourceVal !== void 0) target[key] = sourceVal;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return target;
|
|
136
|
-
};
|
|
137
|
-
//#endregion
|
|
138
|
-
//#region src/lodash/orderBy.ts
|
|
139
|
-
const orderBy = (collection, iteratees, orders = "asc") => {
|
|
140
|
-
const arr = Array.isArray(collection) ? collection : Object.values(collection);
|
|
141
|
-
const keys = Array.isArray(iteratees) ? iteratees : [iteratees];
|
|
142
|
-
const dirs = Array.isArray(orders) ? orders : [orders];
|
|
143
|
-
const getValue = (item, key) => {
|
|
144
|
-
if (typeof key === "function") return key(item);
|
|
145
|
-
return key.split(".").reduce((acc, part) => acc?.[part], item);
|
|
146
|
-
};
|
|
147
|
-
return [...arr].sort((a, b) => {
|
|
148
|
-
for (let i = 0; i < keys.length; i++) {
|
|
149
|
-
const dir = dirs[i] === "desc" ? -1 : 1;
|
|
150
|
-
const aVal = getValue(a, keys[i]);
|
|
151
|
-
const bVal = getValue(b, keys[i]);
|
|
152
|
-
if (aVal === bVal) continue;
|
|
153
|
-
if (aVal == null) return 1;
|
|
154
|
-
if (bVal == null) return -1;
|
|
155
|
-
if (typeof aVal === "string" && typeof bVal === "string") return aVal.localeCompare(bVal) * dir;
|
|
156
|
-
return (aVal < bVal ? -1 : 1) * dir;
|
|
157
|
-
}
|
|
158
|
-
return 0;
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region src/lodash/unescape.ts
|
|
163
|
-
const unescape = (str) => {
|
|
164
|
-
const htmlEntities = {
|
|
165
|
-
"&": "&",
|
|
166
|
-
"<": "<",
|
|
167
|
-
">": ">",
|
|
168
|
-
""": "\"",
|
|
169
|
-
"'": "'"
|
|
170
|
-
};
|
|
171
|
-
return str.replace(/&(?:amp|lt|gt|quot|#39);/g, (match) => htmlEntities[match]);
|
|
172
|
-
};
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region src/lodash/uniq.ts
|
|
175
|
-
const uniq = (arr) => [...new Set(arr)];
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region src/lodash/uniqBy.ts
|
|
178
|
-
const uniqBy = (collection, iteratee) => {
|
|
179
|
-
const seen = /* @__PURE__ */ new Set();
|
|
180
|
-
const getValue = (item) => {
|
|
181
|
-
if (typeof iteratee === "function") return iteratee(item);
|
|
182
|
-
return iteratee.split(".").reduce((acc, part) => acc?.[part], item);
|
|
183
|
-
};
|
|
184
|
-
return collection.filter((item) => {
|
|
185
|
-
const key = getValue(item);
|
|
186
|
-
if (seen.has(key)) return false;
|
|
187
|
-
seen.add(key);
|
|
188
|
-
return true;
|
|
189
|
-
});
|
|
190
|
-
};
|
|
191
|
-
//#endregion
|
|
1
|
+
import { chunk } from "./chunk.mjs";
|
|
2
|
+
import { findKey } from "./findKey.mjs";
|
|
3
|
+
import { flatten } from "./flatten.mjs";
|
|
4
|
+
import { set } from "./set.mjs";
|
|
5
|
+
import { trim } from "./trim.mjs";
|
|
6
|
+
import { isDate } from "./isDate.mjs";
|
|
7
|
+
import { isEmpty } from "./isEmpty.mjs";
|
|
8
|
+
import { isEqual } from "./isEqual.mjs";
|
|
9
|
+
import { isFunction } from "./isFunction.mjs";
|
|
10
|
+
import { isObject } from "./isObject.mjs";
|
|
11
|
+
import { merge } from "./merge.mjs";
|
|
12
|
+
import { orderBy } from "./orderBy.mjs";
|
|
13
|
+
import { unescape } from "./unescape.mjs";
|
|
14
|
+
import { uniq } from "./uniq.mjs";
|
|
15
|
+
import { uniqBy } from "./uniqBy.mjs";
|
|
192
16
|
export { chunk, findKey, flatten, isDate, isEmpty, isEqual, isFunction, isObject, merge, orderBy, set, trim, unescape, uniq, uniqBy };
|