New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@todesktop/runtime

Package Overview
Dependencies
Maintainers
3
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@todesktop/runtime - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0-rc.0

dist/AutoUpdater.d.ts

33

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// eslint-disable-next-line
// @ts-ignore
const electron_1 = require("electron");
const electron_updater_1 = require("electron-updater");
const init = () => {
electron_1.app.on("will-finish-launching", () => {
electron_updater_1.autoUpdater.checkForUpdatesAndNotify();
});
};
module.exports = { init };
const electron = require("electron");
const AutoUpdater_1 = require("./AutoUpdater");
class ToDesktop {
// This initializes everything. It must be called (at the top of their main script)
init({ autoUpdater = true } = {}) {
if (!electron.app.isPackaged) {
// eslint-disable-next-line no-console
console.log("@todesktop/runtime: skipping autoUpdater initialization because application is not packed. todesktop.autoUpdater.* methods will not exist");
return;
}
if (autoUpdater) {
this.autoUpdater = new AutoUpdater_1.default();
}
else {
// Disables the default behaviour
this.autoUpdater = new AutoUpdater_1.default({
autoCheckInterval: 0,
shouldAutoCheckOnLaunch: false,
shouldNotify: false,
});
}
}
}
module.exports = new ToDesktop();
{
"private": false,
"name": "@todesktop/runtime",
"version": "0.0.3",
"version": "0.1.0-rc.0",
"license": "MIT",

@@ -14,5 +14,7 @@ "author": "Adam Lynch <contact@adamlynch.com> (http://adamlynch.com/)",

"build": "tsc --skipLibCheck --declaration -p .",
"clear-test-cache": "ava reset-cache",
"lint": "tsc --noEmit --skipLibCheck && eslint . --ext .js,.ts,.tsx",
"lint--fix": "tsc --noEmit --skipLibCheck && eslint . --ext .js,.ts,.tsx --fix",
"release": "npm run lint && npm run build && npx np",
"lint": "tslint -p .",
"test": "echo 'No tests yet'"
"test": "npm run build && ava"
},

@@ -26,8 +28,58 @@ "files": [

"dependencies": {
"electron-updater": "^4.2.2"
"electron-updater": "^4.2.2",
"eventemitter2": "^6.3.1",
"lodash.once": "^4.1.1"
},
"devDependencies": {
"tslint": "^6.0.0",
"typescript": "^3.8.3"
"@ava/babel": "^1.0.1",
"@ava/typescript": "^1.1.1",
"@babel/core": "^7.9.0",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/register": "^7.9.0",
"@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0",
"ava": "^3.7.1",
"electron": "^8.2.3",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"husky": "^4.2.5",
"lint-staged": "^10.1.7",
"prettier": "^2.0.5",
"promise-polyfill": "^8.1.3",
"proxyquire": "^2.1.3",
"sinon": "^9.0.2",
"typescript": "^3.8.3",
"winston": "^3.2.1"
},
"ava": {
"babel": true,
"files": [
"test/**/*.js",
"!test/fixtures/**/*",
"!test/utilities/**/*"
],
"require": [
"@babel/register"
]
},
"lint-staged": {
"**/*.js": [
"eslint . --ext .js --fix"
],
"**/*.ts": [
"eslint . --ext .ts,.tsx --fix"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && tsc --noEmit --skipLibCheck -p ."
}
}
}

@@ -47,1 +47,5 @@ # runtime

Check out [todesktop-quick-start](https://github.com/ToDesktop/todesktop-quick-start) to see a minimal example project.
## More documentation
See https://docs.todesktop.com/cli/using-the-todesktop-cli
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc