@storm-software/untyped 0.11.21 → 0.11.23

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,15 +1,15 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk73TYVR4Dcjs = require('./chunk-73TYVR4D.cjs');
4
+ var _chunk6FHSCEZPcjs = require('./chunk-6FHSCEZP.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkPBRGYMWBcjs = require('./chunk-PBRGYMWB.cjs');
9
+ var _chunkIOAPOECLcjs = require('./chunk-IOAPOECL.cjs');
10
10
 
11
11
  // src/generators/markdown.ts
12
- _chunkPBRGYMWBcjs.init_cjs_shims.call(void 0, );
12
+ _chunkIOAPOECLcjs.init_cjs_shims.call(void 0, );
13
13
  var _promises = require('fs/promises');
14
14
  function generateMarkdown(schema) {
15
15
  return `
@@ -20,7 +20,7 @@ ${generateMarkdownLevel(schema, schema.title || "", "#").join("\n")}
20
20
 
21
21
  `;
22
22
  }
23
- _chunkPBRGYMWBcjs.__name.call(void 0, generateMarkdown, "generateMarkdown");
23
+ _chunkIOAPOECLcjs.__name.call(void 0, generateMarkdown, "generateMarkdown");
24
24
  function generateMarkdownLevel(schema, title, level) {
25
25
  const lines = [];
26
26
  lines.push(`${level} ${title}`);
@@ -44,14 +44,14 @@ function generateMarkdownLevel(schema, title, level) {
44
44
  }
45
45
  return lines;
46
46
  }
47
- _chunkPBRGYMWBcjs.__name.call(void 0, generateMarkdownLevel, "generateMarkdownLevel");
47
+ _chunkIOAPOECLcjs.__name.call(void 0, generateMarkdownLevel, "generateMarkdownLevel");
48
48
  function generateMarkdownFile(schema, file, config) {
49
49
  try {
50
- const declarations = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "md");
51
- _chunk73TYVR4Dcjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
50
+ const declarations = _chunkIOAPOECLcjs.getOutputFile.call(void 0, file, "md");
51
+ _chunk6FHSCEZPcjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
52
52
  return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema));
53
53
  } catch (error) {
54
- _chunk73TYVR4Dcjs.writeError.call(void 0, `Error writing markdown file for ${file.name}
54
+ _chunk6FHSCEZPcjs.writeError.call(void 0, `Error writing markdown file for ${file.name}
55
55
 
56
56
  Error:
57
57
  ${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
@@ -63,7 +63,7 @@ ${JSON.stringify(schema)}
63
63
  throw error;
64
64
  }
65
65
  }
66
- _chunkPBRGYMWBcjs.__name.call(void 0, generateMarkdownFile, "generateMarkdownFile");
66
+ _chunkIOAPOECLcjs.__name.call(void 0, generateMarkdownFile, "generateMarkdownFile");
67
67
 
68
68
 
69
69