@angular-devkit/schematics 20.2.0-next.0 → 20.2.0-next.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/schematics",
3
- "version": "20.2.0-next.0",
3
+ "version": "20.2.0-next.2",
4
4
  "description": "Angular Schematics - Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "tooling"
19
19
  ],
20
20
  "dependencies": {
21
- "@angular-devkit/core": "20.2.0-next.0",
21
+ "@angular-devkit/core": "20.2.0-next.2",
22
22
  "jsonc-parser": "3.3.1",
23
23
  "magic-string": "0.30.17",
24
24
  "ora": "8.2.0",
@@ -20,12 +20,12 @@ export interface DryRunDeleteEvent {
20
20
  export interface DryRunCreateEvent {
21
21
  kind: 'create';
22
22
  path: string;
23
- content: Buffer;
23
+ content: ArrayBufferLike;
24
24
  }
25
25
  export interface DryRunUpdateEvent {
26
26
  kind: 'update';
27
27
  path: string;
28
- content: Buffer;
28
+ content: ArrayBufferLike;
29
29
  }
30
30
  export interface DryRunRenameEvent {
31
31
  kind: 'rename';
@@ -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<ArrayBufferLike>>;
18
- protected _filesToUpdate: Map<Path, Buffer<ArrayBufferLike>>;
17
+ protected _filesToCreate: Map<Path, ArrayBufferLike>;
18
+ protected _filesToUpdate: Map<Path, 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/sink/host.js CHANGED
@@ -43,10 +43,12 @@ class HostSink extends sink_1.SimpleSinkBase {
43
43
  return this._host.exists(p);
44
44
  }
45
45
  _overwriteFile(path, content) {
46
+ // TODO: `as unknown` was necessary during TS 5.9 update. Figure out a long-term solution.
46
47
  this._filesToUpdate.set(path, content);
47
48
  return rxjs_1.EMPTY;
48
49
  }
49
50
  _createFile(path, content) {
51
+ // TODO: `as unknown` was necessary during TS 5.9 update. Figure out a long-term solution.
50
52
  this._filesToCreate.set(path, content);
51
53
  return rxjs_1.EMPTY;
52
54
  }