font-range 0.2.0 → 0.2.1
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/.eslintignore +1 -0
- package/.github/workflows/npm-publish.yml +1 -1
- package/build/src/main.d.ts +18 -0
- package/build/src/types.d.ts +4 -0
- package/package.json +15 -14
- package/requirements.txt +4 -1
- package/tsconfig.json +3 -0
- package/tsconfig.release.json +2 -1
package/.eslintignore
CHANGED
|
@@ -44,7 +44,7 @@ jobs:
|
|
|
44
44
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
45
45
|
with:
|
|
46
46
|
branch: master
|
|
47
|
-
file_pattern: build/src/*.js build/src/*.js.map
|
|
47
|
+
file_pattern: build/src/*.js build/src/*.js.map build/src/*.d.ts
|
|
48
48
|
commit_message: 'Fix: Automated apply build files'
|
|
49
49
|
status_options: '--untracked-files=no'
|
|
50
50
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export declare const targets: {
|
|
3
|
+
weston: string;
|
|
4
|
+
korean: string;
|
|
5
|
+
japanese: string;
|
|
6
|
+
chinese: string;
|
|
7
|
+
chinese_traditional: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function getUnicodeRanges(dirPath?: string, url?: string): Promise<string[]>;
|
|
10
|
+
interface fontRangeOptionI {
|
|
11
|
+
savePath: string;
|
|
12
|
+
format: string;
|
|
13
|
+
nameFormat: string;
|
|
14
|
+
defaultArgs: string;
|
|
15
|
+
etcArgs: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function fontRange(url?: string, fontPath?: string, fontRangeOption?: fontRangeOptionI['savePath'] | Partial<fontRangeOptionI>): Promise<Buffer[]>;
|
|
18
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "font-range",
|
|
3
3
|
"description": " Font subset with google font's ML result.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"author": "black7375 <alstjr7375@daum.net>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -27,22 +27,23 @@
|
|
|
27
27
|
"node": ">= 12.13"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@types/jest": "^27.0
|
|
30
|
+
"@types/jest": "^27.4.0",
|
|
31
31
|
"@types/node": "^16.10.9",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
33
|
-
"@typescript-eslint/parser": "^5.
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
|
33
|
+
"@typescript-eslint/parser": "^5.10.1",
|
|
34
34
|
"command-exists": "^1.2.9",
|
|
35
|
-
"eslint": "~7.
|
|
35
|
+
"eslint": "~8.7.0",
|
|
36
36
|
"eslint-config-prettier": "~8.3.0",
|
|
37
|
-
"eslint-plugin-jest": "^
|
|
38
|
-
"jest": "^27.
|
|
39
|
-
"prettier": "^2.
|
|
37
|
+
"eslint-plugin-jest": "^26.0.0",
|
|
38
|
+
"jest": "^27.4.7",
|
|
39
|
+
"prettier": "^2.5.1",
|
|
40
40
|
"rimraf": "~3.0.2",
|
|
41
|
-
"ts-jest": "^27.
|
|
41
|
+
"ts-jest": "^27.1.3",
|
|
42
42
|
"tsutils": "~3.21.0",
|
|
43
|
-
"typescript": "^4.4.
|
|
43
|
+
"typescript": "^4.4.5"
|
|
44
44
|
},
|
|
45
45
|
"main": "build/src/main.js",
|
|
46
|
+
"typings": "build/src/main.d.ts",
|
|
46
47
|
"scripts": {
|
|
47
48
|
"clean": "rimraf coverage build tmp",
|
|
48
49
|
"build": "tsc -p tsconfig.release.json",
|
|
@@ -52,14 +53,14 @@
|
|
|
52
53
|
"test:watch": "jest --watch"
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
|
-
"@types/css-tree": "^1.0.
|
|
56
|
+
"@types/css-tree": "^1.0.7",
|
|
56
57
|
"@types/node-fetch": "^2.5.12",
|
|
57
|
-
"css-tree": "^
|
|
58
|
-
"node-fetch": "^2.6.
|
|
58
|
+
"css-tree": "^2.0.4",
|
|
59
|
+
"node-fetch": "^2.6.7",
|
|
59
60
|
"tslib": "^2.3.1"
|
|
60
61
|
},
|
|
61
62
|
"volta": {
|
|
62
63
|
"node": "16.10.0",
|
|
63
|
-
"npm": "
|
|
64
|
+
"npm": "8.3.2"
|
|
64
65
|
}
|
|
65
66
|
}
|
package/requirements.txt
CHANGED
package/tsconfig.json
CHANGED