Comparing version 2.2.4 to 2.2.5
21
index.js
@@ -51,3 +51,3 @@ var util = require('util') | ||
if (typeof callback === 'function') { | ||
if (typeof callback === 'function') { | ||
execute(toCommandArgs('regList.wsf', architecture, keys), callback) | ||
@@ -122,4 +122,4 @@ } else { | ||
var values = [] | ||
for (var key in map) { | ||
for (var key in map) { | ||
var keyValues = map[key] | ||
@@ -247,3 +247,4 @@ | ||
handleErrorsAndClose(child, callback) | ||
handleErrorsAndClose(child, callback) | ||
helper.writeArrayToStream(keys, child.stdin) | ||
@@ -300,2 +301,8 @@ }) | ||
case 'REG_SZ': | ||
if (value === '') { | ||
return '\0' | ||
} | ||
return value | ||
default: | ||
@@ -309,8 +316,8 @@ return value | ||
var result = baseCommand(cmd, arch) | ||
if (typeof keys === 'string') { | ||
if (typeof keys === 'string') { | ||
result.push(keys) | ||
} else if (util.isArray(keys)) { | ||
} else if (util.isArray(keys)) { | ||
result = result.concat(keys) | ||
} else { | ||
debug('creating command without using keys %s', keys ? keys : '') | ||
debug('creating command without using keys %s', keys ? keys : '') | ||
} | ||
@@ -317,0 +324,0 @@ |
@@ -20,3 +20,3 @@ var debug = require('debug')('regedit') | ||
function write(m) { | ||
if (m) { | ||
if (m !== undefined) { | ||
var b = module.exports.encode(m) | ||
@@ -26,2 +26,4 @@ debug(b) | ||
} | ||
return false | ||
} | ||
@@ -28,0 +30,0 @@ |
{ | ||
"name": "regedit", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "Read, Write, List and do all sorts of funky stuff to the windows registry using node.js and windows script host", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
var should = require('should') | ||
var index = require('../index') | ||
describe('benchmark test', function (done) { | ||
describe.skip('benchmark test', function (done) { | ||
this.timeout(40000) | ||
@@ -12,3 +12,3 @@ | ||
it.only('create', function (done) { | ||
it('create', function (done) { | ||
@@ -15,0 +15,0 @@ console.time('start create') |
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
165847
34
2312