@8ms/helpers 2.3.34 → 2.3.36

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.
@@ -1,5 +1,5 @@
1
- import { u as ApiResponseClass } from "../../../api-DGKJDAfb.mjs";
2
1
  import { BaseNamespace } from "../../../_class/index.mjs";
2
+ import { u as ApiResponseClass } from "../../../api-DGKJDAfb.mjs";
3
3
  import { n as isResponse200, t as getConfig } from "../../../server-Bwy4JI8Z.mjs";
4
4
 
5
5
  //#region src/aws/lambda/server/AwsLambdaNamespace.ts
@@ -1,28 +1,28 @@
1
- //#region src/crypto/getDecrypt.d.ts
1
+ //#region src/crypto/server/getDecrypt.d.ts
2
2
  /**
3
3
  * Decrypt an encoding string using a salt.
4
4
  */
5
5
  declare const getDecrypt: (appSalt: string, input: string, salt: string) => string;
6
6
  //#endregion
7
- //#region src/crypto/getEncrypt.d.ts
7
+ //#region src/crypto/server/getEncrypt.d.ts
8
8
  /**
9
9
  * Encrypt an encoding string using a salt.
10
10
  */
11
11
  declare const getEncrypt: (appSalt: string, input: string, salt: string) => string;
12
12
  //#endregion
13
- //#region src/crypto/getMd5.d.ts
13
+ //#region src/crypto/server/getMd5.d.ts
14
14
  /**
15
15
  * Encrypt a string using md5.
16
16
  */
17
17
  declare const getMd5: (input: any) => string;
18
18
  //#endregion
19
- //#region src/crypto/getRandom.d.ts
19
+ //#region src/crypto/server/getRandom.d.ts
20
20
  /**
21
21
  * Create a random string and return a number of characters from it.
22
22
  */
23
23
  declare const getRandom: (length: number) => string;
24
24
  //#endregion
25
- //#region src/crypto/getSha256.d.ts
25
+ //#region src/crypto/server/getSha256.d.ts
26
26
  /**
27
27
  * Encrypt a string using sha256.
28
28
  */
@@ -1,7 +1,7 @@
1
- import { t as __require } from "../chunk-DDarj8oW.mjs";
2
- import { getString } from "../string/index.mjs";
1
+ import { t as __require } from "../../chunk-DDarj8oW.mjs";
2
+ import { getString } from "../../string/index.mjs";
3
3
 
4
- //#region src/crypto/getDecrypt.ts
4
+ //#region src/crypto/server/getDecrypt.ts
5
5
  /**
6
6
  * Decrypt an encoding string using a salt.
7
7
  */
@@ -18,7 +18,7 @@ const getDecrypt = (appSalt, input, salt) => {
18
18
  };
19
19
 
20
20
  //#endregion
21
- //#region src/crypto/getEncrypt.ts
21
+ //#region src/crypto/server/getEncrypt.ts
22
22
  /**
23
23
  * Encrypt an encoding string using a salt.
24
24
  */
@@ -34,7 +34,7 @@ const getEncrypt = (appSalt, input, salt) => {
34
34
  };
35
35
 
36
36
  //#endregion
37
- //#region src/crypto/getMd5.ts
37
+ //#region src/crypto/server/getMd5.ts
38
38
  /**
39
39
  * Encrypt a string using md5.
40
40
  */
@@ -45,7 +45,7 @@ const getMd5 = (input) => {
45
45
  };
46
46
 
47
47
  //#endregion
48
- //#region src/crypto/getRandom.ts
48
+ //#region src/crypto/server/getRandom.ts
49
49
  /**
50
50
  * Create a random string and return a number of characters from it.
51
51
  */
@@ -54,7 +54,7 @@ const getRandom = (length) => {
54
54
  };
55
55
 
56
56
  //#endregion
57
- //#region src/crypto/getSha256.ts
57
+ //#region src/crypto/server/getSha256.ts
58
58
  /**
59
59
  * Encrypt a string using sha256.
60
60
  */
@@ -1,6 +1,6 @@
1
+ import { BaseNamespace } from "../../_class/index.mjs";
1
2
  import "../../api-DGKJDAfb.mjs";
2
3
  import { get } from "../../axios/index.mjs";
3
- import { BaseNamespace } from "../../_class/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
 
6
6
  //#region src/googlePageSpeed/server/GooglePageSpeedNamespace.ts
@@ -1,6 +1,6 @@
1
+ import { BaseNamespace } from "../../_class/index.mjs";
1
2
  import "../../api-DGKJDAfb.mjs";
2
3
  import { get } from "../../axios/index.mjs";
3
- import { BaseNamespace } from "../../_class/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
 
6
6
  //#region src/littleWarden/server/LittleWardenNamespace.ts
@@ -1,6 +1,6 @@
1
+ import { BaseNamespace } from "../../_class/index.mjs";
1
2
  import "../../api-DGKJDAfb.mjs";
2
3
  import { post } from "../../axios/index.mjs";
3
- import { BaseNamespace } from "../../_class/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
 
6
6
  //#region src/openAi/server/OpenAiNamespace.ts
@@ -1,6 +1,6 @@
1
+ import { BaseNamespace } from "../../_class/index.mjs";
1
2
  import "../../api-DGKJDAfb.mjs";
2
3
  import { post } from "../../axios/index.mjs";
3
- import { BaseNamespace } from "../../_class/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
  import { DateTime } from "luxon";
6
6
 
@@ -1,3 +1,5 @@
1
+ import { c as ApiState } from "../../index-DW9yJLtI.mjs";
2
+
1
3
  //#region src/swr/client/swr.d.ts
2
4
  type Swr = {
3
5
  data: any;
@@ -13,7 +15,7 @@ type SwrResponse<TData = unknown> = {
13
15
  data: object;
14
16
  url: string;
15
17
  };
16
- state?: unknown;
18
+ state?: ApiState;
17
19
  swrMutate: unknown;
18
20
  };
19
21
  /**
@@ -1,6 +1,6 @@
1
+ import { BaseNamespace } from "../../_class/index.mjs";
1
2
  import "../../api-DGKJDAfb.mjs";
2
3
  import { post } from "../../axios/index.mjs";
3
- import { BaseNamespace } from "../../_class/index.mjs";
4
4
  import { onePasswordClient } from "../../onePassword/server/index.mjs";
5
5
 
6
6
  //#region src/upTimeRobot/server/UpTimeRobotNamespace.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8ms/helpers",
3
3
  "license": "UNLICENSED",
4
- "version": "2.3.34",
4
+ "version": "2.3.36",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
@@ -214,7 +214,7 @@
214
214
  "./brightData/webScraperIde/server": "./dist/brightData/webScraperIde/server/index.mjs",
215
215
  "./cache/server": "./dist/cache/server/index.mjs",
216
216
  "./crud": "./dist/crud/index.mjs",
217
- "./crypto": "./dist/crypto/index.mjs",
217
+ "./crypto/server": "./dist/crypto/server/index.mjs",
218
218
  "./date": "./dist/date/index.mjs",
219
219
  "./drizzle/server": "./dist/drizzle/server/index.mjs",
220
220
  "./environment": "./dist/environment/index.mjs",