sf-intelligence 0.2.0 → 0.2.1
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/apex-ast-worker.js +8 -1
- package/dist/index.js +20671 -7820
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/apex-ast-worker.js
CHANGED
|
@@ -187,7 +187,14 @@ var extractApexAstEdges = (source, className, options = {}) => {
|
|
|
187
187
|
callSites.push({ callee, callerMethod: cm ?? "" });
|
|
188
188
|
};
|
|
189
189
|
const resolveType = (t) => innerClasses.get(t) ?? t;
|
|
190
|
-
const isSObjectish = (t) => t !== null && t !== void 0 && !SYSTEM_TYPES.has(t) && !innerClasses.has(t) && t !== className && !/[<>]/.test(t) &&
|
|
190
|
+
const isSObjectish = (t) => t !== null && t !== void 0 && !SYSTEM_TYPES.has(t) && !innerClasses.has(t) && t !== className && !/[<>]/.test(t) && // An sObject api name is PascalCase (`Account`, `MyObject__c`) OR a
|
|
191
|
+
// managed-package namespaced name, which starts LOWERCASE and contains a
|
|
192
|
+
// `__` namespace separator (`ns__Object__c`). The old `/^[A-Z]/`-only test
|
|
193
|
+
// silently rejected every namespaced object, so a resolved `ns__Object__c`
|
|
194
|
+
// receiver was dropped and the write fell to the scanner's literal-receiver
|
|
195
|
+
// phantom. A true local alias (`record`, `payment`, `i`) never contains
|
|
196
|
+
// `__`, so the namespace branch cannot re-admit one.
|
|
197
|
+
(/^[A-Z]/.test(t) || /^[a-z][A-Za-z0-9]*__/.test(t)) && !known.has(t);
|
|
191
198
|
const isUserClass = (t) => t === className || innerClasses.has(t) || t === extendsType || known.has(t);
|
|
192
199
|
const allowSystemCall = (cls, method) => {
|
|
193
200
|
const rule = SYSTEM_CALL_ALLOW[cls];
|