@bbn/bbn 1.0.345 → 1.0.347

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.
@@ -22,7 +22,7 @@ import arrayBuffer2String from '../convert/arrayBuffer2String.js';
22
22
  *
23
23
  * @returns {Promise} The Promise created by the generated XHR.
24
24
  */
25
- var boundary = '<!---------------B-B-N--------------->';
25
+ var boundary = '\n';
26
26
  export default function stream(url, success, data, failure, abort, finished) {
27
27
  var requestId = getRequestId(url, data, 'json');
28
28
  var loaderObj = getLoader(requestId);
@@ -7,6 +7,10 @@ export default function getCssVar(varname) {
7
7
  if (varname.indexOf("--") !== 0) {
8
8
  varname = "--" + varname;
9
9
  }
10
- return getComputedStyle(document.documentElement).getPropertyValue(varname);
10
+ var r = getComputedStyle(document.documentElement).getPropertyValue(varname);
11
+ if (typeof r === "string") {
12
+ r = r.trim();
13
+ }
14
+ return r;
11
15
  }
12
16
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.345",
3
+ "version": "1.0.347",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",