nx 18.1.0-canary.20240215-d5e1451 → 18.1.0-canary.20240216-27cf308
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 +12 -12
- package/src/command-line/migrate/command-object.js +2 -2
- package/src/command-line/migrate/migrate.js +4 -2
- package/src/core/graph/3rdpartylicenses.txt +0 -51
- package/src/core/graph/main.js +1 -1
- package/src/core/graph/polyfills.js +1 -1
- package/src/core/graph/runtime.js +1 -1
- package/src/core/graph/styles.js +1 -1
- package/src/utils/params.d.ts +2 -2
- package/src/utils/params.js +7 -3
@@ -1 +1 @@
|
|
1
|
-
(()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,e=[],o.O=(r,t,n,i)=>{if(!t){var l=1/0;for(f=0;f<e.length;f++){for(var[t,n,i]=e[f],a=!0,u=0;u<t.length;u++)(!1&i||l>=i)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(a=!1,i<l&&(l=i));if(a){e.splice(f--,1);var d=n();void 0!==d&&(r=d)}}return r}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,n,i]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={
|
1
|
+
(()=>{"use strict";var e,r={},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=r,e=[],o.O=(r,t,n,i)=>{if(!t){var l=1/0;for(f=0;f<e.length;f++){for(var[t,n,i]=e[f],a=!0,u=0;u<t.length;u++)(!1&i||l>=i)&&Object.keys(o.O).every((e=>o.O[e](t[u])))?t.splice(u--,1):(a=!1,i<l&&(l=i));if(a){e.splice(f--,1);var d=n();void 0!==d&&(r=d)}}return r}i=i||0;for(var f=e.length;f>0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[t,n,i]},o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};o.O.j=r=>0===e[r];var r=(r,t)=>{var n,i,[l,a,u]=t,d=0;if(l.some((r=>0!==e[r]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);if(u)var f=u(o)}for(r&&r(t);d<l.length;d++)i=l[d],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return o.O(f)},t=self.webpackChunk=self.webpackChunk||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})()})();
|
package/src/core/graph/styles.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[
|
1
|
+
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[532],{33767:()=>{}},s=>{var e;e=33767,s(s.s=e)}]);
|
package/src/utils/params.d.ts
CHANGED
@@ -29,7 +29,7 @@ type PropertyDescription = {
|
|
29
29
|
} | {
|
30
30
|
$source: 'workingDirectory';
|
31
31
|
};
|
32
|
-
additionalProperties?: boolean;
|
32
|
+
additionalProperties?: boolean | PropertyDescription;
|
33
33
|
const?: any;
|
34
34
|
'x-prompt'?: string | {
|
35
35
|
message: string;
|
@@ -62,7 +62,7 @@ export type Schema = {
|
|
62
62
|
oneOf?: Partial<Schema>[];
|
63
63
|
description?: string;
|
64
64
|
definitions?: Properties;
|
65
|
-
additionalProperties?: boolean;
|
65
|
+
additionalProperties?: boolean | PropertyDescription;
|
66
66
|
examples?: {
|
67
67
|
command: string;
|
68
68
|
description?: string;
|
package/src/utils/params.js
CHANGED
@@ -188,7 +188,8 @@ function validateObject(opts, schema, definitions) {
|
|
188
188
|
throw new SchemaError(`Required property '${p}' is missing`);
|
189
189
|
}
|
190
190
|
});
|
191
|
-
if (schema.additionalProperties
|
191
|
+
if (schema.additionalProperties !== undefined &&
|
192
|
+
schema.additionalProperties !== true) {
|
192
193
|
Object.keys(opts).find((p) => {
|
193
194
|
if (Object.keys(schema.properties).indexOf(p) === -1 &&
|
194
195
|
(!schema.patternProperties ||
|
@@ -196,9 +197,12 @@ function validateObject(opts, schema, definitions) {
|
|
196
197
|
if (p === '_') {
|
197
198
|
throw new SchemaError(`Schema does not support positional arguments. Argument '${opts[p]}' found`);
|
198
199
|
}
|
199
|
-
else {
|
200
|
+
else if (schema.additionalProperties === false) {
|
200
201
|
throw new SchemaError(`'${p}' is not found in schema`);
|
201
202
|
}
|
203
|
+
else if (typeof schema.additionalProperties === 'object') {
|
204
|
+
validateProperty(p, opts[p], schema.additionalProperties, definitions);
|
205
|
+
}
|
202
206
|
}
|
203
207
|
});
|
204
208
|
}
|
@@ -408,7 +412,7 @@ function resolveDefinition(ref, definitions) {
|
|
408
412
|
return definitions[definition];
|
409
413
|
}
|
410
414
|
function applyVerbosity(options, schema, isVerbose) {
|
411
|
-
if ((schema.additionalProperties || 'verbose' in schema.properties) &&
|
415
|
+
if ((schema.additionalProperties === true || 'verbose' in schema.properties) &&
|
412
416
|
isVerbose) {
|
413
417
|
options['verbose'] = true;
|
414
418
|
}
|