@todesktop/runtime
Advanced tools
Comparing version 0.1.1 to 0.1.2-0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const AutoUpdater_1 = require("./AutoUpdater"); | ||
const cache_1 = require("./cache"); | ||
class ToDesktop { | ||
@@ -20,2 +21,10 @@ // This initializes everything. It must be called (at the top of their main script) | ||
} | ||
module.exports = new ToDesktop(); | ||
let todesktop; | ||
if (cache_1.default.get()) { | ||
todesktop = cache_1.default.get(); | ||
} | ||
else { | ||
todesktop = new ToDesktop(); | ||
cache_1.default.set(todesktop); | ||
} | ||
module.exports = todesktop; |
@@ -7,3 +7,3 @@ { | ||
"name": "@todesktop/runtime", | ||
"version": "0.1.1", | ||
"version": "0.1.2-0", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "author": "Adam Lynch <contact@adamlynch.com> (http://adamlynch.com/)", | ||
"lint--fix": "tsc --noEmit --skipLibCheck && eslint . --ext .js,.ts,.tsx --fix", | ||
"prelease": "npm run lint && npm run build && npx np --any-branch --tag=beta", | ||
"prerelease": "npm run lint && npm run build && npx np --any-branch --tag=beta", | ||
"release": "npm run lint && npm run build && npx np --tag=latest", | ||
@@ -24,0 +24,0 @@ "test": "npm run build && ava" |
38125
19
692