Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dappworks/urpc

Package Overview
Dependencies
Maintainers
4
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dappworks/urpc - npm Package Compare versions

Comparing version 0.0.25 to 0.0.26

2

dist/index.d.ts

@@ -212,3 +212,3 @@ // Generated by dts-bundle-generator v9.5.1

ops: Operation[];
}): Promise<any>;
}): Promise<import("fast-json-patch").PatchResult<any>>;
action(params: {

@@ -215,0 +215,0 @@ name: string;

@@ -9,2 +9,2 @@ var xZ=Object.create;var{defineProperty:mU,getPrototypeOf:mZ,getOwnPropertyNames:gZ}=Object;var jZ=Object.prototype.hasOwnProperty;var gU=(U,$,Z)=>{Z=U!=null?xZ(mZ(U)):{};const R=$||!U||!U.__esModule?mU(Z,"default",{value:U,enumerable:!0}):Z;for(let Q of gZ(U))if(!jZ.call(R,Q))mU(R,Q,{get:()=>U[Q],enumerable:!0});return R};var jU=(U,$)=>()=>($||U(($={exports:{}}).exports,$),$.exports);var dU=(U,$)=>{for(var Z in $)mU(U,Z,{get:$[Z],enumerable:!0,configurable:!0,set:(R)=>$[Z]=()=>R})};var T$=jU((p6,O$)=>{var tZ=function(U,$){return U==null?void 0:U[$]},aZ=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},f=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},QR=function(){this.__data__=r?r(null):{}},XR=function(U){return this.has(U)&&delete this.__data__[U]},YR=function(U){var $=this.__data__;if(r){var Z=$[U];return Z===_$?void 0:Z}return QU.call($,U)?$[U]:void 0},BR=function(U){var $=this.__data__;return r?$[U]!==void 0:QU.call($,U)},WR=function(U,$){var Z=this.__data__;return Z[U]=r&&$===void 0?_$:$,this},p=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},JR=function(){this.__data__=[]},GR=function(U){var $=this.__data__,Z=XU($,U);if(Z<0)return!1;var R=$.length-1;if(Z==R)$.pop();else ZR.call($,Z,1);return!0},KR=function(U){var $=this.__data__,Z=XU($,U);return Z<0?void 0:$[Z][1]},wR=function(U){return XU(this.__data__,U)>-1},qR=function(U,$){var Z=this.__data__,R=XU(Z,U);if(R<0)Z.push([U,$]);else Z[R][1]=$;return this},x=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},NR=function(){this.__data__={hash:new f,map:new(RR||p),string:new f}},FR=function(U){return YU(this,U).delete(U)},zR=function(U){return YU(this,U).get(U)},LR=function(U){return YU(this,U).has(U)},HR=function(U,$){return YU(this,U).set(U,$),this},_R=function(U,$,Z){var R=U[$];if(!(QU.call(U,$)&&P$(R,Z))||Z===void 0&&!($ in U))U[$]=Z},XU=function(U,$){var Z=U.length;while(Z--)if(P$(U[Z][0],$))return Z;return-1},SR=function(U){if(!RU(U)||OR(U))return!1;var $=fR(U)||aZ(U)?$R:lZ;return $.test(VR(U))},DR=function(U,$,Z,R){if(!RU(U))return U;$=PR($,U)?[$]:ER($);var Q=-1,X=$.length,Y=X-1,B=U;while(B!=null&&++Q<X){var W=CR($[Q]),G=Z;if(Q!=Y){var J=B[W];if(G=R?R(J,W,B):void 0,G===void 0)G=RU(J)?J:IR($[Q+1])?[]:{}}_R(B,W,G),B=B[W]}return U},MR=function(U){if(typeof U=="string")return U;if(vU(U))return H$?H$.call(U):"";var $=U+"";return $=="0"&&1/U==-S$?"-0":$},ER=function(U){return A$(U)?U:TR(U)},YU=function(U,$){var Z=U.__data__;return AR($)?Z[typeof $=="string"?"string":"hash"]:Z.map},I$=function(U,$){var Z=tZ(U,$);return SR(Z)?Z:void 0},IR=function(U,$){return $=$==null?kZ:$,!!$&&(typeof U=="number"||sZ.test(U))&&(U>-1&&U%1==0&&U<$)},PR=function(U,$){if(A$(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||vU(U))return!0;return bZ.test(U)||!hZ.test(U)||$!=null&&U in Object($)},AR=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},OR=function(U){return!!F$&&F$ in U},CR=function(U){if(typeof U=="string"||vU(U))return U;var $=U+"";return $=="0"&&1/U==-S$?"-0":$},VR=function(U){if(U!=null){try{return M$.call(U)}catch($){}try{return U+""}catch($){}}return""},yU=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(dZ);var Z=function(){var R=arguments,Q=$?$.apply(this,R):R[0],X=Z.cache;if(X.has(Q))return X.get(Q);var Y=U.apply(this,R);return Z.cache=X.set(Q,Y),Y};return Z.cache=new(yU.Cache||x),Z},P$=function(U,$){return U===$||U!==U&&$!==$},fR=function(U){var $=RU(U)?E$.call(U):"";return $==pZ||$==yZ},RU=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},xR=function(U){return!!U&&typeof U=="object"},vU=function(U){return typeof U=="symbol"||xR(U)&&E$.call(U)==vZ},mR=function(U){return U==null?"":MR(U)},gR=function(U,$,Z){return U==null?U:DR(U,$,Z)},dZ="Expected a function",_$="__lodash_hash_undefined__",S$=Infinity,kZ=9007199254740991,pZ="[object Function]",yZ="[object GeneratorFunction]",vZ="[object Symbol]",hZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bZ=/^\w*$/,nZ=/^\./,cZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,iZ=/[\\^$.*+?()[\]{}|]/g,uZ=/\\(\\)?/g,lZ=/^\[object .+?Constructor\]$/,sZ=/^(?:0|[1-9]\d*)$/,rZ=typeof global=="object"&&global&&global.Object===Object&&global,oZ=typeof self=="object"&&self&&self.Object===Object&&self,pU=rZ||oZ||Function("return this")(),eZ=Array.prototype,UR=Function.prototype,D$=Object.prototype,kU=pU["__core-js_shared__"],F$=function(){var U=/[^.]+$/.exec(kU&&kU.keys&&kU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),M$=UR.toString,QU=D$.hasOwnProperty,E$=D$.toString,$R=RegExp("^"+M$.call(QU).replace(iZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z$=pU.Symbol,ZR=eZ.splice,RR=I$(pU,"Map"),r=I$(Object,"create"),L$=z$?z$.prototype:void 0,H$=L$?L$.toString:void 0;f.prototype.clear=QR;f.prototype.delete=XR;f.prototype.get=YR;f.prototype.has=BR;f.prototype.set=WR;p.prototype.clear=JR;p.prototype.delete=GR;p.prototype.get=KR;p.prototype.has=wR;p.prototype.set=qR;x.prototype.clear=NR;x.prototype.delete=FR;x.prototype.get=zR;x.prototype.has=LR;x.prototype.set=HR;var TR=yU(function(U){U=mR(U);var $=[];if(nZ.test(U))$.push("");return U.replace(cZ,function(Z,R,Q,X){$.push(Q?X.replace(uZ,"$1"):R||Z)}),$});yU.Cache=x;var A$=Array.isArray;O$.exports=gR});var JZ=jU((GU,v)=>{var YQ=function(U,$,Z,R){var Q=-1,X=U?U.length:0;while(++Q<X){var Y=U[Q];$(R,Y,Z(Y),U)}return R},BQ=function(U,$){var Z=-1,R=U?U.length:0;while(++Z<R)if($(U[Z],Z,U))return!0;return!1},WQ=function(U){return function($){return $==null?void 0:$[U]}},JQ=function(U,$){var Z=-1,R=Array(U);while(++Z<U)R[Z]=$(Z);return R},GQ=function(U){return function($){return U($)}},KQ=function(U,$){return U==null?void 0:U[$]},lU=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},wQ=function(U){var $=-1,Z=Array(U.size);return U.forEach(function(R,Q){Z[++$]=[Q,R]}),Z},qQ=function(U,$){return function(Z){return U($(Z))}},NQ=function(U){var $=-1,Z=Array(U.size);return U.forEach(function(R){Z[++$]=R}),Z},m=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},AQ=function(){this.__data__=t?t(null):{}},OQ=function(U){return this.has(U)&&delete this.__data__[U]},TQ=function(U){var $=this.__data__;if(t){var Z=$[U];return Z===aU?void 0:Z}return M.call($,U)?$[U]:void 0},CQ=function(U){var $=this.__data__;return t?$[U]!==void 0:M.call($,U)},VQ=function(U,$){var Z=this.__data__;return Z[U]=t&&$===void 0?aU:$,this},E=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},fQ=function(){this.__data__=[]},xQ=function(U){var $=this.__data__,Z=SU($,U);if(Z<0)return!1;var R=$.length-1;if(Z==R)$.pop();else _Q.call($,Z,1);return!0},mQ=function(U){var $=this.__data__,Z=SU($,U);return Z<0?void 0:$[Z][1]},gQ=function(U){return SU(this.__data__,U)>-1},jQ=function(U,$){var Z=this.__data__,R=SU(Z,U);if(R<0)Z.push([U,$]);else Z[R][1]=$;return this},I=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},dQ=function(){this.__data__={hash:new m,map:new(o||E),string:new m}},kQ=function(U){return DU(this,U).delete(U)},pQ=function(U){return DU(this,U).get(U)},yQ=function(U){return DU(this,U).has(U)},vQ=function(U,$){return DU(this,U).set(U,$),this},zU=function(U){var $=-1,Z=U?U.length:0;this.__data__=new I;while(++$<Z)this.add(U[$])},hQ=function(U){return this.__data__.set(U,aU),this},bQ=function(U){return this.__data__.has(U)},D=function(U){this.__data__=new E(U)},nQ=function(){this.__data__=new E},cQ=function(U){return this.__data__.delete(U)},iQ=function(U){return this.__data__.get(U)},uQ=function(U){return this.__data__.has(U)},lQ=function(U,$){var Z=this.__data__;if(Z instanceof E){var R=Z.__data__;if(!o||R.length<pR-1)return R.push([U,$]),this;Z=this.__data__=new I(R)}return Z.set(U,$),this},sQ=function(U,$){var Z=O(U)||BZ(U)?JQ(U.length,String):[],R=Z.length,Q=!!R;for(var X in U)if(($||M.call(U,X))&&!(Q&&(X=="length"||RZ(X,R))))Z.push(X);return Z},SU=function(U,$){var Z=U.length;while(Z--)if(YZ(U[Z][0],$))return Z;return-1},rQ=function(U,$,Z,R){return oQ(U,function(Q,X,Y){$(R,Q,Z(Q),Y)}),R},aQ=function(U,$){return U&&tQ(U,$,LU)},UZ=function(U,$){$=MU($,U)?[$]:$Z($);var Z=0,R=$.length;while(U!=null&&Z<R)U=U[EU($[Z++])];return Z&&Z==R?U:void 0},eQ=function(U){return b.call(U)},U1=function(U,$){return U!=null&&$ in Object(U)},eU=function(U,$,Z,R,Q){if(U===$)return!0;if(U==null||$==null||!IU(U)&&!PU($))return U!==U&&$!==$;return $1(U,$,eU,Z,R,Q)},$1=function(U,$,Z,R,Q,X){var Y=O(U),B=O($),W=iU,G=iU;if(!Y)W=A(U),W=W==KU?y:W;if(!B)G=A($),G=G==KU?y:G;var J=W==y&&!lU(U),q=G==y&&!lU($),K=W==G;if(K&&!J)return X||(X=new D),Y||I1(U)?ZZ(U,$,Z,R,Q,X):N1(U,$,W,Z,R,Q,X);if(!(Q&h)){var w=J&&M.call(U,"__wrapped__"),H=q&&M.call($,"__wrapped__");if(w||H){var P=w?U.value():U,S=H?$.value():$;return X||(X=new D),Z(P,S,R,Q,X)}}if(!K)return!1;return X||(X=new D),F1(U,$,Z,R,Q,X)},Z1=function(U,$,Z,R){var Q=Z.length,X=Q,Y=!R;if(U==null)return!X;U=Object(U);while(Q--){var B=Z[Q];if(Y&&B[2]?B[1]!==U[B[0]]:!(B[0]in U))return!1}while(++Q<X){B=Z[Q];var W=B[0],G=U[W],J=B[1];if(Y&&B[2]){if(G===void 0&&!(W in U))return!1}else{var q=new D;if(R)var K=R(G,J,W,U,$,q);if(!(K===void 0?eU(J,G,R,HU|h,q):K))return!1}}return!0},R1=function(U){if(!IU(U)||_1(U))return!1;var $=WZ(U)||lU(U)?LQ:ZQ;return $.test(g(U))},Q1=function(U){return PU(U)&&Z$(U.length)&&!!N[b.call(U)]},X1=function(U){if(typeof U=="function")return U;if(U==null)return T1;if(typeof U=="object")return O(U)?W1(U[0],U[1]):B1(U);return C1(U)},Y1=function(U){if(!S1(U))return SQ(U);var $=[];for(var Z in Object(U))if(M.call(U,Z)&&Z!="constructor")$.push(Z);return $},B1=function(U){var $=z1(U);if($.length==1&&$[0][2])return XZ($[0][0],$[0][1]);return function(Z){return Z===U||Z1(Z,U,$)}},W1=function(U,$){if(MU(U)&&QZ($))return XZ(EU(U),$);return function(Z){var R=A1(Z,U);return R===void 0&&R===$?O1(Z,U):eU($,R,void 0,HU|h)}},J1=function(U){return function($){return UZ($,U)}},G1=function(U){if(typeof U=="string")return U;if(R$(U))return y$?y$.call(U):"";var $=U+"";return $=="0"&&1/U==-v$?"-0":$},$Z=function(U){return O(U)?U:D1(U)},K1=function(U,$){return function(Z,R){var Q=O(Z)?YQ:rQ,X=$?$():{};return Q(Z,U,X1(R,2),X)}},w1=function(U,$){return function(Z,R){if(Z==null)return Z;if(!$$(Z))return U(Z,R);var Q=Z.length,X=$?Q:-1,Y=Object(Z);while($?X--:++X<Q)if(R(Y[X],X,Y)===!1)break;return Z}},q1=function(U){return function($,Z,R){var Q=-1,X=Object($),Y=R($),B=Y.length;while(B--){var W=Y[U?B:++Q];if(Z(X[W],W,X)===!1)break}return $}},ZZ=function(U,$,Z,R,Q,X){var Y=Q&h,B=U.length,W=$.length;if(B!=W&&!(Y&&W>B))return!1;var G=X.get(U);if(G&&X.get($))return G==$;var J=-1,q=!0,K=Q&HU?new zU:void 0;X.set(U,$),X.set($,U);while(++J<B){var w=U[J],H=$[J];if(R)var P=Y?R(H,w,J,$,U,X):R(w,H,J,U,$,X);if(P!==void 0){if(P)continue;q=!1;break}if(K){if(!BQ($,function(S,V){if(!K.has(V)&&(w===S||Z(w,S,R,Q,X)))return K.add(V)})){q=!1;break}}else if(!(w===H||Z(w,H,R,Q,X))){q=!1;break}}return X.delete(U),X.delete($),q},N1=function(U,$,Z,R,Q,X,Y){switch(Z){case NU:if(U.byteLength!=$.byteLength||U.byteOffset!=$.byteOffset)return!1;U=U.buffer,$=$.buffer;case o$:if(U.byteLength!=$.byteLength||!R(new p$(U),new p$($)))return!1;return!0;case b$:case n$:case u$:return YZ(+U,+$);case c$:return U.name==$.name&&U.message==$.message;case l$:case s$:return U==$+"";case wU:var B=wQ;case qU:var W=X&h;if(B||(B=NQ),U.size!=$.size&&!W)return!1;var G=Y.get(U);if(G)return G==$;X|=HU,Y.set(U,$);var J=ZZ(B(U),B($),R,Q,X,Y);return Y.delete(U),J;case r$:if(cU)return cU.call(U)==cU.call($)}return!1},F1=function(U,$,Z,R,Q,X){var Y=Q&h,B=LU(U),W=B.length,G=LU($),J=G.length;if(W!=J&&!Y)return!1;var q=W;while(q--){var K=B[q];if(!(Y?K in $:M.call($,K)))return!1}var w=X.get(U);if(w&&X.get($))return w==$;var H=!0;X.set(U,$),X.set($,U);var P=Y;while(++q<W){K=B[q];var S=U[K],V=$[K];if(R)var N$=Y?R(V,S,K,$,U,X):R(S,V,K,U,$,X);if(!(N$===void 0?S===V||Z(S,V,R,Q,X):N$)){H=!1;break}P||(P=K=="constructor")}if(H&&!P){var $U=U.constructor,ZU=$.constructor;if($U!=ZU&&(("constructor"in U)&&("constructor"in $))&&!(typeof $U=="function"&&$U instanceof $U&&typeof ZU=="function"&&ZU instanceof ZU))H=!1}return X.delete(U),X.delete($),H},DU=function(U,$){var Z=U.__data__;return H1($)?Z[typeof $=="string"?"string":"hash"]:Z.map},z1=function(U){var $=LU(U),Z=$.length;while(Z--){var R=$[Z],Q=U[R];$[Z]=[R,Q,QZ(Q)]}return $},n=function(U,$){var Z=KQ(U,$);return R1(Z)?Z:void 0},L1=function(U,$,Z){$=MU($,U)?[$]:$Z($);var R,Q=-1,Y=$.length;while(++Q<Y){var X=EU($[Q]);if(!(R=U!=null&&Z(U,X)))break;U=U[X]}if(R)return R;var Y=U?U.length:0;return!!Y&&Z$(Y)&&RZ(X,Y)&&(O(U)||BZ(U))},RZ=function(U,$){return $=$==null?h$:$,!!$&&(typeof U=="number"||RQ.test(U))&&(U>-1&&U%1==0&&U<$)},MU=function(U,$){if(O(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||R$(U))return!0;return tR.test(U)||!oR.test(U)||$!=null&&U in Object($)},H1=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},_1=function(U){return!!d$&&d$ in U},S1=function(U){var $=U&&U.constructor,Z=typeof $=="function"&&$.prototype||_U;return U===Z},QZ=function(U){return U===U&&!IU(U)},XZ=function(U,$){return function(Z){if(Z==null)return!1;return Z[U]===$&&($!==void 0||(U in Object(Z)))}},EU=function(U){if(typeof U=="string"||R$(U))return U;var $=U+"";return $=="0"&&1/U==-v$?"-0":$},g=function(U){if(U!=null){try{return e$.call(U)}catch($){}try{return U+""}catch($){}}return""},U$=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(yR);var Z=function(){var R=arguments,Q=$?$.apply(this,R):R[0],X=Z.cache;if(X.has(Q))return X.get(Q);var Y=U.apply(this,R);return Z.cache=X.set(Q,Y),Y};return Z.cache=new(U$.Cache||I),Z},YZ=function(U,$){return U===$||U!==U&&$!==$},BZ=function(U){return E1(U)&&M.call(U,"callee")&&(!HQ.call(U,"callee")||b.call(U)==KU)},$$=function(U){return U!=null&&Z$(U.length)&&!WZ(U)},E1=function(U){return PU(U)&&$$(U)},WZ=function(U){var $=IU(U)?b.call(U):"";return $==i$||$==vR},Z$=function(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=h$},IU=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},PU=function(U){return!!U&&typeof U=="object"},R$=function(U){return typeof U=="symbol"||PU(U)&&b.call(U)==r$},P1=function(U){return U==null?"":G1(U)},A1=function(U,$,Z){var R=U==null?void 0:UZ(U,$);return R===void 0?Z:R},O1=function(U,$){return U!=null&&L1(U,$,U1)},LU=function(U){return $$(U)?sQ(U):Y1(U)},T1=function(U){return U},C1=function(U){return MU(U)?WQ(EU(U)):J1(U)},pR=200,yR="Expected a function",aU="__lodash_hash_undefined__",HU=1,h=2,v$=Infinity,h$=9007199254740991,KU="[object Arguments]",iU="[object Array]",b$="[object Boolean]",n$="[object Date]",c$="[object Error]",i$="[object Function]",vR="[object GeneratorFunction]",wU="[object Map]",u$="[object Number]",y="[object Object]",f$="[object Promise]",l$="[object RegExp]",qU="[object Set]",s$="[object String]",r$="[object Symbol]",uU="[object WeakMap]",o$="[object ArrayBuffer]",NU="[object DataView]",hR="[object Float32Array]",bR="[object Float64Array]",nR="[object Int8Array]",cR="[object Int16Array]",iR="[object Int32Array]",uR="[object Uint8Array]",lR="[object Uint8ClampedArray]",sR="[object Uint16Array]",rR="[object Uint32Array]",oR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tR=/^\w*$/,aR=/^\./,eR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UQ=/[\\^$.*+?()[\]{}|]/g,$Q=/\\(\\)?/g,ZQ=/^\[object .+?Constructor\]$/,RQ=/^(?:0|[1-9]\d*)$/,N={};N[hR]=N[bR]=N[nR]=N[cR]=N[iR]=N[uR]=N[lR]=N[sR]=N[rR]=!0;N[KU]=N[iU]=N[o$]=N[b$]=N[NU]=N[n$]=N[c$]=N[i$]=N[wU]=N[u$]=N[y]=N[l$]=N[qU]=N[s$]=N[uU]=!1;var t$=typeof global=="object"&&global&&global.Object===Object&&global,QQ=typeof self=="object"&&self&&self.Object===Object&&self,T=t$||QQ||Function("return this")(),a$=typeof GU=="object"&&GU&&!GU.nodeType&&GU,x$=a$&&typeof v=="object"&&v&&!v.nodeType&&v,XQ=x$&&x$.exports===a$,m$=XQ&&t$.process,g$=function(){try{return m$&&m$.binding("util")}catch(U){}}(),j$=g$&&g$.isTypedArray,FQ=Array.prototype,zQ=Function.prototype,_U=Object.prototype,nU=T["__core-js_shared__"],d$=function(){var U=/[^.]+$/.exec(nU&&nU.keys&&nU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),e$=zQ.toString,M=_U.hasOwnProperty,b=_U.toString,LQ=RegExp("^"+e$.call(M).replace(UQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k$=T.Symbol,p$=T.Uint8Array,HQ=_U.propertyIsEnumerable,_Q=FQ.splice,SQ=qQ(Object.keys,Object),sU=n(T,"DataView"),o=n(T,"Map"),rU=n(T,"Promise"),oU=n(T,"Set"),tU=n(T,"WeakMap"),t=n(Object,"create"),DQ=g(sU),MQ=g(o),EQ=g(rU),IQ=g(oU),PQ=g(tU),FU=k$?k$.prototype:void 0,cU=FU?FU.valueOf:void 0,y$=FU?FU.toString:void 0;m.prototype.clear=AQ;m.prototype.delete=OQ;m.prototype.get=TQ;m.prototype.has=CQ;m.prototype.set=VQ;E.prototype.clear=fQ;E.prototype.delete=xQ;E.prototype.get=mQ;E.prototype.has=gQ;E.prototype.set=jQ;I.prototype.clear=dQ;I.prototype.delete=kQ;I.prototype.get=pQ;I.prototype.has=yQ;I.prototype.set=vQ;zU.prototype.add=zU.prototype.push=hQ;zU.prototype.has=bQ;D.prototype.clear=nQ;D.prototype.delete=cQ;D.prototype.get=iQ;D.prototype.has=uQ;D.prototype.set=lQ;var oQ=w1(aQ),tQ=q1(),A=eQ;if(sU&&A(new sU(new ArrayBuffer(1)))!=NU||o&&A(new o)!=wU||rU&&A(rU.resolve())!=f$||oU&&A(new oU)!=qU||tU&&A(new tU)!=uU)A=function(U){var $=b.call(U),Z=$==y?U.constructor:void 0,R=Z?g(Z):void 0;if(R)switch(R){case DQ:return NU;case MQ:return wU;case EQ:return f$;case IQ:return qU;case PQ:return uU}return $};var D1=U$(function(U){U=P1(U);var $=[];if(aR.test(U))$.push("");return U.replace(eR,function(Z,R,Q,X){$.push(Q?X.replace($Q,"$1"):R||Z)}),$}),M1=K1(function(U,$,Z){U[Z]=$});U$.Cache=I;var O=Array.isArray,I1=j$?GQ(j$):Q1;v.exports=M1});var VZ=jU((W8,CZ)=>{var U6=function(U,$){return U==null?void 0:U[$]},$6=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},d=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},B6=function(){this.__data__=UU?UU(null):{}},W6=function(U){return this.has(U)&&delete this.__data__[U]},J6=function(U){var $=this.__data__;if(UU){var Z=$[U];return Z===DZ?void 0:Z}return K$.call($,U)?$[U]:void 0},G6=function(U){var $=this.__data__;return UU?$[U]!==void 0:K$.call($,U)},K6=function(U,$){var Z=this.__data__;return Z[U]=UU&&$===void 0?DZ:$,this},s=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},w6=function(){this.__data__=[]},q6=function(U){var $=this.__data__,Z=fU($,U);if(Z<0)return!1;var R=$.length-1;if(Z==R)$.pop();else X6.call($,Z,1);return!0},N6=function(U){var $=this.__data__,Z=fU($,U);return Z<0?void 0:$[Z][1]},F6=function(U){return fU(this.__data__,U)>-1},z6=function(U,$){var Z=this.__data__,R=fU(Z,U);if(R<0)Z.push([U,$]);else Z[R][1]=$;return this},k=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var R=U[$];this.set(R[0],R[1])}},L6=function(){this.__data__={hash:new d,map:new(Y6||s),string:new d}},H6=function(U){return xU(this,U).delete(U)},_6=function(U){return xU(this,U).get(U)},S6=function(U){return xU(this,U).has(U)},D6=function(U,$){return xU(this,U).set(U,$),this},fU=function(U,$){var Z=U.length;while(Z--)if(x6(U[Z][0],$))return Z;return-1},M6=function(U,$){$=A6($,U)?[$]:P6($);var Z=0,R=$.length;while(U!=null&&Z<R)U=U[V6($[Z++])];return Z&&Z==R?U:void 0},E6=function(U){if(!TZ(U)||T6(U))return!1;var $=m6(U)||$6(U)?Q6:t1;return $.test(f6(U))},I6=function(U){if(typeof U=="string")return U;if(q$(U))return SZ?SZ.call(U):"";var $=U+"";return $=="0"&&1/U==-MZ?"-0":$},P6=function(U){return OZ(U)?U:C6(U)},xU=function(U,$){var Z=U.__data__;return O6($)?Z[typeof $=="string"?"string":"hash"]:Z.map},AZ=function(U,$){var Z=U6(U,$);return E6(Z)?Z:void 0},A6=function(U,$){if(OZ(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||q$(U))return!0;return u1.test(U)||!i1.test(U)||$!=null&&U in Object($)},O6=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},T6=function(U){return!!LZ&&LZ in U},V6=function(U){if(typeof U=="string"||q$(U))return U;var $=U+"";return $=="0"&&1/U==-MZ?"-0":$},f6=function(U){if(U!=null){try{return IZ.call(U)}catch($){}try{return U+""}catch($){}}return""},w$=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(h1);var Z=function(){var R=arguments,Q=$?$.apply(this,R):R[0],X=Z.cache;if(X.has(Q))return X.get(Q);var Y=U.apply(this,R);return Z.cache=X.set(Q,Y),Y};return Z.cache=new(w$.Cache||k),Z},x6=function(U,$){return U===$||U!==U&&$!==$},m6=function(U){var $=TZ(U)?PZ.call(U):"";return $==b1||$==n1},TZ=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},g6=function(U){return!!U&&typeof U=="object"},q$=function(U){return typeof U=="symbol"||g6(U)&&PZ.call(U)==c1},j6=function(U){return U==null?"":I6(U)},d6=function(U,$,Z){var R=U==null?void 0:M6(U,$);return R===void 0?Z:R},h1="Expected a function",DZ="__lodash_hash_undefined__",MZ=Infinity,b1="[object Function]",n1="[object GeneratorFunction]",c1="[object Symbol]",i1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u1=/^\w*$/,l1=/^\./,s1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r1=/[\\^$.*+?()[\]{}|]/g,o1=/\\(\\)?/g,t1=/^\[object .+?Constructor\]$/,a1=typeof global=="object"&&global&&global.Object===Object&&global,e1=typeof self=="object"&&self&&self.Object===Object&&self,G$=a1||e1||Function("return this")(),Z6=Array.prototype,R6=Function.prototype,EZ=Object.prototype,J$=G$["__core-js_shared__"],LZ=function(){var U=/[^.]+$/.exec(J$&&J$.keys&&J$.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),IZ=R6.toString,K$=EZ.hasOwnProperty,PZ=EZ.toString,Q6=RegExp("^"+IZ.call(K$).replace(r1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),HZ=G$.Symbol,X6=Z6.splice,Y6=AZ(G$,"Map"),UU=AZ(Object,"create"),_Z=HZ?HZ.prototype:void 0,SZ=_Z?_Z.toString:void 0;d.prototype.clear=B6;d.prototype.delete=W6;d.prototype.get=J6;d.prototype.has=G6;d.prototype.set=K6;s.prototype.clear=w6;s.prototype.delete=q6;s.prototype.get=N6;s.prototype.has=F6;s.prototype.set=z6;k.prototype.clear=L6;k.prototype.delete=H6;k.prototype.get=_6;k.prototype.has=S6;k.prototype.set=D6;var C6=w$(function(U){U=j6(U);var $=[];if(l1.test(U))$.push("");return U.replace(s1,function(Z,R,Q,X){$.push(Q?X.replace(o1,"$1"):R||Z)}),$});w$.Cache=k;var OZ=Array.isArray;CZ.exports=d6});var C$=gU(T$(),1),BU={isNamespace:(U)=>U&&!U.type,flattenSchema(U,$){return Object.entries(U).reduce((Z,[R,Q])=>{const X=$?`${$}.${R}`:R;if(BU.isNamespace(Q))Z={...Z,...BU.flattenSchema(Q,X)};else Object.assign(Q,{name:X}),Z[X]=Q;return Z},{})},wrapSchema(U){return Object.values(U).reduce(($,Z)=>{return C$.default($,Z.path,Z),$},{})}};var WU,jR=new Uint8Array(16);function hU(){if(!WU){if(WU=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!WU)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return WU(jR)}function V$(U,$=0){return L[U[$+0]]+L[U[$+1]]+L[U[$+2]]+L[U[$+3]]+"-"+L[U[$+4]]+L[U[$+5]]+"-"+L[U[$+6]]+L[U[$+7]]+"-"+L[U[$+8]]+L[U[$+9]]+"-"+L[U[$+10]]+L[U[$+11]]+L[U[$+12]]+L[U[$+13]]+L[U[$+14]]+L[U[$+15]]}var L=[];for(let U=0;U<256;++U)L.push((U+256).toString(16).slice(1));var dR=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),bU={randomUUID:dR};var kR=function(U,$,Z){if(bU.randomUUID&&!$&&!U)return bU.randomUUID();U=U||{};const R=U.random||(U.rng||hU)();if(R[6]=R[6]&15|64,R[8]=R[8]&63|128,$){Z=Z||0;for(let Q=0;Q<16;++Q)$[Z+Q]=R[Q];return $}return V$(R)},JU=kR;var zZ=gU(JZ(),1);var FZ={};dU(FZ,{validator:()=>{{return e}},validate:()=>{{return Q$}},unobserve:()=>{{return wZ}},unescapePathComponent:()=>{{return c}},observe:()=>{{return qZ}},getValueByPointer:()=>{{return a}},generate:()=>{{return VU}},escapePathComponent:()=>{{return _}},default:()=>{{return y1}},deepClone:()=>{{return z}},compare:()=>{{return NZ}},applyReducer:()=>{{return KZ}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return l}},JsonPatchError:()=>{{return i}}});var X$={};dU(X$,{validator:()=>{{return e}},validate:()=>{{return Q$}},getValueByPointer:()=>{{return a}},deepClone:()=>{{return x1}},applyReducer:()=>{{return KZ}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return l}},JsonPatchError:()=>{{return F}}});function OU(U,$){return f1.call(U,$)}function TU(U){if(Array.isArray(U)){var $=new Array(U.length);for(var Z=0;Z<$.length;Z++)$[Z]=""+Z;return $}if(Object.keys)return Object.keys(U);var R=[];for(var Q in U)if(OU(U,Q))R.push(Q);return R}function z(U){switch(typeof U){case"object":return JSON.parse(JSON.stringify(U));case"undefined":return null;default:return U}}function CU(U){var $=0,Z=U.length,R;while($<Z){if(R=U.charCodeAt($),R>=48&&R<=57){$++;continue}return!1}return!0}function _(U){if(U.indexOf("/")===-1&&U.indexOf("~")===-1)return U;return U.replace(/~/g,"~0").replace(/\//g,"~1")}function c(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}function AU(U){if(U===void 0)return!0;if(U){if(Array.isArray(U)){for(var $=0,Z=U.length;$<Z;$++)if(AU(U[$]))return!0}else if(typeof U==="object"){var R=TU(U),Q=R.length;for(var X=0;X<Q;X++)if(AU(U[R[X]]))return!0}}return!1}var GZ=function(U,$){var Z=[U];for(var R in $){var Q=typeof $[R]==="object"?JSON.stringify($[R],null,2):$[R];if(typeof Q!=="undefined")Z.push(R+": "+Q)}return Z.join("\n")};/*!

* MIT license
*/var Y$=new WeakMap,g1=function(){function U($){this.observers=new Map,this.obj=$}return U}(),j1=function(){function U($,Z){this.callback=$,this.observer=Z}return U}();var y1=Object.assign({},X$,W$,{JsonPatchError:i,deepClone:z,escapePathComponent:_,unescapePathComponent:c});class v1{schemas;falttenSchema;uidSchemas;static Var(U){return U.patch=Object.assign({},{allowCreate:!0,allowDelete:!0,allowUpdate:!0,autoPatch:!0,onPatch:($)=>{if($.forEach((Z)=>{if(Z.op=="add"&&Z.path=="/-")U.patch?.onCreate&&U.patch.onCreate(Z.value);if(Z.op=="replace")U.patch?.onUpdate&&U.patch.onUpdate(Z.path.replace("/",""),Z.value);if(Z.op=="remove")U.patch?.onDelete&&U.patch.onDelete(Z.path.replace("/",""))}),U.patch?.autoPatch)return j(U.get(),$);return{newDocument:U.get()}}},U.patch||{}),{...U,type:"var",uid:JU()}}static Func(U){return{...U,type:"func",uid:JU()}}constructor(U={}){Object.assign(this,U),this.falttenSchema=BU.flattenSchema(this.schemas),this.uidSchemas=zZ.default(Object.values(this.falttenSchema),"uid")}loadFull(){return Object.entries(this.falttenSchema).map(([U,$])=>{if($.type=="func"){const{uid:Z,type:R,input:Q,name:X,uiConfig:Y}=$;return{uid:Z,type:R,name:X,input:Q,uiConfig:Y?Y():null}}if($.type=="var"){const{uid:Z,type:R,get:Q,set:X,format:Y,name:B,patch:W}=$,G=$.uiConfig?$.uiConfig():null,J=$.actions?Object.keys($.actions):null,q=Y?Y(Q()):Q();return{uid:Z,type:R,name:B,value:q,uiConfig:G,actions:J,set:!!X,patch:W}}return{type:"unknown",name:U}})}loadVars(){return Object.entries(this.falttenSchema).filter(([U,$])=>$.type=="var").map(([U,$])=>{const{get:Z,format:R,name:Q}=$,X=R?R(Z()):Z();return{name:Q,value:X}})}}var fZ=gU(VZ(),1),J8=(U)=>{return{schema:{async loadFull(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadFull"})}).then(($)=>$.json())},async loadVars(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadVars"})}).then(($)=>$.json())}},func:{async call($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"func.call",params:$})}).then((Z)=>Z.json())}},var:{async set($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.set",params:$})}).then((Z)=>Z.json())},async patch($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.patch",params:$})}).then((Z)=>Z.json())},async action($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.action",params:$})}).then((Z)=>Z.json())}}}},G8=({urpc:U})=>{const $={urpc:U,handle({name:Z,params:R}){const Q=fZ.default($,Z);if(!Q)throw new Error("invalid name");return Q(R)},schema:{async loadFull(){return U.loadFull()},async loadVars(){return U.loadVars()}},func:{async call(Z){const R=U.uidSchemas[Z.method]||U.falttenSchema[Z.method];if(!R)throw new Error("invalid func name");return R.func({input:Z.input})}},var:{async set(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");if(!R.set)throw new Error("variable can't be set");return R.set(Z.value)},async patch(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");if(!R.patch)throw new Error("variable can't be set");return(R.patch?.onPatch(Z.ops)).newDocument},async action(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");const Q=R.actions[Z.action];if(!Q)throw new Error("invalid action name");return Q(R.get())}}};return $};export{BU as utils,FZ as jsonPatch,J8 as createSimpleHttpClient,G8 as createServerClient,v1 as URPC};
*/var Y$=new WeakMap,g1=function(){function U($){this.observers=new Map,this.obj=$}return U}(),j1=function(){function U($,Z){this.callback=$,this.observer=Z}return U}();var y1=Object.assign({},X$,W$,{JsonPatchError:i,deepClone:z,escapePathComponent:_,unescapePathComponent:c});class v1{schemas;falttenSchema;uidSchemas;static Var(U){return U.patch=Object.assign({},{allowCreate:!0,allowDelete:!0,allowUpdate:!0,autoPatch:!0,onPatch:($)=>{if($.forEach((Z)=>{if(Z.op=="add"&&Z.path=="/-")U.patch?.onCreate&&U.patch.onCreate(Z.value);if(Z.op=="replace")U.patch?.onUpdate&&U.patch.onUpdate(Z.path.replace("/",""),Z.value);if(Z.op=="remove")U.patch?.onDelete&&U.patch.onDelete(Z.path.replace("/",""))}),U.patch?.autoPatch)return j(U.get(),$).newDocument;return U.get()}},U.patch||{}),{...U,type:"var",uid:JU()}}static Func(U){return{...U,type:"func",uid:JU()}}constructor(U={}){Object.assign(this,U),this.falttenSchema=BU.flattenSchema(this.schemas),this.uidSchemas=zZ.default(Object.values(this.falttenSchema),"uid")}loadFull(){return Object.entries(this.falttenSchema).map(([U,$])=>{if($.type=="func"){const{uid:Z,type:R,input:Q,name:X,uiConfig:Y}=$;return{uid:Z,type:R,name:X,input:Q,uiConfig:Y?Y():null}}if($.type=="var"){const{uid:Z,type:R,get:Q,set:X,format:Y,name:B,patch:W}=$,G=$.uiConfig?$.uiConfig():null,J=$.actions?Object.keys($.actions):null,q=Y?Y(Q()):Q();return{uid:Z,type:R,name:B,value:q,uiConfig:G,actions:J,set:!!X,patch:W}}return{type:"unknown",name:U}})}loadVars(){return Object.entries(this.falttenSchema).filter(([U,$])=>$.type=="var").map(([U,$])=>{const{get:Z,format:R,name:Q}=$,X=R?R(Z()):Z();return{name:Q,value:X}})}}var fZ=gU(VZ(),1),J8=(U)=>{return{schema:{async loadFull(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadFull"})}).then(($)=>$.json())},async loadVars(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadVars"})}).then(($)=>$.json())}},func:{async call($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"func.call",params:$})}).then((Z)=>Z.json())}},var:{async set($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.set",params:$})}).then((Z)=>Z.json())},async patch($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.patch",params:$})}).then((Z)=>Z.json())},async action($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.action",params:$})}).then((Z)=>Z.json())}}}},G8=({urpc:U})=>{const $={urpc:U,handle({name:Z,params:R}){const Q=fZ.default($,Z);if(!Q)throw new Error("invalid name");return Q(R)},schema:{async loadFull(){return U.loadFull()},async loadVars(){return U.loadVars()}},func:{async call(Z){const R=U.uidSchemas[Z.method]||U.falttenSchema[Z.method];if(!R)throw new Error("invalid func name");return R.func({input:Z.input})}},var:{async set(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");if(!R.set)throw new Error("variable can't be set");return R.set(Z.value)},async patch(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");if(!R.patch)throw new Error("variable can't be set");return R.patch?.onPatch(Z.ops)},async action(Z){const R=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!R)throw new Error("invalid var name");const Q=R.actions[Z.action];if(!Q)throw new Error("invalid action name");return Q(R.get())}}};return $};export{BU as utils,FZ as jsonPatch,J8 as createSimpleHttpClient,G8 as createServerClient,v1 as URPC};
{
"name": "@dappworks/urpc",
"version": "0.0.25",
"version": "0.0.26",
"module": "index.ts",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc