pear-electron 1.7.3 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +10 -0
- package/package.json +3 -3
package/api.js
CHANGED
|
@@ -327,6 +327,16 @@ module.exports = (api) => {
|
|
|
327
327
|
this[this.constructor.UI] = new PearElectron()
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
+
get tray () {
|
|
331
|
+
if (!this.constructor.COMPAT) console.warn('Pear.tray is deprecated use require(\'pear-electron\').app.tray')
|
|
332
|
+
return this[this.constructor.UI].app.tray
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
get badge () {
|
|
336
|
+
if (!this.constructor.COMPAT) console.warn('Pear.badge is deprecated use require(\'pear-electron\').app.badge')
|
|
337
|
+
return this[this.constructor.UI].app.badge
|
|
338
|
+
}
|
|
339
|
+
|
|
330
340
|
get media () {
|
|
331
341
|
if (!this.constructor.COMPAT) console.warn('Pear.media is deprecated use require(\'pear-electron\').media')
|
|
332
342
|
return this[this.constructor.UI].media
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pear-electron",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "Pear User-Interface Library for Electron",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"pear": {
|
|
21
21
|
"assets": {
|
|
22
22
|
"ui": {
|
|
23
|
-
"link": "pear://0.
|
|
23
|
+
"link": "pear://0.2742.goowesg5dga9j1ryx47rsk9o4zms4541me4zerxsnbu8u99duh4o",
|
|
24
24
|
"name": "Pear Runtime",
|
|
25
25
|
"only": [
|
|
26
26
|
"/boot.bundle",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"iambus": "^1.0.3",
|
|
75
75
|
"localdrive": "^1.12.1",
|
|
76
76
|
"paparam": "^1.6.1",
|
|
77
|
-
"pear-api": "^1.22.
|
|
77
|
+
"pear-api": "^1.22.2",
|
|
78
78
|
"pear-ipc": "^6.3.0",
|
|
79
79
|
"script-linker": "^2.5.3",
|
|
80
80
|
"streamx": "^2.20.2",
|