spyne 0.16.2 → 0.18.2

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 (82) hide show
  1. package/.travis.yml +1 -1
  2. package/README.md +0 -60
  3. package/karma.conf.js +18 -69
  4. package/lib/spyne.js +29755 -28678
  5. package/lib/spyne.min.js +1 -1
  6. package/lib/spyne.min.js.LICENSE.txt +9 -9
  7. package/package.json +21 -42
  8. package/src/spyne/channels/channel-fetch-class.js +25 -5
  9. package/src/spyne/channels/channel-payload-class.js +36 -23
  10. package/src/spyne/channels/channel-proxy.js +7 -5
  11. package/src/spyne/channels/channel.js +54 -28
  12. package/src/spyne/channels/channels-config.js +2 -4
  13. package/src/spyne/channels/{channels-delegator.js → channels-map.js} +24 -40
  14. package/src/spyne/channels/spyne-channel-lifecycle.js +1 -2
  15. package/src/spyne/channels/spyne-channel-route.js +21 -62
  16. package/src/spyne/channels/spyne-channel-ui.js +1 -2
  17. package/src/spyne/channels/spyne-channel-window.js +24 -35
  18. package/src/spyne/spyne-app.js +165 -0
  19. package/src/spyne/spyne-plugins.js +39 -41
  20. package/src/spyne/spyne.js +6 -158
  21. package/src/spyne/utils/channel-config-validator.js +0 -1
  22. package/src/spyne/utils/channel-fetch-util.js +1 -2
  23. package/src/spyne/utils/channel-payload-filter.js +9 -76
  24. package/src/spyne/utils/frp-tools.js +21 -1
  25. package/src/spyne/utils/gc.js +1 -1
  26. package/src/spyne/utils/route-channel-updater.js +0 -4
  27. package/src/spyne/utils/spyne-app-properties.js +183 -0
  28. package/src/spyne/utils/spyne-logger.js +18 -0
  29. package/src/spyne/utils/spyne-plugins-methods.js +97 -0
  30. package/src/spyne/utils/spyne-trait.js +2 -5
  31. package/src/spyne/utils/spyne-utils-channel-route-url.js +3 -8
  32. package/src/spyne/utils/spyne-utils-channel-route.js +6 -14
  33. package/src/spyne/utils/spyne-utils-channel-window.js +1 -3
  34. package/src/spyne/utils/viewstream-observables.js +2 -3
  35. package/src/spyne/views/dom-element-template.js +2 -7
  36. package/src/spyne/views/dom-element.js +0 -19
  37. package/src/spyne/views/view-stream-broadcaster.js +5 -10
  38. package/src/spyne/views/view-stream-element.js +1 -18
  39. package/src/spyne/views/view-stream-payload.js +31 -37
  40. package/src/spyne/views/view-stream-selector.js +3 -8
  41. package/src/spyne/views/view-stream.js +281 -297
  42. package/src/tests/channels/channel-fetch.test.js +102 -0
  43. package/src/tests/channels/channel-payload-class.test.js +14 -5
  44. package/src/tests/channels/channel-payload-filter.test.js +3 -28
  45. package/src/tests/channels/channel.test.js +38 -0
  46. package/src/tests/index.js +0 -1
  47. package/src/tests/index.test.js +6 -0
  48. package/src/tests/spyne-app.test.js +27 -0
  49. package/src/tests/spyne-plugin.test.js +13 -9
  50. package/src/tests/utils/plugins-methods.test.js +103 -0
  51. package/src/tests/utils/spyne-app-properties.test.js +11 -0
  52. package/webpack.config.js +19 -34
  53. package/lib/channel-action-filter.test.3516417154.js +0 -20
  54. package/lib/channel-dom.test.104366832.js +0 -20
  55. package/lib/channel-fetch-util.test.3506167575.js +0 -20
  56. package/lib/channel-payload-class.test.1081032524.js +0 -20
  57. package/lib/channel-payload-filter.test.977308429.js +0 -20
  58. package/lib/channel-route.test.3513636042.js +0 -20
  59. package/lib/channel-stream-item.test.119388071.js +0 -20
  60. package/lib/channel-ui.test.3778619579.js +0 -20
  61. package/lib/channel-util-dom.test.908537750.js +0 -20
  62. package/lib/commons.js +0 -49274
  63. package/lib/dom-el-selectors.test.1268485916.js +0 -20
  64. package/lib/dom-el-template.test.842696987.js +0 -20
  65. package/lib/dom-el.test.2045076905.js +0 -20
  66. package/lib/frp-tools.test.2503042868.js +0 -20
  67. package/lib/import.test.2658619365.js +0 -20
  68. package/lib/index.test.2372977745.js +0 -20
  69. package/lib/route-utils.test.273346057.js +0 -20
  70. package/lib/runtime.js +0 -172
  71. package/lib/spyne-plugin.test.301647328.js +0 -20
  72. package/lib/spyne.js.map +0 -1
  73. package/lib/url-utils.test.1931189114.js +0 -20
  74. package/lib/view-stream-broadcaster.test.1306675435.js +0 -20
  75. package/lib/view-stream-enhancer-loader.test.3617829096.js +0 -20
  76. package/lib/view-stream-enhancer.test.1053738169.js +0 -20
  77. package/lib/view-stream.test.573231784.js +0 -20
  78. package/src/spyne/channels/lifestream-payload.js +0 -56
  79. package/src/spyne/utils/channel-data-packet-generator.js +0 -200
  80. package/src/spyne/utils/channel-data-packet.js +0 -59
  81. package/src/spyne/utils/viewstream-dom-utils.js +0 -51
  82. package/src/spyne/views/view-stream-enhancer-loader.js +0 -70
