Skip to content

Commit

Permalink
chore: update metadata
Browse files Browse the repository at this point in the history
- updates keywords
- replace afrim-js dep by afrim dep
  • Loading branch information
pythonbrad committed Sep 6, 2024
1 parent 99a7ff4 commit cf5f82b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@
},
"keywords": [
"afrim",
"wasm",
"rust",
"ime"
],
"license": "MIT",
"bugs": {
"url": "https://fodydev.github.io/afrim-web"
"url": "https://github.com/fodydev/afrim-web/issues"
},
"homepage": "https://github.com/fodydev/afrim-web#readme",
"devDependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/afrim-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
},
"keywords": [
"afrim",
"wasm",
"rust",
"ime"
],
"author": "Brady Fomegne <brady.fomegne@outlook.com>",
Expand All @@ -25,7 +23,7 @@
},
"homepage": "https://github.com/fodydev/afrim-web#readme",
"dependencies": {
"afrim-js": "^0.4.0",
"afrim": "^0.4.0",
"ky": "^1.2.4",
"textarea-caret": "^3.1.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/afrim-input/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use strict";

import type { Preprocessor, Translator } from "afrim-js";
import type { Preprocessor, Translator } from "afrim";
import { AfrimConfig } from "./config";

type Option = {
Expand Down Expand Up @@ -268,7 +268,7 @@ export default class AfrimInput {

// We config the afrim ime.
private async initAfrim(config: AfrimConfig) {
const afrim = await require("afrim-js");
const afrim = await require("afrim");

this.preprocessor = new afrim.Preprocessor(config.data, 64);
this.translator = new afrim.Translator(config.translation, false);
Expand Down
2 changes: 1 addition & 1 deletion packages/afrim-input/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ky from "ky";

// Convert TOML to JSON.
export async function tomlToJson(data: string) {
const afrim = await require("afrim-js");
const afrim = await require("afrim");

return afrim.convertTomlToJson(data);
}
Expand Down
2 changes: 0 additions & 2 deletions packages/afrim-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
},
"keywords": [
"afrim",
"wasm",
"rust",
"ime"
],
"author": "Brady Fomegne <brady.fomegne@outlook.com>",
Expand Down

0 comments on commit cf5f82b

Please sign in to comment.