@lokascript/compilation-service 2.3.0 → 2.3.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/http.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CompilationService
3
- } from "./chunk-BHZMWRBA.js";
3
+ } from "./chunk-E5HS7EYK.js";
4
4
  import "./chunk-GBPMR66W.js";
5
5
 
6
6
  // src/http.ts
package/dist/index.cjs CHANGED
@@ -34816,11 +34816,28 @@ var init_dist = __esm({
34816
34816
  const obj = targetArg.object, prop = targetArg.property;
34817
34817
  if (obj?.type === "selector")
34818
34818
  targetSelector = obj.value;
34819
- else if (obj?.type === "identifier")
34820
- targetSelector = obj.name;
34819
+ else if (obj?.type === "identifier") {
34820
+ const objName = obj.name;
34821
+ if (objName === "my" || objName === "me" || objName === "I") {
34822
+ if (context.me && prop?.name) {
34823
+ return {
34824
+ value,
34825
+ targets: [context.me],
34826
+ position: "replace",
34827
+ memberPath: prop.name
34828
+ };
34829
+ }
34830
+ } else if (objName === "its" || objName === "it") {
34831
+ const ev = await evaluator.evaluate(targetArg, context);
34832
+ if (typeof ev === "string")
34833
+ targetSelector = ev;
34834
+ } else {
34835
+ targetSelector = objName;
34836
+ }
34837
+ }
34821
34838
  if (targetSelector && prop?.name)
34822
34839
  memberPath = prop.name;
34823
- else {
34840
+ else if (!targetSelector && !memberPath) {
34824
34841
  const ev = await evaluator.evaluate(targetArg, context);
34825
34842
  if (typeof ev === "string")
34826
34843
  targetSelector = ev;