@converse/skeletor 0.0.3 → 0.0.6
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/README.md +70 -7
- package/dist/skeletor.js +508 -1048
- package/dist/skeletor.js.map +1 -1
- package/dist/skeletor.min.js +4 -93
- package/dist/skeletor.min.js.map +1 -1
- package/package.json +6 -7
- package/src/collection.js +1 -1
- package/src/drivers/indexeddb-getitems.js~ +1116 -0
- package/src/drivers/indexeddb.js~ +1115 -0
- package/src/storage.js +11 -8
- package/src/storage.js~ +13 -9
- package/CHANGES.md +0 -26
- package/dist/skeletor.js~ +0 -2291
- package/src/.events.js.swp +0 -0
- package/src/.helpers.js.swp +0 -0
- package/src/.history.js.swp +0 -0
- package/src/.model.js.swp +0 -0
- package/src/.overview.js.swp +0 -0
- package/src/.router.js.swp +0 -0
- package/src/.view.js.swp +0 -0
- package/src/collection.js~ +0 -737
- package/src/drivers/.sessionStorage.js.swp +0 -0
- package/src/drivers/sessionStorage.js~ +0 -316
- package/src/element-overview.js~ +0 -4
- package/src/element.js~ +0 -190
- package/src/events.js~ +0 -334
- package/src/helpers.js~ +0 -151
- package/src/history.js~ +0 -301
- package/src/htmlview.js~ +0 -14
- package/src/model.js~ +0 -439
- package/src/orderedlist.js~ +0 -88
- package/src/overview.js~ +0 -111
- package/src/router.js~ +0 -119
- package/src/vdomview.js~ +0 -15
- package/src/view.js~ +0 -283
package/package.json
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"JC Brand"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"lit-html": "^
|
|
21
|
-
"lodash-es": "^4.17.
|
|
22
|
-
"mergebounce": "0.
|
|
20
|
+
"lit-html": "^2.0.0-rc.2",
|
|
21
|
+
"lodash-es": "^4.17.21",
|
|
22
|
+
"mergebounce": "0.1.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@babel/core": "^7.10.2",
|
|
@@ -30,11 +30,9 @@
|
|
|
30
30
|
"@rollup/plugin-node-resolve": "^8.0.1",
|
|
31
31
|
"babel-eslint": "^10.1.0",
|
|
32
32
|
"babel-loader": "^8.2.2",
|
|
33
|
-
"babel-plugin-lodash": "^3.3.4",
|
|
34
33
|
"chai": "^4.2.0",
|
|
35
34
|
"eslint": "^7.2.0",
|
|
36
|
-
"
|
|
37
|
-
"karma": "^5.0.9",
|
|
35
|
+
"karma": "^6.3.16",
|
|
38
36
|
"karma-chrome-launcher": "^3.1.0",
|
|
39
37
|
"karma-firefox-launcher": "^1.2.0",
|
|
40
38
|
"karma-mocha": "^2.0.1",
|
|
@@ -42,6 +40,7 @@
|
|
|
42
40
|
"karma-webpack": "^4.0.2",
|
|
43
41
|
"localforage": "^1.7.4",
|
|
44
42
|
"localforage-driver-memory": "^1.0.5",
|
|
43
|
+
"localforage-getitems": "conversejs/localForage-getItems#de039970de16a9d3b54cdaa816aed5adaefb80c9",
|
|
45
44
|
"localforage-setitems": "^1.4.0",
|
|
46
45
|
"mocha": "^7.2.0",
|
|
47
46
|
"qunit": "^2.10.0",
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
"lint": "eslint src/*.js test/*.js"
|
|
61
60
|
},
|
|
62
61
|
"module": "src/main.js",
|
|
63
|
-
"version": "0.0.
|
|
62
|
+
"version": "0.0.6",
|
|
64
63
|
"license": "MIT",
|
|
65
64
|
"repository": {
|
|
66
65
|
"type": "git",
|
package/src/collection.js
CHANGED
|
@@ -559,7 +559,7 @@ Object.assign(Collection.prototype, Events, {
|
|
|
559
559
|
|
|
560
560
|
// Define how to uniquely identify models in the collection.
|
|
561
561
|
modelId: function(attrs) {
|
|
562
|
-
return attrs[this.model.prototype
|
|
562
|
+
return attrs[this.model.prototype?.idAttribute || 'id'];
|
|
563
563
|
},
|
|
564
564
|
|
|
565
565
|
// Get an iterator of all models in this collection.
|