@plaudit/webpack-extensions 2.62.2 → 2.62.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.
@@ -210,14 +210,11 @@ class Assignment extends ParenthesesEnclosableExpression {
210
210
  if (this.assignees.some(a => a instanceof Access && !a.endsWithPotentiallyWritableExpression())) {
211
211
  throw new Error("Cannot assign a value to an access chain that does not end in a writable state");
212
212
  }
213
- if (!this.push && this.assignees.some(a => a instanceof Access && a.endsWithCall())) {
213
+ if (!this.push && this.assignees.some(a => a instanceof Call || (a instanceof Access && a.endsWithCall()))) {
214
214
  throw new Error("Cannot assign a value to an access chain that ends in a function call unless that 'assignment' is a push");
215
215
  }
216
216
  }
217
217
  toString() {
218
- //TODO: Validate that we're in push mode if assigning to a call
219
- if (!this.push && this.assignees.some(a => a instanceof Call)) {
220
- }
221
218
  const assignmentValue = isEnclosableExpression(this.value) ? this.value.toEnclosedForm() : Expr.convertJsonToPHP(this.value);
222
219
  if (this.push) {
223
220
  return this.assignees[0].toEnclosedForm() + "[] = " + assignmentValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.62.2",
3
+ "version": "2.62.3",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "files": [
6
6
  "/build"