@ngxs/store 3.7.3-dev.master-6ba2ac1 → 3.7.3-dev.master-10b0883
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/bundles/ngxs-store-internals-testing.umd.js +27 -7
- package/bundles/ngxs-store-internals-testing.umd.js.map +1 -1
- package/bundles/ngxs-store-internals-testing.umd.min.js +1 -1
- package/bundles/ngxs-store-internals-testing.umd.min.js.map +1 -1
- package/bundles/ngxs-store.umd.js +6 -0
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.min.js.map +1 -1
- package/esm2015/internals/testing/fresh-platform.js +29 -9
- package/esm2015/internals/testing/symbol.js +1 -1
- package/esm2015/src/operators/of-action.js +7 -1
- package/esm5/internals/testing/fresh-platform.js +29 -9
- package/esm5/internals/testing/symbol.js +1 -1
- package/esm5/src/operators/of-action.js +7 -1
- package/fesm2015/ngxs-store-internals-testing.js +28 -8
- package/fesm2015/ngxs-store-internals-testing.js.map +1 -1
- package/fesm2015/ngxs-store.js +6 -0
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store-internals-testing.js +28 -8
- package/fesm5/ngxs-store-internals-testing.js.map +1 -1
- package/fesm5/ngxs-store.js +6 -0
- package/fesm5/ngxs-store.js.map +1 -1
- package/internals/testing/symbol.d.ts +1 -1
- package/ngxs-store.metadata.json +1 -1
- package/package.json +2 -2
- package/src/operators/of-action.d.ts +20 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __spread, __awaiter, __generator } from 'tslib';
|
|
2
|
-
import { Component, NgModule, ApplicationRef, destroyPlatform, createPlatform } from '@angular/core';
|
|
2
|
+
import { Component, NgModule, ApplicationRef, destroyPlatform, VERSION, createPlatform } from '@angular/core';
|
|
3
3
|
import { TestBed } from '@angular/core/testing';
|
|
4
4
|
import { DOCUMENT } from '@angular/common';
|
|
5
5
|
import { BrowserModule, ɵBrowserDomAdapter, ɵgetDOM } from '@angular/platform-browser';
|
|
@@ -194,7 +194,12 @@ function destroyPlatformBeforeBootstrappingTheNewOne() {
|
|
|
194
194
|
function resetPlatformAfterBootstrapping() {
|
|
195
195
|
removeRootElement();
|
|
196
196
|
destroyPlatform();
|
|
197
|
-
|
|
197
|
+
/** @type {?} */
|
|
198
|
+
var version = +VERSION.major;
|
|
199
|
+
// https://github.com/angular/angular/commit/e250db4f261741b04ee4cbad4dec41a8908a12aa
|
|
200
|
+
if (version < 14) {
|
|
201
|
+
createPlatform(TestBed);
|
|
202
|
+
}
|
|
198
203
|
}
|
|
199
204
|
/**
|
|
200
205
|
* @param {?} fn
|
|
@@ -202,18 +207,22 @@ function resetPlatformAfterBootstrapping() {
|
|
|
202
207
|
*/
|
|
203
208
|
function freshPlatform(fn) {
|
|
204
209
|
/** @type {?} */
|
|
205
|
-
var
|
|
210
|
+
var resolve = null;
|
|
211
|
+
/** @type {?} */
|
|
212
|
+
var reject = null;
|
|
206
213
|
/** @type {?} */
|
|
207
214
|
var whenDoneIsCalledPromise = null;
|
|
208
215
|
/** @type {?} */
|
|
209
216
|
var hasDoneArgument = fn.length === 1;
|
|
210
217
|
if (hasDoneArgument) {
|
|
211
218
|
whenDoneIsCalledPromise = new Promise((/**
|
|
212
|
-
* @param {?}
|
|
219
|
+
* @param {?} _resolve
|
|
220
|
+
* @param {?} _reject
|
|
213
221
|
* @return {?}
|
|
214
222
|
*/
|
|
215
|
-
function (
|
|
216
|
-
|
|
223
|
+
function (_resolve, _reject) {
|
|
224
|
+
resolve = _resolve;
|
|
225
|
+
reject = _reject;
|
|
217
226
|
}));
|
|
218
227
|
}
|
|
219
228
|
return (/**
|
|
@@ -226,8 +235,19 @@ function freshPlatform(fn) {
|
|
|
226
235
|
case 0:
|
|
227
236
|
_a.trys.push([0, , 6, 7]);
|
|
228
237
|
destroyPlatformBeforeBootstrappingTheNewOne();
|
|
229
|
-
if (!
|
|
230
|
-
return [4 /*yield*/, fn(
|
|
238
|
+
if (!hasDoneArgument) return [3 /*break*/, 3];
|
|
239
|
+
return [4 /*yield*/, fn((/**
|
|
240
|
+
* @param {?=} error
|
|
241
|
+
* @return {?}
|
|
242
|
+
*/
|
|
243
|
+
function (error) {
|
|
244
|
+
if (error) {
|
|
245
|
+
(/** @type {?} */ (reject))(error);
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
(/** @type {?} */ (resolve))();
|
|
249
|
+
}
|
|
250
|
+
}))];
|
|
231
251
|
case 1:
|
|
232
252
|
_a.sent();
|
|
233
253
|
return [4 /*yield*/, (/** @type {?} */ (whenDoneIsCalledPromise))];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngxs-store-internals-testing.js","sources":["ng://@ngxs/store/internals/testing/helpers/ngxs-test.component.ts","ng://@ngxs/store/internals/testing/helpers/ngxs-test.module.ts","ng://@ngxs/store/internals/testing/ngxs.setup.ts","ng://@ngxs/store/internals/testing/fresh-platform.ts","ng://@ngxs/store/internals/testing/skip-console-logging.ts"],"sourcesContent":["import { AfterViewInit, Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n template: ''\n})\nexport class NgxsTestComponent implements OnInit, AfterViewInit {\n public ngOnInit(): void {}\n public ngAfterViewInit(): void {}\n}\n","import { ApplicationRef, NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\n\nimport { NgxsTestComponent } from './ngxs-test.component';\n\n@NgModule({\n imports: [BrowserModule],\n declarations: [NgxsTestComponent],\n entryComponents: [NgxsTestComponent]\n})\nexport class NgxsTestModule {\n public static ngDoBootstrap(app: ApplicationRef): void {\n app.bootstrap(NgxsTestComponent);\n }\n}\n","import { ApplicationRef } from '@angular/core';\nimport { TestBed, TestBedStatic } from '@angular/core/testing';\nimport { DOCUMENT } from '@angular/common';\nimport { ɵBrowserDomAdapter as BrowserDomAdapter } from '@angular/platform-browser';\nimport {\n BrowserDynamicTestingModule,\n platformBrowserDynamicTesting\n} from '@angular/platform-browser-dynamic/testing';\nimport { NgxsModule, Store } from '@ngxs/store';\n\nimport { NgxsTestModule } from './helpers/ngxs-test.module';\nimport { NgxsOptionsTesting, NgxsTesting } from './symbol';\n\nexport class NgxsTestBed {\n public static configureTestingStates(options: NgxsOptionsTesting): NgxsTesting {\n this.resetTestBed();\n\n if (options.before) {\n options.before();\n }\n\n TestBed.configureTestingModule({\n imports: [\n NgxsTestModule,\n NgxsModule.forRoot(options.states || [], options.ngxsOptions || {}),\n ...(options.imports || [])\n ]\n }).compileComponents();\n\n NgxsTestBed.ngxsBootstrap();\n\n return {\n get store(): Store {\n return TestBed.inject(Store);\n },\n get getTestBed(): TestBedStatic {\n return TestBed;\n }\n };\n }\n\n private static ngxsBootstrap(): void {\n NgxsTestBed.createRootNode();\n NgxsTestModule.ngDoBootstrap(TestBed.inject(ApplicationRef));\n }\n\n private static resetTestBed(): void {\n TestBed.resetTestEnvironment();\n TestBed.initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());\n }\n\n private static createRootNode(selector = 'app-root'): void {\n const document = TestBed.inject(DOCUMENT);\n const adapter = new BrowserDomAdapter();\n const root = adapter.createElement(selector);\n document.body.appendChild(root);\n }\n}\n","import { TestBed } from '@angular/core/testing';\nimport { DOCUMENT } from '@angular/common';\nimport { ɵgetDOM as getDOM } from '@angular/platform-browser';\nimport { destroyPlatform, createPlatform } from '@angular/core';\n\nfunction createRootElement() {\n const document = TestBed.inject(DOCUMENT);\n const root = getDOM().createElement('app-root', document);\n document.body.appendChild(root);\n}\n\nfunction removeRootElement() {\n const root: Element = document.getElementsByTagName('app-root').item(0)!;\n try {\n document.body.removeChild(root);\n } catch {}\n}\n\nfunction destroyPlatformBeforeBootstrappingTheNewOne() {\n destroyPlatform();\n createRootElement();\n}\n\n// As we create our custom platform via `bootstrapModule`\n// we have to destroy it after assetions and revert\n// the previous one\nfunction resetPlatformAfterBootstrapping() {\n removeRootElement();\n destroyPlatform();\n createPlatform(TestBed);\n}\n\nexport function freshPlatform(fn: (done?: VoidFunction) => Promise<void>) {\n let
|
|
1
|
+
{"version":3,"file":"ngxs-store-internals-testing.js","sources":["ng://@ngxs/store/internals/testing/helpers/ngxs-test.component.ts","ng://@ngxs/store/internals/testing/helpers/ngxs-test.module.ts","ng://@ngxs/store/internals/testing/ngxs.setup.ts","ng://@ngxs/store/internals/testing/fresh-platform.ts","ng://@ngxs/store/internals/testing/skip-console-logging.ts"],"sourcesContent":["import { AfterViewInit, Component, OnInit } from '@angular/core';\n\n@Component({\n selector: 'app-root',\n template: ''\n})\nexport class NgxsTestComponent implements OnInit, AfterViewInit {\n public ngOnInit(): void {}\n public ngAfterViewInit(): void {}\n}\n","import { ApplicationRef, NgModule } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\n\nimport { NgxsTestComponent } from './ngxs-test.component';\n\n@NgModule({\n imports: [BrowserModule],\n declarations: [NgxsTestComponent],\n entryComponents: [NgxsTestComponent]\n})\nexport class NgxsTestModule {\n public static ngDoBootstrap(app: ApplicationRef): void {\n app.bootstrap(NgxsTestComponent);\n }\n}\n","import { ApplicationRef } from '@angular/core';\nimport { TestBed, TestBedStatic } from '@angular/core/testing';\nimport { DOCUMENT } from '@angular/common';\nimport { ɵBrowserDomAdapter as BrowserDomAdapter } from '@angular/platform-browser';\nimport {\n BrowserDynamicTestingModule,\n platformBrowserDynamicTesting\n} from '@angular/platform-browser-dynamic/testing';\nimport { NgxsModule, Store } from '@ngxs/store';\n\nimport { NgxsTestModule } from './helpers/ngxs-test.module';\nimport { NgxsOptionsTesting, NgxsTesting } from './symbol';\n\nexport class NgxsTestBed {\n public static configureTestingStates(options: NgxsOptionsTesting): NgxsTesting {\n this.resetTestBed();\n\n if (options.before) {\n options.before();\n }\n\n TestBed.configureTestingModule({\n imports: [\n NgxsTestModule,\n NgxsModule.forRoot(options.states || [], options.ngxsOptions || {}),\n ...(options.imports || [])\n ]\n }).compileComponents();\n\n NgxsTestBed.ngxsBootstrap();\n\n return {\n get store(): Store {\n return TestBed.inject(Store);\n },\n get getTestBed(): TestBedStatic {\n return TestBed;\n }\n };\n }\n\n private static ngxsBootstrap(): void {\n NgxsTestBed.createRootNode();\n NgxsTestModule.ngDoBootstrap(TestBed.inject(ApplicationRef));\n }\n\n private static resetTestBed(): void {\n TestBed.resetTestEnvironment();\n TestBed.initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting());\n }\n\n private static createRootNode(selector = 'app-root'): void {\n const document = TestBed.inject(DOCUMENT);\n const adapter = new BrowserDomAdapter();\n const root = adapter.createElement(selector);\n document.body.appendChild(root);\n }\n}\n","import { TestBed } from '@angular/core/testing';\nimport { DOCUMENT } from '@angular/common';\nimport { ɵgetDOM as getDOM } from '@angular/platform-browser';\nimport { VERSION, destroyPlatform, createPlatform } from '@angular/core';\n\nfunction createRootElement() {\n const document = TestBed.inject(DOCUMENT);\n const root = getDOM().createElement('app-root', document);\n document.body.appendChild(root);\n}\n\nfunction removeRootElement() {\n const root: Element = document.getElementsByTagName('app-root').item(0)!;\n try {\n document.body.removeChild(root);\n } catch {}\n}\n\nfunction destroyPlatformBeforeBootstrappingTheNewOne() {\n destroyPlatform();\n createRootElement();\n}\n\n// As we create our custom platform via `bootstrapModule`\n// we have to destroy it after assetions and revert\n// the previous one\nfunction resetPlatformAfterBootstrapping() {\n removeRootElement();\n destroyPlatform();\n const version = +VERSION.major;\n // https://github.com/angular/angular/commit/e250db4f261741b04ee4cbad4dec41a8908a12aa\n if (version < 14) {\n createPlatform(TestBed);\n }\n}\n\nexport function freshPlatform(fn: (done?: VoidFunction) => Promise<void>) {\n let resolve: VoidFunction | null = null;\n let reject: ((error: Error) => void) | null = null;\n let whenDoneIsCalledPromise: Promise<void> | null = null;\n\n const hasDoneArgument = fn.length === 1;\n\n if (hasDoneArgument) {\n whenDoneIsCalledPromise = new Promise<void>((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n });\n }\n\n return async function testWithAFreshPlatform() {\n try {\n destroyPlatformBeforeBootstrappingTheNewOne();\n\n if (hasDoneArgument) {\n await fn((error?: Error) => {\n if (error) {\n reject!(error);\n } else {\n resolve!();\n }\n });\n await whenDoneIsCalledPromise!;\n } else {\n await fn();\n }\n } finally {\n resetPlatformAfterBootstrapping();\n }\n };\n}\n","/// <reference types=\"jest\" />\n\nexport function skipConsoleLogging<T extends (...args: any[]) => any>(fn: T): ReturnType<T> {\n const consoleSpies = [\n jest.spyOn(console, 'log').mockImplementation(() => {}),\n jest.spyOn(console, 'warn').mockImplementation(() => {}),\n jest.spyOn(console, 'error').mockImplementation(() => {}),\n jest.spyOn(console, 'info').mockImplementation(() => {})\n ];\n function restoreSpies() {\n consoleSpies.forEach(spy => spy.mockRestore());\n }\n let restoreSpyAsync = false;\n try {\n const returnValue = fn();\n if (returnValue instanceof Promise) {\n restoreSpyAsync = true;\n return returnValue.finally(() => restoreSpies()) as ReturnType<T>;\n }\n return returnValue;\n } finally {\n if (!restoreSpyAsync) {\n restoreSpies();\n }\n }\n}\n"],"names":["BrowserDomAdapter","getDOM"],"mappings":";;;;;;;;;;;;AAAA,AAEA;IAAA;KAOC;;;;IAFQ,oCAAQ;;;IAAf,eAA0B;;;;IACnB,2CAAe;;;IAAtB,eAAiC;;gBANlC,SAAS,SAAC;oBACT,QAAQ,EAAE,UAAU;oBACpB,QAAQ,EAAE,EAAE;iBACb;;IAID,wBAAC;CAPD,IAOC;;;;;;ACTD,AAKA;IAAA;KASC;;;;;IAHe,4BAAa;;;;IAA3B,UAA4B,GAAmB;QAC7C,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;KAClC;;gBARF,QAAQ,SAAC;oBACR,OAAO,EAAE,CAAC,aAAa,CAAC;oBACxB,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,eAAe,EAAE,CAAC,iBAAiB,CAAC;iBACrC;;IAKD,qBAAC;CATD,IASC;;;;;;;ICDD;KA4CC;;;;;IA3Ce,kCAAsB;;;;IAApC,UAAqC,OAA2B;QAC9D,IAAI,CAAC,YAAY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
1174
1174
|
*
|
|
1175
1175
|
* This will grab actions that have just been dispatched as well as actions that have completed
|
|
1176
|
+
* @template T
|
|
1176
1177
|
* @param {...?} allowedTypes
|
|
1177
1178
|
* @return {?}
|
|
1178
1179
|
*/
|
|
@@ -1187,6 +1188,7 @@ function ofAction() {
|
|
|
1187
1188
|
* RxJS operator for selecting out specific actions.
|
|
1188
1189
|
*
|
|
1189
1190
|
* This will ONLY grab actions that have just been dispatched
|
|
1191
|
+
* @template T
|
|
1190
1192
|
* @param {...?} allowedTypes
|
|
1191
1193
|
* @return {?}
|
|
1192
1194
|
*/
|
|
@@ -1201,6 +1203,7 @@ function ofActionDispatched() {
|
|
|
1201
1203
|
* RxJS operator for selecting out specific actions.
|
|
1202
1204
|
*
|
|
1203
1205
|
* This will ONLY grab actions that have just been successfully completed
|
|
1206
|
+
* @template T
|
|
1204
1207
|
* @param {...?} allowedTypes
|
|
1205
1208
|
* @return {?}
|
|
1206
1209
|
*/
|
|
@@ -1215,6 +1218,7 @@ function ofActionSuccessful() {
|
|
|
1215
1218
|
* RxJS operator for selecting out specific actions.
|
|
1216
1219
|
*
|
|
1217
1220
|
* This will ONLY grab actions that have just been canceled
|
|
1221
|
+
* @template T
|
|
1218
1222
|
* @param {...?} allowedTypes
|
|
1219
1223
|
* @return {?}
|
|
1220
1224
|
*/
|
|
@@ -1229,6 +1233,7 @@ function ofActionCanceled() {
|
|
|
1229
1233
|
* RxJS operator for selecting out specific actions.
|
|
1230
1234
|
*
|
|
1231
1235
|
* This will ONLY grab actions that have just been completed
|
|
1236
|
+
* @template T
|
|
1232
1237
|
* @param {...?} allowedTypes
|
|
1233
1238
|
* @return {?}
|
|
1234
1239
|
*/
|
|
@@ -1249,6 +1254,7 @@ function ofActionCompleted() {
|
|
|
1249
1254
|
* RxJS operator for selecting out specific actions.
|
|
1250
1255
|
*
|
|
1251
1256
|
* This will ONLY grab actions that have just thrown an error
|
|
1257
|
+
* @template T
|
|
1252
1258
|
* @param {...?} allowedTypes
|
|
1253
1259
|
* @return {?}
|
|
1254
1260
|
*/
|