Skip to content

Commit

Permalink
0.3.8-pre.23
Browse files Browse the repository at this point in the history
  • Loading branch information
TedSjoblom committed Nov 26, 2024
1 parent fac4c91 commit 4b41b49
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions sdks/js/keelson/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ export function get_subjects_from_rpc_key(key: string): { subjectIn: string, sub

// ENVELOPE HELPER FUNCTIONS
export function enclose(payload: Uint8Array, enclosed_at?: Date, source_timestamp?: Date): Envelope {
const env = Envelope.create({ payload: payload, enclosedAt: enclosed_at ?? new Date(), sourceTimestamp: source_timestamp ?? new Date() })
const env = Envelope.create({ payload: payload, enclosedAt: enclosed_at ?? new Date()})
return env;
}

export function uncover(encodedEnvelope: Uint8Array): [Date, Date | undefined, Date | undefined, Uint8Array] | undefined {
export function uncover(encodedEnvelope: Uint8Array): [Date, Date | undefined, Uint8Array] | undefined {
const env = Envelope.decode(encodedEnvelope);
return [new Date(), env.enclosedAt, env.sourceTimestamp, env.payload];
return [new Date(), env.enclosedAt, env.payload];
}

// SUBJECTS HELPER FUNCTIONS
Expand Down
2 changes: 1 addition & 1 deletion sdks/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "keelson-js",
"version": "0.3.8-pre.22",
"version": "0.3.8-pre.23",
"description": "",
"main": "index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion sdks/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def read(fname):

setup(
name="keelson",
version="0.3.8-pre.22",
version="0.3.8-pre.23",
license="Apache License 2.0",
description="A python Software Development Kit for keelson",
long_description=read("README.md"),
Expand Down

0 comments on commit 4b41b49

Please sign in to comment.