Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
send (data) {
let buf = bplistCreate(data);
let length = bufferpack.pack('L', [buf.length]);
this.client.write(Buffer.concat([length, buf]));
}
}
})
break
case 'icvp':
var plistObj = {
backgroundType: 1,
backgroundColorRed: new bplist.Real(1),
backgroundColorGreen: new bplist.Real(1),
backgroundColorBlue: new bplist.Real(1),
showIconPreview: true,
showItemInfo: false,
textSize: new bplist.Real(12),
iconSize: new bplist.Real(opt('iconSize')),
viewOptionsVersion: 1,
gridSpacing: new bplist.Real(100),
gridOffsetX: new bplist.Real(0),
gridOffsetY: new bplist.Real(0),
labelOnBottom: true,
arrangeBy: 'none'
}
if (opts.colorComponents) {
plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
}
if (opts.rawAlias) {
plistObj.backgroundType = 2
plistObj.backgroundImageAlias = opts.rawAlias
}
backgroundColorGreen: new bplist.Real(1),
backgroundColorBlue: new bplist.Real(1),
showIconPreview: true,
showItemInfo: false,
textSize: new bplist.Real(12),
iconSize: new bplist.Real(opt('iconSize')),
viewOptionsVersion: 1,
gridSpacing: new bplist.Real(100),
gridOffsetX: new bplist.Real(0),
gridOffsetY: new bplist.Real(0),
labelOnBottom: true,
arrangeBy: 'none'
}
if (opts.colorComponents) {
plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
}
if (opts.rawAlias) {
plistObj.backgroundType = 2
plistObj.backgroundImageAlias = opts.rawAlias
}
dataType = 'bplist'
blob = bplist(plistObj)
break
case 'vSrn':
dataType = 'long'
ShowSidebar: true,
ShowStatusBar: false,
ShowTabView: false,
ShowToolbar: false,
SidebarWidth: 0,
WindowBounds:
'{{' + opt('x') + ', ' + opt('y') + '},' +
' {' + opt('width') + ', ' + opt('height') + '}}'
})
break
case 'icvp':
var plistObj = {
backgroundType: 1,
backgroundColorRed: new bplist.Real(1),
backgroundColorGreen: new bplist.Real(1),
backgroundColorBlue: new bplist.Real(1),
showIconPreview: true,
showItemInfo: false,
textSize: new bplist.Real(12),
iconSize: new bplist.Real(opt('iconSize')),
viewOptionsVersion: 1,
gridSpacing: new bplist.Real(100),
gridOffsetX: new bplist.Real(0),
gridOffsetY: new bplist.Real(0),
labelOnBottom: true,
arrangeBy: 'none'
}
if (opts.colorComponents) {
plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
WindowBounds:
'{{' + opt('x') + ', ' + opt('y') + '},' +
' {' + opt('width') + ', ' + opt('height') + '}}'
})
break
case 'icvp':
var plistObj = {
backgroundType: 1,
backgroundColorRed: new bplist.Real(1),
backgroundColorGreen: new bplist.Real(1),
backgroundColorBlue: new bplist.Real(1),
showIconPreview: true,
showItemInfo: false,
textSize: new bplist.Real(12),
iconSize: new bplist.Real(opt('iconSize')),
viewOptionsVersion: 1,
gridSpacing: new bplist.Real(100),
gridOffsetX: new bplist.Real(0),
gridOffsetY: new bplist.Real(0),
labelOnBottom: true,
arrangeBy: 'none'
}
if (opts.colorComponents) {
plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
}
if (opts.rawAlias) {
ShowStatusBar: false,
ShowTabView: false,
ShowToolbar: false,
SidebarWidth: 0,
WindowBounds:
'{{' + opt('x') + ', ' + opt('y') + '},' +
' {' + opt('width') + ', ' + opt('height') + '}}'
})
break
case 'icvp':
var plistObj = {
backgroundType: 1,
backgroundColorRed: new bplist.Real(1),
backgroundColorGreen: new bplist.Real(1),
backgroundColorBlue: new bplist.Real(1),
showIconPreview: true,
showItemInfo: false,
textSize: new bplist.Real(12),
iconSize: new bplist.Real(opt('iconSize')),
viewOptionsVersion: 1,
gridSpacing: new bplist.Real(100),
gridOffsetX: new bplist.Real(0),
gridOffsetY: new bplist.Real(0),
labelOnBottom: true,
arrangeBy: 'none'
}
if (opts.colorComponents) {
plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
ShowTabView: false,
ShowToolbar: false,
SidebarWidth: 0,
WindowBounds:
'{{' + opt('x') + ', ' + opt('y') + '},' +
' {' + opt('width') + ', ' + opt('height') + '}}'
})
break
case 'icvp':
var plistObj = {
backgroundType: 1,
backgroundColorRed: new bplist.Real(1),
backgroundColorGreen: new bplist.Real(1),
backgroundColorBlue: new bplist.Real(1),
showIconPreview: true,
showItemInfo: false,
textSize: new bplist.Real(12),
iconSize: new bplist.Real(opt('iconSize')),
viewOptionsVersion: 1,
gridSpacing: new bplist.Real(100),
gridOffsetX: new bplist.Real(0),
gridOffsetY: new bplist.Real(0),
labelOnBottom: true,
arrangeBy: 'none'
}
if (opts.colorComponents) {
plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
backgroundColorBlue: new bplist.Real(1),
showIconPreview: true,
showItemInfo: false,
textSize: new bplist.Real(12),
iconSize: new bplist.Real(opt('iconSize')),
viewOptionsVersion: 1,
gridSpacing: new bplist.Real(100),
gridOffsetX: new bplist.Real(0),
gridOffsetY: new bplist.Real(0),
labelOnBottom: true,
arrangeBy: 'none'
}
if (opts.colorComponents) {
plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
}
if (opts.rawAlias) {
plistObj.backgroundType = 2
plistObj.backgroundImageAlias = opts.rawAlias
}
dataType = 'bplist'
blob = bplist(plistObj)
break
case 'vSrn':
dataType = 'long'
blob = new Buffer(4)
showIconPreview: true,
showItemInfo: false,
textSize: new bplist.Real(12),
iconSize: new bplist.Real(opt('iconSize')),
viewOptionsVersion: 1,
gridSpacing: new bplist.Real(100),
gridOffsetX: new bplist.Real(0),
gridOffsetY: new bplist.Real(0),
labelOnBottom: true,
arrangeBy: 'none'
}
if (opts.colorComponents) {
plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
}
if (opts.rawAlias) {
plistObj.backgroundType = 2
plistObj.backgroundImageAlias = opts.rawAlias
}
dataType = 'bplist'
blob = bplist(plistObj)
break
case 'vSrn':
dataType = 'long'
blob = new Buffer(4)
break
case 'icvp':
var plistObj = {
backgroundType: 1,
backgroundColorRed: new bplist.Real(1),
backgroundColorGreen: new bplist.Real(1),
backgroundColorBlue: new bplist.Real(1),
showIconPreview: true,
showItemInfo: false,
textSize: new bplist.Real(12),
iconSize: new bplist.Real(opt('iconSize')),
viewOptionsVersion: 1,
gridSpacing: new bplist.Real(100),
gridOffsetX: new bplist.Real(0),
gridOffsetY: new bplist.Real(0),
labelOnBottom: true,
arrangeBy: 'none'
}
if (opts.colorComponents) {
plistObj.backgroundColorRed = new bplist.Real(opts.colorComponents[0])
plistObj.backgroundColorGreen = new bplist.Real(opts.colorComponents[1])
plistObj.backgroundColorBlue = new bplist.Real(opts.colorComponents[2])
}
if (opts.rawAlias) {
plistObj.backgroundType = 2
plistObj.backgroundImageAlias = opts.rawAlias
}
dataType = 'bplist'