New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vscode-auto-update

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-auto-update

VSCode library that allows private extensions to automatically update

latest
npmnpm
Version
1.0.6
Version published
Maintainers
1
Created
Source

VSCode Auto-Update

VSCode library that allows private extensions to automatically update

How to use

  • install package (vscode-auto-update)
  • import checker import { AutoUpdateChecker } from 'vscode-auto-update'
  • add relevant fields to package.json
  • start checker new AutoUpdateChecker({ ... }) (check options for params)
  • you're good to go

Package.json config

To use this extension, ensure the following:

  • Your package.json file contains a publishConfig field that contains a registry value. (use https://registry.npmjs.org/ when using NPM)
  • The uploaded packge contains exactly 1 .vsix file (does not matter where).

Options

  • config.friendlyName (string) - Friendly name of extension, is displayed to the user when prompting for update permission
  • config.requireUserConfirmation (bool) - Whether to wait for user approval or to just install immediately
  • config.forceUpdateOnTag (string, optional) - If provided, force update without asking for user confirmation if a version with the given tag exists in the registry. See npm docs for more info on dist tags.
  • config.onCheckFail ('notify'|'ignore') - Warn the user when checking fails or not. Ignore is generally best here since the user being offline should not warrant a warning.
  • config.onUpdateAvailable (callback, optional) - Optional callback that can change behavior of installation
  • config.onUpdateInstalled (callback, optional) - Optional callback that can change behavior after updating
  • config.checkInterval (number, default 1 hour) - Interval by which checking occurs
  • config.remote (object) - contains info about remote to use
  • config.remote.context (ExtensionContext) - VSCode extension context. Used to determine remote (see below).

Change Log

1.0.6

  • Add onUpdateInstalled callback

1.0.5

  • onUpdateAvailable can now return a promise

1.0.4

  • Reduce reload wait time even more (5s to 3s)
  • Make it so on-extensions-changed listener is placed before install action.

1.0.3

  • Support force-updating

1.0.2

  • Reduce reload wait time (from 10s to 5s)

1.0.1

  • Reduce unnecessary files in package
  • Include sourcemap

1.0.0

  • Initial release

FAQs

Package last updated on 05 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts