@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
|
|
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)(
|
|
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';
|