@trustsig/types 1.1.11 → 1.2.0

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/index.cjs CHANGED
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
6
10
  var __copyProps = (to, from, except, desc) => {
7
11
  if (from && typeof from === "object" || typeof from === "function") {
8
12
  for (let key of __getOwnPropNames(from))
@@ -15,4 +19,17 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
15
19
 
16
20
  // src/index.ts
17
21
  var index_exports = {};
22
+ __export(index_exports, {
23
+ TrustSigEnv: () => TrustSigEnv
24
+ });
18
25
  module.exports = __toCommonJS(index_exports);
26
+ var TrustSigEnv = /* @__PURE__ */ ((TrustSigEnv2) => {
27
+ TrustSigEnv2["PROD"] = "PROD";
28
+ TrustSigEnv2["DEMO"] = "DEMO";
29
+ TrustSigEnv2["DEV"] = "DEV";
30
+ return TrustSigEnv2;
31
+ })(TrustSigEnv || {});
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ TrustSigEnv
35
+ });
package/dist/index.d.cts CHANGED
@@ -1,6 +1,12 @@
1
+ declare enum TrustSigEnv {
2
+ PROD = "PROD",
3
+ DEMO = "DEMO",
4
+ DEV = "DEV"
5
+ }
1
6
  interface TrustSigOptions {
2
7
  secretKey: string;
3
8
  endpoint?: string;
9
+ env?: TrustSigEnv;
4
10
  }
5
11
  interface BotAnalysisResponse {
6
12
  is_bot: boolean;
@@ -15,8 +21,9 @@ declare global {
15
21
  interface Window {
16
22
  TrustSig: {
17
23
  getResponse: () => Promise<string | null>;
24
+ setCustomData: (data: Record<string, any>) => void;
18
25
  };
19
26
  }
20
27
  }
21
28
 
22
- export type { BotAnalysisResponse, TrustSigOptions };
29
+ export { type BotAnalysisResponse, TrustSigEnv, type TrustSigOptions };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,12 @@
1
+ declare enum TrustSigEnv {
2
+ PROD = "PROD",
3
+ DEMO = "DEMO",
4
+ DEV = "DEV"
5
+ }
1
6
  interface TrustSigOptions {
2
7
  secretKey: string;
3
8
  endpoint?: string;
9
+ env?: TrustSigEnv;
4
10
  }
5
11
  interface BotAnalysisResponse {
6
12
  is_bot: boolean;
@@ -15,8 +21,9 @@ declare global {
15
21
  interface Window {
16
22
  TrustSig: {
17
23
  getResponse: () => Promise<string | null>;
24
+ setCustomData: (data: Record<string, any>) => void;
18
25
  };
19
26
  }
20
27
  }
21
28
 
22
- export type { BotAnalysisResponse, TrustSigOptions };
29
+ export { type BotAnalysisResponse, TrustSigEnv, type TrustSigOptions };
package/dist/index.js CHANGED
@@ -0,0 +1,10 @@
1
+ // src/index.ts
2
+ var TrustSigEnv = /* @__PURE__ */ ((TrustSigEnv2) => {
3
+ TrustSigEnv2["PROD"] = "PROD";
4
+ TrustSigEnv2["DEMO"] = "DEMO";
5
+ TrustSigEnv2["DEV"] = "DEV";
6
+ return TrustSigEnv2;
7
+ })(TrustSigEnv || {});
8
+ export {
9
+ TrustSigEnv
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustsig/types",
3
- "version": "1.1.11",
3
+ "version": "1.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",