@fluid-experimental/property-changeset 1.2.3-83900 → 2.0.0-internal.1.0.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/dist/changeset.d.ts +39 -45
- package/dist/changeset.d.ts.map +1 -1
- package/dist/changeset.js +39 -45
- package/dist/changeset.js.map +1 -1
- package/dist/changeset_operations/array.d.ts +3 -3
- package/dist/changeset_operations/array.d.ts.map +1 -1
- package/dist/changeset_operations/array.js +45 -47
- package/dist/changeset_operations/array.js.map +1 -1
- package/dist/changeset_operations/indexedCollection.d.ts +2 -2
- package/dist/changeset_operations/indexedCollection.js +2 -2
- package/dist/changeset_operations/indexedCollection.js.map +1 -1
- package/dist/helpers/typeidHelper.d.ts +9 -9
- package/dist/helpers/typeidHelper.js +9 -9
- package/dist/helpers/typeidHelper.js.map +1 -1
- package/dist/pathHelper.d.ts +4 -4
- package/dist/pathHelper.js +4 -4
- package/dist/pathHelper.js.map +1 -1
- package/dist/templateValidator.d.ts +6 -6
- package/dist/templateValidator.d.ts.map +1 -1
- package/dist/templateValidator.js +66 -58
- package/dist/templateValidator.js.map +1 -1
- package/dist/test/tsconfig.tsbuildinfo +1 -1
- package/dist/utils.d.ts +7 -7
- package/dist/utils.js +9 -9
- package/dist/utils.js.map +1 -1
- package/dist/validationResultBuilder.d.ts +4 -4
- package/dist/validationResultBuilder.js +4 -4
- package/dist/validationResultBuilder.js.map +1 -1
- package/lib/changeset.js +39 -45
- package/lib/changeset.js.map +1 -1
- package/lib/changeset_operations/array.js +45 -47
- package/lib/changeset_operations/array.js.map +1 -1
- package/lib/changeset_operations/indexedCollection.js +2 -2
- package/lib/changeset_operations/indexedCollection.js.map +1 -1
- package/lib/helpers/typeidHelper.js +9 -9
- package/lib/helpers/typeidHelper.js.map +1 -1
- package/lib/pathHelper.js +4 -4
- package/lib/pathHelper.js.map +1 -1
- package/lib/templateValidator.js +66 -58
- package/lib/templateValidator.js.map +1 -1
- package/lib/utils.js +9 -9
- package/lib/utils.js.map +1 -1
- package/lib/validationResultBuilder.js +4 -4
- package/lib/validationResultBuilder.js.map +1 -1
- package/package.json +3 -3
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export class ValidationResultBuilder {
|
|
11
11
|
/**
|
|
12
12
|
* Instantiates a ValidationResultBuilder
|
|
13
|
-
* @param in_typeid A template typeid.
|
|
13
|
+
* @param in_typeid - A template typeid.
|
|
14
14
|
*/
|
|
15
15
|
constructor(in_typeid) {
|
|
16
16
|
this._result = {
|
|
@@ -26,14 +26,14 @@ export class ValidationResultBuilder {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Add a validation error.
|
|
29
|
-
* @param {Error} in_error An Error instance.
|
|
29
|
+
* @param {Error} in_error - An Error instance.
|
|
30
30
|
*/
|
|
31
31
|
get result() {
|
|
32
32
|
return this._result;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* Add a validation error.
|
|
36
|
-
* @param in_error An Error instance.
|
|
36
|
+
* @param in_error - An Error instance.
|
|
37
37
|
*/
|
|
38
38
|
addError(in_error) {
|
|
39
39
|
this._result.isValid = false;
|
|
@@ -44,7 +44,7 @@ export class ValidationResultBuilder {
|
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Add a validation warning.
|
|
47
|
-
* @param in_msg A warning description.
|
|
47
|
+
* @param in_msg - A warning description.
|
|
48
48
|
*/
|
|
49
49
|
addWarning(in_msg) {
|
|
50
50
|
this._result.warnings.push(in_msg);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationResultBuilder.js","sourceRoot":"","sources":["../src/validationResultBuilder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH;;;;GAIG;AAWH,MAAM,OAAO,uBAAuB;IAGhC;;;OAGG;IACH,YAAY,SAAiB;QACzB,IAAI,CAAC,OAAO,GAAG;YACX,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,EAAE;YACjB,eAAe,EAAE,EAAE;SACtB,CAAC;QAEF,IAAI,SAAS,EAAE;YACX,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;SACnC;IACL,CAAC;IAED;;;OAGG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,QAAQ,CAAC,QAAe;QAC3B,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC;QAC7B,8CAA8C;QAC9C,IAAI,QAAQ,CAAC,OAAO,EAAE;YAClB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACtC;IACL,CAAC;IAED;;;OAGG;IACI,UAAU,CAAC,MAAc;QAC5B,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACI,OAAO;QACV,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAChC,CAAC;CACJ","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/**\n * @fileoverview\n * The ValidationResultBuilder maintains validation context that ultimately gets returned as a\n * single result.\n */\n\n export declare interface SchemaValidationResult {\n isValid: boolean;\n errors: Error[];\n warnings: string[];\n resolvedTypes: string[];\n unresolvedTypes: string[];\n typeid?: string;\n}\n\nexport class ValidationResultBuilder {\n private readonly _result: SchemaValidationResult;\n\n /**\n * Instantiates a ValidationResultBuilder\n * @param in_typeid A template typeid.\n */\n constructor(in_typeid: string) {\n this._result = {\n isValid: true,\n errors: [],\n warnings: [],\n resolvedTypes: [],\n unresolvedTypes: [],\n };\n\n if (in_typeid) {\n this._result.typeid = in_typeid;\n }\n }\n\n /**\n * Add a validation error.\n * @param {Error} in_error An Error instance.\n */\n public get result() {\n return this._result;\n }\n\n /**\n * Add a validation error.\n * @param in_error An Error instance.\n */\n public addError(in_error: Error) {\n this._result.isValid = false;\n // remove empty error messages before logging.\n if (in_error.message) {\n this._result.errors.push(in_error);\n }\n }\n\n /**\n * Add a validation warning.\n * @param in_msg A warning description.\n */\n public addWarning(in_msg: string) {\n this._result.warnings.push(in_msg);\n }\n\n /**\n * Fetches the boolean validation result.\n * @return True if validation produced no error, false otherwise. Warnings don't affect\n * this value.\n */\n public isValid(): boolean {\n return this._result.isValid;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"validationResultBuilder.js","sourceRoot":"","sources":["../src/validationResultBuilder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH;;;;GAIG;AAWH,MAAM,OAAO,uBAAuB;IAGhC;;;OAGG;IACH,YAAY,SAAiB;QACzB,IAAI,CAAC,OAAO,GAAG;YACX,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,EAAE;YACZ,aAAa,EAAE,EAAE;YACjB,eAAe,EAAE,EAAE;SACtB,CAAC;QAEF,IAAI,SAAS,EAAE;YACX,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;SACnC;IACL,CAAC;IAED;;;OAGG;IACH,IAAW,MAAM;QACb,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,QAAQ,CAAC,QAAe;QAC3B,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC;QAC7B,8CAA8C;QAC9C,IAAI,QAAQ,CAAC,OAAO,EAAE;YAClB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACtC;IACL,CAAC;IAED;;;OAGG;IACI,UAAU,CAAC,MAAc;QAC5B,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACI,OAAO;QACV,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAChC,CAAC;CACJ","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n/**\n * @fileoverview\n * The ValidationResultBuilder maintains validation context that ultimately gets returned as a\n * single result.\n */\n\n export declare interface SchemaValidationResult {\n isValid: boolean;\n errors: Error[];\n warnings: string[];\n resolvedTypes: string[];\n unresolvedTypes: string[];\n typeid?: string;\n}\n\nexport class ValidationResultBuilder {\n private readonly _result: SchemaValidationResult;\n\n /**\n * Instantiates a ValidationResultBuilder\n * @param in_typeid - A template typeid.\n */\n constructor(in_typeid: string) {\n this._result = {\n isValid: true,\n errors: [],\n warnings: [],\n resolvedTypes: [],\n unresolvedTypes: [],\n };\n\n if (in_typeid) {\n this._result.typeid = in_typeid;\n }\n }\n\n /**\n * Add a validation error.\n * @param {Error} in_error - An Error instance.\n */\n public get result() {\n return this._result;\n }\n\n /**\n * Add a validation error.\n * @param in_error - An Error instance.\n */\n public addError(in_error: Error) {\n this._result.isValid = false;\n // remove empty error messages before logging.\n if (in_error.message) {\n this._result.errors.push(in_error);\n }\n }\n\n /**\n * Add a validation warning.\n * @param in_msg - A warning description.\n */\n public addWarning(in_msg: string) {\n this._result.warnings.push(in_msg);\n }\n\n /**\n * Fetches the boolean validation result.\n * @return True if validation produced no error, false otherwise. Warnings don't affect\n * this value.\n */\n public isValid(): boolean {\n return this._result.isValid;\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/property-changeset",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.0.0-internal.1.0.0",
|
|
4
4
|
"description": "property changeset definitions and related functionalities",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"temp-directory": "nyc/.nyc_output"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@fluid-experimental/property-common": "1.
|
|
64
|
+
"@fluid-experimental/property-common": "^2.0.0-internal.1.0.0",
|
|
65
65
|
"ajv": "7.1.1",
|
|
66
66
|
"ajv-keywords": "4.0.0",
|
|
67
67
|
"async": "^3.2.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@fluidframework/build-common": "^0.24.0",
|
|
75
|
-
"@fluidframework/mocha-test-setup": "1.
|
|
75
|
+
"@fluidframework/mocha-test-setup": "^2.0.0-internal.1.0.0",
|
|
76
76
|
"@rushstack/eslint-config": "^2.5.1",
|
|
77
77
|
"@types/lodash": "^4.14.118",
|
|
78
78
|
"@types/mocha": "^9.1.1",
|