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

Naming fixes #5

Merged
merged 6 commits into from
Sep 26, 2023
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
26 changes: 26 additions & 0 deletions scripts/release-rust-ver.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/usr/bin/bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd $SCRIPT_DIR && cd ..
SRC_DIR=$(pwd)
source typescript/package.prod.sh
cd $SRC_DIR

cargo publish --dry-run -p freenet-macros || { exit 1; }
read -p "Publish freenet-macros? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
cargo publish -p freenet-macros
else
echo "Not publishing freenet-macros"
fi

cargo publish --dry-run -p freenet-stdlib || { exit 1; }
read -p "Publish freenet-stdlib? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
cargo publish -p freenet-stdlib
else
echo "Not publishing freenet-stdlib"
fi
6 changes: 3 additions & 3 deletions typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
GetResponse,
HostError,
Key,
LocutusWsApi,
FreenetWsApi,
PutResponse,
UpdateNotification,
UpdateResponse,
} from "@locutus/locutus-stdlib/websocket-interface";
} from "@freenetorg/freenet-stdlib/websocket-interface";

const handler = {
onPut: (_response: PutResponse) => {},
Expand All @@ -27,7 +27,7 @@ const handler = {
};

const API_URL = new URL(`ws://${location.host}/contract/command/`);
const locutusApi = new LocutusWsApi(API_URL, handler);
const locutusApi = new FreenetWsApi(API_URL, handler);

const CONTRACT = "DCBi7HNZC3QUZRiZLFZDiEduv5KHgZfgBk8WwTiheGq1";

Expand Down
4 changes: 2 additions & 2 deletions typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@freenetorg/freenet-stdlib",
"version": "0.0.5",
"description": "Locutus Standard Library and Utils",
"version": "0.0.6",
"description": "Freenet standard library and utils",
"main": "src/index.ts",
"files": [
"**/*.ts",
Expand Down
2 changes: 1 addition & 1 deletion typescript/src/websocket-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ function getAuthTokenFromCookie(): string | null {
* const locutusApi = new LocutusWsApi(API_URL, handler);
* ```
*/
export class LocutusWsApi {
export class FreenetWsApi {
/**
* Websocket object for creating and managing a WebSocket connection to a server,
* as well as for sending and receiving data on the connection.
Expand Down
Loading