@angular-devkit/build-angular 0.1100.1 → 0.1100.2
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
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/build-angular",
|
|
3
|
-
"version": "0.1100.
|
|
3
|
+
"version": "0.1100.2",
|
|
4
4
|
"description": "Angular Webpack Build Facade",
|
|
5
5
|
"experimental": true,
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"typings": "src/index.d.ts",
|
|
8
8
|
"builders": "builders.json",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@angular-devkit/architect": "0.1100.
|
|
11
|
-
"@angular-devkit/build-optimizer": "0.1100.
|
|
12
|
-
"@angular-devkit/build-webpack": "0.1100.
|
|
13
|
-
"@angular-devkit/core": "11.0.
|
|
10
|
+
"@angular-devkit/architect": "0.1100.2",
|
|
11
|
+
"@angular-devkit/build-optimizer": "0.1100.2",
|
|
12
|
+
"@angular-devkit/build-webpack": "0.1100.2",
|
|
13
|
+
"@angular-devkit/core": "11.0.2",
|
|
14
14
|
"@babel/core": "7.12.3",
|
|
15
15
|
"@babel/generator": "7.12.1",
|
|
16
16
|
"@babel/plugin-transform-runtime": "7.12.1",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@babel/runtime": "7.12.1",
|
|
19
19
|
"@babel/template": "7.10.4",
|
|
20
20
|
"@jsdevtools/coverage-istanbul-loader": "3.0.5",
|
|
21
|
-
"@ngtools/webpack": "11.0.
|
|
21
|
+
"@ngtools/webpack": "11.0.2",
|
|
22
22
|
"ansi-colors": "4.1.1",
|
|
23
23
|
"autoprefixer": "9.8.6",
|
|
24
24
|
"babel-loader": "8.1.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"circular-dependency-plugin": "5.2.0",
|
|
29
29
|
"copy-webpack-plugin": "6.2.1",
|
|
30
30
|
"core-js": "3.6.5",
|
|
31
|
-
"css-loader": "
|
|
31
|
+
"css-loader": "4.3.0",
|
|
32
32
|
"cssnano": "4.1.10",
|
|
33
33
|
"file-loader": "6.1.1",
|
|
34
34
|
"find-cache-dir": "3.3.1",
|
|
@@ -103,11 +103,6 @@
|
|
|
103
103
|
"optional": true
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
"ng-update": {
|
|
107
|
-
"packageGroup": {
|
|
108
|
-
"codelyzer": "^6.0.0"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
106
|
"keywords": [
|
|
112
107
|
"angular",
|
|
113
108
|
"Angular CLI",
|
package/src/browser/schema.json
CHANGED
|
@@ -429,11 +429,11 @@
|
|
|
429
429
|
"properties": {
|
|
430
430
|
"src": {
|
|
431
431
|
"type": "string",
|
|
432
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
432
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
433
433
|
},
|
|
434
434
|
"replaceWith": {
|
|
435
435
|
"type": "string",
|
|
436
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
436
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
437
437
|
}
|
|
438
438
|
},
|
|
439
439
|
"additionalProperties": false,
|
|
@@ -447,11 +447,11 @@
|
|
|
447
447
|
"properties": {
|
|
448
448
|
"replace": {
|
|
449
449
|
"type": "string",
|
|
450
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
450
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
451
451
|
},
|
|
452
452
|
"with": {
|
|
453
453
|
"type": "string",
|
|
454
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
454
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
455
455
|
}
|
|
456
456
|
},
|
|
457
457
|
"additionalProperties": false,
|
package/src/server/schema.json
CHANGED
|
@@ -260,11 +260,11 @@
|
|
|
260
260
|
"properties": {
|
|
261
261
|
"src": {
|
|
262
262
|
"type": "string",
|
|
263
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
263
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
264
264
|
},
|
|
265
265
|
"replaceWith": {
|
|
266
266
|
"type": "string",
|
|
267
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
267
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
268
268
|
}
|
|
269
269
|
},
|
|
270
270
|
"additionalProperties": false,
|
|
@@ -278,11 +278,11 @@
|
|
|
278
278
|
"properties": {
|
|
279
279
|
"replace": {
|
|
280
280
|
"type": "string",
|
|
281
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
281
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
282
282
|
},
|
|
283
283
|
"with": {
|
|
284
284
|
"type": "string",
|
|
285
|
-
"pattern": "\\.([cm]?j|t)sx
|
|
285
|
+
"pattern": "\\.(([cm]?j|t)sx?|json)$"
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
"additionalProperties": false,
|
|
@@ -30,6 +30,9 @@ function getDevServerConfig(wco) {
|
|
|
30
30
|
const parsedHost = url.parse(publicHost);
|
|
31
31
|
publicHost = parsedHost.host;
|
|
32
32
|
}
|
|
33
|
+
else {
|
|
34
|
+
publicHost = '0.0.0.0:0';
|
|
35
|
+
}
|
|
33
36
|
if (!watch) {
|
|
34
37
|
// There's no option to turn off file watching in webpack-dev-server, but
|
|
35
38
|
// we can override the file watcher instead.
|
|
@@ -34,7 +34,8 @@ function default_1(mod) {
|
|
|
34
34
|
if (!appRef) {
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
// Inputs that are hidden should be ignored
|
|
38
|
+
const oldInputs = document.querySelectorAll('input:not([type="hidden"]), textarea');
|
|
38
39
|
const oldOptions = document.querySelectorAll('option');
|
|
39
40
|
// Create new application
|
|
40
41
|
appRef.components
|
|
@@ -115,8 +116,8 @@ function dispatchEvents(element) {
|
|
|
115
116
|
element.dispatchEvent(new KeyboardEvent('keyup', { key: 'Enter' }));
|
|
116
117
|
}
|
|
117
118
|
function restoreFormValues(oldInputs, oldOptions) {
|
|
118
|
-
// Restore input
|
|
119
|
-
const newInputs = document.querySelectorAll('input, textarea');
|
|
119
|
+
// Restore input that are not hidden
|
|
120
|
+
const newInputs = document.querySelectorAll('input:not([type="hidden"]), textarea');
|
|
120
121
|
if (newInputs.length && newInputs.length === oldInputs.length) {
|
|
121
122
|
console.log('[NG HMR] Restoring input/textarea values.');
|
|
122
123
|
for (let index = 0; index < newInputs.length; index++) {
|