spyne 0.17.3 → 0.18.0

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 (70) hide show
  1. package/karma.conf.js +5 -61
  2. package/lib/spyne.js +554 -1221
  3. package/lib/spyne.min.js +1 -1
  4. package/lib/spyne.min.js.LICENSE.txt +1 -1
  5. package/package.json +1 -1
  6. package/src/spyne/channels/channel-fetch-class.js +1 -4
  7. package/src/spyne/channels/channel-payload-class.js +8 -9
  8. package/src/spyne/channels/channel-proxy.js +1 -1
  9. package/src/spyne/channels/channel.js +3 -26
  10. package/src/spyne/channels/channels-config.js +0 -2
  11. package/src/spyne/channels/channels-map.js +1 -18
  12. package/src/spyne/channels/spyne-channel-lifecycle.js +1 -2
  13. package/src/spyne/channels/spyne-channel-route.js +7 -47
  14. package/src/spyne/channels/spyne-channel-ui.js +0 -2
  15. package/src/spyne/channels/spyne-channel-window.js +2 -53
  16. package/src/spyne/spyne-app.js +5 -23
  17. package/src/spyne/spyne-plugins.js +29 -61
  18. package/src/spyne/spyne.js +0 -1
  19. package/src/spyne/utils/channel-config-validator.js +0 -1
  20. package/src/spyne/utils/channel-fetch-util.js +1 -2
  21. package/src/spyne/utils/channel-payload-filter.js +4 -73
  22. package/src/spyne/utils/gc.js +1 -1
  23. package/src/spyne/utils/route-channel-updater.js +0 -4
  24. package/src/spyne/utils/spyne-app-properties.js +42 -72
  25. package/src/spyne/utils/spyne-plugins-methods.js +1 -9
  26. package/src/spyne/utils/spyne-trait.js +2 -5
  27. package/src/spyne/utils/spyne-utils-channel-route-url.js +1 -7
  28. package/src/spyne/utils/spyne-utils-channel-route.js +3 -13
  29. package/src/spyne/utils/spyne-utils-channel-window.js +1 -3
  30. package/src/spyne/utils/viewstream-observables.js +2 -3
  31. package/src/spyne/views/dom-element-template.js +1 -6
  32. package/src/spyne/views/dom-element.js +0 -19
  33. package/src/spyne/views/view-stream-broadcaster.js +2 -7
  34. package/src/spyne/views/view-stream-element.js +1 -18
  35. package/src/spyne/views/view-stream-payload.js +2 -69
  36. package/src/spyne/views/view-stream-selector.js +1 -6
  37. package/src/spyne/views/view-stream.js +255 -292
  38. package/webpack.config.js +0 -29
  39. package/lib/channel-action-filter.test.2418910233.js +0 -20
  40. package/lib/channel-dom.test.1490741340.js +0 -20
  41. package/lib/channel-fetch-util.test.3681936279.js +0 -20
  42. package/lib/channel-fetch.test.380764798.js +0 -20
  43. package/lib/channel-payload-class.test.2325155642.js +0 -20
  44. package/lib/channel-payload-filter.test.1598505124.js +0 -20
  45. package/lib/channel-route.test.921296320.js +0 -20
  46. package/lib/channel-stream-item.test.159699696.js +0 -20
  47. package/lib/channel-ui.test.291129654.js +0 -20
  48. package/lib/channel-util-dom.test.181212370.js +0 -20
  49. package/lib/channel.test.706832124.js +0 -20
  50. package/lib/commons.js +0 -50363
  51. package/lib/dom-el-selectors.test.3296414834.js +0 -20
  52. package/lib/dom-el-template.test.1459850380.js +0 -20
  53. package/lib/dom-el.test.2449130808.js +0 -20
  54. package/lib/frp-tools.test.1620088187.js +0 -20
  55. package/lib/import.test.723835576.js +0 -20
  56. package/lib/index.test.2146503294.js +0 -20
  57. package/lib/plugins-methods.test.3482246428.js +0 -20
  58. package/lib/route-utils.test.2932649409.js +0 -20
  59. package/lib/runtime.js +0 -174
  60. package/lib/spyne-app-properties.test.485192211.js +0 -20
  61. package/lib/spyne-app.test.4150724251.js +0 -20
  62. package/lib/spyne-plugin.test.3993976219.js +0 -20
  63. package/lib/url-utils.test.3668806082.js +0 -20
  64. package/lib/view-stream-broadcaster.test.2534955231.js +0 -20
  65. package/lib/view-stream-enhancer-loader.test.3395418180.js +0 -20
  66. package/lib/view-stream-enhancer.test.1043626253.js +0 -20
  67. package/lib/view-stream.test.1765314964.js +0 -20
  68. package/src/spyne/channels/lifestream-payload.js +0 -56
  69. package/src/spyne/utils/spyne-scroll-lock.js +0 -95
  70. package/src/spyne/views/view-stream-enhancer-loader.js +0 -70
