@prosopo/cli 3.7.14 → 3.7.15
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/.turbo/turbo-build$colon$cjs.log +2 -2
- package/.turbo/turbo-build$colon$tsc.log +28 -28
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +7 -0
- package/dist/bundle/index.linux-x64-gnu.node +0 -0
- package/dist/bundle/provider.cli.bundle.js +6976 -7054
- package/package.json +3 -3
- package/vite.config.ts +20 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/cli",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.15",
|
|
4
4
|
"description": "CLI for Prosopo Provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@prosopo/env": "3.6.33",
|
|
43
43
|
"@prosopo/keyring": "2.9.72",
|
|
44
44
|
"@prosopo/locale": "3.3.0",
|
|
45
|
-
"@prosopo/provider": "5.3.
|
|
45
|
+
"@prosopo/provider": "5.3.1",
|
|
46
46
|
"@prosopo/types": "5.2.1",
|
|
47
47
|
"@prosopo/util": "3.3.6",
|
|
48
48
|
"@prosopo/workspace": "3.2.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"zod": "3.23.8"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@prosopo/config": "3.3.
|
|
55
|
+
"@prosopo/config": "3.3.10",
|
|
56
56
|
"@polkadot-api/substrate-client": "0.1.4",
|
|
57
57
|
"@types/cors": "2.8.17",
|
|
58
58
|
"@types/node": "22.10.2",
|
package/vite.config.ts
CHANGED
|
@@ -11,8 +11,12 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
+
import { createRequire } from "node:module";
|
|
14
15
|
import * as path from "node:path";
|
|
15
|
-
import {
|
|
16
|
+
import {
|
|
17
|
+
ViteBackendConfig,
|
|
18
|
+
nodejsPolarsNativeFilePlugin,
|
|
19
|
+
} from "@prosopo/config";
|
|
16
20
|
import { loadEnv } from "@prosopo/dotenv";
|
|
17
21
|
import { defineConfig } from "vite";
|
|
18
22
|
import { version } from "./package.json";
|
|
@@ -29,6 +33,17 @@ const packageVersion = version;
|
|
|
29
33
|
|
|
30
34
|
process.env.TS_NODE_PROJECT = path.resolve("./tsconfig.json");
|
|
31
35
|
|
|
36
|
+
// Rust napi modules under packages/native-* each ship a single .node binary
|
|
37
|
+
// for the linux-x64 target (the only platform the provider runs on). Resolve
|
|
38
|
+
// their absolute paths so nodejsPolarsNativeFilePlugin can copy them into
|
|
39
|
+
// dist/bundle at bundle time.
|
|
40
|
+
const nativeBinaryPaths = [
|
|
41
|
+
createRequire(import.meta.url).resolve(
|
|
42
|
+
"@prosopo/native-ja4/index.linux-x64-gnu.node",
|
|
43
|
+
),
|
|
44
|
+
];
|
|
45
|
+
const bundleOutDir = path.resolve(dir, "dist/bundle");
|
|
46
|
+
|
|
32
47
|
// Merge with generic backend config
|
|
33
48
|
export default defineConfig(async ({ command, mode }) => {
|
|
34
49
|
const backendConfig = await ViteBackendConfig(
|
|
@@ -40,6 +55,10 @@ export default defineConfig(async ({ command, mode }) => {
|
|
|
40
55
|
command,
|
|
41
56
|
mode,
|
|
42
57
|
);
|
|
58
|
+
backendConfig.plugins = [
|
|
59
|
+
...(backendConfig.plugins ?? []),
|
|
60
|
+
nodejsPolarsNativeFilePlugin(nativeBinaryPaths, bundleOutDir),
|
|
61
|
+
];
|
|
43
62
|
return defineConfig({
|
|
44
63
|
ssr: {
|
|
45
64
|
external: [
|