@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.cjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/index.ts
|
|
@@ -29193,7 +29203,7 @@ function validateExpression(expr) {
|
|
|
29193
29203
|
}
|
|
29194
29204
|
|
|
29195
29205
|
// src/format/canonical.ts
|
|
29196
|
-
var
|
|
29206
|
+
var nodeCrypto = __toESM(require("crypto"), 1);
|
|
29197
29207
|
var UPG_CANONICAL_FORMAT_VERSION = "1.0.0";
|
|
29198
29208
|
var INTEGRITY_HASH_PRIMITIVE = "sha256";
|
|
29199
29209
|
var INTEGRITY_DIGEST_HEX = 32;
|
|
@@ -29369,7 +29379,7 @@ function portfolioBody(doc) {
|
|
|
29369
29379
|
function computeBodyChecksum(doc) {
|
|
29370
29380
|
const body = isPortfolio(doc) ? portfolioBody(doc) : singleBody(doc);
|
|
29371
29381
|
const content = JSON.stringify(body);
|
|
29372
|
-
return
|
|
29382
|
+
return nodeCrypto.createHash(INTEGRITY_HASH_PRIMITIVE).update(content).digest("hex").slice(0, INTEGRITY_DIGEST_HEX);
|
|
29373
29383
|
}
|
|
29374
29384
|
function isPortfolio(doc) {
|
|
29375
29385
|
return doc.type === "portfolio" || "cross_edges" in doc;
|
|
@@ -29507,7 +29517,7 @@ function isCanonical(text) {
|
|
|
29507
29517
|
}
|
|
29508
29518
|
|
|
29509
29519
|
// src/index.ts
|
|
29510
|
-
var UPG_VERSION = "0.14.
|
|
29520
|
+
var UPG_VERSION = "0.14.1";
|
|
29511
29521
|
var UPG_FORMAT_VERSION = "0.4.0";
|
|
29512
29522
|
var MARKDOWN_FORMAT_VERSION = "0.1";
|
|
29513
29523
|
var UPG_TYPES = getTypes();
|