@trustsig/types 1.1.5 → 1.1.11

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 ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/index.ts
17
+ var index_exports = {};
18
+ module.exports = __toCommonJS(index_exports);
@@ -0,0 +1,22 @@
1
+ interface TrustSigOptions {
2
+ secretKey: string;
3
+ endpoint?: string;
4
+ }
5
+ interface BotAnalysisResponse {
6
+ is_bot: boolean;
7
+ score: number;
8
+ action: string;
9
+ request_id: string;
10
+ factors: string[];
11
+ evidence: Record<string, any>;
12
+ site_key: string;
13
+ }
14
+ declare global {
15
+ interface Window {
16
+ TrustSig: {
17
+ getResponse: () => Promise<string | null>;
18
+ };
19
+ }
20
+ }
21
+
22
+ export type { BotAnalysisResponse, TrustSigOptions };
@@ -0,0 +1,22 @@
1
+ interface TrustSigOptions {
2
+ secretKey: string;
3
+ endpoint?: string;
4
+ }
5
+ interface BotAnalysisResponse {
6
+ is_bot: boolean;
7
+ score: number;
8
+ action: string;
9
+ request_id: string;
10
+ factors: string[];
11
+ evidence: Record<string, any>;
12
+ site_key: string;
13
+ }
14
+ declare global {
15
+ interface Window {
16
+ TrustSig: {
17
+ getResponse: () => Promise<string | null>;
18
+ };
19
+ }
20
+ }
21
+
22
+ export type { BotAnalysisResponse, TrustSigOptions };
package/dist/index.js ADDED
File without changes
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@trustsig/types",
3
- "version": "1.1.5",
3
+ "version": "1.1.11",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
8
11
  "exports": {
9
12
  ".": {
10
13
  "types": "./dist/index.d.ts",
@@ -16,4 +19,4 @@
16
19
  "scripts": {
17
20
  "build": "tsup"
18
21
  }
19
- }
22
+ }
package/src/index.ts DELETED
@@ -1,22 +0,0 @@
1
- export interface TrustSigOptions {
2
- secretKey: string;
3
- endpoint?: string;
4
- }
5
-
6
- export interface BotAnalysisResponse {
7
- is_bot: boolean;
8
- score: number;
9
- action: string;
10
- request_id: string;
11
- factors: string[];
12
- evidence: Record<string, any>;
13
- site_key: string;
14
- }
15
-
16
- declare global {
17
- interface Window {
18
- TrustSig: {
19
- getResponse: () => Promise<string | null>;
20
- };
21
- }
22
- }
package/tsup.config.ts DELETED
@@ -1,2 +0,0 @@
1
- import { defineConfig } from 'tsup';
2
- export default defineConfig({ entry: ['src/index.ts'], format: ['cjs', 'esm'], dts: true, clean: true });