@sa2-movie-ticket/contracts 1.0.6 → 1.0.7

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.js CHANGED
@@ -1,35 +1 @@
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 __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- GRPC_PROTO_PATH: () => GRPC_PROTO_PATH
24
- });
25
- module.exports = __toCommonJS(index_exports);
26
-
27
- // src/proto/path.ts
28
- var import_node_path = require("path");
29
- var GRPC_PROTO_PATH = {
30
- AUTH: (0, import_node_path.join)(__dirname, "../../proto/auth.proto")
31
- };
32
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {
34
- GRPC_PROTO_PATH
35
- });
1
+ 'use strict';var path=require('path');var t={AUTH:path.join(__dirname,"../../proto/auth.proto")};exports.GRPC_PROTO_PATH=t;
package/dist/index.mjs CHANGED
@@ -1,8 +1 @@
1
- // src/proto/path.ts
2
- import { join } from "path";
3
- var GRPC_PROTO_PATH = {
4
- AUTH: join(__dirname, "../../proto/auth.proto")
5
- };
6
- export {
7
- GRPC_PROTO_PATH
8
- };
1
+ import {join}from'path';var t={AUTH:join(__dirname,"../../proto/auth.proto")};export{t as GRPC_PROTO_PATH};
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@sa2-movie-ticket/contracts",
3
3
  "description": "Contracts for movie ticket microservices",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "license": "ISC",
6
6
  "type": "commonjs",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.mjs",
9
9
  "scripts": {
10
- "build": "tsup src/index.ts --format esm,cjs --dts --clean",
10
+ "build": "tsup",
11
11
  "generate": "bun run generate:ts && bun run generate:go",
12
12
  "generate:ts": "protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto.exe --ts_proto_out=./gen/ts --ts_proto_opt=esModuleInterop=true,forceLong=bigint,outputServices=grpc-js,package=omit -I=./proto ./proto/*.proto",
13
13
  "generate:go": "protoc --go_out=. --go_opt=module=github.com/sa2-movie-ticket/contracts --go-grpc_out=. --go-grpc_opt=module=github.com/sa2-movie-ticket/contracts -I=./proto ./proto/*.proto"