@blocklet/constant 1.8.35 → 1.8.37

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.
Files changed (2) hide show
  1. package/index.js +13 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -72,6 +72,7 @@ const BLOCKLET_GROUPS = ['dapp', 'static', 'gateway'];
72
72
  // Blocklet Events
73
73
 
74
74
  const BlockletEvents = Object.freeze({
75
+ // status updated
75
76
  added: 'blocklet.added',
76
77
  downloadFailed: 'blocklet.downloadFailed',
77
78
  installed: 'blocklet.installed',
@@ -80,15 +81,20 @@ const BlockletEvents = Object.freeze({
80
81
  upgradeFailed: 'blocklet.upgradedFailed',
81
82
  downgraded: 'blocklet.downgraded',
82
83
  downgradeFailed: 'blocklet.downgradedFailed',
83
- updated: 'blocklet.updated',
84
- statusChange: 'blocklet.statusChange',
85
84
  removed: 'blocklet.removed',
86
85
  started: 'blocklet.started',
87
86
  startFailed: 'blocklet.startFailed',
88
87
  stopped: 'blocklet.stopped',
89
88
  reloaded: 'blocklet.reloaded', // Deprecated
90
- purchaseChange: 'blocklet.purchaseChange',
89
+ statusChange: 'blocklet.statusChange',
90
+
91
+ // state updated
92
+ updated: 'blocklet.updated',
91
93
  domainStatus: 'blocklet.domainStatus',
94
+ storeChange: 'blocklet.storeChange',
95
+
96
+ // purchase
97
+ purchaseChange: 'blocklet.purchaseChange',
92
98
  });
93
99
 
94
100
  // Blocklet Interface
@@ -172,9 +178,13 @@ module.exports = Object.freeze({
172
178
  BLOCKLET_ENTRY_FILE: 'blocklet.js',
173
179
  BLOCKLET_META_FILE: 'blocklet.yml',
174
180
  BLOCKLET_META_FILE_ALT: 'blocklet.yaml',
181
+ BLOCKLET_PREFERENCE_FILE: 'blocklet.prefs.json',
182
+ BLOCKLET_PREFERENCE_PREFIX: 'prefs.',
175
183
 
176
184
  BLOCKLET_DEFAULT_VERSION: '1.0.0',
177
185
 
186
+ BLOCKLET_UPLOADS_DIR: '__uploads',
187
+
178
188
  BLOCKLET_LATEST_SPEC_VERSION: '1.2.7',
179
189
  BLOCKLET_LATEST_REQUIREMENT_SERVER: '>=1.7.0',
180
190
  BLOCKLET_LATEST_REQUIREMENT_ABTNODE: '>=1.5.15', // Deprecated
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.35",
6
+ "version": "1.8.37",
7
7
  "description": "Blocklet constants",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -20,5 +20,5 @@
20
20
  "devDependencies": {
21
21
  "jest": "^27.5.1"
22
22
  },
23
- "gitHead": "dd89e7a61dc8cff64302608ad5ab6545dd903daa"
23
+ "gitHead": "f26f451c6e2b1168b36f78269eafdf3f671236bf"
24
24
  }