@storm-software/untyped 0.8.7 → 0.8.8

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.
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ var _chunkD7L4X6XIcjs = require('./chunk-D7L4X6XI.cjs');
4
+
5
+ // src/generators/index.ts
6
+ _chunkD7L4X6XIcjs.init_cjs_shims.call(void 0, );
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-S36U2TKG.js";
4
+ } from "./chunk-CFOAJWAE.js";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile,
8
8
  init_esm_shims
9
- } from "./chunk-EIXSLKJ6.js";
9
+ } from "./chunk-2MAJIAMM.js";
10
10
 
11
11
  // src/generators/markdown.ts
12
12
  init_esm_shims();
@@ -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 _chunkYU5YP27Qcjs = require('./chunk-YU5YP27Q.cjs');
4
+ var _chunkXFMXMHTDcjs = require('./chunk-XFMXMHTD.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkVCSZBLKUcjs = require('./chunk-VCSZBLKU.cjs');
9
+ var _chunkD7L4X6XIcjs = require('./chunk-D7L4X6XI.cjs');
10
10
 
11
11
  // src/generators/dts.ts
12
- _chunkVCSZBLKUcjs.init_cjs_shims.call(void 0, );
12
+ _chunkD7L4X6XIcjs.init_cjs_shims.call(void 0, );
13
13
  var _promises = require('fs/promises');
14
14
  var _untyped = require('untyped');
15
15
  function generateDeclaration(schema) {
@@ -25,14 +25,14 @@ ${_untyped.generateTypes.call(void 0, schema, {
25
25
 
26
26
  `;
27
27
  }
28
- _chunkVCSZBLKUcjs.__name.call(void 0, generateDeclaration, "generateDeclaration");
28
+ _chunkD7L4X6XIcjs.__name.call(void 0, generateDeclaration, "generateDeclaration");
29
29
  function generateDeclarationFile(schema, file, config) {
30
30
  try {
31
- const declarations = _chunkVCSZBLKUcjs.getOutputFile.call(void 0, file, "d.ts");
32
- _chunkYU5YP27Qcjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
31
+ const declarations = _chunkD7L4X6XIcjs.getOutputFile.call(void 0, file, "d.ts");
32
+ _chunkXFMXMHTDcjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
33
33
  return _promises.writeFile.call(void 0, declarations, generateDeclaration(schema));
34
34
  } catch (error) {
35
- _chunkYU5YP27Qcjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
35
+ _chunkXFMXMHTDcjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
36
36
 
37
37
  Error:
38
38
  ${_optionalChain([error, 'optionalAccess', _4 => _4.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _5 => _5.stack]) ? `
@@ -44,7 +44,7 @@ ${JSON.stringify(schema)}
44
44
  throw error;
45
45
  }
46
46
  }
47
- _chunkVCSZBLKUcjs.__name.call(void 0, generateDeclarationFile, "generateDeclarationFile");
47
+ _chunkD7L4X6XIcjs.__name.call(void 0, generateDeclarationFile, "generateDeclarationFile");
48
48
 
49
49
 
50
50
 
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  generateDeclarationFile
3
- } from "./chunk-ELSZYSKI.js";
3
+ } from "./chunk-MNZPWZ6S.js";
4
4
  import {
5
5
  generateJsonSchemaFile
6
- } from "./chunk-TJ5YM7SW.js";
6
+ } from "./chunk-ZRWTUFWM.js";
7
7
  import {
8
8
  generateMarkdownFile
9
- } from "./chunk-B5PWE2FK.js";
9
+ } from "./chunk-ZLUCZD2A.js";
10
10
  import {
11
11
  isVerbose,
12
12
  writeError,
13
13
  writeTrace
14
- } from "./chunk-S36U2TKG.js";
14
+ } from "./chunk-CFOAJWAE.js";
15
15
  import {
16
16
  __commonJS,
17
17
  __name,
18
18
  __toESM,
19
19
  init_esm_shims,
20
20
  joinPaths
21
- } from "./chunk-EIXSLKJ6.js";
21
+ } from "./chunk-2MAJIAMM.js";
22
22
 
23
23
  // ../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js
24
24
  var require_balanced_match = __commonJS({
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-S36U2TKG.js";
4
+ } from "./chunk-CFOAJWAE.js";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile,
8
8
  init_esm_shims
9
- } from "./chunk-EIXSLKJ6.js";
9
+ } from "./chunk-2MAJIAMM.js";
10
10
 
11
11
  // src/generators/json-schema.ts
12
12
  init_esm_shims();