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

@readium/glue-rpc

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@readium/glue-rpc - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

lib/caller.d.ts

@@ -1,2 +0,2 @@

import { Callback } from './service';
import { Callback } from '@readium/glue-shared';
import { Controller } from './controller';

@@ -3,0 +3,0 @@ import { Message } from './message';

@@ -0,3 +1,3 @@

import { ServiceConstructor } from '@readium/glue-shared';
import { Message } from './message';
import { ServiceConstructor } from './service';
import { SendMessageFunction, Controller } from './controller';

@@ -4,0 +4,0 @@ export declare class Host extends Controller {

export * from './caller';
export * from './host';
export * from './service';
//# sourceMappingURL=index.d.ts.map
export * from './caller';
export * from './host';
export * from './service';
//# sourceMappingURL=index.js.map

@@ -8,5 +8,2 @@ /**

export declare function uuid(a?: any): string;
export declare function isEventTarget(input: any): boolean;
export declare function resolveEventTargetSelector(selector: string): EventTarget[];
export declare function generateEventTargetSelector(eventTarget: EventTarget): string | undefined;
//# sourceMappingURL=util.d.ts.map

@@ -1,2 +0,1 @@

import finder from '@medv/finder';
// tslint:disable

@@ -15,27 +14,2 @@ /**

// tslint:enable
export function isEventTarget(input) {
return !!(input.addEventListener && input.removeEventListener && input.dispatchEvent);
}
export function resolveEventTargetSelector(selector) {
if (selector === '@window') {
return [window];
}
if (selector === '@document') {
return [document];
}
return Array.from(document.querySelectorAll(selector));
}
export function generateEventTargetSelector(eventTarget) {
if (eventTarget === window) {
return '@window';
}
if (eventTarget === document) {
return '@document';
}
const node = eventTarget;
if (node.nodeType === Node.ELEMENT_NODE) {
// Generate a CSS selector for the Element
return finder(eventTarget);
}
}
//# sourceMappingURL=util.js.map
{
"name": "@readium/glue-rpc",
"version": "1.1.0",
"version": "1.2.0",
"main": "lib/index.js",

@@ -10,3 +10,3 @@ "typings": "lib/index.d.ts",

"dependencies": {
"@medv/finder": "^1.1.1"
"@readium/glue-shared": "^1.2.0"
},

@@ -16,3 +16,3 @@ "publishConfig": {

},
"gitHead": "11442a88e0097b8c9317da78b3bc221ed09a4002"
"gitHead": "707a246a00db231bbdec8065571aeb5b359f97b9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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