bv-ui-core 2.8.1 → 2.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,20 +19,20 @@ var getGlobal = function () {
19
19
  global import in all bundle use cases
20
20
  */
21
21
  if (globalObj && globalObj.__esModule) {
22
- const override = {
23
- get: function (target, prop, receiver) {
22
+ const proxyGlobal = new Proxy(globalObj, {
23
+ get: function (target, prop) {
24
24
  if (prop === 'default') {
25
25
  return target
26
26
  }
27
27
 
28
- return Reflect.get(receiver, prop, target)
28
+ return target[prop]
29
29
  },
30
30
 
31
31
  set: function (target, prop, value) {
32
- Reflect.set(target, prop, value)
32
+ target[prop] = value
33
+ return true
33
34
  },
34
- };
35
- const proxyGlobal = new Proxy(globalObj, override)
35
+ })
36
36
  return proxyGlobal
37
37
  }
38
38
  return globalObj
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bv-ui-core",
3
- "version": "2.8.1",
3
+ "version": "2.8.2",
4
4
  "license": "Apache 2.0",
5
5
  "description": "Bazaarvoice UI-related JavaScript",
6
6
  "repository": {