ansuko 1.1.1 → 1.2.8

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.
@@ -115,7 +115,7 @@ const ansukoJaPlugin = (ansuko) => {
115
115
  * @param withHaifun - Hyphen replacement character
116
116
  * @returns Half-width string or null
117
117
  * @example _.toHalfWidth('ABCー123','-') // 'ABC-123'
118
- * @example _.toHalfWidth(' アイウ 123 ') // ' アイウ 123 '
118
+ * @example _.toHalfWidth(' アイウ 123 ') // ' アイウ 123 '
119
119
  * @category Japanese Utilities
120
120
  */
121
121
  const toHalfWidth = (value, withHaifun) => {
package/dist/util.d.ts CHANGED
@@ -17,7 +17,7 @@ export declare const haifun: (text?: string, replacement?: string, expandInterpr
17
17
  * @returns Half-width string or null
18
18
  * @example toHalfWidth('ABC123') // 'ABC123'
19
19
  * @example toHalfWidth('東京都千代田区1ー2ー3','-') // '東京都千代田区1-2-3'
20
- * @example toHalfWidth('ABC 123') // 'ABC 123'
20
+ * @example toHalfWidth('ABC 123') // 'ABC 123'
21
21
  * @category String Utilities
22
22
  */
23
23
  export declare const toHalfWidth: (value: unknown, withHaifun?: string) => string | null;
package/dist/util.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _ from "lodash";
2
2
  // Escape special characters inside character classes: ] - \ ^
3
- const escapeForCharClass = (s) => s.replace(/[\]\-\\\^]/g, '\\$&');
3
+ const escapeForCharClass = (s) => s.replace(/[\]\-\\^]/g, '\\$&');
4
4
  /**
5
5
  * Normalizes many hyphen/dash/horizontal-line code points into a single character.
6
6
  * @param text - Text to normalize
@@ -81,7 +81,7 @@ export const haifun = (text, replacement = "‐", expandInterpretation = false)
81
81
  * @returns Half-width string or null
82
82
  * @example toHalfWidth('ABC123') // 'ABC123'
83
83
  * @example toHalfWidth('東京都千代田区1ー2ー3','-') // '東京都千代田区1-2-3'
84
- * @example toHalfWidth('ABC 123') // 'ABC 123'
84
+ * @example toHalfWidth('ABC 123') // 'ABC 123'
85
85
  * @category String Utilities
86
86
  */
87
87
  export const toHalfWidth = (value, withHaifun) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ansuko",
3
- "version": "1.1.1",
3
+ "version": "1.2.8",
4
4
  "description": "A modern JavaScript/TypeScript utility library that extends lodash with practical, intuitive behaviors. Fixes lodash quirks, adds Promise support, Japanese text processing, and GeoJSON utilities.",
5
5
  "keywords": [
6
6
  "lodash",
@@ -22,7 +22,7 @@
22
22
  "license": "MIT",
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "git+https://github.com/sera4am/ansuko.git"
25
+ "url": "https://github.com/sera4am/ansuko.git"
26
26
  },
27
27
  "bugs": {
28
28
  "url": "https://github.com/sera4am/ansuko/issues"
@@ -47,6 +47,7 @@
47
47
  "prepublishOnly": "npm run build",
48
48
  "test": "npm run build && vitest run",
49
49
  "test:watch": "vitest",
50
+ "typecheck": "tsc --noEmit",
50
51
  "lint": "eslint src --ext .ts,.tsx"
51
52
  },
52
53
  "dependencies": {