@liangshen/alfred-tunnelblick
Advanced tools
Comparing version 1.0.2 to 1.0.3
16
index.js
import alfy from 'alfy'; | ||
import {run} from "@apple-jxa/node"; | ||
import { run } from "@apple-jxa/node"; | ||
const configurations = await run(() => { | ||
let application = Application("Tunnelblick"); | ||
application.includeStandardAdditions = true; | ||
const configurations = [] | ||
const length = application.configurations().length | ||
const configurations = []; | ||
application.configurations(); | ||
const length = application.configurations().length; | ||
for (let i = 0; i < length; i++) { | ||
@@ -16,4 +16,4 @@ const configuration = application.configurations.at(i); | ||
} | ||
return configurations | ||
}) | ||
return configurations; | ||
}); | ||
const items = configurations.map(i => ({ | ||
@@ -27,3 +27,3 @@ title: i.name, | ||
autocomplete: i.name | ||
})).filter(i => i.title.toLowerCase().includes(alfy.input.toLowerCase())); | ||
alfy.output(items) | ||
})); | ||
alfy.output(alfy.inputMatches(items, 'title')); |
{ | ||
"name": "@liangshen/alfred-tunnelblick", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Alfred workflow for Tunnelblick", | ||
@@ -11,5 +11,6 @@ "type": "module", | ||
"preuninstall": "alfy-cleanup", | ||
"build": "tsc", | ||
"build:Tunnelblick:tsd": "jxa /Applications/Tunnelblick.app", | ||
"npm:scope:wangliang": "npm config set scope liangshen", | ||
"publish:version:patch": "npm version patch && npm run npm:scope:wangliang && npm publish --access public ." | ||
"publish:version:patch": "npm run build && npm version patch && npm run npm:scope:wangliang && npm publish --access public ." | ||
}, | ||
@@ -36,9 +37,11 @@ "keywords": [ | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@apple-jxa/cli": "0.0.6", | ||
"@apple-jxa/types": "0.0.5", | ||
"typescript": "^4.7.2" | ||
}, | ||
"dependencies": { | ||
"@apple-jxa/cli": "0.0.3", | ||
"@apple-jxa/node": "0.0.9", | ||
"@apple-jxa/types": "0.0.4", | ||
"alfy": "^1.0.0", | ||
"camelcase": "^6.3.0" | ||
"@apple-jxa/node": "0.0.10", | ||
"alfy": "^1.0.0" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1051553
2
3
122
1
+ Added@apple-jxa/node@0.0.10(transitive)
- Removed@apple-jxa/cli@0.0.3
- Removed@apple-jxa/types@0.0.4
- Removedcamelcase@^6.3.0
- Removed@apple-jxa/cli@0.0.3(transitive)
- Removed@apple-jxa/node@0.0.9(transitive)
- Removed@apple-jxa/types@0.0.4(transitive)
- Removedcamelcase@6.3.0(transitive)
- Removedcommander@9.5.0(transitive)
- Removedsax@1.3.0(transitive)
- Removedxml-js@1.6.11(transitive)
Updated@apple-jxa/node@0.0.10