@8ms/helpers 2.3.7 → 2.3.8

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.
Files changed (81) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/dist/_class/index.d.mts +1 -1
  3. package/dist/adverity/index.d.mts +1 -1
  4. package/dist/adverity/server/index.d.mts +2 -2
  5. package/dist/adverity/server/index.mjs +1 -1
  6. package/dist/api/index.d.mts +1 -1
  7. package/dist/api/index.mjs +1 -1
  8. package/dist/aws/ec2/server/index.d.mts +2 -2
  9. package/dist/aws/ec2/server/index.mjs +1 -1
  10. package/dist/aws/ecs/server/index.d.mts +2 -2
  11. package/dist/aws/ecs/server/index.mjs +1 -1
  12. package/dist/aws/glue/server/index.d.mts +2 -2
  13. package/dist/aws/glue/server/index.mjs +1 -1
  14. package/dist/aws/lambda/server/index.d.mts +2 -2
  15. package/dist/aws/lambda/server/index.mjs +2 -2
  16. package/dist/aws/s3/server/index.d.mts +2 -2
  17. package/dist/aws/s3/server/index.mjs +3 -3
  18. package/dist/aws/server/index.d.mts +1 -1
  19. package/dist/aws/server/index.mjs +1 -1
  20. package/dist/aws/ses/server/index.d.mts +2 -2
  21. package/dist/aws/ses/server/index.mjs +3 -3
  22. package/dist/aws/sqs/server/index.d.mts +2 -2
  23. package/dist/aws/sqs/server/index.mjs +1 -1
  24. package/dist/aws/ssm/server/index.d.mts +2 -2
  25. package/dist/aws/ssm/server/index.mjs +1 -1
  26. package/dist/axios/index.d.mts +1 -1
  27. package/dist/axios/index.mjs +5 -5
  28. package/dist/brightData/serpApi/server/index.d.mts +2 -2
  29. package/dist/brightData/serpApi/server/index.mjs +1 -1
  30. package/dist/brightData/server/index.d.mts +1 -1
  31. package/dist/brightData/webScraperIde/server/index.d.mts +1 -1
  32. package/dist/brightData/webScraperIde/server/index.mjs +1 -1
  33. package/dist/date/index.d.mts +1 -1
  34. package/dist/eskimi/server/index.mjs +1 -1
  35. package/dist/googleAds/server/index.d.mts +1 -1
  36. package/dist/googleCloud/bigquery/server/index.d.mts +2 -2
  37. package/dist/googleCloud/server/index.d.mts +1 -1
  38. package/dist/googleCloud/sheets/server/index.d.mts +2 -2
  39. package/dist/googleCloud/storage/server/index.d.mts +2 -2
  40. package/dist/googlePageSpeed/server/index.d.mts +1 -1
  41. package/dist/googlePageSpeed/server/index.mjs +1 -1
  42. package/dist/googleSearchIncidents/server/index.mjs +1 -1
  43. package/dist/greenDomain/server/index.mjs +1 -1
  44. package/dist/littleWarden/server/index.d.mts +1 -1
  45. package/dist/littleWarden/server/index.mjs +1 -1
  46. package/dist/lumar/api/server/index.d.mts +1 -1
  47. package/dist/lumar/api/server/index.mjs +1 -1
  48. package/dist/lumar/graphql/server/index.d.mts +1 -1
  49. package/dist/lumar/graphql/server/index.mjs +1 -1
  50. package/dist/myTarget/server/index.d.mts +1 -1
  51. package/dist/myTarget/server/index.mjs +1 -1
  52. package/dist/number/index.mjs +1 -1
  53. package/dist/onePassword/server/index.d.mts +1 -1
  54. package/dist/openAi/server/index.d.mts +1 -1
  55. package/dist/openAi/server/index.mjs +1 -1
  56. package/dist/prisma/index.mjs +1 -1
  57. package/dist/prisma/server/index.d.mts +1 -1
  58. package/dist/snapchat/server/index.d.mts +1 -1
  59. package/dist/snapchat/server/index.mjs +1 -1
  60. package/dist/stream/server/index.mjs +5 -1
  61. package/dist/swr/client/index.d.mts +1 -1
  62. package/dist/upTimeRobot/server/index.d.mts +1 -1
  63. package/dist/upTimeRobot/server/index.mjs +1 -1
  64. package/dist/url/server/index.mjs +2 -2
  65. package/dist/xml/server/index.mjs +1 -1
  66. package/package.json +1 -1
  67. package/tsdown.config.ts +1 -0
  68. package/dist/chunk-CgI6uo-e.mjs +0 -32
  69. package/dist/from-9s4TjsYv.mjs +0 -3878
  70. package/dist/multipart-parser-BC14QSvI.mjs +0 -290
  71. package/dist/src-BeXFXTgz.mjs +0 -1272
  72. /package/dist/{api-DGKJDAfb.mjs → api-BlYy5Efh.mjs} +0 -0
  73. /package/dist/{getDecimal-CafxtLhH.mjs → getDecimal-DRv1J8WD.mjs} +0 -0
  74. /package/dist/{index-CFaAdPAh.d.mts → index-1SE8er2n.d.mts} +0 -0
  75. /package/dist/{index-DEm1Wodf.d.mts → index-BOvAlQeY.d.mts} +0 -0
  76. /package/dist/{index-CMfxuwL1.d.mts → index-Bfls0t50.d.mts} +0 -0
  77. /package/dist/{index-sfVt7tI_.d.mts → index-CN31pmsW.d.mts} +0 -0
  78. /package/dist/{index-B20FTOvk.d.mts → index-D1tpqoPU.d.mts} +0 -0
  79. /package/dist/{index-CIG08fpw.d.mts → index-Yx2783su.d.mts} +0 -0
  80. /package/dist/{index-B4K9Z1U-.d.mts → index-ndHDK8xQ.d.mts} +0 -0
  81. /package/dist/{server-Bwy4JI8Z.mjs → server-Dbl5Ic6I.mjs} +0 -0
