@karpeleslab/klbfw 0.1.6 → 0.1.7

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 (3) hide show
  1. package/internal.js +1 -1
  2. package/package.json +1 -1
  3. package/rest.js +1 -1
package/internal.js CHANGED
@@ -43,7 +43,7 @@ function rest_url(path, with_token, context) {
43
43
  if (fwWrapper.getCallUrlPrefix()) call_url = fwWrapper.getCallUrlPrefix() + call_url;
44
44
 
45
45
  // copy context, proceed with overload then add to url
46
- var ctx_final = fwWrapper.getContext();
46
+ var ctx_final = Object.assign({}, fwWrapper.getContext());
47
47
  for (var i in context) ctx_final[i] = context[i];
48
48
  for (var i in ctx_final) {
49
49
  if (i == "_") continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karpeleslab/klbfw",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Frontend Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/rest.js CHANGED
@@ -7,7 +7,7 @@ const fwWrapper = require('./fw-wrapper');
7
7
  module.exports.rest = (name, verb, params, context) => {
8
8
  if (typeof __platformAsyncRest !== "undefined") {
9
9
  context = context || {};
10
- var ctx_final = fwWrapper.getContext();
10
+ var ctx_final = Object.assign({}, fwWrapper.getContext());
11
11
  for (var i in context) ctx_final[i] = context[i];
12
12
  return __platformAsyncRest(name, verb, params, ctx_final);
13
13
  }