@pubid/pubid 0.1.18 → 0.1.19

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.
@@ -315,6 +315,19 @@ const STAGE_MONTH_NUMBERS = {
315
315
  };
316
316
  function normalizeJointStageSpellings(input) {
317
317
  let cleaned = input;
318
+ // The three-way ISO-led list glues the language marker to the year
319
+ // ("ISO/IEC/IEEE 8802-1AC-2018(E)"): the spaced spelling is the
320
+ // language marker and drops, the glued one prints as parenthetical
321
+ // content. Re-spell the boundary (Ruby: Parser.normalize_input).
322
+ // Scoped to the three-way lists - the two-way IEC/IEEE copublished
323
+ // form keeps its glued (E) as identity ("…:2012(E)").
324
+ cleaned = cleaned.replace(/^((?:ISO\/IEC\/IEEE|IEEE\/ISO\/IEC|IEEE\/IEC\/ISO)\s+[^()]+?[^()\s])\(E\)$/, "$1 (E)");
325
+ // The stage-first joint draft's dash part carries a bare comma year
326
+ // ("IEC/IEEE FDIS P60780-323, 2015"): the joint route takes no bare
327
+ // year there and the copublished route claims the string, so drop
328
+ // the non-identity year and let the stage-first route read the dash
329
+ // part (the rendered face is the dot human).
330
+ cleaned = cleaned.replace(/^((?:IEC\/IEEE|IEEE\/IEC)\s+(?:FDIS|FCD|CDV|DIS|CD|WD|PWI|NP)\s+P\d+(?:-\d+)+),\s+\d{4}$/, "$1");
318
331
  // The IEEE-led joint list's dash/underscore stage tail carries a
319
332
  // month-name date ("IEEE/ISO/IEC P29119-2-DIS, December 2011"): the
320
333
  // generic route answers with a slashed copublisher, so re-spell the
@@ -104,7 +104,7 @@ export const UPDATE_CODES = [
104
104
  { plain: "ISO/IEC/IEEE DIS P16326/201x, December 2018", replacement: "ISO/IEC/IEEE DIS P16326-2018-12" },
105
105
  { plain: "ISO/IEC/IEEE/P21839, 2019(E)", replacement: "ISO/IEC/IEEE P21839-2019" },
106
106
  { plain: "ISO/IEC/IEEE CD2 P12207-2: 201x(E), February 2019", replacement: "ISO/IEC/IEEE CD2 P12207.2-2019-02" },
107
- { plain: "ISO/IEC/IEEE P42010.WD4:2019(E)", replacement: "ISO/IEC/IEEE P42010/D-4-2019" },
107
+ { plain: "ISO/IEC/IEEE P42010.WD4:2019(E)", replacement: "ISO/IEC/IEEE P42010.2019/D4" },
108
108
  { plain: "ISO/IEC/IEEE/P16085_DIS, March 2020", replacement: "ISO/IEC/IEEE DIS P16085-2020-03" },
109
109
  { plain: "ANSI/IEEE Std: Outdoor Apparatus Bushings", replacement: "ANSI/IEEE Std 21-1976-11" },
110
110
  { plain: "Draft National Electrical Safety Code, January 2016", replacement: "IEEE PC2-2016-01" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pubid/pubid",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "TypeScript PubID identifiers: resolution, normalization and canonical hashes for every identifier in the pubid-testsuite corpus (41 standards bodies), with a conformance runner mirroring the Ruby reference",
5
5
  "type": "module",
6
6
  "license": "MIT",