@tsofist/schema-forge 3.1.0 → 3.1.1

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,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDS_SUFFIX_METHOD_RES = exports.SDS_SUFFIX_METHOD_ARGS = exports.SDS_SUFFIX_MEMBER = exports.SDS_SUFFIX_API = exports.SchemaDefinitionInfoKind = void 0;
4
- const node_process_1 = require("node:process");
4
+ const process = require("node:process");
5
5
  const as_bool_1 = require("@tsofist/stem/lib/as-bool");
6
6
  /**
7
7
  * Kind of schema definition information
@@ -13,7 +13,7 @@ var SchemaDefinitionInfoKind;
13
13
  SchemaDefinitionInfoKind[SchemaDefinitionInfoKind["APIMethodResult"] = 2] = "APIMethodResult";
14
14
  SchemaDefinitionInfoKind[SchemaDefinitionInfoKind["APIMethodArguments"] = 3] = "APIMethodArguments";
15
15
  })(SchemaDefinitionInfoKind || (exports.SchemaDefinitionInfoKind = SchemaDefinitionInfoKind = {}));
16
- const LEGACY_DEFINITIONS = (0, as_bool_1.asBool)(node_process_1.env.SF_LEGACY_DEFINITIONS); // todo
16
+ const LEGACY_DEFINITIONS = (0, as_bool_1.asBool)((process.env || {}).SF_LEGACY_DEFINITIONS); // todo?
17
17
  exports.SDS_SUFFIX_API = LEGACY_DEFINITIONS ? '_InterfaceDeclaration' : '__APIInterface';
18
18
  exports.SDS_SUFFIX_MEMBER = '__APIMember';
19
19
  exports.SDS_SUFFIX_METHOD_ARGS = LEGACY_DEFINITIONS ? '_Args' : '__APIMethodArgs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsofist/schema-forge",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Generate JSON schema from TypeScript types",
5
5
  "author": "Andrew Berdnikov <tsofistgudmen@gmail.com>",
6
6
  "license": "LGPL-3.0",