@prosopo/detector 3.0.2 → 3.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/detector",
3
- "version": "3.0.2",
3
+ "version": "3.3.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "engines": {
@@ -16,13 +16,13 @@
16
16
  },
17
17
  "scripts": {
18
18
  "clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
19
- "build": "npm run clean && cp -r src dist",
19
+ "build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
20
20
  "build:tsc": "tsc --build --verbose",
21
- "build:cjs": "npm run build",
22
- "typecheck": "echo no typecheck",
23
- "test": "echo no tests"
21
+ "build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
22
+ "typecheck": "tsc --project tsconfig.types.json"
24
23
  },
25
24
  "devDependencies": {
25
+ "@types/node": "22.10.2",
26
26
  "@vitest/coverage-v8": "3.0.9",
27
27
  "concurrently": "9.0.1",
28
28
  "del-cli": "6.0.0",
@@ -35,12 +35,8 @@
35
35
  },
36
36
  "type": "module",
37
37
  "dependencies": {
38
- "@typegoose/auto-increment": "4.13.0",
39
- "axios": "1.10.0",
40
- "esbuild": "0.25.6",
41
- "express": "4.21.2",
42
- "openpgp": "5.11.3",
43
- "webpack-dev-server": "5.2.2",
44
- "@prosopo/config": "3.1.2"
38
+ "@prosopo/config": "3.1.20",
39
+ "@prosopo/types": "3.5.3",
40
+ "dotenv": "16.4.5"
45
41
  }
46
42
  }
@@ -18,5 +18,6 @@ export default function () {
18
18
  return ViteCommonJSConfig(
19
19
  path.basename("."),
20
20
  path.resolve("./tsconfig.json"),
21
+ "src/index.js",
21
22
  );
22
23
  }
@@ -16,5 +16,9 @@ import path from "node:path";
16
16
  import { ViteEsmConfig } from "@prosopo/config";
17
17
 
18
18
  export default function () {
19
- return ViteEsmConfig(path.basename("."), path.resolve("./tsconfig.json"));
19
+ return ViteEsmConfig(
20
+ path.basename("."),
21
+ path.resolve("./tsconfig.json"),
22
+ "src/index.js",
23
+ );
20
24
  }
package/dist/index.d.ts DELETED
@@ -1,18 +0,0 @@
1
- // Copyright 2021-2025 Prosopo (UK) Ltd.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- export function detect(): Promise<{
16
- token: string;
17
- }>;
18
- //# sourceMappingURL=index.d.ts.map