@angular/upgrade 13.1.0-next.0 → 13.1.0-next.1

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.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Angular v13.1.0-next.0
2
+ * @license Angular v13.1.0-next.1
3
3
  * (c) 2010-2021 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import * as i0 from '@angular/core';
8
- import { Version, Injector, ChangeDetectorRef, Testability, TestabilityRegistry, ApplicationRef, SimpleChange, NgZone, ComponentFactoryResolver, Directive, Inject, ElementRef, EventEmitter, Compiler, resolveForwardRef, NgModule, isDevMode } from '@angular/core';
8
+ import { Version, ɵNG_MOD_DEF, Injector, ChangeDetectorRef, Testability, TestabilityRegistry, ApplicationRef, SimpleChange, NgZone, ComponentFactoryResolver, Directive, Inject, ElementRef, EventEmitter, Compiler, resolveForwardRef, NgModule, isDevMode } from '@angular/core';
9
9
  import { __decorate, __param, __metadata } from 'tslib';
10
10
  import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
11
11
 
@@ -19,7 +19,7 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
19
19
  /**
20
20
  * @publicApi
21
21
  */
22
- const VERSION = new Version('13.1.0-next.0');
22
+ const VERSION = new Version('13.1.0-next.1');
23
23
 
24
24
  /**
25
25
  * @license
@@ -232,6 +232,10 @@ function getUpgradeAppType($injector) {
232
232
  function isFunction(value) {
233
233
  return typeof value === 'function';
234
234
  }
235
+ function isNgModuleType(value) {
236
+ // NgModule class should have the `ɵmod` static property attached by AOT or JIT compiler.
237
+ return isFunction(value) && !!value[ɵNG_MOD_DEF];
238
+ }
235
239
  function isParentNode(node) {
236
240
  return isFunction(node.querySelectorAll);
237
241
  }
@@ -1356,9 +1360,9 @@ class UpgradeNg1ComponentAdapter {
1356
1360
  this.destinationObj[this.propertyMap[name]] = value;
1357
1361
  }
1358
1362
  }
1359
- UpgradeNg1ComponentAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0-next.0", ngImport: i0, type: UpgradeNg1ComponentAdapter, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
1360
- UpgradeNg1ComponentAdapter.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0-next.0", type: UpgradeNg1ComponentAdapter, usesOnChanges: true, ngImport: i0 });
1361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.0", ngImport: i0, type: UpgradeNg1ComponentAdapter, decorators: [{
1363
+ UpgradeNg1ComponentAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0-next.1", ngImport: i0, type: UpgradeNg1ComponentAdapter, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
1364
+ UpgradeNg1ComponentAdapter.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0-next.1", type: UpgradeNg1ComponentAdapter, usesOnChanges: true, ngImport: i0 });
1365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0-next.1", ngImport: i0, type: UpgradeNg1ComponentAdapter, decorators: [{
1362
1366
  type: Directive
1363
1367
  }], ctorParameters: function () { return [{ type: UpgradeHelper }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }, { type: undefined }]; } });
1364
1368