@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/{chunk-BHZMWRBA.js → chunk-E5HS7EYK.js} +2 -2
- package/dist/{chunk-BW34XOBT.js → chunk-IZIF5G26.js} +2 -2
- package/dist/{core-parser-adapter-VCJB52SO-I5AIPWJQ.js → core-parser-adapter-VCJB52SO-UNDWZLXO.js} +2 -2
- package/dist/{dist-CXRMMXI7.js → dist-37BGWHOT.js} +3 -3
- package/dist/{dist-5S22WYM3.js → dist-QPI3MUNN.js} +21 -4
- package/dist/{dist-5S22WYM3.js.map → dist-QPI3MUNN.js.map} +1 -1
- package/dist/http.cjs +20 -3
- package/dist/http.cjs.map +1 -1
- package/dist/http.js +1 -1
- package/dist/index.cjs +20 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-BHZMWRBA.js.map → chunk-E5HS7EYK.js.map} +0 -0
- /package/dist/{chunk-BW34XOBT.js.map → chunk-IZIF5G26.js.map} +0 -0
- /package/dist/{core-parser-adapter-VCJB52SO-I5AIPWJQ.js.map → core-parser-adapter-VCJB52SO-UNDWZLXO.js.map} +0 -0
- /package/dist/{dist-CXRMMXI7.js.map → dist-37BGWHOT.js.map} +0 -0
package/dist/http.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
|
-
|
|
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;
|