@sidesuit/pkg-module-proxy 1.1.1 → 1.2.0
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/global.d.ts +41 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/relayStoreFinderParents.d.ts +12 -0
- package/package.json +8 -8
package/dist/global.d.ts
CHANGED
|
@@ -8,6 +8,24 @@ import {
|
|
|
8
8
|
StoreFinderFunction,
|
|
9
9
|
} from "./types";
|
|
10
10
|
|
|
11
|
+
// RelayStoreFinder 相关类型定义
|
|
12
|
+
interface Source {
|
|
13
|
+
__id: string;
|
|
14
|
+
__typename: string;
|
|
15
|
+
[key: string]:
|
|
16
|
+
| string
|
|
17
|
+
| {
|
|
18
|
+
__ref: string;
|
|
19
|
+
}
|
|
20
|
+
| {
|
|
21
|
+
__refs: string[];
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface SearchConfig {
|
|
26
|
+
depth?: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
11
29
|
export declare global {
|
|
12
30
|
interface Window {
|
|
13
31
|
// window.require
|
|
@@ -19,5 +37,28 @@ export declare global {
|
|
|
19
37
|
storeFinder: StoreFinderFunction;
|
|
20
38
|
moduleProxyImmediately: ModuleProxyImmediatelyFunction;
|
|
21
39
|
ajaxHijack: AjaxHijackFunction;
|
|
40
|
+
|
|
41
|
+
// RelayStoreFinder Parents 函数
|
|
42
|
+
storeFinderFindParentsSourcesByStoreId: (
|
|
43
|
+
storeId: string,
|
|
44
|
+
configs?: SearchConfig
|
|
45
|
+
) => Source[] | null;
|
|
46
|
+
|
|
47
|
+
storeFinderFindParentsTypenamesByStoreId: (
|
|
48
|
+
storeId: string,
|
|
49
|
+
configs?: SearchConfig
|
|
50
|
+
) => string[] | null;
|
|
51
|
+
|
|
52
|
+
storeFinderFindParentSourceByTypename: (
|
|
53
|
+
storeId: string,
|
|
54
|
+
__typename: string,
|
|
55
|
+
configs: SearchConfig
|
|
56
|
+
) => Source | null;
|
|
57
|
+
|
|
58
|
+
storeFinderFindParentByExistingValue: (
|
|
59
|
+
storeId: string,
|
|
60
|
+
valueRule: string,
|
|
61
|
+
configs: SearchConfig
|
|
62
|
+
) => string | null;
|
|
22
63
|
}
|
|
23
64
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";function n(n){return n.split("").reverse().map((n=>String.fromCharCode(n.charCodeAt(0)-1))).join("")}function e(e){const t={hiveV:"default",xelxo:function(n,e){return n(e)}},[r,o=t.hiveV]=t.xelxo(n,e).split("|");return[r,o]}function t(n){const e=function(n,e){return n(e)},t=e(r,n),o=e(i,n),u=function(n,e){return n+e}("id_",f());let c="window['__fnCache'][\""+u+'"]= function('+o+"){"+t+"}",s=document.createElement("script");try{s.appendChild(document.createTextNode(c))}catch(d){s.text=c}let l=document.getElementsByTagName("head")[0]||document.documentElement;return l.appendChild(s),l.removeChild(s),window.__fnCache[""+u]}function r(n){return n.slice(n.indexOf("{")+1,n.lastIndexOf("}"))||""}window.__fnCache=window.__fnCache||{};let o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,u=/([^\s,]+)/g;function i(n){let e=n.replace(o,""),t=e.slice((r=e.indexOf("("),i=1,r+i),e.indexOf(")")).match(u);var r,i;return function(n,e){return n===e}(t,null)&&(t=[]),t}function c(n,e,t=!1){const r=function(n,e){return n<e},o=function(n,e){return n===e},u=e.split(/\.|\[(\d+)\]/).filter(Boolean);let i,c=n;for(let f=0;r(f,u.length);f++)if(i=c,c=c[u[f]],o(c,void 0))return t?i:void 0;return t?i:c}function f(){const n={VMxBP:function(n,e){return n|e},gHKQY:function(n,e){return n%e},QLwOg:function(n,e){return n+e},YykTo:function(n,e){return n*e},QDyZX:function(n,e){return n/e},OOdPz:function(n,e){return n==e},EsVlX:function(n,e){return n|e},zWvPh:function(n,e){return n&e},djiGv:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"};let e=(new Date).getTime();return n.djiGv.replace(/[xy]/g,(function(t){var r=n.VMxBP(n.gHKQY(n.QLwOg(e,n.YykTo(Math.random(),16)),16),0);return e=Math.floor(n.QDyZX(e,16)),(n.OOdPz(t,"x")?r:n.EsVlX(n.zWvPh(r,3),8)).toString(16)}))}(r=>{const o={xkfiE:function(n,e){return n(e)},aPxsH:function(n,e){return n!==e},KcScv:"string",NzEJF:function(n,e,t){return n(e,t)},aSdnl:function(n,e){return n(e)},hANiF:function(n,e){return n||e},ekznI:"[6].default",iLCoX:function(n,e){return n(e)},TecMf:function(n,e){return n(e)},bcHMd:"Error",NSRth:function(n,e){return n===e},fmKhf:"function",CRRBJ:function(n,e,t){return n(e,t)},ClRRt:"react",KcGOJ:function(n){return n()},pVpyw:function(n,e){return n<e},atGhL:"CometErrorBoundary.react",PuzSc:function(n,e,t,r){return n(e,t,r)},TkaZd:function(n,e){return n===e},TZWVG:function(n,e){return n(e)},rkJqu:function(n,e){return n(e)},QcZEm:"GZUAwCFuFf",TZqKP:"__d_stub",HahnM:"__d",PCmXB:"umvbgfe}spssf.cg",UNMQn:"umvbgfe}djttbmd/epsq.NPEudbfS",UyTHl:"umvbgfe}fvfvRitjmcvQzbmfS0fsput0fnjuovs.zbmfs"};if(window[o.QcZEm])return;window[o.QcZEm]=!0;const u={},i={},f={},s={},l={};let d=window.__d;window.__d&&(~d.toString().indexOf(o.TZqKP)?delete window.__d:d=new Proxy(window.__d,{apply:(n,e,t)=>(t=o.xkfiE(p,t),n.apply(e,t))})),Object.defineProperty(window,o.HahnM,{get:function(){return d},set:function(n){d=new Proxy(n,{apply:(n,e,t)=>(t=o.xkfiE(p,t),n.apply(e,t))})}});const a=[];function p(n){let[e,t,r]=n;return o.aPxsH(typeof e,o.KcScv)||a.includes(e)||(a.push(e),n[2]=o.NzEJF(g,n[2],e),n[2]=o.NzEJF(x,n[2],e),n[2]=o.NzEJF(m,n[2],e),s[e]&&console.log(e,n)),n}function m(n,e){const t={ciWFd:o.bcHMd,YoFMh:function(n,e,t){return o.NzEJF(n,e,t)},KzPlQ:function(n,e){return o.NSRth(n,e)},FgVZh:o.fmKhf,ggQqq:function(n,e){return o.xkfiE(n,e)},BZAfP:function(n,e,t){return o.CRRBJ(n,e,t)},qmJed:o.ClRRt,RnNko:function(n){return o.KcGOJ(n)},vaSWA:function(n,e){return o.pVpyw(n,e)},sVPSN:function(n,e){return o.aSdnl(n,e)},syPCn:o.atGhL,GOqCT:function(n,e,t,r){return o.PuzSc(n,e,t,r)}};if(!u[e]||o.TkaZd(u[e].length,0))return n;const r=u[e];r.sort(((n,e)=>n.options.order-e.options.order));const i=r.reduce(((n,e)=>{const t=e.options.definerPath;return n[t]=n[t]||[],n[t].push(e),n}),{});return new Proxy(n,{apply(n,o,u){const f={VwmSF:function(n,e,r){return t.YoFMh(n,e,r)},IvIKe:function(n,e){return t.KzPlQ(n,e)},zICAs:t.FgVZh,ITVsG:function(n,e){return t.ggQqq(n,e)},gmaqd:function(n,e,r){return t.BZAfP(n,e,r)},RqvBZ:function(n,e,r){return t.YoFMh(n,e,r)},BldSA:function(n,e){return t.ggQqq(n,e)},cUiwx:function(n,e){return t.ggQqq(n,e)},Jvswy:t.qmJed,RZfYW:function(n,e,r){return t.BZAfP(n,e,r)},YRQIh:function(n,e,r){return t.YoFMh(n,e,r)},OVmjW:function(n){return t.RnNko(n)}},s=n.apply(o,u);if(u[5]&&u[5].dependencies)for(let e=0;t.vaSWA(e,u[5].dependencies.length);e++)u.push(u[5].dependencies[e].exports);const l=u[3],d=u[2],a=t.sVPSN(d,t.syPCn),p=n=>(console.error(n),t.ciWFd);for(let m in i){const n=t.GOqCT(c,u,m,!0),o=m.split(".").pop(),s=t.YoFMh(c,u,m);n[o]=function(...n){const t=function(n,e,t){return f.VwmSF(n,e,t)},o=function(n,e){return f.ITVsG(n,e)},c=function(n,e,t){return f.RqvBZ(n,e,t)},d=function(n,e){return f.ITVsG(n,e)},x=s.apply(s,n),g=n[0],{useState:y,useEffect:v,jsx:S,Fragment:P}=f.cUiwx(l,f.Jvswy),[_,b]=f.cUiwx(y,0);function F(n){return n&&n.$1&&f.IvIKe(typeof n.$1,f.zICAs)?f.VwmSF(S,n,n.props):n}return f.RZfYW(v,(()=>{const n=f.VwmSF(h,e,(()=>{!function(n,e){f.BldSA(n,e)}(b,Math.random())}));return()=>n()}),[]),f.YRQIh(S,a,{fallback:p,children:f.OVmjW((()=>{if(!i[m])return f.ITVsG(F,x);const s=i[m].find((n=>n.options.skipOthers));if(s&&s.component)return function(n,e,t){return f.gmaqd(n,e,t)}(S,s.fallback?a:P,{fallback:s.fallback,children:c(S,s.component,{payload:g,SourceCmp:x,lastCmp:d(F,x),definedArgs:u,callingArgs:n,extraPayloadFromDefiner:s.options.extraPayload,proxyCount:0,removeThisModuleProxy(){const n=i[m].indexOf(s);~n&&i[m].splice(n,1)}})});let l=0;return i[m].reduce(((c,f)=>(f.component&&(c=t(S,f.fallback?a:P,{fallback:f.fallback,children:t(S,f.component,{payload:g,SourceCmp:x,lastCmp:c,extraPayloadFromDefiner:f.options.extraPayload,proxyCount:l,definedArgs:u,callingArgs:n,removeThisModuleProxy(){const n=i[m].indexOf(f);if(~n){const t=r.indexOf(f);i[m].splice(n,1),r.splice(t,1),function(n,e){o(n,e)}(w,e)}}})}),l++),c)),o(F,x))}))})}}return s}})}function x(n,e){const t=function(n,e){return o.pVpyw(n,e)};return i[e]?new Proxy(n,{apply(n,r,u){if(u[5]&&u[5].dependencies)for(let e=0;t(e,u[5].dependencies.length);e++)u.push(u[5].dependencies[e].exports);const c=n.apply(r,u);return i[e].map((n=>{!function(n,e){o.TZWVG(n,e)}(n,u)})),c}}):n}function g(n,e){if(!f[e])return n;const r=f[e];r.sort(((n,e)=>n.options.order-e.options.order));const u=r.find((n=>n.options.skipOthers));return u?o.aSdnl(t,u.replacement(n.toString())):o.rkJqu(t,r.reduce(((n,e)=>e.replacement(n)),n.toString()))}function h(n,e){return l[n]=l[n]||[],l[n].push(e),()=>{const t=l[n].findIndex(e);l[n].splice(t,1)}}function w(n){if(l[n])for(let e of l[n])o.KcGOJ(e)}r.zKjQYvgSmF=function(e){return window.require(o.aSdnl(n,e))},r.zKjQYvcSmF=(n,t,r)=>{const[i,c]=o.xkfiE(e,n);u[i]||console.error("Undefined module "+i+" from "+c+" #1");const f=u[i].find((n=>n.extensionId===c));if(!f)return console.error("Undefined module "+i+" from "+c+" #2");const{fallback:s}=o.hANiF(r,{});f.component=t,f.fallback=s,o.aSdnl(w,i)},r.zKjQYVcSmF=(n,t)=>{const r=Object.assign({order:10,skipOthers:!1,beforeInject:()=>!0,afterInject:()=>{},extraPayload:void 0,definerPath:o.ekznI},t),[i,c]=o.iLCoX(e,n);u[i]=u[i]||[],u[i].push({extensionId:c,moduleName:i,options:r,component:void 0,fallback:void 0})},r.zKjQYwcSmF=e=>{s[o.TecMf(n,e)]=!0},r.zKjQYvcSfF=(n,t,r)=>{const u=Object.assign({order:10,skipOthers:!1},r),[i,c]=o.xkfiE(e,n);f[i]=f[i]||[],f[i].push({moduleName:i,options:u,replacement:t})},r.zKGQYvcSmF=(e,t)=>{e=o.aSdnl(n,e),i[e]=i[e]||[],i[e].push(t)},r.zKjQYvcSfF(o.PCmXB,(n=>n.replace('debugjs.")','debugjs.");console.error(b.stackFrames.slice(0,10).map(e=>e.text).join("\\n"))'))),r.zKjQYvcSfF(o.UNMQn,(n=>n.replace(/Error\(\w\(418\)\)/g,"void 0"))),r.zKjQYvcSfF(o.UyTHl,(n=>n.replace(/,(\w)=new\(b\("relay-runtime\/mutations\/RelayRecordSourceProxy"/,',$1=window["RlbiULLGWt"]=new(b("relay-runtime/mutations/RelayRecordSourceProxy"'))),r.zKjQYvcSfF(o.UyTHl,(n=>n.replace(/;(\w)\.commitPayload=function\(([\w,]+)\){/,";$1.commitPayload=function($2){try{if(arguments[0]){if(arguments[0]?.request?.variables?.__relay_internal__pv__CometUFIReactionEnableShortNamerelayprovider === true) return;};}catch(e){console.log('relayStoreCommitPayload',e)};")))})(window),(n=>{const e="($1_*_*_*_*_$2)",t="debug",r="undefined value",o="args undefined",u=function(n,e){return n-e},i="_*_*_*_*_",c="RlbiULLGWt",f=function(n,e){return n===e},s="string",l=function(n,e){return n(e)},d=".$1",a=function(n,e){return n<e},p=function(n,e){return n===e},m=function(n,e){return n(e)},x=function(n,e){return n===e},g=function(n,e){return n(e)},h=function(n,e){return n===e},w=function(n,e){return n(e)},y=function(n,e){return n(e)},v=function(n,e){return n===e},S=function(n,e){return n(e)},P=function(n,e){return n(e)},_=function(n,e){return n===e},b=function(n,e){return n(e)},F="vTUNhjwVvX";n[F]||(n[F]=!0,n.zKjqYvcSmF=(F,j,k)=>{const C={mjJpG:o,MgIUK:function(n,e){return u(n,e)},lJVLO:i},O=n[c],z=f(typeof F,s)?O.get(F):F;if(f(z,void 0))return z;let Q=l((function(n){return n.replace(/\((.*?)\.(.*?)\)/g,e)}),j.replace(/\[(\d+)\]/g,d)).split(".");Q=Q.map((n=>n.replaceAll(C.lJVLO,".")));let V=z;for(let n=0;a(n,Q.length);n++){const e=Q[n];if(p(e,"*"))return V;if(f(e.indexOf("^^"),0)){const[n,t]=m(K,e.substring(2));if(V=V.getLinkedRecords(n,t),x(V,void 0))return m(R,e),V}else if(x(e.indexOf("^"),0)){const[n,t]=g(K,e.substring(1));if(V=V.getLinkedRecord(n,t),f(V,void 0)||h(V,null))return w(R,e),V}else if(e.match(/^\d+$/)){if(V=V[y(parseInt,e)],v(V,void 0)||h(V,null))return S(R,e),V}else{const[n,t]=P(K,e);if(V=V.getValue(n,t),h(V,void 0)||_(V,null))return b(R,e),V}}return V;function K(n){const[e,t]=n.split("{");if(!t)return[e,{}];if(!k)throw new Error(C.mjJpG);return[e,k[t.substring(0,C.MgIUK(t.length,1))]||{}]}function R(e){~n.location.search.indexOf(t)&&console.warn(r,{id:F,path:j,args:k,currentPath:e})}})})(window),(e=>{const t="xmxlgxMDjA";if(window[t])return;window[t]=!0;let r={};e.zKGQYvcSmF("sf{jmbjsfTbubEfmqnjTsiy",(n=>{const e=n[4].exports.default;n[4].exports.default=function(...n){const t=n[0].fb_api_req_friendly_name;return t&&r[t]&&(n[0]=r[t].reduce(((n,e)=>function(n,e){return function(n,e){return function(n,e){return n(e)}(n,e)}(n,e)}(e,n)),n[0])),e.apply(e,n)}})),e.zkjQYvcSmF=(e,t)=>{e=function(n,e){return n(e)}(n,e),r[e]=r[e]||[],r[e].push(t)}})(window)}();
|
|
1
|
+
!function(){"use strict";function n(n){return n.split("").reverse().map(n=>String.fromCharCode(n.charCodeAt(0)-1)).join("")}function t(t){const r={rzPQs:"default",qznUE:function(n,t){return n(t)}},[e,o=r.rzPQs]=r.qznUE(n,t).split("|");return[e,o]}function r(n){const t=e(n),r=function(n,t){return n(t)}(i,n),o=function(n,t){return n+t}("id_",function(n){return n()}(f));let u="window['__fnCache'][\""+o+'"]= function('+r+"){"+t+"}",c=document.createElement("script");try{c.appendChild(document.createTextNode(u))}catch(l){c.text=u}let s=document.getElementsByTagName("head")[0]||document.documentElement;return s.appendChild(c),s.removeChild(c),window.__fnCache[""+o]}function e(n){return function(n){return n||""}(n.slice(n.indexOf("{")+1,n.lastIndexOf("}")))}window.__fnCache=window.__fnCache||{};let o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,u=/([^\s,]+)/g;function i(n){let t=n.replace(o,""),r=t.slice((e=t.indexOf("("),i=1,e+i),t.indexOf(")")).match(u);var e,i;return function(n,t){return n===t}(null,r)&&(r=[]),r}function c(n,t,r=!1){const e=function(n,t){return n<t},o=function(n,t){return n===t},u=t.split(/\.|\[(\d+)\]/).filter(Boolean);let i,c=n;for(let f=0;e(f,u.length);f++)if(i=c,c=c[u[f]],o(void 0,c))return r?i:void 0;return r?i:c}function f(){const n={kJGmy:function(n,t){return n|t},KYodb:function(n,t){return n%t},PYOqI:function(n,t){return n+t},foKIU:function(n,t){return n*t},PJvOG:function(n,t){return n/t},siSsC:function(n,t){return n==t},uOVGg:function(n,t){return n|t},UTLTB:function(n,t){return n&t},fZCKD:"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"};let t=(new Date).getTime();return n.fZCKD.replace(/[xy]/g,function(r){var e=n.kJGmy(n.KYodb(n.PYOqI(t,n.foKIU(16,Math.random())),16),0);return t=Math.floor(n.PJvOG(t,16)),(n.siSsC("x",r)?e:n.uOVGg(n.UTLTB(3,e),8)).toString(16)})}(e=>{const o=function(n,t){return n(t)},u=function(n,t){return n(t)},i=function(n,t){return n<t},f=function(n,t,r){return n(t,r)},s=function(n,t,r){return n(t,r)},l=function(n,t){return n==t},d="function",a="react",p=function(n,t){return n(t)},m=function(n,t,r){return n(t,r)},x=function(n){return n()},g="CometErrorBoundary.react",_=function(n,t,r,e){return n(t,r,e)},h=function(n,t){return n===t},v=function(n,t){return n!=t},y="string",w=function(n){return n()},b=function(n,t){return n(t)},S=function(n,t){return n(t)},j=function(n,t){return n||t},k="[6].default",P="__d_stub",F="__d",K="umvbgfe}spssf.cg",z="umvbgfe}djttbmd/epsq.NPEudbfS",U="umvbgfe}fvfvRitjmcvQzbmfS0fsput0fnjuovs.zbmfs";if(window.GZUAwCFuFf)return;window.GZUAwCFuFf=!0;const Y={},Q={},C={},O={},A={};let R=window.__d;window.__d&&(~R.toString().indexOf(P)?delete window.__d:R=new Proxy(window.__d,{apply:(n,t,r)=>(r=E(r),n.apply(t,r))})),Object.defineProperty(window,F,{get:function(){return R},set:function(n){R=new Proxy(n,{apply:(n,t,r)=>(r=E(r),n.apply(t,r))})}});const T=[];function E(n){const t={kfRHQ:function(n,t){return o(n,t)},jkDKS:function(n,t){return u(n,t)},rkLJt:function(n,t){return i(n,t)},JSNQh:function(n,t){return o(n,t)},GPbYf:function(n,t,r){return f(n,t,r)},UldUm:function(n,t,r){return f(n,t,r)},Eaizd:function(n,t){return u(n,t)},VVEQj:function(n,t){return o(n,t)},xxFcU:function(n,t,r){return s(n,t,r)},jnKtz:function(n,t){return l(n,t)},ezKxu:d,fZoNM:function(n,t){return o(n,t)},rUFgW:a,Qebpa:function(n,t){return p(n,t)},FsiIa:function(n,t,r){return m(n,t,r)},RsAsP:function(n,t,r){return f(n,t,r)},YvvfL:function(n){return x(n)},aPjfz:g,YTWkP:function(n,t,r,e){return _(n,t,r,e)},rJXAX:function(n,t){return h(n,t)}};let[e,w,b]=n;return v(y,typeof e)||T.includes(e)||(T.push(e),n[2]=function(n,e){if(!C[e])return n;const o=C[e];o.sort((n,t)=>n.options.order-t.options.order);const u=o.find(n=>n.options.skipOthers);return t.kfRHQ(r,u?u.replacement(n.toString()):o.reduce((n,t)=>t.replacement(n),n.toString()))}(n[2],e),n[2]=(S=n[2],Q[j=e]?new Proxy(S,{apply(n,r,e){if(e[5]&&e[5].dependencies)for(let u=0;t.rkLJt(u,e[5].dependencies.length);u++)e.push(e[5].dependencies[u].exports);const o=n.apply(r,e);return Q[j].map(n=>{!function(n,r){t.jkDKS(n,r)}(n,e)}),o}}):S),n[2]=function(n,r){if(!Y[r]||t.rJXAX(0,Y[r].length))return n;const e=Y[r];e.sort((n,t)=>n.options.order-t.options.order);const o=e.reduce((n,t)=>{const r=t.options.definerPath;return n[r]=n[r]||[],n[r].push(t),n},{});return new Proxy(n,{apply(n,u,i){const f={IRVEg:function(n,r){return t.JSNQh(n,r)},TCFgX:function(n,r,e){return t.GPbYf(n,r,e)},lkgtH:function(n,r,e){return t.UldUm(n,r,e)},fweuK:function(n,r){return t.Eaizd(n,r)},FhdPV:function(n,r){return t.VVEQj(n,r)},IfxZj:function(n,r,e){return t.xxFcU(n,r,e)},rNGpX:function(n,r){return t.jnKtz(n,r)},XyAqm:t.ezKxu,DAZhU:function(n,r,e){return t.UldUm(n,r,e)},YmVWW:function(n,r){return t.fZoNM(n,r)},SvCHG:t.rUFgW,fWAMh:function(n,r){return t.Qebpa(n,r)},wBWSN:function(n,r,e){return t.FsiIa(n,r,e)},TKLQf:function(n,r,e){return t.RsAsP(n,r,e)},DRKHd:function(n){return t.YvvfL(n)}},s=n.apply(u,i);if(i[5]&&i[5].dependencies)for(let r=0;t.rkLJt(r,i[5].dependencies.length);r++)i.push(i[5].dependencies[r].exports);const l=i[3],d=(0,i[2])(t.aPjfz),a=n=>(console.error(n),"Error");for(let p in o){const n=t.YTWkP(c,i,p,!0),u=p.split(".").pop(),s=t.UldUm(c,i,p);n[u]=function(...n){const t={nJpTY:function(n,t){return f.rNGpX(n,t)},HOBvS:f.XyAqm,znAWd:function(n,t,r){return f.DAZhU(n,t,r)},MSdLK:function(n,t){return f.YmVWW(n,t)}},u=s.apply(s,n),c=n[0],{useState:m,useEffect:x,jsx:g,Fragment:_}=f.IRVEg(l,f.SvCHG),[h,v]=f.fWAMh(m,0);function y(n){return n&&n.$1&&t.nJpTY(t.HOBvS,typeof n.$1)?t.znAWd(g,n,n.props):n}return f.wBWSN(x,()=>{const n=f.IfxZj(L,r,()=>{t.MSdLK(v,Math.random())});return()=>n()},[]),f.TKLQf(g,d,{fallback:a,children:f.DRKHd(()=>{if(!o[p])return f.IRVEg(y,u);const t=o[p].find(n=>n.options.skipOthers);if(t&&t.component)return f.TCFgX(g,t.fallback?d:_,{fallback:t.fallback,children:f.lkgtH(g,t.component,{payload:c,SourceCmp:u,lastCmp:f.fweuK(y,u),definedArgs:i,callingArgs:n,extraPayloadFromDefiner:t.options.extraPayload,proxyCount:0,removeThisModuleProxy(){const n=o[p].indexOf(t);~n&&o[p].splice(n,1)}})});let s=0;return o[p].reduce((t,l)=>(l.component&&(t=g(l.fallback?d:_,{fallback:l.fallback,children:g(l.component,{payload:c,SourceCmp:u,lastCmp:t,extraPayloadFromDefiner:l.options.extraPayload,proxyCount:s,definedArgs:i,callingArgs:n,removeThisModuleProxy(){const n=o[p].indexOf(l);if(~n){const t=e.indexOf(l);o[p].splice(n,1),e.splice(t,1),f.IRVEg(G,r)}}})}),s++),t),f.FhdPV(y,u))})})}}return s}})}(n[2],e),O[e]&&console.log(e,n)),n;var S,j}function L(n,t){return A[n]=A[n]||[],A[n].push(t),()=>{const r=A[n].findIndex(t);A[n].splice(r,1)}}function G(n){if(A[n])for(let t of A[n])w(t)}e.zKjQYvgSmF=function(t){return window.require(b(n,t))},e.zKjQYvcSmF=(n,r,e)=>{const[o,u]=S(t,n);Y[o]||console.error("Undefined module "+o+" from "+u+" #1");const i=Y[o].find(n=>n.extensionId===u);if(!i)return console.error("Undefined module "+o+" from "+u+" #2");const{fallback:c}=j(e,{});i.component=r,i.fallback=c,b(G,o)},e.zKjQYVcSmF=(n,r)=>{const e=Object.assign({order:10,skipOthers:!1,beforeInject:()=>!0,afterInject:()=>{},extraPayload:void 0,definerPath:k},r),[o,u]=p(t,n);Y[o]=Y[o]||[],Y[o].push({extensionId:u,moduleName:o,options:e,component:void 0,fallback:void 0})},e.zKjQYwcSmF=t=>{O[o(n,t)]=!0},e.zKjQYvcSfF=(n,r,e)=>{const o=Object.assign({order:10,skipOthers:!1},e),[u,i]=b(t,n);C[u]=C[u]||[],C[u].push({moduleName:u,options:o,replacement:r})},e.zKGQYvcSmF=(t,r)=>{t=p(n,t),Q[t]=Q[t]||[],Q[t].push(r)},e.zKjQYvcSfF(K,n=>n.replace('debugjs.")','debugjs.");console.error(b.stackFrames.slice(0,10).map(e=>e.text).join("\\n"))')),e.zKjQYvcSfF(z,n=>n.replace(/Error\(\w\(418\)\)/g,"void 0")),e.zKjQYvcSfF(U,n=>n.replace(/,(\w)=new\(b\("relay-runtime\/mutations\/RelayRecordSourceProxy"/,',$1=window["RlbiULLGWt"]=new(b("relay-runtime/mutations/RelayRecordSourceProxy"')),e.zKjQYvcSfF(U,n=>n.replace(/;(\w)\.commitPayload=function\(([\w,]+)\){/,";$1.commitPayload=function($2){try{if(arguments[0]){if(arguments[0]?.request?.variables?.__relay_internal__pv__CometUFIReactionEnableShortNamerelayprovider === true) return;};}catch(e){console.log('relayStoreCommitPayload',e)};"))})(window),(n=>{const t="_*_*_*_*_",r="args undefined",e=function(n,t){return n-t},o="debug",u="undefined value",i=function(n,t){return n==t},c="string",f=function(n,t){return n===t},s=".$1",l="($1_*_*_*_*_$2)",d=function(n,t){return n<t},a=function(n,t){return n===t},p=function(n,t){return n(t)},m=function(n,t){return n===t},x=function(n,t){return n(t)},g=function(n,t){return n===t},_=function(n,t){return n==t},h=function(n,t){return n(t)},v=function(n,t){return n==t},y=function(n,t){return n(t)},w=function(n,t){return n(t)},b=function(n,t){return n(t)};n.vTUNhjwVvX||(n.vTUNhjwVvX=!0,n.zKjqYvcSmF=(S,j,k)=>{const P={BtjQg:r,SYWng:function(n,t){return e(n,t)},BKfeQ:o,SvJMd:u},F=n.RlbiULLGWt,K=i(c,typeof S)?F.get(S):S;if(f(void 0,K))return K;let z=(U=j.replace(/\[(\d+)\]/g,s),U.replace(/\((.*?)\.(.*?)\)/g,l)).split(".");var U;z=z.map(n=>n.replaceAll(t,"."));let Y=K;for(let n=0;d(n,z.length);n++){const t=z[n];if(f("*",t))return Y;if(a(0,t.indexOf("^^"))){const[n,r]=p(Q,t.substring(2));if(Y=Y.getLinkedRecords(n,r),m(void 0,Y))return x(C,t),Y}else if(g(0,t.indexOf("^"))){const[n,r]=x(Q,t.substring(1));if(Y=Y.getLinkedRecord(n,r),_(null,Y))return x(C,t),Y}else if(t.match(/^\d+$/)){if(Y=Y[h(parseInt,t)],v(null,Y))return y(C,t),Y}else{const[n,r]=w(Q,t);if(Y=Y.getValue(n,r),i(null,Y))return b(C,t),Y}}return Y;function Q(n){const[t,r]=n.split("{");if(!r)return[t,{}];if(!k)throw new Error(P.BtjQg);return[t,k[r.substring(0,P.SYWng(r.length,1))]||{}]}function C(t){~n.location.search.indexOf(P.BKfeQ)&&console.warn(P.SvJMd,{id:S,path:j,args:k,currentPath:t})}})})(window),(n=>{const t=function(n,t){return n!==t},r=function(n,t){return n==t},e="object",o=function(n,t){return n in t},u=function(n,t){return n===t},i=function(n,t){return n==t},c=function(n,t){return n!==t},f=function(n,t){return n in t},s=function(n,t){return n<t},l=function(n,t){return n(t)},d=function(n,t,r){return n(t,r)},a=function(n,t){return n!==t},p="continue",m=function(n,t){return n===t};function x(s){const l=function(){const t=function(n,t){return function(n,t){return function(n,t){return n instanceof t}(n,t)}(n,t)},r=n.RlbiULLGWt.getRoot();let e=[];return Object.keys(r).forEach(n=>{const o=r[n];if(o.__sources&&Array.isArray(o.__sources)){const n=o.__sources;for(const r of n)for(const n in r){const o=r[n];t(o,Map)&&e.push(o)}}}),e}();for(const n of l)for(const[l,d]of n)for(const[n,a]of Object.entries(d))if(t("__id",n)&&t("__typename",n)){if(r(e,typeof a)&&t(null,a)&&o("__ref",a)&&u(a.__ref,s))return d;if(i(e,typeof a)&&c(null,a)&&f("__refs",a)&&Array.isArray(a.__refs)&&a.__refs.includes(s))return d}return null}function g(n,t,r){const e=[];let o=n,u=0;for(;s(u,t);){const n=l(x,o);if(!n)break;e.push(n);const t=d(r,n,e);if(a(p,t)){if(m("break",t))break;return t}o=n.__id,u++}return null}function _(n,t){const r=[];return function(n,t,r,e){n(t,r,e)}(g,n,(null==t?void 0:t.depth)||10,(n,t)=>(r.push(n),"continue")),function(n,t){return n>t}(r.length,0)?r:null}!n.vTUNhJwVvX&&n.RlbiULLGWt&&(n.vTUNhJwVvX=!0,n.zkjQYvCSmF=_,n.zkJqYvcSmF=function(n,t){const r=function(n,t,r){return n(t,r)}(_,n,t);return r?r.map(n=>n.__typename):null},n.zkJQyvcSmF=function(n,t,r){return function(n,t,r,e){return n(t,r,e)}(g,n,(null==r?void 0:r.depth)||10,n=>n.__typename===t?n:"continue")},n.zkjQYvcSMf=function(t,r,e){const o=function(n,t){return function(n,t){return n!=t}(n,t)},u=p;return function(n,t,r,e){return n(t,r,e)}(g,t,(null==e?void 0:e.depth)||10,t=>{try{const e=n.zKjqYvcSmF(t.__id,r);if(o(null,e))return t.__id}catch(e){}return u})})})(window),(t=>{if(window.xmxlgxMDjA)return;window.xmxlgxMDjA=!0;let r={};t.zKGQYvcSmF("sf{jmbjsfTbubEfmqnjTsiy",n=>{const t=n[4].exports.default;n[4].exports.default=function(...n){const e=n[0].fb_api_req_friendly_name;return e&&r[e]&&(n[0]=r[e].reduce((n,t)=>t(n),n[0])),t.apply(t,n)}}),t.zkjQYvcSmF=(t,e)=>{t=function(n,t){return n(t)}(n,t),r[t]=r[t]||[],r[t].push(e)}})(window)}();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sidesuit/pkg-module-proxy",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.iife.js",
|
|
7
7
|
"module": "./dist/index.iife.js",
|
|
@@ -17,21 +17,21 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@rollup/plugin-replace": "^5.0.5",
|
|
20
|
-
"@sidesuit/pkg-vite-plugins": "^
|
|
20
|
+
"@sidesuit/pkg-vite-plugins": "^1.2.0",
|
|
21
21
|
"@types/lodash-es": "^4.17.12",
|
|
22
|
-
"@types/node": "^20.11.
|
|
23
|
-
"@types/react": "^18.2.
|
|
22
|
+
"@types/node": "^20.11.24",
|
|
23
|
+
"@types/react": "^18.2.61",
|
|
24
24
|
"@vitejs/plugin-react": "4.2.1",
|
|
25
25
|
"glob": "10.3.10",
|
|
26
26
|
"javascript-obfuscator-unstring-array": "^4.1.1",
|
|
27
27
|
"lodash-es": "^4.17.21",
|
|
28
28
|
"npm-check": "^6.0.1",
|
|
29
|
-
"prettier": "^3.2.
|
|
29
|
+
"prettier": "^3.2.5",
|
|
30
30
|
"react": "^18.2.0",
|
|
31
|
-
"terser": "^5.
|
|
31
|
+
"terser": "^5.28.1",
|
|
32
32
|
"tsc-alias": "^1.8.8",
|
|
33
33
|
"typescript": "^5.3.3",
|
|
34
|
-
"vite": "^
|
|
35
|
-
"vite-plugin-static-copy": "^0.
|
|
34
|
+
"vite": "^5.1.4",
|
|
35
|
+
"vite-plugin-static-copy": "^1.0.1"
|
|
36
36
|
}
|
|
37
37
|
}
|