@fluid-experimental/property-common 2.0.0-dev.2.3.0.115467 → 2.0.0-dev.4.1.0.148229
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/.eslintrc.js +9 -11
- package/.mocharc.json +6 -6
- package/README.md +1 -0
- package/api-extractor.json +2 -2
- package/dist/chronometer.d.ts.map +1 -1
- package/dist/chronometer.js.map +1 -1
- package/dist/consoleUtils.d.ts.map +1 -1
- package/dist/consoleUtils.js +4 -1
- package/dist/consoleUtils.js.map +1 -1
- package/dist/constants.d.ts +6 -6
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +16 -26
- package/dist/constants.js.map +1 -1
- package/dist/datastructures/collection.d.ts.map +1 -1
- package/dist/datastructures/collection.js +5 -4
- package/dist/datastructures/collection.js.map +1 -1
- package/dist/datastructures/dataArray.d.ts.map +1 -1
- package/dist/datastructures/dataArray.js +18 -9
- package/dist/datastructures/dataArray.js.map +1 -1
- package/dist/datastructures/integer64.d.ts.map +1 -1
- package/dist/datastructures/integer64.js +1 -1
- package/dist/datastructures/integer64.js.map +1 -1
- package/dist/datastructures/sortedCollection.d.ts.map +1 -1
- package/dist/datastructures/sortedCollection.js +3 -1
- package/dist/datastructures/sortedCollection.js.map +1 -1
- package/dist/deferredPromise.d.ts +1 -1
- package/dist/deferredPromise.d.ts.map +1 -1
- package/dist/deferredPromise.js +9 -3
- package/dist/deferredPromise.js.map +1 -1
- package/dist/deterministicRandomGenerator.d.ts.map +1 -1
- package/dist/deterministicRandomGenerator.js +6 -6
- package/dist/deterministicRandomGenerator.js.map +1 -1
- package/dist/error_objects/flaggedError.d.ts.map +1 -1
- package/dist/error_objects/flaggedError.js.map +1 -1
- package/dist/error_objects/httpError.d.ts.map +1 -1
- package/dist/error_objects/httpError.js +9 -9
- package/dist/error_objects/httpError.js.map +1 -1
- package/dist/error_objects/httpErrorNoStack.d.ts.map +1 -1
- package/dist/error_objects/httpErrorNoStack.js.map +1 -1
- package/dist/error_objects/operationError.d.ts +7 -7
- package/dist/error_objects/operationError.d.ts.map +1 -1
- package/dist/error_objects/operationError.js +7 -7
- package/dist/error_objects/operationError.js.map +1 -1
- package/dist/guidUtils.d.ts.map +1 -1
- package/dist/guidUtils.js +10 -9
- package/dist/guidUtils.js.map +1 -1
- package/dist/hashCalculator.d.ts.map +1 -1
- package/dist/hashCalculator.js.map +1 -1
- package/dist/joinPaths.d.ts.map +1 -1
- package/dist/joinPaths.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/lib/chronometer.d.ts.map +1 -1
- package/lib/chronometer.js.map +1 -1
- package/lib/consoleUtils.d.ts.map +1 -1
- package/lib/consoleUtils.js +4 -1
- package/lib/consoleUtils.js.map +1 -1
- package/lib/constants.d.ts +6 -6
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +16 -26
- package/lib/constants.js.map +1 -1
- package/lib/datastructures/collection.d.ts.map +1 -1
- package/lib/datastructures/collection.js +5 -4
- package/lib/datastructures/collection.js.map +1 -1
- package/lib/datastructures/dataArray.d.ts.map +1 -1
- package/lib/datastructures/dataArray.js +18 -9
- package/lib/datastructures/dataArray.js.map +1 -1
- package/lib/datastructures/integer64.d.ts.map +1 -1
- package/lib/datastructures/integer64.js +1 -1
- package/lib/datastructures/integer64.js.map +1 -1
- package/lib/datastructures/sortedCollection.d.ts.map +1 -1
- package/lib/datastructures/sortedCollection.js +3 -1
- package/lib/datastructures/sortedCollection.js.map +1 -1
- package/lib/deferredPromise.d.ts +1 -1
- package/lib/deferredPromise.d.ts.map +1 -1
- package/lib/deferredPromise.js +9 -3
- package/lib/deferredPromise.js.map +1 -1
- package/lib/deterministicRandomGenerator.d.ts.map +1 -1
- package/lib/deterministicRandomGenerator.js +6 -6
- package/lib/deterministicRandomGenerator.js.map +1 -1
- package/lib/error_objects/flaggedError.d.ts.map +1 -1
- package/lib/error_objects/flaggedError.js.map +1 -1
- package/lib/error_objects/httpError.d.ts.map +1 -1
- package/lib/error_objects/httpError.js +9 -9
- package/lib/error_objects/httpError.js.map +1 -1
- package/lib/error_objects/httpErrorNoStack.d.ts.map +1 -1
- package/lib/error_objects/httpErrorNoStack.js.map +1 -1
- package/lib/error_objects/operationError.d.ts +7 -7
- package/lib/error_objects/operationError.d.ts.map +1 -1
- package/lib/error_objects/operationError.js +7 -7
- package/lib/error_objects/operationError.js.map +1 -1
- package/lib/guidUtils.d.ts.map +1 -1
- package/lib/guidUtils.js +10 -9
- package/lib/guidUtils.js.map +1 -1
- package/lib/hashCalculator.d.ts.map +1 -1
- package/lib/hashCalculator.js.map +1 -1
- package/lib/joinPaths.d.ts.map +1 -1
- package/lib/joinPaths.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/package.json +42 -40
- package/platform-dependent/README.md +1 -0
- package/platform-dependent/browser.js +5 -5
- package/platform-dependent/package.json +14 -14
- package/platform-dependent/server.js +5 -5
- package/prettier.config.cjs +1 -1
- package/src/chronometer.ts +174 -169
- package/src/consoleUtils.ts +16 -11
- package/src/constants.ts +1683 -1640
- package/src/datastructures/collection.ts +417 -416
- package/src/datastructures/dataArray.ts +516 -492
- package/src/datastructures/integer64.ts +102 -99
- package/src/datastructures/sortedCollection.ts +155 -145
- package/src/deferredPromise.ts +43 -42
- package/src/deterministicRandomGenerator.ts +59 -59
- package/src/error_objects/flaggedError.ts +29 -29
- package/src/error_objects/httpError.ts +45 -42
- package/src/error_objects/httpErrorNoStack.ts +17 -17
- package/src/error_objects/operationError.ts +62 -62
- package/src/guidUtils.ts +182 -171
- package/src/hashCalculator.ts +5 -2
- package/src/joinPaths.ts +15 -9
- package/src/packageVersion.ts +1 -1
- package/tsconfig.esnext.json +6 -6
- package/tsconfig.json +9 -13
package/.eslintrc.js
CHANGED
|
@@ -4,14 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
}
|
|
7
|
+
extends: [require.resolve("@fluidframework/eslint-config-fluid/minimal"), "prettier"],
|
|
8
|
+
parserOptions: {
|
|
9
|
+
project: ["./tsconfig.json", "./src/test/tsconfig.json"],
|
|
10
|
+
},
|
|
11
|
+
rules: {
|
|
12
|
+
"prefer-arrow-callback": "off",
|
|
13
|
+
"tsdoc/syntax": "off",
|
|
14
|
+
},
|
|
15
|
+
};
|
package/.mocharc.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
"R": "spec",
|
|
3
|
+
"recursive": true,
|
|
4
|
+
"timeout": "180s",
|
|
5
|
+
"exit": true,
|
|
6
|
+
"full-trace": true,
|
|
7
|
+
"spec": ["test/setup.js", "test/**/*.spec.js"]
|
|
8
8
|
}
|
package/README.md
CHANGED
package/api-extractor.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
+
"extends": "@fluidframework/build-common/api-extractor-common.json"
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chronometer.d.ts","sourceRoot":"","sources":["../src/chronometer.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"chronometer.d.ts","sourceRoot":"","sources":["../src/chronometer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqIH;;GAEG;AACH,qBAAa,WAAW;;IAKvB;;OAEG;IACH,KAAK;IAIL;;;;;;;;OAQG;IACH,IAAI,IAAI,WAAW;IAKnB;;;;;OAKG;IACH,eAAe,IAAI,MAAM;IAIzB;;;;;OAKG;IACH,eAAe,IAAI,MAAM;IAIzB;;;;;OAKG;IACH,UAAU,IAAI,MAAM;IAIpB;;;;;;;;OAQG;WACU,WAAW,CAAC,CAAC,EACzB,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GACzB,OAAO,CAAC;QAAE,MAAM,EAAE,WAAW,CAAC;QAAC,MAAM,EAAE,CAAC,CAAA;KAAE,CAAC;CAM9C"}
|
package/dist/chronometer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chronometer.js","sourceRoot":"","sources":["../src/chronometer.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH;;GAEG;AACH,MAAM,eAAe,GAAG;IACpB,kCAAkC;IAClC,IAAI,EAAE;QACF,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,CAAC;QACb,SAAS,EAAE,SAA8B;QACzC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC;QAEf,MAAM;YACF,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;QACvC,CAAC;QACD,KAAK;YACD,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACrD,CAAC;QACD,WAAW;YACP,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;gBAC9B,IAAI,CAAC,IAAI,EAAE,CAAC;aACf;YACD,oEAAoE;YACpE,OAAQ,IAAI,CAAC,SAAU,CAAC,CAAC,CAAY,GAAI,IAAI,CAAC,SAAU,CAAC,CAAC,CAAY,GAAG,UAAU,CAAC;QACxF,CAAC;QACD,gBAAgB;YACZ,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;gBAC9B,IAAI,CAAC,IAAI,EAAE,CAAC;aACf;YACD,oEAAoE;YACpE,OAAO,IAAI,CAAC,SAAU,CAAC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AAC;CACtC;KAAM;IACH,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,MAAa,WAAW;IACpB;QACI,IAAI,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC;IAED;;OAEG;IACH,KAAK;QACD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI;QACA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACH,eAAe;QACX,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACH,eAAe;QACX,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED;;;;;OAKG;IACH,UAAU;QACN,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,CAAC,WAAW,CAAI,SAA2B;QACnD,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,CAAC,IAAI,EAAE,CAAC;QACd,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC9B,CAAC;CACJ;AAvED,kCAuEC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @fileoverview A chronometer implementation backed by a high resolution timer.\n * The implementation falls back to milliseconds precision when high resolution timers are not supported.\n */\n\ndeclare let process: any;\n\n/**\n * All the chronometer implementations (hrtime, window.performance, and date:\n */\nconst implementations = {\n // Node implementation uses hrtime\n node: {\n name: \"hrtime\",\n _startTime: 0,\n _stopTime: undefined as any[] | undefined,\n stop: () => { },\n\n _start() {\n this._startTime = process.hrtime();\n },\n _stop() {\n this._stopTime = process.hrtime(this._startTime);\n },\n _elapsedSec(): number {\n if (this._stopTime === undefined) {\n this.stop();\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return (this._stopTime![0] as number) + (this._stopTime![1] as number) / 1000000000;\n },\n _elapsedMilliSec(): number {\n if (this._stopTime === undefined) {\n this.stop();\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return this._stopTime![0] * 1000 + this._stopTime![1] / 1000000;\n },\n _elapsedMicroSec(): number {\n if (this._stopTime === undefined) {\n this.stop();\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n return this._stopTime![0] * 1000000 + this._stopTime![1] / 1000;\n },\n },\n // Browser implementation uses window.performance (if available):\n performance: {\n name: \"window.performance\",\n _startTime: 0,\n _stopTime: 0,\n\n stop: () => { },\n elapsedMilliSec: () => 0,\n\n _start() {\n this._startTime = window.performance.now();\n },\n _stop() {\n this._stopTime = window.performance.now();\n },\n _elapsedSec(): number {\n if (!this._stopTime) {\n this.stop();\n }\n return this.elapsedMilliSec() / 1000;\n },\n _elapsedMilliSec(): number {\n if (!this._stopTime) {\n this.stop();\n }\n return this._stopTime - this._startTime;\n },\n _elapsedMicroSec(): number {\n if (!this._stopTime) {\n this.stop();\n }\n return this.elapsedMilliSec() * 1000;\n },\n },\n // Fallback is Date implementation if none of the above is supported:\n date: {\n name: \"date\",\n _startTime: new Date(),\n _stopTime: undefined as Date | undefined,\n stop: () => { },\n elapsedMilliSec: () => 0,\n\n _start() {\n this._startTime = new Date();\n },\n _stop() {\n this._stopTime = new Date();\n },\n _elapsedSec(): number {\n if (!this._stopTime) {\n this.stop();\n }\n return this.elapsedMilliSec() / 1000;\n },\n _elapsedMilliSec(): number {\n if (!this._stopTime) {\n this.stop();\n }\n return (this._stopTime as Date).getTime() - this._startTime.getTime();\n },\n _elapsedMicroSec(): number {\n if (!this._stopTime) {\n this.stop();\n }\n return this.elapsedMilliSec() * 1000;\n },\n },\n};\n\nlet impl: typeof implementations.date | typeof implementations.node | typeof implementations.performance;\nif (typeof process !== \"undefined\" && typeof process.hrtime !== \"undefined\") {\n impl = implementations.node;\n} else if (\n typeof window !== \"undefined\" &&\n typeof window.performance !== \"undefined\" &&\n typeof window.performance.now !== \"undefined\"\n) {\n impl = implementations.performance;\n} else {\n impl = implementations.date;\n}\n\n/**\n * Creates and starts a new Chronometer.\n */\nexport class Chronometer {\n constructor() {\n this.start();\n }\n\n /**\n * Sets the chronometer start time.\n */\n start() {\n return impl._start.call(this);\n }\n\n /**\n * Stops the chronometer. Stopped chronometers can be reused by calling {@link Chronometer.start} again.\n *\n * @returns The chronometer instance, so that callers can do this:\n *\n * ```javascript\n * let elapsedMS = chrono.stop().elapsedMS();\n * ```\n */\n stop(): Chronometer {\n impl._stop.call(this);\n return this;\n }\n\n /**\n * @returns How many microseconds have elapsed between the last call to {@link Chronometer.start}\n * (or the chronometer creation), and {@link Chronometer.stop}. Implementations that are not precise\n * enough may return \"elapsedMilliSec() * 1000\". Measuring elapsed time causes the chronometer\n * to be stopped if required (if the chrono is not stopped when this method is called).\n */\n elapsedMicroSec(): number {\n return impl._elapsedMicroSec.call(this);\n }\n\n /**\n * @returns How many milliseconds have elapsed between the last call to {@link Chronometer.start}\n * (or the chronometer creation), and {@link Chronometer.stop}. Measuring elapsed time causes the\n * chronometer to be stopped if required (if the chrono is not stopped when this method is\n * called).\n */\n elapsedMilliSec(): number {\n return impl._elapsedMilliSec.call(this);\n }\n\n /**\n * @returns How many seconds have elapsed between the last call to {@link Chronometer.start}\n * (or the chronometer creation), and {@link Chronometer.stop}. Measuring elapsed time causes the\n * chronometer to be stopped if required (if the chrono is not stopped when this method is\n * called).\n */\n elapsedSec(): number {\n return impl._elapsedSec.call(this);\n }\n\n /**\n * A utility function to measure promise execution time.\n * @param promiseFn - A function that returns a promise whose execution time is to be measured.\n * @returns A Promise that resolves with an object with properties:\n *\n * - `chrono`: A stopped chronometer instance from which to get the elapsed time,\n *\n * - `result`: The resolved result of the promise returned by promiseFn\n */\n static async timePromise<T>(promiseFn: () => Promise<T>): Promise<{ chrono: Chronometer; result: T; }> {\n const chrono = new Chronometer();\n const result = await promiseFn();\n chrono.stop();\n return { chrono, result };\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"chronometer.js","sourceRoot":"","sources":["../src/chronometer.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH;;GAEG;AACH,MAAM,eAAe,GAAG;IACvB,kCAAkC;IAClC,IAAI,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,CAAC;QACb,SAAS,EAAE,SAA8B;QACzC,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;QAEd,MAAM;YACL,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;QACpC,CAAC;QACD,KAAK;YACJ,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClD,CAAC;QACD,WAAW;YACV,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;gBACjC,IAAI,CAAC,IAAI,EAAE,CAAC;aACZ;YACD,oEAAoE;YACpE,OAAQ,IAAI,CAAC,SAAU,CAAC,CAAC,CAAY,GAAI,IAAI,CAAC,SAAU,CAAC,CAAC,CAAY,GAAG,UAAU,CAAC;QACrF,CAAC;QACD,gBAAgB;YACf,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;gBACjC,IAAI,CAAC,IAAI,EAAE,CAAC;aACZ;YACD,oEAAoE;YACpE,OAAO,IAAI,CAAC,SAAU,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,SAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;QACjE,CAAC;QACD,gBAAgB;YACf,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAA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EG;IACH,KAAK;QACJ,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI;QACH,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACtB,OAAO,IAAI,CAAC;IACb,CAAC;IAED;;;;;OAKG;IACH,eAAe;QACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACH,eAAe;QACd,OAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAED;;;;;OAKG;IACH,UAAU;QACT,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,KAAK,CAAC,WAAW,CACvB,SAA2B;QAE3B,MAAM,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QACjC,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;QACjC,MAAM,CAAC,IAAI,EAAE,CAAC;QACd,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC3B,CAAC;CACD;AAzED,kCAyEC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @fileoverview A chronometer implementation backed by a high resolution timer.\n * The implementation falls back to milliseconds precision when high resolution timers are not supported.\n */\n\ndeclare let process: any;\n\n/**\n * All the chronometer implementations (hrtime, window.performance, and date:\n */\nconst implementations = {\n\t// Node implementation uses hrtime\n\tnode: {\n\t\tname: \"hrtime\",\n\t\t_startTime: 0,\n\t\t_stopTime: undefined as any[] | undefined,\n\t\tstop: () => {},\n\n\t\t_start() {\n\t\t\tthis._startTime = process.hrtime();\n\t\t},\n\t\t_stop() {\n\t\t\tthis._stopTime = process.hrtime(this._startTime);\n\t\t},\n\t\t_elapsedSec(): number {\n\t\t\tif (this._stopTime === undefined) {\n\t\t\t\tthis.stop();\n\t\t\t}\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\treturn (this._stopTime![0] as number) + (this._stopTime![1] as number) / 1000000000;\n\t\t},\n\t\t_elapsedMilliSec(): number {\n\t\t\tif (this._stopTime === undefined) {\n\t\t\t\tthis.stop();\n\t\t\t}\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\treturn this._stopTime![0] * 1000 + this._stopTime![1] / 1000000;\n\t\t},\n\t\t_elapsedMicroSec(): number {\n\t\t\tif (this._stopTime === undefined) {\n\t\t\t\tthis.stop();\n\t\t\t}\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\t\t\treturn this._stopTime![0] * 1000000 + this._stopTime![1] / 1000;\n\t\t},\n\t},\n\t// Browser implementation uses window.performance (if available):\n\tperformance: {\n\t\tname: \"window.performance\",\n\t\t_startTime: 0,\n\t\t_stopTime: 0,\n\n\t\tstop: () => {},\n\t\telapsedMilliSec: () => 0,\n\n\t\t_start() {\n\t\t\tthis._startTime = window.performance.now();\n\t\t},\n\t\t_stop() {\n\t\t\tthis._stopTime = window.performance.now();\n\t\t},\n\t\t_elapsedSec(): number {\n\t\t\tif (!this._stopTime) {\n\t\t\t\tthis.stop();\n\t\t\t}\n\t\t\treturn this.elapsedMilliSec() / 1000;\n\t\t},\n\t\t_elapsedMilliSec(): number {\n\t\t\tif (!this._stopTime) {\n\t\t\t\tthis.stop();\n\t\t\t}\n\t\t\treturn this._stopTime - this._startTime;\n\t\t},\n\t\t_elapsedMicroSec(): number {\n\t\t\tif (!this._stopTime) {\n\t\t\t\tthis.stop();\n\t\t\t}\n\t\t\treturn this.elapsedMilliSec() * 1000;\n\t\t},\n\t},\n\t// Fallback is Date implementation if none of the above is supported:\n\tdate: {\n\t\tname: \"date\",\n\t\t_startTime: new Date(),\n\t\t_stopTime: undefined as Date | undefined,\n\t\tstop: () => {},\n\t\telapsedMilliSec: () => 0,\n\n\t\t_start() {\n\t\t\tthis._startTime = new Date();\n\t\t},\n\t\t_stop() {\n\t\t\tthis._stopTime = new Date();\n\t\t},\n\t\t_elapsedSec(): number {\n\t\t\tif (!this._stopTime) {\n\t\t\t\tthis.stop();\n\t\t\t}\n\t\t\treturn this.elapsedMilliSec() / 1000;\n\t\t},\n\t\t_elapsedMilliSec(): number {\n\t\t\tif (!this._stopTime) {\n\t\t\t\tthis.stop();\n\t\t\t}\n\t\t\treturn (this._stopTime as Date).getTime() - this._startTime.getTime();\n\t\t},\n\t\t_elapsedMicroSec(): number {\n\t\t\tif (!this._stopTime) {\n\t\t\t\tthis.stop();\n\t\t\t}\n\t\t\treturn this.elapsedMilliSec() * 1000;\n\t\t},\n\t},\n};\n\nlet impl:\n\t| typeof implementations.date\n\t| typeof implementations.node\n\t| typeof implementations.performance;\nif (typeof process !== \"undefined\" && typeof process.hrtime !== \"undefined\") {\n\timpl = implementations.node;\n} else if (\n\ttypeof window !== \"undefined\" &&\n\ttypeof window.performance !== \"undefined\" &&\n\ttypeof window.performance.now !== \"undefined\"\n) {\n\timpl = implementations.performance;\n} else {\n\timpl = implementations.date;\n}\n\n/**\n * Creates and starts a new Chronometer.\n */\nexport class Chronometer {\n\tconstructor() {\n\t\tthis.start();\n\t}\n\n\t/**\n\t * Sets the chronometer start time.\n\t */\n\tstart() {\n\t\treturn impl._start.call(this);\n\t}\n\n\t/**\n\t * Stops the chronometer. Stopped chronometers can be reused by calling {@link Chronometer.start} again.\n\t *\n\t * @returns The chronometer instance, so that callers can do this:\n\t *\n\t * ```javascript\n\t * let elapsedMS = chrono.stop().elapsedMS();\n\t * ```\n\t */\n\tstop(): Chronometer {\n\t\timpl._stop.call(this);\n\t\treturn this;\n\t}\n\n\t/**\n\t * @returns How many microseconds have elapsed between the last call to {@link Chronometer.start}\n\t * (or the chronometer creation), and {@link Chronometer.stop}. Implementations that are not precise\n\t * enough may return \"elapsedMilliSec() * 1000\". Measuring elapsed time causes the chronometer\n\t * to be stopped if required (if the chrono is not stopped when this method is called).\n\t */\n\telapsedMicroSec(): number {\n\t\treturn impl._elapsedMicroSec.call(this);\n\t}\n\n\t/**\n\t * @returns How many milliseconds have elapsed between the last call to {@link Chronometer.start}\n\t * (or the chronometer creation), and {@link Chronometer.stop}. Measuring elapsed time causes the\n\t * chronometer to be stopped if required (if the chrono is not stopped when this method is\n\t * called).\n\t */\n\telapsedMilliSec(): number {\n\t\treturn impl._elapsedMilliSec.call(this);\n\t}\n\n\t/**\n\t * @returns How many seconds have elapsed between the last call to {@link Chronometer.start}\n\t * (or the chronometer creation), and {@link Chronometer.stop}. Measuring elapsed time causes the\n\t * chronometer to be stopped if required (if the chrono is not stopped when this method is\n\t * called).\n\t */\n\telapsedSec(): number {\n\t\treturn impl._elapsedSec.call(this);\n\t}\n\n\t/**\n\t * A utility function to measure promise execution time.\n\t * @param promiseFn - A function that returns a promise whose execution time is to be measured.\n\t * @returns A Promise that resolves with an object with properties:\n\t *\n\t * - `chrono`: A stopped chronometer instance from which to get the elapsed time,\n\t *\n\t * - `result`: The resolved result of the promise returned by promiseFn\n\t */\n\tstatic async timePromise<T>(\n\t\tpromiseFn: () => Promise<T>,\n\t): Promise<{ chrono: Chronometer; result: T }> {\n\t\tconst chrono = new Chronometer();\n\t\tconst result = await promiseFn();\n\t\tchrono.stop();\n\t\treturn { chrono, result };\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoleUtils.d.ts","sourceRoot":"","sources":["../src/consoleUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;
|
|
1
|
+
{"version":3,"file":"consoleUtils.d.ts","sourceRoot":"","sources":["../src/consoleUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH,qBAAa,YAAY;IACxB;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,SAAS;CAS1E"}
|
package/dist/consoleUtils.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.ConsoleUtils = void 0;
|
|
|
8
8
|
/**
|
|
9
9
|
* Used to replace console.assert to make sure that it always throws an error, both in the browser and in Node
|
|
10
10
|
*/
|
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
11
12
|
class ConsoleUtils {
|
|
12
13
|
/**
|
|
13
14
|
* Throws an error if the in_condition is false
|
|
@@ -16,7 +17,9 @@ class ConsoleUtils {
|
|
|
16
17
|
*/
|
|
17
18
|
static assert(condition, message) {
|
|
18
19
|
if (!condition) {
|
|
19
|
-
throw new Error(typeof message === "number"
|
|
20
|
+
throw new Error(typeof message === "number"
|
|
21
|
+
? `0x${message.toString(16).padStart(3, "0")}`
|
|
22
|
+
: message);
|
|
20
23
|
}
|
|
21
24
|
}
|
|
22
25
|
}
|
package/dist/consoleUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consoleUtils.js","sourceRoot":"","sources":["../src/consoleUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"consoleUtils.js","sourceRoot":"","sources":["../src/consoleUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AACH,kEAAkE;AAClE,MAAa,YAAY;IACxB;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,SAAc,EAAE,OAAwB;QACrD,IAAI,CAAE,SAAqB,EAAE;YAC5B,MAAM,IAAI,KAAK,CACd,OAAO,OAAO,KAAK,QAAQ;gBAC1B,CAAC,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE;gBAC9C,CAAC,CAAC,OAAO,CACV,CAAC;SACF;IACF,CAAC;CACD;AAfD,oCAeC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * Used to replace console.assert to make sure that it always throws an error, both in the browser and in Node\n */\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class\nexport class ConsoleUtils {\n\t/**\n\t * Throws an error if the in_condition is false\n\t * @param in_condition - The condition we are testing: a boolean expression.\n\t * @param in_message - The error message that will be thrown if the condition is false.\n\t */\n\tstatic assert(condition: any, message: string | number): asserts condition {\n\t\tif (!(condition as boolean)) {\n\t\t\tthrow new Error(\n\t\t\t\ttypeof message === \"number\"\n\t\t\t\t\t? `0x${message.toString(16).padStart(3, \"0\")}`\n\t\t\t\t\t: message,\n\t\t\t);\n\t\t}\n\t}\n}\n"]}
|
package/dist/constants.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export declare const constants: {
|
|
|
13
13
|
*/
|
|
14
14
|
PORT_MUST_BE_NUMBER: string;
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
* INTERNAL ERROR - If you encounter this error, please contact the development team.
|
|
17
|
+
*/
|
|
18
18
|
TYPEID_NOT_DEFINED: string;
|
|
19
19
|
INVALID_PATH_IN_REFERENCE: string;
|
|
20
20
|
/**
|
|
@@ -97,12 +97,12 @@ export declare const constants: {
|
|
|
97
97
|
*/
|
|
98
98
|
FAILED_SHARE: string;
|
|
99
99
|
/**
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
* This error message will be displayed when getting the branches of a repository fails
|
|
101
|
+
*/
|
|
102
102
|
FAILED_GET_ENUMERATE_BRANCHES: string;
|
|
103
103
|
/**
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
* This error message will be displayed when a request to get an lca fails
|
|
105
|
+
*/
|
|
106
106
|
FAILED_GET_LCA: string;
|
|
107
107
|
/**
|
|
108
108
|
* This error message will be displayed when a commit fails because of an internal error while committing
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0rDH,eAAO,MAAM,SAAS;;QA1LrB;;WAEG;;QAGH;;WAEG;;QAn4CH;;WAEG;;;QAk6CH;;;;;WAKG;;QAGH;;WAEG;;QAIH;;WAEG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAKH;;WAEG;;QAGH;;WAEG;;QAIH;;WAEG;;QAIH;;WAEG;;QAIH;;WAEG;;QAIH;;WAEG;;QAIH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAIH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAlqDH;;;;;;;;WAQG;;QAIH;;;;;WAKG;;QAGH;;;;WAIG;;QAGH;;;;;;;;;;;;;;;WAeG;;QAIH;;;;;;WAMG;;QAGH;;;;;;;;;;;WAWG;;QAGH;;;;;;;WAOG;;QAIH;;;;WAIG;;QAGH;;;;WAIG;;QAIH;;WAEG;;QAGH;;;;WAIG;;QAIH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAs0CH;;;;;WAKG;;QAGH;;;;;WAKG;;QAIH;;;;;WAKG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;;;WAIG;;QAGH;;;WAGG;;QAGH;;WAEG;;QAGH;;WAEG;;QA1fH;;;;;;WAMG;;QAGH;;;;WAIG;;QAGH;;;;;WAKG;;QAGH;;;;;WAKG;;QAGH;;;;WAIG;;QAIH;;;;;;;;;;;;;;;;;;;;;WAqBG;;QAIH;;;;WAIG;;QAGH;;;;;;WAMG;;QAGH;;;;;;WAMG;;QAIH;;;;;WA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;;;QAKH;;;;WAIG;;QAGH;;;;;;WAMG;;QAIH;;;;;;;WAOG;;;;QAqhBH;;WAEG;;QAGH;;WAEG;;QAGH;;;WAGG;;;;;;;CAoKH,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.constants = void 0;
|
|
8
|
-
/* eslint-disable max-len */
|
|
9
8
|
/**
|
|
10
9
|
* Error messages for the Schema Validator
|
|
11
10
|
*/
|
|
@@ -117,8 +116,8 @@ const SchemaValidatorError = {
|
|
|
117
116
|
};
|
|
118
117
|
const TypeidHelperError = {
|
|
119
118
|
/**
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
* INTERNAL ERROR - If you encounter this error, please contact the development team.
|
|
120
|
+
*/
|
|
122
121
|
TYPEID_NOT_DEFINED: "TH-001: extractVersion requires a typeid parameter",
|
|
123
122
|
};
|
|
124
123
|
const PropertyError = {
|
|
@@ -191,8 +190,7 @@ const PropertyError = {
|
|
|
191
190
|
* The value you are trying to insert in your map property, set property or node property has a parent.
|
|
192
191
|
* You cannot insert a property that has a parent.
|
|
193
192
|
*/
|
|
194
|
-
INSERTED_ENTRY_WITH_PARENT: "PR-010: Trying to insert into a collection a property that already has " +
|
|
195
|
-
"a parent.",
|
|
193
|
+
INSERTED_ENTRY_WITH_PARENT: "PR-010: Trying to insert into a collection a property that already has " + "a parent.",
|
|
196
194
|
/**
|
|
197
195
|
* methods: Property.resolvePath, Workspace.resolvePath
|
|
198
196
|
*
|
|
@@ -405,8 +403,7 @@ const PropertyError = {
|
|
|
405
403
|
*
|
|
406
404
|
* Property.traverseUp and Property.traverseDown take one parameter: a callback function
|
|
407
405
|
*/
|
|
408
|
-
CALLBACK_NOT_FCT: "PR-050: traverseUp / traverseDown parameter: in_callback must " +
|
|
409
|
-
"be a function.",
|
|
406
|
+
CALLBACK_NOT_FCT: "PR-050: traverseUp / traverseDown parameter: in_callback must " + "be a function.",
|
|
410
407
|
/**
|
|
411
408
|
* methods: ArrayProperty.insertRange
|
|
412
409
|
*
|
|
@@ -568,8 +565,7 @@ const PropertyError = {
|
|
|
568
565
|
* Warning: Something went wrong when creating your property: it did not successfully create
|
|
569
566
|
* the property and then tried to set its value.
|
|
570
567
|
*/
|
|
571
|
-
NON_EXISTING_PROPERTY_REPOSITORY_REFERENCE: "PR-111: Internal error: PropertyFactory.create failed to create " +
|
|
572
|
-
"this property.",
|
|
568
|
+
NON_EXISTING_PROPERTY_REPOSITORY_REFERENCE: "PR-111: Internal error: PropertyFactory.create failed to create " + "this property.",
|
|
573
569
|
/**
|
|
574
570
|
* methods: Property.setValues
|
|
575
571
|
*
|
|
@@ -642,8 +638,7 @@ const PropertyError = {
|
|
|
642
638
|
* Something went wrong while the property constructor was creating a property.
|
|
643
639
|
* The parameters it received were not objects.
|
|
644
640
|
*/
|
|
645
|
-
PROP_CONSTRUCTOR_EXPECTS_OBJECTS: "PR-126: Internal error: Object expected as parameters to " +
|
|
646
|
-
"BaseProperty constructor",
|
|
641
|
+
PROP_CONSTRUCTOR_EXPECTS_OBJECTS: "PR-126: Internal error: Object expected as parameters to " + "BaseProperty constructor",
|
|
647
642
|
/**
|
|
648
643
|
* methods: Property.applyChangeSet
|
|
649
644
|
*
|
|
@@ -672,8 +667,7 @@ const PropertyError = {
|
|
|
672
667
|
* You cannot use the method .getValues on value properties. getValues is used to get multiple nested
|
|
673
668
|
* values from a custom property. To get the value of a primitive property, use .getValue instead.
|
|
674
669
|
*/
|
|
675
|
-
NO_VALUE_PROPERTY_GETVALUES: "PR-134: Cannot use .getValues on value properties or strings. " +
|
|
676
|
-
"Use .getValue instead.",
|
|
670
|
+
NO_VALUE_PROPERTY_GETVALUES: "PR-134: Cannot use .getValues on value properties or strings. " + "Use .getValue instead.",
|
|
677
671
|
/**
|
|
678
672
|
* methods: Property.setValues, ArrayProperty.insertRange, ArrayProperty.removeRange,
|
|
679
673
|
* ArrayProperty.setRange, EnumArrayProperty.setEnumByString, ArrayProperty.insert, ArrayProperty.set,
|
|
@@ -898,8 +892,7 @@ const PropertyFactoryError = {
|
|
|
898
892
|
*
|
|
899
893
|
* RepositoryReferences are not yet fully implemented. They will be soon.
|
|
900
894
|
*/
|
|
901
|
-
REPOSITORY_REF_NOT_FULLY_IMPLEMENTED: "PF-007: Repository references are not yet fully implemented and may not " +
|
|
902
|
-
"yet be used",
|
|
895
|
+
REPOSITORY_REF_NOT_FULLY_IMPLEMENTED: "PF-007: Repository references are not yet fully implemented and may not " + "yet be used",
|
|
903
896
|
/**
|
|
904
897
|
* methods: PropertyFactory.create
|
|
905
898
|
*
|
|
@@ -973,7 +966,7 @@ const PropertyFactoryError = {
|
|
|
973
966
|
*
|
|
974
967
|
* The identifier passed to $ref does not point to any schema.
|
|
975
968
|
*/
|
|
976
|
-
COULD_NOT_FIND_REFERENCE:
|
|
969
|
+
COULD_NOT_FIND_REFERENCE: "PF-026: Couldn't find reference \"",
|
|
977
970
|
/**
|
|
978
971
|
* methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom
|
|
979
972
|
*
|
|
@@ -1260,8 +1253,7 @@ const RepositoryError = {
|
|
|
1260
1253
|
* In_node parameter is required. In_node is the branch or commit you wish to compare to ‘this’ branch/commit
|
|
1261
1254
|
* node to check for equality.
|
|
1262
1255
|
*/
|
|
1263
|
-
MISSING_IN_NODE_PARAM: "RE-004: BranchNode.isEqual / CommitNode.isEqual missing " +
|
|
1264
|
-
"parameter: in_node",
|
|
1256
|
+
MISSING_IN_NODE_PARAM: "RE-004: BranchNode.isEqual / CommitNode.isEqual missing " + "parameter: in_node",
|
|
1265
1257
|
/**
|
|
1266
1258
|
* methods: BranchNode, CommitNode, Workspace.commit
|
|
1267
1259
|
*
|
|
@@ -1326,8 +1318,7 @@ const ChangeSetError = {
|
|
|
1326
1318
|
MISSING_PRE_POST_CALLBACK: "Missing callback. Either pre- or postcallback must be provided.",
|
|
1327
1319
|
};
|
|
1328
1320
|
const UtilsError = {
|
|
1329
|
-
INVALID_PATH_IN_REFERENCE: "UT-001: References may only contain absolute repository references " +
|
|
1330
|
-
"or empty strings",
|
|
1321
|
+
INVALID_PATH_IN_REFERENCE: "UT-001: References may only contain absolute repository references " + "or empty strings",
|
|
1331
1322
|
/**
|
|
1332
1323
|
* methods: Utils.traverseChangesetRecursively
|
|
1333
1324
|
*
|
|
@@ -1338,8 +1329,7 @@ const UtilsError = {
|
|
|
1338
1329
|
/**
|
|
1339
1330
|
* INTERNAL ERROR - If you encounter this error, please contact the development team.
|
|
1340
1331
|
*/
|
|
1341
|
-
NON_PRIMITIVE_ARRAY_NO_TYPEID: "UT-005: Found a non primitive type array without typeids. " +
|
|
1342
|
-
"This should never happen.",
|
|
1332
|
+
NON_PRIMITIVE_ARRAY_NO_TYPEID: "UT-005: Found a non primitive type array without typeids. " + "This should never happen.",
|
|
1343
1333
|
/**
|
|
1344
1334
|
* Filtering paths within arrays are not supported.
|
|
1345
1335
|
*/
|
|
@@ -1411,12 +1401,12 @@ const PssClientError = {
|
|
|
1411
1401
|
*/
|
|
1412
1402
|
FAILED_SHARE: "PC-013: Server error: Failed to share or unshare resources. ",
|
|
1413
1403
|
/**
|
|
1414
|
-
|
|
1415
|
-
|
|
1404
|
+
* This error message will be displayed when getting the branches of a repository fails
|
|
1405
|
+
*/
|
|
1416
1406
|
FAILED_GET_ENUMERATE_BRANCHES: "PC-014: Server error: Failed to get the branches of a repository. Repository guid: ",
|
|
1417
1407
|
/**
|
|
1418
|
-
|
|
1419
|
-
|
|
1408
|
+
* This error message will be displayed when a request to get an lca fails
|
|
1409
|
+
*/
|
|
1420
1410
|
FAILED_GET_LCA: "PC-015: Server error: Failed to get the lca.",
|
|
1421
1411
|
/**
|
|
1422
1412
|
* This error message will be displayed when a commit fails because of an internal error while committing
|