@angular-devkit/core 13.2.0-rc.1 → 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 +1 -2
- package/node/index.js +1 -3
- package/package.json +1 -1
- package/src/json/schema/registry.js +0 -3
- package/src/json/schema/transforms.js +1 -0
- package/src/utils/index.d.ts +0 -1
- package/src/utils/index.js +0 -1
- package/src/utils/object.d.ts +0 -6
- package/src/utils/object.js +1 -9
- package/node/fs.d.ts +0 -11
- package/node/fs.js +0 -41
- package/src/utils/array.d.ts +0 -9
- package/src/utils/array.js +0 -15
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
|
|
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.
|
|
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
|
@@ -173,9 +173,6 @@ class CoreSchemaRegistry {
|
|
|
173
173
|
fullReference = id + fullReference;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
if (fullReference.startsWith('#')) {
|
|
177
|
-
fullReference = fullReference.slice(0, -1);
|
|
178
|
-
}
|
|
179
176
|
const resolvedSchema = this._ajv.getSchema(fullReference);
|
|
180
177
|
return {
|
|
181
178
|
context: resolvedSchema === null || resolvedSchema === void 0 ? void 0 : resolvedSchema.schemaEnv.validate,
|
|
@@ -14,6 +14,7 @@ function addUndefinedDefaults(value, _pointer, schema) {
|
|
|
14
14
|
if (typeof schema === 'boolean' || schema === undefined) {
|
|
15
15
|
return value;
|
|
16
16
|
}
|
|
17
|
+
value !== null && value !== void 0 ? value : (value = schema.default);
|
|
17
18
|
const types = (0, utility_1.getTypesOfSchema)(schema);
|
|
18
19
|
if (types.size === 0) {
|
|
19
20
|
return value;
|
package/src/utils/index.d.ts
CHANGED
package/src/utils/index.js
CHANGED
|
@@ -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);
|
package/src/utils/object.d.ts
CHANGED
|
@@ -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;
|
package/src/utils/object.js
CHANGED
|
@@ -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 =
|
|
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;
|
package/src/utils/array.d.ts
DELETED
|
@@ -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>;
|
package/src/utils/array.js
DELETED
|
@@ -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;
|