ponzu 1.68.3 → 1.69.0
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/chromium.js +17 -0
- package/dist/index.js +888 -102
- package/package.json +1 -1
package/dist/chromium.js
CHANGED
|
@@ -9537,6 +9537,23 @@ function carryIds(prev, next, derived) {
|
|
|
9537
9537
|
}
|
|
9538
9538
|
return changed;
|
|
9539
9539
|
}
|
|
9540
|
+
// packages/core/src/suggestions.ts
|
|
9541
|
+
function sameName(a, b) {
|
|
9542
|
+
const norm = (s) => s.toLowerCase().replace(/[^\p{L}\p{N}]+/gu, "");
|
|
9543
|
+
const x = norm(a);
|
|
9544
|
+
return x.length > 0 && x === norm(b);
|
|
9545
|
+
}
|
|
9546
|
+
function startedAs(idea, file) {
|
|
9547
|
+
const folder = file.key.split("/").pop()?.replace(/\.design$/, "") ?? "";
|
|
9548
|
+
return sameName(idea.name, file.name) || sameName(idea.name, folder);
|
|
9549
|
+
}
|
|
9550
|
+
var STARTED_FOR = 10 * 60000;
|
|
9551
|
+
function startedFrom(idea, files) {
|
|
9552
|
+
return files.find((f) => f.git?.project === idea.projectId && startedAs(idea, f));
|
|
9553
|
+
}
|
|
9554
|
+
function settled(file, now = Date.now()) {
|
|
9555
|
+
return !file.busy && !(file.created && now - file.created < STARTED_FOR);
|
|
9556
|
+
}
|
|
9540
9557
|
// packages/core/src/update.ts
|
|
9541
9558
|
function releaseNotesUrl(version) {
|
|
9542
9559
|
return `https://github.com/north-brook/ponzu/releases/download/v${version}/release-notes.json`;
|