-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from dolittle/7.4.1-elrond
Contracts for gRPC Web
- Loading branch information
Showing
5 changed files
with
142 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
import { Version } from './Versioning/Version_pb'; | ||
|
||
/** | ||
* Provides information about the current version of the Contracts. | ||
*/ | ||
export class VersionInfo { | ||
/** | ||
* Gets the current {@link Version} of the Contracts. | ||
*/ | ||
static getCurrentVersion(): Version; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
var Fundamentals_Versioning_Version_pb = require('./Versioning/Version_pb'); | ||
|
||
function VersionInfo() {} | ||
|
||
VersionInfo.prototype.getCurrentVersion = function() { | ||
return VersionInfo.getCurrentVersion(); | ||
} | ||
|
||
VersionInfo.getCurrentVersion = function() { | ||
return new Fundamentals_Versioning_Version_pb.Version() | ||
.setMajor(377) | ||
.setMinor(389) | ||
.setPatch(368) | ||
.setPrereleasestring('PRERELEASE'); | ||
} | ||
|
||
exports.VersionInfo = VersionInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"name": "@dolittle/contracts.web", | ||
"description": "Grpc-Web contracts for Dolittle Fundamentals", | ||
"version": "0.0.0", | ||
"homepage": "https://dolittle.io", | ||
"author": "Dolittle", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/dolittle-runtime/contracts.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/dolittle/home/issues" | ||
}, | ||
"keywords": [ | ||
"dolittle", | ||
"grpc" | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"protofiles": "find ../../Source -name '*.proto'", | ||
"generate": "grpc_tools_node_protoc --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs+dts,mode=grpcwebtext:. --plugin=protoc-gen-grpc=`which grpc_tools_node_protoc_plugin` -I../../Source $(yarn -s protofiles)", | ||
"keep_only_management_services": "find . -name '*_grpc_web_pb.*' -and -not -path './Runtime/Management/*' -delete", | ||
"build": "yarn generate && yarn keep_only_management_services", | ||
"prepublish": "yarn build" | ||
}, | ||
"dependencies": { | ||
"@types/google-protobuf": "3.15.5", | ||
"grpc-web": "1.4.1", | ||
"google-protobuf": "3.19.4" | ||
}, | ||
"devDependencies": { | ||
"grpc-tools": "1.11.2", | ||
"protoc-gen-grpc-web": "1.4.0" | ||
} | ||
} |