meca 1.0.9 → 1.0.11

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/README.md CHANGED
@@ -151,6 +151,6 @@ This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908
151
151
  <p style="text-align: center; color: #aaa; padding-top: 50px">
152
152
  Made with love by
153
153
  <a href="https://curvenote.com" target="_blank" style="color: #aaa">
154
- <img src="https://curvenote.dev/images/icon.png" style="height: 1em" /> Curvenote
154
+ <img src="https://cdn.curvenote.com/brand/logo-blue-icon.png" style="height: 1em" /> Curvenote
155
155
  </a>
156
156
  </p>
package/dist/meca.cjs CHANGED
@@ -13042,7 +13042,7 @@ var {
13042
13042
  } = import_index.default;
13043
13043
 
13044
13044
  // src/version.ts
13045
- var version = "1.0.9";
13045
+ var version = "1.0.11";
13046
13046
  var version_default = version;
13047
13047
 
13048
13048
  // ../../node_modules/myst-cli-utils/node_modules/chalk/source/vendor/ansi-styles/index.js
@@ -13613,7 +13613,7 @@ function getLogLevel(level = LogLevel.info) {
13613
13613
  const useLevel = level ? LogLevel.debug : LogLevel.info;
13614
13614
  return useLevel;
13615
13615
  }
13616
- function clirun(func, cli) {
13616
+ function clirun(func, cli, runOptions) {
13617
13617
  return async (...args) => {
13618
13618
  const opts = cli.program.opts();
13619
13619
  const logger = chalkLogger(getLogLevel(opts === null || opts === void 0 ? void 0 : opts.debug));
@@ -13631,6 +13631,12 @@ ${error === null || error === void 0 ? void 0 : error.stack}
13631
13631
  logger.error(error.message);
13632
13632
  process.exit(1);
13633
13633
  }
13634
+ if (typeof (runOptions === null || runOptions === void 0 ? void 0 : runOptions.keepAlive) === "function") {
13635
+ if (!runOptions.keepAlive(...args))
13636
+ process.exit(0);
13637
+ } else if (!(runOptions === null || runOptions === void 0 ? void 0 : runOptions.keepAlive)) {
13638
+ process.exit(0);
13639
+ }
13634
13640
  };
13635
13641
  }
13636
13642
  function tic() {
@@ -14218,6 +14224,9 @@ var Session = class {
14218
14224
  var _a;
14219
14225
  this.log = xmllintLogWrapper((_a = opts === null || opts === void 0 ? void 0 : opts.logger) !== null && _a !== void 0 ? _a : chalkLogger(LogLevel.debug));
14220
14226
  }
14227
+ fetch() {
14228
+ throw new Error("fetch not implemented on session");
14229
+ }
14221
14230
  };
14222
14231
  function getSession(logger) {
14223
14232
  return new Session({ logger });
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const version = "1.0.9";
1
+ declare const version = "1.0.11";
2
2
  export default version;
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,OAAO,UAAU,CAAC;AACxB,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,OAAO,WAAW,CAAC;AACzB,eAAe,OAAO,CAAC"}
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- const version = '1.0.9';
1
+ const version = '1.0.11';
2
2
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meca",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Types and utilities for working with MECA",
5
5
  "author": "Rowan Cockett <rowan@curvenote.com>",
6
6
  "homepage": "https://github.com/curvenote/jats",
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "adm-zip": "^0.5.10",
48
- "jats-utils": "^1.0.9",
49
- "jats-xml": "^1.0.9",
48
+ "jats-utils": "^1.0.11",
49
+ "jats-xml": "^1.0.11",
50
50
  "node-fetch": "^3.3.1",
51
51
  "unist-util-select": "^4.0.0",
52
52
  "xml-js": "^1.6.11"
@@ -59,8 +59,8 @@
59
59
  "@types/adm-zip": "^0.5.0",
60
60
  "chalk": "^5.2.0",
61
61
  "commander": "^10.0.1",
62
- "myst-cli-utils": "^2.0.0",
63
- "myst-common": "^1.0.0",
64
- "myst-frontmatter": "^1.0.0"
62
+ "myst-cli-utils": "^2.0.11",
63
+ "myst-common": "^1.7.5",
64
+ "myst-frontmatter": "^1.7.5"
65
65
  }
66
66
  }