@codelia/storage 0.1.75 → 0.1.76

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/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kousw
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE.
package/dist/index.cjs CHANGED
@@ -1035,7 +1035,9 @@ var parsePositiveIntEnv = (key) => {
1035
1035
  };
1036
1036
  var clipLongLine = (line, maxLineLength) => {
1037
1037
  if (line.length <= maxLineLength) return line;
1038
- return `${line.slice(0, maxLineLength)}...`;
1038
+ const graphemes = splitGraphemes(line);
1039
+ if (graphemes.length <= maxLineLength) return line;
1040
+ return `${graphemes.slice(0, maxLineLength).join("")}...`;
1039
1041
  };
1040
1042
  var clipUtf8ToBytes = (value, maxBytes) => {
1041
1043
  if (maxBytes <= 0 || value.length === 0) return "";
package/dist/index.js CHANGED
@@ -990,7 +990,9 @@ var parsePositiveIntEnv = (key) => {
990
990
  };
991
991
  var clipLongLine = (line, maxLineLength) => {
992
992
  if (line.length <= maxLineLength) return line;
993
- return `${line.slice(0, maxLineLength)}...`;
993
+ const graphemes = splitGraphemes(line);
994
+ if (graphemes.length <= maxLineLength) return line;
995
+ return `${graphemes.slice(0, maxLineLength).join("")}...`;
994
996
  };
995
997
  var clipUtf8ToBytes = (value, maxBytes) => {
996
998
  if (maxBytes <= 0 || value.length === 0) return "";
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@codelia/storage",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
+ "license": "MIT",
4
5
  "type": "module",
5
6
  "engines": {
6
7
  "node": ">=20 <25"
@@ -23,8 +24,8 @@
23
24
  "typecheck": "tsc --noEmit"
24
25
  },
25
26
  "dependencies": {
26
- "@codelia/core": "0.1.75",
27
- "@codelia/shared-types": "0.1.75",
27
+ "@codelia/core": "0.1.76",
28
+ "@codelia/shared-types": "0.1.76",
28
29
  "better-sqlite3": "^12.6.2"
29
30
  },
30
31
  "publishConfig": {