@8ms/helpers 2.3.7 → 2.3.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/.yarn/install-state.gz +0 -0
- package/dist/_class/index.d.mts +1 -1
- package/dist/_class/index.mjs +3 -4
- package/dist/adverity/index.d.mts +1 -1
- package/dist/adverity/server/index.d.mts +2 -2
- package/dist/adverity/server/index.mjs +1 -1
- package/dist/api/index.d.mts +1 -1
- package/dist/api/index.mjs +1 -1
- package/dist/array/index.mjs +1 -3
- package/dist/aws/ec2/server/index.d.mts +2 -2
- package/dist/aws/ec2/server/index.mjs +1 -1
- package/dist/aws/ecs/server/index.d.mts +2 -2
- package/dist/aws/ecs/server/index.mjs +1 -1
- package/dist/aws/glue/server/index.d.mts +2 -2
- package/dist/aws/glue/server/index.mjs +1 -1
- package/dist/aws/lambda/server/index.d.mts +2 -2
- package/dist/aws/lambda/server/index.mjs +2 -2
- package/dist/aws/s3/server/index.d.mts +2 -2
- package/dist/aws/s3/server/index.mjs +4 -5
- package/dist/aws/server/index.d.mts +1 -1
- package/dist/aws/server/index.mjs +1 -1
- package/dist/aws/ses/server/index.d.mts +2 -2
- package/dist/aws/ses/server/index.mjs +4 -5
- package/dist/aws/sqs/server/index.d.mts +2 -2
- package/dist/aws/sqs/server/index.mjs +1 -1
- package/dist/aws/ssm/server/index.d.mts +2 -2
- package/dist/aws/ssm/server/index.mjs +1 -1
- package/dist/axios/index.d.mts +1 -1
- package/dist/axios/index.mjs +5 -5
- package/dist/boolean/index.mjs +1 -3
- package/dist/brightData/serpApi/server/index.d.mts +2 -2
- package/dist/brightData/serpApi/server/index.mjs +1 -1
- package/dist/brightData/server/index.d.mts +1 -1
- package/dist/brightData/webScraperIde/server/index.d.mts +1 -1
- package/dist/brightData/webScraperIde/server/index.mjs +1 -1
- package/dist/date/index.d.mts +1 -1
- package/dist/eskimi/server/index.mjs +1 -1
- package/dist/googleAds/server/index.d.mts +1 -1
- package/dist/googleCloud/bigquery/server/index.d.mts +2 -2
- package/dist/googleCloud/server/index.d.mts +1 -1
- package/dist/googleCloud/sheets/server/index.d.mts +2 -2
- package/dist/googleCloud/storage/server/index.d.mts +2 -2
- package/dist/googlePageSpeed/server/index.d.mts +1 -1
- package/dist/googlePageSpeed/server/index.mjs +1 -1
- package/dist/googleSearchIncidents/server/index.mjs +1 -1
- package/dist/greenDomain/server/index.mjs +1 -1
- package/dist/littleWarden/server/index.d.mts +1 -1
- package/dist/littleWarden/server/index.mjs +1 -1
- package/dist/lodash/index.d.mts +19 -0
- package/dist/lodash/index.mjs +73 -0
- package/dist/lumar/api/server/index.d.mts +1 -1
- package/dist/lumar/api/server/index.mjs +1 -1
- package/dist/lumar/graphql/server/index.d.mts +1 -1
- package/dist/lumar/graphql/server/index.mjs +1 -1
- package/dist/myTarget/server/index.d.mts +1 -1
- package/dist/myTarget/server/index.mjs +1 -1
- package/dist/number/index.mjs +1 -1
- package/dist/object/index.mjs +1 -1
- package/dist/onePassword/server/index.d.mts +1 -1
- package/dist/openAi/server/index.d.mts +1 -1
- package/dist/openAi/server/index.mjs +1 -1
- package/dist/prisma/index.mjs +2 -3
- package/dist/prisma/server/index.d.mts +1 -1
- package/dist/snapchat/server/index.d.mts +1 -1
- package/dist/snapchat/server/index.mjs +1 -1
- package/dist/stream/server/index.mjs +5 -1
- package/dist/string/index.mjs +3 -7
- package/dist/swr/client/index.d.mts +1 -1
- package/dist/upTimeRobot/server/index.d.mts +1 -1
- package/dist/upTimeRobot/server/index.mjs +4 -5
- package/dist/url/index.mjs +1 -1
- package/dist/url/server/index.mjs +2 -2
- package/dist/util/index.d.mts +1 -1
- package/dist/util/index.mjs +1 -1
- package/dist/xml/server/index.mjs +1 -1
- package/package.json +2 -3
- package/tsdown.config.ts +1 -0
- package/dist/chunk-CgI6uo-e.mjs +0 -32
- package/dist/from-9s4TjsYv.mjs +0 -3878
- package/dist/multipart-parser-BC14QSvI.mjs +0 -290
- package/dist/src-BeXFXTgz.mjs +0 -1272
- /package/dist/{api-DGKJDAfb.mjs → api-BlYy5Efh.mjs} +0 -0
- /package/dist/{getDecimal-CafxtLhH.mjs → getDecimal-DRv1J8WD.mjs} +0 -0
- /package/dist/{index-CFaAdPAh.d.mts → index-1SE8er2n.d.mts} +0 -0
- /package/dist/{index-DEm1Wodf.d.mts → index-BOvAlQeY.d.mts} +0 -0
- /package/dist/{index-CMfxuwL1.d.mts → index-Bfls0t50.d.mts} +0 -0
- /package/dist/{index-sfVt7tI_.d.mts → index-CN31pmsW.d.mts} +0 -0
- /package/dist/{index-B20FTOvk.d.mts → index-D1tpqoPU.d.mts} +0 -0
- /package/dist/{index-CIG08fpw.d.mts → index-Yx2783su.d.mts} +0 -0
- /package/dist/{index-B4K9Z1U-.d.mts → index-ndHDK8xQ.d.mts} +0 -0
- /package/dist/{server-Bwy4JI8Z.mjs → server-Dbl5Ic6I.mjs} +0 -0
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/dist/_class/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as BaseClass, t as BaseNamespace } from "../index-
|
|
1
|
+
import { n as BaseClass, t as BaseNamespace } from "../index-1SE8er2n.mjs";
|
|
2
2
|
export { BaseClass, BaseNamespace };
|
package/dist/_class/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { set } from "../lodash/index.mjs";
|
|
1
2
|
import { defaultTo } from "../util/index.mjs";
|
|
2
3
|
import { isServer } from "../environment/index.mjs";
|
|
3
|
-
import isArray from "lodash/isArray";
|
|
4
|
-
import set from "lodash/set";
|
|
5
4
|
|
|
6
5
|
//#region src/_class/BaseClass.ts
|
|
7
6
|
var BaseClass = class {
|
|
@@ -9,7 +8,7 @@ var BaseClass = class {
|
|
|
9
8
|
* Shortcut to set a value to an array and return the instance.
|
|
10
9
|
*/
|
|
11
10
|
_setArray = (fields, input) => {
|
|
12
|
-
if (isArray(input)) set(this, fields, input);
|
|
11
|
+
if (Array.isArray(input)) set(this, fields, input);
|
|
13
12
|
else set(this, fields, [input]);
|
|
14
13
|
return this;
|
|
15
14
|
};
|
|
@@ -25,7 +24,7 @@ var BaseClass = class {
|
|
|
25
24
|
*/
|
|
26
25
|
_push = (fields, input) => {
|
|
27
26
|
let temp = this._get(fields, []);
|
|
28
|
-
if (isArray(input)) temp = temp.concat(input);
|
|
27
|
+
if (Array.isArray(input)) temp = temp.concat(input);
|
|
29
28
|
else temp = temp.push(input);
|
|
30
29
|
set(this, fields, temp);
|
|
31
30
|
return this;
|
|
@@ -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-
|
|
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-
|
|
2
|
-
import { X as InputDate } from "../../index-
|
|
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 = {
|
package/dist/api/index.d.mts
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/api/index.mjs
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/array/index.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import isArray from "lodash/isArray";
|
|
2
|
-
|
|
3
1
|
//#region src/array/array.ts
|
|
4
2
|
/**
|
|
5
3
|
* Shorthand to check if an array or string contains a needle.
|
|
@@ -8,7 +6,7 @@ const contains = (haystack, needle) => -1 !== haystack.indexOf(needle);
|
|
|
8
6
|
/**
|
|
9
7
|
* Convert an array into an array or return if already an array.
|
|
10
8
|
*/
|
|
11
|
-
const getArray = (input) => isArray(input) ? input : [input];
|
|
9
|
+
const getArray = (input) => Array.isArray(input) ? input : [input];
|
|
12
10
|
|
|
13
11
|
//#endregion
|
|
14
12
|
export { contains, getArray };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
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-
|
|
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-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
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-
|
|
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-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
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-
|
|
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-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
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-
|
|
3
|
-
import { n as isResponse200, t as getConfig } from "../../../server-
|
|
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-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
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,11 +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-
|
|
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
|
|
8
|
-
import cloneDeep from "lodash/cloneDeep";
|
|
7
|
+
import axios from "axios";
|
|
9
8
|
|
|
10
9
|
//#region src/aws/s3/server/AwsS3Namespace.ts
|
|
11
10
|
var AwsS3Namespace = class extends BaseNamespace {
|
|
@@ -189,7 +188,7 @@ var AwsS3Namespace = class extends BaseNamespace {
|
|
|
189
188
|
};
|
|
190
189
|
readFile = async (bucket, key, options = {}) => {
|
|
191
190
|
await this.ensureInit();
|
|
192
|
-
let response =
|
|
191
|
+
let response = structuredClone(readFileDefault);
|
|
193
192
|
const today = getToday();
|
|
194
193
|
getToday(true);
|
|
195
194
|
try {
|
|
@@ -294,7 +293,7 @@ var AwsS3Namespace = class extends BaseNamespace {
|
|
|
294
293
|
*/
|
|
295
294
|
urlContents = async (bucket, key, url) => {
|
|
296
295
|
await this.ensureInit();
|
|
297
|
-
return
|
|
296
|
+
return axios(url, {
|
|
298
297
|
responseType: "arraybuffer",
|
|
299
298
|
responseEncoding: "binary"
|
|
300
299
|
}).then(async (response) => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as getConfig, r as isResponse200, t as AwsConfig } from "../../index-
|
|
1
|
+
import { n as getConfig, r as isResponse200, t as AwsConfig } from "../../index-ndHDK8xQ.mjs";
|
|
2
2
|
export { AwsConfig, getConfig, isResponse200 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as BaseClass, t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
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,6 +1,5 @@
|
|
|
1
1
|
import { BaseClass, BaseNamespace } from "../../../_class/index.mjs";
|
|
2
|
-
import { t as getConfig } from "../../../server-
|
|
3
|
-
import uniq from "lodash/uniq";
|
|
2
|
+
import { t as getConfig } from "../../../server-Dbl5Ic6I.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/aws/ses/server/AwsSesNamespace.ts
|
|
6
5
|
var AwsSesNamespace = class extends BaseNamespace {
|
|
@@ -192,7 +191,7 @@ var SimpleEmail = class extends BaseClass {
|
|
|
192
191
|
if (this._isBase64(base64Data)) return Buffer.from(base64Data, "base64").toString("utf-8");
|
|
193
192
|
return attachment.data;
|
|
194
193
|
}
|
|
195
|
-
if (attachment.url) return await (await (await import("
|
|
194
|
+
if (attachment.url) return await (await (await import("node-fetch").then((mod) => mod.default))(attachment.url)).text();
|
|
196
195
|
throw new Error(`No valid data source provided for attachment: ${attachment.filename}`);
|
|
197
196
|
};
|
|
198
197
|
_getAttachmentData = async (attachment) => {
|
|
@@ -201,7 +200,7 @@ var SimpleEmail = class extends BaseClass {
|
|
|
201
200
|
if (this._isBase64(cleanData)) return cleanData;
|
|
202
201
|
return Buffer.from(attachment.data, "utf-8").toString("base64");
|
|
203
202
|
}
|
|
204
|
-
if (attachment.url) return (await (await (await import("
|
|
203
|
+
if (attachment.url) return (await (await (await import("node-fetch").then((mod) => mod.default))(attachment.url)).buffer()).toString("base64");
|
|
205
204
|
throw new Error(`No valid data source provided for attachment: ${attachment.filename}`);
|
|
206
205
|
};
|
|
207
206
|
_isBase64 = (str) => {
|
|
@@ -250,7 +249,7 @@ var SimpleEmail = class extends BaseClass {
|
|
|
250
249
|
let response = this[field].filter((recipient) => recipient && null !== recipient);
|
|
251
250
|
response = response.map((recipient) => recipient.toLowerCase().trim());
|
|
252
251
|
response = response.filter((recipient) => "" !== recipient);
|
|
253
|
-
response =
|
|
252
|
+
response = [...new Set(response)];
|
|
254
253
|
return response;
|
|
255
254
|
};
|
|
256
255
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
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-
|
|
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-
|
|
2
|
-
import { t as AwsConfig } from "../../../index-
|
|
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-
|
|
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 {
|
package/dist/axios/index.d.mts
CHANGED
package/dist/axios/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as ApiResponseClass } from "../api-
|
|
2
|
-
import
|
|
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
|
|
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
|
|
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
|
|
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);
|
package/dist/boolean/index.mjs
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import isBoolean from "lodash/isBoolean";
|
|
2
|
-
|
|
3
1
|
//#region src/boolean/boolean.ts
|
|
4
2
|
/**
|
|
5
3
|
* Convert an input from a variety of forms into boolean.
|
|
6
4
|
*/
|
|
7
5
|
const getBoolean = (input, defaultValue = false) => {
|
|
8
|
-
if (
|
|
6
|
+
if ("boolean" === typeof input) return input;
|
|
9
7
|
else if ("string" === typeof input) return "true" === input || "1" === input || "yes" === input || "y" === input;
|
|
10
8
|
else if ("number" === typeof input) return 1 === input;
|
|
11
9
|
return defaultValue;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as ApiResponseClass } from "../../../index-
|
|
2
|
-
import { t as Auth } from "../../../index-
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import { n as getCustomerId, r as getZone, t as Auth } from "../../index-
|
|
1
|
+
import { n as getCustomerId, r as getZone, t as Auth } from "../../index-CN31pmsW.mjs";
|
|
2
2
|
export { Auth, getCustomerId, getZone };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sleep } from "../../../util/index.mjs";
|
|
2
|
-
import { s as apiState } from "../../../api-
|
|
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
|
package/dist/date/index.d.mts
CHANGED
|
@@ -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-
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { t as BaseNamespace } from "../../../index-
|
|
2
|
-
import { t as GoogleCloudConfig } from "../../../index-
|
|
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-
|
|
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-
|
|
2
|
-
import { t as GoogleCloudConfig } from "../../../index-
|
|
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-
|
|
2
|
-
import { t as GoogleCloudConfig } from "../../../index-
|
|
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";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/lodash/set.d.ts
|
|
2
|
+
declare const set: <T extends object>(obj: T, path: string | string[], value: unknown) => T;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/lodash/trim.d.ts
|
|
5
|
+
declare const trim: (str: string, chars?: string) => string;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/lodash/isDate.d.ts
|
|
8
|
+
declare const isDate: (value: unknown) => value is Date;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/lodash/isObject.d.ts
|
|
11
|
+
declare const isObject: (value: unknown) => value is object;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/lodash/merge.d.ts
|
|
14
|
+
declare const merge: <T extends object>(target: T, ...sources: any[]) => T;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/lodash/unescape.d.ts
|
|
17
|
+
declare const unescape: (str: string) => string;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { isDate, isObject, merge, set, trim, unescape };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
//#region src/lodash/set.ts
|
|
2
|
+
const set = (obj, path, value) => {
|
|
3
|
+
if (obj == null) return obj;
|
|
4
|
+
const keys = Array.isArray(path) ? path : path.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
5
|
+
let current = obj;
|
|
6
|
+
for (let i = 0; i < keys.length - 1; i++) {
|
|
7
|
+
const key = keys[i];
|
|
8
|
+
const nextKey = keys[i + 1];
|
|
9
|
+
const nextIsIndex = /^\d+$/.test(nextKey);
|
|
10
|
+
if (current[key] == null || typeof current[key] !== "object") current[key] = nextIsIndex ? [] : {};
|
|
11
|
+
current = current[key];
|
|
12
|
+
}
|
|
13
|
+
current[keys[keys.length - 1]] = value;
|
|
14
|
+
return obj;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/lodash/trim.ts
|
|
19
|
+
const trim = (str, chars) => {
|
|
20
|
+
if (!chars) return str.trim();
|
|
21
|
+
const escaped = chars.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
22
|
+
const pattern = new RegExp(`^[${escaped}]+|[${escaped}]+$`, "g");
|
|
23
|
+
return str.replace(pattern, "");
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
//#region src/lodash/isDate.ts
|
|
28
|
+
const isDate = (value) => {
|
|
29
|
+
return value instanceof Date && !isNaN(value.getTime());
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/lodash/isObject.ts
|
|
34
|
+
const isObject = (value) => {
|
|
35
|
+
const type = typeof value;
|
|
36
|
+
return value != null && (type === "object" || type === "function");
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/lodash/merge.ts
|
|
41
|
+
const merge = (target, ...sources) => {
|
|
42
|
+
for (const source of sources) {
|
|
43
|
+
if (source == null) continue;
|
|
44
|
+
for (const key of Object.keys(source)) {
|
|
45
|
+
const sourceVal = source[key];
|
|
46
|
+
const targetVal = target[key];
|
|
47
|
+
if (Array.isArray(sourceVal) && Array.isArray(targetVal)) {
|
|
48
|
+
const merged = [...targetVal];
|
|
49
|
+
for (let i = 0; i < sourceVal.length; i++) if (sourceVal[i] != null && typeof sourceVal[i] === "object") merged[i] = merge(targetVal[i] ?? {}, sourceVal[i]);
|
|
50
|
+
else merged[i] = sourceVal[i];
|
|
51
|
+
target[key] = merged;
|
|
52
|
+
} else if (sourceVal != null && typeof sourceVal === "object" && !Array.isArray(sourceVal) && !(sourceVal instanceof Date)) target[key] = merge(targetVal != null && typeof targetVal === "object" ? targetVal : {}, sourceVal);
|
|
53
|
+
else if (sourceVal !== void 0) target[key] = sourceVal;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return target;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/lodash/unescape.ts
|
|
61
|
+
const unescape = (str) => {
|
|
62
|
+
const htmlEntities = {
|
|
63
|
+
"&": "&",
|
|
64
|
+
"<": "<",
|
|
65
|
+
">": ">",
|
|
66
|
+
""": "\"",
|
|
67
|
+
"'": "'"
|
|
68
|
+
};
|
|
69
|
+
return str.replace(/&(?:amp|lt|gt|quot|#39);/g, (match) => htmlEntities[match]);
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
//#endregion
|
|
73
|
+
export { isDate, isObject, merge, set, trim, unescape };
|