@komaci/common-shared 242.1.5 → 242.1.7

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.
@@ -20,6 +20,7 @@ const allowListLibrariesRegex = [
20
20
  /^laf\/batchingPortable$/,
21
21
  /^lightning\/navigation$/,
22
22
  /^lightning\/base.*$/,
23
+ /^force\/ldsAdaptersUiapiGraphql$/,
23
24
  exports.isLocalHtmlImportReference,
24
25
  ];
25
26
  /**
@@ -257,6 +257,7 @@
257
257
  "blngperf3",
258
258
  "briefcase",
259
259
  "briefcasetest",
260
+ "broadcast_alert",
260
261
  "broadcast_sites",
261
262
  "builder_communities_nba",
262
263
  "builder_industries_arcgraph",
@@ -325,6 +326,8 @@
325
326
  "commercetax",
326
327
  "commonserviceexcellence",
327
328
  "commpay_mp",
329
+ "comms_msm",
330
+ "comms_msm_cmp",
328
331
  "community_article",
329
332
  "community_builder",
330
333
  "community_builder_test",
@@ -404,8 +407,10 @@
404
407
  "devopsimpkg7",
405
408
  "devopsimpkg8",
406
409
  "devopsimpkg9",
410
+ "discoveryframework",
407
411
  "dmvr",
408
412
  "dxp",
413
+ "dxp_action",
409
414
  "dxp_base",
410
415
  "dxp_builder",
411
416
  "dxp_content_layout",
@@ -415,6 +420,7 @@
415
420
  "dxp_form",
416
421
  "dxp_layout",
417
422
  "dxp_page_layout",
423
+ "dxp_records",
418
424
  "dxp_search",
419
425
  "dxp_styling",
420
426
  "dxp_util",
@@ -424,6 +430,7 @@
424
430
  "educationcloud",
425
431
  "educationcloud_scheduler",
426
432
  "eduint",
433
+ "edurfi",
427
434
  "eduscheduler",
428
435
  "einstein_assistant",
429
436
  "einstein_discovery",
@@ -433,6 +440,7 @@
433
440
  "embeddedService",
434
441
  "embedded_service",
435
442
  "embedded_service_iframe",
443
+ "enhanced_omni_bot",
436
444
  "environmenthub",
437
445
  "es_base_components",
438
446
  "es_block_builder",
@@ -531,9 +539,12 @@
531
539
  "hc8",
532
540
  "hc9",
533
541
  "hc9gs0",
542
+ "hc_contact_center",
543
+ "hc_crisis_center",
534
544
  "hc_slack_flows",
535
545
  "hcmainstgpu",
536
546
  "hcmainstguat",
547
+ "hcumprovider",
537
548
  "healthcare_crisis_center",
538
549
  "healthcloud",
539
550
  "healthcloud_crisis_center",
@@ -554,6 +565,7 @@
554
565
  "idxr_core",
555
566
  "ind_docgen_api",
556
567
  "industries_automotive",
568
+ "industries_automotive_omnistudio",
557
569
  "industries_cds_common",
558
570
  "industries_cib",
559
571
  "industries_clm",
@@ -612,6 +624,7 @@
612
624
  "lightningsnapin",
613
625
  "lmrdebug",
614
626
  "loyalty_member_engagement",
627
+ "loyalty_se",
615
628
  "lsttest",
616
629
  "ltngtools",
617
630
  "lwc",
@@ -782,7 +795,9 @@
782
795
  "runtime_revenue_billingbatchpayments",
783
796
  "runtime_revenue_billingbatchschedulers",
784
797
  "runtime_revenue_insights",
798
+ "runtime_revenue_intelligence",
785
799
  "runtime_revenue_products",
800
+ "runtime_revenue_rules",
786
801
  "runtime_sales_activities",
787
802
  "runtime_sales_activities_test",
788
803
  "runtime_sales_ade",
@@ -803,6 +818,8 @@
803
818
  "runtime_sales_linkedin",
804
819
  "runtime_sales_merge",
805
820
  "runtime_sales_multiaddedit",
821
+ "runtime_sales_opportunitysplit",
822
+ "runtime_sales_opportunitysplittest",
806
823
  "runtime_sales_pathassistant",
807
824
  "runtime_sales_pathassistanttest",
808
825
  "runtime_sales_pipelineboard",
@@ -821,15 +838,19 @@
821
838
  "runtime_service_omnichannel",
822
839
  "runtime_service_predictions",
823
840
  "runtime_service_scs",
841
+ "runtime_service_swarming",
824
842
  "runtime_service_trials",
825
843
  "runtime_service_trials_test",
826
844
  "runtime_service_workforce_engagement_config",
845
+ "runtime_ses_base",
846
+ "runtime_ses_ext",
827
847
  "runtime_slack_block",
828
848
  "runtime_workdotcom_qmgmt",
829
849
  "rypple_corp",
830
850
  "sales_bots",
831
851
  "sales_channel",
832
852
  "salesforceKomaci",
853
+ "sass_service_catalog",
833
854
  "sbaa",
834
855
  "sbaa1",
835
856
  "sbaa2",
@@ -921,6 +942,7 @@
921
942
  "setup_platform_sfdx",
922
943
  "setup_release_update",
923
944
  "setup_revenue_insights",
945
+ "setup_revenue_intelligence",
924
946
  "setup_sales_bot",
925
947
  "setup_sales_einstein",
926
948
  "setup_sales_einsteinForecasting",
@@ -988,6 +1010,8 @@
988
1010
  "stmpahins01",
989
1011
  "studioauratest",
990
1012
  "studiobrandingtest",
1013
+ "subledger_flow",
1014
+ "subledger_s_flow",
991
1015
  "supporttest",
992
1016
  "survey",
993
1017
  "survey_sentiment",
@@ -1,5 +1,11 @@
1
1
  {
2
2
  "lightning/uiRecordActionsApi": {
3
+ "getActionOverrides": {
4
+ "prime": {
5
+ "importPath": "lightning/unstable_uiRecordActionsApi",
6
+ "identifier": "unstable_getActionOverrides_imperative"
7
+ }
8
+ },
3
9
  "getRecordActions": {
4
10
  "prime": {
5
11
  "importPath": "lightning/unstable_uiRecordActionsApi",
@@ -24,7 +30,13 @@
24
30
  },
25
31
  "reducer": {
26
32
  "importPath": "laf/batchingPortable",
27
- "identifier": "RelatedListActionsBatchReducer"
33
+ "identifier": "RelatedListActionsBatchReducer",
34
+ "functions": {
35
+ "afterReduce": {
36
+ "name": "relatedListActionsBatchAfterReduce",
37
+ "filePath": "./scripts/reducer-codegen/after-reduce/relatedListActionsBatchAfterReduce.js"
38
+ }
39
+ }
28
40
  }
29
41
  }
30
42
  }
@@ -154,7 +166,21 @@
154
166
  },
155
167
  "reducer": {
156
168
  "importPath": "laf/batchingPortable",
157
- "identifier": "GetRecordBatchReducer"
169
+ "identifier": "GetRecordBatchReducer",
170
+ "functions": {
171
+ "afterReduce": {
172
+ "name": "getRecordBatchAfterReduce",
173
+ "filePath": "./scripts/reducer-codegen/after-reduce/getRecordBatchAfterReduce.js"
174
+ },
175
+ "groupByKey": {
176
+ "name": "getRecordBatchGroupByKey",
177
+ "filePath": "./scripts/reducer-codegen/group-by-key-function/getRecordBatchGroupByKey.js"
178
+ },
179
+ "isConfigBatchable": {
180
+ "name": "getRecordIsConfigBatchable",
181
+ "filePath": "./scripts/reducer-codegen/is-config-batchable/getRecordIsConfigBatchable.js"
182
+ }
183
+ }
158
184
  }
159
185
  }
160
186
  }
@@ -196,7 +222,13 @@
196
222
  },
197
223
  "reducer": {
198
224
  "importPath": "laf/batchingPortable",
199
- "identifier": "RelatedListInfoBatchReducer"
225
+ "identifier": "RelatedListInfoBatchReducer",
226
+ "functions": {
227
+ "groupByKey": {
228
+ "name": "relatedListInfoBatchGroupByKey",
229
+ "filePath": "./scripts/reducer-codegen/group-by-key-function/relatedListInfoBatchGroupByKey.js"
230
+ }
231
+ }
200
232
  }
201
233
  }
202
234
  },
@@ -238,6 +270,12 @@
238
270
  }
239
271
  },
240
272
  "lightning/uiSearchApi": {
273
+ "getSearchFilterMetadata": {
274
+ "prime": {
275
+ "importPath": "lightning/unstable_uiSearchApi",
276
+ "identifier": "unstable_getSearchFilterMetadata_imperative"
277
+ }
278
+ },
241
279
  "getSearchFilterOptions": {
242
280
  "prime": {
243
281
  "importPath": "lightning/unstable_uiSearchApi",
@@ -258,6 +296,12 @@
258
296
  }
259
297
  },
260
298
  "lightning/unstable_uiSearchApi": {
299
+ "unstable_getSearchFilterMetadata": {
300
+ "prime": {
301
+ "importPath": "lightning/unstable_uiSearchApi",
302
+ "identifier": "unstable_getSearchFilterMetadata_imperative"
303
+ }
304
+ },
261
305
  "unstable_getSearchFilterOptions": {
262
306
  "prime": {
263
307
  "importPath": "lightning/unstable_uiSearchApi",
@@ -277,6 +321,14 @@
277
321
  }
278
322
  }
279
323
  },
324
+ "lightning/uiLookupsApi": {
325
+ "getLookupMetadata": {
326
+ "prime": {
327
+ "importPath": "lightning/unstable_uiLookupsApi",
328
+ "identifier": "unstable_getLookupMetadata_imperative"
329
+ }
330
+ }
331
+ },
280
332
  "lightning/unstable_uiGraphQLApi": {
281
333
  "graphQL": {
282
334
  "prime": {
@@ -284,5 +336,13 @@
284
336
  "identifier": "unstable_graphQL_imperative"
285
337
  }
286
338
  }
339
+ },
340
+ "lightning/uiGraphQLApi": {
341
+ "unstable_graphql": {
342
+ "prime": {
343
+ "importPath": "force/ldsAdaptersUiapiGraphql",
344
+ "identifier": "graphql_imperative"
345
+ }
346
+ }
287
347
  }
288
348
  }
@@ -73,7 +73,7 @@ export declare const addNewImportFromAst: (referencedName: string, namespace: Im
73
73
  */
