insite-client 1.0.74 → 2.0.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/InSite.d.ts +38 -0
- package/dist/InSite.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/types.d.ts +46 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +14 -11
- package/bun.lockb +0 -0
package/dist/InSite.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import EventEmitter from "eventemitter3";
|
|
2
|
+
import { CookieSetter } from "insite-cookie/client";
|
|
3
|
+
import { InSiteWebSocket } from "insite-ws/client";
|
|
4
|
+
import { IncomingTransport, OutgoingTransport } from "insite-ws-transfers/browser";
|
|
5
|
+
import type { AbilitiesSchema } from "insite-common";
|
|
6
|
+
import { type CurrentUser, type Orgs, type OrgsExtended, type Roles, type Users, type UsersExtended, UsersSubscriptionGroup } from "insite-users-client";
|
|
7
|
+
import type { InSiteWithActualProps, Options } from "./types";
|
|
8
|
+
declare global {
|
|
9
|
+
var __insite: {
|
|
10
|
+
wss_url?: string;
|
|
11
|
+
} | undefined;
|
|
12
|
+
}
|
|
13
|
+
/** @this InSite */
|
|
14
|
+
declare function login(this: InSite<any, any>, email: string, password: string): InSiteWebSocket | Promise<unknown>;
|
|
15
|
+
/** @this InSite */
|
|
16
|
+
declare function logout(this: InSite<any, any>): InSiteWebSocket | Promise<unknown>;
|
|
17
|
+
export declare class InSite<AS extends AbilitiesSchema, O extends Options<AS>> extends EventEmitter {
|
|
18
|
+
constructor(options?: O);
|
|
19
|
+
ws: InSiteWebSocket;
|
|
20
|
+
incomingTransport: IncomingTransport;
|
|
21
|
+
outgoingTransport: OutgoingTransport;
|
|
22
|
+
cookie: CookieSetter;
|
|
23
|
+
usersSubscriptionGroup: UsersSubscriptionGroup;
|
|
24
|
+
user: CurrentUser<AS> | null;
|
|
25
|
+
users: Users | UsersExtended;
|
|
26
|
+
orgs: Orgs | OrgsExtended;
|
|
27
|
+
roles: Roles;
|
|
28
|
+
isLoggedIn: boolean;
|
|
29
|
+
login: typeof login;
|
|
30
|
+
logout: typeof logout;
|
|
31
|
+
isReady: boolean;
|
|
32
|
+
private init?;
|
|
33
|
+
private initPromise;
|
|
34
|
+
whenReady(): Promise<void>;
|
|
35
|
+
static init<IO extends Options<any>>(options: IO): InSiteWithActualProps<InSite<IO extends Options<infer EIAS extends AbilitiesSchema> ? EIAS : never, IO>, IO>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=InSite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InSite.d.ts","sourceRoot":"","sources":["../src/InSite.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EACN,KAAK,WAAW,EAChB,KAAK,IAAI,EACT,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,sBAAsB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAM9D,OAAO,CAAC,MAAM,CAAC;IACd,IAAI,QAAQ,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,GAAG,SAAS,CAAC;CACd;AAGD,mBAAmB;AACnB,iBAAS,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,sCAErE;AAED,mBAAmB;AACnB,iBAAS,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,sCAErC;AAGD,qBAAa,MAAM,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC,SAAS,OAAO,CAAC,EAAE,CAAC,CAAE,SAAQ,YAAY;gBAC9E,OAAO,CAAC,EAAE,CAAC;IAOvB,EAAE,EAAG,eAAe,CAAC;IACrB,iBAAiB,EAAG,iBAAiB,CAAC;IACtC,iBAAiB,EAAG,iBAAiB,CAAC;IACtC,MAAM,EAAG,YAAY,CAAC;IACtB,sBAAsB,EAAG,sBAAsB,CAAC;IAChD,IAAI,EAAG,WAAW,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAG,KAAK,GAAG,aAAa,CAAC;IAC9B,IAAI,EAAG,IAAI,GAAG,YAAY,CAAC;IAC3B,KAAK,EAAG,KAAK,CAAC;IACd,UAAU,UAAS;IAEnB,KAAK,EAAG,OAAO,KAAK,CAAC;IACrB,MAAM,EAAG,OAAO,MAAM,CAAC;IAEvB,OAAO,UAAS;IAEhB,OAAO,CAAC,IAAI,CAAC,CAyEX;IAEF,OAAO,CAAC,WAAW,CAAC;IAEpB,SAAS;IAKT,MAAM,CAAC,IAAI,CAAC,EAAE,SAAS,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,EAAE,GAGjB,qBAAqB,CAAC,MAAM,0BAFtB,IAAI,0CAEwB,EAAE,CAAC,EAAE,EAAE,CAAC;CAGzE"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
var m=Object.defineProperty;var d=(e,i,s)=>i in e?m(e,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[i]=s;var t=(e,i,s)=>d(e,typeof i!="symbol"?i+"":i,s);import f from"eventemitter3";import{CookieSetter as S}from"insite-cookie/client";import{InSiteWebSocket as I}from"insite-ws/client";import{IncomingTransport as w,OutgoingTransport as y}from"insite-ws-transfers/browser";import{Subscription as O}from"insite-subscriptions-client";import{UsersSubscriptionGroup as b}from"insite-users-client";function T(e,i){return this.ws.sendRequest("login",e,i)}function x(){return this.ws.sendRequest("logout")}var p=class e extends f{constructor(s){super();t(this,"ws");t(this,"incomingTransport");t(this,"outgoingTransport");t(this,"cookie");t(this,"usersSubscriptionGroup");t(this,"user");t(this,"users");t(this,"orgs");t(this,"roles");t(this,"isLoggedIn",!1);t(this,"login");t(this,"logout");t(this,"isReady",!1);t(this,"init",async s=>{let{ws:g={},cookie:r,users:l}=s??{},{subscriptions:u,incomingTransport:n,outgoingTransport:h,...o}=g;if(o.url??(o.url=globalThis.__insite?.wss_url),!o.url)throw new Error("options.ws.url or INSITE_CLIENT_WSS_URL have to be set");this.ws=new I(o),u!==null&&O.bindTo(this.ws),n&&(this.incomingTransport=new w(this.ws,typeof n=="object"?n:{})),h&&(this.outgoingTransport=new y(this.ws)),r!==null&&(this.cookie=new S(this.ws,r)),l!==null&&u!==null&&r!==null&&(this.user=null,this.login=T,this.logout=x,this.usersSubscriptionGroup=new b({target:this}),await new Promise(a=>{this.usersSubscriptionGroup.once("init",()=>{this.isLoggedIn=!!this.user,this.usersSubscriptionGroup.on("update.user",c=>{c.valueOf()?this.isLoggedIn||(this.isLoggedIn=!0,this.emit("login",!0)):this.isLoggedIn&&(this.isLoggedIn=!1,this.emit("logout",!1))}),a(),this.isLoggedIn&&this.emit("login",!0)})})),this.isReady=!0,this.emit("ready",!0)});t(this,"initPromise");this.initPromise=this.init(s)}whenReady(){return this.initPromise}static init(s){return new e(s)}};export{p as InSite};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/InSite.
|
|
4
|
-
"sourcesContent": ["import EventEmitter from \"eventemitter3\";\nimport { CookieSetter } from \"insite-cookie/client\";\nimport {
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["EventEmitter", "CookieSetter", "Subscription", "UsersSubscriptionGroup", "
|
|
3
|
+
"sources": ["../src/InSite.ts"],
|
|
4
|
+
"sourcesContent": ["import EventEmitter from \"eventemitter3\";\nimport { CookieSetter } from \"insite-cookie/client\";\nimport { InSiteWebSocket } from \"insite-ws/client\";\nimport { IncomingTransport, OutgoingTransport } from \"insite-ws-transfers/browser\";\nimport type { AbilitiesSchema } from \"insite-common\";\nimport { Subscription } from \"insite-subscriptions-client\";\nimport {\n\ttype CurrentUser,\n\ttype Orgs,\n\ttype OrgsExtended,\n\ttype Roles,\n\ttype Users,\n\ttype UsersExtended,\n\tUsersSubscriptionGroup\n} from \"insite-users-client\";\nimport type { InSiteWithActualProps, Options } from \"./types\";\n\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n\ndeclare global {\n\tvar __insite: { // eslint-disable-line no-var\n\t\twss_url?: string;\n\t} | undefined;\n}\n\n\n/** @this InSite */\nfunction login(this: InSite<any, any>, email: string, password: string) {\n\treturn this.ws.sendRequest(\"login\", email, password);\n}\n\n/** @this InSite */\nfunction logout(this: InSite<any, any>) {\n\treturn this.ws.sendRequest(\"logout\");\n}\n\n\nexport class InSite<AS extends AbilitiesSchema, O extends Options<AS>> extends EventEmitter {\n\tconstructor(options?: O) {\n\t\tsuper();\n\t\t\n\t\tthis.initPromise = this.init!(options);\n\t\t\n\t}\n\t\n\tws!: InSiteWebSocket;\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;\n\tlogout!: typeof logout;\n\t\n\tisReady = false;\n\t\n\tprivate init? = async (options?: O) => {\n\t\t\n\t\tconst {\n\t\t\tws: wsWithOtherOptions = {},\n\t\t\tcookie: cookieOptions,\n\t\t\tusers\n\t\t} = options ?? {};\n\t\t\n\t\tconst {\n\t\t\tsubscriptions,\n\t\t\tincomingTransport,\n\t\t\toutgoingTransport,\n\t\t\t...wsOptions\n\t\t} = wsWithOtherOptions;\n\t\t\n\t\twsOptions.url ??= globalThis.__insite?.wss_url;\n\t\t\n\t\tif (!wsOptions.url)\n\t\t\tthrow new Error(\"options.ws.url or INSITE_CLIENT_WSS_URL have to be set\");\n\t\t\n\t\tthis.ws = new InSiteWebSocket(wsOptions);\n\t\t\n\t\tif (subscriptions !== null)\n\t\t\tSubscription.bindTo(this.ws);\n\t\t\n\t\tif (incomingTransport)\n\t\t\tthis.incomingTransport = new IncomingTransport(this.ws, typeof incomingTransport == \"object\" ? incomingTransport : {});\n\t\t\n\t\tif (outgoingTransport)\n\t\t\tthis.outgoingTransport = new OutgoingTransport(this.ws);\n\t\t\n\t\tif (cookieOptions !== null)\n\t\t\tthis.cookie = new CookieSetter(this.ws, cookieOptions);\n\t\t\n\t\tif (users !== null && subscriptions !== null && cookieOptions !== null) {\n\t\t\tthis.user = null;\n\t\t\tthis.login = login;\n\t\t\tthis.logout = logout;\n\t\t\t\n\t\t\tthis.usersSubscriptionGroup = new UsersSubscriptionGroup({ target: this });\n\t\t\t\n\t\t\tawait new Promise<void>(resolve => {\n\t\t\t\t\n\t\t\t\tthis.usersSubscriptionGroup.once(\"init\", () => {\n\t\t\t\t\t\n\t\t\t\t\tthis.isLoggedIn = !!this.user;\n\t\t\t\t\t\n\t\t\t\t\tthis.usersSubscriptionGroup.on(\"update.user\", (user: CurrentUser) => {\n\t\t\t\t\t\tif (user.valueOf()) {\n\t\t\t\t\t\t\tif (!this.isLoggedIn) {\n\t\t\t\t\t\t\t\tthis.isLoggedIn = true;\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} else if (this.isLoggedIn) {\n\t\t\t\t\t\t\tthis.isLoggedIn = false;\n\t\t\t\t\t\t\tthis.emit(\"logout\", false);\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\t\n\t\t\t\t\tresolve();\n\t\t\t\t\t\n\t\t\t\t\tif (this.isLoggedIn)\n\t\t\t\t\t\tthis.emit(\"login\", true);\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t\t\n\t\tthis.isReady = true;\n\t\tthis.emit(\"ready\", true);\n\t\t\n\t};\n\t\n\tprivate initPromise;\n\t\n\twhenReady() {\n\t\treturn this.initPromise;\n\t}\n\t\n\t\n\tstatic init<IO extends Options<any>>(options: IO) {\n\t\ttype IAS = IO extends Options<infer EIAS> ? EIAS : never;\n\t\t\n\t\treturn new InSite(options) as InSiteWithActualProps<InSite<IAS, IO>, IO>;\n\t}\n\t\n}\n"],
|
|
5
|
+
"mappings": "oKAAA,OAAOA,MAAkB,gBACzB,OAAS,gBAAAC,MAAoB,uBAC7B,OAAS,mBAAAC,MAAuB,mBAChC,OAAS,qBAAAC,EAAmB,qBAAAC,MAAyB,8BAErD,OAAS,gBAAAC,MAAoB,8BAC7B,OAOC,0BAAAC,MACM,sBAeP,SAASC,EAA8BC,EAAeC,EAAkB,CACvE,OAAO,KAAK,GAAG,YAAY,QAASD,EAAOC,CAAQ,CACpD,CAGA,SAASC,GAA+B,CACvC,OAAO,KAAK,GAAG,YAAY,QAAQ,CACpC,CAGO,IAAMC,EAAN,MAAMC,UAAkEC,CAAa,CAC3F,YAAYC,EAAa,CACxB,MAAM,EAMPC,EAAA,WACAA,EAAA,0BACAA,EAAA,0BACAA,EAAA,eACAA,EAAA,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EAAI,CAEzB,CAAC,CAEF,CAAC,GAGF,KAAK,QAAU,GACf,KAAK,KAAK,QAAS,EAAI,CAExB,GAEAd,EAAA,KAAQ,eA/FP,KAAK,YAAc,KAAK,KAAMD,CAAO,CAEtC,CA+FA,WAAY,CACX,OAAO,KAAK,WACb,CAGA,OAAO,KAA8BA,EAAa,CAGjD,OAAO,IAAIF,EAAOE,CAAO,CAC1B,CAED",
|
|
6
|
+
"names": ["EventEmitter", "CookieSetter", "InSiteWebSocket", "IncomingTransport", "OutgoingTransport", "Subscription", "UsersSubscriptionGroup", "login", "email", "password", "logout", "InSite", "_InSite", "EventEmitter", "options", "__publicField", "wsWithOtherOptions", "cookieOptions", "users", "subscriptions", "incomingTransport", "outgoingTransport", "wsOptions", "InSiteWebSocket", "Subscription", "IncomingTransport", "OutgoingTransport", "CookieSetter", "UsersSubscriptionGroup", "resolve", "user"]
|
|
7
7
|
}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Options as CookieOptions } from "insite-cookie/client";
|
|
2
|
+
import type { Options as WSOptions } from "insite-ws/client";
|
|
3
|
+
import type { AnyProp, ExtendsOrOmit } from "@nesvet/n";
|
|
4
|
+
import type { AbilitiesSchema } from "insite-common";
|
|
5
|
+
import type { IncomingTransportOptions } from "insite-ws-transfers";
|
|
6
|
+
type WSSubscriptions = true;
|
|
7
|
+
type WSIncomingTransport = IncomingTransportOptions | true;
|
|
8
|
+
type WSOutgoingTransport = true;
|
|
9
|
+
type WS = {
|
|
10
|
+
subscriptions?: null | WSSubscriptions;
|
|
11
|
+
incomingTransport?: null | WSIncomingTransport;
|
|
12
|
+
outgoingTransport?: null | WSOutgoingTransport;
|
|
13
|
+
} & WSOptions;
|
|
14
|
+
type Cookie = CookieOptions;
|
|
15
|
+
type Users<AS extends AbilitiesSchema> = {
|
|
16
|
+
abilities?: AS;
|
|
17
|
+
};
|
|
18
|
+
export type Options<AS extends AbilitiesSchema> = {
|
|
19
|
+
ws?: WS;
|
|
20
|
+
cookie?: Cookie | null;
|
|
21
|
+
users?: Users<AS>;
|
|
22
|
+
};
|
|
23
|
+
type OptionsWithWSSubscriptions = {
|
|
24
|
+
ws?: {
|
|
25
|
+
subscriptions?: WSSubscriptions;
|
|
26
|
+
} & AnyProp;
|
|
27
|
+
} & AnyProp;
|
|
28
|
+
type OptionsWithWSIncomingTransport = {
|
|
29
|
+
ws: {
|
|
30
|
+
incomingTransport: WSIncomingTransport;
|
|
31
|
+
} & AnyProp;
|
|
32
|
+
} & AnyProp;
|
|
33
|
+
type OptionsWithWSOutgoingTransport = {
|
|
34
|
+
ws: {
|
|
35
|
+
outgoingTransport: WSOutgoingTransport;
|
|
36
|
+
} & AnyProp;
|
|
37
|
+
} & AnyProp;
|
|
38
|
+
type OptionsWithCookie = {
|
|
39
|
+
cookie?: Cookie;
|
|
40
|
+
} & AnyProp;
|
|
41
|
+
type OptionsWithUsers = {
|
|
42
|
+
users?: Users<any>;
|
|
43
|
+
} & OptionsWithCookie & OptionsWithWSSubscriptions;
|
|
44
|
+
export type InSiteWithActualProps<IS, O> = ExtendsOrOmit<O, OptionsWithWSIncomingTransport, "incomingTransport", ExtendsOrOmit<O, OptionsWithWSOutgoingTransport, "outgoingTransport", ExtendsOrOmit<O, OptionsWithCookie, "cookie", ExtendsOrOmit<O, OptionsWithUsers, "isLoggedIn" | "login" | "logout" | "orgs" | "roles" | "user" | "users" | "usersSubscriptionGroup", IS>>>>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EAAE,OAAO,EAAE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IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC;AACvD,KAAK,gBAAgB,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;CAAE,GAAG,iBAAiB,GAAG,0BAA0B,CAAC;AAGhG,MAAM,MAAM,qBAAqB,CAAC,EAAE,EAAE,CAAC,IACtC,aAAa,CAAC,CAAC,EAAE,8BAA8B,EAAE,mBAAmB,EACnE,aAAa,CAAC,CAAC,EAAE,8BAA8B,EAAE,mBAAmB,EACnE,aAAa,CAAC,CAAC,EAAE,iBAAiB,EAAE,QAAQ,EAC3C,aAAa,CAAC,CAAC,EAAE,gBAAgB,EAAE,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,wBAAwB,EACpI,EAAE,CACF,CACD,CACD,CACD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "insite-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Client-side inSite app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
8
|
-
"packageManager": "bun@1.1.
|
|
8
|
+
"packageManager": "bun@1.1.26",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
-
"build": "bun .conveyer.js"
|
|
11
|
+
"build": "bun .conveyer.js",
|
|
12
|
+
"postbuild": "tsc -p ."
|
|
12
13
|
},
|
|
13
14
|
"repository": {
|
|
14
15
|
"type": "git",
|
|
@@ -22,16 +23,18 @@
|
|
|
22
23
|
"author": "Eugene Nesvetaev <dev@nesvet.dev> (https://nesvet.dev/)",
|
|
23
24
|
"license": "MIT",
|
|
24
25
|
"dependencies": {
|
|
26
|
+
"@nesvet/n": "^1.1.7",
|
|
25
27
|
"eventemitter3": "^5.0.1",
|
|
26
|
-
"insite-cookie": "^
|
|
27
|
-
"insite-
|
|
28
|
-
"insite-
|
|
29
|
-
"insite-
|
|
30
|
-
"insite-ws
|
|
31
|
-
"insite-ws-transfers": "^
|
|
28
|
+
"insite-cookie": "^2",
|
|
29
|
+
"insite-common": "^2",
|
|
30
|
+
"insite-subscriptions-client": "^2",
|
|
31
|
+
"insite-users-client": "^2",
|
|
32
|
+
"insite-ws": "^2",
|
|
33
|
+
"insite-ws-transfers": "^2"
|
|
32
34
|
},
|
|
33
35
|
"devDependencies": {
|
|
34
|
-
"@nesvet/conveyer": "^2.
|
|
35
|
-
"@nesvet/eslint-config": "^
|
|
36
|
+
"@nesvet/conveyer": "^2.2.4",
|
|
37
|
+
"@nesvet/eslint-config": "^2.0.25",
|
|
38
|
+
"typescript": "^5.5.4"
|
|
36
39
|
}
|
|
37
40
|
}
|
package/bun.lockb
DELETED
|
Binary file
|