spyne 0.17.1 → 0.17.3

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 (36) hide show
  1. package/lib/{channel-action-filter.test.871939702.js → channel-action-filter.test.2418910233.js} +0 -0
  2. package/lib/{channel-dom.test.2857423116.js → channel-dom.test.1490741340.js} +0 -0
  3. package/lib/{channel-fetch-util.test.1782805723.js → channel-fetch-util.test.3681936279.js} +0 -0
  4. package/lib/{channel-fetch.test.3331576485.js → channel-fetch.test.380764798.js} +0 -0
  5. package/lib/{channel-payload-class.test.99440410.js → channel-payload-class.test.2325155642.js} +0 -0
  6. package/lib/{channel-payload-filter.test.2135136282.js → channel-payload-filter.test.1598505124.js} +0 -0
  7. package/lib/{channel-route.test.3036804306.js → channel-route.test.921296320.js} +0 -0
  8. package/lib/{channel-stream-item.test.1523843610.js → channel-stream-item.test.159699696.js} +0 -0
  9. package/lib/{channel-ui.test.367398224.js → channel-ui.test.291129654.js} +0 -0
  10. package/lib/{channel-util-dom.test.3758627277.js → channel-util-dom.test.181212370.js} +0 -0
  11. package/lib/{channel.test.1717017712.js → channel.test.706832124.js} +0 -0
  12. package/lib/commons.js +1884 -1893
  13. package/lib/{dom-el-selectors.test.2633571626.js → dom-el-selectors.test.3296414834.js} +0 -0
  14. package/lib/{dom-el-template.test.268653142.js → dom-el-template.test.1459850380.js} +0 -0
  15. package/lib/{dom-el.test.4051977500.js → dom-el.test.2449130808.js} +0 -0
  16. package/lib/{frp-tools.test.3814897075.js → frp-tools.test.1620088187.js} +0 -0
  17. package/lib/import.test.723835576.js +20 -0
  18. package/lib/{index.test.1514915838.js → index.test.2146503294.js} +0 -0
  19. package/lib/{plugins-methods.test.2326717190.js → plugins-methods.test.3482246428.js} +0 -0
  20. package/lib/{route-utils.test.2350761994.js → route-utils.test.2932649409.js} +0 -0
  21. package/lib/{spyne-app-properties.test.96729569.js → spyne-app-properties.test.485192211.js} +0 -0
  22. package/lib/{spyne-app.test.1443517996.js → spyne-app.test.4150724251.js} +0 -0
  23. package/lib/{spyne-plugin.test.1247070970.js → spyne-plugin.test.3993976219.js} +0 -0
  24. package/lib/spyne.js +17 -6
  25. package/lib/spyne.min.js +1 -1
  26. package/lib/spyne.min.js.LICENSE.txt +1 -1
  27. package/lib/{url-utils.test.516839067.js → url-utils.test.3668806082.js} +0 -0
  28. package/lib/{view-stream-broadcaster.test.934532750.js → view-stream-broadcaster.test.2534955231.js} +0 -0
  29. package/lib/{view-stream-enhancer-loader.test.2755314117.js → view-stream-enhancer-loader.test.3395418180.js} +0 -0
  30. package/lib/{view-stream-enhancer.test.414877881.js → view-stream-enhancer.test.1043626253.js} +0 -0
  31. package/lib/{view-stream.test.2479353905.js → view-stream.test.1765314964.js} +0 -0
  32. package/package.json +22 -15
  33. package/src/spyne/channels/spyne-channel-window.js +2 -1
  34. package/src/spyne/spyne-app.js +2 -2
  35. package/src/spyne/utils/spyne-utils-channel-window.js +1 -1
  36. package/src/spyne/views/view-stream.js +12 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spyne",
3
3
  "sideEffects": false,
4
- "version": "0.17.1",
4
+ "version": "0.17.3",
5
5
  "description": "Reactive Real-DOM Framework for Advanced Javascript applications",
6
6
  "main": "lib/spyne.min.js",
7
7
  "module": "src/spyne/spyne.js",
@@ -30,17 +30,24 @@
30
30
  "author": "Frank Batista",
31
31
  "license": "LGPL",
