@genesislcap/foundation-store 14.70.2 → 14.70.4-es2021.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { __awaiter, __decorate } from "tslib";
1
+ import { __decorate } from "tslib";
2
2
  import { createErrorMap, isDev } from '@genesislcap/foundation-utils';
3
3
  import { defaultExecutionContext, observable, Observable as FASTObservable, } from '@microsoft/fast-element';
4
4
  import { DI } from '@microsoft/fast-foundation';
@@ -144,10 +144,10 @@ export class AbstractStore {
144
144
  * instead raise subsequent events to be handled synchronously, where commits are allowed.
145
145
  */
146
146
  this.createAsyncListener = (key, token) => {
147
- const listener = ({ detail }) => __awaiter(this, void 0, void 0, function* () {
147
+ const listener = async ({ detail }) => {
148
148
  this.logEvent(key, true);
149
149
  return token(detail);
150
- });
150
+ };
151
151
  return this.mappedListener(key, listener);
152
152
  };
153
153
  /**
@@ -315,7 +315,7 @@ export class AbstractStore {
315
315
  if (isDev()) {
316
316
  logger.info(`'${this.name}': Emit '${key}' store event${hasDetail ? ` with ${logValue(detail)}` : ''}`);
317
317
  }
318
- this.root.element.dispatchEvent(new CustomEvent(key, Object.assign({ detail }, internalEmitOptions)));
318
+ this.root.element.dispatchEvent(new CustomEvent(key, { detail, ...internalEmitOptions }));
319
319
  }
320
320
  }
321
321
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-store",
3
3
  "description": "Genesis Foundation Store",
4
- "version": "14.70.2",
4
+ "version": "14.70.4-es2021.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -22,12 +22,12 @@
22
22
  "serve": "genx serve"
23
23
  },
24
24
  "devDependencies": {
25
- "@genesislcap/genx": "14.70.2",
25
+ "@genesislcap/genx": "14.70.4-es2021.1",
26
26
  "rimraf": "^3.0.2"
27
27
  },
28
28
  "dependencies": {
29
- "@genesislcap/foundation-events": "14.70.2",
30
- "@genesislcap/foundation-utils": "14.70.2",
29
+ "@genesislcap/foundation-events": "14.70.4-es2021.1",
30
+ "@genesislcap/foundation-utils": "14.70.4-es2021.1",
31
31
  "@microsoft/fast-element": "^1.7.0",
32
32
  "@microsoft/fast-foundation": "^2.33.2",
33
33
  "fast-safe-stringify": "^2.1.1",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "efc54c4f5968451219d8ab6da8a0c73cb054c2b7"
45
+ "gitHead": "5d0d8ee36cfd068cfc6211033b326d0a978cfc05"
46
46
  }