isobit-ui 0.0.420 → 0.0.424

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/dist/index.js +6 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * isobit-ui v0.0.420
2
+ * isobit-ui v0.0.424
3
3
  * (c) Erik Alarcon Pinedo
4
4
  * Released under the MIT License.
5
5
  */
@@ -6262,18 +6262,16 @@ window.ui = _$1.ui = function (cfg) {
6262
6262
  if (storedList[k].tmpId == o.tmpId) {
6263
6263
  delete o.tmpSynchronized;
6264
6264
  storedList[k] = o;
6265
- return;
6266
6265
  }
6267
6266
  }
6268
6267
  }
6269
6268
 
6270
6269
  var db = window._.db;
6271
6270
  var objectStore = db.transaction([store], "readwrite").objectStore(store);
6272
- console.log('!o.id=' + !o.id);
6273
6271
 
6274
6272
  if (!o.id) {
6275
- o.id = -new Date();
6276
- o.tmpId = +new Date(); //add new item to start to array
6273
+ o.tmpId = 1 * new Date();
6274
+ o.id = -o.tmpId; //add new item to start to array
6277
6275
 
6278
6276
  storedList.unshift(o);
6279
6277
  objectStore.add(o);
@@ -6322,13 +6320,15 @@ window.ui = _$1.ui = function (cfg) {
6322
6320
  var objectStore = window._.db.transaction([store], "readwrite").objectStore(store);
6323
6321
 
6324
6322
  var item = objectStore.get(o.tmpId);
6325
- o.tmpSynchronized = 1;
6326
6323
 
6327
6324
  if (data.id) {
6328
6325
  o.id = data.id;
6329
6326
  o0.id = o.id;
6330
6327
  }
6331
6328
 
6329
+ o0.tmpSynchronized = 1;
6330
+ console.log(o0);
6331
+
6332
6332
  item.onsuccess = function () {
6333
6333
  if (item.result) {
6334
6334
  objectStore.put(o);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isobit-ui",
3
- "version": "0.0.420",
3
+ "version": "0.0.424",
4
4
  "type": "module",
5
5
  "description": "Vue component to play videos",
6
6
  "keywords": [