package/karma.conf.js CHANGED
@@ -1,15 +1,11 @@
1
- // Karma configuration
2
- // Generated on Fri Mar 31 2017 02:40:49 GMT-0400 (EDT)
3
- const webpackEnv = {test:true};
4
- //const webpackConfig = require("./webpack.config")(webpackEnv);
1
+
5
2
  const webpackConfig = require("./webpack.config");
6
3
  webpackConfig.mode = 'none';
7
4
  webpackConfig.watch = true;
5
+ webpackConfig.entry = undefined;
6
+ webpackConfig.output = undefined;
8
7
 
9
- //webpackConfig.output.filename='[name].[hash:8].js';
10
8
  const fileGlob = './src/tests/index.test.js';
11
- process.env.BABEL_ENV = 'test';
12
- //const rxjs = require("rxjs");
13
9
 
14
10
 
15
11
  module.exports = function(config) {
@@ -19,32 +15,12 @@ module.exports = function(config) {
19
15
  }
20
16
 
21
17
 
22
-
23
-
24
18
  webpackConfig.module.rules.push(
25
19
  {
26
20
  test: /(\.js)$/,
27
- /* loader: 'babel-loader',
28
-
29
- options: {
30
- "babelrc" : false,
31
- "presets": [
32
- ["@babel/preset-env", {
33
- "targets": {
34
- "ie" : 10,
35
- "browsers": ["last 2 versions"]
36
-
37
- },
38
- "modules": false,
39
- "loose": true
40
- }]
41
- ]
42
- },*/
43
21
  exclude: /(node_modules)/
44
22
  }
45
-
46
23
  );
47
- //console.log("CONFIG KARMA ",webpackConfig);
48
24
 
49
25
 
50
26
  config.set({
@@ -57,7 +33,6 @@ module.exports = function(config) {
57
33
 
58
34
  },
59
35
 
60
- // frameworks to use
61
36
  // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
62
37
  frameworks: ['webpack', 'mocha', 'chai'],
63
38
 
@@ -68,16 +43,12 @@ module.exports = function(config) {
68
43
  'karma-coverage',
69
44
  'karma-chrome-launcher'
70
45
  ],
71
- // list of files / patterns to load in the browser
46
+
47
+
72
48
  files: [
73
49
  {pattern: './node_modules/ramda/dist/ramda.min.js', watched:false},
74
-
75
- /*
76
- { pattern: './node_modules/rxjs/!*.js', included:false, watched: false },
77
- */
78
50
  { pattern: './node_modules/rxjs/**/*.js', included:false, watched: false },
79
51
 
80
-
81
52
  {pattern: './src/tests/index.test.js', watched: true},
82
53
  {pattern: './src/tests/spyne-app.test.js', watched: true},
83
54
  {pattern: './src/tests/spyne-plugin.test.js', watched: true},
@@ -88,9 +59,6 @@ module.exports = function(config) {
88
59
  ],
89
60
 
90
61
 
91
-
92
-
93
- // list of files to exclude
94
62
  exclude: [
95
63
 
96
64
  ],
@@ -115,18 +83,6 @@ module.exports = function(config) {
115
83
  // available reporters: https://npmjs.org/browse/keyword/karma-reporter
116
84
  reporters: ['coverage'],
117
85
 
118
- /*
119
- coverageReporter: {
120
- reporters: [
121
- {type: 'lcov', dir: 'coverage/', subdir: '.'},
122
- {type: 'text-summary'}
123
-
124
-
125
- ]
126
- },
127
- */
128
-
129
-
130
86
  coverageReporter: {
131
87
  reporters: [
132
88
  // generates ./coverage/lcov.info
@@ -153,30 +109,18 @@ module.exports = function(config) {
153
109
  autoWatch: true,
154
110
  usePolling: true,
155
111
 
156
-
157
-
158
112
  customLaunchers: {
159
-
160
113
  ChromeHeadlessNoSandbox: {
161
114
  base: 'ChromeHeadless',
162
115
  flags: ['--no-sandbox']
163
116
  }
164
117
 
165
-
166
-
167
-
168
-
169
118
  },
170
119
 
171
120
 
172
-
173
121
  // start these browsers
174
122
  // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
175
123
  browsers: ['Chrome'],
176
- /*
177
- browsers: ['Chrome','VirtualBoxIE11onWin7'],
178
- */
179
-
180
124
 
181
125
  // Continuous Integration mode
182
126
  // if true, Karma captures browsers, runs the tests and exits