Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
EdamAme-x committed Aug 19, 2024
1 parent 77782ff commit 0016f03
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
7 changes: 7 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{
"name": "@evex/linejs",
"version": "0.0.0",
"exports": {
".": "./packages/client/index.ts",
"./client": "./packages/client/index.ts",
"./utils": "./packages/utils/index.ts"
},
"fmt": {
"indentWidth": 2,
"singleQuote": false,
Expand Down
8 changes: 4 additions & 4 deletions jsr.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"$schema": "https://jsr.io/schema/config-file.v1.json",
"name": "@evex/linejs",
"version": "0.0.1",
"version": "0.0.0",
"exports": {
".": "./src/client/index.ts",
"client": "./src/client/index.ts",
"utils": "./src/utils/index.ts"
".": "./packages/client/index.ts",
"./client": "./packages/client/index.ts",
"./utils": "./packages/utils/index.ts"
}
}
6 changes: 3 additions & 3 deletions packages/utils/obs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class LINE_OBS_BASE {
public prefix: LINE_OBS_PREFIX = "obs://",
) {}

public createURI(hash: string) {
public createURI(hash: string): string {
return this.prefix + hash;
}

public createProfileImage(mid: string) {
public createProfileImage(mid: string): string {
return this.prefix + "os/p/" + mid;
}

public createGroupImage(gid: string) {
public createGroupImage(gid: string): string {
return this.prefix + "os/g/" + gid;
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/scheme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class LINE_SCHEME_BASE {
public prefix: LINE_SCHEME_PREFIX = "line://",
) {}

public getHome() {
public getHome(): string {
return this.prefix + "home";
}

public getProfile() {
public getProfile(): string {
return this.prefix + "profile";
}
}
Expand Down

0 comments on commit 0016f03

Please sign in to comment.