Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version of core #160

Merged
merged 3 commits into from
Dec 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions client-js/main/client/command-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,13 @@ export class CommandRequest extends ClientRequest {
*/
_asOrigin(command) {
const result = new Origin();

const messageId = new MessageId();
const commandIdType = Type.forClass(CommandId);
const packedId = AnyPacker.pack(command.getId()).as(commandIdType);
messageId.setId(packedId);
const typeUrl = command.getMessage().getTypeUrl();
messageId.setTypeUrl(typeUrl);
result.setMessage(messageId);

let grandOrigin = command.getContext().getOrigin();
if (!grandOrigin) {
grandOrigin = new Origin();
}
result.setGrandOrigin(grandOrigin);

const actorContext = command.getContext().getActorContext();
result.setActorContext(actorContext);
return result;
Expand Down
2 changes: 1 addition & 1 deletion client-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spine-web",
"version": "1.6.16",
"version": "1.6.17",
"license": "Apache-2.0",
"description": "A JS client for interacting with Spine applications.",
"homepage": "https://spine.io",
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/js-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "client-js-tests",
"version": "1.6.16",
"version": "1.6.17",
"license": "Apache-2.0",
"description": "Tests of a `spine-web` JS library against the Spine-based application.",
"scripts": {
Expand Down
Loading