@crayond_dev/grpc-toolkit
Advanced tools
Comparing version 1.0.2 to 1.0.4
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.proto = void 0; | ||
var grpc_js_1 = __importDefault(require("@grpc/grpc-js")); | ||
var proto_loader_1 = __importDefault(require("@grpc/proto-loader")); | ||
var grpc_js_1 = require("@grpc/grpc-js"); | ||
var proto_loader_1 = require("@grpc/proto-loader"); | ||
var path_1 = require("path"); | ||
var packageDefinition = proto_loader_1.default.loadSync((0, path_1.join)(__dirname, "./protos/index.proto"), { | ||
var packageDefinition = (0, proto_loader_1.loadSync)((0, path_1.join)(__dirname, "./protos/index.proto"), { | ||
keepCase: false, | ||
@@ -17,2 +14,2 @@ longs: String, | ||
}); | ||
exports.proto = grpc_js_1.default.loadPackageDefinition(packageDefinition); | ||
exports.proto = (0, grpc_js_1.loadPackageDefinition)(packageDefinition); |
{ | ||
"name": "@crayond_dev/grpc-toolkit", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "This has definitions and types required for implementing gRPC in toolkit microservices", | ||
@@ -8,3 +8,3 @@ "main": "lib/index.js", | ||
"build": "tsc --pretty", | ||
"postbuild": "cp -R ./src/protos ./dist/.", | ||
"postbuild": "cp -R ./src/protos ./lib/.", | ||
"grpc:generate-types": "npx proto-loader-gen-types --longs=String --enums=String --defaults --oneofs --grpcLib=@grpc/grpc-js --outDir=./src/rpc_types ./src/protos/index.proto" | ||
@@ -33,4 +33,4 @@ }, | ||
"@grpc/grpc-js": "^1.9.2", | ||
"@grpc/proto-loader": "^0.7.9" | ||
"@grpc/proto-loader": "^0.7.10" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53815
26
280
Updated@grpc/proto-loader@^0.7.10