@angular-devkit/schematics 19.0.0-next.8 → 19.0.0-rc.0
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/LICENSE +5 -5
- package/package.json +3 -3
- package/src/rules/base.js +9 -2
- package/src/sink/host.d.ts +2 -2
- package/src/tree/entry.d.ts +2 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
9
9
|
copies of the Software, and to permit persons to whom the Software is
|
|
10
10
|
furnished to do so, subject to the following conditions:
|
|
11
11
|
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
copies or substantial portions of the Software.
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
15
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
SOFTWARE.
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-devkit/schematics",
|
|
3
|
-
"version": "19.0.0-
|
|
3
|
+
"version": "19.0.0-rc.0",
|
|
4
4
|
"description": "Angular Schematics - Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"tooling"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@angular-devkit/core": "19.0.0-
|
|
21
|
+
"@angular-devkit/core": "19.0.0-rc.0",
|
|
22
22
|
"jsonc-parser": "3.3.1",
|
|
23
|
-
"magic-string": "0.30.
|
|
23
|
+
"magic-string": "0.30.12",
|
|
24
24
|
"ora": "5.4.1",
|
|
25
25
|
"rxjs": "7.8.1"
|
|
26
26
|
},
|
package/src/rules/base.js
CHANGED
|
@@ -46,8 +46,15 @@ function empty() {
|
|
|
46
46
|
function chain(rules) {
|
|
47
47
|
return async (initialTree, context) => {
|
|
48
48
|
let intermediateTree;
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
if (Symbol.asyncIterator in rules) {
|
|
50
|
+
for await (const rule of rules) {
|
|
51
|
+
intermediateTree = (0, call_1.callRule)(rule, intermediateTree ?? initialTree, context);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
for (const rule of rules) {
|
|
56
|
+
intermediateTree = (0, call_1.callRule)(rule, intermediateTree ?? initialTree, context);
|
|
57
|
+
}
|
|
51
58
|
}
|
|
52
59
|
return () => intermediateTree;
|
|
53
60
|
};
|
package/src/sink/host.d.ts
CHANGED
|
@@ -14,8 +14,8 @@ export declare class HostSink extends SimpleSinkBase {
|
|
|
14
14
|
protected _force: boolean;
|
|
15
15
|
protected _filesToDelete: Set<Path>;
|
|
16
16
|
protected _filesToRename: Set<[Path, Path]>;
|
|
17
|
-
protected _filesToCreate: Map<Path, Buffer
|
|
18
|
-
protected _filesToUpdate: Map<Path, Buffer
|
|
17
|
+
protected _filesToCreate: Map<Path, Buffer<ArrayBufferLike>>;
|
|
18
|
+
protected _filesToUpdate: Map<Path, Buffer<ArrayBufferLike>>;
|
|
19
19
|
constructor(_host: virtualFs.Host, _force?: boolean);
|
|
20
20
|
protected _validateCreateAction(action: CreateFileAction): Observable<void>;
|
|
21
21
|
protected _validateFileExists(p: Path): Observable<boolean>;
|
package/src/tree/entry.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class SimpleFileEntry implements FileEntry {
|
|
|
12
12
|
private _content;
|
|
13
13
|
constructor(_path: Path, _content: Buffer);
|
|
14
14
|
get path(): Path;
|
|
15
|
-
get content(): Buffer
|
|
15
|
+
get content(): Buffer<ArrayBufferLike>;
|
|
16
16
|
}
|
|
17
17
|
export declare class LazyFileEntry implements FileEntry {
|
|
18
18
|
private _path;
|
|
@@ -20,5 +20,5 @@ export declare class LazyFileEntry implements FileEntry {
|
|
|
20
20
|
private _content;
|
|
21
21
|
constructor(_path: Path, _load: (path?: Path) => Buffer);
|
|
22
22
|
get path(): Path;
|
|
23
|
-
get content(): Buffer
|
|
23
|
+
get content(): Buffer<ArrayBufferLike>;
|
|
24
24
|
}
|