arcadible 0.1.36 → 0.1.37

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/bin/arc-deploy.js CHANGED
@@ -288,13 +288,12 @@ const start = function (argv) {
288
288
  sw.stop(true);
289
289
  sw = new SpinnerWheel("Checking... %s");
290
290
  // git deploys need no login: anyone who can push to the repository can
291
- // release, and the Arcadible GitHub App publishes the release. Waiting
292
- // reads the release, which needs the game's owner, so a git deploy
293
- // that isn't logged in just doesn't wait.
291
+ // release, and the Arcadible GitHub App publishes the release. The
292
+ // account, when there is one, checks the owner's repository is
293
+ // connected, and waits for the release, which needs the game's owner,
294
+ // so a git deploy that isn't logged in neither checks nor waits.
294
295
  if (git) {
295
- return argv.wait
296
- ? whoamiIfAny({ handler: handler({ json, pb, quiet, sw }) })
297
- : null;
296
+ return whoamiIfAny({ handler: handler({ json, pb, quiet, sw }) });
298
297
  }
299
298
  return whoami({ handler: handler({ json, pb, quiet, sw }) });
300
299
  })
package/package.json CHANGED
@@ -75,5 +75,5 @@
75
75
  "scripts": {
76
76
  "test": "node --test \"test/**/*.test.js\""
77
77
  },
78
- "version": "0.1.36"
78
+ "version": "0.1.37"
79
79
  }
@@ -12,6 +12,10 @@ const strs = require("../util/strs");
12
12
  const deepCompact = objs.deepCompact;
13
13
  const trimWhitespace = strs.trimWhitespace;
14
14
 
15
+ // [define]
16
+
17
+ const COMMENT = 8;
18
+
15
19
  // [function]
16
20
 
17
21
  // a title with a parenthesized suffix, `Title (Short)`, as its two parts.
@@ -28,9 +32,18 @@ const text = function (node) {
28
32
 
29
33
  // [function]
30
34
 
35
+ // nodes as HTML. A comment has no `outerHTML`, so it's written back as one,
36
+ // for validation to report, rather than as its text.
31
37
  const html = function (nodes) {
32
38
  return trimWhitespace(
33
- nodes.map((node) => node.outerHTML ?? node.textContent).join(""),
39
+ nodes
40
+ .map((node) => {
41
+ if (node.nodeType === COMMENT) {
42
+ return `<!--${node.textContent}-->`;
43
+ }
44
+ return node.outerHTML ?? node.textContent;
45
+ })
46
+ .join(""),
34
47
  );
35
48
  };
36
49