74
74
  export declare const updateAliasForImport: (lookupName: string, referencedName: string, namespace: ImportDetail, moduleMetadata: ModuleMetadata, originalImportName?: string) => void;
75
75
  /**
76
- * Searches the provided tempalte komaci doc map for a document that corresponds to the provided namesapce.
76
+ * Searches the provided template komaci doc map for a document that corresponds to the provided namesapce.
77
77
  * @param resourceName am imports resource name
78
78
  * @param templateKomaciDocMap a map of template komaci docs.
79
79
  */
@@ -21,6 +21,7 @@ const initModuleMetadataObject = () => ({
21
21
  adgs: new Map(),
22
22
  exports: {},
23
23
  templateKomaciDocMap: {},
24
+ hasRenderFunction: false,
24
25
  });
25
26
  exports.initModuleMetadataObject = initModuleMetadataObject;
26
27
  /**
@@ -33,7 +34,7 @@ const initAdgMetadataObject = (defaultGeneratedName) => ({
33
34
  properties: new Map(),
34
35
  functions: [],
35
36
  propertiesUsedInTemplate: new Set(),
36
- requiredAdgFactoryFunctions: new Set(),
37
+ requiredAdgFactoryFunctions: new Set([types_1.IdKeys.ADG_FUNC]),
37
38
  requiredCompositionFactoryFunctions: new Set(),
38
39
  hasSourceFile: false,
39
40
  });
@@ -277,7 +278,7 @@ const updateAliasForImport = (lookupName, referencedName, namespace, moduleMetad
277
278
  };
278
279
  exports.updateAliasForImport = updateAliasForImport;
279
280
  /**
280
- * Searches the provided tempalte komaci doc map for a document that corresponds to the provided namesapce.
281
+ * Searches the provided template komaci doc map for a document that corresponds to the provided namesapce.
281
282
  * @param resourceName am imports resource name
282
283
  * @param templateKomaciDocMap a map of template komaci docs.
283
284
  */
