@pluv/crdt-loro 2.2.4 → 2.2.5
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
- package/src/utils/oneLine.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/crdt-loro@2.2.
|
|
2
|
+
> @pluv/crdt-loro@2.2.5 build /home/runner/work/pluv/pluv/packages/crdt-loro
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[32mCJS[39m [1mdist/index.js [22m[32m15.55 KB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in 87ms
|
|
13
11
|
[32mESM[39m [1mdist/index.mjs [22m[32m14.35 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 71ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m15.54 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 71ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4010ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m4.60 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.60 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -69,7 +69,7 @@ var import_loro_crdt3 = require("loro-crdt");
|
|
|
69
69
|
|
|
70
70
|
// src/utils/oneLine.ts
|
|
71
71
|
var oneLine = (strings, ...values) => {
|
|
72
|
-
return strings.map((str) => str.replace(/\s+/g, " ")
|
|
72
|
+
return strings.map((str) => str.replace(/\s+/g, " ")).reduce((acc, str, i) => acc + str + (i < values.length ? values[i] : ""), "").replace(/\s+/g, " ").trim();
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// src/doc/builder.ts
|
package/dist/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
|
|
61
61
|
// src/utils/oneLine.ts
|
|
62
62
|
var oneLine = (strings, ...values) => {
|
|
63
|
-
return strings.map((str) => str.replace(/\s+/g, " ")
|
|
63
|
+
return strings.map((str) => str.replace(/\s+/g, " ")).reduce((acc, str, i) => acc + str + (i < values.length ? values[i] : ""), "").replace(/\s+/g, " ").trim();
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
// src/doc/builder.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/crdt-loro",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "loro for @pluv/io",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@types/node": "^22.15.21",
|
|
21
21
|
"js-base64": "^3.7.7",
|
|
22
|
-
"@pluv/crdt": "^2.2.
|
|
23
|
-
"@pluv/types": "^2.2.
|
|
22
|
+
"@pluv/crdt": "^2.2.5",
|
|
23
|
+
"@pluv/types": "^2.2.5"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"loro-crdt": "^1.0.0"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"loro-crdt": "^1.5.6",
|
|
31
31
|
"tsup": "^8.5.0",
|
|
32
32
|
"typescript": "^5.8.3",
|
|
33
|
-
"@pluv/tsconfig": "^2.2.
|
|
34
|
-
"eslint-config-pluv": "^2.2.
|
|
33
|
+
"@pluv/tsconfig": "^2.2.5",
|
|
34
|
+
"eslint-config-pluv": "^2.2.5"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/utils/oneLine.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const oneLine = (strings: TemplateStringsArray, ...values: unknown[]): string => {
|
|
2
2
|
return strings
|
|
3
|
-
.map((str) => str.replace(/\s+/g, " ")
|
|
3
|
+
.map((str) => str.replace(/\s+/g, " "))
|
|
4
4
|
.reduce((acc, str, i) => acc + str + (i < values.length ? values[i] : ""), "")
|
|
5
5
|
.replace(/\s+/g, " ")
|
|
6
6
|
.trim();
|