Binary file
@@ -1,2 +1,2 @@
1
- import { n as BaseClass, t as BaseNamespace } from "../index-CFaAdPAh.mjs";
1
+ import { n as BaseClass, t as BaseNamespace } from "../index-1SE8er2n.mjs";
2
2
  export { BaseClass, BaseNamespace };
@@ -1,2 +1,2 @@
1
- import { a as jobSchema, i as datastreamSchema, n as JobSchemaType, o as stackSchema, r as StackSchemaType, t as DatastreamSchemaType } from "../index-DEm1Wodf.mjs";
1
+ import { a as jobSchema, i as datastreamSchema, n as JobSchemaType, o as stackSchema, r as StackSchemaType, t as DatastreamSchemaType } from "../index-BOvAlQeY.mjs";
2
2
  export { DatastreamSchemaType, JobSchemaType, StackSchemaType, datastreamSchema, jobSchema, stackSchema };
@@ -1,5 +1,5 @@
1
- import { n as JobSchemaType } from "../../index-DEm1Wodf.mjs";
2
- import { X as InputDate } from "../../index-CMfxuwL1.mjs";
1
+ import { n as JobSchemaType } from "../../index-BOvAlQeY.mjs";
2
+ import { X as InputDate } from "../../index-Bfls0t50.mjs";
3
3
 
4
4
  //#region src/adverity/server/getJobs.d.ts
5
5
  type AdverityJobsResponse = {
@@ -1,4 +1,4 @@
1
- import "../../api-DGKJDAfb.mjs";
1
+ import "../../api-BlYy5Efh.mjs";
2
2
  import { get } from "../../axios/index.mjs";
3
3
  import { getLuxonDate, getToday, getYesterday, getYmdString } from "../../date/index.mjs";
4
4
 
@@ -1,2 +1,2 @@
1
- import { a as isSuccess, c as ApiState, d as unexpectedError, f as ApiResponseClass, i as isPending, l as apiState, n as isError, o as isValidationError, r as isIdle, s as ApiResponse, t as isCancelled, u as defaultResponse } from "../index-B20FTOvk.mjs";
1
+ import { a as isSuccess, c as ApiState, d as unexpectedError, f as ApiResponseClass, i as isPending, l as apiState, n as isError, o as isValidationError, r as isIdle, s as ApiResponse, t as isCancelled, u as defaultResponse } from "../index-D1tpqoPU.mjs";
2
2
  export { ApiResponse, ApiResponseClass, ApiState, apiState, defaultResponse, isCancelled, isError, isIdle, isPending, isSuccess, isValidationError, unexpectedError };
@@ -1,3 +1,3 @@
1
- import { a as isSuccess, c as defaultResponse, i as isPending, l as unexpectedError, n as isError, o as isValidationError, r as isIdle, s as apiState, t as isCancelled, u as ApiResponseClass } from "../api-DGKJDAfb.mjs";
1
+ import { a as isSuccess, c as defaultResponse, i as isPending, l as unexpectedError, n as isError, o as isValidationError, r as isIdle, s as apiState, t as isCancelled, u as ApiResponseClass } from "../api-BlYy5Efh.mjs";
2
2
 
3
3
  export { ApiResponseClass, apiState, defaultResponse, isCancelled, isError, isIdle, isPending, isSuccess, isValidationError, unexpectedError };
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as AwsConfig } from "../../../index-B4K9Z1U-.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as AwsConfig } from "../../../index-ndHDK8xQ.mjs";
3
3
  import * as _aws_sdk_client_ec20 from "@aws-sdk/client-ec2";