package/build/types.d.ts CHANGED
@@ -14,6 +14,7 @@ export declare enum IdKeys {
14
14
  SLOT_FUNC = "SLOT_FUNC",
15
15
  ELEMENT_FUNC = "ELEMENT_FUNC",
16
16
  ADG_FUNC = "ADG_FUNC",
17
+ RENDER_FUNC = "RENDER_FUNC",
17
18
  SLOT = "SLOT",
18
19
  COMPONENT_ID = "COMPONENT_ID",
19
20
  UNDEFINED = "UNDEFINED",
@@ -33,7 +34,8 @@ export declare enum IdKeys {
33
34
  BATCH_FUNC_NAME = "BATCH_FUNC_NAME",
34
35
  REDUCER_FUNC_ID = "REDUCER_FUNC_ID",
35
36
  IMG_SRC = "IMG_SRC",
36
- IMG_FUNC = "IMG_FUNC"
37
+ IMG_FUNC = "IMG_FUNC",
38
+ HOISTED_RENDER_FUNC_ID = "HOISTED_RENDER_FUNC_ID"
37
39
  }
38
40
  /**
39
41
  * @typedef AstContext is an object that holds meta data information about the ast.
@@ -77,7 +79,8 @@ export declare enum PropertyTypes {
77
79
  GETTER = "getter",
78
80
  BASE = "base",
79
81
  IMPORT_REFERENCE = "importReference",
80
- TEMPLATE_STRING = "templateString"
82
+ TEMPLATE_STRING = "templateString",
83
+ RENDER_FUNCTION = "render"
81
84
  }
82
85
  /**
83
86
  * Contextual information about a property and who consumes it
@@ -148,6 +151,7 @@ export declare type BasicImportMetadata = {
148
151
  */
149
152
  export declare type TemplateImportMetadata = BasicImportMetadata & {
150
153
  templateKomaciDoc: KomaciDocument;
154
+ adgReference?: string;
151
155
  };
152
156
  /**
153
157
  * Main type for import meta data.
@@ -181,6 +185,8 @@ export declare type ClassPropertyNodes = {
181
185
  getters: NodePath<t.ClassMethod>[];
182
186
  /** nodes representative of Template strings */
183
187
  templateStrings: NodePath<t.ClassProperty>[];
188
+ /**node to represent the render function */
189
+ renderFunction?: NodePath<t.ClassMethod>;
184
190
  };
