@8ms/helpers 2.4.25 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_class/BaseNamespace.cjs +4 -9
- package/dist/_class/BaseNamespace.d.cts +2 -4
- package/dist/_class/BaseNamespace.d.mts +2 -4
- package/dist/_class/BaseNamespace.mjs +4 -9
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.cjs → AwsCloudWatchLog.cjs} +9 -10
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.cts → AwsCloudWatchLog.d.cts} +5 -6
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.d.mts → AwsCloudWatchLog.d.mts} +5 -6
- package/dist/aws/cloudWatchLog/server/{AwsCloudWatchLogNamespace.mjs → AwsCloudWatchLog.mjs} +9 -10
- package/dist/aws/cloudWatchLog/server/index.cjs +2 -4
- package/dist/aws/cloudWatchLog/server/index.d.cts +2 -3
- package/dist/aws/cloudWatchLog/server/index.d.mts +2 -3
- package/dist/aws/cloudWatchLog/server/index.mjs +2 -3
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.cjs → AwsCloudWatchMetric.cjs} +11 -10
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.cts → AwsCloudWatchMetric.d.cts} +5 -6
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.d.mts → AwsCloudWatchMetric.d.mts} +5 -6
- package/dist/aws/cloudWatchMetric/server/{AwsCloudWatchMetricNamespace.mjs → AwsCloudWatchMetric.mjs} +10 -8
- package/dist/aws/cloudWatchMetric/server/index.cjs +2 -4
- package/dist/aws/cloudWatchMetric/server/index.d.cts +2 -3
- package/dist/aws/cloudWatchMetric/server/index.d.mts +2 -3
- package/dist/aws/cloudWatchMetric/server/index.mjs +2 -3
- package/dist/aws/ec2/server/{AwsEc2Namespace.cjs → AwsEc2.cjs} +9 -7
- package/dist/aws/ec2/server/{AwsEc2Namespace.d.cts → AwsEc2.d.cts} +5 -6
- package/dist/aws/ec2/server/{AwsEc2Namespace.d.mts → AwsEc2.d.mts} +5 -6
- package/dist/aws/ec2/server/{AwsEc2Namespace.mjs → AwsEc2.mjs} +9 -7
- package/dist/aws/ec2/server/index.cjs +2 -4
- package/dist/aws/ec2/server/index.d.cts +2 -3
- package/dist/aws/ec2/server/index.d.mts +2 -3
- package/dist/aws/ec2/server/index.mjs +2 -3
- package/dist/aws/ecs/server/{AwsEcsNamespace.cjs → AwsEcs.cjs} +9 -9
- package/dist/aws/ecs/server/{AwsEcsNamespace.d.cts → AwsEcs.d.cts} +5 -6
- package/dist/aws/ecs/server/{AwsEcsNamespace.d.mts → AwsEcs.d.mts} +5 -6
- package/dist/aws/ecs/server/{AwsEcsNamespace.mjs → AwsEcs.mjs} +9 -9
- package/dist/aws/ecs/server/index.cjs +2 -4
- package/dist/aws/ecs/server/index.d.cts +2 -3
- package/dist/aws/ecs/server/index.d.mts +2 -3
- package/dist/aws/ecs/server/index.mjs +2 -3
- package/dist/aws/glue/server/{AwsGlueNamespace.cjs → AwsGlue.cjs} +9 -6
- package/dist/aws/glue/server/{AwsGlueNamespace.d.cts → AwsGlue.d.cts} +5 -6
- package/dist/aws/glue/server/{AwsGlueNamespace.d.mts → AwsGlue.d.mts} +5 -6
- package/dist/aws/glue/server/{AwsGlueNamespace.mjs → AwsGlue.mjs} +9 -6
- package/dist/aws/glue/server/index.cjs +2 -4
- package/dist/aws/glue/server/index.d.cts +2 -3
- package/dist/aws/glue/server/index.d.mts +2 -3
- package/dist/aws/glue/server/index.mjs +2 -3
- package/dist/aws/lambda/server/{AwsLambdaNamespace.cjs → AwsLambda.cjs} +9 -6
- package/dist/aws/lambda/server/{AwsLambdaNamespace.d.cts → AwsLambda.d.cts} +5 -6
- package/dist/aws/lambda/server/{AwsLambdaNamespace.d.mts → AwsLambda.d.mts} +5 -6
- package/dist/aws/lambda/server/{AwsLambdaNamespace.mjs → AwsLambda.mjs} +9 -6
- package/dist/aws/lambda/server/getHandlerPath.cjs +7 -0
- package/dist/aws/lambda/server/getHandlerPath.d.cts +4 -0
- package/dist/aws/lambda/server/getHandlerPath.d.mts +4 -0
- package/dist/aws/lambda/server/getHandlerPath.mjs +6 -0
- package/dist/aws/lambda/server/index.cjs +4 -5
- package/dist/aws/lambda/server/index.d.cts +3 -3
- package/dist/aws/lambda/server/index.d.mts +3 -3
- package/dist/aws/lambda/server/index.mjs +3 -3
- package/dist/aws/s3/server/{AwsS3Namespace.cjs → AwsS3.cjs} +12 -31
- package/dist/aws/s3/server/{AwsS3Namespace.d.cts → AwsS3.d.cts} +6 -7
- package/dist/aws/s3/server/{AwsS3Namespace.d.mts → AwsS3.d.mts} +6 -7
- package/dist/aws/s3/server/{AwsS3Namespace.mjs → AwsS3.mjs} +10 -29
- package/dist/aws/s3/server/awsS3File.cjs +12 -0
- package/dist/aws/s3/server/awsS3File.d.cts +12 -0
- package/dist/aws/s3/server/awsS3File.d.mts +12 -0
- package/dist/aws/s3/server/awsS3File.mjs +11 -0
- package/dist/aws/s3/server/index.cjs +4 -5
- package/dist/aws/s3/server/index.d.cts +3 -3
- package/dist/aws/s3/server/index.d.mts +3 -3
- package/dist/aws/s3/server/index.mjs +3 -3
- package/dist/aws/server/getAwsConfig.cjs +15 -0
- package/dist/aws/server/getAwsConfig.d.cts +18 -0
- package/dist/aws/server/getAwsConfig.d.mts +18 -0
- package/dist/aws/server/getAwsConfig.mjs +14 -0
- package/dist/aws/server/index.cjs +2 -2
- package/dist/aws/server/index.d.cts +2 -2
- package/dist/aws/server/index.d.mts +2 -2
- package/dist/aws/server/index.mjs +2 -2
- package/dist/aws/ses/server/{AwsSesNamespace.cjs → AwsSes.cjs} +9 -6
- package/dist/aws/ses/server/{AwsSesNamespace.d.cts → AwsSes.d.cts} +5 -6
- package/dist/aws/ses/server/{AwsSesNamespace.d.mts → AwsSes.d.mts} +5 -6
- package/dist/aws/ses/server/{AwsSesNamespace.mjs → AwsSes.mjs} +9 -6
- package/dist/aws/ses/server/index.cjs +2 -4
- package/dist/aws/ses/server/index.d.cts +2 -3
- package/dist/aws/ses/server/index.d.mts +2 -3
- package/dist/aws/ses/server/index.mjs +2 -3
- package/dist/aws/sqs/server/{AwsSqsNamespace.cjs → AwsSqs.cjs} +9 -8
- package/dist/aws/sqs/server/{AwsSqsNamespace.d.cts → AwsSqs.d.cts} +5 -6
- package/dist/aws/sqs/server/{AwsSqsNamespace.d.mts → AwsSqs.d.mts} +5 -6
- package/dist/aws/sqs/server/{AwsSqsNamespace.mjs → AwsSqs.mjs} +9 -8
- package/dist/aws/sqs/server/index.cjs +2 -4
- package/dist/aws/sqs/server/index.d.cts +2 -3
- package/dist/aws/sqs/server/index.d.mts +2 -3
- package/dist/aws/sqs/server/index.mjs +2 -3
- package/dist/aws/ssm/server/{AwsSsmNamespace.cjs → AwsSsm.cjs} +14 -14
- package/dist/aws/ssm/server/AwsSsm.d.cts +13 -0
- package/dist/aws/ssm/server/AwsSsm.d.mts +13 -0
- package/dist/aws/ssm/server/AwsSsm.mjs +34 -0
- package/dist/aws/ssm/server/index.cjs +2 -4
- package/dist/aws/ssm/server/index.d.cts +2 -3
- package/dist/aws/ssm/server/index.d.mts +2 -3
- package/dist/aws/ssm/server/index.mjs +2 -3
- package/dist/drizzle/server/{DrizzleNamespace.cjs → Drizzle.cjs} +5 -5
- package/dist/drizzle/server/{drizzle.d.cts → Drizzle.d.cts} +8 -4
- package/dist/drizzle/server/{drizzle.d.mts → Drizzle.d.mts} +8 -4
- package/dist/drizzle/server/{DrizzleNamespace.mjs → Drizzle.mjs} +5 -5
- package/dist/drizzle/server/index.cjs +2 -4
- package/dist/drizzle/server/index.d.cts +2 -3
- package/dist/drizzle/server/index.d.mts +2 -3
- package/dist/drizzle/server/index.mjs +2 -3
- package/dist/environment/environment.cjs +2 -2
- package/dist/environment/environment.mjs +2 -2
- package/dist/googleAds/server/{GoogleAdsNamespace.cjs → GoogleAds.cjs} +9 -10
- package/dist/googleAds/server/{GoogleAdsNamespace.d.cts → GoogleAds.d.cts} +9 -5
- package/dist/googleAds/server/{GoogleAdsNamespace.d.mts → GoogleAds.d.mts} +9 -5
- package/dist/googleAds/server/GoogleAds.mjs +28 -0
- package/dist/googleAds/server/index.cjs +2 -4
- package/dist/googleAds/server/index.d.cts +2 -3
- package/dist/googleAds/server/index.d.mts +2 -3
- package/dist/googleAds/server/index.mjs +2 -3
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.cjs → GoogleCloudBigquery.cjs} +27 -33
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.cts → GoogleCloudBigquery.d.cts} +14 -16
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.d.mts → GoogleCloudBigquery.d.mts} +14 -16
- package/dist/googleCloud/bigquery/server/{GoogleCloudBigqueryNamespace.mjs → GoogleCloudBigquery.mjs} +27 -33
- package/dist/googleCloud/bigquery/server/getHandlerPath.cjs +7 -0
- package/dist/googleCloud/bigquery/server/getHandlerPath.d.cts +4 -0
- package/dist/googleCloud/bigquery/server/getHandlerPath.d.mts +4 -0
- package/dist/googleCloud/bigquery/server/getHandlerPath.mjs +6 -0
- package/dist/googleCloud/bigquery/server/index.cjs +4 -5
- package/dist/googleCloud/bigquery/server/index.d.cts +3 -3
- package/dist/googleCloud/bigquery/server/index.d.mts +3 -3
- package/dist/googleCloud/bigquery/server/index.mjs +3 -3
- package/dist/googleCloud/bigquery/server/loadData.d.cts +2 -2
- package/dist/googleCloud/bigquery/server/loadData.d.mts +2 -2
- package/dist/googleCloud/server/getGoogleCloudConfig.cjs +81 -0
- package/dist/googleCloud/server/getGoogleCloudConfig.d.cts +77 -0
- package/dist/googleCloud/server/getGoogleCloudConfig.d.mts +77 -0
- package/dist/googleCloud/server/getGoogleCloudConfig.mjs +78 -0
- package/dist/googleCloud/server/index.cjs +4 -2
- package/dist/googleCloud/server/index.d.cts +2 -2
- package/dist/googleCloud/server/index.d.mts +2 -2
- package/dist/googleCloud/server/index.mjs +2 -2
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.cjs → GoogleCloudSheets.cjs} +10 -8
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.cts → GoogleCloudSheets.d.cts} +8 -8
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.d.mts → GoogleCloudSheets.d.mts} +8 -8
- package/dist/googleCloud/sheets/server/{GoogleCloudSheetsNamespace.mjs → GoogleCloudSheets.mjs} +10 -8
- package/dist/googleCloud/sheets/server/index.cjs +2 -2
- package/dist/googleCloud/sheets/server/index.d.cts +2 -2
- package/dist/googleCloud/sheets/server/index.d.mts +2 -2
- package/dist/googleCloud/sheets/server/index.mjs +2 -2
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.cjs → GoogleCloudStorage.cjs} +15 -10
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.cts → GoogleCloudStorage.d.cts} +10 -8
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.d.mts → GoogleCloudStorage.d.mts} +10 -8
- package/dist/googleCloud/storage/server/{GoogleCloudStorageNamespace.mjs → GoogleCloudStorage.mjs} +15 -10
- package/dist/googleCloud/storage/server/index.cjs +2 -4
- package/dist/googleCloud/storage/server/index.d.cts +2 -3
- package/dist/googleCloud/storage/server/index.d.mts +2 -3
- package/dist/googleCloud/storage/server/index.mjs +2 -3
- package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.cjs → GooglePageSpeed.cjs} +8 -7
- package/dist/googlePageSpeed/server/GooglePageSpeed.d.cts +19 -0
- package/dist/googlePageSpeed/server/GooglePageSpeed.d.mts +19 -0
- package/dist/googlePageSpeed/server/{GooglePageSpeedNamespace.mjs → GooglePageSpeed.mjs} +7 -6
- package/dist/googlePageSpeed/server/category.cjs +11 -0
- package/dist/googlePageSpeed/server/category.d.cts +11 -0
- package/dist/googlePageSpeed/server/category.d.mts +11 -0
- package/dist/googlePageSpeed/server/category.mjs +10 -0
- package/dist/googlePageSpeed/server/index.cjs +6 -6
- package/dist/googlePageSpeed/server/index.d.cts +4 -3
- package/dist/googlePageSpeed/server/index.d.mts +4 -3
- package/dist/googlePageSpeed/server/index.mjs +4 -3
- package/dist/googlePageSpeed/server/strategy.cjs +9 -0
- package/dist/googlePageSpeed/server/strategy.d.cts +9 -0
- package/dist/googlePageSpeed/server/strategy.d.mts +9 -0
- package/dist/googlePageSpeed/server/strategy.mjs +8 -0
- package/dist/inngest/index.cjs +2 -2
- package/dist/inngest/index.d.cts +1 -1
- package/dist/inngest/index.d.mts +1 -1
- package/dist/inngest/index.mjs +1 -1
- package/dist/inngest/{inngest.cjs → inngestState.cjs} +1 -1
- package/dist/inngest/{inngest.d.mts → inngestState.d.cts} +1 -1
- package/dist/inngest/{inngest.d.cts → inngestState.d.mts} +1 -1
- package/dist/inngest/{inngest.mjs → inngestState.mjs} +1 -1
- package/dist/littleWarden/server/{LittleWardenNamespace.cjs → LittleWarden.cjs} +5 -4
- package/dist/littleWarden/server/{LittleWardenNamespace.d.cts → LittleWarden.d.cts} +7 -5
- package/dist/littleWarden/server/{LittleWardenNamespace.d.mts → LittleWarden.d.mts} +7 -5
- package/dist/littleWarden/server/{LittleWardenNamespace.mjs → LittleWarden.mjs} +5 -4
- package/dist/littleWarden/server/index.cjs +7 -8
- package/dist/littleWarden/server/index.d.cts +3 -3
- package/dist/littleWarden/server/index.d.mts +3 -3
- package/dist/littleWarden/server/index.mjs +3 -3
- package/dist/littleWarden/server/littleWardenAttrs.cjs +38 -0
- package/dist/littleWarden/server/{littleWarden.d.cts → littleWardenAttrs.d.cts} +2 -7
- package/dist/littleWarden/server/{littleWarden.d.mts → littleWardenAttrs.d.mts} +2 -7
- package/dist/littleWarden/server/littleWardenAttrs.mjs +33 -0
- package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.cts +7 -0
- package/dist/node_modules/@smithy/types/dist-types/http/httpHandlerInitialization.d.mts +7 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.cts +35 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.mts +35 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.cts +18 -0
- package/dist/node_modules/@smithy/types/dist-types/identity/identity.d.mts +18 -0
- package/dist/node_modules/@smithy/types/dist-types/index.d.cts +2 -0
- package/dist/node_modules/@smithy/types/dist-types/index.d.mts +2 -0
- package/dist/onePassword/server/OnePassword.cjs +44 -0
- package/dist/onePassword/server/OnePassword.d.cts +21 -0
- package/dist/onePassword/server/OnePassword.d.mts +21 -0
- package/dist/onePassword/server/{OnePasswordNamespace.mjs → OnePassword.mjs} +19 -13
- package/dist/onePassword/server/getIdsFromUrl.cjs +2 -2
- package/dist/onePassword/server/getIdsFromUrl.d.cts +2 -2
- package/dist/onePassword/server/getIdsFromUrl.d.mts +2 -2
- package/dist/onePassword/server/getIdsFromUrl.mjs +2 -2
- package/dist/onePassword/server/index.cjs +2 -4
- package/dist/onePassword/server/index.d.cts +2 -3
- package/dist/onePassword/server/index.d.mts +2 -3
- package/dist/onePassword/server/index.mjs +2 -3
- package/dist/openAi/server/{OpenAiNamespace.cjs → OpenAi.cjs} +10 -7
- package/dist/openAi/server/{OpenAiNamespace.d.cts → OpenAi.d.cts} +7 -5
- package/dist/openAi/server/{OpenAiNamespace.d.mts → OpenAi.d.mts} +7 -5
- package/dist/openAi/server/{OpenAiNamespace.mjs → OpenAi.mjs} +10 -7
- package/dist/openAi/server/index.cjs +2 -4
- package/dist/openAi/server/index.d.cts +2 -3
- package/dist/openAi/server/index.d.mts +2 -3
- package/dist/openAi/server/index.mjs +2 -3
- package/dist/snapchat/server/{SnapchatNamespace.cjs → Snapchat.cjs} +5 -4
- package/dist/snapchat/server/Snapchat.d.cts +22 -0
- package/dist/snapchat/server/Snapchat.d.mts +22 -0
- package/dist/snapchat/server/{SnapchatNamespace.mjs → Snapchat.mjs} +5 -4
- package/dist/snapchat/server/index.cjs +2 -4
- package/dist/snapchat/server/index.d.cts +2 -3
- package/dist/snapchat/server/index.d.mts +2 -3
- package/dist/snapchat/server/index.mjs +2 -3
- package/dist/swr/client/swr.cjs +1 -1
- package/dist/swr/client/swr.mjs +1 -1
- package/dist/upTimeRobot/server/UpTimeRobot.cjs +34 -0
- package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.cts → UpTimeRobot.d.cts} +7 -5
- package/dist/upTimeRobot/server/{UpTimeRobotNamespace.d.mts → UpTimeRobot.d.mts} +7 -5
- package/dist/upTimeRobot/server/UpTimeRobot.mjs +33 -0
- package/dist/upTimeRobot/server/index.cjs +12 -9
- package/dist/upTimeRobot/server/index.d.cts +7 -3
- package/dist/upTimeRobot/server/index.d.mts +7 -3
- package/dist/upTimeRobot/server/index.mjs +7 -3
- package/dist/upTimeRobot/server/logType.cjs +10 -0
- package/dist/upTimeRobot/server/logType.d.cts +10 -0
- package/dist/upTimeRobot/server/logType.d.mts +10 -0
- package/dist/upTimeRobot/server/logType.mjs +9 -0
- package/dist/upTimeRobot/server/monitorStatus.cjs +11 -0
- package/dist/upTimeRobot/server/monitorStatus.d.cts +11 -0
- package/dist/upTimeRobot/server/monitorStatus.d.mts +11 -0
- package/dist/upTimeRobot/server/monitorStatus.mjs +10 -0
- package/dist/upTimeRobot/server/monitorSubTypes.cjs +13 -0
- package/dist/upTimeRobot/server/monitorSubTypes.d.cts +13 -0
- package/dist/upTimeRobot/server/monitorSubTypes.d.mts +13 -0
- package/dist/upTimeRobot/server/monitorSubTypes.mjs +12 -0
- package/dist/upTimeRobot/server/monitorType.cjs +11 -0
- package/dist/upTimeRobot/server/monitorType.d.cts +11 -0
- package/dist/upTimeRobot/server/monitorType.d.mts +11 -0
- package/dist/upTimeRobot/server/monitorType.mjs +10 -0
- package/dist/upTimeRobot/server/requestStatus.cjs +8 -0
- package/dist/upTimeRobot/server/requestStatus.d.cts +8 -0
- package/dist/upTimeRobot/server/requestStatus.d.mts +8 -0
- package/dist/upTimeRobot/server/requestStatus.mjs +7 -0
- package/dist/url/url.cjs +1 -1
- package/dist/url/url.mjs +1 -1
- package/dist/util/defaultTo.cjs +1 -1
- package/dist/util/defaultTo.mjs +1 -1
- package/dist/webWorker/index.cjs +2 -2
- package/dist/webWorker/index.d.cts +1 -1
- package/dist/webWorker/index.d.mts +1 -1
- package/dist/webWorker/index.mjs +1 -1
- package/dist/webWorker/{webWorker.cjs → webWorkerState.cjs} +1 -1
- package/dist/webWorker/{webWorker.d.cts → webWorkerState.d.cts} +1 -1
- package/dist/webWorker/{webWorker.d.mts → webWorkerState.d.mts} +1 -1
- package/dist/webWorker/{webWorker.mjs → webWorkerState.mjs} +1 -1
- package/package.json +136 -150
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.cjs +0 -14
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.cts +0 -7
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.d.mts +0 -7
- package/dist/aws/cloudWatchLog/server/awsCloudWatchLog.mjs +0 -13
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.cjs +0 -14
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.cts +0 -7
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.d.mts +0 -7
- package/dist/aws/cloudWatchMetric/server/awsCloudWatchMetric.mjs +0 -13
- package/dist/aws/ec2/server/awsEc2.cjs +0 -14
- package/dist/aws/ec2/server/awsEc2.d.cts +0 -7
- package/dist/aws/ec2/server/awsEc2.d.mts +0 -7
- package/dist/aws/ec2/server/awsEc2.mjs +0 -13
- package/dist/aws/ecs/server/awsEcs.cjs +0 -14
- package/dist/aws/ecs/server/awsEcs.d.cts +0 -7
- package/dist/aws/ecs/server/awsEcs.d.mts +0 -7
- package/dist/aws/ecs/server/awsEcs.mjs +0 -13
- package/dist/aws/glue/server/awsGlue.cjs +0 -14
- package/dist/aws/glue/server/awsGlue.d.cts +0 -7
- package/dist/aws/glue/server/awsGlue.d.mts +0 -7
- package/dist/aws/glue/server/awsGlue.mjs +0 -13
- package/dist/aws/lambda/server/awsLambda.cjs +0 -18
- package/dist/aws/lambda/server/awsLambda.d.cts +0 -8
- package/dist/aws/lambda/server/awsLambda.d.mts +0 -8
- package/dist/aws/lambda/server/awsLambda.mjs +0 -16
- package/dist/aws/s3/server/awsS3.cjs +0 -23
- package/dist/aws/s3/server/awsS3.d.cts +0 -16
- package/dist/aws/s3/server/awsS3.d.mts +0 -16
- package/dist/aws/s3/server/awsS3.mjs +0 -21
- package/dist/aws/server/aws.cjs +0 -23
- package/dist/aws/server/aws.d.cts +0 -13
- package/dist/aws/server/aws.d.mts +0 -13
- package/dist/aws/server/aws.mjs +0 -21
- package/dist/aws/ses/server/awsSes.cjs +0 -16
- package/dist/aws/ses/server/awsSes.d.cts +0 -8
- package/dist/aws/ses/server/awsSes.d.mts +0 -8
- package/dist/aws/ses/server/awsSes.mjs +0 -14
- package/dist/aws/sqs/server/awsSqs.cjs +0 -14
- package/dist/aws/sqs/server/awsSqs.d.cts +0 -7
- package/dist/aws/sqs/server/awsSqs.d.mts +0 -7
- package/dist/aws/sqs/server/awsSqs.mjs +0 -13
- package/dist/aws/ssm/server/AwsSsmNamespace.d.cts +0 -15
- package/dist/aws/ssm/server/AwsSsmNamespace.d.mts +0 -15
- package/dist/aws/ssm/server/AwsSsmNamespace.mjs +0 -34
- package/dist/aws/ssm/server/awsSsm.cjs +0 -14
- package/dist/aws/ssm/server/awsSsm.d.cts +0 -7
- package/dist/aws/ssm/server/awsSsm.d.mts +0 -7
- package/dist/aws/ssm/server/awsSsm.mjs +0 -13
- package/dist/drizzle/server/DrizzleNamespace.d.cts +0 -11
- package/dist/drizzle/server/DrizzleNamespace.d.mts +0 -11
- package/dist/drizzle/server/drizzle.cjs +0 -22
- package/dist/drizzle/server/drizzle.mjs +0 -21
- package/dist/googleAds/server/GoogleAdsNamespace.mjs +0 -29
- package/dist/googleAds/server/googleAds.cjs +0 -19
- package/dist/googleAds/server/googleAds.d.cts +0 -15
- package/dist/googleAds/server/googleAds.d.mts +0 -15
- package/dist/googleAds/server/googleAds.mjs +0 -18
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.cjs +0 -32
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.cts +0 -8
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.d.mts +0 -8
- package/dist/googleCloud/bigquery/server/googleCloudBigquery.mjs +0 -30
- package/dist/googleCloud/server/googleCloud.cjs +0 -24
- package/dist/googleCloud/server/googleCloud.d.cts +0 -32
- package/dist/googleCloud/server/googleCloud.d.mts +0 -32
- package/dist/googleCloud/server/googleCloud.mjs +0 -23
- package/dist/googleCloud/storage/server/googleCloudStorage.cjs +0 -28
- package/dist/googleCloud/storage/server/googleCloudStorage.d.cts +0 -7
- package/dist/googleCloud/storage/server/googleCloudStorage.d.mts +0 -7
- package/dist/googleCloud/storage/server/googleCloudStorage.mjs +0 -27
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.cts +0 -15
- package/dist/googlePageSpeed/server/GooglePageSpeedNamespace.d.mts +0 -15
- package/dist/googlePageSpeed/server/googlePageSpeed.cjs +0 -33
- package/dist/googlePageSpeed/server/googlePageSpeed.d.cts +0 -23
- package/dist/googlePageSpeed/server/googlePageSpeed.d.mts +0 -23
- package/dist/googlePageSpeed/server/googlePageSpeed.mjs +0 -30
- package/dist/littleWarden/server/littleWarden.cjs +0 -54
- package/dist/littleWarden/server/littleWarden.mjs +0 -48
- package/dist/onePassword/server/OnePasswordNamespace.cjs +0 -38
- package/dist/onePassword/server/OnePasswordNamespace.d.cts +0 -17
- package/dist/onePassword/server/OnePasswordNamespace.d.mts +0 -17
- package/dist/onePassword/server/onePassword.cjs +0 -14
- package/dist/onePassword/server/onePassword.d.cts +0 -11
- package/dist/onePassword/server/onePassword.d.mts +0 -11
- package/dist/onePassword/server/onePassword.mjs +0 -13
- package/dist/openAi/server/openAi.cjs +0 -19
- package/dist/openAi/server/openAi.d.cts +0 -9
- package/dist/openAi/server/openAi.d.mts +0 -9
- package/dist/openAi/server/openAi.mjs +0 -18
- package/dist/snapchat/server/SnapchatNamespace.d.cts +0 -18
- package/dist/snapchat/server/SnapchatNamespace.d.mts +0 -18
- package/dist/snapchat/server/snapchat.cjs +0 -19
- package/dist/snapchat/server/snapchat.d.cts +0 -11
- package/dist/snapchat/server/snapchat.d.mts +0 -11
- package/dist/snapchat/server/snapchat.mjs +0 -18
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.cjs +0 -31
- package/dist/upTimeRobot/server/UpTimeRobotNamespace.mjs +0 -30
- package/dist/upTimeRobot/server/upTimeRobot.cjs +0 -57
- package/dist/upTimeRobot/server/upTimeRobot.d.cts +0 -42
- package/dist/upTimeRobot/server/upTimeRobot.d.mts +0 -42
- package/dist/upTimeRobot/server/upTimeRobot.mjs +0 -51
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
|
|
2
|
-
//#region src/googleAds/server/GoogleAdsNamespace.ts
|
|
3
|
-
var GoogleAdsNamespace = class extends BaseNamespace {
|
|
4
|
-
mccAccountId = "";
|
|
5
|
-
refreshToken = "";
|
|
6
|
-
ensureInit = async () => {
|
|
7
|
-
if (!this.client) try {
|
|
8
|
-
this.client = {
|
|
9
|
-
client_id: this.config.client.clientId,
|
|
10
|
-
client_secret: this.config.client.clientSecret,
|
|
11
|
-
developer_token: this.config.client.developerToken
|
|
12
|
-
};
|
|
13
|
-
this.mccAccountId = this.config.mccAccountId;
|
|
14
|
-
this.refreshToken = this.config.refreshToken;
|
|
15
|
-
} catch (e) {
|
|
16
|
-
throw new Error("Google Sheets Client not installed");
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
getCustomer = async (customerId) => {
|
|
20
|
-
await this.ensureInit();
|
|
21
|
-
return {
|
|
22
|
-
customer_id: customerId,
|
|
23
|
-
login_customer_id: this.mccAccountId,
|
|
24
|
-
refresh_token: this.refreshToken
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { GoogleAdsNamespace };
|
|
@@ -1,19 +0,0 @@
|
|
|
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_googleAds_server_GoogleAdsNamespace = require("./GoogleAdsNamespace.cjs");
|
|
5
|
-
//#region src/googleAds/server/googleAds.ts
|
|
6
|
-
const googleAdsNamespaces = /* @__PURE__ */ new Map();
|
|
7
|
-
const googleAdsClient = async (key = "default", config, vaultId, itemId) => {
|
|
8
|
-
if (googleAdsNamespaces.has(key)) return googleAdsNamespaces.get(key);
|
|
9
|
-
let instanceConfig;
|
|
10
|
-
if (config) instanceConfig = config;
|
|
11
|
-
else if (vaultId && itemId) instanceConfig = await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(vaultId, itemId);
|
|
12
|
-
else if (process.env.GOOGLE_ADS_VAULT_ID && process.env.GOOGLE_ADS_ITEM_ID) instanceConfig = await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(process.env.GOOGLE_ADS_VAULT_ID, process.env.GOOGLE_ADS_ITEM_ID);
|
|
13
|
-
else throw new Error(`Config required for namespace '${key}'`);
|
|
14
|
-
const namespace = new require_googleAds_server_GoogleAdsNamespace.GoogleAdsNamespace(key, instanceConfig);
|
|
15
|
-
googleAdsNamespaces.set(key, namespace);
|
|
16
|
-
return namespace;
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
exports.googleAdsClient = googleAdsClient;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GoogleAdsNamespace } from "./GoogleAdsNamespace.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/googleAds/server/googleAds.d.ts
|
|
4
|
-
type Config = {
|
|
5
|
-
client: {
|
|
6
|
-
clientId: string;
|
|
7
|
-
clientSecret: string;
|
|
8
|
-
developerToken: string;
|
|
9
|
-
};
|
|
10
|
-
mccAccountId: string;
|
|
11
|
-
refreshToken: string;
|
|
12
|
-
};
|
|
13
|
-
declare const googleAdsClient: (key?: string, config?: Config, vaultId?: string, itemId?: string) => Promise<GoogleAdsNamespace>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Config, googleAdsClient };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { GoogleAdsNamespace } from "./GoogleAdsNamespace.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/googleAds/server/googleAds.d.ts
|
|
4
|
-
type Config = {
|
|
5
|
-
client: {
|
|
6
|
-
clientId: string;
|
|
7
|
-
clientSecret: string;
|
|
8
|
-
developerToken: string;
|
|
9
|
-
};
|
|
10
|
-
mccAccountId: string;
|
|
11
|
-
refreshToken: string;
|
|
12
|
-
};
|
|
13
|
-
declare const googleAdsClient: (key?: string, config?: Config, vaultId?: string, itemId?: string) => Promise<GoogleAdsNamespace>;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { Config, googleAdsClient };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { onePasswordClient } from "../../onePassword/server/onePassword.mjs";
|
|
2
|
-
import "../../onePassword/server/index.mjs";
|
|
3
|
-
import { GoogleAdsNamespace } from "./GoogleAdsNamespace.mjs";
|
|
4
|
-
//#region src/googleAds/server/googleAds.ts
|
|
5
|
-
const googleAdsNamespaces = /* @__PURE__ */ new Map();
|
|
6
|
-
const googleAdsClient = async (key = "default", config, vaultId, itemId) => {
|
|
7
|
-
if (googleAdsNamespaces.has(key)) return googleAdsNamespaces.get(key);
|
|
8
|
-
let instanceConfig;
|
|
9
|
-
if (config) instanceConfig = config;
|
|
10
|
-
else if (vaultId && itemId) instanceConfig = await (await onePasswordClient()).getJsonNote(vaultId, itemId);
|
|
11
|
-
else if (process.env.GOOGLE_ADS_VAULT_ID && process.env.GOOGLE_ADS_ITEM_ID) instanceConfig = await (await onePasswordClient()).getJsonNote(process.env.GOOGLE_ADS_VAULT_ID, process.env.GOOGLE_ADS_ITEM_ID);
|
|
12
|
-
else throw new Error(`Config required for namespace '${key}'`);
|
|
13
|
-
const namespace = new GoogleAdsNamespace(key, instanceConfig);
|
|
14
|
-
googleAdsNamespaces.set(key, namespace);
|
|
15
|
-
return namespace;
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { googleAdsClient };
|
|
@@ -1,32 +0,0 @@
|
|
|
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_googleCloud_bigquery_server_GoogleCloudBigqueryNamespace = require("./GoogleCloudBigqueryNamespace.cjs");
|
|
5
|
-
//#region src/googleCloud/bigquery/server/googleCloudBigquery.ts
|
|
6
|
-
const googleCloudBigqueryNamespaces = /* @__PURE__ */ new Map();
|
|
7
|
-
const googleCloudBigqueryClient = async (key = "default", projectId, config, vaultId, itemId, region) => {
|
|
8
|
-
if (googleCloudBigqueryNamespaces.has(key)) return googleCloudBigqueryNamespaces.get(key);
|
|
9
|
-
let instanceConfig;
|
|
10
|
-
if (config) instanceConfig = {
|
|
11
|
-
...config,
|
|
12
|
-
projectId
|
|
13
|
-
};
|
|
14
|
-
else if (vaultId && itemId) instanceConfig = {
|
|
15
|
-
...await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(vaultId, itemId),
|
|
16
|
-
projectId
|
|
17
|
-
};
|
|
18
|
-
else if (process.env.GOOGLE_CLOUD_VAULT_ID && process.env.GOOGLE_CLOUD_ITEM_ID) instanceConfig = {
|
|
19
|
-
...await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(process.env.GOOGLE_CLOUD_VAULT_ID, process.env.GOOGLE_CLOUD_ITEM_ID),
|
|
20
|
-
projectId
|
|
21
|
-
};
|
|
22
|
-
else throw new Error(`Config required for namespace '${key}'`);
|
|
23
|
-
const namespace = new require_googleCloud_bigquery_server_GoogleCloudBigqueryNamespace.GoogleCloudBigqueryNamespace(key, instanceConfig, region);
|
|
24
|
-
googleCloudBigqueryNamespaces.set(key, namespace);
|
|
25
|
-
return namespace;
|
|
26
|
-
};
|
|
27
|
-
const getHandlerPath = (input) => {
|
|
28
|
-
return `${input.split(process.cwd())[1].substring(1).replace(/\\/g, "/")}`;
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
exports.getHandlerPath = getHandlerPath;
|
|
32
|
-
exports.googleCloudBigqueryClient = googleCloudBigqueryClient;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { GoogleCloudBigqueryNamespace } from "./GoogleCloudBigqueryNamespace.cjs";
|
|
2
|
-
import { GoogleAuthOptions } from "@google-cloud/common";
|
|
3
|
-
|
|
4
|
-
//#region src/googleCloud/bigquery/server/googleCloudBigquery.d.ts
|
|
5
|
-
declare const googleCloudBigqueryClient: (key?: string, projectId?: string, config?: GoogleAuthOptions, vaultId?: string, itemId?: string, region?: string) => Promise<GoogleCloudBigqueryNamespace>;
|
|
6
|
-
declare const getHandlerPath: (input: string) => string;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { type GoogleCloudBigqueryNamespace, getHandlerPath, googleCloudBigqueryClient };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { GoogleCloudBigqueryNamespace } from "./GoogleCloudBigqueryNamespace.mjs";
|
|
2
|
-
import { GoogleAuthOptions } from "@google-cloud/common";
|
|
3
|
-
|
|
4
|
-
//#region src/googleCloud/bigquery/server/googleCloudBigquery.d.ts
|
|
5
|
-
declare const googleCloudBigqueryClient: (key?: string, projectId?: string, config?: GoogleAuthOptions, vaultId?: string, itemId?: string, region?: string) => Promise<GoogleCloudBigqueryNamespace>;
|
|
6
|
-
declare const getHandlerPath: (input: string) => string;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { type GoogleCloudBigqueryNamespace, getHandlerPath, googleCloudBigqueryClient };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { onePasswordClient } from "../../../onePassword/server/onePassword.mjs";
|
|
2
|
-
import "../../../onePassword/server/index.mjs";
|
|
3
|
-
import { GoogleCloudBigqueryNamespace } from "./GoogleCloudBigqueryNamespace.mjs";
|
|
4
|
-
//#region src/googleCloud/bigquery/server/googleCloudBigquery.ts
|
|
5
|
-
const googleCloudBigqueryNamespaces = /* @__PURE__ */ new Map();
|
|
6
|
-
const googleCloudBigqueryClient = async (key = "default", projectId, config, vaultId, itemId, region) => {
|
|
7
|
-
if (googleCloudBigqueryNamespaces.has(key)) return googleCloudBigqueryNamespaces.get(key);
|
|
8
|
-
let instanceConfig;
|
|
9
|
-
if (config) instanceConfig = {
|
|
10
|
-
...config,
|
|
11
|
-
projectId
|
|
12
|
-
};
|
|
13
|
-
else if (vaultId && itemId) instanceConfig = {
|
|
14
|
-
...await (await onePasswordClient()).getJsonNote(vaultId, itemId),
|
|
15
|
-
projectId
|
|
16
|
-
};
|
|
17
|
-
else if (process.env.GOOGLE_CLOUD_VAULT_ID && process.env.GOOGLE_CLOUD_ITEM_ID) instanceConfig = {
|
|
18
|
-
...await (await onePasswordClient()).getJsonNote(process.env.GOOGLE_CLOUD_VAULT_ID, process.env.GOOGLE_CLOUD_ITEM_ID),
|
|
19
|
-
projectId
|
|
20
|
-
};
|
|
21
|
-
else throw new Error(`Config required for namespace '${key}'`);
|
|
22
|
-
const namespace = new GoogleCloudBigqueryNamespace(key, instanceConfig, region);
|
|
23
|
-
googleCloudBigqueryNamespaces.set(key, namespace);
|
|
24
|
-
return namespace;
|
|
25
|
-
};
|
|
26
|
-
const getHandlerPath = (input) => {
|
|
27
|
-
return `${input.split(process.cwd())[1].substring(1).replace(/\\/g, "/")}`;
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { getHandlerPath, googleCloudBigqueryClient };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
//#region src/googleCloud/server/googleCloud.ts
|
|
3
|
-
/**
|
|
4
|
-
* Using the response from Parameter Store and format it ready to be used with Google API.
|
|
5
|
-
*/
|
|
6
|
-
const getConfig = (parameter, projectId) => {
|
|
7
|
-
const privateKey = parameter["private_key"].replace(/\\n/g, "\n");
|
|
8
|
-
let response = { credentials: {
|
|
9
|
-
type: parameter["type"],
|
|
10
|
-
project_id: parameter["project_id"],
|
|
11
|
-
private_key_id: parameter["private_key_id"],
|
|
12
|
-
private_key: privateKey,
|
|
13
|
-
client_email: parameter["client_email"],
|
|
14
|
-
client_id: parameter["client_id"],
|
|
15
|
-
auth_uri: parameter["auth_uri"],
|
|
16
|
-
token_uri: parameter["token_uri"],
|
|
17
|
-
auth_provider_x509_cert_url: parameter["auth_provider_x509_cert_url"],
|
|
18
|
-
client_x509_cert_url: parameter["client_x509_cert_url"]
|
|
19
|
-
} };
|
|
20
|
-
if (projectId) response["projectId"] = projectId;
|
|
21
|
-
return response;
|
|
22
|
-
};
|
|
23
|
-
//#endregion
|
|
24
|
-
exports.getConfig = getConfig;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region src/googleCloud/server/googleCloud.d.ts
|
|
2
|
-
type GoogleCloudConfig = {
|
|
3
|
-
type: string;
|
|
4
|
-
project_id: string;
|
|
5
|
-
private_key_id: string;
|
|
6
|
-
private_key: string;
|
|
7
|
-
client_email: string;
|
|
8
|
-
client_id: string;
|
|
9
|
-
auth_uri: string;
|
|
10
|
-
token_uri: string;
|
|
11
|
-
auth_provider_x509_cert_url: string;
|
|
12
|
-
client_x509_cert_url: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Using the response from Parameter Store and format it ready to be used with Google API.
|
|
16
|
-
*/
|
|
17
|
-
declare const getConfig: (parameter: GoogleCloudConfig, projectId?: string) => {
|
|
18
|
-
credentials: {
|
|
19
|
-
type: string;
|
|
20
|
-
project_id: string;
|
|
21
|
-
private_key_id: string;
|
|
22
|
-
private_key: string;
|
|
23
|
-
client_email: string;
|
|
24
|
-
client_id: string;
|
|
25
|
-
auth_uri: string;
|
|
26
|
-
token_uri: string;
|
|
27
|
-
auth_provider_x509_cert_url: string;
|
|
28
|
-
client_x509_cert_url: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { GoogleCloudConfig, getConfig };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//#region src/googleCloud/server/googleCloud.d.ts
|
|
2
|
-
type GoogleCloudConfig = {
|
|
3
|
-
type: string;
|
|
4
|
-
project_id: string;
|
|
5
|
-
private_key_id: string;
|
|
6
|
-
private_key: string;
|
|
7
|
-
client_email: string;
|
|
8
|
-
client_id: string;
|
|
9
|
-
auth_uri: string;
|
|
10
|
-
token_uri: string;
|
|
11
|
-
auth_provider_x509_cert_url: string;
|
|
12
|
-
client_x509_cert_url: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Using the response from Parameter Store and format it ready to be used with Google API.
|
|
16
|
-
*/
|
|
17
|
-
declare const getConfig: (parameter: GoogleCloudConfig, projectId?: string) => {
|
|
18
|
-
credentials: {
|
|
19
|
-
type: string;
|
|
20
|
-
project_id: string;
|
|
21
|
-
private_key_id: string;
|
|
22
|
-
private_key: string;
|
|
23
|
-
client_email: string;
|
|
24
|
-
client_id: string;
|
|
25
|
-
auth_uri: string;
|
|
26
|
-
token_uri: string;
|
|
27
|
-
auth_provider_x509_cert_url: string;
|
|
28
|
-
client_x509_cert_url: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { GoogleCloudConfig, getConfig };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//#region src/googleCloud/server/googleCloud.ts
|
|
2
|
-
/**
|
|
3
|
-
* Using the response from Parameter Store and format it ready to be used with Google API.
|
|
4
|
-
*/
|
|
5
|
-
const getConfig = (parameter, projectId) => {
|
|
6
|
-
const privateKey = parameter["private_key"].replace(/\\n/g, "\n");
|
|
7
|
-
let response = { credentials: {
|
|
8
|
-
type: parameter["type"],
|
|
9
|
-
project_id: parameter["project_id"],
|
|
10
|
-
private_key_id: parameter["private_key_id"],
|
|
11
|
-
private_key: privateKey,
|
|
12
|
-
client_email: parameter["client_email"],
|
|
13
|
-
client_id: parameter["client_id"],
|
|
14
|
-
auth_uri: parameter["auth_uri"],
|
|
15
|
-
token_uri: parameter["token_uri"],
|
|
16
|
-
auth_provider_x509_cert_url: parameter["auth_provider_x509_cert_url"],
|
|
17
|
-
client_x509_cert_url: parameter["client_x509_cert_url"]
|
|
18
|
-
} };
|
|
19
|
-
if (projectId) response["projectId"] = projectId;
|
|
20
|
-
return response;
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { getConfig };
|
|
@@ -1,28 +0,0 @@
|
|
|
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_googleCloud_storage_server_GoogleCloudStorageNamespace = require("./GoogleCloudStorageNamespace.cjs");
|
|
5
|
-
//#region src/googleCloud/storage/server/googleCloudStorage.ts
|
|
6
|
-
const googleCloudStorageNamespaces = /* @__PURE__ */ new Map();
|
|
7
|
-
const googleCloudStorageClient = async (key = "default", projectId, config, vaultId, itemId) => {
|
|
8
|
-
if (googleCloudStorageNamespaces.has(key)) return googleCloudStorageNamespaces.get(key);
|
|
9
|
-
let instanceConfig;
|
|
10
|
-
if (config) instanceConfig = {
|
|
11
|
-
...config,
|
|
12
|
-
projectId
|
|
13
|
-
};
|
|
14
|
-
else if (vaultId && itemId) instanceConfig = {
|
|
15
|
-
...await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(vaultId, itemId),
|
|
16
|
-
projectId
|
|
17
|
-
};
|
|
18
|
-
else if (process.env.GOOGLE_CLOUD_VAULT_ID && process.env.GOOGLE_CLOUD_ITEM_ID) instanceConfig = {
|
|
19
|
-
...await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(process.env.GOOGLE_CLOUD_VAULT_ID, process.env.GOOGLE_CLOUD_ITEM_ID),
|
|
20
|
-
projectId
|
|
21
|
-
};
|
|
22
|
-
else throw new Error(`Config required for namespace '${key}'`);
|
|
23
|
-
const namespace = new require_googleCloud_storage_server_GoogleCloudStorageNamespace.GoogleCloudStorageNamespace(key, instanceConfig);
|
|
24
|
-
googleCloudStorageNamespaces.set(key, namespace);
|
|
25
|
-
return namespace;
|
|
26
|
-
};
|
|
27
|
-
//#endregion
|
|
28
|
-
exports.googleCloudStorageClient = googleCloudStorageClient;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GoogleCloudStorageNamespace } from "./GoogleCloudStorageNamespace.cjs";
|
|
2
|
-
import { GoogleAuthOptions } from "@google-cloud/common";
|
|
3
|
-
|
|
4
|
-
//#region src/googleCloud/storage/server/googleCloudStorage.d.ts
|
|
5
|
-
declare const googleCloudStorageClient: (key?: string, projectId?: string, config?: GoogleAuthOptions, vaultId?: string, itemId?: string) => Promise<GoogleCloudStorageNamespace>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { googleCloudStorageClient };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GoogleCloudStorageNamespace } from "./GoogleCloudStorageNamespace.mjs";
|
|
2
|
-
import { GoogleAuthOptions } from "@google-cloud/common";
|
|
3
|
-
|
|
4
|
-
//#region src/googleCloud/storage/server/googleCloudStorage.d.ts
|
|
5
|
-
declare const googleCloudStorageClient: (key?: string, projectId?: string, config?: GoogleAuthOptions, vaultId?: string, itemId?: string) => Promise<GoogleCloudStorageNamespace>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { googleCloudStorageClient };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { onePasswordClient } from "../../../onePassword/server/onePassword.mjs";
|
|
2
|
-
import "../../../onePassword/server/index.mjs";
|
|
3
|
-
import { GoogleCloudStorageNamespace } from "./GoogleCloudStorageNamespace.mjs";
|
|
4
|
-
//#region src/googleCloud/storage/server/googleCloudStorage.ts
|
|
5
|
-
const googleCloudStorageNamespaces = /* @__PURE__ */ new Map();
|
|
6
|
-
const googleCloudStorageClient = async (key = "default", projectId, config, vaultId, itemId) => {
|
|
7
|
-
if (googleCloudStorageNamespaces.has(key)) return googleCloudStorageNamespaces.get(key);
|
|
8
|
-
let instanceConfig;
|
|
9
|
-
if (config) instanceConfig = {
|
|
10
|
-
...config,
|
|
11
|
-
projectId
|
|
12
|
-
};
|
|
13
|
-
else if (vaultId && itemId) instanceConfig = {
|
|
14
|
-
...await (await onePasswordClient()).getJsonNote(vaultId, itemId),
|
|
15
|
-
projectId
|
|
16
|
-
};
|
|
17
|
-
else if (process.env.GOOGLE_CLOUD_VAULT_ID && process.env.GOOGLE_CLOUD_ITEM_ID) instanceConfig = {
|
|
18
|
-
...await (await onePasswordClient()).getJsonNote(process.env.GOOGLE_CLOUD_VAULT_ID, process.env.GOOGLE_CLOUD_ITEM_ID),
|
|
19
|
-
projectId
|
|
20
|
-
};
|
|
21
|
-
else throw new Error(`Config required for namespace '${key}'`);
|
|
22
|
-
const namespace = new GoogleCloudStorageNamespace(key, instanceConfig);
|
|
23
|
-
googleCloudStorageNamespaces.set(key, namespace);
|
|
24
|
-
return namespace;
|
|
25
|
-
};
|
|
26
|
-
//#endregion
|
|
27
|
-
export { googleCloudStorageClient };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseNamespace } from "../../_class/BaseNamespace.cjs";
|
|
2
|
-
import { Category, GooglePageSpeedConfig, Strategy } from "./googlePageSpeed.cjs";
|
|
3
|
-
|
|
4
|
-
//#region src/googlePageSpeed/server/GooglePageSpeedNamespace.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Based on https://developers.google.com/speed/docs/insights/rest/v5/pagespeedapi/runpagespeed
|
|
7
|
-
*/
|
|
8
|
-
declare class GooglePageSpeedNamespace extends BaseNamespace {
|
|
9
|
-
client: boolean;
|
|
10
|
-
config: GooglePageSpeedConfig;
|
|
11
|
-
ensureInit: () => Promise<void>;
|
|
12
|
-
getReport: (url: string, inputCategory?: Category, inputStrategy?: Strategy) => Promise<any>;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { GooglePageSpeedNamespace };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BaseNamespace } from "../../_class/BaseNamespace.mjs";
|
|
2
|
-
import { Category, GooglePageSpeedConfig, Strategy } from "./googlePageSpeed.mjs";
|
|
3
|
-
|
|
4
|
-
//#region src/googlePageSpeed/server/GooglePageSpeedNamespace.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Based on https://developers.google.com/speed/docs/insights/rest/v5/pagespeedapi/runpagespeed
|
|
7
|
-
*/
|
|
8
|
-
declare class GooglePageSpeedNamespace extends BaseNamespace {
|
|
9
|
-
client: boolean;
|
|
10
|
-
config: GooglePageSpeedConfig;
|
|
11
|
-
ensureInit: () => Promise<void>;
|
|
12
|
-
getReport: (url: string, inputCategory?: Category, inputStrategy?: Strategy) => Promise<any>;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { GooglePageSpeedNamespace };
|
|
@@ -1,33 +0,0 @@
|
|
|
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_googlePageSpeed_server_GooglePageSpeedNamespace = require("./GooglePageSpeedNamespace.cjs");
|
|
5
|
-
//#region src/googlePageSpeed/server/googlePageSpeed.ts
|
|
6
|
-
const googlePageSpeedNamespaces = /* @__PURE__ */ new Map();
|
|
7
|
-
const googlePageSpeedClient = async (key = "default", config, vaultId, itemId) => {
|
|
8
|
-
if (googlePageSpeedNamespaces.has(key)) return googlePageSpeedNamespaces.get(key);
|
|
9
|
-
let instanceConfig;
|
|
10
|
-
if (config) instanceConfig = config;
|
|
11
|
-
else if (vaultId && itemId) instanceConfig = await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(vaultId, itemId);
|
|
12
|
-
else if (process.env.GOOGLE_PAGE_SPEED_VAULT_ID && process.env.GOOGLE_PAGE_SPEED_ITEM_ID) instanceConfig = await (await require_onePassword_server_onePassword.onePasswordClient()).getJsonNote(process.env.GOOGLE_PAGE_SPEED_VAULT_ID, process.env.GOOGLE_PAGE_SPEED_ITEM_ID);
|
|
13
|
-
else throw new Error(`Config required for namespace '${key}'`);
|
|
14
|
-
const namespace = new require_googlePageSpeed_server_GooglePageSpeedNamespace.GooglePageSpeedNamespace(key, instanceConfig);
|
|
15
|
-
googlePageSpeedNamespaces.set(key, namespace);
|
|
16
|
-
return namespace;
|
|
17
|
-
};
|
|
18
|
-
const category = {
|
|
19
|
-
CATEGORY_UNSPECIFIED: "CATEGORY_UNSPECIFIED",
|
|
20
|
-
ACCESSIBILITY: "ACCESSIBILITY",
|
|
21
|
-
BEST_PRACTICES: "BEST_PRACTICES",
|
|
22
|
-
PERFORMANCE: "PERFORMANCE",
|
|
23
|
-
SEO: "SEO"
|
|
24
|
-
};
|
|
25
|
-
const strategy = {
|
|
26
|
-
STRATEGY_UNSPECIFIED: "STRATEGY_UNSPECIFIED",
|
|
27
|
-
DESKTOP: "DESKTOP",
|
|
28
|
-
MOBILE: "MOBILE"
|
|
29
|
-
};
|
|
30
|
-
//#endregion
|
|
31
|
-
exports.category = category;
|
|
32
|
-
exports.googlePageSpeedClient = googlePageSpeedClient;
|
|
33
|
-
exports.strategy = strategy;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { GooglePageSpeedNamespace } from "./GooglePageSpeedNamespace.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/googlePageSpeed/server/googlePageSpeed.d.ts
|
|
4
|
-
type GooglePageSpeedConfig = {
|
|
5
|
-
apiKey: string;
|
|
6
|
-
};
|
|
7
|
-
declare const googlePageSpeedClient: (key?: string, config?: GooglePageSpeedConfig, vaultId?: string, itemId?: string) => Promise<GooglePageSpeedNamespace>;
|
|
8
|
-
declare const category: {
|
|
9
|
-
readonly CATEGORY_UNSPECIFIED: "CATEGORY_UNSPECIFIED";
|
|
10
|
-
readonly ACCESSIBILITY: "ACCESSIBILITY";
|
|
11
|
-
readonly BEST_PRACTICES: "BEST_PRACTICES";
|
|
12
|
-
readonly PERFORMANCE: "PERFORMANCE";
|
|
13
|
-
readonly SEO: "SEO";
|
|
14
|
-
};
|
|
15
|
-
type Category = typeof category[keyof typeof category];
|
|
16
|
-
declare const strategy: {
|
|
17
|
-
readonly STRATEGY_UNSPECIFIED: "STRATEGY_UNSPECIFIED";
|
|
18
|
-
readonly DESKTOP: "DESKTOP";
|
|
19
|
-
readonly MOBILE: "MOBILE";
|
|
20
|
-
};
|
|
21
|
-
type Strategy = typeof strategy[keyof typeof strategy];
|
|
22
|
-
//#endregion
|
|
23
|
-
export { Category, GooglePageSpeedConfig, Strategy, category, googlePageSpeedClient, strategy };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { GooglePageSpeedNamespace } from "./GooglePageSpeedNamespace.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/googlePageSpeed/server/googlePageSpeed.d.ts
|
|
4
|
-
type GooglePageSpeedConfig = {
|
|
5
|
-
apiKey: string;
|
|
6
|
-
};
|
|
7
|
-
declare const googlePageSpeedClient: (key?: string, config?: GooglePageSpeedConfig, vaultId?: string, itemId?: string) => Promise<GooglePageSpeedNamespace>;
|
|
8
|
-
declare const category: {
|
|
9
|
-
readonly CATEGORY_UNSPECIFIED: "CATEGORY_UNSPECIFIED";
|
|
10
|
-
readonly ACCESSIBILITY: "ACCESSIBILITY";
|
|
11
|
-
readonly BEST_PRACTICES: "BEST_PRACTICES";
|
|
12
|
-
readonly PERFORMANCE: "PERFORMANCE";
|
|
13
|
-
readonly SEO: "SEO";
|
|
14
|
-
};
|
|
15
|
-
type Category = typeof category[keyof typeof category];
|
|
16
|
-
declare const strategy: {
|
|
17
|
-
readonly STRATEGY_UNSPECIFIED: "STRATEGY_UNSPECIFIED";
|
|
18
|
-
readonly DESKTOP: "DESKTOP";
|
|
19
|
-
readonly MOBILE: "MOBILE";
|
|
20
|
-
};
|
|
21
|
-
type Strategy = typeof strategy[keyof typeof strategy];
|
|
22
|
-
//#endregion
|
|
23
|
-
export { Category, GooglePageSpeedConfig, Strategy, category, googlePageSpeedClient, strategy };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { onePasswordClient } from "../../onePassword/server/onePassword.mjs";
|
|
2
|
-
import "../../onePassword/server/index.mjs";
|
|
3
|
-
import { GooglePageSpeedNamespace } from "./GooglePageSpeedNamespace.mjs";
|
|
4
|
-
//#region src/googlePageSpeed/server/googlePageSpeed.ts
|
|
5
|
-
const googlePageSpeedNamespaces = /* @__PURE__ */ new Map();
|
|
6
|
-
const googlePageSpeedClient = async (key = "default", config, vaultId, itemId) => {
|
|
7
|
-
if (googlePageSpeedNamespaces.has(key)) return googlePageSpeedNamespaces.get(key);
|
|
8
|
-
let instanceConfig;
|
|
9
|
-
if (config) instanceConfig = config;
|
|
10
|
-
else if (vaultId && itemId) instanceConfig = await (await onePasswordClient()).getJsonNote(vaultId, itemId);
|
|
11
|
-
else if (process.env.GOOGLE_PAGE_SPEED_VAULT_ID && process.env.GOOGLE_PAGE_SPEED_ITEM_ID) instanceConfig = await (await onePasswordClient()).getJsonNote(process.env.GOOGLE_PAGE_SPEED_VAULT_ID, process.env.GOOGLE_PAGE_SPEED_ITEM_ID);
|
|
12
|
-
else throw new Error(`Config required for namespace '${key}'`);
|
|
13
|
-
const namespace = new GooglePageSpeedNamespace(key, instanceConfig);
|
|
14
|
-
googlePageSpeedNamespaces.set(key, namespace);
|
|
15
|
-
return namespace;
|
|
16
|
-
};
|
|
17
|
-
const category = {
|
|
18
|
-
CATEGORY_UNSPECIFIED: "CATEGORY_UNSPECIFIED",
|
|
19
|
-
ACCESSIBILITY: "ACCESSIBILITY",
|
|
20
|
-
BEST_PRACTICES: "BEST_PRACTICES",
|
|
21
|
-
PERFORMANCE: "PERFORMANCE",
|
|
22
|
-
SEO: "SEO"
|
|
23
|
-
};
|
|
24
|
-
const strategy = {
|
|
25
|
-
STRATEGY_UNSPECIFIED: "STRATEGY_UNSPECIFIED",
|
|
26
|
-
DESKTOP: "DESKTOP",
|
|
27
|
-
MOBILE: "MOBILE"
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { category, googlePageSpeedClient, strategy };
|
|
@@ -1,54 +0,0 @@
|
|
|
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;
|
|
@@ -1,48 +0,0 @@
|
|
|
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 };
|