Skip to content

Commit

Permalink
Merge pull request #56 from loopholelabs/staging
Browse files Browse the repository at this point in the history
Release v0.3.5
  • Loading branch information
ShivanshVij authored Feb 17, 2023
2 parents 63728d7 + 2648f15 commit 7389549
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 8 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [v0.3.5] - 2023-02-17

### Fixes

- Fixing a bug in `go/storage` and `ts/storage` where the entire function path would be used to parse the filename instead of just the base file name

## [v0.3.4] - 2023-02-17

### Changes
Expand Down Expand Up @@ -95,7 +101,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

- Initial release of the Scale Runtime library.

[unreleased]: https://github.com/loopholelabs/scale/compare/v0.3.4...HEAD
[unreleased]: https://github.com/loopholelabs/scale/compare/v0.3.5...HEAD
[v0.3.5]: https://github.com/loopholelabs/scale/compare/v0.3.5
[v0.3.4]: https://github.com/loopholelabs/scale/compare/v0.3.4
[v0.3.3]: https://github.com/loopholelabs/scale/compare/v0.3.3
[v0.3.2]: https://github.com/loopholelabs/scale/compare/v0.3.2
Expand Down
4 changes: 2 additions & 2 deletions go/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ func (s *Storage) Get(name string, tag string, org string, hash string) (*Entry,

return &Entry{
ScaleFunc: sf,
Hash: s.getHashFromFileName(matches[0]),
Organization: s.getOrgFromFileName(matches[0]),
Hash: s.getHashFromFileName(path.Base(matches[0])),
Organization: s.getOrgFromFileName(path.Base(matches[0])),
}, nil
}

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@loopholelabs/scale-ts",
"version": "0.3.4",
"version": "0.3.5",
"description": "Scale is a highly-performant WebAssembly function runtime that enables composable, language-agnostic software development.",
"source": "./ts/index.ts",
"main": "dist/main.js",
Expand Down
4 changes: 2 additions & 2 deletions ts/storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export class Storage{

return {
scaleFunc: ScaleFunc.Read(matches[0]),
hash: matches[0].split("_")[3],
organization: matches[0].split("_")[0],
hash: path.basename(matches[0]).split("_")[3],
organization: path.basename(matches[0]).split("_")[0],
};
}

Expand Down

0 comments on commit 7389549

Please sign in to comment.