@schematics/angular 14.0.0-next.4 → 14.0.0-next.7
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/app-shell/index.js +6 -2
- package/app-shell/schema.d.ts +3 -3
- package/app-shell/schema.json +3 -3
- package/application/index.js +1 -4
- package/application/schema.d.ts +1 -1
- package/application/schema.json +1 -1
- package/class/schema.json +1 -2
- package/collection.json +1 -4
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +0 -2
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +3 -3
- package/component/index.js +5 -1
- package/directive/index.js +5 -1
- package/e2e/e2e-long.md +1 -1
- package/e2e/index.js +6 -0
- package/e2e/schema.d.ts +1 -1
- package/e2e/schema.json +1 -1
- package/interface/schema.json +0 -1
- package/library/index.js +1 -4
- package/migrations/migration-collection.json +10 -0
- package/migrations/update-14/remove-default-project-option.d.ts +10 -0
- package/migrations/update-14/remove-default-project-option.js +17 -0
- package/migrations/update-14/replace-default-collection-option.d.ts +10 -0
- package/migrations/update-14/replace-default-collection-option.js +32 -0
- package/module/index.js +5 -1
- package/ng-new/index.js +1 -1
- package/package.json +4 -4
- package/pipe/index.js +5 -1
- package/service-worker/index.js +7 -3
- package/third_party/github.com/Microsoft/TypeScript/BUILD.bazel +7 -2
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +29 -16
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +4866 -3030
- package/universal/index.js +11 -2
- package/universal/schema.d.ts +1 -1
- package/universal/schema.json +1 -1
- package/utility/ast-utils.js +5 -1
- package/utility/latest-versions/package.json +4 -4
- package/utility/ng-ast-utils.js +6 -2
- package/utility/test/index.js +5 -1
- package/utility/workspace-models.d.ts +8 -6
- package/workspace/files/README.md.template +1 -1
- package/workspace/files/package.json.template +1 -2
package/app-shell/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -105,7 +109,7 @@ function validateProject(mainPath) {
|
|
|
105
109
|
const tmpl = getComponentTemplateInfo(host, componentPath);
|
|
106
110
|
const template = getComponentTemplate(host, componentPath, tmpl);
|
|
107
111
|
if (!routerOutletCheckRegex.test(template)) {
|
|
108
|
-
const errorMsg = `Prerequisite for
|
|
112
|
+
const errorMsg = `Prerequisite for application shell is to define a router-outlet in your root component.`;
|
|
109
113
|
context.logger.error(errorMsg);
|
|
110
114
|
throw new schematics_1.SchematicsException(errorMsg);
|
|
111
115
|
}
|
package/app-shell/schema.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generates an
|
|
2
|
+
* Generates an application shell for running a server-side version of an app.
|
|
3
3
|
*/
|
|
4
4
|
export interface Schema {
|
|
5
5
|
/**
|
|
@@ -7,7 +7,7 @@ export interface Schema {
|
|
|
7
7
|
*/
|
|
8
8
|
appDir?: string;
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The application ID to use in withServerTransition().
|
|
11
11
|
*/
|
|
12
12
|
appId?: string;
|
|
13
13
|
/**
|
|
@@ -27,7 +27,7 @@ export interface Schema {
|
|
|
27
27
|
*/
|
|
28
28
|
rootModuleFileName?: string;
|
|
29
29
|
/**
|
|
30
|
-
* Route path used to produce the
|
|
30
|
+
* Route path used to produce the application shell.
|
|
31
31
|
*/
|
|
32
32
|
route?: string;
|
|
33
33
|
}
|
package/app-shell/schema.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "SchematicsAngularAppShell",
|
|
4
4
|
"title": "Angular AppShell Options Schema",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"description": "Generates an
|
|
6
|
+
"description": "Generates an application shell for running a server-side version of an app.",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"long-description": "./app-shell-long.md",
|
|
9
9
|
"properties": {
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
},
|
|
17
17
|
"route": {
|
|
18
18
|
"type": "string",
|
|
19
|
-
"description": "Route path used to produce the
|
|
19
|
+
"description": "Route path used to produce the application shell.",
|
|
20
20
|
"default": "shell"
|
|
21
21
|
},
|
|
22
22
|
"appId": {
|
|
23
23
|
"type": "string",
|
|
24
24
|
"format": "html-selector",
|
|
25
|
-
"description": "The
|
|
25
|
+
"description": "The application ID to use in withServerTransition().",
|
|
26
26
|
"default": "serverApp"
|
|
27
27
|
},
|
|
28
28
|
"main": {
|
package/application/index.js
CHANGED
|
@@ -198,9 +198,6 @@ function addAppToWorkspaceFile(options, appDir, folderName) {
|
|
|
198
198
|
},
|
|
199
199
|
};
|
|
200
200
|
return (0, workspace_1.updateWorkspace)((workspace) => {
|
|
201
|
-
if (workspace.projects.size === 0) {
|
|
202
|
-
workspace.extensions.defaultProject = options.name;
|
|
203
|
-
}
|
|
204
201
|
workspace.projects.add({
|
|
205
202
|
name: options.name,
|
|
206
203
|
...project,
|
|
@@ -234,7 +231,7 @@ function default_1(options) {
|
|
|
234
231
|
const newProjectRoot = workspace.extensions.newProjectRoot || '';
|
|
235
232
|
const isRootApp = options.projectRoot !== undefined;
|
|
236
233
|
// If scoped project (i.e. "@foo/bar"), convert dir to "foo/bar".
|
|
237
|
-
let folderName = options.name.startsWith('@') ? options.name.
|
|
234
|
+
let folderName = options.name.startsWith('@') ? options.name.slice(1) : options.name;
|
|
238
235
|
if (/[A-Z]/.test(folderName)) {
|
|
239
236
|
folderName = core_1.strings.dasherize(folderName);
|
|
240
237
|
}
|
package/application/schema.d.ts
CHANGED
package/application/schema.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "SchematicsAngularApp",
|
|
4
4
|
"title": "Angular Application Options Schema",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"description": "Generates a new basic
|
|
6
|
+
"description": "Generates a new basic application definition in the \"projects\" subfolder of the workspace.",
|
|
7
7
|
"additionalProperties": false,
|
|
8
8
|
"properties": {
|
|
9
9
|
"projectRoot": {
|
package/class/schema.json
CHANGED
|
@@ -36,8 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"type": {
|
|
38
38
|
"type": "string",
|
|
39
|
-
"description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
|
|
40
|
-
"default": ""
|
|
39
|
+
"description": "Adds a developer-defined type to the filename, in the format \"name.type.ts\"."
|
|
41
40
|
}
|
|
42
41
|
},
|
|
43
42
|
"required": ["name"]
|
package/collection.json
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"hidden": true
|
|
14
14
|
},
|
|
15
15
|
"service-worker": {
|
|
16
|
-
"aliases": ["serviceWorker"],
|
|
17
16
|
"factory": "./service-worker",
|
|
18
17
|
"description": "Initializes a service worker setup.",
|
|
19
18
|
"schema": "./service-worker/schema.json"
|
|
@@ -102,9 +101,8 @@
|
|
|
102
101
|
"hidden": true
|
|
103
102
|
},
|
|
104
103
|
"app-shell": {
|
|
105
|
-
"aliases": ["appShell"],
|
|
106
104
|
"factory": "./app-shell",
|
|
107
|
-
"description": "Create an
|
|
105
|
+
"description": "Create an application shell.",
|
|
108
106
|
"schema": "./app-shell/schema.json"
|
|
109
107
|
},
|
|
110
108
|
"library": {
|
|
@@ -114,7 +112,6 @@
|
|
|
114
112
|
"description": "Generate a library project for Angular."
|
|
115
113
|
},
|
|
116
114
|
"web-worker": {
|
|
117
|
-
"aliases": ["webWorker"],
|
|
118
115
|
"factory": "./web-worker",
|
|
119
116
|
"schema": "./web-worker/schema.json",
|
|
120
117
|
"description": "Create a Web Worker."
|
|
@@ -11,9 +11,7 @@ describe('<%= classify(name) %><%= classify(type) %>', () => {
|
|
|
11
11
|
declarations: [ <%= classify(name) %><%= classify(type) %> ]
|
|
12
12
|
})
|
|
13
13
|
.compileComponents();
|
|
14
|
-
});
|
|
15
14
|
|
|
16
|
-
beforeEach(() => {
|
|
17
15
|
fixture = TestBed.createComponent(<%= classify(name) %><%= classify(type) %>);
|
|
18
16
|
component = fixture.componentInstance;
|
|
19
17
|
fixture.detectChanges();
|
package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template
CHANGED
|
@@ -6,15 +6,15 @@ import { Component, OnInit<% if(!!viewEncapsulation) { %>, ViewEncapsulation<% }
|
|
|
6
6
|
<p>
|
|
7
7
|
<%= dasherize(name) %> works!
|
|
8
8
|
</p>
|
|
9
|
-
|
|
10
|
-
templateUrl: './<%= dasherize(name) %><%= type ? '.' + dasherize(type): '' %>.html'
|
|
9
|
+
`<% } else { %>
|
|
10
|
+
templateUrl: './<%= dasherize(name) %><%= type ? '.' + dasherize(type): '' %>.html'<% } if(inlineStyle) { %>,
|
|
11
11
|
styles: [<% if(displayBlock){ %>
|
|
12
12
|
`
|
|
13
13
|
:host {
|
|
14
14
|
display: block;
|
|
15
15
|
}
|
|
16
16
|
`<% } %>
|
|
17
|
-
]<% } else if (style !== 'none') {
|
|
17
|
+
]<% } else if (style !== 'none') { %>,
|
|
18
18
|
styleUrls: ['./<%= dasherize(name) %><%= type ? '.' + dasherize(type): '' %>.<%= style %>']<% } %><% if(!!viewEncapsulation) { %>,
|
|
19
19
|
encapsulation: ViewEncapsulation.<%= viewEncapsulation %><% } if (changeDetection !== 'Default') { %>,
|
|
20
20
|
changeDetection: ChangeDetectionStrategy.<%= changeDetection %><% } %>
|
package/component/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/directive/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/e2e/e2e-long.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
The e2e tests are created in a separate
|
|
1
|
+
The e2e tests are created in a separate application in the `projects` folder of the workspace,
|
|
2
2
|
next to the project being tested.
|
package/e2e/index.js
CHANGED
|
@@ -11,6 +11,7 @@ const core_1 = require("@angular-devkit/core");
|
|
|
11
11
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
12
12
|
const dependencies_1 = require("../utility/dependencies");
|
|
13
13
|
const json_file_1 = require("../utility/json-file");
|
|
14
|
+
const latest_versions_1 = require("../utility/latest-versions");
|
|
14
15
|
const paths_1 = require("../utility/paths");
|
|
15
16
|
const workspace_1 = require("../utility/workspace");
|
|
16
17
|
const workspace_models_1 = require("../utility/workspace-models");
|
|
@@ -74,6 +75,11 @@ function default_1(options) {
|
|
|
74
75
|
name: 'ts-node',
|
|
75
76
|
version: '~9.1.1',
|
|
76
77
|
},
|
|
78
|
+
{
|
|
79
|
+
type: dependencies_1.NodeDependencyType.Dev,
|
|
80
|
+
name: '@types/node',
|
|
81
|
+
version: latest_versions_1.latestVersions['@types/node'],
|
|
82
|
+
},
|
|
77
83
|
].forEach((dep) => (0, dependencies_1.addPackageJsonDependency)(host, dep)),
|
|
78
84
|
addScriptsToPackageJson(),
|
|
79
85
|
]);
|
package/e2e/schema.d.ts
CHANGED
package/e2e/schema.json
CHANGED
package/interface/schema.json
CHANGED
package/library/index.js
CHANGED
|
@@ -61,9 +61,6 @@ function addDependenciesToPackageJson() {
|
|
|
61
61
|
}
|
|
62
62
|
function addLibToWorkspaceFile(options, projectRoot, projectName) {
|
|
63
63
|
return (0, workspace_1.updateWorkspace)((workspace) => {
|
|
64
|
-
if (workspace.projects.size === 0) {
|
|
65
|
-
workspace.extensions.defaultProject = projectName;
|
|
66
|
-
}
|
|
67
64
|
workspace.projects.add({
|
|
68
65
|
name: projectName,
|
|
69
66
|
root: projectRoot,
|
|
@@ -109,7 +106,7 @@ function default_1(options) {
|
|
|
109
106
|
}
|
|
110
107
|
const workspace = await (0, workspace_1.getWorkspace)(host);
|
|
111
108
|
const newProjectRoot = workspace.extensions.newProjectRoot || '';
|
|
112
|
-
let folderName = packageName.startsWith('@') ? packageName.
|
|
109
|
+
let folderName = packageName.startsWith('@') ? packageName.slice(1) : packageName;
|
|
113
110
|
if (/[A-Z]/.test(folderName)) {
|
|
114
111
|
folderName = core_1.strings.dasherize(folderName);
|
|
115
112
|
}
|
|
@@ -14,6 +14,16 @@
|
|
|
14
14
|
"version": "14.0.0",
|
|
15
15
|
"factory": "./update-14/remove-show-circular-dependencies-option",
|
|
16
16
|
"description": "Remove 'showCircularDependencies' option from browser and server builders."
|
|
17
|
+
},
|
|
18
|
+
"remove-default-project-option": {
|
|
19
|
+
"version": "14.0.0",
|
|
20
|
+
"factory": "./update-14/remove-default-project-option",
|
|
21
|
+
"description": "Remove 'defaultProject' option from workspace configuration. The project to use will be determined from the current working directory."
|
|
22
|
+
},
|
|
23
|
+
"replace-default-collection-option": {
|
|
24
|
+
"version": "14.0.0",
|
|
25
|
+
"factory": "./update-14/replace-default-collection-option",
|
|
26
|
+
"description": "Replace 'defaultCollection' option in workspace configuration with 'schematicCollections'."
|
|
17
27
|
}
|
|
18
28
|
}
|
|
19
29
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
9
|
+
/** Migration to remove 'defaultProject' option from angular.json. */
|
|
10
|
+
export default function (): Rule;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const workspace_1 = require("../../utility/workspace");
|
|
11
|
+
/** Migration to remove 'defaultProject' option from angular.json. */
|
|
12
|
+
function default_1() {
|
|
13
|
+
return (0, workspace_1.updateWorkspace)((workspace) => {
|
|
14
|
+
delete workspace.extensions['defaultProject'];
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright Google LLC All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
+
* found in the LICENSE file at https://angular.io/license
|
|
7
|
+
*/
|
|
8
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
9
|
+
/** Migration to replace 'defaultCollection' option in angular.json. */
|
|
10
|
+
export default function (): Rule;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright Google LLC All Rights Reserved.
|
|
5
|
+
*
|
|
6
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
7
|
+
* found in the LICENSE file at https://angular.io/license
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
const core_1 = require("@angular-devkit/core");
|
|
11
|
+
const workspace_1 = require("../../utility/workspace");
|
|
12
|
+
/** Migration to replace 'defaultCollection' option in angular.json. */
|
|
13
|
+
function default_1() {
|
|
14
|
+
return (0, workspace_1.updateWorkspace)((workspace) => {
|
|
15
|
+
// workspace level
|
|
16
|
+
replaceDefaultCollection(workspace.extensions['cli']);
|
|
17
|
+
// Project level
|
|
18
|
+
for (const project of workspace.projects.values()) {
|
|
19
|
+
replaceDefaultCollection(project.extensions['cli']);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
exports.default = default_1;
|
|
24
|
+
function replaceDefaultCollection(cliExtension) {
|
|
25
|
+
if (cliExtension && (0, core_1.isJsonObject)(cliExtension) && cliExtension['defaultCollection']) {
|
|
26
|
+
// If `schematicsCollection` defined `defaultCollection` is ignored hence no need to warn.
|
|
27
|
+
if (!cliExtension['schematicCollections']) {
|
|
28
|
+
cliExtension['schematicCollections'] = [cliExtension['defaultCollection']];
|
|
29
|
+
}
|
|
30
|
+
delete cliExtension['defaultCollection'];
|
|
31
|
+
}
|
|
32
|
+
}
|
package/module/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/ng-new/index.js
CHANGED
|
@@ -12,7 +12,7 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
12
12
|
function default_1(options) {
|
|
13
13
|
if (!options.directory) {
|
|
14
14
|
// If scoped project (i.e. "@foo/bar"), convert directory to "foo/bar".
|
|
15
|
-
options.directory = options.name.startsWith('@') ? options.name.
|
|
15
|
+
options.directory = options.name.startsWith('@') ? options.name.slice(1) : options.name;
|
|
16
16
|
}
|
|
17
17
|
const workspaceOptions = {
|
|
18
18
|
name: options.name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.7",
|
|
4
4
|
"description": "Schematics specific to Angular",
|
|
5
5
|
"homepage": "https://github.com/angular/angular-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
],
|
|
16
16
|
"schematics": "./collection.json",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@angular-devkit/core": "14.0.0-next.
|
|
19
|
-
"@angular-devkit/schematics": "14.0.0-next.
|
|
18
|
+
"@angular-devkit/core": "14.0.0-next.7",
|
|
19
|
+
"@angular-devkit/schematics": "14.0.0-next.7",
|
|
20
20
|
"jsonc-parser": "3.0.0"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "https://github.com/angular/angular-cli.git"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": "^
|
|
27
|
+
"node": "^14.15.0 || >=16.10.0",
|
|
28
28
|
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
29
29
|
"yarn": ">= 1.13.0"
|
|
30
30
|
},
|
package/pipe/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
package/service-worker/index.js
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
10
|
if (k2 === undefined) k2 = k;
|
|
11
|
-
Object.
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
12
16
|
}) : (function(o, m, k, k2) {
|
|
13
17
|
if (k2 === undefined) k2 = k;
|
|
14
18
|
o[k2] = m[k];
|
|
@@ -89,11 +93,11 @@ function updateAppModule(mainPath) {
|
|
|
89
93
|
host.commitUpdate(recorder);
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
|
-
// register SW in
|
|
96
|
+
// register SW in application module
|
|
93
97
|
const importText = core_1.tags.stripIndent `
|
|
94
98
|
ServiceWorkerModule.register('ngsw-worker.js', {
|
|
95
99
|
enabled: ${importModule}.production,
|
|
96
|
-
// Register the ServiceWorker as soon as the
|
|
100
|
+
// Register the ServiceWorker as soon as the application is stable
|
|
97
101
|
// or after 30 seconds (whichever comes first).
|
|
98
102
|
registrationStrategy: 'registerWhenStable:30000'
|
|
99
103
|
})
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
load("//tools:defaults.bzl", "ts_library")
|
|
2
2
|
|
|
3
|
-
# files fetched on
|
|
4
|
-
# https://github.com/microsoft/TypeScript/releases/tag/v4.
|
|
3
|
+
# files fetched on 2022-03-10 from
|
|
4
|
+
# https://github.com/microsoft/TypeScript/releases/tag/v4.6.2
|
|
5
|
+
|
|
6
|
+
# Commands to download:
|
|
7
|
+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.6.2/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
|
|
8
|
+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.6.2/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
|
|
9
|
+
|
|
5
10
|
licenses(["notice"]) # Apache 2.0
|
|
6
11
|
|
|
7
12
|
exports_files([
|