@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,171 @@
|
|
|
1
|
+
require("./streams.cjs").default;
|
|
2
|
+
const POOL_SIZE = 65536;
|
|
3
|
+
/** @param {(Blob | Uint8Array)[]} parts */
|
|
4
|
+
async function* toIterator(parts, clone = true) {
|
|
5
|
+
for (const part of parts) if ("stream" in part) yield* part.stream();
|
|
6
|
+
else if (ArrayBuffer.isView(part)) if (clone) {
|
|
7
|
+
let position = part.byteOffset;
|
|
8
|
+
const end = part.byteOffset + part.byteLength;
|
|
9
|
+
while (position !== end) {
|
|
10
|
+
const size = Math.min(end - position, POOL_SIZE);
|
|
11
|
+
const chunk = part.buffer.slice(position, position + size);
|
|
12
|
+
position += chunk.byteLength;
|
|
13
|
+
yield new Uint8Array(chunk);
|
|
14
|
+
}
|
|
15
|
+
} else yield part;
|
|
16
|
+
else {
|
|
17
|
+
let position = 0, b = part;
|
|
18
|
+
while (position !== b.size) {
|
|
19
|
+
const buffer = await b.slice(position, Math.min(b.size, position + POOL_SIZE)).arrayBuffer();
|
|
20
|
+
position += buffer.byteLength;
|
|
21
|
+
yield new Uint8Array(buffer);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const _Blob = class Blob {
|
|
26
|
+
/** @type {Array.<(Blob|Uint8Array)>} */
|
|
27
|
+
#parts = [];
|
|
28
|
+
#type = "";
|
|
29
|
+
#size = 0;
|
|
30
|
+
#endings = "transparent";
|
|
31
|
+
/**
|
|
32
|
+
* The Blob() constructor returns a new Blob object. The content
|
|
33
|
+
* of the blob consists of the concatenation of the values given
|
|
34
|
+
* in the parameter array.
|
|
35
|
+
*
|
|
36
|
+
* @param {*} blobParts
|
|
37
|
+
* @param {{ type?: string, endings?: string }} [options]
|
|
38
|
+
*/
|
|
39
|
+
constructor(blobParts = [], options = {}) {
|
|
40
|
+
if (typeof blobParts !== "object" || blobParts === null) throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
|
|
41
|
+
if (typeof blobParts[Symbol.iterator] !== "function") throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");
|
|
42
|
+
if (typeof options !== "object" && typeof options !== "function") throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");
|
|
43
|
+
if (options === null) options = {};
|
|
44
|
+
const encoder = new TextEncoder();
|
|
45
|
+
for (const element of blobParts) {
|
|
46
|
+
let part;
|
|
47
|
+
if (ArrayBuffer.isView(element)) part = new Uint8Array(element.buffer.slice(element.byteOffset, element.byteOffset + element.byteLength));
|
|
48
|
+
else if (element instanceof ArrayBuffer) part = new Uint8Array(element.slice(0));
|
|
49
|
+
else if (element instanceof Blob) part = element;
|
|
50
|
+
else part = encoder.encode(`${element}`);
|
|
51
|
+
this.#size += ArrayBuffer.isView(part) ? part.byteLength : part.size;
|
|
52
|
+
this.#parts.push(part);
|
|
53
|
+
}
|
|
54
|
+
this.#endings = `${options.endings === void 0 ? "transparent" : options.endings}`;
|
|
55
|
+
const type = options.type === void 0 ? "" : String(options.type);
|
|
56
|
+
this.#type = /^[\x20-\x7E]*$/.test(type) ? type : "";
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* The Blob interface's size property returns the
|
|
60
|
+
* size of the Blob in bytes.
|
|
61
|
+
*/
|
|
62
|
+
get size() {
|
|
63
|
+
return this.#size;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The type property of a Blob object returns the MIME type of the file.
|
|
67
|
+
*/
|
|
68
|
+
get type() {
|
|
69
|
+
return this.#type;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* The text() method in the Blob interface returns a Promise
|
|
73
|
+
* that resolves with a string containing the contents of
|
|
74
|
+
* the blob, interpreted as UTF-8.
|
|
75
|
+
*
|
|
76
|
+
* @return {Promise<string>}
|
|
77
|
+
*/
|
|
78
|
+
async text() {
|
|
79
|
+
const decoder = new TextDecoder();
|
|
80
|
+
let str = "";
|
|
81
|
+
for await (const part of toIterator(this.#parts, false)) str += decoder.decode(part, { stream: true });
|
|
82
|
+
str += decoder.decode();
|
|
83
|
+
return str;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The arrayBuffer() method in the Blob interface returns a
|
|
87
|
+
* Promise that resolves with the contents of the blob as
|
|
88
|
+
* binary data contained in an ArrayBuffer.
|
|
89
|
+
*
|
|
90
|
+
* @return {Promise<ArrayBuffer>}
|
|
91
|
+
*/
|
|
92
|
+
async arrayBuffer() {
|
|
93
|
+
const data = new Uint8Array(this.size);
|
|
94
|
+
let offset = 0;
|
|
95
|
+
for await (const chunk of toIterator(this.#parts, false)) {
|
|
96
|
+
data.set(chunk, offset);
|
|
97
|
+
offset += chunk.length;
|
|
98
|
+
}
|
|
99
|
+
return data.buffer;
|
|
100
|
+
}
|
|
101
|
+
stream() {
|
|
102
|
+
const it = toIterator(this.#parts, true);
|
|
103
|
+
return new globalThis.ReadableStream({
|
|
104
|
+
type: "bytes",
|
|
105
|
+
async pull(ctrl) {
|
|
106
|
+
const chunk = await it.next();
|
|
107
|
+
chunk.done ? ctrl.close() : ctrl.enqueue(chunk.value);
|
|
108
|
+
},
|
|
109
|
+
async cancel() {
|
|
110
|
+
await it.return();
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* The Blob interface's slice() method creates and returns a
|
|
116
|
+
* new Blob object which contains data from a subset of the
|
|
117
|
+
* blob on which it's called.
|
|
118
|
+
*
|
|
119
|
+
* @param {number} [start]
|
|
120
|
+
* @param {number} [end]
|
|
121
|
+
* @param {string} [type]
|
|
122
|
+
*/
|
|
123
|
+
slice(start = 0, end = this.size, type = "") {
|
|
124
|
+
const { size } = this;
|
|
125
|
+
let relativeStart = start < 0 ? Math.max(size + start, 0) : Math.min(start, size);
|
|
126
|
+
let relativeEnd = end < 0 ? Math.max(size + end, 0) : Math.min(end, size);
|
|
127
|
+
const span = Math.max(relativeEnd - relativeStart, 0);
|
|
128
|
+
const parts = this.#parts;
|
|
129
|
+
const blobParts = [];
|
|
130
|
+
let added = 0;
|
|
131
|
+
for (const part of parts) {
|
|
132
|
+
if (added >= span) break;
|
|
133
|
+
const size = ArrayBuffer.isView(part) ? part.byteLength : part.size;
|
|
134
|
+
if (relativeStart && size <= relativeStart) {
|
|
135
|
+
relativeStart -= size;
|
|
136
|
+
relativeEnd -= size;
|
|
137
|
+
} else {
|
|
138
|
+
let chunk;
|
|
139
|
+
if (ArrayBuffer.isView(part)) {
|
|
140
|
+
chunk = part.subarray(relativeStart, Math.min(size, relativeEnd));
|
|
141
|
+
added += chunk.byteLength;
|
|
142
|
+
} else {
|
|
143
|
+
chunk = part.slice(relativeStart, Math.min(size, relativeEnd));
|
|
144
|
+
added += chunk.size;
|
|
145
|
+
}
|
|
146
|
+
relativeEnd -= size;
|
|
147
|
+
blobParts.push(chunk);
|
|
148
|
+
relativeStart = 0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
const blob = new Blob([], { type: String(type).toLowerCase() });
|
|
152
|
+
blob.#size = span;
|
|
153
|
+
blob.#parts = blobParts;
|
|
154
|
+
return blob;
|
|
155
|
+
}
|
|
156
|
+
get [Symbol.toStringTag]() {
|
|
157
|
+
return "Blob";
|
|
158
|
+
}
|
|
159
|
+
static [Symbol.hasInstance](object) {
|
|
160
|
+
return object && typeof object === "object" && typeof object.constructor === "function" && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && /^(Blob|File)$/.test(object[Symbol.toStringTag]);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
Object.defineProperties(_Blob.prototype, {
|
|
164
|
+
size: { enumerable: true },
|
|
165
|
+
type: { enumerable: true },
|
|
166
|
+
slice: { enumerable: true }
|
|
167
|
+
});
|
|
168
|
+
/** @type {typeof globalThis.Blob} */
|
|
169
|
+
const Blob = _Blob;
|
|
170
|
+
//#endregion
|
|
171
|
+
exports.default = Blob;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { require_streams } from "./streams.mjs";
|
|
2
|
+
require_streams();
|
|
3
|
+
const POOL_SIZE = 65536;
|
|
4
|
+
/** @param {(Blob | Uint8Array)[]} parts */
|
|
5
|
+
async function* toIterator(parts, clone = true) {
|
|
6
|
+
for (const part of parts) if ("stream" in part) yield* part.stream();
|
|
7
|
+
else if (ArrayBuffer.isView(part)) if (clone) {
|
|
8
|
+
let position = part.byteOffset;
|
|
9
|
+
const end = part.byteOffset + part.byteLength;
|
|
10
|
+
while (position !== end) {
|
|
11
|
+
const size = Math.min(end - position, POOL_SIZE);
|
|
12
|
+
const chunk = part.buffer.slice(position, position + size);
|
|
13
|
+
position += chunk.byteLength;
|
|
14
|
+
yield new Uint8Array(chunk);
|
|
15
|
+
}
|
|
16
|
+
} else yield part;
|
|
17
|
+
else {
|
|
18
|
+
let position = 0, b = part;
|
|
19
|
+
while (position !== b.size) {
|
|
20
|
+
const buffer = await b.slice(position, Math.min(b.size, position + POOL_SIZE)).arrayBuffer();
|
|
21
|
+
position += buffer.byteLength;
|
|
22
|
+
yield new Uint8Array(buffer);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
const _Blob = class Blob {
|
|
27
|
+
/** @type {Array.<(Blob|Uint8Array)>} */
|
|
28
|
+
#parts = [];
|
|
29
|
+
#type = "";
|
|
30
|
+
#size = 0;
|
|
31
|
+
#endings = "transparent";
|
|
32
|
+
/**
|
|
33
|
+
* The Blob() constructor returns a new Blob object. The content
|
|
34
|
+
* of the blob consists of the concatenation of the values given
|
|
35
|
+
* in the parameter array.
|
|
36
|
+
*
|
|
37
|
+
* @param {*} blobParts
|
|
38
|
+
* @param {{ type?: string, endings?: string }} [options]
|
|
39
|
+
*/
|
|
40
|
+
constructor(blobParts = [], options = {}) {
|
|
41
|
+
if (typeof blobParts !== "object" || blobParts === null) throw new TypeError("Failed to construct 'Blob': The provided value cannot be converted to a sequence.");
|
|
42
|
+
if (typeof blobParts[Symbol.iterator] !== "function") throw new TypeError("Failed to construct 'Blob': The object must have a callable @@iterator property.");
|
|
43
|
+
if (typeof options !== "object" && typeof options !== "function") throw new TypeError("Failed to construct 'Blob': parameter 2 cannot convert to dictionary.");
|
|
44
|
+
if (options === null) options = {};
|
|
45
|
+
const encoder = new TextEncoder();
|
|
46
|
+
for (const element of blobParts) {
|
|
47
|
+
let part;
|
|
48
|
+
if (ArrayBuffer.isView(element)) part = new Uint8Array(element.buffer.slice(element.byteOffset, element.byteOffset + element.byteLength));
|
|
49
|
+
else if (element instanceof ArrayBuffer) part = new Uint8Array(element.slice(0));
|
|
50
|
+
else if (element instanceof Blob) part = element;
|
|
51
|
+
else part = encoder.encode(`${element}`);
|
|
52
|
+
this.#size += ArrayBuffer.isView(part) ? part.byteLength : part.size;
|
|
53
|
+
this.#parts.push(part);
|
|
54
|
+
}
|
|
55
|
+
this.#endings = `${options.endings === void 0 ? "transparent" : options.endings}`;
|
|
56
|
+
const type = options.type === void 0 ? "" : String(options.type);
|
|
57
|
+
this.#type = /^[\x20-\x7E]*$/.test(type) ? type : "";
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The Blob interface's size property returns the
|
|
61
|
+
* size of the Blob in bytes.
|
|
62
|
+
*/
|
|
63
|
+
get size() {
|
|
64
|
+
return this.#size;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* The type property of a Blob object returns the MIME type of the file.
|
|
68
|
+
*/
|
|
69
|
+
get type() {
|
|
70
|
+
return this.#type;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The text() method in the Blob interface returns a Promise
|
|
74
|
+
* that resolves with a string containing the contents of
|
|
75
|
+
* the blob, interpreted as UTF-8.
|
|
76
|
+
*
|
|
77
|
+
* @return {Promise<string>}
|
|
78
|
+
*/
|
|
79
|
+
async text() {
|
|
80
|
+
const decoder = new TextDecoder();
|
|
81
|
+
let str = "";
|
|
82
|
+
for await (const part of toIterator(this.#parts, false)) str += decoder.decode(part, { stream: true });
|
|
83
|
+
str += decoder.decode();
|
|
84
|
+
return str;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* The arrayBuffer() method in the Blob interface returns a
|
|
88
|
+
* Promise that resolves with the contents of the blob as
|
|
89
|
+
* binary data contained in an ArrayBuffer.
|
|
90
|
+
*
|
|
91
|
+
* @return {Promise<ArrayBuffer>}
|
|
92
|
+
*/
|
|
93
|
+
async arrayBuffer() {
|
|
94
|
+
const data = new Uint8Array(this.size);
|
|
95
|
+
let offset = 0;
|
|
96
|
+
for await (const chunk of toIterator(this.#parts, false)) {
|
|
97
|
+
data.set(chunk, offset);
|
|
98
|
+
offset += chunk.length;
|
|
99
|
+
}
|
|
100
|
+
return data.buffer;
|
|
101
|
+
}
|
|
102
|
+
stream() {
|
|
103
|
+
const it = toIterator(this.#parts, true);
|
|
104
|
+
return new globalThis.ReadableStream({
|
|
105
|
+
type: "bytes",
|
|
106
|
+
async pull(ctrl) {
|
|
107
|
+
const chunk = await it.next();
|
|
108
|
+
chunk.done ? ctrl.close() : ctrl.enqueue(chunk.value);
|
|
109
|
+
},
|
|
110
|
+
async cancel() {
|
|
111
|
+
await it.return();
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The Blob interface's slice() method creates and returns a
|
|
117
|
+
* new Blob object which contains data from a subset of the
|
|
118
|
+
* blob on which it's called.
|
|
119
|
+
*
|
|
120
|
+
* @param {number} [start]
|
|
121
|
+
* @param {number} [end]
|
|
122
|
+
* @param {string} [type]
|
|
123
|
+
*/
|
|
124
|
+
slice(start = 0, end = this.size, type = "") {
|
|
125
|
+
const { size } = this;
|
|
126
|
+
let relativeStart = start < 0 ? Math.max(size + start, 0) : Math.min(start, size);
|
|
127
|
+
let relativeEnd = end < 0 ? Math.max(size + end, 0) : Math.min(end, size);
|
|
128
|
+
const span = Math.max(relativeEnd - relativeStart, 0);
|
|
129
|
+
const parts = this.#parts;
|
|
130
|
+
const blobParts = [];
|
|
131
|
+
let added = 0;
|
|
132
|
+
for (const part of parts) {
|
|
133
|
+
if (added >= span) break;
|
|
134
|
+
const size = ArrayBuffer.isView(part) ? part.byteLength : part.size;
|
|
135
|
+
if (relativeStart && size <= relativeStart) {
|
|
136
|
+
relativeStart -= size;
|
|
137
|
+
relativeEnd -= size;
|
|
138
|
+
} else {
|
|
139
|
+
let chunk;
|
|
140
|
+
if (ArrayBuffer.isView(part)) {
|
|
141
|
+
chunk = part.subarray(relativeStart, Math.min(size, relativeEnd));
|
|
142
|
+
added += chunk.byteLength;
|
|
143
|
+
} else {
|
|
144
|
+
chunk = part.slice(relativeStart, Math.min(size, relativeEnd));
|
|
145
|
+
added += chunk.size;
|
|
146
|
+
}
|
|
147
|
+
relativeEnd -= size;
|
|
148
|
+
blobParts.push(chunk);
|
|
149
|
+
relativeStart = 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
const blob = new Blob([], { type: String(type).toLowerCase() });
|
|
153
|
+
blob.#size = span;
|
|
154
|
+
blob.#parts = blobParts;
|
|
155
|
+
return blob;
|
|
156
|
+
}
|
|
157
|
+
get [Symbol.toStringTag]() {
|
|
158
|
+
return "Blob";
|
|
159
|
+
}
|
|
160
|
+
static [Symbol.hasInstance](object) {
|
|
161
|
+
return object && typeof object === "object" && typeof object.constructor === "function" && (typeof object.stream === "function" || typeof object.arrayBuffer === "function") && /^(Blob|File)$/.test(object[Symbol.toStringTag]);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
Object.defineProperties(_Blob.prototype, {
|
|
165
|
+
size: { enumerable: true },
|
|
166
|
+
type: { enumerable: true },
|
|
167
|
+
slice: { enumerable: true }
|
|
168
|
+
});
|
|
169
|
+
/** @type {typeof globalThis.Blob} */
|
|
170
|
+
const Blob = _Blob;
|
|
171
|
+
//#endregion
|
|
172
|
+
export { Blob as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
+
const require_ponyfill_es2018$1 = require("../web-streams-polyfill/dist/ponyfill.es2018.cjs");
|
|
3
|
+
//#region node_modules/fetch-blob/streams.cjs
|
|
4
|
+
var require_streams = /* @__PURE__ */ require_runtime.__commonJSMin((() => {
|
|
5
|
+
/* c8 ignore start */
|
|
6
|
+
const POOL_SIZE = 65536;
|
|
7
|
+
if (!globalThis.ReadableStream) try {
|
|
8
|
+
const process = require("node:process");
|
|
9
|
+
const { emitWarning } = process;
|
|
10
|
+
try {
|
|
11
|
+
process.emitWarning = () => {};
|
|
12
|
+
Object.assign(globalThis, require("node:stream/web"));
|
|
13
|
+
process.emitWarning = emitWarning;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
process.emitWarning = emitWarning;
|
|
16
|
+
throw error;
|
|
17
|
+
}
|
|
18
|
+
} catch (error) {
|
|
19
|
+
Object.assign(globalThis, require_ponyfill_es2018$1.default);
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
const { Blob } = require("buffer");
|
|
23
|
+
if (Blob && !Blob.prototype.stream) Blob.prototype.stream = function name(params) {
|
|
24
|
+
let position = 0;
|
|
25
|
+
const blob = this;
|
|
26
|
+
return new ReadableStream({
|
|
27
|
+
type: "bytes",
|
|
28
|
+
async pull(ctrl) {
|
|
29
|
+
const buffer = await blob.slice(position, Math.min(blob.size, position + POOL_SIZE)).arrayBuffer();
|
|
30
|
+
position += buffer.byteLength;
|
|
31
|
+
ctrl.enqueue(new Uint8Array(buffer));
|
|
32
|
+
if (position === blob.size) ctrl.close();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
} catch (error) {}
|
|
37
|
+
}));
|
|
38
|
+
/* c8 ignore end */
|
|
39
|
+
//#endregion
|
|
40
|
+
Object.defineProperty(exports, "default", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function() {
|
|
43
|
+
return require_streams();
|
|
44
|
+
}
|
|
45
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_ponyfill_es2018 } from "../web-streams-polyfill/dist/ponyfill.es2018.mjs";
|
|
3
|
+
//#region node_modules/fetch-blob/streams.cjs
|
|
4
|
+
var require_streams = /* @__PURE__ */ __commonJSMin((() => {
|
|
5
|
+
/* c8 ignore start */
|
|
6
|
+
const POOL_SIZE = 65536;
|
|
7
|
+
if (!globalThis.ReadableStream) try {
|
|
8
|
+
const process = __require("node:process");
|
|
9
|
+
const { emitWarning } = process;
|
|
10
|
+
try {
|
|
11
|
+
process.emitWarning = () => {};
|
|
12
|
+
Object.assign(globalThis, __require("node:stream/web"));
|
|
13
|
+
process.emitWarning = emitWarning;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
process.emitWarning = emitWarning;
|
|
16
|
+
throw error;
|
|
17
|
+
}
|
|
18
|
+
} catch (error) {
|
|
19
|
+
Object.assign(globalThis, require_ponyfill_es2018());
|
|
20
|
+
}
|
|
21
|
+
try {
|
|
22
|
+
const { Blob } = __require("buffer");
|
|
23
|
+
if (Blob && !Blob.prototype.stream) Blob.prototype.stream = function name(params) {
|
|
24
|
+
let position = 0;
|
|
25
|
+
const blob = this;
|
|
26
|
+
return new ReadableStream({
|
|
27
|
+
type: "bytes",
|
|
28
|
+
async pull(ctrl) {
|
|
29
|
+
const buffer = await blob.slice(position, Math.min(blob.size, position + POOL_SIZE)).arrayBuffer();
|
|
30
|
+
position += buffer.byteLength;
|
|
31
|
+
ctrl.enqueue(new Uint8Array(buffer));
|
|
32
|
+
if (position === blob.size) ctrl.close();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
} catch (error) {}
|
|
37
|
+
}));
|
|
38
|
+
/* c8 ignore end */
|
|
39
|
+
//#endregion
|
|
40
|
+
export default require_streams();
|
|
41
|
+
export { require_streams };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const require_index = require("../fetch-blob/index.cjs");
|
|
2
|
+
const require_file = require("../fetch-blob/file.cjs");
|
|
3
|
+
//#region node_modules/formdata-polyfill/esm.min.js
|
|
4
|
+
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
5
|
+
var { toStringTag: t, iterator: i, hasInstance: h } = Symbol, r = Math.random, m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","), f = (a, b, c) => (a += "", /^(Blob|File)$/.test(b && b[t]) ? [(c = c !== void 0 ? c + "" : b[t] == "File" ? b.name : "blob", a), b.name !== c || b[t] == "blob" ? new require_file.default([b], c, b) : b] : [a, b + ""]), e = (c, f) => (f ? c : c.replace(/\r?\n|\r/g, "\r\n")).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), x = (n, a, e) => {
|
|
6
|
+
if (a.length < e) throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e} arguments required, but only ${a.length} present.`);
|
|
7
|
+
};
|
|
8
|
+
/** @type {typeof globalThis.FormData} */
|
|
9
|
+
const FormData = class FormData {
|
|
10
|
+
#d = [];
|
|
11
|
+
constructor(...a) {
|
|
12
|
+
if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
|
|
13
|
+
}
|
|
14
|
+
get [t]() {
|
|
15
|
+
return "FormData";
|
|
16
|
+
}
|
|
17
|
+
[i]() {
|
|
18
|
+
return this.entries();
|
|
19
|
+
}
|
|
20
|
+
static [h](o) {
|
|
21
|
+
return o && typeof o === "object" && o[t] === "FormData" && !m.some((m) => typeof o[m] != "function");
|
|
22
|
+
}
|
|
23
|
+
append(...a) {
|
|
24
|
+
x("append", arguments, 2);
|
|
25
|
+
this.#d.push(f(...a));
|
|
26
|
+
}
|
|
27
|
+
delete(a) {
|
|
28
|
+
x("delete", arguments, 1);
|
|
29
|
+
a += "";
|
|
30
|
+
this.#d = this.#d.filter(([b]) => b !== a);
|
|
31
|
+
}
|
|
32
|
+
get(a) {
|
|
33
|
+
x("get", arguments, 1);
|
|
34
|
+
a += "";
|
|
35
|
+
for (var b = this.#d, l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
getAll(a, b) {
|
|
39
|
+
x("getAll", arguments, 1);
|
|
40
|
+
b = [];
|
|
41
|
+
a += "";
|
|
42
|
+
this.#d.forEach((c) => c[0] === a && b.push(c[1]));
|
|
43
|
+
return b;
|
|
44
|
+
}
|
|
45
|
+
has(a) {
|
|
46
|
+
x("has", arguments, 1);
|
|
47
|
+
a += "";
|
|
48
|
+
return this.#d.some((b) => b[0] === a);
|
|
49
|
+
}
|
|
50
|
+
forEach(a, b) {
|
|
51
|
+
x("forEach", arguments, 1);
|
|
52
|
+
for (var [c, d] of this) a.call(b, d, c, this);
|
|
53
|
+
}
|
|
54
|
+
set(...a) {
|
|
55
|
+
x("set", arguments, 2);
|
|
56
|
+
var b = [], c = !0;
|
|
57
|
+
a = f(...a);
|
|
58
|
+
this.#d.forEach((d) => {
|
|
59
|
+
d[0] === a[0] ? c && (c = !b.push(a)) : b.push(d);
|
|
60
|
+
});
|
|
61
|
+
c && b.push(a);
|
|
62
|
+
this.#d = b;
|
|
63
|
+
}
|
|
64
|
+
*entries() {
|
|
65
|
+
yield* this.#d;
|
|
66
|
+
}
|
|
67
|
+
*keys() {
|
|
68
|
+
for (var [a] of this) yield a;
|
|
69
|
+
}
|
|
70
|
+
*values() {
|
|
71
|
+
for (var [, a] of this) yield a;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
/** @param {FormData} F */
|
|
75
|
+
function formDataToBlob(F, B = require_index.default) {
|
|
76
|
+
var b = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), c = [], p = `--${b}\r\nContent-Disposition: form-data; name="`;
|
|
77
|
+
F.forEach((v, n) => typeof v == "string" ? c.push(p + e(n) + `"\r\n\r\n${v.replace(/\r(?!\n)|(?<!\r)\n/g, "\r\n")}\r\n`) : c.push(p + e(n) + `"; filename="${e(v.name, 1)}"\r\nContent-Type: ${v.type || "application/octet-stream"}\r\n\r\n`, v, "\r\n"));
|
|
78
|
+
c.push(`--${b}--`);
|
|
79
|
+
return new B(c, { type: "multipart/form-data; boundary=" + b });
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
exports.FormData = FormData;
|
|
83
|
+
exports.formDataToBlob = formDataToBlob;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import Blob from "../fetch-blob/index.mjs";
|
|
2
|
+
import File from "../fetch-blob/file.mjs";
|
|
3
|
+
//#region node_modules/formdata-polyfill/esm.min.js
|
|
4
|
+
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
5
|
+
var { toStringTag: t, iterator: i, hasInstance: h } = Symbol, r = Math.random, m = "append,set,get,getAll,delete,keys,values,entries,forEach,constructor".split(","), f = (a, b, c) => (a += "", /^(Blob|File)$/.test(b && b[t]) ? [(c = c !== void 0 ? c + "" : b[t] == "File" ? b.name : "blob", a), b.name !== c || b[t] == "blob" ? new File([b], c, b) : b] : [a, b + ""]), e = (c, f) => (f ? c : c.replace(/\r?\n|\r/g, "\r\n")).replace(/\n/g, "%0A").replace(/\r/g, "%0D").replace(/"/g, "%22"), x = (n, a, e) => {
|
|
6
|
+
if (a.length < e) throw new TypeError(`Failed to execute '${n}' on 'FormData': ${e} arguments required, but only ${a.length} present.`);
|
|
7
|
+
};
|
|
8
|
+
/** @type {typeof globalThis.FormData} */
|
|
9
|
+
const FormData = class FormData {
|
|
10
|
+
#d = [];
|
|
11
|
+
constructor(...a) {
|
|
12
|
+
if (a.length) throw new TypeError(`Failed to construct 'FormData': parameter 1 is not of type 'HTMLFormElement'.`);
|
|
13
|
+
}
|
|
14
|
+
get [t]() {
|
|
15
|
+
return "FormData";
|
|
16
|
+
}
|
|
17
|
+
[i]() {
|
|
18
|
+
return this.entries();
|
|
19
|
+
}
|
|
20
|
+
static [h](o) {
|
|
21
|
+
return o && typeof o === "object" && o[t] === "FormData" && !m.some((m) => typeof o[m] != "function");
|
|
22
|
+
}
|
|
23
|
+
append(...a) {
|
|
24
|
+
x("append", arguments, 2);
|
|
25
|
+
this.#d.push(f(...a));
|
|
26
|
+
}
|
|
27
|
+
delete(a) {
|
|
28
|
+
x("delete", arguments, 1);
|
|
29
|
+
a += "";
|
|
30
|
+
this.#d = this.#d.filter(([b]) => b !== a);
|
|
31
|
+
}
|
|
32
|
+
get(a) {
|
|
33
|
+
x("get", arguments, 1);
|
|
34
|
+
a += "";
|
|
35
|
+
for (var b = this.#d, l = b.length, c = 0; c < l; c++) if (b[c][0] === a) return b[c][1];
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
getAll(a, b) {
|
|
39
|
+
x("getAll", arguments, 1);
|
|
40
|
+
b = [];
|
|
41
|
+
a += "";
|
|
42
|
+
this.#d.forEach((c) => c[0] === a && b.push(c[1]));
|
|
43
|
+
return b;
|
|
44
|
+
}
|
|
45
|
+
has(a) {
|
|
46
|
+
x("has", arguments, 1);
|
|
47
|
+
a += "";
|
|
48
|
+
return this.#d.some((b) => b[0] === a);
|
|
49
|
+
}
|
|
50
|
+
forEach(a, b) {
|
|
51
|
+
x("forEach", arguments, 1);
|
|
52
|
+
for (var [c, d] of this) a.call(b, d, c, this);
|
|
53
|
+
}
|
|
54
|
+
set(...a) {
|
|
55
|
+
x("set", arguments, 2);
|
|
56
|
+
var b = [], c = !0;
|
|
57
|
+
a = f(...a);
|
|
58
|
+
this.#d.forEach((d) => {
|
|
59
|
+
d[0] === a[0] ? c && (c = !b.push(a)) : b.push(d);
|
|
60
|
+
});
|
|
61
|
+
c && b.push(a);
|
|
62
|
+
this.#d = b;
|
|
63
|
+
}
|
|
64
|
+
*entries() {
|
|
65
|
+
yield* this.#d;
|
|
66
|
+
}
|
|
67
|
+
*keys() {
|
|
68
|
+
for (var [a] of this) yield a;
|
|
69
|
+
}
|
|
70
|
+
*values() {
|
|
71
|
+
for (var [, a] of this) yield a;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
/** @param {FormData} F */
|
|
75
|
+
function formDataToBlob(F, B = Blob) {
|
|
76
|
+
var b = `${r()}${r()}`.replace(/\./g, "").slice(-28).padStart(32, "-"), c = [], p = `--${b}\r\nContent-Disposition: form-data; name="`;
|
|
77
|
+
F.forEach((v, n) => typeof v == "string" ? c.push(p + e(n) + `"\r\n\r\n${v.replace(/\r(?!\n)|(?<!\r)\n/g, "\r\n")}\r\n`) : c.push(p + e(n) + `"; filename="${e(v.name, 1)}"\r\nContent-Type: ${v.type || "application/octet-stream"}\r\n\r\n`, v, "\r\n"));
|
|
78
|
+
c.push(`--${b}--`);
|
|
79
|
+
return new B(c, { type: "multipart/form-data; boundary=" + b });
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { FormData, formDataToBlob };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region node_modules/node-domexception/index.js
|
|
2
|
+
var require_node_domexception = /* @__PURE__ */ require("../../_virtual/_rolldown/runtime.cjs").__commonJSMin(((exports, module) => {
|
|
3
|
+
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
4
|
+
if (!globalThis.DOMException) try {
|
|
5
|
+
const { MessageChannel } = require("worker_threads"), port = new MessageChannel().port1, ab = /* @__PURE__ */ new ArrayBuffer();
|
|
6
|
+
port.postMessage(ab, [ab, ab]);
|
|
7
|
+
} catch (err) {
|
|
8
|
+
err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor);
|
|
9
|
+
}
|
|
10
|
+
module.exports = globalThis.DOMException;
|
|
11
|
+
}));
|
|
12
|
+
//#endregion
|
|
13
|
+
Object.defineProperty(exports, "default", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function() {
|
|
16
|
+
return require_node_domexception();
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
//#region node_modules/node-domexception/index.js
|
|
3
|
+
var require_node_domexception = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
|
+
/*! node-domexception. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */
|
|
5
|
+
if (!globalThis.DOMException) try {
|
|
6
|
+
const { MessageChannel } = __require("worker_threads"), port = new MessageChannel().port1, ab = /* @__PURE__ */ new ArrayBuffer();
|
|
7
|
+
port.postMessage(ab, [ab, ab]);
|
|
8
|
+
} catch (err) {
|
|
9
|
+
err.constructor.name === "DOMException" && (globalThis.DOMException = err.constructor);
|
|
10
|
+
}
|
|
11
|
+
module.exports = globalThis.DOMException;
|
|
12
|
+
}));
|
|
13
|
+
//#endregion
|
|
14
|
+
export default require_node_domexception();
|
|
15
|
+
export { require_node_domexception };
|