@aurelia-mdc-web/all 10.0.1 → 10.0.2

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.
@@ -7,7 +7,7 @@ export function confirmAction(message) {
7
7
  if (!await this.alertService.confirm(message)) {
8
8
  return;
9
9
  }
10
- return originalMethod.call(this, args);
10
+ return originalMethod.call(this, ...args);
11
11
  };
12
12
  };
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"confirm-action.js","sourceRoot":"","sources":["../../../src/alert/decorators/confirm-action.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,aAAa,CAAC,OAA6C;IACzE,OAAO,SAAS,eAAe,CAA6D,cAAqD,EAC/I,CAA2E;QAC3E,OAAO,KAAK,UAAU,iBAAiB,CAAa,GAAG,IAAU;YAC/D,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;YAC5D,CAAC;YAED,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC9C,OAAO;YACT,CAAC;YACD,OAAO,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACzC,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { IAlertModalPayload } from '../alert-modal/i-alert-modal-payload';\nimport { IWithAlertService } from './using-progress';\n\nexport function confirmAction(message: string | Partial<IAlertModalPayload>) {\n return function actualDecorator<This extends IWithAlertService, Args extends any[], Return>(originalMethod: (this: This, ...args: Args) => Return,\n _: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Return>) {\n return async function replacementMethod(this: This, ...args: Args) {\n if (!this.alertService) {\n throw new Error('Did you forget to inject AlertService?');\n }\n\n if (!await this.alertService.confirm(message)) {\n return;\n }\n return originalMethod.call(this, args);\n };\n };\n}\n"]}
1
+ {"version":3,"file":"confirm-action.js","sourceRoot":"","sources":["../../../src/alert/decorators/confirm-action.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,aAAa,CAAC,OAA6C;IACzE,OAAO,SAAS,eAAe,CAA6D,cAAqD,EAC/I,CAA2E;QAC3E,OAAO,KAAK,UAAU,iBAAiB,CAAa,GAAG,IAAU;YAC/D,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;YAC5D,CAAC;YAED,IAAI,CAAC,MAAM,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;gBAC9C,OAAO;YACT,CAAC;YACD,OAAO,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;QAC5C,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { IAlertModalPayload } from '../alert-modal/i-alert-modal-payload';\nimport { IWithAlertService } from './using-progress';\n\nexport function confirmAction(message: string | Partial<IAlertModalPayload>) {\n return function actualDecorator<This extends IWithAlertService, Args extends any[], Return>(originalMethod: (this: This, ...args: Args) => Return,\n _: ClassMethodDecoratorContext<This, (this: This, ...args: Args) => Return>) {\n return async function replacementMethod(this: This, ...args: Args) {\n if (!this.alertService) {\n throw new Error('Did you forget to inject AlertService?');\n }\n\n if (!await this.alertService.confirm(message)) {\n return;\n }\n return originalMethod.call(this, ...args);\n };\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurelia-mdc-web/all",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -12,7 +12,7 @@ export function confirmAction(message: string | Partial<IAlertModalPayload>) {
12
12
  if (!await this.alertService.confirm(message)) {
13
13
  return;
14
14
  }
15
- return originalMethod.call(this, args);
15
+ return originalMethod.call(this, ...args);
16
16
  };
17
17
  };
18
18
  }