@unified-product-graph/core 0.8.9 → 0.8.10
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/CHANGELOG.md +7 -0
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -20392,7 +20392,7 @@ declare function isCanonical(text: string): boolean;
|
|
|
20392
20392
|
* it stamps the `upg_version` field of every `.upg` file written by the SDK.
|
|
20393
20393
|
* The `check:version-lockstep` gate enforces this at release time.
|
|
20394
20394
|
*/
|
|
20395
|
-
declare const UPG_VERSION: "0.8.
|
|
20395
|
+
declare const UPG_VERSION: "0.8.10";
|
|
20396
20396
|
/**
|
|
20397
20397
|
* The `.upg` JSON document format version. Written to the `upg_version` field.
|
|
20398
20398
|
* Evolves independently from `UPG_VERSION` (the catalogue version).
|
package/dist/index.d.ts
CHANGED
|
@@ -20392,7 +20392,7 @@ declare function isCanonical(text: string): boolean;
|
|
|
20392
20392
|
* it stamps the `upg_version` field of every `.upg` file written by the SDK.
|
|
20393
20393
|
* The `check:version-lockstep` gate enforces this at release time.
|
|
20394
20394
|
*/
|
|
20395
|
-
declare const UPG_VERSION: "0.8.
|
|
20395
|
+
declare const UPG_VERSION: "0.8.10";
|
|
20396
20396
|
/**
|
|
20397
20397
|
* The `.upg` JSON document format version. Written to the `upg_version` field.
|
|
20398
20398
|
* Evolves independently from `UPG_VERSION` (the catalogue version).
|
package/dist/index.js
CHANGED
|
@@ -17118,12 +17118,14 @@ function validateFrameworkScores(nodes, edges, warnings) {
|
|
|
17118
17118
|
});
|
|
17119
17119
|
}
|
|
17120
17120
|
function divisorInputs(framework) {
|
|
17121
|
-
const
|
|
17122
|
-
if (
|
|
17121
|
+
const exprs = (framework.data?.computed_properties ?? []).map((c) => c?.expression).filter((e) => typeof e === "string" && e.length > 0);
|
|
17122
|
+
if (exprs.length === 0) return EMPTY_STRING_SET;
|
|
17123
17123
|
const out = /* @__PURE__ */ new Set();
|
|
17124
|
-
const re = /\/\s
|
|
17125
|
-
|
|
17126
|
-
|
|
17124
|
+
const re = /\/\s*(?:\(\s*([A-Za-z_][A-Za-z0-9_]*)\s*\)|([A-Za-z_][A-Za-z0-9_]*))/g;
|
|
17125
|
+
for (const expr of exprs) {
|
|
17126
|
+
let m;
|
|
17127
|
+
while ((m = re.exec(expr)) !== null) out.add(m[1] ?? m[2]);
|
|
17128
|
+
}
|
|
17127
17129
|
return out;
|
|
17128
17130
|
}
|
|
17129
17131
|
var EMPTY_STRING_SET = /* @__PURE__ */ new Set();
|
|
@@ -25665,7 +25667,7 @@ function isCanonical(text) {
|
|
|
25665
25667
|
}
|
|
25666
25668
|
|
|
25667
25669
|
// src/index.ts
|
|
25668
|
-
var UPG_VERSION = "0.8.
|
|
25670
|
+
var UPG_VERSION = "0.8.10";
|
|
25669
25671
|
var UPG_FORMAT_VERSION = "0.4.0";
|
|
25670
25672
|
var MARKDOWN_FORMAT_VERSION = "0.1";
|
|
25671
25673
|
var UPG_TYPES = getTypes();
|