insite-client 2.5.0 → 2.6.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/index.js CHANGED
@@ -1,2 +1,2 @@
1
- var x=Object.defineProperty;var m=i=>{throw TypeError(i)};var w=(i,t,s)=>t in i?x(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>w(i,typeof t!="symbol"?t+"":t,s),b=(i,t,s)=>t.has(i)||m("Cannot "+s);var a=(i,t,s)=>(b(i,t,"read from private field"),s?s.call(i):t.get(i)),d=(i,t,s)=>t.has(i)?m("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(i):t.set(i,s);import R from"eventemitter3";import{StatefulPromise as L}from"@nesvet/n";import{CookieSetter as P}from"insite-cookie/client";import{Subscription as O}from"insite-subscriptions-client";import{UsersSubscriptionGroup as T}from"insite-users-client";import{IncomingTransport as A,OutgoingTransport as U}from"insite-ws-transfers/browser";import{WS as W}from"insite-ws/client";function k(i,t){return this.ws.sendRequest("login",i,t)}function v(){return this.ws.sendRequest("logout")}var n,l=class l extends R{constructor(s){super();e(this,"ws");e(this,"incomingTransport");e(this,"outgoingTransport");e(this,"cookie");e(this,"usersSubscriptionGroup");e(this,"user");e(this,"users");e(this,"orgs");e(this,"roles");e(this,"isLoggedIn",!1);e(this,"login");e(this,"logout");e(this,"isReady",!1);d(this,n,new L);s&&this.init(s)}async init(s){if(!this.isReady){let{ws:r={},cookie:o,users:c,public:I}=s??{},{subscriptions:h,incomingTransport:p,outgoingTransport:y,...S}=r;this.ws=new W(S),h!==null&&O.bindTo(this.ws),p&&(this.incomingTransport=new A(this.ws,typeof p=="object"?p:{})),y&&(this.outgoingTransport=new U(this.ws)),o!==null&&(this.cookie=new P(this.ws,o)),c!==null&&h!==null&&o!==null&&(this.user=null,this.login=k,this.logout=v,I?await new Promise(u=>{new O("object","user",[!0],g=>{this.user=g,this.user?this.isLoggedIn||(this.isLoggedIn=!0,this.emit("login",!0)):this.isLoggedIn&&(this.isLoggedIn=!1,this.emit("logout",!1)),this.isReady||u()})}):(this.usersSubscriptionGroup=new T({target:this}),await new Promise(u=>{this.usersSubscriptionGroup.once("init",()=>{this.isLoggedIn=!!this.user,this.usersSubscriptionGroup.on("update.user",g=>{g.valueOf()?this.isLoggedIn||(this.isLoggedIn=!0,this.emit("login",!0)):this.isLoggedIn&&(this.isLoggedIn=!1,this.emit("logout",!1))}),u(),this.isLoggedIn&&this.emit("login",!0)})}))),this.isReady=!0,this.emit("ready",!0),a(this,n).resolve(this)}}whenReady(){return a(this,n)}static init(s,r=!1){let o=new l(s);return r?o.whenReady():o}};n=new WeakMap;var f=l;export*from"insite-common/frontend";export*from"insite-cookie/client";export*from"insite-subscriptions-client";export*from"insite-users-client";export*from"insite-ws-transfers/browser";export*from"insite-ws/client";export{f as InSite};
1
+ import d from"eventemitter3";import{StatefulPromise as O}from"@nesvet/n";import{CookieSetter as f}from"insite-cookie/client";import{Subscription as u}from"insite-subscriptions-client";import{UsersSubscriptionGroup as c}from"insite-users-client";import{IncomingTransport as I,OutgoingTransport as y}from"insite-ws-transfers/browser";import{WS as S}from"insite-ws/client";function x(s,t){return this.ws.sendRequest("login",s,t)}function w(){return this.ws.sendRequest("logout")}var g=class s extends d{constructor(t){super(),t&&this.init(t)}ws;incomingTransport;outgoingTransport;cookie;usersSubscriptionGroup;user;users;orgs;roles;isLoggedIn=!1;login;logout;isReady=!1;async init(t){if(!this.isReady){let{ws:e={},cookie:i,users:a,public:l}=t??{},{subscriptions:p,incomingTransport:o,outgoingTransport:h,...m}=e;this.ws=new S(m),p!==null&&u.bindTo(this.ws),o&&(this.incomingTransport=new I(this.ws,typeof o=="object"?o:{})),h&&(this.outgoingTransport=new y(this.ws)),i!==null&&(this.cookie=new f(this.ws,i)),a!==null&&p!==null&&i!==null&&(this.user=null,this.login=x,this.logout=w,l?await new Promise(n=>{new u("object","user",[!0],r=>{this.user=r,this.user?this.isLoggedIn||(this.isLoggedIn=!0,this.emit("login",!0)):this.isLoggedIn&&(this.isLoggedIn=!1,this.emit("logout",!1)),this.isReady||n()})}):(this.usersSubscriptionGroup=new c({target:this}),await new Promise(n=>{this.usersSubscriptionGroup.once("init",()=>{this.isLoggedIn=!!this.user,this.usersSubscriptionGroup.on("update.user",r=>{r.valueOf()?this.isLoggedIn||(this.isLoggedIn=!0,this.emit("login",!0)):this.isLoggedIn&&(this.isLoggedIn=!1,this.emit("logout",!1))}),n(),this.isLoggedIn&&this.emit("login",!0)})}))),this.isReady=!0,this.emit("ready",!0),this.#t.resolve(this)}}#t=new O;whenReady(){return this.#t}static init(t,e=!1){let i=new s(t);return e?i.whenReady():i}};export*from"insite-common/frontend";export*from"insite-cookie/client";export*from"insite-subscriptions-client";export*from"insite-users-client";export*from"insite-ws-transfers/browser";export*from"insite-ws/client";export{g as InSite};
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/InSite.ts", "../src/index.ts"],
4
4
  "sourcesContent": ["import EventEmitter from \"eventemitter3\";\nimport { StatefulPromise } from \"@nesvet/n\";\nimport type { AbilitiesSchema } from \"insite-common\";\nimport { CookieSetter } from \"insite-cookie/client\";\nimport { Subscription } from \"insite-subscriptions-client\";\nimport {\n\tUsersSubscriptionGroup,\n\ttype CurrentUser,\n\ttype Orgs,\n\ttype OrgsExtended,\n\ttype Roles,\n\ttype Users,\n\ttype UsersExtended\n} from \"insite-users-client\";\nimport { IncomingTransport, OutgoingTransport } from \"insite-ws-transfers/browser\";\nimport { WS } from \"insite-ws/client\";\nimport type { OmitRedundant, Options, WSWithActualProps } from \"./types\";\n\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n\n/** @this InSite */\nfunction login<O extends Options<any>>(this: InSite<O>, email: string, password: string) {\n\treturn this.ws.sendRequest(\"login\", email, password);\n}\n\n/** @this InSite */\nfunction logout<O extends Options<any>>(this: InSite<O>) {\n\treturn this.ws.sendRequest(\"logout\");\n}\n\n\nexport class InSite<\n\tO extends Options<any>,\n\tAS extends AbilitiesSchema = O extends Options<infer A> ? A : never\n> extends EventEmitter {\n\tconstructor(options?: O) {\n\t\tsuper();\n\t\t\n\t\tif (options)\n\t\t\tvoid this.init(options);\n\t\t\n\t}\n\t\n\tws!: WSWithActualProps<O>;\n\tincomingTransport!: IncomingTransport;\n\toutgoingTransport!: OutgoingTransport;\n\tcookie!: CookieSetter;\n\tusersSubscriptionGroup!: UsersSubscriptionGroup;\n\tuser!: CurrentUser<AS> | null;\n\tusers!: Users | UsersExtended;\n\torgs!: Orgs | OrgsExtended;\n\troles!: Roles;\n\tisLoggedIn = false;\n\t\n\tlogin!: typeof login<O>;\n\tlogout!: typeof logout<O>;\n\t\n\tisReady = false;\n\t\n\tprotected async init(options?: O) {\n\t\t\n\t\tif (!this.isReady) {\n\t\t\tconst {\n\t\t\t\tws: wsWithOtherOptions = {},\n\t\t\t\tcookie: cookieOptions,\n\t\t\t\tusers,\n\t\t\t\tpublic: isPublic\n\t\t\t} = options ?? {};\n\t\t\t\n\t\t\tconst {\n\t\t\t\tsubscriptions,\n\t\t\t\tincomingTransport,\n\t\t\t\toutgoingTransport,\n\t\t\t\t...wsOptions\n\t\t\t} = wsWithOtherOptions;\n\t\t\t\n\t\t\tthis.ws = new WS(wsOptions) as WSWithActualProps<O>;\n\t\t\t\n\t\t\tif (subscriptions !== null)\n\t\t\t\tSubscription.bindTo(this.ws);\n\t\t\t\n\t\t\tif (incomingTransport)\n\t\t\t\tthis.incomingTransport = new IncomingTransport(this.ws, typeof incomingTransport == \"object\" ? incomingTransport : {});\n\t\t\t\n\t\t\tif (outgoingTransport)\n\t\t\t\tthis.outgoingTransport = new OutgoingTransport(this.ws);\n\t\t\t\n\t\t\tif (cookieOptions !== null)\n\t\t\t\tthis.cookie = new CookieSetter(this.ws, cookieOptions);\n\t\t\t\n\t\t\tif (users !== null && subscriptions !== null && cookieOptions !== null) {\n\t\t\t\tthis.user = null;\n\t\t\t\tthis.login = login<O>;\n\t\t\t\tthis.logout = logout<O>;\n\t\t\t\t\n\t\t\t\tif (isPublic)\n\t\t\t\t\tawait new Promise<void>(resolve => {\n\t\t\t\t\t\t\n\t\t\t\t\t\tnew Subscription(\"object\", \"user\", [ true ], user => {\n\t\t\t\t\t\t\tthis.user = user;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (this.user) {\n\t\t\t\t\t\t\t\tif (!this.isLoggedIn) {\n\t\t\t\t\t\t\t\t\tthis.isLoggedIn = true;\n\t\t\t\t\t\t\t\t\tthis.emit(\"login\", true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (this.isLoggedIn) {\n\t\t\t\t\t\t\t\tthis.isLoggedIn = false;\n\t\t\t\t\t\t\t\tthis.emit(\"logout\", false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (!this.isReady)\n\t\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\telse {\n\t\t\t\t\tthis.usersSubscriptionGroup = new UsersSubscriptionGroup({ target: this });\n\t\t\t\t\t\n\t\t\t\t\tawait new Promise<void>(resolve => {\n\t\t\t\t\t\t\n\t\t\t\t\t\tthis.usersSubscriptionGroup.once(\"init\", () => {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.isLoggedIn = !!this.user;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.usersSubscriptionGroup.on(\"update.user\", (user: CurrentUser) => {\n\t\t\t\t\t\t\t\tif (user.valueOf()) {\n\t\t\t\t\t\t\t\t\tif (!this.isLoggedIn) {\n\t\t\t\t\t\t\t\t\t\tthis.isLoggedIn = true;\n\t\t\t\t\t\t\t\t\t\tthis.emit(\"login\", true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (this.isLoggedIn) {\n\t\t\t\t\t\t\t\t\tthis.isLoggedIn = false;\n\t\t\t\t\t\t\t\t\tthis.emit(\"logout\", false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (this.isLoggedIn)\n\t\t\t\t\t\t\t\tthis.emit(\"login\", true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t});\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tthis.isReady = true;\n\t\t\tthis.emit(\"ready\", true);\n\t\t\t\n\t\t\tthis.#initPromise.resolve(this);\n\t\t}\n\t\t\n\t}\n\t\n\t#initPromise = new StatefulPromise<this>();\n\t\n\twhenReady() {\n\t\treturn this.#initPromise;\n\t}\n\t\n\t\n\tstatic init<IO extends Options<any>, IS extends InSite<IO>>(options: IO, asPromise: true): Promise<OmitRedundant<IS, IO>>;\n\tstatic init<IO extends Options<any>, IS extends InSite<IO>>(options?: IO, asPromise?: false): OmitRedundant<IS, IO>;\n\tstatic init<IO extends Options<any>, IS extends InSite<IO>>(options?: IO, asPromise = false) {\n\t\tconst inSite = new InSite(options) as IS;\n\t\t\n\t\treturn asPromise ?\n\t\t\tinSite.whenReady() :\n\t\t\tinSite;\n\t}\n\t\n}\n", "export * from \"./InSite\";\nexport type { Options } from \"./types\";\nexport * from \"insite-common/frontend\";\nexport type { Options as CookieOptions } from \"insite-cookie/client\";\nexport * from \"insite-cookie/client\";\nexport * from \"insite-subscriptions-client\";\nexport * from \"insite-users-client\";\nexport * from \"insite-ws-transfers/browser\";\nexport type { Options as WSOptions } from \"insite-ws/client\";\nexport * from \"insite-ws/client\";\n"],
5
- "mappings": "iaAAA,OAAOA,MAAkB,gBACzB,OAAS,mBAAAC,MAAuB,YAEhC,OAAS,gBAAAC,MAAoB,uBAC7B,OA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EAEVW,EACH,MAAM,IAAI,QAAcU,GAAW,CAElC,IAAIJ,EAAa,SAAU,OAAQ,CAAE,EAAK,EAAGK,GAAQ,CACpD,KAAK,KAAOA,EAER,KAAK,KACH,KAAK,aACT,KAAK,WAAa,GAClB,KAAK,KAAK,QAAS,EAAI,GAEd,KAAK,aACf,KAAK,WAAa,GAClB,KAAK,KAAK,SAAU,EAAK,GAGrB,KAAK,SACTD,EAAQ,CAEV,CAAC,CAEF,CAAC,GAED,KAAK,uBAAyB,IAAIE,EAAuB,CAAE,OAAQ,IAAK,CAAC,EAEzE,MAAM,IAAI,QAAcF,GAAW,CAElC,KAAK,uBAAuB,KAAK,OAAQ,IAAM,CAE9C,KAAK,WAAa,CAAC,CAAC,KAAK,KAEzB,KAAK,uBAAuB,GAAG,cAAgBC,GAAsB,CAChEA,EAAK,QAAQ,EACX,KAAK,aACT,KAAK,WAAa,GAClB,KAAK,KAAK,QAAS,EAAI,GAEd,KAAK,aACf,KAAK,WAAa,GAClB,KAAK,KAAK,SAAU,EAAK,EAG3B,CAAC,EAEDD,EAAQ,EAEJ,KAAK,YACR,KAAK,KAAK,QAAS,EAAI,CAEzB,CAAC,CAEF,CAAC,IAIH,KAAK,QAAU,GACf,KAAK,KAAK,QAAS,EAAI,EAEvBG,EAAA,KAAKvB,GAAa,QAAQ,IAAI,CAC/B,CAED,CAIA,WAAY,CACX,OAAOuB,EAAA,KAAKvB,EACb,CAKA,OAAO,KAAqDG,EAAcqB,EAAY,GAAO,CAC5F,IAAMC,EAAS,IAAIxB,EAAOE,CAAO,EAEjC,OAAOqB,EACNC,EAAO,UAAU,EACjBA,CACF,CAED,EAjBCzB,EAAA,YA/HM,IAAM0B,EAANzB,EC/BP,WAAc,yBAEd,WAAc,uBACd,WAAc,8BACd,WAAc,sBACd,WAAc,8BAEd,WAAc",
6
- "names": ["EventEmitter", "StatefulPromise", "CookieSetter", "Subscription", "UsersSubscriptionGroup", "IncomingTransport", "OutgoingTransport", "WS", "login", "email", "password", "logout", "_initPromise", "_InSite", "EventEmitter", "options", "__publicField", "__privateAdd", "StatefulPromise", "wsWithOtherOptions", "cookieOptions", "users", "isPublic", "subscriptions", "incomingTransport", "outgoingTransport", "wsOptions", "WS", "Subscription", "IncomingTransport", "OutgoingTransport", "CookieSetter", "resolve", "user", "UsersSubscriptionGroup", "__privateGet", "asPromise", "inSite", "InSite"]
5
+ "mappings": "AAAA,OAAOA,MAAkB,gBACzB,OAAS,mBAAAC,MAAuB,YAEhC,OAAS,gBAAAC,MAAoB,uBAC7B,OAAS,gBAAAC,MAAoB,8BAC7B,OACC,0BAAAC,MAOM,sBACP,OAAS,qBAAAC,EAAmB,qBAAAC,MAAyB,8BACrD,OAAS,MAAAC,MAAU,mBAQnB,SAASC,EAA+CC,EAAeC,EAAkB,CACxF,OAAO,KAAK,GAAG,YAAY,QAASD,EAAOC,CAAQ,CACpD,CAGA,SAASC,GAAgD,CACxD,OAAO,KAAK,GAAG,YAAY,QAAQ,CACpC,CAGO,IAAMC,EAAN,MAAMC,UAGHb,CAAa,CACtB,YAAYc,EAAa,CACxB,MAAM,EAEFA,GACE,KAAK,KAAKA,CAAO,CAExB,CAEA,GACA,kBACA,kBACA,OACA,uBACA,KACA,MACA,KACA,MACA,WAAa,GAEb,MACA,OAEA,QAAU,GAEV,MAAgB,KAAKA,EAAa,CAEjC,GAAI,CAAC,KAAK,QAAS,CAClB,GAAM,CACL,GAAIC,EAAqB,CAAC,EAC1B,OAAQC,EACR,MAAAC,EACA,OAAQC,CACT,EAAIJ,GAAW,CAAC,EAEV,CACL,cAAAK,EACA,kBAAAC,EACA,kBAAAC,EACA,GAAGC,CACJ,EAAIP,EAEJ,KAAK,GAAK,IAAIR,EAAGe,CAAS,EAEtBH,IAAkB,MACrBhB,EAAa,OAAO,KAAK,EAAE,EAExBiB,IACH,KAAK,kBAAoB,IAAIf,EAAkB,KAAK,GAAI,OAAOe,GAAqB,SAAWA,EAAoB,CAAC,CAAC,GAElHC,IACH,KAAK,k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AEd,WAAc,uBACd,WAAc,8BACd,WAAc,sBACd,WAAc,8BAEd,WAAc",
6
+ "names": ["EventEmitter", "StatefulPromise", "CookieSetter", "Subscription", "UsersSubscriptionGroup", "IncomingTransport", "OutgoingTransport", "WS", "login", "email", "password", "logout", "InSite", "_InSite", "options", "wsWithOtherOptions", "cookieOptions", "users", "isPublic", "subscriptions", "incomingTransport", "outgoingTransport", "wsOptions", "resolve", "user", "#initPromise", "asPromise", "inSite"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "insite-client",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Client-side inSite SDK — WebSocket, auth, subscriptions, file transfers",
5
5
  "keywords": [
6
6
  "insite",
@@ -43,14 +43,15 @@
43
43
  "dependencies": {
44
44
  "@nesvet/n": "^1.2.1",
45
45
  "eventemitter3": "^5.0.4",
46
- "insite-common": "^2.5.0",
47
- "insite-cookie": "^2.5.0",
48
- "insite-subscriptions-client": "^2.5.0",
49
- "insite-users-client": "^2.5.0",
50
- "insite-ws": "^2.5.0",
51
- "insite-ws-transfers": "^2.5.0"
46
+ "insite-common": "^2.6.0",
47
+ "insite-cookie": "^2.6.0",
48
+ "insite-subscriptions-client": "^2.6.0",
49
+ "insite-users-client": "^2.6.0",
50
+ "insite-ws": "^2.6.0",
51
+ "insite-ws-transfers": "^2.6.0"
52
52
  },
53
53
  "engines": {
54
- "node": ">=20.0.0"
54
+ "bun": ">=1.4.4",
55
+ "node": ">=22.0.0"
55
56
  }
56
57
  }