mystmd 1.3.17__tar.gz → 1.3.18__tar.gz

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.
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: mystmd
3
- Version: 1.3.17
3
+ Version: 1.3.18
4
4
  Summary: Command line tools for MyST Markdown
5
5
  Project-URL: Homepage, https://github.com/jupyter-book/mystmd
6
6
  Project-URL: Bug Tracker, https://github.com/jupyter-book/mystmd/issues
7
7
  Project-URL: Repository, https://github.com/jupyter-book/mystmd.git
8
8
  Author-email: Rowan Cockett <rowan@curvenote.com>
9
- License-Expression: MIT
10
- License-File: LICENSE
9
+ License: MIT
11
10
  Keywords: latex,markdown,pdf-generation,science-research,scientific-visualization,writing-software
12
11
  Classifier: Intended Audience :: Science/Research
13
12
  Classifier: License :: OSI Approved :: MIT License
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mystmd",
3
- "version": "1.3.17",
3
+ "version": "1.3.18",
4
4
  "description": "Command line tools for MyST Markdown",
5
5
  "author": "Rowan Cockett <rowan@curvenote.com>",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  "commander": "^10.0.1",
46
46
  "core-js": "^3.31.1",
47
47
  "js-yaml": "^4.1.0",
48
- "myst-cli": "^1.3.17"
48
+ "myst-cli": "^1.3.18"
49
49
  }
50
50
  }
@@ -193891,7 +193891,7 @@ var {
193891
193891
  } = import_index.default;
193892
193892
 
193893
193893
  // src/version.ts
193894
- var version = "1.3.17";
193894
+ var version = "1.3.18";
193895
193895
  var version_default = version;
193896
193896
 
193897
193897
  // ../myst-cli/dist/build/build.js
@@ -198480,11 +198480,12 @@ var URL_ID_LOOKUP = Object.fromEntries(Object.values(ID_LICENSE_LOOKUP).filter((
198480
198480
  return [cleanUrl(value.url), value.id];
198481
198481
  }));
198482
198482
  function validateLicense(input3, opts) {
198483
+ var _a6;
198483
198484
  if (typeof input3 === "string") {
198484
198485
  const value2 = validateString(input3, opts);
198485
198486
  if (value2 === void 0)
198486
198487
  return void 0;
198487
- const valueSpdx = correctLicense(value2);
198488
+ const valueSpdx = value2.length < 15 ? correctLicense(value2) : void 0;
198488
198489
  if (URL_ID_LOOKUP[cleanUrl(value2)]) {
198489
198490
  input3 = { id: URL_ID_LOOKUP[cleanUrl(value2)] };
198490
198491
  } else if (isUrl(value2)) {
@@ -198516,7 +198517,17 @@ function validateLicense(input3, opts) {
198516
198517
  }
198517
198518
  output2.id = idSpdx !== null && idSpdx !== void 0 ? idSpdx : id;
198518
198519
  } else {
198519
- validationWarning(`no license ID - using a SPDX license ID is recommended, see https://spdx.org/licenses/`, opts);
198520
+ if (value.url) {
198521
+ const url = (_a6 = validateUrl(value.url, { property: "", messages: {} })) !== null && _a6 !== void 0 ? _a6 : "";
198522
+ const idFromUrl = URL_ID_LOOKUP[cleanUrl(url)];
198523
+ if (idFromUrl) {
198524
+ output2.id = idFromUrl;
198525
+ value.url = ID_LICENSE_LOOKUP[idFromUrl].url;
198526
+ }
198527
+ }
198528
+ if (!output2.id) {
198529
+ validationWarning(`no license ID - using a SPDX license ID is recommended, see https://spdx.org/licenses/`, opts);
198530
+ }
198520
198531
  }
198521
198532
  const expected = output2.id ? ID_LICENSE_LOOKUP[output2.id] : void 0;
198522
198533
  if (value.url != null) {
@@ -289404,7 +289415,7 @@ var import_node_path15 = __toESM(require("path"), 1);
289404
289415
  var import_nbtx = __toESM(require_cjs2(), 1);
289405
289416
 
289406
289417
  // ../myst-cli/dist/version.js
289407
- var version2 = "1.3.17";
289418
+ var version2 = "1.3.18";
289408
289419
  var version_default2 = version2;
289409
289420
 
289410
289421
  // ../myst-cli/dist/utils/headers.js
@@ -332180,7 +332191,7 @@ var Session = class {
332180
332191
  }).catch(() => null);
332181
332192
  }
332182
332193
  showUpgradeNotice() {
332183
- if (this._shownUpgrade || !this._latestVersion || version_default2 === this._latestVersion)
332194
+ if (this._shownUpgrade || !this._latestVersion || version_default2 === this._latestVersion || isWhiteLabelled())
332184
332195
  return;
332185
332196
  this.log.info(logUpdateAvailable({
332186
332197
  current: version_default2,
File without changes
File without changes
File without changes
File without changes
File without changes