fodec 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/fodec.js +1 -11
- package/lib/Fodec.d.ts +2 -2
- package/lib/cli/App.d.ts +1 -1
- package/lib/cli/App.js +11 -1
- package/package.json +3 -3
package/bin/fodec.js
CHANGED
|
@@ -2,14 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
const {app} = require("../lib/cli/index.js");
|
|
4
4
|
|
|
5
|
-
app.run(
|
|
6
|
-
if(!res) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
process.stdout.write(res);
|
|
11
|
-
process.stdout.write("\n");
|
|
12
|
-
}).catch((err) => {
|
|
13
|
-
process.stderr.write(err.message);
|
|
14
|
-
process.stdout.write("\n");
|
|
15
|
-
});
|
|
5
|
+
app.run();
|
package/lib/Fodec.d.ts
CHANGED
|
@@ -3,6 +3,6 @@ export declare class Fodec {
|
|
|
3
3
|
constructor(key: string);
|
|
4
4
|
transformText(str: string): string;
|
|
5
5
|
transformJson(data: any): Promise<any>;
|
|
6
|
-
transformFont(fontPath: string): Promise<
|
|
7
|
-
transformFontV1(fontPath: string): Promise<
|
|
6
|
+
transformFont(fontPath: string): Promise<import("fonteditor-core").FontEditor.FontOutput | undefined>;
|
|
7
|
+
transformFontV1(fontPath: string): Promise<import("fonteditor-core").FontEditor.FontOutput | undefined>;
|
|
8
8
|
}
|
package/lib/cli/App.d.ts
CHANGED
package/lib/cli/App.js
CHANGED
|
@@ -110,7 +110,17 @@ class App {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
async run() {
|
|
113
|
-
|
|
113
|
+
try {
|
|
114
|
+
const res = await this.cli.run(process.argv);
|
|
115
|
+
if (res) {
|
|
116
|
+
process.stdout.write(res);
|
|
117
|
+
process.stdout.write("\n");
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
catch (err) {
|
|
121
|
+
process.stderr.write(err.message);
|
|
122
|
+
process.stdout.write("\n");
|
|
123
|
+
}
|
|
114
124
|
}
|
|
115
125
|
}
|
|
116
126
|
exports.App = App;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fodec",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"author": "Kris Papercut <krispcut@gmail.com>",
|
|
5
5
|
"description": "Font encoder",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"url": "https://github.com/kearisp/fodec/issues"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@kearisp/cli": "^2.0.
|
|
30
|
+
"@kearisp/cli": "^2.0.4",
|
|
31
31
|
"@wocker/utils": "^1.0.2",
|
|
32
32
|
"fonteditor-core": "^2.3.2",
|
|
33
33
|
"fs": "^0.0.1-security",
|
|
34
34
|
"path": "^0.12.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "^
|
|
37
|
+
"@types/node": "^22.10.2",
|
|
38
38
|
"typescript": "^5.3.3"
|
|
39
39
|
}
|
|
40
40
|
}
|