@angular-devkit/core 13.2.2 → 14.0.0-next.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/node/index.d.ts CHANGED
@@ -6,7 +6,6 @@
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
8
  import * as experimental from './experimental/jobs/job-registry';
9
- import * as fs from './fs';
10
9
  export * from './cli-logger';
11
10
  export * from './host';
12
- export { experimental, fs };
11
+ export { experimental };
package/node/index.js CHANGED
@@ -29,10 +29,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
29
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.fs = exports.experimental = void 0;
32
+ exports.experimental = void 0;
33
33
  const experimental = __importStar(require("./experimental/jobs/job-registry"));
34
34
  exports.experimental = experimental;
35
- const fs = __importStar(require("./fs"));
36
- exports.fs = fs;
37
35
  __exportStar(require("./cli-logger"), exports);
38
36
  __exportStar(require("./host"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/core",
3
- "version": "13.2.2",
3
+ "version": "14.0.0-next.0",
4
4
  "description": "Angular DevKit - Core Utility Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -7,7 +7,6 @@
7
7
  */
8
8
  import * as tags from './literals';
9
9
  import * as strings from './strings';
10
- export * from './array';
11
10
  export * from './object';
12
11
  export * from './template';
13
12
  export * from './partially-ordered-set';
@@ -34,7 +34,6 @@ const tags = __importStar(require("./literals"));
34
34
  exports.tags = tags;
35
35
  const strings = __importStar(require("./strings"));
36
36
  exports.strings = strings;
37
- __exportStar(require("./array"), exports);
38
37
  __exportStar(require("./object"), exports);
39
38
  __exportStar(require("./template"), exports);
40
39
  __exportStar(require("./partially-ordered-set"), exports);
@@ -5,10 +5,4 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.io/license
7
7
  */
8
- /** @deprecated Since v12.0, unused by the Angular tooling */
9
- export declare function mapObject<T, V>(obj: {
10
- [k: string]: T;
11
- }, mapper: (k: string, v: T) => V): {
12
- [k: string]: V;
13
- };
14
8
  export declare function deepCopy<T>(value: T): T;
@@ -7,15 +7,7 @@
7
7
  * found in the LICENSE file at https://angular.io/license
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.deepCopy = exports.mapObject = void 0;
11
- /** @deprecated Since v12.0, unused by the Angular tooling */
12
- function mapObject(obj, mapper) {
13
- return Object.keys(obj).reduce((acc, k) => {
14
- acc[k] = mapper(k, obj[k]);
15
- return acc;
16
- }, {});
17
- }
18
- exports.mapObject = mapObject;
10
+ exports.deepCopy = void 0;
19
11
  const copySymbol = Symbol();
20
12
  function deepCopy(value) {
21
13
  if (Array.isArray(value)) {
package/node/fs.d.ts DELETED
@@ -1,11 +0,0 @@
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
- /** @deprecated Since v11.0, unused by the Angular tooling */
9
- export declare function isFile(filePath: string): boolean;
10
- /** @deprecated Since v11.0, unused by the Angular tooling */
11
- export declare function isDirectory(filePath: string): boolean;
package/node/fs.js DELETED
@@ -1,41 +0,0 @@
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
- exports.isDirectory = exports.isFile = void 0;
11
- const fs_1 = require("fs");
12
- /** @deprecated Since v11.0, unused by the Angular tooling */
13
- function isFile(filePath) {
14
- let stat;
15
- try {
16
- stat = (0, fs_1.statSync)(filePath);
17
- }
18
- catch (e) {
19
- if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) {
20
- return false;
21
- }
22
- throw e;
23
- }
24
- return stat.isFile() || stat.isFIFO();
25
- }
26
- exports.isFile = isFile;
27
- /** @deprecated Since v11.0, unused by the Angular tooling */
28
- function isDirectory(filePath) {
29
- let stat;
30
- try {
31
- stat = (0, fs_1.statSync)(filePath);
32
- }
33
- catch (e) {
34
- if (e && (e.code === 'ENOENT' || e.code === 'ENOTDIR')) {
35
- return false;
36
- }
37
- throw e;
38
- }
39
- return stat.isDirectory();
40
- }
41
- exports.isDirectory = isDirectory;
@@ -1,9 +0,0 @@
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
- /** @deprecated Since v12.0, unused by the Angular tooling */
9
- export declare function clean<T>(array: Array<T | undefined>): Array<T>;
@@ -1,15 +0,0 @@
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
- exports.clean = void 0;
11
- /** @deprecated Since v12.0, unused by the Angular tooling */
12
- function clean(array) {
13
- return array.filter((x) => x !== undefined);
14
- }
15
- exports.clean = clean;