@schematics/angular 12.2.7 → 12.2.11
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/package.json +4 -4
- package/universal/index.js +10 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematics/angular",
|
|
3
|
-
"version": "12.2.
|
|
3
|
+
"version": "12.2.11",
|
|
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": "12.2.
|
|
19
|
-
"@angular-devkit/schematics": "12.2.
|
|
18
|
+
"@angular-devkit/core": "12.2.11",
|
|
19
|
+
"@angular-devkit/schematics": "12.2.11",
|
|
20
20
|
"jsonc-parser": "3.0.0"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": "^12.14.1 || >=14.0.0",
|
|
28
|
-
"npm": "^6.11.0 || ^7.5.6",
|
|
28
|
+
"npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
|
|
29
29
|
"yarn": ">= 1.13.0"
|
|
30
30
|
},
|
|
31
31
|
"author": "Angular Authors",
|
package/universal/index.js
CHANGED
|
@@ -130,9 +130,16 @@ function wrapBootstrapCall(mainFile) {
|
|
|
130
130
|
}
|
|
131
131
|
// indent contents
|
|
132
132
|
const triviaWidth = bootstrapCall.getLeadingTriviaWidth();
|
|
133
|
-
const beforeText = `
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
const beforeText = `function bootstrap() {\n` + ' '.repeat(triviaWidth > 2 ? triviaWidth + 1 : triviaWidth);
|
|
134
|
+
const afterText = `\n${triviaWidth > 2 ? ' '.repeat(triviaWidth - 1) : ''}};\n` +
|
|
135
|
+
`
|
|
136
|
+
|
|
137
|
+
if (document.readyState === 'complete') {
|
|
138
|
+
bootstrap();
|
|
139
|
+
} else {
|
|
140
|
+
document.addEventListener('DOMContentLoaded', bootstrap);
|
|
141
|
+
}
|
|
142
|
+
`;
|
|
136
143
|
// in some cases we need to cater for a trailing semicolon such as;
|
|
137
144
|
// bootstrap().catch(err => console.log(err));
|
|
138
145
|
const lastToken = bootstrapCall.parent.getLastToken();
|