@cparra/apex-reflection 2.17.1 → 2.18.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/index.d.ts +2 -1
- package/dist/index.js +8 -2
- package/dist/out.d.ts +3 -1
- package/dist/out.js +12740 -9702
- package/package.json +9 -4
- package/__tests__/end-to-end.test.ts +0 -426
- package/index.ts +0 -192
- package/jest.config.js +0 -11
- package/out.js +0 -17448
- package/tsconfig.json +0 -13
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function reflect(declarationBody: string): ReflectionResult;
|
|
2
|
+
export declare function reflectAsync(declarationBody: string): Promise<ReflectionResult>;
|
|
2
3
|
export interface ParamAnnotation {
|
|
3
4
|
bodyLines: string[];
|
|
4
5
|
paramName: string;
|
|
@@ -113,7 +114,7 @@ export interface ReflectionResult {
|
|
|
113
114
|
export interface ParsingError {
|
|
114
115
|
message: string;
|
|
115
116
|
}
|
|
116
|
-
type TypeName =
|
|
117
|
+
type TypeName = "class" | "interface" | "enum";
|
|
117
118
|
export type Type = InterfaceMirror | ClassMirror | EnumMirror;
|
|
118
119
|
export interface EnumMirror {
|
|
119
120
|
annotations: Annotation[];
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.reflect = void 0;
|
|
4
|
-
require(
|
|
3
|
+
exports.reflectAsync = exports.reflect = void 0;
|
|
4
|
+
require("./out.js");
|
|
5
5
|
function reflect(declarationBody) {
|
|
6
6
|
// @ts-expect-error "reflect" is added to self by the "out" module
|
|
7
7
|
return JSON.parse(self.reflect(declarationBody));
|
|
8
8
|
}
|
|
9
9
|
exports.reflect = reflect;
|
|
10
|
+
async function reflectAsync(declarationBody) {
|
|
11
|
+
// @ts-expect-error "reflectAsync" is added to self by the "out" module
|
|
12
|
+
const result = await self.reflectAsync(declarationBody);
|
|
13
|
+
return JSON.parse(result);
|
|
14
|
+
}
|
|
15
|
+
exports.reflectAsync = reflectAsync;
|
package/dist/out.d.ts
CHANGED