@willbooster/shared-lib 7.2.2 → 7.3.0
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/dist/sleep.cjs.map +1 -1
- package/dist/sleep.js.map +1 -1
- package/dist/zenkaku.cjs.map +1 -1
- package/dist/zenkaku.js.map +1 -1
- package/package.json +25 -35
- /package/dist/{assert.d.ts → packages/shared-lib/src/assert.d.ts} +0 -0
- /package/dist/{error.d.ts → packages/shared-lib/src/error.d.ts} +0 -0
- /package/dist/{humanize.d.ts → packages/shared-lib/src/humanize.d.ts} +0 -0
- /package/dist/{index.d.ts → packages/shared-lib/src/index.d.ts} +0 -0
- /package/dist/{mail.d.ts → packages/shared-lib/src/mail.d.ts} +0 -0
- /package/dist/{parseCommandLineArgs.d.ts → packages/shared-lib/src/parseCommandLineArgs.d.ts} +0 -0
- /package/dist/{shuffle.d.ts → packages/shared-lib/src/shuffle.d.ts} +0 -0
- /package/dist/{sleep.d.ts → packages/shared-lib/src/sleep.d.ts} +0 -0
- /package/dist/{sqlite.d.ts → packages/shared-lib/src/sqlite.d.ts} +0 -0
- /package/dist/{zenkaku.d.ts → packages/shared-lib/src/zenkaku.d.ts} +0 -0
package/dist/sleep.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.cjs","sources":["../src/sleep.ts"],"sourcesContent":["export async function sleep(milliseconds: number): Promise<void> {\n return new Promise((
|
|
1
|
+
{"version":3,"file":"sleep.cjs","sources":["../src/sleep.ts"],"sourcesContent":["export async function sleep(milliseconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\n}\n"],"names":["async","milliseconds","Promise","resolve","setTimeout"],"mappings":"2BAAOA,eAAqBC,GAC1B,OAAO,IAAIC,QAASC,GAAYC,WAAWD,EAASF,GACtD"}
|
package/dist/sleep.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sleep.js","sources":["../src/sleep.ts"],"sourcesContent":["export async function sleep(milliseconds: number): Promise<void> {\n return new Promise((
|
|
1
|
+
{"version":3,"file":"sleep.js","sources":["../src/sleep.ts"],"sourcesContent":["export async function sleep(milliseconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\n}\n"],"names":["async","sleep","milliseconds","Promise","resolve","setTimeout"],"mappings":"AAAOA,eAAeC,EAAMC,GAC1B,OAAO,IAAIC,QAASC,GAAYC,WAAWD,EAASF,GACtD"}
|
package/dist/zenkaku.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zenkaku.cjs","sources":["../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replaceAll(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) -
|
|
1
|
+
{"version":3,"file":"zenkaku.cjs","sources":["../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replaceAll(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) - 0xFE_E0);\n });\n}\n"],"names":["str","replaceAll","s","_s$codePointAt","String","fromCodePoint","codePointAt"],"mappings":"qDAAO,SAAyCA,GAC9C,OAAOA,EAAIC,WAAW,eAAiBC,IAAc,IAAAC,EACnD,OAAOC,OAAOC,eAA+B,OAAjBF,EAACD,EAAEI,YAAY,IAAEH,EAAI,GAAK,QAE1D"}
|
package/dist/zenkaku.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zenkaku.js","sources":["../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replaceAll(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) -
|
|
1
|
+
{"version":3,"file":"zenkaku.js","sources":["../src/zenkaku.ts"],"sourcesContent":["export function zenkakuAlphanumericalsToHankaku(str: string): string {\n return str.replaceAll(/[0-9A-Za-z]/g, (s: string) => {\n return String.fromCodePoint((s.codePointAt(0) ?? 0) - 0xFE_E0);\n });\n}\n"],"names":["zenkakuAlphanumericalsToHankaku","str","replaceAll","s","_s$codePointAt","String","fromCodePoint","codePointAt"],"mappings":"AAAO,SAASA,EAAgCC,GAC9C,OAAOA,EAAIC,WAAW,eAAiBC,IAAc,IAAAC,EACnD,OAAOC,OAAOC,eAA+B,OAAjBF,EAACD,EAAEI,YAAY,IAAEH,EAAI,GAAK,QAE1D"}
|
package/package.json
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/shared-lib",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.3.0",
|
|
4
4
|
"description": "Shared library for WillBooster projects",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"author": "WillBooster Inc.",
|
|
5
7
|
"repository": {
|
|
6
8
|
"type": "git",
|
|
7
9
|
"url": "git+https://github.com/WillBooster/shared.git",
|
|
8
10
|
"directory": "packages/shared-lib"
|
|
9
11
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
"files": [
|
|
13
|
+
"bin/",
|
|
14
|
+
"dist/"
|
|
15
|
+
],
|
|
13
16
|
"type": "module",
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"main": "dist/index.cjs",
|
|
19
|
+
"module": "dist/index.js",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
14
21
|
"exports": {
|
|
15
22
|
".": {
|
|
16
23
|
"types": "./dist/index.d.ts",
|
|
@@ -23,57 +30,40 @@
|
|
|
23
30
|
"import": "./src/index.ts"
|
|
24
31
|
}
|
|
25
32
|
},
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"files": [
|
|
30
|
-
"bin/",
|
|
31
|
-
"dist/"
|
|
32
|
-
],
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
33
36
|
"scripts": {
|
|
34
37
|
"build": "build-ts lib",
|
|
35
38
|
"check-all-for-ai": "yarn check-for-ai && yarn test",
|
|
36
|
-
"check-for-ai": "yarn install > /dev/null && yarn format > /dev/null 2> /dev/null || true && yarn
|
|
39
|
+
"check-for-ai": "yarn install > /dev/null && yarn format > /dev/null 2> /dev/null || true && yarn lint-fix --quiet",
|
|
37
40
|
"cleanup": "yarn format && yarn lint-fix",
|
|
38
|
-
"format": "sort-package-json && yarn prettify",
|
|
39
|
-
"
|
|
41
|
+
"format": "sort-package-json && yarn format-code && yarn prettify",
|
|
42
|
+
"format-code": "oxfmt --write --no-error-on-unmatched-pattern .",
|
|
43
|
+
"lint": "oxlint --no-error-on-unmatched-pattern .",
|
|
40
44
|
"lint-fix": "yarn lint --fix",
|
|
41
|
-
"prettify": "prettier --cache --color --write \"**/{.*/,}*.{
|
|
45
|
+
"prettify": "prettier --cache --color --no-error-on-unmatched-pattern --write \"**/{.*/,}*.{java}\" \"!**/test{-,/}fixtures/**\" || true",
|
|
42
46
|
"test": "vitest",
|
|
43
47
|
"typecheck": "tsc --noEmit",
|
|
44
48
|
"verify-code": "yarn workspace @willbooster/wb start --working-dir \"$INIT_CWD\" verify-code",
|
|
45
49
|
"verify-code-with-tests": "yarn verify-code && yarn test"
|
|
46
50
|
},
|
|
47
|
-
"prettier": "@willbooster/prettier-config",
|
|
48
51
|
"devDependencies": {
|
|
49
|
-
"@eslint/js": "^9.39.4",
|
|
50
52
|
"@tsconfig/node-lts": "24.0.0",
|
|
51
53
|
"@tsconfig/node-ts": "23.6.4",
|
|
52
|
-
"@types/eslint": "9.6.1",
|
|
53
|
-
"@types/micromatch": "4.0.10",
|
|
54
54
|
"@types/node": "25.5.2",
|
|
55
|
-
"@willbooster/
|
|
55
|
+
"@willbooster/oxfmt-config": "1.2.0",
|
|
56
|
+
"@willbooster/oxlint-config": "1.4.0",
|
|
56
57
|
"@willbooster/prettier-config": "10.4.0",
|
|
57
58
|
"build-ts": "17.0.22",
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"eslint-import-resolver-typescript": "4.4.4",
|
|
62
|
-
"eslint-plugin-import-x": "4.16.2",
|
|
63
|
-
"eslint-plugin-sort-class-members": "1.22.1",
|
|
64
|
-
"eslint-plugin-sort-destructure-keys": "3.0.0",
|
|
65
|
-
"eslint-plugin-unicorn": "64.0.0",
|
|
66
|
-
"eslint-plugin-unused-imports": "4.4.1",
|
|
67
|
-
"globals": "17.4.0",
|
|
68
|
-
"micromatch": "4.0.8",
|
|
59
|
+
"oxfmt": "0.45.0",
|
|
60
|
+
"oxlint": "^1.60.0",
|
|
61
|
+
"oxlint-tsgolint": "0.21.0",
|
|
69
62
|
"prettier": "3.8.1",
|
|
70
63
|
"prettier-plugin-java": "2.8.1",
|
|
71
64
|
"sort-package-json": "3.6.1",
|
|
72
65
|
"typescript": "^5.9.3",
|
|
73
|
-
"typescript-eslint": "8.58.0",
|
|
74
66
|
"vitest": "4.0.18"
|
|
75
67
|
},
|
|
76
|
-
"
|
|
77
|
-
"access": "public"
|
|
78
|
-
}
|
|
68
|
+
"prettier": "@willbooster/prettier-config"
|
|
79
69
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{parseCommandLineArgs.d.ts → packages/shared-lib/src/parseCommandLineArgs.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|