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

arpc

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arpc - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "arpc",
"version": "1.0.5",
"version": "1.0.6",
"description": "a node RPC library base on socket.io",

@@ -5,0 +5,0 @@ "repository": "https://github.com/Anillc/arpc.git",

@@ -1,14 +0,12 @@

interface TheObject {
[name: string]: AObject
(...args: any[]): AObject
}
type AObject = TheObject & Promise<string | number | boolean>
type Socket = import('socket.io').Socket | import('socket.io-client').Socket
type RemoteObject = {
[name: string]: RemoteObject
(...args: any[]): RemoteObject
} & Promise<string | number | boolean>
declare class RPC {
services: Map<string, [any, (obj: AObject) => undefined, (conn: Socket, reason: string) => undefined]>
services: Map<string, [any, (obj: RemoteObject) => undefined, (conn: Socket, reason: string) => undefined]>
connected(conn: Socket, name?: string): undefined
createService(name: string, obj: any, onConnect?: (obj: AObject) => undefined, onDisconnect?: (conn: Socket, reason: string) => undefined): undefined
getServer(obj?: any): AObject
createService(name: string, obj: any, onConnect?: (obj: RemoteObject) => undefined, onDisconnect?: (conn: Socket, reason: string) => undefined): undefined
getServer(obj?: any): RemoteObject
}

@@ -21,4 +19,4 @@

declare module 'arpc/client' {
function client(socket: Socket, name: string, obj?: any, path?: string): AObject
function client(url: string, name: string, obj?: any, path?: string): AObject
function client(socket: Socket, name: string, obj?: any, path?: string): RemoteObject
function client(url: string, name: string, obj?: any, path?: string): RemoteObject
export = client

@@ -25,0 +23,0 @@ }

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