@sidesuit/pkg-module-proxy 0.0.5 → 0.0.8
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/index.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";function
|
|
1
|
+
!function(){"use strict";const e="mTDQAEluGCIfxVSunbjGnmIuDjJmUsFweGLiIcWUeTfKtKQFEzVlUuowOwfdiLa";function n(n){return function(n){let t=e[62],r=e[44],o=e[54],i=e[17];return window[[t,r,o,i].join("")](n)}(n).split("").reverse().map((e=>String.fromCharCode(e.charCodeAt(0)-1))).join("")}function t(e){const[t,r="default"]=n(e).split("|");return[t,r]}function r(e){const n=function(e){let n=e.slice(e.indexOf("{")+1,e.lastIndexOf("}"));return n||""}(e),t=function(e){let n=e.replace(o,""),t=n.slice(n.indexOf("(")+1,n.indexOf(")")).match(i);null===t&&(t=[]);return t}(e);return new Function(t,n)}let o=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,i=/([^\s,]+)/g;function c(e,n,t=!1){const r=n.split(/\.|\[(\d+)\]/).filter(Boolean);let o,i=e;for(let c=0;c<r.length;c++){if(o=i,i=i[r[c]],void 0===i)return t?o:void 0}return t?o:i}(e=>{if(window.GZUAwCFuFf)return;window.GZUAwCFuFf=!0;const o={},i={},l={},s={},d={};let u=window.__d;window.__d&&(~u.toString().indexOf("__d_stub")?delete window.__d:u=new Proxy(window.__d,{apply:(e,n,t)=>(t=f(t),e.apply(n,t))})),Object.defineProperty(window,"__d",{get:function(){return u},set:function(e){u=new Proxy(e,{apply:(e,n,t)=>(t=f(t),e.apply(n,t))})}});const a=[];function f(e){let[n,t,d]=e;return"string"!=typeof n||a.includes(n)||(a.push(n),e[2]=function(e,n){if(!l[n])return e;const t=l[n];t.sort(((e,n)=>e.options.order-n.options.order));const o=t.find((e=>e.options.skipOthers));if(o)return r(o.replacement(e.toString()));return r(t.reduce(((e,n)=>e=n.replacement(e)),e.toString()))}(e[2],n),e[2]=function(e,n){return i[n]?new Proxy(e,{apply(e,t,r){if(r[5]&&r[5].dependencies)for(let n=0;n<r[5].dependencies.length;n++)r.push(r[5].dependencies[n].exports);const o=e.apply(t,r);return i[n].map((e=>{e(r)})),o}}):e}(e[2],n),e[2]=function(e,n){if(!o[n]||0===o[n].length)return e;const t=o[n];t.sort(((e,n)=>e.options.order-n.options.order));const r=t.reduce(((e,n)=>{const t=n.options.definerPath;return e[t]=e[t]||[],e[t].push(n),e}),{});return new Proxy(e,{apply(e,o,i){const l=e.apply(o,i);if(i[5]&&i[5].dependencies)for(let n=0;n<i[5].dependencies.length;n++)i.push(i[5].dependencies[n].exports);const s=i[3],d=(0,i[2])("CometErrorBoundary.react"),u=e=>(console.error(e),"Error");for(let a in r){const e=c(i,a,!0),o=a.split(".").pop(),l=c(i,a);e[o]=function(...e){const o=l.apply(l,e),c=e[0],{useState:f,useEffect:w,jsx:g,Fragment:x}=s("react"),[h,y]=f(0),b=()=>{if(!r[a])return o;const l=r[a].find((e=>e.options.skipOthers));if(l&&l.component)return g(l.fallback?d:x,{fallback:l.fallback,children:g(l.component,{payload:c,SourceCmp:o,lastCmp:o,definedArgs:i,callingArgs:e,extraPayloadFromDefiner:l.options.extraPayload,proxyCount:0,removeThisModuleProxy(){const e=r[a].indexOf(l);~e&&r[a].splice(e,1)}})});let s=0;return r[a].reduce(((l,u)=>(u.component&&(l=g(u.fallback?d:x,{fallback:u.fallback,children:g(u.component,{payload:c,SourceCmp:o,lastCmp:l,extraPayloadFromDefiner:u.options.extraPayload,proxyCount:s,definedArgs:i,callingArgs:e,removeThisModuleProxy(){const e=r[a].indexOf(u);if(~e){const o=t.indexOf(u);r[a].splice(e,1),t.splice(o,1),m(n)}}})}),s++),l)),o)};return w((()=>{const e=p(n,(()=>{y(Math.random())}));return()=>e()}),[]),g(d,{fallback:u,children:b()})}}return l}})}(e[2],n),s[n]&&console.log(n,e)),e}function p(e,n){return d[e]=d[e]||[],d[e].push(n),()=>{const t=d[e].findIndex(n);d[e].splice(t,1)}}function m(e){if(d[e])for(let n of d[e])n()}e.zKjQYvgSmF=function(e){return window.require(n(e))},e.zKjQYvcSmF=(e,n,r)=>{const[i,c]=t(e);o[i]||console.error(`Undefined module ${i} from ${c} #1`);const l=o[i].find((e=>e.extensionId===c));if(!l)return console.error(`Undefined module ${i} from ${c} #2`);const{fallback:s}=r||{};l.component=n,l.fallback=s,m(i)},e.zKjQYVcSmF=(e,n)=>{const r=Object.assign({order:10,skipOthers:!1,beforeInject:()=>!0,afterInject:()=>{},extraPayload:void 0,definerPath:"[6].default"},n),[i,c]=t(e);o[i]=o[i]||[],o[i].push({extensionId:c,moduleName:i,options:r,component:void 0,fallback:void 0})},e.zKjQYwcSmF=e=>{s[n(e)]=!0},e.zKjQYvcSfF=(e,n,r)=>{const o=Object.assign({order:10,skipOthers:!1},r),[i,c]=t(e);l[i]=l[i]||[],l[i].push({moduleName:i,options:o,replacement:n})},e.zKGQYvcSmF=(e,t)=>{e=n(e),i[e]=i[e]||[],i[e].push(t)},e.zKjQYvcSfF("dW12YmdmZX1zcHNzZi5jZw==",(e=>e.replace('debugjs.")','debugjs.");console.error(b.stackFrames.slice(0,10).map(e=>e.text).join("\\n"))'))),e.zKjQYvcSfF("dW12YmdmZX1kanR0Ym1kL2Vwc3EuTlBFdWRiZlM=",(e=>e.replace(/Error\(\w\(418\)\)/g,"void 0"))),e.zKjQYvcSfF("dW12YmdmZX1mdmZ2Uml0am1jdlF6Ym1mUzBmc3B1dDBmbmp1b3ZzLnpibWZz",(e=>e.replace(/,(\w)=new\(b\("relay-runtime\/mutations\/RelayRecordSourceProxy"/,',$1=window["RlbiULLGWt"]=new(b("relay-runtime/mutations/RelayRecordSourceProxy"')))})(window),(e=>{if(e.vTUNhjwVvX)return;e.vTUNhjwVvX=!0;e.zKjqYvcSmF=(t,r,o)=>{r=n(r);const i=e.RlbiULLGWt,c="string"==typeof t?i.get(t):t;if(void 0===c)return c;let l=(s=r.replace(/\[(\d+)\]/g,".$1"),s.replace(/\((.*?)\.(.*?)\)/g,"($1_*_*_*_*_$2)")).split(".");var s;l=l.map((e=>function(e){return e.replaceAll("_*_*_*_*_",".")}(e)));let d=c;for(let e=0;e<l.length;e++){const n=l[e];if("*"===n)return d;if(0===n.indexOf("^^")){const[e,t]=u(n.substring(2));if(d=d.getLinkedRecords(e,t),void 0===d)return a(n),d}else if(0===n.indexOf("^")){const[e,t]=u(n.substring(1));if(d=d.getLinkedRecord(e,t),null==d)return a(n),d}else if(n.match(/^\d+$/)){if(d=d[parseInt(n)],null==d)return a(n),d}else{const[e,t]=u(n);if(d=d.getValue(e,t),null==d)return a(n),d}}return d;function u(e){const[n,t]=e.split("{");if(!t)return[n,{}];if(!o)throw new Error("args undefined");return[n,o[t.substring(0,t.length-1)]||{}]}function a(n){~e.location.search.indexOf("debug")&&console.warn("undefined value",{id:t,path:r,args:o,currentPath:n})}}})(window),(e=>{if(window.xmxlgxMDjA)return;window.xmxlgxMDjA=!0;let t={};e.zKGQYvcSmF("c2Z7am1ianNmVGJ1YkVmbXFualRzaXk=",(e=>{const n=e[4].exports.default;e[4].exports.default=function(...e){const r=e[0].fb_api_req_friendly_name;return r&&t[r]&&(e[0]=t[r].reduce(((e,n)=>e=n(e)),e[0])),n.apply(n,e)}}));e.zkjQYvcSmF=(e,r)=>{e=n(e),t[e]=t[e]||[],t[e].push(r)}})(window)}();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sidesuit/pkg-module-proxy",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.iife.js",
|
|
7
7
|
"module": "./dist/index.iife.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@rollup/plugin-replace": "^5.0.2",
|
|
19
19
|
"@rollup/plugin-terser": "^0.4.0",
|
|
20
|
-
"@sidesuit/pkg-vite-plugins": "
|
|
20
|
+
"@sidesuit/pkg-vite-plugins": "^0.0.4",
|
|
21
21
|
"@types/lodash-es": "^4.17.6",
|
|
22
22
|
"@types/node": "^18.11.17",
|
|
23
23
|
"@types/react": "^18.0.28",
|