@readium/glue-rpc
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17616
26
217
+ Added@readium/glue-shared@^1.2.0
+ Added@readium/glue-shared@1.4.1(transitive)
+ Addedtslib@1.14.1(transitive)
- Removed@medv/finder@^1.1.1