32
32
  "devDependencies": {
33
- "@babel/core": "^7.15.8",
34
- "@babel/plugin-transform-runtime": "^7.15.8",
35
- "@babel/preset-env": "^7.15.8",
33
+ "@babel/core": "^7.15.0",
34
+ "@babel/plugin-transform-runtime": "^7.15.0",
35
+ "@babel/preset-env": "^7.15.0",
36
36
  "babel-loader": "^8.2.2",
37
37
  "chai": "^4.3.4",
38
- "chai-dom": "^1.10.0",
39
- "clean-webpack-plugin": "^4.0.0",
38
+ "chai-dom": "^1.9.0",
39
+ "clean-webpack-plugin": "^3.0.0",
40
40
  "commitizen": "^4.2.4",
41
- "css-loader": "^6.4.0",
41
+ "css-loader": "^6.2.0",
42
42
  "cz-conventional-changelog": "^3.3.0",
43
- "eslint": "^8.0.0",
43
+ "eslint": "^7.32.0",
44
+ "eslint-config-semistandard": "^16.0.0",
45
+ "eslint-config-standard": "^16.0.3",
46
+ "eslint-loader": "^4.0.2",
47
+ "eslint-plugin-import": "^2.24.2",
48
+ "eslint-plugin-node": "^11.1.0",
49
+ "eslint-plugin-promise": "^5.1.0",
50
+ "eslint-plugin-standard": "^5.0.0",
44
51
  "file-loader": "^6.2.0",
45
52
  "ghooks": "^2.0.4",
46
53
  "karma": "^6.3.4",
@@ -49,14 +56,14 @@
49
56
  "karma-coverage": "^2.0.3",
50
57
  "karma-mocha": "^2.0.1",
51
58
  "karma-webpack": "^5.0.0",
52
- "mocha": "^9.1.2",
59
+ "mocha": "^9.1.1",
53
60
  "mocha-loader": "^5.1.5",
54
- "selenium-webdriver": "^4.0.0-rc-2",
61
+ "selenium-webdriver": "^4.0.0-beta.4",
55
62
  "tslib": "^2.3.1",
56
- "webpack": "^5.58.1",
57
- "webpack-cli": "^4.9.0",
58
- "webpack-dev-middleware": "^5.2.1",
59
- "webpack-dev-server": "^4.3.1",
63
+ "webpack": "^5.51.1",
64
+ "webpack-cli": "^4.8.0",
65
+ "webpack-dev-middleware": "^5.0.0",
66
+ "webpack-dev-server": "^4.0.0",
60
67
  "webpack-node-externals": "^3.0.0",
61
68
  "webpack-rxjs-externals": "^2.0.0"
62
69
  },
@@ -70,6 +77,6 @@
70
77
  },
71
78
  "dependencies": {
72
79
  "ramda": "^0.27.1",
73
- "rxjs": "^7.4.0"
80
+ "rxjs": "^7.3.0"
74
81
  }
75
82
  }
@@ -218,7 +218,8 @@ export class SpyneChannelWindow extends Channel {
218
218
  // CHECK TO ADD MEDIA QUERY OBSERVABLE
219
219
  // ==========================================
220
220
  config['listenForMediaQueries'] = checkIfObjIsNotEmptyOrNil(
221
- config.mediqQueries);
221
+ config.mediaQueries) || checkIfObjIsNotEmptyOrNil(
222
+ config.mediqQueries);
222
223
 
223
224
  // =========================================
224
225
 
@@ -4,7 +4,7 @@ import {SpyneUtilsChannelRoute} from './utils/spyne-utils-channel-route';
4
4
  import {SpyneAppProperties} from './utils/spyne-app-properties';
5
5
  import {deepMerge} from './utils/deep-merge';
6
6
  const _channels = new ChannelsMap();
7
- const version = '0.17.2';
7
+ const version = '0.17.3';
8
8
 
9
9
  class SpyneApplication {
10
10
  /**
@@ -42,7 +42,7 @@ class SpyneApplication {
42
42
  init(config = {}, testMode=false) {
43
43
  //this.channels = new ChannelsMap();
44
44
  /*!
45
- * Spyne 0.17.1
45
+ * Spyne 0.17.3
46
46
  * https://spynejs.org
47
47
  *
48
48
  * @license Copyright 2017-2021, Frank Batista, Relevant Context, LLC. All rights reserved.
@@ -66,7 +66,7 @@ export class SpyneUtilsChannelWindow {
66
66
  }
67
67
 
68
68
  static createMergedObsFromObj(config) {
69
- let mediaQueriesObj = config.mediqQueries;
69
+ let mediaQueriesObj = config.mediaQueries || config.mediqQueries;
70
70
  let arr = [];
71
71
 
72
72
  const loopQueries = (val, key, obj) => {
@@ -1192,8 +1192,18 @@ export class ViewStream {
1192
1192
 
1193
1193
  isLocalEvent(channelPayloadItem) {
1194
1194
  const itemEl = path(['srcElement', 'el'], channelPayloadItem);
1195
- return itemEl !== undefined &&
1196
- this.props.el.contains(channelPayloadItem.srcElement.el);
1195
+ const thisEl = path(['props', 'el'], this);
1196
+ //console.log('this el is ',{thisEl, itemEl});
1197
+ return ViewStream.elIsDomElement(thisEl) && ViewStream.elIsDomElement(itemEl) && thisEl.contains(itemEl);
1198
+ }
1199
+
1200
+ static elIsDomElement(o) {
1201
+ if (is(String,o)){
1202
+ o = document.querySelector(o);
1203
+ }
1204
+
1205
+
1206
+ return compose(lte(0), defaultTo(-1), prop('nodeType'))(o);
1197
1207
  }
1198
1208
 
1199
1209
  get attributesArray() {