@joycodetech/qmd-ja 2.5.3 → 2.5.4

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/store.js CHANGED
@@ -626,7 +626,7 @@ export async function initializeVaporettoTokenizer() {
626
626
  _vaporettoInitPromise = (async () => {
627
627
  const req = createRequire(import.meta.url);
628
628
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
629
- const { VaporettoTokenizer } = req(pathJoin(dirname(fileURLToPath(import.meta.url)), "_vendor", "vaporetto-node-wasm", "vaporetto_node_wasm.js"));
629
+ const { VaporettoTokenizer } = req(pathJoin(dirname(fileURLToPath(import.meta.url)), "..", "vendor", "vaporetto-node-wasm", "vaporetto_node_wasm.js"));
630
630
  const modelPath = _resolveVaporettoModelPath();
631
631
  const modelData = readFileSync(modelPath);
632
632
  return new VaporettoTokenizer(modelData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joycodetech/qmd-ja",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "Japanese-enhanced fork of qmd — On-device hybrid search with Vaporetto WASM morphological tokenizer for accurate Japanese BM25 full-text search",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -12,7 +12,7 @@
12
12
  }
13
13
  },
14
14
  "bin": {
15
- "qmd": "bin/qmd"
15
+ "qmd-ja": "bin/qmd-ja"
16
16
  },
17
17
  "files": [
18
18
  "bin/",
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Koichi Akabe, Shunsuke Kanda, Yusuke Oda, Shinsuke Mori
4
+ (daac-tools/vaporetto — https://github.com/daac-tools/vaporetto)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
File without changes