@fluid-experimental/property-common 1.1.0 → 1.2.0-77818

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.
@@ -12,7 +12,7 @@ exports.OperationError = void 0;
12
12
  * An operation error maintains additional information compared to a plain {@link #Error}:
13
13
  * - The operation name
14
14
  * - A status code
15
- * - Extensible flags. {@see ExtendedError.FLAGS}.
15
+ * - Extensible flags. See {@link ExtendedError.FLAGS}.
16
16
  */
17
17
  const lodash_1 = __importDefault(require("lodash"));
18
18
  const flaggedError_1 = require("./flaggedError");
@@ -1 +1 @@
1
- {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH;;;;;GAKG;AACH,oDAAuB;AACvB,iDAA8C;AAE9C,MAAa,cAAe,SAAQ,KAAK;IAKrC;;;;;;;SAOK;IACL,YACI,OAAgB,EACT,SAAkB,EAClB,UAAmB,EACnB,QAAgB,CAAC;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,cAAS,GAAT,SAAS,CAAS;QAClB,eAAU,GAAV,UAAU,CAAS;QACnB,UAAK,GAAL,KAAK,CAAY;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,OAAO;QACH,OAAO,2BAAY,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,WAAW;QACP,OAAO,2BAAY,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACK,cAAc;QAClB,MAAM,SAAS,GAAa,EAAE,CAAC;QAC/B,gBA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sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * An operation error maintains additional information compared to a plain {@link #Error}:\n * - The operation name\n * - A status code\n * - Extensible flags. {@see ExtendedError.FLAGS}.\n */\nimport _ from \"lodash\";\nimport { FlaggedError } from \"./flaggedError\";\n\nexport class OperationError extends Error {\n static FLAGS = FlaggedError.FLAGS;\n public stack: string | undefined;\n public readonly name: string;\n\n /**\n * Instantiates an OperationError, which mimics the Error class with added properties\n * meant for reporting the result of operations.\n * @param message - The error message.\n * @param operation - The operation name.\n * @param statusCode - The operation result as a numerical status code.\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n */\n constructor(\n message?: string,\n public operation?: string,\n public statusCode?: number,\n public flags: number = 0,\n ) {\n super(message);\n Object.setPrototypeOf(this, OperationError.prototype);\n this.name = \"OperationError\";\n this.stack = Error(message).stack;\n }\n\n isQuiet() {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient() {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n /**\n * @returns A string representation of the error flags.\n */\n private _flagsToString() {\n const flagArray: string[] = [];\n _.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n // eslint-disable-next-line no-bitwise\n if ((this.flags & flagValue) === flagValue) {\n flagArray.push(flagName);\n }\n });\n return `${this.flags} [${flagArray.join(\",\")}]`;\n }\n\n toString(): string {\n const extendedFieldsArray: string[] = [];\n if (this.operation !== undefined) {\n extendedFieldsArray.push(this.operation);\n }\n\n if (this.statusCode !== undefined) {\n extendedFieldsArray.push(this.statusCode.toString());\n }\n\n if (this.flags) {\n extendedFieldsArray.push(this._flagsToString.call(this));\n }\n\n let msg = this.name;\n\n if (extendedFieldsArray.length > 0) {\n msg += `[${extendedFieldsArray.join(\", \")}]`;\n }\n\n msg += `: ${this.message}`;\n\n if (this.stack !== undefined) {\n msg += `, stack: ${this.stack}`;\n }\n\n return msg;\n }\n}\n"]}
1
+ {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH;;;;;GAKG;AACH,oDAAuB;AACvB,iDAA8C;AAE9C,MAAa,cAAe,SAAQ,KAAK;IAKrC;;;;;;;SAOK;IACL,YACI,OAAgB,EACT,SAAkB,EAClB,UAAmB,EACnB,QAAgB,CAAC;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,cAAS,GAAT,SAAS,CAAS;QAClB,eAAU,GAAV,UAAU,CAAS;QACnB,UAAK,GAAL,KAAK,CAAY;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,OAAO;QACH,OAAO,2BAAY,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,WAAW;QACP,OAAO,2BAAY,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACK,cAAc;QAClB,MAAM,SAAS,GAAa,EAAE,CAAC;QAC/B,gBAAC,CAAC,SAAS,CAAC,2BAAY,CAAC,KAAK,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE;YACpD,sCAAsC;YACtC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,SAAS,EAAE;gBACxC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC5B;QACL,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;IACpD,CAAC;IAED,QAAQ;QACJ,MAAM,mBAAmB,GAAa,EAAE,CAAC;QACzC,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;YAC9B,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC5C;QAED,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE;YAC/B,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;SACxD;QAED,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SAC5D;QAED,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QAEpB,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,GAAG,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;SAChD;QAED,GAAG,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;QAE3B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE;YAC1B,GAAG,IAAI,YAAY,IAAI,CAAC,KAAK,EAAE,CAAC;SACnC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;;AA1EL,wCA2EC;AA1EU,oBAAK,GAAG,2BAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * An operation error maintains additional information compared to a plain {@link #Error}:\n * - The operation name\n * - A status code\n * - Extensible flags. See {@link ExtendedError.FLAGS}.\n */\nimport _ from \"lodash\";\nimport { FlaggedError } from \"./flaggedError\";\n\nexport class OperationError extends Error {\n static FLAGS = FlaggedError.FLAGS;\n public stack: string | undefined;\n public readonly name: string;\n\n /**\n * Instantiates an OperationError, which mimics the Error class with added properties\n * meant for reporting the result of operations.\n * @param message - The error message.\n * @param operation - The operation name.\n * @param statusCode - The operation result as a numerical status code.\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n */\n constructor(\n message?: string,\n public operation?: string,\n public statusCode?: number,\n public flags: number = 0,\n ) {\n super(message);\n Object.setPrototypeOf(this, OperationError.prototype);\n this.name = \"OperationError\";\n this.stack = Error(message).stack;\n }\n\n isQuiet() {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient() {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n /**\n * @returns A string representation of the error flags.\n */\n private _flagsToString() {\n const flagArray: string[] = [];\n _.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n // eslint-disable-next-line no-bitwise\n if ((this.flags & flagValue) === flagValue) {\n flagArray.push(flagName);\n }\n });\n return `${this.flags} [${flagArray.join(\",\")}]`;\n }\n\n toString(): string {\n const extendedFieldsArray: string[] = [];\n if (this.operation !== undefined) {\n extendedFieldsArray.push(this.operation);\n }\n\n if (this.statusCode !== undefined) {\n extendedFieldsArray.push(this.statusCode.toString());\n }\n\n if (this.flags) {\n extendedFieldsArray.push(this._flagsToString.call(this));\n }\n\n let msg = this.name;\n\n if (extendedFieldsArray.length > 0) {\n msg += `[${extendedFieldsArray.join(\", \")}]`;\n }\n\n msg += `: ${this.message}`;\n\n if (this.stack !== undefined) {\n msg += `, stack: ${this.stack}`;\n }\n\n return msg;\n }\n}\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluid-experimental/property-common";
8
- export declare const pkgVersion = "1.1.0";
8
+ export declare const pkgVersion = "1.2.0-77818";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,wCAAwC,CAAC;AAC7D,eAAO,MAAM,UAAU,UAAU,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,wCAAwC,CAAC;AAC7D,eAAO,MAAM,UAAU,gBAAgB,CAAC"}
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluid-experimental/property-common";
11
- exports.pkgVersion = "1.1.0";
11
+ exports.pkgVersion = "1.2.0-77818";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qCAAqC,CAAC;AAChD,QAAA,UAAU,GAAG,OAAO,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"1.1.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qCAAqC,CAAC;AAChD,QAAA,UAAU,GAAG,aAAa,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"1.2.0-77818\";\n"]}
@@ -6,7 +6,7 @@
6
6
  * An operation error maintains additional information compared to a plain {@link #Error}:
7
7
  * - The operation name
8
8
  * - A status code
9
- * - Extensible flags. {@see ExtendedError.FLAGS}.
9
+ * - Extensible flags. See {@link ExtendedError.FLAGS}.
10
10
  */
11
11
  import _ from "lodash";
12
12
  import { FlaggedError } from "./flaggedError";
@@ -1 +1 @@
1
- {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,OAAO,cAAe,SAAQ,KAAK;IAKrC;;;;;;;SAOK;IACL,YACI,OAAgB,EACT,SAAkB,EAClB,UAAmB,EACnB,QAAgB,CAAC;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,cAAS,GAAT,SAAS,CAAS;QAClB,eAAU,GAAV,UAAU,CAAS;QACnB,UAAK,GAAL,KAAK,CAAY;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,OAAO;QACH,OAAO,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,WAAW;QACP,OAAO,YAAY,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACK,cAAc;QAClB,MAAM,SAAS,GAAa,EAAE,CAAC;QAC/B,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,EAAE;YACpD,sCAAsC;YACtC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,SAAS,EAAE;gBACxC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC5B;QACL,CAAC,CAAC,CAAC;QACH,OAAO,GAAG,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;IACpD,CAAC;IAED,QAAQ;QACJ,MAAM,mBAAmB,GAAa,EAAE,CAAC;QACzC,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;YAC9B,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SAC5C;QAED,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE;YAC/B,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;SACxD;QAED,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SAC5D;QAED,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QAEpB,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,GAAG,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;SAChD;QAED,GAAG,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;QAE3B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE;YAC1B,GAAG,IAAI,YAAY,IAAI,CAAC,KAAK,EAAE,CAAC;SACnC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;;AAzEM,oBAAK,GAAG,YAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * An operation error maintains additional information compared to a plain {@link #Error}:\n * - The operation name\n * - A status code\n * - Extensible flags. {@see ExtendedError.FLAGS}.\n */\nimport _ from \"lodash\";\nimport { FlaggedError } from \"./flaggedError\";\n\nexport class OperationError extends Error {\n static FLAGS = FlaggedError.FLAGS;\n public stack: string | undefined;\n public readonly name: string;\n\n /**\n * Instantiates an OperationError, which mimics the Error class with added properties\n * meant for reporting the result of operations.\n * @param message - The error message.\n * @param operation - The operation name.\n * @param statusCode - The operation result as a numerical status code.\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n */\n constructor(\n message?: string,\n public operation?: string,\n public statusCode?: number,\n public flags: number = 0,\n ) {\n super(message);\n Object.setPrototypeOf(this, OperationError.prototype);\n this.name = \"OperationError\";\n this.stack = Error(message).stack;\n }\n\n isQuiet() {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient() {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n /**\n * @returns A string representation of the error flags.\n */\n private _flagsToString() {\n const flagArray: string[] = [];\n _.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n // eslint-disable-next-line no-bitwise\n if ((this.flags & flagValue) === flagValue) {\n flagArray.push(flagName);\n }\n });\n return `${this.flags} [${flagArray.join(\",\")}]`;\n }\n\n toString(): string {\n const extendedFieldsArray: string[] = [];\n if (this.operation !== undefined) {\n extendedFieldsArray.push(this.operation);\n }\n\n if (this.statusCode !== undefined) {\n extendedFieldsArray.push(this.statusCode.toString());\n }\n\n if (this.flags) {\n extendedFieldsArray.push(this._flagsToString.call(this));\n }\n\n let msg = this.name;\n\n if (extendedFieldsArray.length > 0) {\n msg += `[${extendedFieldsArray.join(\", \")}]`;\n }\n\n msg += `: ${this.message}`;\n\n if (this.stack !== undefined) {\n msg += `, stack: ${this.stack}`;\n }\n\n return msg;\n }\n}\n"]}
1
+ {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,OAAO,cAAe,SA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C,UAAU,KAAK,SAAS,EAAE;YAC/B,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;SACxD;QAED,IAAI,IAAI,CAAC,KAAK,EAAE;YACZ,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SAC5D;QAED,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QAEpB,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,GAAG,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;SAChD;QAED,GAAG,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;QAE3B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE;YAC1B,GAAG,IAAI,YAAY,IAAI,CAAC,KAAK,EAAE,CAAC;SACnC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;;AAzEM,oBAAK,GAAG,YAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * An operation error maintains additional information compared to a plain {@link #Error}:\n * - The operation name\n * - A status code\n * - Extensible flags. See {@link ExtendedError.FLAGS}.\n */\nimport _ from \"lodash\";\nimport { FlaggedError } from \"./flaggedError\";\n\nexport class OperationError extends Error {\n static FLAGS = FlaggedError.FLAGS;\n public stack: string | undefined;\n public readonly name: string;\n\n /**\n * Instantiates an OperationError, which mimics the Error class with added properties\n * meant for reporting the result of operations.\n * @param message - The error message.\n * @param operation - The operation name.\n * @param statusCode - The operation result as a numerical status code.\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n */\n constructor(\n message?: string,\n public operation?: string,\n public statusCode?: number,\n public flags: number = 0,\n ) {\n super(message);\n Object.setPrototypeOf(this, OperationError.prototype);\n this.name = \"OperationError\";\n this.stack = Error(message).stack;\n }\n\n isQuiet() {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient() {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n /**\n * @returns A string representation of the error flags.\n */\n private _flagsToString() {\n const flagArray: string[] = [];\n _.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n // eslint-disable-next-line no-bitwise\n if ((this.flags & flagValue) === flagValue) {\n flagArray.push(flagName);\n }\n });\n return `${this.flags} [${flagArray.join(\",\")}]`;\n }\n\n toString(): string {\n const extendedFieldsArray: string[] = [];\n if (this.operation !== undefined) {\n extendedFieldsArray.push(this.operation);\n }\n\n if (this.statusCode !== undefined) {\n extendedFieldsArray.push(this.statusCode.toString());\n }\n\n if (this.flags) {\n extendedFieldsArray.push(this._flagsToString.call(this));\n }\n\n let msg = this.name;\n\n if (extendedFieldsArray.length > 0) {\n msg += `[${extendedFieldsArray.join(\", \")}]`;\n }\n\n msg += `: ${this.message}`;\n\n if (this.stack !== undefined) {\n msg += `, stack: ${this.stack}`;\n }\n\n return msg;\n }\n}\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluid-experimental/property-common";
8
- export declare const pkgVersion = "1.1.0";
8
+ export declare const pkgVersion = "1.2.0-77818";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,wCAAwC,CAAC;AAC7D,eAAO,MAAM,UAAU,UAAU,CAAC"}
1
+ {"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,wCAAwC,CAAC;AAC7D,eAAO,MAAM,UAAU,gBAAgB,CAAC"}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluid-experimental/property-common";
8
- export const pkgVersion = "1.1.0";
8
+ export const pkgVersion = "1.2.0-77818";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,qCAAqC,CAAC;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"1.1.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,qCAAqC,CAAC;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"1.2.0-77818\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/property-common",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-77818",
4
4
  "description": "common functions used in properties",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -70,7 +70,7 @@
70
70
  "devDependencies": {
71
71
  "@fluidframework/build-common": "^0.24.0",
72
72
  "@fluidframework/eslint-config-fluid": "^0.28.2000",
73
- "@fluidframework/mocha-test-setup": "^1.1.0",
73
+ "@fluidframework/mocha-test-setup": "1.2.0-77818",
74
74
  "@microsoft/api-extractor": "^7.22.2",
75
75
  "@rushstack/eslint-config": "^2.5.1",
76
76
  "@types/debug": "^4.1.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-internal/platform-dependent",
3
- "version": "1.1.0",
3
+ "version": "1.2.0-77818",
4
4
  "private": true,
5
5
  "description": "Helper package that separates code for browser and server.",
6
6
  "homepage": "https://fluidframework.com",
@@ -7,7 +7,7 @@
7
7
  * An operation error maintains additional information compared to a plain {@link #Error}:
8
8
  * - The operation name
9
9
  * - A status code
10
- * - Extensible flags. {@see ExtendedError.FLAGS}.
10
+ * - Extensible flags. See {@link ExtendedError.FLAGS}.
11
11
  */
12
12
  import _ from "lodash";
13
13
  import { FlaggedError } from "./flaggedError";
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluid-experimental/property-common";
9
- export const pkgVersion = "1.1.0";
9
+ export const pkgVersion = "1.2.0-77818";