@primmel/primmel 1.21.19 → 1.21.20
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/src/check.d.ts.map +1 -1
- package/dist/src/check.js +0 -27
- package/dist/src/check.js.map +1 -1
- package/dist/src/export/retrieval.d.ts +1 -1
- package/dist/src/export/retrieval.d.ts.map +1 -1
- package/dist/src/export/retrieval.js +0 -79
- package/dist/src/export/retrieval.js.map +1 -1
- package/dist/src/model-diff.d.ts.map +1 -1
- package/dist/src/model-diff.js +0 -1
- package/dist/src/model-diff.js.map +1 -1
- package/dist/src/ser-des/config/index.d.ts.map +1 -1
- package/dist/src/ser-des/config/index.js +0 -1
- package/dist/src/ser-des/config/index.js.map +1 -1
- package/dist/src/ser-des/config/subject.d.ts +1 -9
- package/dist/src/ser-des/config/subject.d.ts.map +1 -1
- package/dist/src/ser-des/config/subject.js +1 -181
- package/dist/src/ser-des/config/subject.js.map +1 -1
- package/dist/src/ser-des/package.d.ts.map +1 -1
- package/dist/src/ser-des/package.js +0 -1
- package/dist/src/ser-des/package.js.map +1 -1
- package/dist/src/ser-des/parse.d.ts.map +1 -1
- package/dist/src/ser-des/parse.js +0 -1
- package/dist/src/ser-des/parse.js.map +1 -1
- package/dist/src/ser-des/types.d.ts +1 -2
- package/dist/src/ser-des/types.d.ts.map +1 -1
- package/dist/src/types/Artifact.d.ts +2 -3
- package/dist/src/types/Artifact.d.ts.map +1 -1
- package/dist/src/types/Artifact.js +2 -3
- package/dist/src/types/Artifact.js.map +1 -1
- package/dist/src/types/Standard.d.ts +1 -2
- package/dist/src/types/Standard.d.ts.map +1 -1
- package/dist/src/types/Subject.d.ts +0 -43
- package/dist/src/types/Subject.d.ts.map +1 -1
- package/dist-browser/index.mjs +644 -722
- package/dist-cli/primmel.mjs +19 -343
- package/package.json +1 -1
package/dist/src/check.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAmYA,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAW3B,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAsE7C,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB;yEACqE;IACrE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAChC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../../src/check.ts"],"names":[],"mappings":"AAmYA,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAW3B,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAsE7C,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB;yEACqE;IACrE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;IAChC;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACtC;;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B,eAAe,CAAC,QAAQ,EAAE,QAAQ,GAAG,UAAU,EAAE,CA0HhE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,GACjB,UAAU,EAAE,CAuNd"}
|
package/dist/src/check.js
CHANGED
|
@@ -447,8 +447,6 @@ const IDENTITY_PREFIXES = [
|
|
|
447
447
|
const DIM_ALIASES = {
|
|
448
448
|
humidity_class: 'humidity_symbol',
|
|
449
449
|
};
|
|
450
|
-
/** A bare numeric literal (same shape as ser-des/config/quantity.ts NUMERIC). */
|
|
451
|
-
const NUMERIC_TOKEN = /^-?\d+(\.\d+)?([eE][+-]?\d+)?$/;
|
|
452
450
|
function isIdentityPath(path) {
|
|
453
451
|
return IDENTITY_PREFIXES.some(p => path.startsWith(p));
|
|
454
452
|
}
|
|
@@ -4680,26 +4678,6 @@ function checkPackage(dir, options = {}) {
|
|
|
4680
4678
|
// C32/C33 — condition-set entries. C32: a NUMERIC entry value (with or
|
|
4681
4679
|
// without tolerance) stated without a unit is a bare physical quantity —
|
|
4682
4680
|
// INV-1 (free-text values like "local ambient" stay legal). C33: the
|
|
4683
|
-
// entry's unit must measure the entry's declared quantity kind.
|
|
4684
|
-
for (const cs of standard.conditionSets ?? []) {
|
|
4685
|
-
for (const e of cs.entries ?? []) {
|
|
4686
|
-
if (!e.unit) {
|
|
4687
|
-
if (NUMERIC_TOKEN.test(e.value)) {
|
|
4688
|
-
err('C32', `condition_set ${cs.id}: entry "${e.quantityKind}" is a bare physical value — a numeric condition value carries a unit — INV-1: no bare numbers (inv1-no-bare-quantity)`);
|
|
4689
|
-
}
|
|
4690
|
-
continue;
|
|
4691
|
-
}
|
|
4692
|
-
const eKind = kindOfUnit(e.unit);
|
|
4693
|
-
if (eKind === undefined) {
|
|
4694
|
-
if (registersExist) {
|
|
4695
|
-
warn('C33', `condition_set ${cs.id}: entry "${e.quantityKind}" carries unit "${e.unit}", which no quantity_register declares (quantity-coherence)`);
|
|
4696
|
-
}
|
|
4697
|
-
}
|
|
4698
|
-
else if (kindDecl.has(e.quantityKind) && eKind !== e.quantityKind) {
|
|
4699
|
-
err('C33', `condition_set ${cs.id}: entry "${e.quantityKind}" carries unit "${e.unit}" (kind ${eKind}) — the unit does not measure the entry's quantity kind (quantity-coherence)`);
|
|
4700
|
-
}
|
|
4701
|
-
}
|
|
4702
|
-
}
|
|
4703
4681
|
// C33 — symbols and verdict quantities: a declared quantity_kind must
|
|
4704
4682
|
// agree with the declared unit's kind.
|
|
4705
4683
|
const unitables = [
|
|
@@ -6616,7 +6594,6 @@ function checkPackage(dir, options = {}) {
|
|
|
6616
6594
|
collect('attribute_definition', standard.attributeDefinitions ?? []);
|
|
6617
6595
|
collect('capability', standard.capabilities ?? []);
|
|
6618
6596
|
collect('behavior', standard.behaviors ?? []);
|
|
6619
|
-
collect('condition_set', standard.conditionSets ?? []);
|
|
6620
6597
|
collect('requirement', standard.requirements ?? []);
|
|
6621
6598
|
collect('conformance_test', standard.conformanceTests ?? []);
|
|
6622
6599
|
collect('form', standard.forms ?? []);
|
|
@@ -7272,7 +7249,6 @@ function checkSpellingCodes(standard) {
|
|
|
7272
7249
|
'attributeDefinitions',
|
|
7273
7250
|
'capabilities',
|
|
7274
7251
|
'behaviors',
|
|
7275
|
-
'conditionSets',
|
|
7276
7252
|
'subjects',
|
|
7277
7253
|
'referenceMaterials',
|
|
7278
7254
|
'artifactDefinitions',
|
|
@@ -7515,9 +7491,6 @@ function checkDeclaredPredicates(standard) {
|
|
|
7515
7491
|
for (const s of standard.testSequences ?? []) {
|
|
7516
7492
|
visit(`test_sequence ${s.id}`, s.refs);
|
|
7517
7493
|
}
|
|
7518
|
-
for (const c of standard.conditionSets ?? []) {
|
|
7519
|
-
visit(`condition_set ${c.id}`, c.refs);
|
|
7520
|
-
}
|
|
7521
7494
|
for (const i of standard.instruments ?? []) {
|
|
7522
7495
|
visit(`instrument ${i.id}`, i.refs);
|
|
7523
7496
|
}
|