@webmasterzotov/contracts 1.0.22 → 1.0.23

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.
@@ -0,0 +1,4 @@
1
+ export declare const PROTO_PATHS: {
2
+ readonly AUTH: string;
3
+ readonly ACCOUNT: string;
4
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PROTO_PATHS = void 0;
7
+ const node_path_1 = __importDefault(require("node:path"));
8
+ // Compiled to dist/proto/paths.js, so proto files are at ../../proto
9
+ const protoDir = node_path_1.default.join(__dirname, '..', '..', 'proto');
10
+ exports.PROTO_PATHS = {
11
+ AUTH: node_path_1.default.join(protoDir, 'auth.proto'),
12
+ ACCOUNT: node_path_1.default.join(protoDir, 'account.proto')
13
+ };
package/package.json CHANGED
@@ -1,51 +1,57 @@
1
- {
2
- "name": "@webmasterzotov/contracts",
3
- "version": "1.0.22",
4
- "description": "Protobuf definitions and generated TS types",
5
- "main": "./dist/gen/auth.js",
6
- "types": "./gen/auth.ts",
7
- "scripts": {
8
- "build": "tsc -p tsconfig.build.json",
9
- "prepublishOnly": "npm run build",
10
- "generate": "npx protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit,importSuffix=.js"
11
- },
12
- "files": [
13
- "dist",
14
- "gen",
15
- "proto"
16
- ],
17
- "exports": {
18
- "./gen/account": {
19
- "types": "./gen/account.ts",
20
- "require": "./dist/gen/account.js",
21
- "import": "./dist/gen/account.js",
22
- "default": "./dist/gen/account.js"
23
- },
24
- "./gen/auth": {
25
- "types": "./gen/auth.ts",
26
- "require": "./dist/gen/auth.js",
27
- "import": "./dist/gen/auth.js",
28
- "default": "./dist/gen/auth.js"
29
- },
30
- "./gen/google/protobuf/empty": {
31
- "types": "./gen/google/protobuf/empty.ts",
32
- "require": "./dist/gen/google/protobuf/empty.js",
33
- "import": "./dist/gen/google/protobuf/empty.js",
34
- "default": "./dist/gen/google/protobuf/empty.js"
35
- }
36
- },
37
- "publishConfig": {
38
- "access": "public"
39
- },
40
- "author": "webmasterzotov",
41
- "license": "ISC",
42
- "dependencies": {
43
- "@nestjs/microservices": "^11.1.11",
44
- "rxjs": "^7.8.2"
45
- },
46
- "devDependencies": {
47
- "@types/node": "^25.0.10",
48
- "ts-proto": "^2.10.1",
49
- "typescript": "^5.9.3"
50
- }
51
- }
1
+ {
2
+ "name": "@webmasterzotov/contracts",
3
+ "version": "1.0.23",
4
+ "description": "Protobuf definitions and generated TS types",
5
+ "main": "./dist/gen/auth.js",
6
+ "types": "./gen/auth.ts",
7
+ "scripts": {
8
+ "build": "tsc -p tsconfig.build.json",
9
+ "prepublishOnly": "npm run build",
10
+ "generate": "npx protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit,importSuffix=.js"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "gen",
15
+ "proto"
16
+ ],
17
+ "exports": {
18
+ "./gen/account": {
19
+ "types": "./gen/account.ts",
20
+ "require": "./dist/gen/account.js",
21
+ "import": "./dist/gen/account.js",
22
+ "default": "./dist/gen/account.js"
23
+ },
24
+ "./gen/auth": {
25
+ "types": "./gen/auth.ts",
26
+ "require": "./dist/gen/auth.js",
27
+ "import": "./dist/gen/auth.js",
28
+ "default": "./dist/gen/auth.js"
29
+ },
30
+ "./gen/google/protobuf/empty": {
31
+ "types": "./gen/google/protobuf/empty.ts",
32
+ "require": "./dist/gen/google/protobuf/empty.js",
33
+ "import": "./dist/gen/google/protobuf/empty.js",
34
+ "default": "./dist/gen/google/protobuf/empty.js"
35
+ },
36
+ "./proto/paths": {
37
+ "types": "./proto/paths.ts",
38
+ "require": "./dist/proto/paths.js",
39
+ "import": "./dist/proto/paths.js",
40
+ "default": "./dist/proto/paths.js"
41
+ }
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "author": "webmasterzotov",
47
+ "license": "ISC",
48
+ "dependencies": {
49
+ "@nestjs/microservices": "^11.1.11",
50
+ "rxjs": "^7.8.2"
51
+ },
52
+ "devDependencies": {
53
+ "@types/node": "^25.0.10",
54
+ "ts-proto": "^2.10.1",
55
+ "typescript": "^5.9.3"
56
+ }
57
+ }
package/proto/paths.ts ADDED
@@ -0,0 +1,9 @@
1
+ import path from 'node:path'
2
+
3
+ // Compiled to dist/proto/paths.js, so proto files are at ../../proto
4
+ const protoDir = path.join(__dirname, '..', '..', 'proto')
5
+
6
+ export const PROTO_PATHS = {
7
+ AUTH: path.join(protoDir, 'auth.proto'),
8
+ ACCOUNT: path.join(protoDir, 'account.proto')
9
+ } as const