@workos/oagen 0.5.0 → 0.6.0
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/dist/cli/index.mjs +357 -12
- package/dist/cli/index.mjs.map +1 -1
- package/dist/compat/index.d.mts +1 -1
- package/dist/compat/index.mjs +10 -1
- package/dist/compat/index.mjs.map +1 -1
- package/dist/{diff-CSy3g-Bq.mjs → diff-CltJMcwG.mjs} +265 -10
- package/dist/diff-CltJMcwG.mjs.map +1 -0
- package/dist/index.d.mts +41 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +92 -2
- package/dist/index.mjs.map +1 -1
- package/dist/scripts/smoke/baseline.mjs +90 -1
- package/dist/scripts/smoke/baseline.mjs.map +1 -1
- package/dist/smoke.mjs +90 -1
- package/dist/smoke.mjs.map +1 -1
- package/dist/{types-D84LjrVG.d.mts → types-C7g5sLuX.d.mts} +6 -1
- package/dist/types-C7g5sLuX.d.mts.map +1 -0
- package/dist/verify/index.d.mts +1 -1
- package/dist/verify/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/diff-CSy3g-Bq.mjs.map +0 -1
- package/dist/types-D84LjrVG.d.mts.map +0 -1
package/dist/compat/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ApiField, Q as ApiEnum, X as Addition, Z as ApiClass, at as ApiTypeAlias, ct as LanguageHints, dt as Violation, et as ApiInterface, ft as ViolationCategory, it as ApiSurface, lt as MethodOverlay, nt as ApiParam, ot as DiffResult, pt as ViolationSeverity, rt as ApiProperty, st as Extractor, t as ApiSpec, tt as ApiMethod, ut as OverlayLookup } from "../types-
|
|
1
|
+
import { $ as ApiField, Q as ApiEnum, X as Addition, Z as ApiClass, at as ApiTypeAlias, ct as LanguageHints, dt as Violation, et as ApiInterface, ft as ViolationCategory, it as ApiSurface, lt as MethodOverlay, nt as ApiParam, ot as DiffResult, pt as ViolationSeverity, rt as ApiProperty, st as Extractor, t as ApiSpec, tt as ApiMethod, ut as OverlayLookup } from "../types-C7g5sLuX.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/compat/extractor-registry.d.ts
|
|
4
4
|
declare function registerExtractor(extractor: Extractor): void;
|
package/dist/compat/index.mjs
CHANGED
|
@@ -164,9 +164,17 @@ function extractClass(sym, checker) {
|
|
|
164
164
|
const methods = {};
|
|
165
165
|
const properties = {};
|
|
166
166
|
const constructorParams = [];
|
|
167
|
+
let deprecationMessage;
|
|
167
168
|
const declarations = sym.getDeclarations();
|
|
168
169
|
if (declarations) {
|
|
169
170
|
for (const decl of declarations) if (ts.isClassDeclaration(decl)) {
|
|
171
|
+
const deprecatedTag = ts.getJSDocDeprecatedTag(decl);
|
|
172
|
+
if (deprecatedTag) {
|
|
173
|
+
const comment = deprecatedTag.comment;
|
|
174
|
+
if (typeof comment === "string") deprecationMessage = comment.trim() || "";
|
|
175
|
+
else if (Array.isArray(comment)) deprecationMessage = comment.map((c) => c.text).join("").trim() || "";
|
|
176
|
+
else deprecationMessage = "";
|
|
177
|
+
}
|
|
170
178
|
for (const member of decl.members) if (ts.isConstructorDeclaration(member)) for (const param of member.parameters) {
|
|
171
179
|
const paramName = param.name.getText();
|
|
172
180
|
const paramType = param.type ? checker.typeToString(checker.getTypeFromTypeNode(param.type)) : "any";
|
|
@@ -210,7 +218,8 @@ function extractClass(sym, checker) {
|
|
|
210
218
|
name: sym.name,
|
|
211
219
|
methods: sortRecord(methods),
|
|
212
220
|
properties: sortRecord(properties),
|
|
213
|
-
constructorParams
|
|
221
|
+
constructorParams,
|
|
222
|
+
...deprecationMessage !== void 0 && { deprecationMessage }
|
|
214
223
|
};
|
|
215
224
|
}
|
|
216
225
|
function extractParam(sym, checker) {
|