@8ms/helpers 2.4.7 → 2.4.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.
- package/dist/adverity/server/index.mjs +1 -1
- package/dist/api/index.mjs +3 -3
- package/dist/aws/s3/server/index.mjs +1 -1
- package/dist/brightData/serpApi/server/index.mjs +2 -2
- package/dist/brightData/webScraperIde/server/index.mjs +2 -2
- package/dist/eskimi/server/index.mjs +1 -1
- package/dist/{get-B9XztVOu.mjs → get-fmxmkk1P.mjs} +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.mjs +1 -1
- package/dist/lumar/api/server/index.mjs +2 -2
- package/dist/lumar/graphql/server/index.mjs +1 -1
- package/dist/myTarget/server/index.mjs +1 -1
- package/dist/openAi/server/index.mjs +1 -1
- package/dist/{post-DiwZvONk.mjs → post-DLC6iSd9.mjs} +1 -1
- package/dist/snapchat/server/index.mjs +1 -1
- package/dist/upTimeRobot/server/index.mjs +1 -1
- package/dist/url/server/index.mjs +1 -1
- package/dist/xml/server/index.mjs +1 -1
- package/package.json +1 -1
package/dist/api/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { i as ApiResponseClass, n as defaultResponse, r as unexpectedError, t as apiState } from "../api-BJgcoGmU.mjs";
|
|
2
|
-
import { t as get } from "../get-
|
|
3
|
-
import { t as post } from "../post-
|
|
4
|
-
import ky from "ky";
|
|
2
|
+
import { t as get } from "../get-fmxmkk1P.mjs";
|
|
3
|
+
import { t as post } from "../post-DLC6iSd9.mjs";
|
|
5
4
|
//#region src/api/deleteRequest.ts
|
|
6
5
|
/**
|
|
7
6
|
* Make a DELETE request.
|
|
8
7
|
* Can't use the function name delete as it's reserved
|
|
9
8
|
*/
|
|
10
9
|
const deleteRequest = async (url, config = {}) => {
|
|
10
|
+
const { default: ky } = await import("ky");
|
|
11
11
|
return await ky.delete(url, {
|
|
12
12
|
throwHttpErrors: false,
|
|
13
13
|
...config
|
|
@@ -4,7 +4,6 @@ import { getFolder, getStringFromStream } from "../../../string/index.mjs";
|
|
|
4
4
|
import { n as isResponse200, t as getConfig } from "../../../server-CCX9gh5k.mjs";
|
|
5
5
|
import { getBrotliCompressed, getBrotliDecompressed, getGzipCompressed, getGzipDecompressed } from "../../../util/server/index.mjs";
|
|
6
6
|
import { z } from "zod/v4";
|
|
7
|
-
import ky from "ky";
|
|
8
7
|
//#region src/aws/s3/server/AwsS3Namespace.ts
|
|
9
8
|
var AwsS3Namespace = class extends BaseNamespace {
|
|
10
9
|
ensureInit = async () => {
|
|
@@ -289,6 +288,7 @@ var AwsS3Namespace = class extends BaseNamespace {
|
|
|
289
288
|
*/
|
|
290
289
|
urlContents = async (bucket, key, url) => {
|
|
291
290
|
await this.ensureInit();
|
|
291
|
+
const { default: ky } = await import("ky");
|
|
292
292
|
const response = await ky.get(url);
|
|
293
293
|
const arrayBuffer = await response.arrayBuffer();
|
|
294
294
|
const data = Buffer.from(arrayBuffer);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as ApiResponseClass } from "../../../api-BJgcoGmU.mjs";
|
|
2
|
-
import { t as get } from "../../../get-
|
|
3
|
-
import { t as post } from "../../../post-
|
|
2
|
+
import { t as get } from "../../../get-fmxmkk1P.mjs";
|
|
3
|
+
import { t as post } from "../../../post-DLC6iSd9.mjs";
|
|
4
4
|
import "../../../api/index.mjs";
|
|
5
5
|
import { getCustomerId, getZone } from "../../server/index.mjs";
|
|
6
6
|
//#region src/brightData/serpApi/server/brightDataSerpApi.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sleep } from "../../../util/index.mjs";
|
|
2
2
|
import { t as apiState } from "../../../api-BJgcoGmU.mjs";
|
|
3
|
-
import { t as get } from "../../../get-
|
|
4
|
-
import { t as post } from "../../../post-
|
|
3
|
+
import { t as get } from "../../../get-fmxmkk1P.mjs";
|
|
4
|
+
import { t as post } from "../../../post-DLC6iSd9.mjs";
|
|
5
5
|
//#region src/brightData/webScraperIde/server/getBatch.ts
|
|
6
6
|
/**
|
|
7
7
|
* Depends on the Scraper setup!
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as ApiResponseClass } from "./api-BJgcoGmU.mjs";
|
|
2
|
-
import ky from "ky";
|
|
3
2
|
//#region src/api/get.ts
|
|
4
3
|
/**
|
|
5
4
|
* Make a GET request.
|
|
6
5
|
*/
|
|
7
6
|
const get = async (url, config = {}) => {
|
|
7
|
+
const { default: ky } = await import("ky");
|
|
8
8
|
return await ky.get(url, {
|
|
9
9
|
throwHttpErrors: false,
|
|
10
10
|
...config
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/index.mjs";
|
|
2
|
-
import { t as get } from "../../get-
|
|
2
|
+
import { t as get } from "../../get-fmxmkk1P.mjs";
|
|
3
3
|
import { onePasswordClient } from "../../onePassword/server/index.mjs";
|
|
4
4
|
//#region src/googlePageSpeed/server/GooglePageSpeedNamespace.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/index.mjs";
|
|
2
|
-
import { t as get } from "../../get-
|
|
2
|
+
import { t as get } from "../../get-fmxmkk1P.mjs";
|
|
3
3
|
import { onePasswordClient } from "../../onePassword/server/index.mjs";
|
|
4
4
|
//#region src/littleWarden/server/LittleWardenNamespace.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as get } from "../../../get-
|
|
2
|
-
import { t as post } from "../../../post-
|
|
1
|
+
import { t as get } from "../../../get-fmxmkk1P.mjs";
|
|
2
|
+
import { t as post } from "../../../post-DLC6iSd9.mjs";
|
|
3
3
|
//#region src/lumar/api/server/lumarApi.ts
|
|
4
4
|
const operand = {
|
|
5
5
|
EQUALS: "eql",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/index.mjs";
|
|
2
|
-
import { t as post } from "../../post-
|
|
2
|
+
import { t as post } from "../../post-DLC6iSd9.mjs";
|
|
3
3
|
import { onePasswordClient } from "../../onePassword/server/index.mjs";
|
|
4
4
|
//#region src/openAi/server/OpenAiNamespace.ts
|
|
5
5
|
var OpenAiNamespace = class extends BaseNamespace {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as ApiResponseClass } from "./api-BJgcoGmU.mjs";
|
|
2
|
-
import ky from "ky";
|
|
3
2
|
//#region src/api/post.ts
|
|
4
3
|
/**
|
|
5
4
|
* Make a POST request.
|
|
6
5
|
*/
|
|
7
6
|
const post = async (url, data = {}, config = {}) => {
|
|
7
|
+
const { default: ky } = await import("ky");
|
|
8
8
|
return await ky.post(url, {
|
|
9
9
|
throwHttpErrors: false,
|
|
10
10
|
json: data,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/index.mjs";
|
|
2
|
-
import { t as post } from "../../post-
|
|
2
|
+
import { t as post } from "../../post-DLC6iSd9.mjs";
|
|
3
3
|
import { onePasswordClient } from "../../onePassword/server/index.mjs";
|
|
4
4
|
import { DateTime } from "luxon";
|
|
5
5
|
//#region src/snapchat/server/SnapchatNamespace.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseNamespace } from "../../_class/index.mjs";
|
|
2
|
-
import { t as post } from "../../post-
|
|
2
|
+
import { t as post } from "../../post-DLC6iSd9.mjs";
|
|
3
3
|
import { onePasswordClient } from "../../onePassword/server/index.mjs";
|
|
4
4
|
//#region src/upTimeRobot/server/UpTimeRobotNamespace.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createDirectory } from "../../file/server/index.mjs";
|
|
2
|
-
import ky from "ky";
|
|
3
2
|
import { Readable } from "stream";
|
|
4
3
|
//#region src/url/server/writeUrlContents.ts
|
|
5
4
|
/**
|
|
@@ -8,6 +7,7 @@ import { Readable } from "stream";
|
|
|
8
7
|
* Requires fs-extra
|
|
9
8
|
*/
|
|
10
9
|
const writeUrlContents = async (filePath, url) => {
|
|
10
|
+
const { default: ky } = await import("ky");
|
|
11
11
|
const fs = await import("fs-extra");
|
|
12
12
|
await createDirectory(filePath);
|
|
13
13
|
const writer = fs.createWriteStream(filePath);
|