@prosopo/detector 3.0.3 → 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/CHANGELOG.md +177 -0
- package/dist/cjs/index.cjs +3043 -0
- package/dist/index.js +3044 -15
- package/package.json +8 -11
- package/vite.cjs.config.ts +1 -0
- package/vite.esm.config.ts +5 -1
- package/dist/index.d.ts +0 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/detector",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"engines": {
|
|
@@ -16,12 +16,13 @@
|
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
|
|
19
|
-
"build": "
|
|
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": "
|
|
22
|
-
"typecheck": "
|
|
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"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
+
"@types/node": "22.10.2",
|
|
25
26
|
"@vitest/coverage-v8": "3.0.9",
|
|
26
27
|
"concurrently": "9.0.1",
|
|
27
28
|
"del-cli": "6.0.0",
|
|
@@ -34,12 +35,8 @@
|
|
|
34
35
|
},
|
|
35
36
|
"type": "module",
|
|
36
37
|
"dependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"express": "4.21.2",
|
|
41
|
-
"openpgp": "5.11.3",
|
|
42
|
-
"webpack-dev-server": "5.2.2",
|
|
43
|
-
"@prosopo/config": "3.1.3"
|
|
38
|
+
"@prosopo/config": "3.1.20",
|
|
39
|
+
"@prosopo/types": "3.5.3",
|
|
40
|
+
"dotenv": "16.4.5"
|
|
44
41
|
}
|
|
45
42
|
}
|
package/vite.cjs.config.ts
CHANGED
package/vite.esm.config.ts
CHANGED
|
@@ -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(
|
|
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
|