@8ms/helpers 2.3.36 → 2.3.37

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.
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
@@ -1,5 +1,5 @@
1
1
  import { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as AwsConfig } from "../../../index-CqTOMR8f.mjs";
2
+ import { t as AwsConfig } from "../../../index-CE8rcECG.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 { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as AwsConfig } from "../../../index-CqTOMR8f.mjs";
2
+ import { t as AwsConfig } from "../../../index-CE8rcECG.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 { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as AwsConfig } from "../../../index-CqTOMR8f.mjs";
2
+ import { t as AwsConfig } from "../../../index-CE8rcECG.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 { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as AwsConfig } from "../../../index-CqTOMR8f.mjs";
2
+ import { t as AwsConfig } from "../../../index-CE8rcECG.mjs";
3
3
  import { LambdaClient } from "@aws-sdk/client-lambda";
4
4
 
5
5
  //#region src/aws/lambda/server/AwsLambdaNamespace.d.ts
@@ -1,5 +1,5 @@
1
1
  import { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as AwsConfig } from "../../../index-CqTOMR8f.mjs";
2
+ import { t as AwsConfig } from "../../../index-CE8rcECG.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";
@@ -4,7 +4,7 @@ import { getFolder, getStringFromStream } from "../../../string/index.mjs";
4
4
  import { n as isResponse200, t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
5
5
  import { getBrotliCompressed, getBrotliDecompressed, getGzipCompressed, getGzipDecompressed } from "../../../util/server/index.mjs";
6
6
  import { z } from "zod/v4";
7
- import axios from "axios";
7
+ import get from "axios";
8
8
 
9
9
  //#region src/aws/s3/server/AwsS3Namespace.ts
10
10
  var AwsS3Namespace = class extends BaseNamespace {
@@ -293,7 +293,7 @@ var AwsS3Namespace = class extends BaseNamespace {
293
293
  */
294
294
  urlContents = async (bucket, key, url) => {
295
295
  await this.ensureInit();
296
- return axios(url, {
296
+ return get(url, {
297
297
  responseType: "arraybuffer",
298
298
  responseEncoding: "binary"
299
299
  }).then(async (response) => {
@@ -1,2 +1,2 @@
1
- import { n as getConfig, r as isResponse200, t as AwsConfig } from "../../index-CqTOMR8f.mjs";
1
+ import { n as getConfig, r as isResponse200, t as AwsConfig } from "../../index-CE8rcECG.mjs";
2
2
  export { AwsConfig, getConfig, isResponse200 };
@@ -1,5 +1,5 @@
1
1
  import { n as BaseClass, t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as AwsConfig } from "../../../index-CqTOMR8f.mjs";
2
+ import { t as AwsConfig } from "../../../index-CE8rcECG.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 { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as AwsConfig } from "../../../index-CqTOMR8f.mjs";
2
+ import { t as AwsConfig } from "../../../index-CE8rcECG.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 { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as AwsConfig } from "../../../index-CqTOMR8f.mjs";
2
+ import { t as AwsConfig } from "../../../index-CE8rcECG.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 { u as ApiResponseClass } from "../api-DGKJDAfb.mjs";
2
- import axios from "axios";
2
+ import get$1 from "axios";
3
3
 
4
4
  //#region src/axios/deleteRequest.ts
5
5
  /**
@@ -7,7 +7,7 @@ import axios 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 axios.delete(url, config).then(async (response) => {
10
+ return await get$1.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 axios.get(url, config).then(async (response) => {
25
+ return await get$1.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 axios.post(url, data, config).then(async (response) => {
40
+ return await get$1.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
1
  import { f as ApiResponseClass } from "../../../index-DW9yJLtI.mjs";
2
- import { t as Auth } from "../../../index-BfyGIdDD.mjs";
2
+ import { t as Auth } from "../../../index-Cpfm8vFH.mjs";
3
3
 
4
4
  //#region src/brightData/serpApi/server/brightDataSerpApi.d.ts
5
5
  declare const brightDataSerpApiType: {
@@ -1,2 +1,2 @@
1
- import { n as getCustomerId, r as getZone, t as Auth } from "../../index-BfyGIdDD.mjs";
1
+ import { n as getCustomerId, r as getZone, t as Auth } from "../../index-Cpfm8vFH.mjs";
2
2
  export { Auth, getCustomerId, getZone };
@@ -1,4 +1,4 @@
1
- import { t as Auth } from "../../../index-BfyGIdDD.mjs";
1
+ import { t as Auth } from "../../../index-Cpfm8vFH.mjs";
2
2
 
3
3
  //#region src/brightData/webScraperIde/server/getBatch.d.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as GoogleCloudConfig } from "../../../index-DmCSxHCc.mjs";
2
+ import { t as GoogleCloudConfig } from "../../../index-BqrbHL2-.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-DmCSxHCc.mjs";
1
+ import { n as getConfig, t as GoogleCloudConfig } from "../../index-BqrbHL2-.mjs";
2
2
  export { GoogleCloudConfig, getConfig };
@@ -1,5 +1,5 @@
1
1
  import { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as GoogleCloudConfig } from "../../../index-DmCSxHCc.mjs";
2
+ import { t as GoogleCloudConfig } from "../../../index-BqrbHL2-.mjs";
3
3
  import * as _googleapis_sheets0 from "@googleapis/sheets";
4
4
  import { GoogleAuth } from "googleapis-common";
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { t as BaseNamespace } from "../../../index-DwB8X1lz.mjs";
2
- import { t as GoogleCloudConfig } from "../../../index-DmCSxHCc.mjs";
2
+ import { t as GoogleCloudConfig } from "../../../index-BqrbHL2-.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,5 +1,5 @@
1
1
  import { createDirectory } from "../../file/server/index.mjs";
2
- import axios from "axios";
2
+ import get 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 axios({
14
+ await get({
15
15
  method: "get",
16
16
  url,
17
17
  responseType: "stream"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
3
  "license": "UNLICENSED",
4
- "version": "2.3.36",
4
+ "version": "2.3.37",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
@@ -22,6 +22,7 @@
22
22
  },
23
23
  "peerDependencies": {
24
24
  "@1password/sdk": "<1.0.0",
25
+ "@aws-sdk/client-cloudwatch-logs": "^3.0.0",
25
26
  "@aws-sdk/client-ec2": "^3.0.0",
26
27
  "@aws-sdk/client-ecs": "^3.0.0",
27
28
  "@aws-sdk/client-glue": "^3.0.0",
@@ -56,6 +57,9 @@
56
57
  "@1password/sdk": {
57
58
  "optional": true
58
59
  },
60
+ "@aws-sdk/client-cloudwatch-logs": {
61
+ "optional": true
62
+ },
59
63
  "@aws-sdk/client-ec2": {
60
64
  "optional": true
61
65
  },
@@ -143,6 +147,7 @@
143
147
  },
144
148
  "devDependencies": {
145
149
  "@1password/sdk": "^0.4.0",
150
+ "@aws-sdk/client-cloudwatch-logs": "^3.992.0",
146
151
  "@aws-sdk/client-ec2": "^3.992.0",
147
152
  "@aws-sdk/client-ecs": "^3.992.0",
148
153
  "@aws-sdk/client-glue": "^3.992.0",
@@ -198,6 +203,7 @@
198
203
  "./api": "./dist/api/index.mjs",
199
204
  "./array": "./dist/array/index.mjs",
200
205
  "./atInternet": "./dist/atInternet/index.mjs",
206
+ "./aws/cloudWatch/server": "./dist/aws/cloudWatch/server/index.mjs",
201
207
  "./aws/ec2/server": "./dist/aws/ec2/server/index.mjs",
202
208
  "./aws/ecs/server": "./dist/aws/ecs/server/index.mjs",
203
209
  "./aws/glue/server": "./dist/aws/glue/server/index.mjs",