@@ -1,20 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define("spyne", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["spyne"] = factory();
8
- else
9
- root["spyne"] = factory();
10
- })(self, function() {
11
- return (self["webpackChunkspyne"] = self["webpackChunkspyne"] || []).push([["dom-el-selectors.test.1268485916"],{},
12
- /******/ __webpack_require__ => { // webpackRuntimeModules
13
- /******/ "use strict";
14
- /******/
15
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
16
- /******/ __webpack_require__.O(0, ["commons"], () => (__webpack_exec__("./src/tests/views/dom-el-selectors.test.js")));
17
- /******/ var __webpack_exports__ = __webpack_require__.O();
18
- /******/ }
19
- ]);
20
- });
@@ -1,20 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define("spyne", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["spyne"] = factory();
8
- else
9
- root["spyne"] = factory();
10
- })(self, function() {
11
- return (self["webpackChunkspyne"] = self["webpackChunkspyne"] || []).push([["dom-el-template.test.842696987"],{},
12
- /******/ __webpack_require__ => { // webpackRuntimeModules
13
- /******/ "use strict";
14
- /******/
15
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
16
- /******/ __webpack_require__.O(0, ["commons"], () => (__webpack_exec__("./src/tests/views/dom-el-template.test.js")));
17
- /******/ var __webpack_exports__ = __webpack_require__.O();
18
- /******/ }
19
- ]);
20
- });
@@ -1,20 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define("spyne", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["spyne"] = factory();
8
- else
9
- root["spyne"] = factory();
10
- })(self, function() {
11
- return (self["webpackChunkspyne"] = self["webpackChunkspyne"] || []).push([["dom-el.test.2045076905"],{},
12
- /******/ __webpack_require__ => { // webpackRuntimeModules
13
- /******/ "use strict";
14
- /******/
15
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
16
- /******/ __webpack_require__.O(0, ["commons"], () => (__webpack_exec__("./src/tests/views/dom-el.test.js")));
17
- /******/ var __webpack_exports__ = __webpack_require__.O();
18
- /******/ }
19
- ]);
20
- });
@@ -1,20 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define("spyne", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["spyne"] = factory();
8
- else
9
- root["spyne"] = factory();
10
- })(self, function() {
11
- return (self["webpackChunkspyne"] = self["webpackChunkspyne"] || []).push([["frp-tools.test.2503042868"],{},
12
- /******/ __webpack_require__ => { // webpackRuntimeModules
13
- /******/ "use strict";
14
- /******/
15
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
16
- /******/ __webpack_require__.O(0, ["commons"], () => (__webpack_exec__("./src/tests/utils/frp-tools.test.js")));
17
- /******/ var __webpack_exports__ = __webpack_require__.O();
18
- /******/ }
19
- ]);
20
- });
@@ -1,20 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define("spyne", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["spyne"] = factory();
8
- else
9
- root["spyne"] = factory();
10
- })(self, function() {
11
- return (self["webpackChunkspyne"] = self["webpackChunkspyne"] || []).push([["import.test.2658619365"],{},
12
- /******/ __webpack_require__ => { // webpackRuntimeModules
13
- /******/ "use strict";
14
- /******/
15
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
16
- /******/ __webpack_require__.O(0, ["commons"], () => (__webpack_exec__("./src/tests/import.test.js")));
17
- /******/ var __webpack_exports__ = __webpack_require__.O();
18
- /******/ }
19
- ]);
20
- });
@@ -1,20 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define("spyne", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["spyne"] = factory();
8
- else
9
- root["spyne"] = factory();
10
- })(self, function() {
11
- return (self["webpackChunkspyne"] = self["webpackChunkspyne"] || []).push([["index.test.2372977745"],{},
12
- /******/ __webpack_require__ => { // webpackRuntimeModules
13
- /******/ "use strict";
14
- /******/
15
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
16
- /******/ __webpack_require__.O(0, ["commons"], () => (__webpack_exec__("./src/tests/index.test.js")));
17
- /******/ var __webpack_exports__ = __webpack_require__.O();
18
- /******/ }
19
- ]);
20
- });
@@ -1,20 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define("spyne", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["spyne"] = factory();
8
- else
9
- root["spyne"] = factory();
10
- })(self, function() {
11
- return (self["webpackChunkspyne"] = self["webpackChunkspyne"] || []).push([["route-utils.test.273346057"],{},
12
- /******/ __webpack_require__ => { // webpackRuntimeModules
13
- /******/ "use strict";
14
- /******/
15
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
16
- /******/ __webpack_require__.O(0, ["commons"], () => (__webpack_exec__("./src/tests/channels/route-utils.test.js")));
17
- /******/ var __webpack_exports__ = __webpack_require__.O();
18
- /******/ }
19
- ]);
20
- });
package/lib/runtime.js DELETED
@@ -1,172 +0,0 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ var __webpack_modules__ = ({});
4
- /************************************************************************/
5
- /******/ // The module cache
6
- /******/ var __webpack_module_cache__ = {};
7
- /******/
8
- /******/ // The require function
9
- /******/ function __webpack_require__(moduleId) {
10
- /******/ // Check if module is in cache
11
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
12
- /******/ if (cachedModule !== undefined) {
13
- /******/ return cachedModule.exports;
14
- /******/ }
15
- /******/ // Create a new module (and put it into the cache)
16
- /******/ var module = __webpack_module_cache__[moduleId] = {
17
- /******/ // no module.id needed
18
- /******/ // no module.loaded needed
19
- /******/ exports: {}
20
- /******/ };
21
- /******/
22
- /******/ // Execute the module function
23
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/ // expose the modules object (__webpack_modules__)
30
- /******/ __webpack_require__.m = __webpack_modules__;
31
- /******/
32
- /************************************************************************/
33
- /******/ /* webpack/runtime/chunk loaded */
34
- /******/ (() => {
35
- /******/ var deferred = [];
36
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
37
- /******/ if(chunkIds) {
38
- /******/ priority = priority || 0;
39
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
40
- /******/ deferred[i] = [chunkIds, fn, priority];
41
- /******/ return;
42
- /******/ }
43
- /******/ var notFulfilled = Infinity;
44
- /******/ for (var i = 0; i < deferred.length; i++) {
45
- /******/ var [chunkIds, fn, priority] = deferred[i];
46
- /******/ var fulfilled = true;
47
- /******/ for (var j = 0; j < chunkIds.length; j++) {
48
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
49
- /******/ chunkIds.splice(j--, 1);
50
- /******/ } else {
51
- /******/ fulfilled = false;
52
- /******/ if(priority < notFulfilled) notFulfilled = priority;
53
- /******/ }
54
- /******/ }
55
- /******/ if(fulfilled) {
56
- /******/ deferred.splice(i--, 1)
57
- /******/ result = fn();
58
- /******/ }
59
- /******/ }
60
- /******/ return result;
61
- /******/ };
62
- /******/ })();
63
- /******/
64
- /******/ /* webpack/runtime/compat get default export */
65
- /******/ (() => {
66
- /******/ // getDefaultExport function for compatibility with non-harmony modules
67
- /******/ __webpack_require__.n = (module) => {
68
- /******/ var getter = module && module.__esModule ?
69
- /******/ () => (module['default']) :
70
- /******/ () => (module);
71
- /******/ __webpack_require__.d(getter, { a: getter });
72
- /******/ return getter;
73
- /******/ };
74
- /******/ })();
75
- /******/
76
- /******/ /* webpack/runtime/define property getters */
77
- /******/ (() => {
78
- /******/ // define getter functions for harmony exports
79
- /******/ __webpack_require__.d = (exports, definition) => {
80
- /******/ for(var key in definition) {
81
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
82
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
83
- /******/ }
84
- /******/ }
85
- /******/ };
86
- /******/ })();
87
- /******/
88
- /******/ /* webpack/runtime/global */
89
- /******/ (() => {
90
- /******/ __webpack_require__.g = (function() {
91
- /******/ if (typeof globalThis === 'object') return globalThis;
92
- /******/ try {
93
- /******/ return this || new Function('return this')();
94
- /******/ } catch (e) {
95
- /******/ if (typeof window === 'object') return window;
96
- /******/ }
97
- /******/ })();
98
- /******/ })();
99
- /******/
100
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
101
- /******/ (() => {
102
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
103
- /******/ })();
104
- /******/
105
- /******/ /* webpack/runtime/make namespace object */
106
- /******/ (() => {
107
- /******/ // define __esModule on exports
108
- /******/ __webpack_require__.r = (exports) => {
109
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
110
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
111
- /******/ }
112
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
113
- /******/ };
114
- /******/ })();
115
- /******/
116
- /******/ /* webpack/runtime/jsonp chunk loading */
117
- /******/ (() => {
118
- /******/ // no baseURI
119
- /******/
120
- /******/ // object to store loaded and loading chunks
121
- /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
122
- /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
123
- /******/ var installedChunks = {
124
- /******/ "runtime": 0
125
- /******/ };
126
- /******/
127
- /******/ // no chunk on demand loading
128
- /******/
129
- /******/ // no prefetching
130
- /******/
131
- /******/ // no preloaded
132
- /******/
133
- /******/ // no HMR
134
- /******/
135
- /******/ // no HMR manifest
136
- /******/
137
- /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
138
- /******/
139
- /******/ // install a JSONP callback for chunk loading
140
- /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
141
- /******/ var [chunkIds, moreModules, runtime] = data;
142
- /******/ // add "moreModules" to the modules object,
143
- /******/ // then flag all "chunkIds" as loaded and fire callback
144
- /******/ var moduleId, chunkId, i = 0;
145
- /******/ for(moduleId in moreModules) {
146
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
147
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
148
- /******/ }
149
- /******/ }
150
- /******/ if(runtime) runtime(__webpack_require__);
151
- /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
152
- /******/ for(;i < chunkIds.length; i++) {
153
- /******/ chunkId = chunkIds[i];
154
- /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
155
- /******/ installedChunks[chunkId][0]();
156
- /******/ }
157
- /******/ installedChunks[chunkIds[i]] = 0;
158
- /******/ }
159
- /******/ __webpack_require__.O();
160
- /******/ }
161
- /******/
162
- /******/ var chunkLoadingGlobal = self["webpackChunkspyne"] = self["webpackChunkspyne"] || [];
163
- /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
164
- /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
165
- /******/ })();
166
- /******/
167
- /************************************************************************/
168
- var __webpack_exports__ = {};
169
- __webpack_require__.O();
170
- /******/ return __webpack_exports__;
171
- /******/ })()
172
- ;
@@ -1,20 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define("spyne", [], factory);
6
- else if(typeof exports === 'object')
7
- exports["spyne"] = factory();
8
- else
9
- root["spyne"] = factory();
10
- })(self, function() {
11
- return (self["webpackChunkspyne"] = self["webpackChunkspyne"] || []).push([["spyne-plugin.test.301647328"],{},
12
- /******/ __webpack_require__ => { // webpackRuntimeModules
13
- /******/ "use strict";
14
- /******/
15
- /******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
16
- /******/ __webpack_require__.O(0, ["commons"], () => (__webpack_exec__("./src/tests/spyne-plugin.test.js")));
17
- /******/ var __webpack_exports__ = __webpack_require__.O();
18
- /******/ }
19
- ]);
20
- });