diff --git a/package-lock.json b/package-lock.json index 592c0e66..f2360b38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -771,17 +771,6 @@ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, - "abstract-socket": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/abstract-socket/-/abstract-socket-2.1.1.tgz", - "integrity": "sha512-YZJizsvS1aBua5Gd01woe4zuyYBGgSMeqDOB6/ChwdTI904KP6QGtJswXl4hcqWxbz86hQBe++HWV0hF1aGUtA==", - "dev": true, - "optional": true, - "requires": { - "bindings": "^1.2.1", - "nan": "^2.12.1" - } - }, "accepts": { "version": "1.3.7", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", @@ -2948,22 +2937,6 @@ "nan": "^2.14.0" } }, - "dbus-native": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/dbus-native/-/dbus-native-0.2.5.tgz", - "integrity": "sha512-ocxMKCV7QdiNhzhFSeEMhj258OGtvpANSb3oWGiotmI5h1ZIse0TMPcSLiXSpqvbYvQz2Y5RsYPMNYLWhg9eBw==", - "dev": true, - "requires": { - "abstract-socket": "^2.0.0", - "event-stream": "^3.1.7", - "hexy": "^0.2.10", - "long": "^3.0.1", - "optimist": "^0.6.1", - "put": "0.0.6", - "safe-buffer": "^5.1.1", - "xml2js": "0.1.14" - } - }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -5807,12 +5780,6 @@ } } }, - "hexy": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/hexy/-/hexy-0.2.11.tgz", - "integrity": "sha512-ciq6hFsSG/Bpt2DmrZJtv+56zpPdnq+NQ4ijEFrveKN0ZG1mhl/LdT1NQZ9se6ty1fACcI4d4vYqC9v8EYpH2A==", - "dev": true - }, "highlight.js": { "version": "9.15.10", "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.15.10.tgz", @@ -7542,12 +7509,6 @@ "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", "dev": true }, - "long": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", - "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=", - "dev": true - }, "loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -9297,12 +9258,6 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" }, - "put": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/put/-/put-0.0.6.tgz", - "integrity": "sha1-MPX2C9bkOJvTKeFqJThsuy5KAKM=", - "dev": true - }, "qs": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", @@ -13342,15 +13297,6 @@ "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", "dev": true }, - "xml2js": { - "version": "0.1.14", - "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.1.14.tgz", - "integrity": "sha1-UnTmf1pkxfkpdM2FE54DMq3GuQw=", - "dev": true, - "requires": { - "sax": ">=0.1.1" - } - }, "xtend": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", diff --git a/package.json b/package.json index 33ad19e8..7f27db7b 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,6 @@ "coffeescript": "^1.12.7", "common-tags": "^1.8.0", "copy-webpack-plugin": "^5.1.1", - "dbus-native": "^0.2.5", "deep-object-diff": "^1.1.0", "docker-delta": "^2.2.9", "docker-progress": "^3.0.5", diff --git a/typings/dbus-native.d.ts b/typings/dbus-native.d.ts deleted file mode 100644 index 77b2db0d..00000000 --- a/typings/dbus-native.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -// Adapted from: -// https://gist.github.com/TianyiLi/a231afa2f804d8fa0805baa4830f9242 -// tslint:disable -declare module 'dbus-native' { - import * as net from 'net'; - import * as events from 'events'; - - interface msg { - destination?: string; - path?: string; - interface?: any; - member: string; - signature?: any; - body?: Array; - } - - interface MessageBus { - connection: any; - serial: number; - cookies: Object; - methodCallHandlers: Object; - signals: events.EventEmitter; - exportedObjects: Object; - - invoke(msg: msg, callback?: Callback): void; - invokeDbus(msg: msg, callback?: Callback): void; - mangle(path: any, iface: any, member: any): string; - mangle(obj: { path: any; iface: any; member: any }): string; - sendSignal( - path: any, - iface: any, - name: any, - signature: any, - args: any, - ): void; - sendError(msg: any, signature: any, body: any): void; - setMethodCallHandler( - objectPath: any, - iface: any, - member: any, - handler: any, - ): void; - exportInterface( - obj: Object, - path: string, - ifaceDesc: { - name: string; - signals: Object; - method: Object; - properties: Object; - }, - ): void; - getService(serviceName: string): DBusService; - getObject(path: string, name: string, callback: Callback): DBusService; - getInterface( - path: string, - objname: string, - name: string, - callback: Callback, - ): DBusService; - - addMatch(match: string, callback?: Callback): void; - removeMatch(match: string, callback?: Callback): void; - getId(callback?: Callback): void; - requestName(name: string, flags: any, callback?: Callback): void; - releaseName(name: string, callback?: Callback): void; - listNames(callback?: Callback): void; - listActivatableNames(callback?: Callback): void; - updateActivationEnvironment(env: any, callback?: Callback): void; - startServiceByName(name: any, flags: any, callback?: Callback): void; - getConnectionUnixUser(name: any, callback?: Callback): void; - getConnectionUnixProcessId(name: any, callback?: Callback): void; - getNameOwner(name: any, callback?: Callback): void; - nameHasOwner(name: any, callback?: Callback): void; - } - - /** - * This Should Not Used - * - * TODO: Fix this - * - * @interface DBusService - */ - interface DBusService { - name: string; - bus: MessageBus; - getObject(name: any, callback: Callback): void; - getInterface( - objName: string, - ifaceName: string, - callback: Callback, - ): void; - } - - interface Server { - server: net.Server; - listen: void; - } - - const messageType: { - error: number; - invalid: number; - methodCall: number; - methodReturn: number; - signal: number; - }; - - enum flags { - noReplyExpected = 1, - noAutoStart, - } - - interface StreamOptions { - socket: string; - host: any; - port: any; - busAddress: string; - } - - class CreateConnection extends events.EventEmitter { - message(msg: { path: string }): void; - end(): void; - } - - function createClient(options?: StreamOptions): MessageBus; - function createConnection(opts?: StreamOptions): CreateConnection; - /** - * Default is /var/run/dbus/system_bus_socket - * - * @export - * @returns {MessageBus} - */ - function systemBus(): MessageBus; - function sessionBus(options?: StreamOptions): MessageBus; - function createServer(): Server; -}