@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 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 = 'class' | 'interface' | 'enum';
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('./out.js');
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
@@ -1 +1,3 @@
1
- export {};
1
+ declare var dartNodeIsActuallyNode: boolean;
2
+ declare var self: any;
3
+ declare var url: any;