Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ jobs:
macos:
xcode: '13.4.1'
steps:
- run:
name: Use Node.js 18
command: |
set +e
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
nvm install v18.20.4
nvm alias default v18.20.4
echo 'export NVM_DIR="$HOME/.nvm"' >> $BASH_ENV
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- checkout
- run: yarn
- run: mkdir -p ~/reports
Expand Down
6 changes: 3 additions & 3 deletions main/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,13 @@ export class Plugins extends EventEmitter {
}

async getFromNpm() {
const url = 'https://api.npms.io/v2/search?q=keywords:kap-plugin+not:deprecated';
const url = 'https://registry.npmjs.com/-/v1/search?text=keywords:kap-plugin+not:deprecated';
const response = (await got(url, {json: true})) as {
body: {results: Array<{package: NormalizedPackageJson}>};
body: {objects: Array<{package: NormalizedPackageJson}>};
};
const installed = this.pluginNames;

return Promise.all(response.body.results
return Promise.all(response.body.objects
.map(x => x.package)
.filter(x => x.name.startsWith('kap-'))
.filter(x => !installed.includes(x.name)) // Filter out installed plugins
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test": "yarn lint && yarn test:main",
"start": "tsc && run-electron .",
"build-main": "tsc",
"build-renderer": "next build renderer && next export renderer",
"build-renderer": "NODE_OPTIONS=--openssl-legacy-provider next build renderer && next export renderer",
"build": "yarn build-main && yarn build-renderer",
"dist": "npm run build && electron-builder",
"pack": "npm run build && electron-builder --dir",
Expand Down
Loading