@fluid-experimental/property-common 2.0.0-dev.7.4.0.215930 → 2.0.0-dev.7.4.0.216897
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/chronometer.d.ts +1 -0
- package/dist/chronometer.d.ts.map +1 -1
- package/dist/chronometer.js +1 -0
- package/dist/chronometer.js.map +1 -1
- package/dist/consoleUtils.d.ts +1 -0
- package/dist/consoleUtils.d.ts.map +1 -1
- package/dist/consoleUtils.js +1 -0
- package/dist/consoleUtils.js.map +1 -1
- package/dist/constants.d.ts +3 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +3 -0
- package/dist/constants.js.map +1 -1
- package/dist/datastructures/collection.d.ts +3 -0
- package/dist/datastructures/collection.d.ts.map +1 -1
- package/dist/datastructures/collection.js +3 -0
- package/dist/datastructures/collection.js.map +1 -1
- package/dist/datastructures/dataArray.d.ts +28 -0
- package/dist/datastructures/dataArray.d.ts.map +1 -1
- package/dist/datastructures/dataArray.js +28 -0
- package/dist/datastructures/dataArray.js.map +1 -1
- package/dist/datastructures/integer64.d.ts +3 -0
- package/dist/datastructures/integer64.d.ts.map +1 -1
- package/dist/datastructures/integer64.js +3 -0
- package/dist/datastructures/integer64.js.map +1 -1
- package/dist/datastructures/sortedCollection.d.ts +3 -0
- package/dist/datastructures/sortedCollection.d.ts.map +1 -1
- package/dist/datastructures/sortedCollection.js +3 -0
- package/dist/datastructures/sortedCollection.js.map +1 -1
- package/dist/deferredPromise.d.ts +1 -0
- package/dist/deferredPromise.d.ts.map +1 -1
- package/dist/deferredPromise.js +1 -0
- package/dist/deferredPromise.js.map +1 -1
- package/dist/deterministicRandomGenerator.d.ts +1 -0
- package/dist/deterministicRandomGenerator.d.ts.map +1 -1
- package/dist/deterministicRandomGenerator.js +1 -0
- package/dist/deterministicRandomGenerator.js.map +1 -1
- package/dist/error_objects/flaggedError.d.ts +3 -0
- package/dist/error_objects/flaggedError.d.ts.map +1 -1
- package/dist/error_objects/flaggedError.js +3 -0
- package/dist/error_objects/flaggedError.js.map +1 -1
- package/dist/error_objects/httpError.d.ts +1 -0
- package/dist/error_objects/httpError.d.ts.map +1 -1
- package/dist/error_objects/httpError.js +1 -0
- package/dist/error_objects/httpError.js.map +1 -1
- package/dist/error_objects/httpErrorNoStack.d.ts +1 -0
- package/dist/error_objects/httpErrorNoStack.d.ts.map +1 -1
- package/dist/error_objects/httpErrorNoStack.js +1 -0
- package/dist/error_objects/httpErrorNoStack.js.map +1 -1
- package/dist/error_objects/operationError.d.ts +3 -0
- package/dist/error_objects/operationError.d.ts.map +1 -1
- package/dist/error_objects/operationError.js +3 -0
- package/dist/error_objects/operationError.js.map +1 -1
- package/dist/guidUtils.d.ts +3 -0
- package/dist/guidUtils.d.ts.map +1 -1
- package/dist/guidUtils.js +3 -0
- package/dist/guidUtils.js.map +1 -1
- package/dist/hashCalculator.d.ts +3 -0
- package/dist/hashCalculator.d.ts.map +1 -1
- package/dist/hashCalculator.js +3 -0
- package/dist/hashCalculator.js.map +1 -1
- package/dist/joinPaths.d.ts +1 -0
- package/dist/joinPaths.d.ts.map +1 -1
- package/dist/joinPaths.js +1 -0
- package/dist/joinPaths.js.map +1 -1
- package/lib/chronometer.d.ts +1 -0
- package/lib/chronometer.d.ts.map +1 -1
- package/lib/chronometer.js +1 -0
- package/lib/chronometer.js.map +1 -1
- package/lib/consoleUtils.d.ts +1 -0
- package/lib/consoleUtils.d.ts.map +1 -1
- package/lib/consoleUtils.js +1 -0
- package/lib/consoleUtils.js.map +1 -1
- package/lib/constants.d.ts +3 -0
- package/lib/constants.d.ts.map +1 -1
- package/lib/constants.js +3 -0
- package/lib/constants.js.map +1 -1
- package/lib/datastructures/collection.d.ts +3 -0
- package/lib/datastructures/collection.d.ts.map +1 -1
- package/lib/datastructures/collection.js +3 -0
- package/lib/datastructures/collection.js.map +1 -1
- package/lib/datastructures/dataArray.d.ts +28 -0
- package/lib/datastructures/dataArray.d.ts.map +1 -1
- package/lib/datastructures/dataArray.js +28 -0
- package/lib/datastructures/dataArray.js.map +1 -1
- package/lib/datastructures/integer64.d.ts +3 -0
- package/lib/datastructures/integer64.d.ts.map +1 -1
- package/lib/datastructures/integer64.js +3 -0
- package/lib/datastructures/integer64.js.map +1 -1
- package/lib/datastructures/sortedCollection.d.ts +3 -0
- package/lib/datastructures/sortedCollection.d.ts.map +1 -1
- package/lib/datastructures/sortedCollection.js +3 -0
- package/lib/datastructures/sortedCollection.js.map +1 -1
- package/lib/deferredPromise.d.ts +1 -0
- package/lib/deferredPromise.d.ts.map +1 -1
- package/lib/deferredPromise.js +1 -0
- package/lib/deferredPromise.js.map +1 -1
- package/lib/deterministicRandomGenerator.d.ts +1 -0
- package/lib/deterministicRandomGenerator.d.ts.map +1 -1
- package/lib/deterministicRandomGenerator.js +1 -0
- package/lib/deterministicRandomGenerator.js.map +1 -1
- package/lib/error_objects/flaggedError.d.ts +3 -0
- package/lib/error_objects/flaggedError.d.ts.map +1 -1
- package/lib/error_objects/flaggedError.js +3 -0
- package/lib/error_objects/flaggedError.js.map +1 -1
- package/lib/error_objects/httpError.d.ts +1 -0
- package/lib/error_objects/httpError.d.ts.map +1 -1
- package/lib/error_objects/httpError.js +1 -0
- package/lib/error_objects/httpError.js.map +1 -1
- package/lib/error_objects/httpErrorNoStack.d.ts +1 -0
- package/lib/error_objects/httpErrorNoStack.d.ts.map +1 -1
- package/lib/error_objects/httpErrorNoStack.js +1 -0
- package/lib/error_objects/httpErrorNoStack.js.map +1 -1
- package/lib/error_objects/operationError.d.ts +3 -0
- package/lib/error_objects/operationError.d.ts.map +1 -1
- package/lib/error_objects/operationError.js +3 -0
- package/lib/error_objects/operationError.js.map +1 -1
- package/lib/guidUtils.d.ts +3 -0
- package/lib/guidUtils.d.ts.map +1 -1
- package/lib/guidUtils.js +3 -0
- package/lib/guidUtils.js.map +1 -1
- package/lib/hashCalculator.d.ts +3 -0
- package/lib/hashCalculator.d.ts.map +1 -1
- package/lib/hashCalculator.js +3 -0
- package/lib/hashCalculator.js.map +1 -1
- package/lib/joinPaths.d.ts +1 -0
- package/lib/joinPaths.d.ts.map +1 -1
- package/lib/joinPaths.js +1 -0
- package/lib/joinPaths.js.map +1 -1
- package/package.json +2 -2
- package/platform-dependent/package.json +1 -1
- package/src/chronometer.ts +1 -0
- package/src/consoleUtils.ts +1 -0
- package/src/constants.ts +3 -0
- package/src/datastructures/collection.ts +3 -0
- package/src/datastructures/dataArray.ts +28 -0
- package/src/datastructures/integer64.ts +3 -0
- package/src/datastructures/sortedCollection.ts +3 -0
- package/src/deferredPromise.ts +1 -0
- package/src/deterministicRandomGenerator.ts +1 -0
- package/src/error_objects/flaggedError.ts +3 -0
- package/src/error_objects/httpError.ts +1 -0
- package/src/error_objects/httpErrorNoStack.ts +1 -0
- package/src/error_objects/operationError.ts +3 -0
- package/src/guidUtils.ts +3 -0
- package/src/hashCalculator.ts +3 -0
- package/src/joinPaths.ts +1 -0
- package/api-extractor.json +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpError.js","sourceRoot":"","sources":["../../src/error_objects/httpError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"httpError.js","sourceRoot":"","sources":["../../src/error_objects/httpError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;;;;;;;GASG;AACH,MAAM,OAAO,SAAU,SAAQ,KAAK;IACnC,YACQ,KAAc,EACd,UAAmB,EACnB,aAAsB,EACtB,MAAe,EACf,GAAY,EACZ,QAAQ,CAAC;QAEhB,KAAK,EAAE,CAAC;QAPD,UAAK,GAAL,KAAK,CAAS;QACd,eAAU,GAAV,UAAU,CAAS;QACnB,kBAAa,GAAb,aAAa,CAAS;QACtB,WAAM,GAAN,MAAM,CAAS;QACf,QAAG,GA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,CAAC;QAEpD,OAAO,CACN,cAAc,QAAQ,gBAAgB,aAAa,IAAI;YACvD,iBAAiB,gBAAgB,YAAY,SAAS,SAAS,MAAM,EAAE,CACvE,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,QAAQ;QACP,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEjE,MAAM,SAAS;QACd,4GAA4G;QAC5G,OAAO,MAAM,KAAK,WAAW;YAC7B,OAAO,MAAM,CAAC,SAAS,KAAK,WAAW;YACvC,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,KAAK,WAAW;YACjD,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE9D,OAAO,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC;IACzE,CAAC;;AAtCM,eAAK,GAAG,YAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { FlaggedError } from \"./flaggedError\";\n\n/**\n * Class extending Error with HTTP-specific error information like statusCode and statusMessage\n * @param title - The error title\n * @param statusCode - A numeric HTTP status code\n * @param statusMessage - A string message representing the response status message\n * @param method - The HTTP method used in the request\n * @param url - The URL that the request was sent to\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n * @internal\n */\nexport class HTTPError extends Error {\n\tconstructor(\n\t\tpublic title?: string,\n\t\tpublic statusCode?: number,\n\t\tpublic statusMessage?: string,\n\t\tpublic method?: string,\n\t\tpublic url?: string,\n\t\tpublic flags = 0,\n\t) {\n\t\tsuper();\n\t\tObject.setPrototypeOf(this, HTTPError.prototype);\n\t\tthis.name = \"HTTPError\";\n\t\tthis.message = this._generateMessage(title, statusCode, statusMessage, method, url);\n\t\tthis.stack = new Error(this.message).stack;\n\t}\n\n\tstatic FLAGS = FlaggedError.FLAGS;\n\n\tisQuiet(): boolean {\n\t\treturn FlaggedError.prototype.isQuiet.call(this);\n\t}\n\n\tisTransient(): boolean {\n\t\treturn FlaggedError.prototype.isTransient.call(this);\n\t}\n\n\tprivate _generateMessage(title, statusCode, statusMessage, method, url) {\n\t\tconst titleStr = title === undefined ? \"\" : String(title);\n\t\tconst statusCodeStr = statusCode === undefined ? \"\" : String(statusCode);\n\t\tconst statusMessageStr = statusMessage === undefined ? \"\" : String(statusMessage);\n\t\tconst methodStr = method === undefined ? \"\" : String(method);\n\t\tconst urlStr = url === undefined ? \"\" : String(url);\n\n\t\treturn (\n\t\t\t`HTTPError: ${titleStr}, statusCode:${statusCodeStr}, ` +\n\t\t\t`statusMessage:${statusMessageStr}, method:${methodStr}, url:${urlStr}`\n\t\t);\n\t}\n\n\t/**\n\t * Returns a string representing the HTTPError object\n\t * @returns a string representing the HTTPError object\n\t */\n\ttoString(): string {\n\t\tconst stack = this.stack === undefined ? \"\" : String(this.stack);\n\n\t\tconst isFirefox =\n\t\t\t// eslint-disable-next-line @typescript-eslint/prefer-optional-chain -- optional chain causes a test failure\n\t\t\ttypeof window !== \"undefined\" &&\n\t\t\ttypeof window.navigator !== \"undefined\" &&\n\t\t\ttypeof window.navigator.userAgent !== \"undefined\" &&\n\t\t\twindow.navigator.userAgent.toLowerCase().includes(\"firefox\");\n\n\t\treturn isFirefox ? `${this.message}, stack:${stack}` : `stack:${stack}`;\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpErrorNoStack.d.ts","sourceRoot":"","sources":["../../src/error_objects/httpErrorNoStack.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC
|
|
1
|
+
{"version":3,"file":"httpErrorNoStack.d.ts","sourceRoot":"","sources":["../../src/error_objects/httpErrorNoStack.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC9C,MAAM,CAAC,KAAK;;;MAAsB;IAElC;;;;;;;OAOG;gBACS,OAAO,CAAC,KAAA,EAAE,UAAU,CAAC,KAAA,EAAE,aAAa,CAAC,KAAA,EAAE,MAAM,CAAC,KAAA,EAAE,GAAG,CAAC,KAAA,EAAE,KAAK,CAAC,KAAA;IAMxE,QAAQ,IAAI,MAAM;CAGlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"httpErrorNoStack.js","sourceRoot":"","sources":["../../src/error_objects/httpErrorNoStack.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"httpErrorNoStack.js","sourceRoot":"","sources":["../../src/error_objects/httpErrorNoStack.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAG9C;;;;;;;OAOG;IACH,YAAY,OAAQ,EAAE,UAAW,EAAE,aAAc,EAAE,MAAO,EAAE,GAAI,EAAE,KAAM;QACvE,KAAK,CAAC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;QAC9D,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC;IACnB,CAAC;IAED,QAAQ;QACP,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;;AAlBM,sBAAK,GAAG,YAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { HTTPError } from \"./httpError\";\nimport { FlaggedError } from \"./flaggedError\";\n\n/**\n * Class extending HTTPError without storing the stack\n * @internal\n */\nexport class HTTPErrorNoStack extends HTTPError {\n\tstatic FLAGS = FlaggedError.FLAGS;\n\n\t/**\n\t * @param message - The error message\n\t * @param statusCode - A numeric HTTP status code\n\t * @param statusMessage - A string message representing the response status message\n\t * @param method - The HTTP method used in the request\n\t * @param url - The URL that the request was sent to\n\t * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n\t */\n\tconstructor(message?, statusCode?, statusMessage?, method?, url?, flags?) {\n\t\tsuper(message, statusCode, statusMessage, method, url, flags);\n\t\tObject.setPrototypeOf(this, HTTPErrorNoStack.prototype);\n\t\tdelete this.stack;\n\t}\n\n\ttoString(): string {\n\t\treturn this.message;\n\t}\n}\n"]}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
5
8
|
export declare class OperationError extends Error {
|
|
6
9
|
operation?: string | undefined;
|
|
7
10
|
statusCode?: number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operationError.d.ts","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,qBAAa,cAAe,SAAQ,KAAK;IAehC,SAAS,CAAC;IACV,UAAU,CAAC;IACX,KAAK,EAAE,MAAM;IAhBrB,MAAM,CAAC,KAAK;;;MAAsB;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAE7B;;;;;;;OAOG;gBAEF,OAAO,CAAC,EAAE,MAAM,EACT,SAAS,CAAC,oBAAQ,EAClB,UAAU,CAAC,oBAAQ,EACnB,KAAK,GAAE,MAAU;IAQzB,OAAO;IAIP,WAAW;IAIX;;OAEG;IACH,OAAO,CAAC,cAAc;IAWtB,QAAQ,IAAI,MAAM;CA4BlB"}
|
|
1
|
+
{"version":3,"file":"operationError.d.ts","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH;;GAEG;AACH,qBAAa,cAAe,SAAQ,KAAK;IAehC,SAAS,CAAC;IACV,UAAU,CAAC;IACX,KAAK,EAAE,MAAM;IAhBrB,MAAM,CAAC,KAAK;;;MAAsB;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAE7B;;;;;;;OAOG;gBAEF,OAAO,CAAC,EAAE,MAAM,EACT,SAAS,CAAC,oBAAQ,EAClB,UAAU,CAAC,oBAAQ,EACnB,KAAK,GAAE,MAAU;IAQzB,OAAO;IAIP,WAAW;IAIX;;OAEG;IACH,OAAO,CAAC,cAAc;IAWtB,QAAQ,IAAI,MAAM;CA4BlB"}
|
|
@@ -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;IAKxC;;;;;;;OAOG;IACH,YACC,OAAgB,EACT,SAAkB,EAClB,UAAmB,EACnB,QAAgB,CAAC;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,cAAS,GAAT,SAAS,CAAS;QAClB,eAAU,G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AAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;SACzD;QAED,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QAEpB,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;YACnC,GAAG,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;SAC7C;QAED,GAAG,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;QAE3B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE;YAC7B,GAAG,IAAI,YAAY,IAAI,CAAC,KAAK,EAAE,CAAC;SAChC;QAED,OAAO,GAAG,CAAC;IACZ,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\tstatic FLAGS = FlaggedError.FLAGS;\n\tpublic stack: string | undefined;\n\tpublic readonly name: string;\n\n\t/**\n\t * Instantiates an OperationError, which mimics the Error class with added properties\n\t * meant for reporting the result of operations.\n\t * @param message - The error message.\n\t * @param operation - The operation name.\n\t * @param statusCode - The operation result as a numerical status code.\n\t * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n\t */\n\tconstructor(\n\t\tmessage?: string,\n\t\tpublic operation?: string,\n\t\tpublic statusCode?: number,\n\t\tpublic flags: number = 0,\n\t) {\n\t\tsuper(message);\n\t\tObject.setPrototypeOf(this, OperationError.prototype);\n\t\tthis.name = \"OperationError\";\n\t\tthis.stack = Error(message).stack;\n\t}\n\n\tisQuiet() {\n\t\treturn FlaggedError.prototype.isQuiet.call(this);\n\t}\n\n\tisTransient() {\n\t\treturn FlaggedError.prototype.isTransient.call(this);\n\t}\n\n\t/**\n\t * @returns A string representation of the error flags.\n\t */\n\tprivate _flagsToString() {\n\t\tconst flagArray: string[] = [];\n\t\t_.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\tif ((this.flags & flagValue) === flagValue) {\n\t\t\t\tflagArray.push(flagName);\n\t\t\t}\n\t\t});\n\t\treturn `${this.flags} [${flagArray.join(\",\")}]`;\n\t}\n\n\ttoString(): string {\n\t\tconst extendedFieldsArray: string[] = [];\n\t\tif (this.operation !== undefined) {\n\t\t\textendedFieldsArray.push(this.operation);\n\t\t}\n\n\t\tif (this.statusCode !== undefined) {\n\t\t\textendedFieldsArray.push(this.statusCode.toString());\n\t\t}\n\n\t\tif (this.flags) {\n\t\t\textendedFieldsArray.push(this._flagsToString.call(this));\n\t\t}\n\n\t\tlet msg = this.name;\n\n\t\tif (extendedFieldsArray.length > 0) {\n\t\t\tmsg += `[${extendedFieldsArray.join(\", \")}]`;\n\t\t}\n\n\t\tmsg += `: ${this.message}`;\n\n\t\tif (this.stack !== undefined) {\n\t\t\tmsg += `, stack: ${this.stack}`;\n\t\t}\n\n\t\treturn msg;\n\t}\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;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,KAAK;IAKxC;;;;;;;OAOG;IACH,YACC,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,GAA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I,CAAC,IAAI,CAAC,CAAC,CAAC;SACzD;QAED,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QAEpB,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;YACnC,GAAG,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;SAC7C;QAED,GAAG,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;QAE3B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE;YAC7B,GAAG,IAAI,YAAY,IAAI,CAAC,KAAK,EAAE,CAAC;SAChC;QAED,OAAO,GAAG,CAAC;IACZ,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\n/**\n * @internal\n */\nexport class OperationError extends Error {\n\tstatic FLAGS = FlaggedError.FLAGS;\n\tpublic stack: string | undefined;\n\tpublic readonly name: string;\n\n\t/**\n\t * Instantiates an OperationError, which mimics the Error class with added properties\n\t * meant for reporting the result of operations.\n\t * @param message - The error message.\n\t * @param operation - The operation name.\n\t * @param statusCode - The operation result as a numerical status code.\n\t * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n\t */\n\tconstructor(\n\t\tmessage?: string,\n\t\tpublic operation?: string,\n\t\tpublic statusCode?: number,\n\t\tpublic flags: number = 0,\n\t) {\n\t\tsuper(message);\n\t\tObject.setPrototypeOf(this, OperationError.prototype);\n\t\tthis.name = \"OperationError\";\n\t\tthis.stack = Error(message).stack;\n\t}\n\n\tisQuiet() {\n\t\treturn FlaggedError.prototype.isQuiet.call(this);\n\t}\n\n\tisTransient() {\n\t\treturn FlaggedError.prototype.isTransient.call(this);\n\t}\n\n\t/**\n\t * @returns A string representation of the error flags.\n\t */\n\tprivate _flagsToString() {\n\t\tconst flagArray: string[] = [];\n\t\t_.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n\t\t\t// eslint-disable-next-line no-bitwise\n\t\t\tif ((this.flags & flagValue) === flagValue) {\n\t\t\t\tflagArray.push(flagName);\n\t\t\t}\n\t\t});\n\t\treturn `${this.flags} [${flagArray.join(\",\")}]`;\n\t}\n\n\ttoString(): string {\n\t\tconst extendedFieldsArray: string[] = [];\n\t\tif (this.operation !== undefined) {\n\t\t\textendedFieldsArray.push(this.operation);\n\t\t}\n\n\t\tif (this.statusCode !== undefined) {\n\t\t\textendedFieldsArray.push(this.statusCode.toString());\n\t\t}\n\n\t\tif (this.flags) {\n\t\t\textendedFieldsArray.push(this._flagsToString.call(this));\n\t\t}\n\n\t\tlet msg = this.name;\n\n\t\tif (extendedFieldsArray.length > 0) {\n\t\t\tmsg += `[${extendedFieldsArray.join(\", \")}]`;\n\t\t}\n\n\t\tmsg += `: ${this.message}`;\n\n\t\tif (this.stack !== undefined) {\n\t\t\tmsg += `, stack: ${this.stack}`;\n\t\t}\n\n\t\treturn msg;\n\t}\n}\n"]}
|
package/lib/guidUtils.d.ts
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
5
8
|
export declare const GuidUtils: {
|
|
6
9
|
uint32x4ToGUID: (in_guidArray: Uint32Array | Int32Array | number[], base64?: boolean) => string;
|
|
7
10
|
guidToUint32x4: (in_guid: string, result?: Uint32Array) => Uint32Array;
|
package/lib/guidUtils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guidUtils.d.ts","sourceRoot":"","sources":["../src/guidUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqUH,eAAO,MAAM,SAAS;
|
|
1
|
+
{"version":3,"file":"guidUtils.d.ts","sourceRoot":"","sources":["../src/guidUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqUH;;GAEG;AACH,eAAO,MAAM,SAAS;mCAnLP,WAAW,GAAG,UAAU,GAAG,MAAM,EAAE,WACzC,OAAO,KACb,MAAM;8BA+BC,MAAM,WACP,WAAW,KACjB,WAAW;8BAsBmB,MAAM;8BASN,MAAM;;wCAaS,MAAM;sBAwB7B,MAAM;6BA2DU,MAAM,YAAY,MAAM,uBAAmB,MAAM;qCAhD9E,WAAW,aACX,WAAW,cACV,WAAW,KACrB,WAAW;CAwEb,CAAC"}
|
package/lib/guidUtils.js
CHANGED
package/lib/guidUtils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guidUtils.js","sourceRoot":"","sources":["../src/guidUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,+BAA+B;AAE/B;;GAEG;AAEH,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,OAAO,GAAG;IACf,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,aAAa,EAAE,KAAK;IAEpB;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,OAAgB,EAAE,6BAAsC,KAAK;QACvE,6DAA6D;QAC7D,sDAAsD;QACtD,IAAI,IAAI,CAAC,aAAa,IAAI,CAAC,0BAA0B,EAAE;YACtD,OAAO,CAAC,CAAC;SACT;aAAM;YACN,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;YAE1B,IAAI,OAAO,KAAK,SAAS,EAAE;gBAC1B,MAAM,YAAY,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uB;IACvB,YAAY;IACZ,MAAM;IACN,YAAY;IACZ,mBAAmB;CACnB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/* eslint-disable no-bitwise */\n\n/**\n * @fileoverview Utility functions related to handling GUIDs\n */\n\nimport base64js from \"base64-js\";\nimport { generateRandomUInt32Array } from \"../platform-dependent\";\nconst UINT_32HASH_PRIME = 16777619;\n\n/**\n * Fast high quality 32 bit RNG for consistent GUID.\n *\n * Good \"randomness\" (distribution); Period is approximately equal to 3.11*10^37\n * Implementation was take from \"Numerical recipes. The Art of Scientific Computing.\", 3rd edition.\n * Page 357, algorithm name: Ranlim32\n */\nconst guidRNG = {\n\tu: 0,\n\tv: 0,\n\tw1: 0,\n\tw2: 0,\n\tisInitialized: false,\n\n\t/**\n\t * Initialize RNG.\n\t * This function need to be called once, before the first GUID gets created.\n\t *\n\t * @param in_seed - Optional 32-bit seed for GUID RNG.\n\t * If no seed is given, a combination of system's local time and `Math.random()` is used.\n\t * @param in_enforceReInitialization - Optionally enforce re-initialization with another seed.\n\t *\n\t * @returns The seed used to initialize the RNG;\n\t * If re-initialization is not enforced, a zero indicates that the RNG was not re-seeded.\n\t *\n\t * @alias property-common.initializeGUIDGenerator\n\t */\n\tinitialize(in_seed?: number, in_enforceReInitialization: boolean = false): number {\n\t\t// Quit if the RNG has already been initialized and we do not\n\t\t// want to enforce a re-initialization with a new seed\n\t\tif (this.isInitialized && !in_enforceReInitialization) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tthis.isInitialized = true;\n\n\t\t\tif (in_seed === undefined) {\n\t\t\t\tconst randomValues = generateRandomUInt32Array(4);\n\t\t\t\tthis.u = randomValues[0];\n\t\t\t\tthis.v = randomValues[1];\n\t\t\t\tthis.w1 = randomValues[2];\n\t\t\t\tthis.w2 = randomValues[3];\n\t\t\t} else {\n\t\t\t\tthis.v = 224461437;\n\t\t\t\tthis.w1 = 521288629;\n\t\t\t\tthis.w2 = 362436069;\n\n\t\t\t\tthis.u = in_seed ^ this.v;\n\t\t\t\tthis.genRandUInt32();\n\t\t\t\tthis.v = this.u;\n\t\t\t\tthis.genRandUInt32();\n\t\t\t}\n\t\t\treturn -1;\n\t\t}\n\t},\n\n\t/**\n\t * @returns 32-bit random number based on the RNGs internal state\n\t */\n\tgenRandUInt32(): number {\n\t\tthis.u = multiply_uint32(this.u, 2891336453) + 1640531513;\n\t\tthis.v ^= this.v >>> 13;\n\t\tthis.v ^= this.v << 17;\n\t\tthis.v = ((this.v >>> 5) ^ this.v) >>> 0;\n\n\t\tthis.w1 = multiply_uint32(33378, this.w1 & 0xffff) + (this.w1 >>> 16);\n\t\tthis.w2 = multiply_uint32(57225, this.w2 & 0xffff) + (this.w2 >>> 16);\n\n\t\tlet x = this.u ^ (this.u << 9);\n\t\tx ^= x >>> 17;\n\t\tx ^= x << 6;\n\n\t\tlet y = this.w1 ^ (this.w1 << 17);\n\t\ty ^= y >>> 15;\n\t\ty ^= y << 5;\n\t\treturn (((x >>> 0) + this.v) ^ ((y >>> 0) + this.w2)) >>> 0;\n\t},\n};\n\n/**\n * Check if GUID is base64 based on the length\n * The length of base16 GUID is 36, base64 - 22\n *\n * @param GUID - Input GUID\n * @returns True if GUID is base64\n */\nconst isBase64 = (GUID: string): boolean => GUID.length === 22;\n\n/**\n * Allows for 32-bit integer multiplication with C-like semantics\n *\n * @param a - unsigned int32 value\n * @param b - unsigned int32 value\n * @returns The result of the unsigned integer multiplication.\n */\nfunction multiply_uint32(a: number, b: number): number {\n\tlet n = a;\n\tlet m = b;\n\n\tn >>>= 0;\n\tm >>>= 0;\n\tconst nlo = n & 0xffff;\n\treturn ((((n - nlo) * m) >>> 0) + nlo * m) >>> 0;\n}\n\n/**\n * Helper function to convert base64 encoding to url friendly format\n *\n * @param base64 - Base64 string\n *\n * @returns Url-friendly base64 encoding.\n */\nconst toUrlBase64 = (base64: string): string =>\n\tbase64.replace(/\\+/g, \"-\").replace(/\\//g, \"_\").split(\"=\")[0];\n\n/**\n * Helper function to recover padding of base64 encoding\n *\n * @param x - Base64 string\n *\n * @returns Padded base64 encoding.\n */\nconst toPaddedBase64 = function (x: string): string {\n\tlet base64 = x;\n\tconst padLength = 4 - (base64.length % 4);\n\tbase64 += \"=\".repeat(padLength);\n\treturn base64;\n};\n\n/**\n * Helper function to create a GUID string from an array with 32Bit values\n *\n * @param in_guidArray - Array with the 32 bit values\n * @param base64 - Use base64 encoding instead of standart guids\n *\n * @returns The GUID\n */\nconst uint32x4ToGUID = function (\n\tin_guidArray: Uint32Array | Int32Array | number[],\n\tbase64: boolean = false,\n): string {\n\tif (base64) {\n\t\tconst intArray = new Uint32Array(in_guidArray);\n\t\tconst byteArray = new Uint8Array(intArray.buffer);\n\t\tconst base64guid = base64js.fromByteArray(byteArray);\n\t\t// return url-friendly base64\n\t\treturn toUrlBase64(base64guid);\n\t} else {\n\t\t// Convert to hexadecimal string\n\t\tlet str = \"\";\n\t\tfor (let i = 0; i < 4; i++) {\n\t\t\tconst hex = in_guidArray[i].toString(16);\n\t\t\tstr += \"0\".repeat(8 - hex.length) + hex;\n\t\t}\n\t\treturn `${str.substr(0, 8)}-${str.substr(8, 4)}-${str.substr(12, 4)}-${str.substr(\n\t\t\t16,\n\t\t\t4,\n\t\t)}-${str.substr(20, 12)}`;\n\t}\n};\n\n/**\n * Convert GUID to four 32Bit values.\n *\n * @param in_guid - The GUID to convert\n * @param io_result - An optional array to write the result to.\n * If no array is given, a new one gets created.\n * @returns Four 32-bit values\n *\n */\nconst guidToUint32x4 = function (\n\tin_guid: string,\n\tresult: Uint32Array = new Uint32Array(4),\n): Uint32Array {\n\tif (isBase64(in_guid)) {\n\t\tconst GUID = toPaddedBase64(in_guid);\n\t\tconst bytes = base64js.toByteArray(GUID);\n\t\tconst intArray = new Uint32Array(bytes.buffer);\n\t\tresult.set(intArray);\n\t} else {\n\t\tresult[0] = parseInt(`0x${in_guid.substr(0, 8)}`, 16);\n\t\tresult[1] = parseInt(`0x${in_guid.substr(9, 4)}${in_guid.substr(14, 4)}`, 16);\n\t\tresult[2] = parseInt(`0x${in_guid.substr(19, 4)}${in_guid.substr(24, 4)}`, 16);\n\t\tresult[3] = parseInt(`0x${in_guid.substr(28, 8)}`, 16);\n\t}\n\treturn result;\n};\n\n/**\n * Convert base64 GUID into base16.\n *\n * @param in_guid - Base64 GUID to convert\n * @returns Base16 GUID\n *\n */\nconst base64Tobase16 = (in_guid: string) => uint32x4ToGUID(guidToUint32x4(in_guid));\n\n/**\n * Convert base16 into base64 GUID.\n *\n * @param in_guid - Base16 GUID to convert\n * @returns Base64 GUID\n *\n */\nconst base16ToBase64 = (in_guid: string) => uint32x4ToGUID(guidToUint32x4(in_guid), true);\n\n/**\n * Based on the boolean parameter generate either\n * a 128 bit base16 GUID with the following format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx\n * or url-friendly base64 string GUID of length 22\n *\n * This function is *not* thread safe!\n *\n * @param base64 - Use base64 encoding instead of standart guids\n *\n * @returns The GUID\n */\nconst generateGUID = function (base64 = false): string {\n\tconst rnds = new Uint32Array(4);\n\n\t// Random numbers for GUID (4x32 bit)\n\trnds[0] = guidRNG.genRandUInt32();\n\trnds[1] = guidRNG.genRandUInt32();\n\trnds[2] = guidRNG.genRandUInt32();\n\trnds[3] = guidRNG.genRandUInt32();\n\treturn uint32x4ToGUID(rnds, base64);\n};\n\n// The last character is checked this way because last 4 bits of 22nd character are ignored\n// by decoder, e.g. \"+Q\" and \"+Z\" result in the same decoding.\n// The only characters with last 4 bits set to 0 are A, Q, g, w.\nconst reBase64 = /^[\\w-]{21}[AQgw]$/;\n// eslint-disable-next-line unicorn/no-unsafe-regex\nconst reBase16 = /^[\\dA-Fa-f]{8}(?:-[\\dA-Fa-f]{4}){3}-[\\dA-Fa-f]{12}$/;\n\n/**\n * Routine used to check whether the given string is a valid GUID\n *\n * @param in_guid - The GUID to test.\n * @returns True if the parameter is a valid GUID, false otherwise.\n */\nconst isGUID = (in_guid: string) => reBase16.test(in_guid) || reBase64.test(in_guid);\n\n/**\n * Performs a hash combination operation on the two supplied Uint32 arrays of length 4 (using\n * a variant of the algorithm from boost::hash_combine\n *\n * @param in_array1 - First array\n * @param in_array2 - Second array\n * @returns New combined hash\n */\nconst hashCombine4xUint32 = function (\n\tin_array1: Uint32Array,\n\tin_array2: Uint32Array,\n\tio_result?: Uint32Array,\n): Uint32Array {\n\tlet accumulated = io_result;\n\tif (accumulated === undefined) {\n\t\taccumulated = new Uint32Array(in_array2);\n\t} else {\n\t\taccumulated[0] = in_array2[0];\n\t\taccumulated[1] = in_array2[1];\n\t\taccumulated[2] = in_array2[2];\n\t\taccumulated[3] = in_array2[3];\n\t}\n\n\taccumulated[0] += 0x9e3779b9;\n\taccumulated[1] += 0x638f227;\n\taccumulated[2] += 0x1aff2bad;\n\taccumulated[3] += 0x3a8f05c5;\n\n\taccumulated[0] += in_array1[3] << 6;\n\taccumulated[1] += in_array1[0] << 6;\n\taccumulated[2] += in_array1[1] << 6;\n\taccumulated[3] += in_array1[2] << 6;\n\n\taccumulated[0] += in_array1[2] >> 2;\n\taccumulated[1] += in_array1[3] >> 2;\n\taccumulated[2] += in_array1[0] >> 2;\n\taccumulated[3] += in_array1[1] >> 2;\n\n\taccumulated[0] = ((accumulated[0] ^ in_array1[1]) * UINT_32HASH_PRIME) >>> 0;\n\taccumulated[1] = ((accumulated[1] ^ in_array1[2]) * UINT_32HASH_PRIME) >>> 0;\n\taccumulated[2] = ((accumulated[2] ^ in_array1[3]) * UINT_32HASH_PRIME) >>> 0;\n\taccumulated[3] = ((accumulated[3] ^ in_array1[0]) * UINT_32HASH_PRIME) >>> 0;\n\n\treturn accumulated;\n};\n\n/**\n * Takes two guids and generates a new derived GUID.\n *\n * @remarks Note: You should only use this helper function when you need only one combination.\n * Otherwise, it is more efficient to work on the uint8 arrays directly.\n *\n * @param in_guid1 - Input GUID\n * @param in_guid2 - Input GUID\n * @param base64 - Use base64 encoding instead of standart GUIDs\n * @returns Combined GUID\n */\nconst combineGuids = function (in_guid1: string, in_guid2: string, base64 = false): string {\n\tconst firstArray = guidToUint32x4(in_guid1);\n\tconst secondArray = guidToUint32x4(in_guid2);\n\tconst combined = hashCombine4xUint32(firstArray, secondArray);\n\treturn uint32x4ToGUID(combined, base64);\n};\n\n// Make sure the RNG is initialized\nguidRNG.initialize();\n\nconst initializeGUIDGenerator = (...args) => {\n\tguidRNG.initialize(...args);\n};\n\nexport const GuidUtils = {\n\tuint32x4ToGUID,\n\tguidToUint32x4,\n\tbase64Tobase16,\n\tbase16ToBase64,\n\tinitializeGUIDGenerator,\n\tgenerateGUID,\n\tisGUID,\n\tcombineGuids,\n\thashCombine4xUint32,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"guidUtils.js","sourceRoot":"","sources":["../src/guidUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,+BAA+B;AAE/B;;GAEG;AAEH,OAAO,QAAQ,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,OAAO,GAAG;IACf,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;IACL,aAAa,EAAE,KAAK;IAEpB;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,OAAgB,EAAE,6BAAsC,KAAK;QACvE,6DAA6D;QAC7D,sDAAsD;QACtD,IAAI,IAAI,CAAC,aAAa,IAAI,CAAC,0BAA0B,EAAE;YACtD,OAAO,CAAC,CAAC;SACT;aAAM;YACN,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;YAE1B,IAAI,OAAO,KAAK,SAAS,EAAE;gBAC1B,MAAM,YAAY,GAAG,yBAAyB,CAAC,CAAC,CAAC,CAAC;gBAClD,IAAI,CAAC,CAAC,GAAG,YAAY,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","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/* eslint-disable no-bitwise */\n\n/**\n * @fileoverview Utility functions related to handling GUIDs\n */\n\nimport base64js from \"base64-js\";\nimport { generateRandomUInt32Array } from \"../platform-dependent\";\nconst UINT_32HASH_PRIME = 16777619;\n\n/**\n * Fast high quality 32 bit RNG for consistent GUID.\n *\n * Good \"randomness\" (distribution); Period is approximately equal to 3.11*10^37\n * Implementation was take from \"Numerical recipes. The Art of Scientific Computing.\", 3rd edition.\n * Page 357, algorithm name: Ranlim32\n */\nconst guidRNG = {\n\tu: 0,\n\tv: 0,\n\tw1: 0,\n\tw2: 0,\n\tisInitialized: false,\n\n\t/**\n\t * Initialize RNG.\n\t * This function need to be called once, before the first GUID gets created.\n\t *\n\t * @param in_seed - Optional 32-bit seed for GUID RNG.\n\t * If no seed is given, a combination of system's local time and `Math.random()` is used.\n\t * @param in_enforceReInitialization - Optionally enforce re-initialization with another seed.\n\t *\n\t * @returns The seed used to initialize the RNG;\n\t * If re-initialization is not enforced, a zero indicates that the RNG was not re-seeded.\n\t *\n\t * @alias property-common.initializeGUIDGenerator\n\t */\n\tinitialize(in_seed?: number, in_enforceReInitialization: boolean = false): number {\n\t\t// Quit if the RNG has already been initialized and we do not\n\t\t// want to enforce a re-initialization with a new seed\n\t\tif (this.isInitialized && !in_enforceReInitialization) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\tthis.isInitialized = true;\n\n\t\t\tif (in_seed === undefined) {\n\t\t\t\tconst randomValues = generateRandomUInt32Array(4);\n\t\t\t\tthis.u = randomValues[0];\n\t\t\t\tthis.v = randomValues[1];\n\t\t\t\tthis.w1 = randomValues[2];\n\t\t\t\tthis.w2 = randomValues[3];\n\t\t\t} else {\n\t\t\t\tthis.v = 224461437;\n\t\t\t\tthis.w1 = 521288629;\n\t\t\t\tthis.w2 = 362436069;\n\n\t\t\t\tthis.u = in_seed ^ this.v;\n\t\t\t\tthis.genRandUInt32();\n\t\t\t\tthis.v = this.u;\n\t\t\t\tthis.genRandUInt32();\n\t\t\t}\n\t\t\treturn -1;\n\t\t}\n\t},\n\n\t/**\n\t * @returns 32-bit random number based on the RNGs internal state\n\t */\n\tgenRandUInt32(): number {\n\t\tthis.u = multiply_uint32(this.u, 2891336453) + 1640531513;\n\t\tthis.v ^= this.v >>> 13;\n\t\tthis.v ^= this.v << 17;\n\t\tthis.v = ((this.v >>> 5) ^ this.v) >>> 0;\n\n\t\tthis.w1 = multiply_uint32(33378, this.w1 & 0xffff) + (this.w1 >>> 16);\n\t\tthis.w2 = multiply_uint32(57225, this.w2 & 0xffff) + (this.w2 >>> 16);\n\n\t\tlet x = this.u ^ (this.u << 9);\n\t\tx ^= x >>> 17;\n\t\tx ^= x << 6;\n\n\t\tlet y = this.w1 ^ (this.w1 << 17);\n\t\ty ^= y >>> 15;\n\t\ty ^= y << 5;\n\t\treturn (((x >>> 0) + this.v) ^ ((y >>> 0) + this.w2)) >>> 0;\n\t},\n};\n\n/**\n * Check if GUID is base64 based on the length\n * The length of base16 GUID is 36, base64 - 22\n *\n * @param GUID - Input GUID\n * @returns True if GUID is base64\n */\nconst isBase64 = (GUID: string): boolean => GUID.length === 22;\n\n/**\n * Allows for 32-bit integer multiplication with C-like semantics\n *\n * @param a - unsigned int32 value\n * @param b - unsigned int32 value\n * @returns The result of the unsigned integer multiplication.\n */\nfunction multiply_uint32(a: number, b: number): number {\n\tlet n = a;\n\tlet m = b;\n\n\tn >>>= 0;\n\tm >>>= 0;\n\tconst nlo = n & 0xffff;\n\treturn ((((n - nlo) * m) >>> 0) + nlo * m) >>> 0;\n}\n\n/**\n * Helper function to convert base64 encoding to url friendly format\n *\n * @param base64 - Base64 string\n *\n * @returns Url-friendly base64 encoding.\n */\nconst toUrlBase64 = (base64: string): string =>\n\tbase64.replace(/\\+/g, \"-\").replace(/\\//g, \"_\").split(\"=\")[0];\n\n/**\n * Helper function to recover padding of base64 encoding\n *\n * @param x - Base64 string\n *\n * @returns Padded base64 encoding.\n */\nconst toPaddedBase64 = function (x: string): string {\n\tlet base64 = x;\n\tconst padLength = 4 - (base64.length % 4);\n\tbase64 += \"=\".repeat(padLength);\n\treturn base64;\n};\n\n/**\n * Helper function to create a GUID string from an array with 32Bit values\n *\n * @param in_guidArray - Array with the 32 bit values\n * @param base64 - Use base64 encoding instead of standart guids\n *\n * @returns The GUID\n */\nconst uint32x4ToGUID = function (\n\tin_guidArray: Uint32Array | Int32Array | number[],\n\tbase64: boolean = false,\n): string {\n\tif (base64) {\n\t\tconst intArray = new Uint32Array(in_guidArray);\n\t\tconst byteArray = new Uint8Array(intArray.buffer);\n\t\tconst base64guid = base64js.fromByteArray(byteArray);\n\t\t// return url-friendly base64\n\t\treturn toUrlBase64(base64guid);\n\t} else {\n\t\t// Convert to hexadecimal string\n\t\tlet str = \"\";\n\t\tfor (let i = 0; i < 4; i++) {\n\t\t\tconst hex = in_guidArray[i].toString(16);\n\t\t\tstr += \"0\".repeat(8 - hex.length) + hex;\n\t\t}\n\t\treturn `${str.substr(0, 8)}-${str.substr(8, 4)}-${str.substr(12, 4)}-${str.substr(\n\t\t\t16,\n\t\t\t4,\n\t\t)}-${str.substr(20, 12)}`;\n\t}\n};\n\n/**\n * Convert GUID to four 32Bit values.\n *\n * @param in_guid - The GUID to convert\n * @param io_result - An optional array to write the result to.\n * If no array is given, a new one gets created.\n * @returns Four 32-bit values\n *\n */\nconst guidToUint32x4 = function (\n\tin_guid: string,\n\tresult: Uint32Array = new Uint32Array(4),\n): Uint32Array {\n\tif (isBase64(in_guid)) {\n\t\tconst GUID = toPaddedBase64(in_guid);\n\t\tconst bytes = base64js.toByteArray(GUID);\n\t\tconst intArray = new Uint32Array(bytes.buffer);\n\t\tresult.set(intArray);\n\t} else {\n\t\tresult[0] = parseInt(`0x${in_guid.substr(0, 8)}`, 16);\n\t\tresult[1] = parseInt(`0x${in_guid.substr(9, 4)}${in_guid.substr(14, 4)}`, 16);\n\t\tresult[2] = parseInt(`0x${in_guid.substr(19, 4)}${in_guid.substr(24, 4)}`, 16);\n\t\tresult[3] = parseInt(`0x${in_guid.substr(28, 8)}`, 16);\n\t}\n\treturn result;\n};\n\n/**\n * Convert base64 GUID into base16.\n *\n * @param in_guid - Base64 GUID to convert\n * @returns Base16 GUID\n *\n */\nconst base64Tobase16 = (in_guid: string) => uint32x4ToGUID(guidToUint32x4(in_guid));\n\n/**\n * Convert base16 into base64 GUID.\n *\n * @param in_guid - Base16 GUID to convert\n * @returns Base64 GUID\n *\n */\nconst base16ToBase64 = (in_guid: string) => uint32x4ToGUID(guidToUint32x4(in_guid), true);\n\n/**\n * Based on the boolean parameter generate either\n * a 128 bit base16 GUID with the following format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx\n * or url-friendly base64 string GUID of length 22\n *\n * This function is *not* thread safe!\n *\n * @param base64 - Use base64 encoding instead of standart guids\n *\n * @returns The GUID\n */\nconst generateGUID = function (base64 = false): string {\n\tconst rnds = new Uint32Array(4);\n\n\t// Random numbers for GUID (4x32 bit)\n\trnds[0] = guidRNG.genRandUInt32();\n\trnds[1] = guidRNG.genRandUInt32();\n\trnds[2] = guidRNG.genRandUInt32();\n\trnds[3] = guidRNG.genRandUInt32();\n\treturn uint32x4ToGUID(rnds, base64);\n};\n\n// The last character is checked this way because last 4 bits of 22nd character are ignored\n// by decoder, e.g. \"+Q\" and \"+Z\" result in the same decoding.\n// The only characters with last 4 bits set to 0 are A, Q, g, w.\nconst reBase64 = /^[\\w-]{21}[AQgw]$/;\n// eslint-disable-next-line unicorn/no-unsafe-regex\nconst reBase16 = /^[\\dA-Fa-f]{8}(?:-[\\dA-Fa-f]{4}){3}-[\\dA-Fa-f]{12}$/;\n\n/**\n * Routine used to check whether the given string is a valid GUID\n *\n * @param in_guid - The GUID to test.\n * @returns True if the parameter is a valid GUID, false otherwise.\n */\nconst isGUID = (in_guid: string) => reBase16.test(in_guid) || reBase64.test(in_guid);\n\n/**\n * Performs a hash combination operation on the two supplied Uint32 arrays of length 4 (using\n * a variant of the algorithm from boost::hash_combine\n *\n * @param in_array1 - First array\n * @param in_array2 - Second array\n * @returns New combined hash\n */\nconst hashCombine4xUint32 = function (\n\tin_array1: Uint32Array,\n\tin_array2: Uint32Array,\n\tio_result?: Uint32Array,\n): Uint32Array {\n\tlet accumulated = io_result;\n\tif (accumulated === undefined) {\n\t\taccumulated = new Uint32Array(in_array2);\n\t} else {\n\t\taccumulated[0] = in_array2[0];\n\t\taccumulated[1] = in_array2[1];\n\t\taccumulated[2] = in_array2[2];\n\t\taccumulated[3] = in_array2[3];\n\t}\n\n\taccumulated[0] += 0x9e3779b9;\n\taccumulated[1] += 0x638f227;\n\taccumulated[2] += 0x1aff2bad;\n\taccumulated[3] += 0x3a8f05c5;\n\n\taccumulated[0] += in_array1[3] << 6;\n\taccumulated[1] += in_array1[0] << 6;\n\taccumulated[2] += in_array1[1] << 6;\n\taccumulated[3] += in_array1[2] << 6;\n\n\taccumulated[0] += in_array1[2] >> 2;\n\taccumulated[1] += in_array1[3] >> 2;\n\taccumulated[2] += in_array1[0] >> 2;\n\taccumulated[3] += in_array1[1] >> 2;\n\n\taccumulated[0] = ((accumulated[0] ^ in_array1[1]) * UINT_32HASH_PRIME) >>> 0;\n\taccumulated[1] = ((accumulated[1] ^ in_array1[2]) * UINT_32HASH_PRIME) >>> 0;\n\taccumulated[2] = ((accumulated[2] ^ in_array1[3]) * UINT_32HASH_PRIME) >>> 0;\n\taccumulated[3] = ((accumulated[3] ^ in_array1[0]) * UINT_32HASH_PRIME) >>> 0;\n\n\treturn accumulated;\n};\n\n/**\n * Takes two guids and generates a new derived GUID.\n *\n * @remarks Note: You should only use this helper function when you need only one combination.\n * Otherwise, it is more efficient to work on the uint8 arrays directly.\n *\n * @param in_guid1 - Input GUID\n * @param in_guid2 - Input GUID\n * @param base64 - Use base64 encoding instead of standart GUIDs\n * @returns Combined GUID\n */\nconst combineGuids = function (in_guid1: string, in_guid2: string, base64 = false): string {\n\tconst firstArray = guidToUint32x4(in_guid1);\n\tconst secondArray = guidToUint32x4(in_guid2);\n\tconst combined = hashCombine4xUint32(firstArray, secondArray);\n\treturn uint32x4ToGUID(combined, base64);\n};\n\n// Make sure the RNG is initialized\nguidRNG.initialize();\n\nconst initializeGUIDGenerator = (...args) => {\n\tguidRNG.initialize(...args);\n};\n\n/**\n * @internal\n */\nexport const GuidUtils = {\n\tuint32x4ToGUID,\n\tguidToUint32x4,\n\tbase64Tobase16,\n\tbase16ToBase64,\n\tinitializeGUIDGenerator,\n\tgenerateGUID,\n\tisGUID,\n\tcombineGuids,\n\thashCombine4xUint32,\n};\n"]}
|
package/lib/hashCalculator.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hashCalculator.d.ts","sourceRoot":"","sources":["../src/hashCalculator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,wBAAgB,aAAa,CAAC,GAAG,KAAA,EAAE,IAAI,SAAI,UAM1C"}
|
|
1
|
+
{"version":3,"file":"hashCalculator.d.ts","sourceRoot":"","sources":["../src/hashCalculator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH;;GAEG;AACH,wBAAgB,aAAa,CAAC,GAAG,KAAA,EAAE,IAAI,SAAI,UAM1C"}
|
package/lib/hashCalculator.js
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
* using the murmur3 hash (see https://code.google.com/p/smhasher/)
|
|
8
8
|
*/
|
|
9
9
|
import murmurHash3 from "murmurhash3js";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
10
13
|
export function calculateHash(key, seed = 0) {
|
|
11
14
|
const str = murmurHash3.x86.hash128(key, seed);
|
|
12
15
|
return `${str.substr(0, 8)}-${str.substr(8, 4)}-${str.substr(12, 4)}-${str.substr(16, 4)}-${str.substr(20, 12)}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hashCalculator.js","sourceRoot":"","sources":["../src/hashCalculator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AAEH,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,MAAM,UAAU,aAAa,CAAC,GAAG,EAAE,IAAI,GAAG,CAAC;IAC1C,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC/C,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAChF,EAAE,EACF,CAAC,CACD,IAAI,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @fileoverview Utility class to compute an hash for a given set of variables\n * using the murmur3 hash (see https://code.google.com/p/smhasher/)\n */\n\nimport murmurHash3 from \"murmurhash3js\";\n\nexport function calculateHash(key, seed = 0) {\n\tconst str = murmurHash3.x86.hash128(key, seed);\n\treturn `${str.substr(0, 8)}-${str.substr(8, 4)}-${str.substr(12, 4)}-${str.substr(\n\t\t16,\n\t\t4,\n\t)}-${str.substr(20, 12)}`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"hashCalculator.js","sourceRoot":"","sources":["../src/hashCalculator.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AAEH,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,GAAG,EAAE,IAAI,GAAG,CAAC;IAC1C,MAAM,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC/C,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAChF,EAAE,EACF,CAAC,CACD,IAAI,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @fileoverview Utility class to compute an hash for a given set of variables\n * using the murmur3 hash (see https://code.google.com/p/smhasher/)\n */\n\nimport murmurHash3 from \"murmurhash3js\";\n\n/**\n * @internal\n */\nexport function calculateHash(key, seed = 0) {\n\tconst str = murmurHash3.x86.hash128(key, seed);\n\treturn `${str.substr(0, 8)}-${str.substr(8, 4)}-${str.substr(12, 4)}-${str.substr(\n\t\t16,\n\t\t4,\n\t)}-${str.substr(20, 12)}`;\n}\n"]}
|
package/lib/joinPaths.d.ts
CHANGED
package/lib/joinPaths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinPaths.d.ts","sourceRoot":"","sources":["../src/joinPaths.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"joinPaths.d.ts","sourceRoot":"","sources":["../src/joinPaths.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CACxB,UAAU,GAAE,MAAW,EACvB,UAAU,GAAE,MAAW,EACvB,YAAY,GAAE,MAAY,GACxB,MAAM,CAYR"}
|
package/lib/joinPaths.js
CHANGED
package/lib/joinPaths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinPaths.js","sourceRoot":"","sources":["../src/joinPaths.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH
|
|
1
|
+
{"version":3,"file":"joinPaths.js","sourceRoot":"","sources":["../src/joinPaths.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,SAAS,CACxB,aAAqB,EAAE,EACvB,aAAqB,EAAE,EACvB,eAAuB,GAAG;IAE1B,IAAI,SAAS,GAAG,YAAY,CAAC;IAE7B,IACC,CAAC,UAAU;QACX,CAAC,UAAU;QACX,UAAU,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,YAAY;QACxD,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,KAAK,YAAY,EACzD;QACD,SAAS,GAAG,EAAE,CAAC;KACf;IACD,OAAO,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;AAC5C,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * @fileoverview implements a joinPaths routine to merge two paths.\n */\n\n/**\n * Merges two strings with a separator. If one of the two is empty no separator will be added.\n * No duplicated separators will be joined\n *\n * @param in_string1 - The first string to join\n * @param in_string2 - The second string to join\n * @param in_separator - The path separator\n *\n * @returns The joined path\n * @internal\n */\nexport function joinPaths(\n\tin_string1: string = \"\",\n\tin_string2: string = \"\",\n\tin_separator: string = \"/\",\n): string {\n\tlet separator = in_separator;\n\n\tif (\n\t\t!in_string1 ||\n\t\t!in_string2 ||\n\t\tin_string1.substr(-in_separator.length) === in_separator ||\n\t\tin_string2.substr(0, in_separator.length) === in_separator\n\t) {\n\t\tseparator = \"\";\n\t}\n\treturn in_string1 + separator + in_string2;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/property-common",
|
|
3
|
-
"version": "2.0.0-dev.7.4.0.
|
|
3
|
+
"version": "2.0.0-dev.7.4.0.216897",
|
|
4
4
|
"description": "common functions used in properties",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@fluidframework/build-common": "^2.0.3",
|
|
49
49
|
"@fluidframework/build-tools": "^0.28.0",
|
|
50
50
|
"@fluidframework/eslint-config-fluid": "^3.1.0",
|
|
51
|
-
"@fluidframework/mocha-test-setup": "2.0.0-dev.7.4.0.
|
|
51
|
+
"@fluidframework/mocha-test-setup": "2.0.0-dev.7.4.0.216897",
|
|
52
52
|
"@microsoft/api-extractor": "^7.38.3",
|
|
53
53
|
"@types/chai": "^4.0.0",
|
|
54
54
|
"@types/debug": "^4.1.5",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-internal/platform-dependent",
|
|
3
|
-
"version": "2.0.0-dev.7.4.0.
|
|
3
|
+
"version": "2.0.0-dev.7.4.0.216897",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Helper package that separates code for browser and server.",
|
|
6
6
|
"homepage": "https://fluidframework.com",
|
package/src/chronometer.ts
CHANGED
package/src/consoleUtils.ts
CHANGED
package/src/constants.ts
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
/**
|
|
14
14
|
* A typed data container that is persistable, high-performance, and can be used
|
|
15
15
|
* as a backing store for collaborative property sets.
|
|
16
|
+
* @internal
|
|
16
17
|
*/
|
|
17
18
|
class BaseDataArray {
|
|
18
19
|
protected _buffer: any;
|
|
@@ -279,48 +280,72 @@ class BaseDataArray {
|
|
|
279
280
|
}
|
|
280
281
|
}
|
|
281
282
|
|
|
283
|
+
/**
|
|
284
|
+
* @internal
|
|
285
|
+
*/
|
|
282
286
|
class Int8DataArray extends BaseDataArray {
|
|
283
287
|
constructor(size: number) {
|
|
284
288
|
super(Int8Array, size);
|
|
285
289
|
}
|
|
286
290
|
}
|
|
287
291
|
|
|
292
|
+
/**
|
|
293
|
+
* @internal
|
|
294
|
+
*/
|
|
288
295
|
class Int16DataArray extends BaseDataArray {
|
|
289
296
|
constructor(size: number) {
|
|
290
297
|
super(Int16Array, size);
|
|
291
298
|
}
|
|
292
299
|
}
|
|
293
300
|
|
|
301
|
+
/**
|
|
302
|
+
* @internal
|
|
303
|
+
*/
|
|
294
304
|
class Int32DataArray extends BaseDataArray {
|
|
295
305
|
constructor(size: number) {
|
|
296
306
|
super(Int32Array, size);
|
|
297
307
|
}
|
|
298
308
|
}
|
|
299
309
|
|
|
310
|
+
/**
|
|
311
|
+
* @internal
|
|
312
|
+
*/
|
|
300
313
|
class Uint8DataArray extends BaseDataArray {
|
|
301
314
|
constructor(size: number) {
|
|
302
315
|
super(Uint8Array, size);
|
|
303
316
|
}
|
|
304
317
|
}
|
|
305
318
|
|
|
319
|
+
/**
|
|
320
|
+
* @internal
|
|
321
|
+
*/
|
|
306
322
|
class Uint16DataArray extends BaseDataArray {
|
|
307
323
|
constructor(size: number) {
|
|
308
324
|
super(Uint16Array, size);
|
|
309
325
|
}
|
|
310
326
|
}
|
|
311
327
|
|
|
328
|
+
/**
|
|
329
|
+
* @internal
|
|
330
|
+
*/
|
|
312
331
|
class Uint32DataArray extends BaseDataArray {
|
|
313
332
|
constructor(size: number) {
|
|
314
333
|
super(Uint32Array, size);
|
|
315
334
|
}
|
|
316
335
|
}
|
|
317
336
|
|
|
337
|
+
/**
|
|
338
|
+
* @internal
|
|
339
|
+
*/
|
|
318
340
|
class Float32DataArray extends BaseDataArray {
|
|
319
341
|
constructor(size: number) {
|
|
320
342
|
super(Float32Array, size);
|
|
321
343
|
}
|
|
322
344
|
}
|
|
323
345
|
|
|
346
|
+
/**
|
|
347
|
+
* @internal
|
|
348
|
+
*/
|
|
324
349
|
class Float64DataArray extends BaseDataArray {
|
|
325
350
|
constructor(size: number) {
|
|
326
351
|
super(Float64Array, size);
|
|
@@ -331,6 +356,7 @@ class Float64DataArray extends BaseDataArray {
|
|
|
331
356
|
* A data container that can contain every native type
|
|
332
357
|
*
|
|
333
358
|
* @param size - The initial size with which to allocate the array.
|
|
359
|
+
* @internal
|
|
334
360
|
*/
|
|
335
361
|
class UniversalDataArray extends BaseDataArray {
|
|
336
362
|
constructor(bufferConstructor: any, size: number);
|
|
@@ -445,6 +471,7 @@ class UniversalDataArray extends BaseDataArray {
|
|
|
445
471
|
|
|
446
472
|
/**
|
|
447
473
|
* A data container that contains a string
|
|
474
|
+
* @internal
|
|
448
475
|
*/
|
|
449
476
|
class StringDataArray extends BaseDataArray {
|
|
450
477
|
constructor() {
|
|
@@ -511,6 +538,7 @@ class StringDataArray extends BaseDataArray {
|
|
|
511
538
|
|
|
512
539
|
/**
|
|
513
540
|
* A data container that can contain boolean type
|
|
541
|
+
* @internal
|
|
514
542
|
*/
|
|
515
543
|
class BoolDataArray extends UniversalDataArray {
|
|
516
544
|
/**
|
|
@@ -24,6 +24,7 @@ const { MSG } = constants;
|
|
|
24
24
|
*
|
|
25
25
|
* @param low - Lower 32 bit
|
|
26
26
|
* @param high - Higher 32 bit
|
|
27
|
+
* @internal
|
|
27
28
|
*/
|
|
28
29
|
export class Integer64 {
|
|
29
30
|
constructor(
|
|
@@ -129,6 +130,7 @@ function _stringToInt64(in_signed: boolean, in_string: string, in_radix = 10): n
|
|
|
129
130
|
|
|
130
131
|
/**
|
|
131
132
|
* A data representation class for the signed 64 bit integer type
|
|
133
|
+
* @internal
|
|
132
134
|
*/
|
|
133
135
|
export class Int64 extends Integer64 {
|
|
134
136
|
static fromString = function (in_string: string, radix = 10) {
|
|
@@ -147,6 +149,7 @@ export class Int64 extends Integer64 {
|
|
|
147
149
|
|
|
148
150
|
/**
|
|
149
151
|
* A data representation class for the unsigned 64 bit integer type
|
|
152
|
+
* @internal
|
|
150
153
|
*/
|
|
151
154
|
export class Uint64 extends Integer64 {
|
|
152
155
|
static fromString(in_string: string, in_radix = 10) {
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
import _ from "lodash";
|
|
12
12
|
import { Collection } from "./collection";
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
14
17
|
export class SortedCollection<T> extends Collection<T> {
|
|
15
18
|
private _sortedKeys: string[] = [];
|
|
16
19
|
private _comparisonFunction?: (x: string, y: string) => number = undefined;
|
package/src/deferredPromise.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* through the constructor's executor).
|
|
9
9
|
* For example, a deferred promise could be fulfilled after waiting for many asynchronous
|
|
10
10
|
* tasks to terminate. This class becomes useful when combining classic async calls with promises.
|
|
11
|
+
* @internal
|
|
11
12
|
*/
|
|
12
13
|
export class DeferredPromise<T> implements Promise<T> {
|
|
13
14
|
private _resolveSelf;
|
|
@@ -19,6 +19,7 @@ import { calculateHash } from "./hashCalculator";
|
|
|
19
19
|
* @remarks Warning: This is a very straight forward implementation based on the hashCombine4xUint32 function.
|
|
20
20
|
* It probably doesn't produce very high quality random numbers (do not use this for cryptography!) and it is not very
|
|
21
21
|
* efficient.
|
|
22
|
+
* @internal
|
|
22
23
|
*/
|
|
23
24
|
export class DeterministicRandomGenerator {
|
|
24
25
|
_guid1: Uint32Array;
|
|
@@ -12,6 +12,7 @@ import { FlaggedError } from "./flaggedError";
|
|
|
12
12
|
* @param method - The HTTP method used in the request
|
|
13
13
|
* @param url - The URL that the request was sent to
|
|
14
14
|
* @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.
|
|
15
|
+
* @internal
|
|
15
16
|
*/
|
|
16
17
|
export class HTTPError extends Error {
|
|
17
18
|
constructor(
|
package/src/guidUtils.ts
CHANGED
package/src/hashCalculator.ts
CHANGED
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
import murmurHash3 from "murmurhash3js";
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
13
16
|
export function calculateHash(key, seed = 0) {
|
|
14
17
|
const str = murmurHash3.x86.hash128(key, seed);
|
|
15
18
|
return `${str.substr(0, 8)}-${str.substr(8, 4)}-${str.substr(12, 4)}-${str.substr(
|
package/src/joinPaths.ts
CHANGED
package/api-extractor.json
DELETED