@patterkit/ops 0.2.0 → 0.2.2
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/index.js +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1522,8 +1522,8 @@ function applyLoc(loaded, catalog, opts = {}) {
|
|
|
1522
1522
|
const existing = findFile(loaded.localeFiles, loaded.locales, path);
|
|
1523
1523
|
const merged = { ...existing?.strings ?? {} };
|
|
1524
1524
|
for (const [id, text] of strings) {
|
|
1525
|
+
if (merged[id] !== text) updated++;
|
|
1525
1526
|
merged[id] = text;
|
|
1526
|
-
updated++;
|
|
1527
1527
|
}
|
|
1528
1528
|
const file = { schema: existing?.schema ?? "patter/strings@0", scene, locale, strings: merged };
|
|
1529
1529
|
writes.push({ path, content: canonicalStringify3(file) });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patterkit/ops",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The shared operations layer: every project operation (load, validate, export, format, play, ...) as a pure function, consumed by the patter CLI and Patterpad alike.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"build": "tsup src/index.ts --format esm --dts --clean"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@patterkit/compiler": "0.2.
|
|
31
|
-
"@patterkit/core": "0.1.
|
|
32
|
-
"@patterkit/model": "0.2.
|
|
33
|
-
"@patterkit/runtime": "0.2.
|
|
30
|
+
"@patterkit/compiler": "0.2.2",
|
|
31
|
+
"@patterkit/core": "0.1.5",
|
|
32
|
+
"@patterkit/model": "0.2.1",
|
|
33
|
+
"@patterkit/runtime": "0.2.2",
|
|
34
34
|
"docx": "^9.7.1",
|
|
35
35
|
"exceljs": "^4.4.0",
|
|
36
36
|
"jszip": "^3.10.1",
|