@unified-product-graph/core 0.14.0 → 0.14.1
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.cjs +13 -3
- 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 +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -21884,7 +21884,7 @@ declare function isCanonical(text: string): boolean;
|
|
|
21884
21884
|
* it stamps the `upg_version` field of every `.upg` file written by the SDK.
|
|
21885
21885
|
* The `check:version-lockstep` gate enforces this at release time.
|
|
21886
21886
|
*/
|
|
21887
|
-
declare const UPG_VERSION: "0.14.
|
|
21887
|
+
declare const UPG_VERSION: "0.14.1";
|
|
21888
21888
|
/**
|
|
21889
21889
|
* The `.upg` JSON document format version. Written to the `upg_version` field.
|
|
21890
21890
|
* Evolves independently from `UPG_VERSION` (the catalogue version).
|
package/dist/index.d.ts
CHANGED
|
@@ -21884,7 +21884,7 @@ declare function isCanonical(text: string): boolean;
|
|
|
21884
21884
|
* it stamps the `upg_version` field of every `.upg` file written by the SDK.
|
|
21885
21885
|
* The `check:version-lockstep` gate enforces this at release time.
|
|
21886
21886
|
*/
|
|
21887
|
-
declare const UPG_VERSION: "0.14.
|
|
21887
|
+
declare const UPG_VERSION: "0.14.1";
|
|
21888
21888
|
/**
|
|
21889
21889
|
* The `.upg` JSON document format version. Written to the `upg_version` field.
|
|
21890
21890
|
* Evolves independently from `UPG_VERSION` (the catalogue version).
|
package/dist/index.js
CHANGED
|
@@ -28969,7 +28969,7 @@ function validateExpression(expr) {
|
|
|
28969
28969
|
}
|
|
28970
28970
|
|
|
28971
28971
|
// src/format/canonical.ts
|
|
28972
|
-
import
|
|
28972
|
+
import * as nodeCrypto from "crypto";
|
|
28973
28973
|
var UPG_CANONICAL_FORMAT_VERSION = "1.0.0";
|
|
28974
28974
|
var INTEGRITY_HASH_PRIMITIVE = "sha256";
|
|
28975
28975
|
var INTEGRITY_DIGEST_HEX = 32;
|
|
@@ -29145,7 +29145,7 @@ function portfolioBody(doc) {
|
|
|
29145
29145
|
function computeBodyChecksum(doc) {
|
|
29146
29146
|
const body = isPortfolio(doc) ? portfolioBody(doc) : singleBody(doc);
|
|
29147
29147
|
const content = JSON.stringify(body);
|
|
29148
|
-
return createHash(INTEGRITY_HASH_PRIMITIVE).update(content).digest("hex").slice(0, INTEGRITY_DIGEST_HEX);
|
|
29148
|
+
return nodeCrypto.createHash(INTEGRITY_HASH_PRIMITIVE).update(content).digest("hex").slice(0, INTEGRITY_DIGEST_HEX);
|
|
29149
29149
|
}
|
|
29150
29150
|
function isPortfolio(doc) {
|
|
29151
29151
|
return doc.type === "portfolio" || "cross_edges" in doc;
|
|
@@ -29283,7 +29283,7 @@ function isCanonical(text) {
|
|
|
29283
29283
|
}
|
|
29284
29284
|
|
|
29285
29285
|
// src/index.ts
|
|
29286
|
-
var UPG_VERSION = "0.14.
|
|
29286
|
+
var UPG_VERSION = "0.14.1";
|
|
29287
29287
|
var UPG_FORMAT_VERSION = "0.4.0";
|
|
29288
29288
|
var MARKDOWN_FORMAT_VERSION = "0.1";
|
|
29289
29289
|
var UPG_TYPES = getTypes();
|