@frida/dbus
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
import Buffer from 'buffer'; | ||
import { Buffer } from 'buffer'; | ||
@@ -3,0 +3,0 @@ export default function align (ps, n) { |
import process from 'process'; | ||
export default function auth (stream, opts, cb) { | ||
const skipAuthentication = authMethods.length === 0; | ||
const { authMethods } = opts; | ||
const skipAuthentication = authMethods !== undefined && authMethods.length === 0; | ||
if (!skipAuthentication) { | ||
@@ -6,0 +7,0 @@ throw new Error('not supported'); |
@@ -5,4 +5,4 @@ import align from './align.js'; | ||
import assert from 'assert'; | ||
import put from '@nornagon/put'; | ||
import { Buffer } from 'buffer'; | ||
import put from '@frida/put'; | ||
@@ -70,3 +70,5 @@ export default function marshall (signature, data, offset, fds) { | ||
// TODO: allow serialisation of simple types as variants, e. g 123 -> ['u', 123], true -> ['b', 1], 'abc' -> ['s', 'abc'] | ||
assert.strictEqual(data.length, 2, 'variant data should be [signature, data]'); | ||
if (data.length !== 2) { | ||
throw new Error('variant data should be [signature, data]'); | ||
} | ||
const signatureEle = { | ||
@@ -78,3 +80,2 @@ type: 'g', | ||
const tree = parseSignature(data[0]); | ||
assert(tree.length === 1); | ||
write(ps, tree[0], data[1], fds); | ||
@@ -81,0 +82,0 @@ break; |
@@ -8,3 +8,3 @@ import align from './align.js'; | ||
import Buffer from 'buffer'; | ||
import { Buffer } from 'buffer'; | ||
import JSBI from 'jsbi'; | ||
@@ -11,0 +11,0 @@ import Long from 'long'; |
@@ -5,3 +5,3 @@ import constants from './constants.js'; | ||
import Buffer from 'buffer'; | ||
import { Buffer } from 'buffer'; | ||
@@ -8,0 +8,0 @@ const headerSignature = [ |
@@ -1,2 +0,2 @@ | ||
import Buffer from 'buffer'; | ||
import { Buffer } from 'buffer'; | ||
@@ -3,0 +3,0 @@ export default function readOneLine (stream, cb) { |
{ | ||
"name": "@frida/dbus", | ||
"description": "DBus library for JavaScript environments", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"publishConfig": { | ||
@@ -46,4 +46,4 @@ "access": "public" | ||
"dependencies": { | ||
"@frida/put": "^1.0.0", | ||
"@frida/xml2js": "^1.0.1", | ||
"@nornagon/put": "0.0.8", | ||
"event-stream": "3.3.4", | ||
@@ -50,0 +50,0 @@ "hexy": "^0.2.10", |
@@ -1,3 +0,2 @@ | ||
declare module 'dbus-next' { | ||
declare module '@frida/dbus' { | ||
import { EventEmitter } from "events"; | ||
@@ -4,0 +3,0 @@ import { Duplex } from "stream"; |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 5 instances 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
235909
37
4038
7
+ Added@frida/put@^1.0.0
+ Added@frida/put@1.0.0(transitive)
- Removed@nornagon/put@0.0.8
- Removed@nornagon/put@0.0.8(transitive)