Actually remove dbus-native dependency

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2020-04-21 12:39:33 +01:00
parent b051647e9d
commit 508708aa32
3 changed files with 0 additions and 191 deletions

54
package-lock.json generated
View File

@ -771,17 +771,6 @@
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
"integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" "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": { "accepts": {
"version": "1.3.7", "version": "1.3.7",
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz",
@ -2948,22 +2937,6 @@
"nan": "^2.14.0" "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": { "debug": {
"version": "2.6.9", "version": "2.6.9",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "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": { "highlight.js": {
"version": "9.15.10", "version": "9.15.10",
"resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.15.10.tgz", "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-9.15.10.tgz",
@ -7542,12 +7509,6 @@
"integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==",
"dev": true "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": { "loose-envify": {
"version": "1.4.0", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "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", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz",
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" "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": { "qs": {
"version": "6.5.2", "version": "6.5.2",
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz",
@ -13342,15 +13297,6 @@
"integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=",
"dev": true "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": { "xtend": {
"version": "4.0.1", "version": "4.0.1",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",

View File

@ -76,7 +76,6 @@
"coffeescript": "^1.12.7", "coffeescript": "^1.12.7",
"common-tags": "^1.8.0", "common-tags": "^1.8.0",
"copy-webpack-plugin": "^5.1.1", "copy-webpack-plugin": "^5.1.1",
"dbus-native": "^0.2.5",
"deep-object-diff": "^1.1.0", "deep-object-diff": "^1.1.0",
"docker-delta": "^2.2.9", "docker-delta": "^2.2.9",
"docker-progress": "^3.0.5", "docker-progress": "^3.0.5",

View File

@ -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<any>;
}
interface MessageBus {
connection: any;
serial: number;
cookies: Object;
methodCallHandlers: Object;
signals: events.EventEmitter;
exportedObjects: Object;
invoke(msg: msg, callback?: Callback<any>): void;
invokeDbus(msg: msg, callback?: Callback<any>): 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<any>): DBusService;
getInterface(
path: string,
objname: string,
name: string,
callback: Callback<any>,
): DBusService;
addMatch(match: string, callback?: Callback<any>): void;
removeMatch(match: string, callback?: Callback<any>): void;
getId(callback?: Callback<any>): void;
requestName(name: string, flags: any, callback?: Callback<any>): void;
releaseName(name: string, callback?: Callback<any>): void;
listNames(callback?: Callback<any>): void;
listActivatableNames(callback?: Callback<any>): void;
updateActivationEnvironment(env: any, callback?: Callback<any>): void;
startServiceByName(name: any, flags: any, callback?: Callback<any>): void;
getConnectionUnixUser(name: any, callback?: Callback<any>): void;
getConnectionUnixProcessId(name: any, callback?: Callback<any>): void;
getNameOwner(name: any, callback?: Callback<any>): void;
nameHasOwner(name: any, callback?: Callback<any>): void;
}
/**
* This Should Not Used
*
* TODO: Fix this
*
* @interface DBusService
*/
interface DBusService {
name: string;
bus: MessageBus;
getObject(name: any, callback: Callback<any>): void;
getInterface(
objName: string,
ifaceName: string,
callback: Callback<any>,
): 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;
}