4
4
  import { EC2Client } from "@aws-sdk/client-ec2";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/index.mjs";
2
- import { t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
2
+ import { t as getConfig } from "../../../server-Dbl5Ic6I.mjs";
3
3
 
4
4
  //#region src/aws/ec2/server/AwsEc2Namespace.ts
5
5
  var AwsEc2Namespace = class extends BaseNamespace {
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as AwsConfig } from "../../../index-B4K9Z1U-.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as AwsConfig } from "../../../index-ndHDK8xQ.mjs";
3
3
  import { DesiredStatus, ECSClient, LaunchType, NetworkConfiguration, SortOrder, TaskDefinitionStatus, TaskOverride } from "@aws-sdk/client-ecs";
4
4
 
5
5
  //#region src/aws/ecs/server/AwsEcsNamespace.d.ts
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/index.mjs";
2
- import { n as isResponse200, t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
2
+ import { n as isResponse200, t as getConfig } from "../../../server-Dbl5Ic6I.mjs";
3
3
 
4
4
  //#region src/aws/ecs/server/AwsEcsNamespace.ts
5
5
  var AwsEcsNamespace = class extends BaseNamespace {
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as AwsConfig } from "../../../index-B4K9Z1U-.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as AwsConfig } from "../../../index-ndHDK8xQ.mjs";
3
3
  import { GlueClient } from "@aws-sdk/client-glue";
4
4
 
5
5
  //#region src/aws/glue/server/AwsGlueNamespace.d.ts
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/index.mjs";
2
- import { n as isResponse200, t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
2
+ import { n as isResponse200, t as getConfig } from "../../../server-Dbl5Ic6I.mjs";
3
3
 
4
4
  //#region src/aws/glue/server/AwsGlueNamespace.ts
5
5
  var AwsGlueNamespace = class extends BaseNamespace {
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as AwsConfig } from "../../../index-B4K9Z1U-.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as AwsConfig } from "../../../index-ndHDK8xQ.mjs";
3
3
  import { LambdaClient } from "@aws-sdk/client-lambda";
4
4
 
5
5
  //#region src/aws/lambda/server/AwsLambdaNamespace.d.ts
@@ -1,6 +1,6 @@
1
1
  import { BaseNamespace } from "../../../_class/index.mjs";
2
- import { u as ApiResponseClass } from "../../../api-DGKJDAfb.mjs";
3
- import { n as isResponse200, t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
2
+ import { u as ApiResponseClass } from "../../../api-BlYy5Efh.mjs";
3
+ import { n as isResponse200, t as getConfig } from "../../../server-Dbl5Ic6I.mjs";
4
4
 
5
5
  //#region src/aws/lambda/server/AwsLambdaNamespace.ts
6
6
  var AwsLambdaNamespace = class extends BaseNamespace {
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as AwsConfig } from "../../../index-B4K9Z1U-.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as AwsConfig } from "../../../index-ndHDK8xQ.mjs";
3
3
  import { z } from "zod/v4";
4
4
  import * as _aws_sdk_client_s30 from "@aws-sdk/client-s3";
5
5
  import { S3Client } from "@aws-sdk/client-s3";
@@ -1,10 +1,10 @@
1
1
  import { BaseNamespace } from "../../../_class/index.mjs";
2
2
  import { defaultDateTime, getToday, getYmdHisString } from "../../../date/index.mjs";
3
3
  import { getFolder, getStringFromStream } from "../../../string/index.mjs";
4
- import { n as isResponse200, t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
4
+ import { n as isResponse200, t as getConfig } from "../../../server-Dbl5Ic6I.mjs";
5
5
  import { getBrotliCompressed, getBrotliDecompressed, getGzipCompressed, getGzipDecompressed } from "../../../util/server/index.mjs";
6
6
  import { z } from "zod/v4";
7
- import get from "axios";
7
+ import axios from "axios";
8
8
  import cloneDeep from "lodash/cloneDeep";
9
9
 
10
10
  //#region src/aws/s3/server/AwsS3Namespace.ts
@@ -294,7 +294,7 @@ var AwsS3Namespace = class extends BaseNamespace {
294
294
  */
295
295
  urlContents = async (bucket, key, url) => {
296
296
  await this.ensureInit();
297
- return get(url, {
297
+ return axios(url, {
298
298
  responseType: "arraybuffer",
299
299
  responseEncoding: "binary"
300
300
  }).then(async (response) => {
@@ -1,2 +1,2 @@
1
- import { n as getConfig, r as isResponse200, t as AwsConfig } from "../../index-B4K9Z1U-.mjs";
1
+ import { n as getConfig, r as isResponse200, t as AwsConfig } from "../../index-ndHDK8xQ.mjs";
2
2
  export { AwsConfig, getConfig, isResponse200 };
@@ -1,3 +1,3 @@
1
- import { n as isResponse200, t as getConfig } from "../../server-Bwy4JI8Z.mjs";
1
+ import { n as isResponse200, t as getConfig } from "../../server-Dbl5Ic6I.mjs";
2
2
 
3
3
  export { getConfig, isResponse200 };
@@ -1,5 +1,5 @@
1
- import { n as BaseClass, t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as AwsConfig } from "../../../index-B4K9Z1U-.mjs";
1
+ import { n as BaseClass, t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as AwsConfig } from "../../../index-ndHDK8xQ.mjs";
3
3
  import { SESClient, SendEmailCommandInput, SendRawEmailCommandInput } from "@aws-sdk/client-ses";
4
4
 
5
5
  //#region src/aws/ses/server/AwsSesNamespace.d.ts
@@ -1,5 +1,5 @@
1
1
  import { BaseClass, BaseNamespace } from "../../../_class/index.mjs";
2
- import { t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
2
+ import { t as getConfig } from "../../../server-Dbl5Ic6I.mjs";
3
3
  import uniq from "lodash/uniq";
4
4
 
5
5
  //#region src/aws/ses/server/AwsSesNamespace.ts
@@ -192,7 +192,7 @@ var SimpleEmail = class extends BaseClass {
192
192
  if (this._isBase64(base64Data)) return Buffer.from(base64Data, "base64").toString("utf-8");
193
193
  return attachment.data;
194
194
  }
195
- if (attachment.url) return await (await (await import("../../../src-BeXFXTgz.mjs").then((mod) => mod.default))(attachment.url)).text();
195
+ if (attachment.url) return await (await (await import("node-fetch").then((mod) => mod.default))(attachment.url)).text();
196
196
  throw new Error(`No valid data source provided for attachment: ${attachment.filename}`);
197
197
  };
198
198
  _getAttachmentData = async (attachment) => {
@@ -201,7 +201,7 @@ var SimpleEmail = class extends BaseClass {
201
201
  if (this._isBase64(cleanData)) return cleanData;
202
202
  return Buffer.from(attachment.data, "utf-8").toString("base64");
203
203
  }
204
- if (attachment.url) return (await (await (await import("../../../src-BeXFXTgz.mjs").then((mod) => mod.default))(attachment.url)).buffer()).toString("base64");
204
+ if (attachment.url) return (await (await (await import("node-fetch").then((mod) => mod.default))(attachment.url)).buffer()).toString("base64");
205
205
  throw new Error(`No valid data source provided for attachment: ${attachment.filename}`);
206
206
  };
207
207
  _isBase64 = (str) => {
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as AwsConfig } from "../../../index-B4K9Z1U-.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as AwsConfig } from "../../../index-ndHDK8xQ.mjs";
3
3
  import * as _aws_sdk_client_sqs0 from "@aws-sdk/client-sqs";
4
4
  import { SQSClient } from "@aws-sdk/client-sqs";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/index.mjs";
2
- import { t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
2
+ import { t as getConfig } from "../../../server-Dbl5Ic6I.mjs";
3
3
 
4
4
  //#region src/aws/sqs/server/AwsSqsNamespace.ts
5
5
  var AwsSqsNamespace = class extends BaseNamespace {
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as AwsConfig } from "../../../index-B4K9Z1U-.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as AwsConfig } from "../../../index-ndHDK8xQ.mjs";
3
3
  import { SSMClient } from "@aws-sdk/client-ssm";
4
4
 
5
5
  //#region src/aws/ssm/server/AwsSsmNamespace.d.ts
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../../_class/index.mjs";
2
- import { t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
2
+ import { t as getConfig } from "../../../server-Dbl5Ic6I.mjs";
3
3
 
4
4
  //#region src/aws/ssm/server/AwsSsmNamespace.ts
5
5
  var AwsSsmNamespace = class extends BaseNamespace {
@@ -1,4 +1,4 @@
1
- import { f as ApiResponseClass } from "../index-B20FTOvk.mjs";
1
+ import { f as ApiResponseClass } from "../index-D1tpqoPU.mjs";
2
2
 
3
3
  //#region src/axios/deleteRequest.d.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { u as ApiResponseClass } from "../api-DGKJDAfb.mjs";
2
- import get$1 from "axios";
1
+ import { u as ApiResponseClass } from "../api-BlYy5Efh.mjs";
2
+ import axios from "axios";
3
3
 
4
4
  //#region src/axios/deleteRequest.ts
5
5
  /**
@@ -7,7 +7,7 @@ import get$1 from "axios";
7
7
  * Can't use the function name delete as it's reserved
8
8
  */
9
9
  const deleteRequest = async (url, config = {}) => {
10
- return await get$1.delete(url, config).then(async (response) => {
10
+ return await axios.delete(url, config).then(async (response) => {
11
11
  if (void 0 !== response.data.body && void 0 !== response.data.error && void 0 !== response.data.state) return new ApiResponseClass(response.data);
12
12
  else if (response.status >= 200 && response.status <= 299) return new ApiResponseClass().setToSuccess(response.data);
13
13
  return new ApiResponseClass().setToError(response.data, response.statusText);
@@ -22,7 +22,7 @@ const deleteRequest = async (url, config = {}) => {
22
22
  * Make a GET request.
23
23
  */
24
24
  const get = async (url, config = {}) => {
25
- return await get$1.get(url, config).then(async (response) => {
25
+ return await axios.get(url, config).then(async (response) => {
26
26
  if (void 0 !== response.data.body && void 0 !== response.data.error && void 0 !== response.data.state) return new ApiResponseClass(response.data);
27
27
  else if (response.status >= 200 && response.status <= 299) return new ApiResponseClass().setToSuccess(response.data);
28
28
  return new ApiResponseClass().setToError(response.data, response.statusText);
@@ -37,7 +37,7 @@ const get = async (url, config = {}) => {
37
37
  * Make a POST request.
38
38
  */
39
39
  const post = async (url, data = {}, config = {}) => {
40
- return await get$1.post(url, data, config).then(async (response) => {
40
+ return await axios.post(url, data, config).then(async (response) => {
41
41
  if (void 0 !== response.data.body && void 0 !== response.data.error && void 0 !== response.data.state) return new ApiResponseClass(response.data);
42
42
  else if (response.status >= 200 && response.status <= 299) return new ApiResponseClass().setToSuccess(response.data);
43
43
  return new ApiResponseClass().setToError(response.data, response.statusText);
@@ -1,5 +1,5 @@
1
- import { f as ApiResponseClass } from "../../../index-B20FTOvk.mjs";
2
- import { t as Auth } from "../../../index-sfVt7tI_.mjs";
1
+ import { f as ApiResponseClass } from "../../../index-D1tpqoPU.mjs";
2
+ import { t as Auth } from "../../../index-CN31pmsW.mjs";
3
3
 
4
4
  //#region src/brightData/serpApi/server/brightDataSerpApi.d.ts
5
5
  declare const brightDataSerpApiType: {
@@ -1,4 +1,4 @@
1
- import { u as ApiResponseClass } from "../../../api-DGKJDAfb.mjs";
1
+ import { u as ApiResponseClass } from "../../../api-BlYy5Efh.mjs";
2
2
  import { get, post } from "../../../axios/index.mjs";
3
3
  import { getCustomerId, getZone } from "../../server/index.mjs";
4
4
 
@@ -1,2 +1,2 @@
1
- import { n as getCustomerId, r as getZone, t as Auth } from "../../index-sfVt7tI_.mjs";
1
+ import { n as getCustomerId, r as getZone, t as Auth } from "../../index-CN31pmsW.mjs";
2
2
  export { Auth, getCustomerId, getZone };
@@ -1,4 +1,4 @@
1
- import { t as Auth } from "../../../index-sfVt7tI_.mjs";
1
+ import { t as Auth } from "../../../index-CN31pmsW.mjs";
2
2
 
3
3
  //#region src/brightData/webScraperIde/server/getBatch.d.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { sleep } from "../../../util/index.mjs";
2
- import { s as apiState } from "../../../api-DGKJDAfb.mjs";
2
+ import { s as apiState } from "../../../api-BlYy5Efh.mjs";
3
3
  import { get, post } from "../../../axios/index.mjs";
4
4
 
5
5
  //#region src/brightData/webScraperIde/server/getBatch.ts
@@ -1,2 +1,2 @@
1
- import { $ as defaultDate, A as getMonday, B as isLastWeek, C as differenceInBusinessDays, D as getLuxonDate, E as getLastWeek, F as getTwoWeeksAgo, G as isThursday, H as isSaturday, I as getUnix, J as isWeekend, K as isTuesday, L as getWeeksAgo, M as getSunday, N as getThisWeek, O as getMax, P as getToday, Q as Timeframe, R as getYesterday, S as getFinancialYearWeeks, T as getDatesBetween, U as isSunday, V as isMonday, W as isThisWeek, X as InputDate, Y as FinancialWeek, Z as Month, _ as getYmdNumber, a as getFullDate, b as getFinancialYearToDate, c as getMonthYearString, d as getTodayYmdNumber, et as defaultDateNumber, f as getTodayYmdString, g as getYmdHisString, h as getYmdHisNumber, i as getDurationMinutes, j as getMonthsBetween, k as getMin, l as getTodayYmdHisNumber, m as getYearNumber, n as getDayNumber, nt as month, o as getFullDateTime, p as getYearMonthString, q as isWednesday, r as getDurationHours, s as getLuxonDateFromExcel, t as format, tt as defaultDateTime, u as getTodayYmdHisString, v as getYmdString, w as differenceInMinutes, x as getFinancialYearToYesterday, y as getFinancialYear, z as isFriday } from "../index-CMfxuwL1.mjs";
1
+ import { $ as defaultDate, A as getMonday, B as isLastWeek, C as differenceInBusinessDays, D as getLuxonDate, E as getLastWeek, F as getTwoWeeksAgo, G as isThursday, H as isSaturday, I as getUnix, J as isWeekend, K as isTuesday, L as getWeeksAgo, M as getSunday, N as getThisWeek, O as getMax, P as getToday, Q as Timeframe, R as getYesterday, S as getFinancialYearWeeks, T as getDatesBetween, U as isSunday, V as isMonday, W as isThisWeek, X as InputDate, Y as FinancialWeek, Z as Month, _ as getYmdNumber, a as getFullDate, b as getFinancialYearToDate, c as getMonthYearString, d as getTodayYmdNumber, et as defaultDateNumber, f as getTodayYmdString, g as getYmdHisString, h as getYmdHisNumber, i as getDurationMinutes, j as getMonthsBetween, k as getMin, l as getTodayYmdHisNumber, m as getYearNumber, n as getDayNumber, nt as month, o as getFullDateTime, p as getYearMonthString, q as isWednesday, r as getDurationHours, s as getLuxonDateFromExcel, t as format, tt as defaultDateTime, u as getTodayYmdHisString, v as getYmdString, w as differenceInMinutes, x as getFinancialYearToYesterday, y as getFinancialYear, z as isFriday } from "../index-Bfls0t50.mjs";
2
2
  export { FinancialWeek, InputDate, Month, Timeframe, defaultDate, defaultDateNumber, defaultDateTime, differenceInBusinessDays, differenceInMinutes, format, getDatesBetween, getDayNumber, getDurationHours, getDurationMinutes, getFinancialYear, getFinancialYearToDate, getFinancialYearToYesterday, getFinancialYearWeeks, getFullDate, getFullDateTime, getLastWeek, getLuxonDate, getLuxonDateFromExcel, getMax, getMin, getMonday, getMonthYearString, getMonthsBetween, getSunday, getThisWeek, getToday, getTodayYmdHisNumber, getTodayYmdHisString, getTodayYmdNumber, getTodayYmdString, getTwoWeeksAgo, getUnix, getWeeksAgo, getYearMonthString, getYearNumber, getYesterday, getYmdHisNumber, getYmdHisString, getYmdNumber, getYmdString, isFriday, isLastWeek, isMonday, isSaturday, isSunday, isThisWeek, isThursday, isTuesday, isWednesday, isWeekend, month };
@@ -1,4 +1,4 @@
1
- import "../../api-DGKJDAfb.mjs";
1
+ import "../../api-BlYy5Efh.mjs";
2
2
  import { post } from "../../axios/index.mjs";
3
3
  import { ageGroups, devices, genders } from "../index.mjs";
4
4
 
@@ -1,4 +1,4 @@
1
- import { t as BaseNamespace } from "../../index-CFaAdPAh.mjs";
1
+ import { t as BaseNamespace } from "../../index-1SE8er2n.mjs";
2
2
  import * as google_ads_api0 from "google-ads-api";
3
3
  import { GoogleAdsApi } from "google-ads-api";
4
4
 
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as GoogleCloudConfig } from "../../../index-CIG08fpw.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as GoogleCloudConfig } from "../../../index-Yx2783su.mjs";
3
3
  import { BigQuery, DatasetResource, QueryOptions } from "@google-cloud/bigquery";
4
4
  import { GoogleAuthOptions } from "@google-cloud/common";
5
5
 
@@ -1,2 +1,2 @@
1
- import { n as getConfig, t as GoogleCloudConfig } from "../../index-CIG08fpw.mjs";
1
+ import { n as getConfig, t as GoogleCloudConfig } from "../../index-Yx2783su.mjs";
2
2
  export { GoogleCloudConfig, getConfig };
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as GoogleCloudConfig } from "../../../index-CIG08fpw.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as GoogleCloudConfig } from "../../../index-Yx2783su.mjs";
3
3
  import * as _googleapis_sheets0 from "@googleapis/sheets";
4
4
  import { GoogleAuth } from "googleapis-common";
5
5
 
@@ -1,5 +1,5 @@
1
- import { t as BaseNamespace } from "../../../index-CFaAdPAh.mjs";
2
- import { t as GoogleCloudConfig } from "../../../index-CIG08fpw.mjs";
1
+ import { t as BaseNamespace } from "../../../index-1SE8er2n.mjs";
2
+ import { t as GoogleCloudConfig } from "../../../index-Yx2783su.mjs";
3
3
  import * as _google_cloud_storage0 from "@google-cloud/storage";
4
4
  import { Storage } from "@google-cloud/storage";
5
5
  import { GoogleAuthOptions } from "@google-cloud/common";
@@ -1,4 +1,4 @@
1
- import { t as BaseNamespace } from "../../index-CFaAdPAh.mjs";
1
+ import { t as BaseNamespace } from "../../index-1SE8er2n.mjs";
2
2
 
3
3
  //#region src/googlePageSpeed/server/GooglePageSpeedNamespace.d.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../_class/index.mjs";
2
- import "../../api-DGKJDAfb.mjs";
2
+ import "../../api-BlYy5Efh.mjs";
3
3
  import { get } from "../../axios/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
 
@@ -1,4 +1,4 @@
1
- import "../../api-DGKJDAfb.mjs";
1
+ import "../../api-BlYy5Efh.mjs";
2
2
  import { get } from "../../axios/index.mjs";
3
3
  import { z } from "zod/v4";
4
4
 
@@ -1,4 +1,4 @@
1
- import "../../api-DGKJDAfb.mjs";
1
+ import "../../api-BlYy5Efh.mjs";
2
2
  import { get } from "../../axios/index.mjs";
3
3
  import { z } from "zod/v4";
4
4
 
@@ -1,4 +1,4 @@
1
- import { t as BaseNamespace } from "../../index-CFaAdPAh.mjs";
1
+ import { t as BaseNamespace } from "../../index-1SE8er2n.mjs";
2
2
 
3
3
  //#region src/littleWarden/server/LittleWardenNamespace.d.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../_class/index.mjs";
2
- import "../../api-DGKJDAfb.mjs";
2
+ import "../../api-BlYy5Efh.mjs";
3
3
  import { get } from "../../axios/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
 
@@ -1,4 +1,4 @@
1
- import { f as ApiResponseClass } from "../../../index-B20FTOvk.mjs";
1
+ import { f as ApiResponseClass } from "../../../index-D1tpqoPU.mjs";
2
2
 
3
3
  //#region src/lumar/api/server/lumarApi.d.ts
4
4
  type Filter = {
@@ -1,4 +1,4 @@
1
- import "../../../api-DGKJDAfb.mjs";
1
+ import "../../../api-BlYy5Efh.mjs";
2
2
  import { get, post } from "../../../axios/index.mjs";
3
3
 
4
4
  //#region src/lumar/api/server/lumarApi.ts
@@ -1,4 +1,4 @@
1
- import { f as ApiResponseClass } from "../../../index-B20FTOvk.mjs";
1
+ import { f as ApiResponseClass } from "../../../index-D1tpqoPU.mjs";
2
2
 
3
3
  //#region src/lumar/graphql/server/lumarGraphql.d.ts
4
4
  declare const operand: {
@@ -1,4 +1,4 @@
1
- import "../../../api-DGKJDAfb.mjs";
1
+ import "../../../api-BlYy5Efh.mjs";
2
2
  import { post } from "../../../axios/index.mjs";
3
3
 
4
4
  //#region src/lumar/graphql/server/lumarGraphql.ts
@@ -1,4 +1,4 @@
1
- import { s as ApiResponse } from "../../index-B20FTOvk.mjs";
1
+ import { s as ApiResponse } from "../../index-D1tpqoPU.mjs";
2
2
 
3
3
  //#region src/myTarget/server/myTarget.d.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import "../../api-DGKJDAfb.mjs";
1
+ import "../../api-BlYy5Efh.mjs";
2
2
  import { post } from "../../axios/index.mjs";
3
3
 
4
4
  //#region src/myTarget/server/myTarget.ts
@@ -1,4 +1,4 @@
1
- import { n as getNumber, t as getDecimal } from "../getDecimal-CafxtLhH.mjs";
1
+ import { n as getNumber, t as getDecimal } from "../getDecimal-DRv1J8WD.mjs";
2
2
 
3
3
  //#region src/number/format.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as BaseNamespace } from "../../index-CFaAdPAh.mjs";
1
+ import { t as BaseNamespace } from "../../index-1SE8er2n.mjs";
2
2
  import * as _1password_sdk0 from "@1password/sdk";
3
3
  import { Client } from "@1password/sdk";
4
4
 
@@ -1,4 +1,4 @@
1
- import { t as BaseNamespace } from "../../index-CFaAdPAh.mjs";
1
+ import { t as BaseNamespace } from "../../index-1SE8er2n.mjs";
2
2
 
3
3
  //#region src/openAi/server/OpenAiNamespace.d.ts
4
4
  declare class OpenAiNamespace extends BaseNamespace {
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../_class/index.mjs";
2
- import "../../api-DGKJDAfb.mjs";
2
+ import "../../api-BlYy5Efh.mjs";
3
3
  import { post } from "../../axios/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
 
@@ -1,4 +1,4 @@
1
- import { t as getDecimal$1 } from "../getDecimal-CafxtLhH.mjs";
1
+ import { t as getDecimal$1 } from "../getDecimal-DRv1J8WD.mjs";
2
2
  import isArray from "lodash/isArray";
3
3
 
4
4
  //#region src/prisma/getDecimal.ts
@@ -1,4 +1,4 @@
1
- import { t as BaseNamespace } from "../../index-CFaAdPAh.mjs";
1
+ import { t as BaseNamespace } from "../../index-1SE8er2n.mjs";
2
2
 
3
3
  //#region src/prisma/server/PrismaNamespace.d.ts
4
4
  declare class PrismaNamespace extends BaseNamespace {
@@ -1,4 +1,4 @@
1
- import { t as BaseNamespace } from "../../index-CFaAdPAh.mjs";
1
+ import { t as BaseNamespace } from "../../index-1SE8er2n.mjs";
2
2
 
3
3
  //#region src/snapchat/server/SnapchatNamespace.d.ts
4
4
  type Client = {
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../_class/index.mjs";
2
- import "../../api-DGKJDAfb.mjs";
2
+ import "../../api-BlYy5Efh.mjs";
3
3
  import { post } from "../../axios/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
  import { DateTime } from "luxon";
@@ -1,5 +1,9 @@
1
- import { n as __require } from "../../chunk-CgI6uo-e.mjs";
1
+ import { createRequire } from "node:module";
2
2
 
3
+ //#region \0rolldown/runtime.js
4
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
5
+
6
+ //#endregion
3
7
  //#region src/stream/server/sort.ts
4
8
  const Transform = __require("stream").Transform;
5
9
  const batch = 15e3;
@@ -1,4 +1,4 @@
1
- import { c as ApiState } from "../../index-B20FTOvk.mjs";
1
+ import { c as ApiState } from "../../index-D1tpqoPU.mjs";
2
2
 
3
3
  //#region src/swr/client/swr.d.ts
4
4
  type Swr = {
@@ -1,4 +1,4 @@
1
- import { t as BaseNamespace } from "../../index-CFaAdPAh.mjs";
1
+ import { t as BaseNamespace } from "../../index-1SE8er2n.mjs";
2
2
 
3
3
  //#region src/upTimeRobot/server/UpTimeRobotNamespace.d.ts
4
4
  type GetReportProps = {
@@ -1,5 +1,5 @@
1
1
  import { BaseNamespace } from "../../_class/index.mjs";
2
- import "../../api-DGKJDAfb.mjs";
2
+ import "../../api-BlYy5Efh.mjs";
3
3
  import { post } from "../../axios/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
  import isArray from "lodash/isArray";
@@ -1,5 +1,5 @@
1
1
  import { createDirectory } from "../../file/server/index.mjs";
2
- import get from "axios";
2
+ import axios from "axios";
3
3
 
4
4
  //#region src/url/server/writeUrlContents.ts
5
5
  /**
@@ -11,7 +11,7 @@ const writeUrlContents = async (filePath, url) => {
11
11
  const fs = await import("fs-extra");
12
12
  await createDirectory(filePath);
13
13
  const writer = fs.createWriteStream(filePath);
14
- await get({
14
+ await axios({
15
15
  method: "get",
16
16
  url,
17
17
  responseType: "stream"
@@ -1,4 +1,4 @@
1
- import "../../api-DGKJDAfb.mjs";
1
+ import "../../api-BlYy5Efh.mjs";
2
2
  import { get } from "../../axios/index.mjs";
3
3
 
4
4
  //#region src/xml/server/getXml.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
3
  "license": "UNLICENSED",
4
- "version": "2.3.7",
4
+ "version": "2.3.8",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
package/tsdown.config.ts CHANGED
@@ -7,4 +7,5 @@ export default defineConfig({
7
7
  dts : true,
8
8
  clean : true,
9
9
  exports: true, // auto-generates the exports map in package.json
10
+ skipNodeModulesBundle: true, // don't inline dependencies, let the consumer resolve them
10
11
  });