@komaci/common-shared 242.2.0 → 242.2.3
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/build/internal-namespaces.json +9 -0
- package/build/utils.d.ts +3 -2
- package/build/utils.js +5 -5
- package/package.json +2 -2
|
@@ -142,6 +142,7 @@
|
|
|
142
142
|
"PublicSectrSltn",
|
|
143
143
|
"QuickAction",
|
|
144
144
|
"QuotesTrusted",
|
|
145
|
+
"Readiness",
|
|
145
146
|
"RichMessaging",
|
|
146
147
|
"RuntimeLeadIq",
|
|
147
148
|
"SBQQ",
|
|
@@ -177,6 +178,7 @@
|
|
|
177
178
|
"Social",
|
|
178
179
|
"SocialEngagement",
|
|
179
180
|
"SocialTrusted",
|
|
181
|
+
"SubMgmt",
|
|
180
182
|
"Support",
|
|
181
183
|
"SupportProto",
|
|
182
184
|
"SupportUI",
|
|
@@ -551,6 +553,7 @@
|
|
|
551
553
|
"hcumprovider",
|
|
552
554
|
"healthcare_crisis_center",
|
|
553
555
|
"healthcloud",
|
|
556
|
+
"healthcloud_ato_flows",
|
|
554
557
|
"healthcloud_crisis_center",
|
|
555
558
|
"healthcloud_iam_flows",
|
|
556
559
|
"healthcloud_icm_flows",
|
|
@@ -688,7 +691,10 @@
|
|
|
688
691
|
"private_industries_common",
|
|
689
692
|
"process_home",
|
|
690
693
|
"process_migration",
|
|
694
|
+
"program_mgmt_omnistudio",
|
|
695
|
+
"publicsector_disb_flows",
|
|
691
696
|
"publicsector_exp_flows",
|
|
697
|
+
"publicsectrsltn",
|
|
692
698
|
"randa",
|
|
693
699
|
"record_flexipage",
|
|
694
700
|
"records",
|
|
@@ -737,6 +743,7 @@
|
|
|
737
743
|
"runtime_industries_churn_ED",
|
|
738
744
|
"runtime_industries_clause_library",
|
|
739
745
|
"runtime_industries_clm",
|
|
746
|
+
"runtime_industries_clm_addin",
|
|
740
747
|
"runtime_industries_components",
|
|
741
748
|
"runtime_industries_documentreader",
|
|
742
749
|
"runtime_industries_epc",
|
|
@@ -853,6 +860,7 @@
|
|
|
853
860
|
"runtime_ses_base",
|
|
854
861
|
"runtime_ses_ext",
|
|
855
862
|
"runtime_slack_block",
|
|
863
|
+
"runtime_ufa_flows",
|
|
856
864
|
"runtime_workdotcom_qmgmt",
|
|
857
865
|
"rypple_corp",
|
|
858
866
|
"sales_bots",
|
|
@@ -1012,6 +1020,7 @@
|
|
|
1012
1020
|
"sfi_media_5",
|
|
1013
1021
|
"sfpw",
|
|
1014
1022
|
"sfweb3",
|
|
1023
|
+
"sfweb3test",
|
|
1015
1024
|
"sim",
|
|
1016
1025
|
"slack_cib_flows",
|
|
1017
1026
|
"slack_invocable_actions",
|
package/build/utils.d.ts
CHANGED
|
@@ -70,8 +70,9 @@ export declare function getAllClassMethods(astRoot: t.File): string[];
|
|
|
70
70
|
* @returns a context object containing meta data about the ast.
|
|
71
71
|
*/
|
|
72
72
|
export declare function getAstContextObject(ast: t.File): AstContext;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
73
|
+
/**
|
|
74
|
+
* Determines if the module (i.e LWC Component) was written by an external user. If the namespace of the module
|
|
75
|
+
* is in the internal namespace list or is a @salesforce scoped module then we consider it internal
|
|
75
76
|
* @param namespace string namespace of the ModuleInfo to check (comes from ModuleInfo.namespace)
|
|
76
77
|
* @returns true if moduleInfo is an external module, false otherwise
|
|
77
78
|
*/
|
package/build/utils.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
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
|
+
const allowlistNamespaces_1 = require("./allowlistNamespaces");
|
|
6
7
|
exports.LIGHTNING_NS = 'lightning';
|
|
7
8
|
exports.FORCE_NS = 'force';
|
|
8
9
|
exports.ONE_NS = 'one';
|
|
@@ -260,15 +261,14 @@ function getAstContextObject(ast) {
|
|
|
260
261
|
return context;
|
|
261
262
|
}
|
|
262
263
|
exports.getAstContextObject = getAstContextObject;
|
|
263
|
-
/**
|
|
264
|
-
*
|
|
264
|
+
/**
|
|
265
|
+
* Determines if the module (i.e LWC Component) was written by an external user. If the namespace of the module
|
|
266
|
+
* is in the internal namespace list or is a @salesforce scoped module then we consider it internal
|
|
265
267
|
* @param namespace string namespace of the ModuleInfo to check (comes from ModuleInfo.namespace)
|
|
266
268
|
* @returns true if moduleInfo is an external module, false otherwise
|
|
267
269
|
*/
|
|
268
270
|
function isExternalModule(namespace) {
|
|
269
|
-
return !(namespace
|
|
270
|
-
namespace === exports.FORCE_NS ||
|
|
271
|
-
namespace === exports.ONE_NS);
|
|
271
|
+
return !((0, allowlistNamespaces_1.isNamespaceInternal)(namespace) || namespace.startsWith('@salesforce/'));
|
|
272
272
|
}
|
|
273
273
|
exports.isExternalModule = isExternalModule;
|
|
274
274
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@komaci/common-shared",
|
|
3
|
-
"version": "242.2.
|
|
3
|
+
"version": "242.2.3",
|
|
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.2.
|
|
32
|
+
"@komaci/types": "242.2.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/core": "^7.9.0",
|