@sidesuit/pkg-module-proxy 0.0.8 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1 +1 @@
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)}();
1
+ !function(){"use strict";function e(e){return e.split("").reverse().map((e=>String.fromCharCode(e.charCodeAt(0)-1))).join("")}function n(n){const[t,r="default"]=e(n).split("|");return[t,r]}function t(e){const n=function(e){let n=e.slice(e.indexOf("{")+1,e.lastIndexOf("}"));return n||""}(e),t=function(e){let n=e.replace(r,""),t=n.slice(n.indexOf("(")+1,n.indexOf(")")).match(o);null===t&&(t=[]);return t}(e);return new Function(t,n)}let r=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,o=/([^\s,]+)/g;function i(e,n,t=!1){const r=n.split(/\.|\[(\d+)\]/).filter(Boolean);let o,i=e;for(let s=0;s<r.length;s++){if(o=i,i=i[r[s]],void 0===i)return t?o:void 0}return t?o:i}(r=>{if(window.GZUAwCFuFf)return;window.GZUAwCFuFf=!0;const o={},s={},c={},l={},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=a(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=a(t),e.apply(n,t))})}});const f=[];function a(e){let[n,r,d]=e;return"string"!=typeof n||f.includes(n)||(f.push(n),e[2]=function(e,n){if(!c[n])return e;const r=c[n];r.sort(((e,n)=>e.options.order-n.options.order));const o=r.find((e=>e.options.skipOthers));if(o)return t(o.replacement(e.toString()));return t(r.reduce(((e,n)=>e=n.replacement(e)),e.toString()))}(e[2],n),e[2]=function(e,n){return s[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 s[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,s){const c=e.apply(o,s);if(s[5]&&s[5].dependencies)for(let n=0;n<s[5].dependencies.length;n++)s.push(s[5].dependencies[n].exports);const l=s[3],d=(0,s[2])("CometErrorBoundary.react"),u=e=>(console.error(e),"Error");for(let f in r){const e=i(s,f,!0),o=f.split(".").pop(),c=i(s,f);e[o]=function(...e){const o=c.apply(c,e),i=e[0],{useState:a,useEffect:g,jsx:w,Fragment:x}=l("react"),[b,h]=a(0),y=()=>{if(!r[f])return o;const c=r[f].find((e=>e.options.skipOthers));if(c&&c.component)return w(c.fallback?d:x,{fallback:c.fallback,children:w(c.component,{payload:i,SourceCmp:o,lastCmp:o,definedArgs:s,callingArgs:e,extraPayloadFromDefiner:c.options.extraPayload,proxyCount:0,removeThisModuleProxy(){const e=r[f].indexOf(c);~e&&r[f].splice(e,1)}})});let l=0;return r[f].reduce(((c,u)=>(u.component&&(c=w(u.fallback?d:x,{fallback:u.fallback,children:w(u.component,{payload:i,SourceCmp:o,lastCmp:c,extraPayloadFromDefiner:u.options.extraPayload,proxyCount:l,definedArgs:s,callingArgs:e,removeThisModuleProxy(){const e=r[f].indexOf(u);if(~e){const o=t.indexOf(u);r[f].splice(e,1),t.splice(o,1),m(n)}}})}),l++),c)),o)};return g((()=>{const e=p(n,(()=>{h(Math.random())}));return()=>e()}),[]),w(d,{fallback:u,children:y()})}}return c}})}(e[2],n),l[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()}r.zKjQYvgSmF=function(n){return window.require(e(n))},r.zKjQYvcSmF=(e,t,r)=>{const[i,s]=n(e);o[i]||console.error(`Undefined module ${i} from ${s} #1`);const c=o[i].find((e=>e.extensionId===s));if(!c)return console.error(`Undefined module ${i} from ${s} #2`);const{fallback:l}=r||{};c.component=t,c.fallback=l,m(i)},r.zKjQYVcSmF=(e,t)=>{const r=Object.assign({order:10,skipOthers:!1,beforeInject:()=>!0,afterInject:()=>{},extraPayload:void 0,definerPath:"[6].default"},t),[i,s]=n(e);o[i]=o[i]||[],o[i].push({extensionId:s,moduleName:i,options:r,component:void 0,fallback:void 0})},r.zKjQYwcSmF=n=>{l[e(n)]=!0},r.zKjQYvcSfF=(e,t,r)=>{const o=Object.assign({order:10,skipOthers:!1},r),[i,s]=n(e);c[i]=c[i]||[],c[i].push({moduleName:i,options:o,replacement:t})},r.zKGQYvcSmF=(n,t)=>{n=e(n),s[n]=s[n]||[],s[n].push(t)},r.zKjQYvcSfF("umvbgfe}spssf.cg",(e=>e.replace('debugjs.")','debugjs.");console.error(b.stackFrames.slice(0,10).map(e=>e.text).join("\\n"))'))),r.zKjQYvcSfF("umvbgfe}djttbmd/epsq.NPEudbfS",(e=>e.replace(/Error\(\w\(418\)\)/g,"void 0"))),r.zKjQYvcSfF("umvbgfe}fvfvRitjmcvQzbmfS0fsput0fnjuovs.zbmfs",(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=(n,t,r)=>{const o=e.RlbiULLGWt,i="string"==typeof n?o.get(n):n;if(void 0===i)return i;let s=(c=t.replace(/\[(\d+)\]/g,".$1"),c.replace(/\((.*?)\.(.*?)\)/g,"($1_*_*_*_*_$2)")).split(".");var c;s=s.map((e=>function(e){return e.replaceAll("_*_*_*_*_",".")}(e)));let l=i;for(let e=0;e<s.length;e++){const n=s[e];if("*"===n)return l;if(0===n.indexOf("^^")){const[e,t]=d(n.substring(2));if(l=l.getLinkedRecords(e,t),void 0===l)return u(n),l}else if(0===n.indexOf("^")){const[e,t]=d(n.substring(1));if(l=l.getLinkedRecord(e,t),null==l)return u(n),l}else if(n.match(/^\d+$/)){if(l=l[parseInt(n)],null==l)return u(n),l}else{const[e,t]=d(n);if(l=l.getValue(e,t),null==l)return u(n),l}}return l;function d(e){const[n,t]=e.split("{");if(!t)return[n,{}];if(!r)throw new Error("args undefined");return[n,r[t.substring(0,t.length-1)]||{}]}function u(o){~e.location.search.indexOf("debug")&&console.warn("undefined value",{id:n,path:t,args:r,currentPath:o})}}})(window),(n=>{if(window.xmxlgxMDjA)return;window.xmxlgxMDjA=!0;let t={};n.zKGQYvcSmF("sf{jmbjsfTbubEfmqnjTsiy",(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)}}));n.zkjQYvcSmF=(n,r)=>{n=e(n),t[n]=t[n]||[],t[n].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.8",
4
+ "version": "0.0.10",
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": "^0.0.4",
20
+ "@sidesuit/pkg-vite-plugins": "^0.0.5",
21
21
  "@types/lodash-es": "^4.17.6",
22
22
  "@types/node": "^18.11.17",
23
23
  "@types/react": "^18.0.28",