Socket
Socket
Sign inDemoInstall

@liangshen/alfred-iterm

Package Overview
Dependencies
8
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

25

dist/action.js

@@ -9,26 +9,1 @@ import { run } from "@apple-jxa/node";

}, name);
//
// // on alfred_script(q)
// //
// // set msg to ""
// // tell application "Tunnelblick"
// // set configs to get name of configurations
// // if q is in configs then
// // set s to get state of first configuration where name = q
// // if s is equal to "CONNECTED" then
// // if disconnect q then
// // else
// // return "Could not disconnect from: " & q
// // end if
// // else
// // if connect q then
// // else
// // return "Could not connect to: " & q
// // end if
// // end if
// // else
// // return "There is no VPN named: " & q
// // end if
// // end tell
// //
// // end alfred_script

10

dist/index.js
import alfred from "@liangshen/alfred";
import plist from 'bplist-parser';
import os from 'os';
import iterm from "@liangshen/iterm";
// await run(() => {

@@ -8,5 +7,4 @@ // let application = Application('ITerm');

// })
var obj = await plist.parseFile(`${os.homedir()}/Library/Preferences/com.googlecode.iterm2.plist`);
alfred.log(JSON.stringify(obj), null, 4);
const iterms = obj[0]['New Bookmarks'].map((i) => ({
const preferences = iterm.getPreferencesSync();
const items = preferences['New Bookmarks'].map(i => ({
title: i.Name,

@@ -17,3 +15,3 @@ subtitle: i.Tags.join(','),

alfred.output({
items: iterms
items
}, ["title", "subtitle"]);

@@ -20,0 +18,0 @@ // const configurations = await run(() => {

4

package.json
{
"name": "@liangshen/alfred-iterm",
"version": "1.0.3",
"version": "1.0.4",
"description": "Alfred workflow for iTerm",

@@ -36,4 +36,4 @@ "type": "module",

"@liangshen/alfred": "^1.1.20",
"bplist-parser": "^0.3.2"
"@liangshen/iterm": "^1.0.3"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc