@player-ui/computed-properties-plugin 0.4.0-next.1 → 0.4.0-next.10

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/dist/index.cjs.js CHANGED
@@ -34,6 +34,12 @@ class ComputedPropertiesPlugin {
34
34
  }
35
35
  }
36
36
  return (_a = next == null ? void 0 : next.set(transaction, options)) != null ? _a : [];
37
+ },
38
+ delete(binding, options, next) {
39
+ if (getExpressionType(binding)) {
40
+ throw new Error(`Invalid 'delete' operation on computed property: ${binding.asString()}`);
41
+ }
42
+ return next == null ? void 0 : next.delete(binding, options);
37
43
  }
38
44
  };
39
45
  player.hooks.dataController.tap(this.name, (dataController) => {
package/dist/index.esm.js CHANGED
@@ -30,6 +30,12 @@ class ComputedPropertiesPlugin {
30
30
  }
31
31
  }
32
32
  return (_a = next == null ? void 0 : next.set(transaction, options)) != null ? _a : [];
33
+ },
34
+ delete(binding, options, next) {
35
+ if (getExpressionType(binding)) {
36
+ throw new Error(`Invalid 'delete' operation on computed property: ${binding.asString()}`);
37
+ }
38
+ return next == null ? void 0 : next.delete(binding, options);
33
39
  }
34
40
  };
35
41
  player.hooks.dataController.tap(this.name, (dataController) => {
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@player-ui/computed-properties-plugin",
3
- "version": "0.4.0-next.1",
3
+ "version": "0.4.0-next.10",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"
7
7
  },
8
8
  "peerDependencies": {
9
- "@player-ui/player": "0.4.0-next.1"
9
+ "@player-ui/player": "0.4.0-next.10"
10
10
  },
11
11
  "dependencies": {
12
- "tapable-ts": "^0.2.2",
12
+ "tapable-ts": "^0.2.3",
13
13
  "@babel/runtime": "7.15.4"
14
14
  },
15
15
  "main": "dist/index.cjs.js",
@@ -53,6 +53,14 @@
53
53
  {
54
54
  "name": "Kelly Harrop",
55
55
  "url": "https://github.com/kharrop"
56
+ },
57
+ {
58
+ "name": "Alejandro Fimbres",
59
+ "url": "https://github.com/lexfm"
60
+ },
61
+ {
62
+ "name": "Rafael Campos",
63
+ "url": "https://github.com/rafbcampos"
56
64
  }
57
65
  ]
58
66
  }
package/src/index.ts CHANGED
@@ -67,6 +67,15 @@ export class ComputedPropertiesPlugin implements PlayerPlugin {
67
67
 
68
68
  return next?.set(transaction, options) ?? [];
69
69
  },
70
+ delete(binding, options, next) {
71
+ if (getExpressionType(binding)) {
72
+ throw new Error(
73
+ `Invalid 'delete' operation on computed property: ${binding.asString()}`
74
+ );
75
+ }
76
+
77
+ return next?.delete(binding, options);
78
+ },
70
79
  };
71
80
 
72
81
  player.hooks.dataController.tap(this.name, (dataController) => {