185
191
  /** Contextual info about class and overarching module */
186
192
  export declare type ModuleContext = {
@@ -193,6 +199,7 @@ export declare enum FunctionTypes {
193
199
  PRIMING_FUNCTION = "PrimingFunction",
194
200
  GETTER_FUNCTION = "GetterFunction",
195
201
  TEMPLATE_STRING = "TemplateStringFunction",
202
+ RENDER_FUNCTION = "RenderFunction",
196
203
  ERROR = "ErrorFunction"
197
204
  }
198
205
  /**
@@ -226,7 +233,7 @@ export declare type WireFunctionMetadata = BaseFunctionMetadata & {
226
233
  * Metadata for a hoisted function type. Currently this is Getter functions and Template String Functions.
227
234
  */
228
235
  export declare type HoistedFunctionMetadata = BaseFunctionMetadata & {
229
- type: FunctionTypes.GETTER_FUNCTION | FunctionTypes.TEMPLATE_STRING;
236
+ type: FunctionTypes.GETTER_FUNCTION | FunctionTypes.TEMPLATE_STRING | FunctionTypes.RENDER_FUNCTION;
230
237
  /** ast node from the original component source */
231
238
  componentAstNode?: NodePath<t.ClassProperty | t.ClassMethod>;
232
239
  generatedName?: string;
@@ -270,6 +277,7 @@ export declare type ModuleMetadata = {
270
277
  templateKomaciDocMap: {
271
278
  [fName: string]: KomaciDocument;
272
279
  };
280
+ hasRenderFunction: boolean;
273
281
  };
274
282
  export declare type ImportBinding = {
275
283
  importPath: string;
package/build/types.js CHANGED
@@ -15,6 +15,7 @@ var IdKeys;
15
15
  IdKeys["SLOT_FUNC"] = "SLOT_FUNC";
16
16
  IdKeys["ELEMENT_FUNC"] = "ELEMENT_FUNC";
17
17
  IdKeys["ADG_FUNC"] = "ADG_FUNC";
18
+ IdKeys["RENDER_FUNC"] = "RENDER_FUNC";
18
19
  IdKeys["SLOT"] = "SLOT";
19
20
  IdKeys["COMPONENT_ID"] = "COMPONENT_ID";
20
21
  IdKeys["UNDEFINED"] = "UNDEFINED";
@@ -35,6 +36,7 @@ var IdKeys;
35
36
  IdKeys["REDUCER_FUNC_ID"] = "REDUCER_FUNC_ID";
36
37
  IdKeys["IMG_SRC"] = "IMG_SRC";
37
38
  IdKeys["IMG_FUNC"] = "IMG_FUNC";
39
+ IdKeys["HOISTED_RENDER_FUNC_ID"] = "HOISTED_RENDER_FUNC_ID";
38
40
  })(IdKeys = exports.IdKeys || (exports.IdKeys = {}));
39
41
  /**
40
42
  * Possbile types of properties we can encounter in a LWC
@@ -46,6 +48,7 @@ var PropertyTypes;
46
48
  PropertyTypes["BASE"] = "base";
47
49
  PropertyTypes["IMPORT_REFERENCE"] = "importReference";
48
50
  PropertyTypes["TEMPLATE_STRING"] = "templateString";
51
+ PropertyTypes["RENDER_FUNCTION"] = "render";
49
52
  })(PropertyTypes = exports.PropertyTypes || (exports.PropertyTypes = {}));
50
53
  /**
51
54
  * When a function is considered unsupported i.e.:
@@ -62,6 +65,7 @@ var FunctionTypes;
62
65
  FunctionTypes["PRIMING_FUNCTION"] = "PrimingFunction";
63
66
  FunctionTypes["GETTER_FUNCTION"] = "GetterFunction";
64
67
  FunctionTypes["TEMPLATE_STRING"] = "TemplateStringFunction";
68
+ FunctionTypes["RENDER_FUNCTION"] = "RenderFunction";
65
69
  FunctionTypes["ERROR"] = "ErrorFunction";
66
70
  })(FunctionTypes = exports.FunctionTypes || (exports.FunctionTypes = {}));
67
71
  //# sourceMappingURL=types.js.map
package/build/utils.d.ts CHANGED
@@ -16,7 +16,7 @@ export declare const TEMPLATED_STRING_FUNCTION = "TemplatedStringFunction";
16
16
  */
17
17
  export declare function getPropertyMetadataFromAst(ast: t.File): ClassPropertyNodes;
18
18
  /**
19
- * Given a valid functional node (tempalte string or getter function), collect information that we may not have been able to collect via KomaciDocument
19
+ * Given a valid functional node (template string or getter function), collect information that we may not have been able to collect via KomaciDocument
20
20
  * and return a list of class member variables that are properly used in the method body.
21
21
  * "properly" = i.e. used in the right-hand side of a member expression.
22
22
  * @param getter NodePath<ClassMethod | Class Property> path that represents class member-level getter method or template string
@@ -77,11 +77,11 @@ export declare function getAstContextObject(ast: t.File): AstContext;
77
77
  */
78
78
  export declare function isExternalModule(namespace: string): boolean;
79
79
  /**
80
- * Helper function to collect all variables declared within a getter method.
81
- * @param getterMethodPath the babel path object of the getter method.
82
- * @returns an array of variable names that were declared in the getter method.
80
+ * Helper function to collect all variables declared within a function method.
81
+ * @param getterMethodPath the babel path object of the function method.
82
+ * @returns an array of variable names that were declared in the function method.
83
83
  */
84
- export declare function getVariablesDeclaredInGetter(getterMethodPath: NodePath<t.ClassMethod>): string[];
84
+ export declare function getVariablesDeclaredInFunction(getterMethodPath: NodePath<t.ClassMethod>): string[];
85
85
  /**
86
86
  * Helper to get the name of a method
87
87
  * @param node The method node
@@ -115,7 +115,7 @@ export declare function isPropertyNodeUsed(prop: NodePath<t.ClassProperty>, prop
115
115
  * @param getterMethodPath the babel path object of the getter method.
116
116
  * @returns a {Set<string>} of variable names that were declared as alias of 'this'.
117
117
  */
118
- export declare function getThisAliasDeclaredInGetter(getterMethodPath: NodePath<t.ClassMethod>): Set<string>;
118
+ export declare function getThisAliasDeclaredInFunction(getterMethodPath: NodePath<t.ClassMethod>): Set<string>;
119
119
  /**
120
120
  * @author xiaoxugu
121
121
  * Determines whether the passed in {Expression} is a `this` or whether it is an equivalent alias to `this`
package/build/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getFilepathSegments = exports.addPropertyFunction = exports.updateKomaciDocumentWithValidTemplatedStrings = exports.updateKomaciDocumentWithValidGetters = exports.isDeclaredInAst = exports.isExpressionThisOrAlias = exports.getThisAliasDeclaredInGetter = exports.isPropertyNodeUsed = exports.isGetterNodeUsed = exports.isPropertyUsed = exports.getClassMethodName = exports.getVariablesDeclaredInGetter = exports.isExternalModule = exports.getAstContextObject = exports.getAllClassMethods = exports.getAllModuleVaraibles = exports.getAllModuleFunctions = exports.getFromIdentifierOrStringLiteral = exports.collectImportUsage = exports.getMemberVarsFromGetter = exports.implicitConsumptionMetadata = exports.getPropertyMetadataFromAst = exports.TEMPLATED_STRING_FUNCTION = exports.GETTER_FUNCTION = exports.ONE_NS = exports.FORCE_NS = exports.LIGHTNING_NS = void 0;
3
+ exports.getFilepathSegments = exports.addPropertyFunction = exports.updateKomaciDocumentWithValidTemplatedStrings = exports.updateKomaciDocumentWithValidGetters = exports.isDeclaredInAst = exports.isExpressionThisOrAlias = exports.getThisAliasDeclaredInFunction = exports.isPropertyNodeUsed = exports.isGetterNodeUsed = exports.isPropertyUsed = exports.getClassMethodName = exports.getVariablesDeclaredInFunction = exports.isExternalModule = exports.getAstContextObject = exports.getAllClassMethods = exports.getAllModuleVaraibles = exports.getAllModuleFunctions = exports.getFromIdentifierOrStringLiteral = exports.collectImportUsage = exports.getMemberVarsFromGetter = exports.implicitConsumptionMetadata = exports.getPropertyMetadataFromAst = exports.TEMPLATED_STRING_FUNCTION = exports.GETTER_FUNCTION = exports.ONE_NS = exports.FORCE_NS = exports.LIGHTNING_NS = void 0;
4
4
  const core_1 = require("@babel/core");
5
5
  const types_1 = require("./types");
6
6
  exports.LIGHTNING_NS = 'lightning';
@@ -19,6 +19,7 @@ function getPropertyMetadataFromAst(ast) {
19
19
  const nodes = {
20
20
  getters: [],
21
21
  templateStrings: [],
22
+ renderFunction: undefined,
22
23
  };
23
24
  const Visitor = {
24
25
  Program(path) {
@@ -44,6 +45,10 @@ function getPropertyMetadataFromAst(ast) {
44
45
  (path.node.value.type === 'TemplateLiteral' ||
45
46
  path.node.value.type ===
46
47
  'TaggedTemplateExpression'));
48
+ nodes.renderFunction = classBody
49
+ .get('body')
50
+ .filter((path) => path.node.type === 'ClassMethod' &&
51
+ path.node.key.name === 'render')[0];
47
52
  }
48
53
  }
49
54
  }
@@ -54,7 +59,7 @@ function getPropertyMetadataFromAst(ast) {
54
59
  }
55
60
  exports.getPropertyMetadataFromAst = getPropertyMetadataFromAst;
56
61
  /**
57
- * Given a valid functional node (tempalte string or getter function), collect information that we may not have been able to collect via KomaciDocument
62
+ * Given a valid functional node (template string or getter function), collect information that we may not have been able to collect via KomaciDocument
58
63
  * and return a list of class member variables that are properly used in the method body.
59
64
  * "properly" = i.e. used in the right-hand side of a member expression.
60
65
  * @param getter NodePath<ClassMethod | Class Property> path that represents class member-level getter method or template string
@@ -267,11 +272,11 @@ function isExternalModule(namespace) {
267
272
  }
268
273
  exports.isExternalModule = isExternalModule;
269
274
  /**
270
- * Helper function to collect all variables declared within a getter method.
271
- * @param getterMethodPath the babel path object of the getter method.
272
- * @returns an array of variable names that were declared in the getter method.
275
+ * Helper function to collect all variables declared within a function method.
276
+ * @param getterMethodPath the babel path object of the function method.
277
+ * @returns an array of variable names that were declared in the function method.
273
278
  */
274
- function getVariablesDeclaredInGetter(getterMethodPath) {
279
+ function getVariablesDeclaredInFunction(getterMethodPath) {
275
280
  const variables = [];
276
281
  const getterMethodNode = getterMethodPath.node;
277
282
  const declarations = getterMethodNode.body.body.filter((dec) => dec.type === 'VariableDeclaration');
@@ -282,7 +287,7 @@ function getVariablesDeclaredInGetter(getterMethodPath) {
282
287
  });
283
288
  return variables;
284
289
  }
285
- exports.getVariablesDeclaredInGetter = getVariablesDeclaredInGetter;
290
+ exports.getVariablesDeclaredInFunction = getVariablesDeclaredInFunction;
286
291
  /**
287
292
  * Helper to get the name of a method
288
293
  * @param node The method node
@@ -338,7 +343,7 @@ exports.isPropertyNodeUsed = isPropertyNodeUsed;
338
343
  * @param getterMethodPath the babel path object of the getter method.
339
344
  * @returns a {Set<string>} of variable names that were declared as alias of 'this'.
340
345
  */
341
- function getThisAliasDeclaredInGetter(getterMethodPath) {
346
+ function getThisAliasDeclaredInFunction(getterMethodPath) {
342
347
  const variables = new Set();
343
348
  const getterMethodNode = getterMethodPath.node;
344
349
  const declarations = getterMethodNode.body.body.filter((dec) => dec.type === 'VariableDeclaration');
@@ -351,7 +356,7 @@ function getThisAliasDeclaredInGetter(getterMethodPath) {
351
356
  });
352
357
  return variables;
353
358
  }
354
- exports.getThisAliasDeclaredInGetter = getThisAliasDeclaredInGetter;
359
+ exports.getThisAliasDeclaredInFunction = getThisAliasDeclaredInFunction;
355
360
  /**
356
361
  * @author xiaoxugu
357
362
  * Determines whether the passed in {Expression} is a `this` or whether it is an equivalent alias to `this`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@komaci/common-shared",
3
- "version": "242.1.5",
3
+ "version": "242.1.7",
4
4
  "description": "Assets that are shared across Komaci commonjs packages",
5
5
  "homepage": "https://komaci.dev/",
6
6
  "repository": {
@@ -29,7 +29,7 @@
29
29
  "build/komaci-mapping.json"
30
30
  ],
31
31
  "devDependencies": {
32
- "@komaci/types": "242.1.5"
32
+ "@komaci/types": "242.1.7"
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/core": "^7.9.0",