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.
- package/karma.conf.js +5 -61
- package/lib/spyne.js +554 -1221
- package/lib/spyne.min.js +1 -1
- package/lib/spyne.min.js.LICENSE.txt +1 -1
- package/package.json +1 -1
- package/src/spyne/channels/channel-fetch-class.js +1 -4
- package/src/spyne/channels/channel-payload-class.js +8 -9
- package/src/spyne/channels/channel-proxy.js +1 -1
- package/src/spyne/channels/channel.js +3 -26
- package/src/spyne/channels/channels-config.js +0 -2
- package/src/spyne/channels/channels-map.js +1 -18
- package/src/spyne/channels/spyne-channel-lifecycle.js +1 -2
- package/src/spyne/channels/spyne-channel-route.js +7 -47
- package/src/spyne/channels/spyne-channel-ui.js +0 -2
- package/src/spyne/channels/spyne-channel-window.js +2 -53
- package/src/spyne/spyne-app.js +5 -23
- package/src/spyne/spyne-plugins.js +29 -61
- package/src/spyne/spyne.js +0 -1
- package/src/spyne/utils/channel-config-validator.js +0 -1
- package/src/spyne/utils/channel-fetch-util.js +1 -2
- package/src/spyne/utils/channel-payload-filter.js +4 -73
- package/src/spyne/utils/gc.js +1 -1
- package/src/spyne/utils/route-channel-updater.js +0 -4
- package/src/spyne/utils/spyne-app-properties.js +42 -72
- package/src/spyne/utils/spyne-plugins-methods.js +1 -9
- package/src/spyne/utils/spyne-trait.js +2 -5
- package/src/spyne/utils/spyne-utils-channel-route-url.js +1 -7
- package/src/spyne/utils/spyne-utils-channel-route.js +3 -13
- package/src/spyne/utils/spyne-utils-channel-window.js +1 -3
- package/src/spyne/utils/viewstream-observables.js +2 -3
- package/src/spyne/views/dom-element-template.js +1 -6
- package/src/spyne/views/dom-element.js +0 -19
- package/src/spyne/views/view-stream-broadcaster.js +2 -7
- package/src/spyne/views/view-stream-element.js +1 -18
- package/src/spyne/views/view-stream-payload.js +2 -69
- package/src/spyne/views/view-stream-selector.js +1 -6
- package/src/spyne/views/view-stream.js +255 -292
- package/webpack.config.js +0 -29
- package/lib/channel-action-filter.test.2418910233.js +0 -20
- package/lib/channel-dom.test.1490741340.js +0 -20
- package/lib/channel-fetch-util.test.3681936279.js +0 -20
- package/lib/channel-fetch.test.380764798.js +0 -20
- package/lib/channel-payload-class.test.2325155642.js +0 -20
- package/lib/channel-payload-filter.test.1598505124.js +0 -20
- package/lib/channel-route.test.921296320.js +0 -20
- package/lib/channel-stream-item.test.159699696.js +0 -20
- package/lib/channel-ui.test.291129654.js +0 -20
- package/lib/channel-util-dom.test.181212370.js +0 -20
- package/lib/channel.test.706832124.js +0 -20
- package/lib/commons.js +0 -50363
- package/lib/dom-el-selectors.test.3296414834.js +0 -20
- package/lib/dom-el-template.test.1459850380.js +0 -20
- package/lib/dom-el.test.2449130808.js +0 -20
- package/lib/frp-tools.test.1620088187.js +0 -20
- package/lib/import.test.723835576.js +0 -20
- package/lib/index.test.2146503294.js +0 -20
- package/lib/plugins-methods.test.3482246428.js +0 -20
- package/lib/route-utils.test.2932649409.js +0 -20
- package/lib/runtime.js +0 -174
- package/lib/spyne-app-properties.test.485192211.js +0 -20
- package/lib/spyne-app.test.4150724251.js +0 -20
- package/lib/spyne-plugin.test.3993976219.js +0 -20
- package/lib/url-utils.test.3668806082.js +0 -20
- package/lib/view-stream-broadcaster.test.2534955231.js +0 -20
- package/lib/view-stream-enhancer-loader.test.3395418180.js +0 -20
- package/lib/view-stream-enhancer.test.1043626253.js +0 -20
- package/lib/view-stream.test.1765314964.js +0 -20
- package/src/spyne/channels/lifestream-payload.js +0 -56
- package/src/spyne/utils/spyne-scroll-lock.js +0 -95
- package/src/spyne/views/view-stream-enhancer-loader.js +0 -70
package/karma.conf.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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
|