@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.
Files changed (127) hide show
  1. package/.eslintrc.js +9 -11
  2. package/.mocharc.json +6 -6
  3. package/README.md +1 -0
  4. package/api-extractor.json +2 -2
  5. package/dist/chronometer.d.ts.map +1 -1
  6. package/dist/chronometer.js.map +1 -1
  7. package/dist/consoleUtils.d.ts.map +1 -1
  8. package/dist/consoleUtils.js +4 -1
  9. package/dist/consoleUtils.js.map +1 -1
  10. package/dist/constants.d.ts +6 -6
  11. package/dist/constants.d.ts.map +1 -1
  12. package/dist/constants.js +16 -26
  13. package/dist/constants.js.map +1 -1
  14. package/dist/datastructures/collection.d.ts.map +1 -1
  15. package/dist/datastructures/collection.js +5 -4
  16. package/dist/datastructures/collection.js.map +1 -1
  17. package/dist/datastructures/dataArray.d.ts.map +1 -1
  18. package/dist/datastructures/dataArray.js +18 -9
  19. package/dist/datastructures/dataArray.js.map +1 -1
  20. package/dist/datastructures/integer64.d.ts.map +1 -1
  21. package/dist/datastructures/integer64.js +1 -1
  22. package/dist/datastructures/integer64.js.map +1 -1
  23. package/dist/datastructures/sortedCollection.d.ts.map +1 -1
  24. package/dist/datastructures/sortedCollection.js +3 -1
  25. package/dist/datastructures/sortedCollection.js.map +1 -1
  26. package/dist/deferredPromise.d.ts +1 -1
  27. package/dist/deferredPromise.d.ts.map +1 -1
  28. package/dist/deferredPromise.js +9 -3
  29. package/dist/deferredPromise.js.map +1 -1
  30. package/dist/deterministicRandomGenerator.d.ts.map +1 -1
  31. package/dist/deterministicRandomGenerator.js +6 -6
  32. package/dist/deterministicRandomGenerator.js.map +1 -1
  33. package/dist/error_objects/flaggedError.d.ts.map +1 -1
  34. package/dist/error_objects/flaggedError.js.map +1 -1
  35. package/dist/error_objects/httpError.d.ts.map +1 -1
  36. package/dist/error_objects/httpError.js +9 -9
  37. package/dist/error_objects/httpError.js.map +1 -1
  38. package/dist/error_objects/httpErrorNoStack.d.ts.map +1 -1
  39. package/dist/error_objects/httpErrorNoStack.js.map +1 -1
  40. package/dist/error_objects/operationError.d.ts +7 -7
  41. package/dist/error_objects/operationError.d.ts.map +1 -1
  42. package/dist/error_objects/operationError.js +7 -7
  43. package/dist/error_objects/operationError.js.map +1 -1
  44. package/dist/guidUtils.d.ts.map +1 -1
  45. package/dist/guidUtils.js +10 -9
  46. package/dist/guidUtils.js.map +1 -1
  47. package/dist/hashCalculator.d.ts.map +1 -1
  48. package/dist/hashCalculator.js.map +1 -1
  49. package/dist/joinPaths.d.ts.map +1 -1
  50. package/dist/joinPaths.js.map +1 -1
  51. package/dist/packageVersion.d.ts +1 -1
  52. package/dist/packageVersion.js +1 -1
  53. package/dist/packageVersion.js.map +1 -1
  54. package/lib/chronometer.d.ts.map +1 -1
  55. package/lib/chronometer.js.map +1 -1
  56. package/lib/consoleUtils.d.ts.map +1 -1
  57. package/lib/consoleUtils.js +4 -1
  58. package/lib/consoleUtils.js.map +1 -1
  59. package/lib/constants.d.ts +6 -6
  60. package/lib/constants.d.ts.map +1 -1
  61. package/lib/constants.js +16 -26
  62. package/lib/constants.js.map +1 -1
  63. package/lib/datastructures/collection.d.ts.map +1 -1
  64. package/lib/datastructures/collection.js +5 -4
  65. package/lib/datastructures/collection.js.map +1 -1
  66. package/lib/datastructures/dataArray.d.ts.map +1 -1
  67. package/lib/datastructures/dataArray.js +18 -9
  68. package/lib/datastructures/dataArray.js.map +1 -1
  69. package/lib/datastructures/integer64.d.ts.map +1 -1
  70. package/lib/datastructures/integer64.js +1 -1
  71. package/lib/datastructures/integer64.js.map +1 -1
  72. package/lib/datastructures/sortedCollection.d.ts.map +1 -1
  73. package/lib/datastructures/sortedCollection.js +3 -1
  74. package/lib/datastructures/sortedCollection.js.map +1 -1
  75. package/lib/deferredPromise.d.ts +1 -1
  76. package/lib/deferredPromise.d.ts.map +1 -1
  77. package/lib/deferredPromise.js +9 -3
  78. package/lib/deferredPromise.js.map +1 -1
  79. package/lib/deterministicRandomGenerator.d.ts.map +1 -1
  80. package/lib/deterministicRandomGenerator.js +6 -6
  81. package/lib/deterministicRandomGenerator.js.map +1 -1
  82. package/lib/error_objects/flaggedError.d.ts.map +1 -1
  83. package/lib/error_objects/flaggedError.js.map +1 -1
  84. package/lib/error_objects/httpError.d.ts.map +1 -1
  85. package/lib/error_objects/httpError.js +9 -9
  86. package/lib/error_objects/httpError.js.map +1 -1
  87. package/lib/error_objects/httpErrorNoStack.d.ts.map +1 -1
  88. package/lib/error_objects/httpErrorNoStack.js.map +1 -1
  89. package/lib/error_objects/operationError.d.ts +7 -7
  90. package/lib/error_objects/operationError.d.ts.map +1 -1
  91. package/lib/error_objects/operationError.js +7 -7
  92. package/lib/error_objects/operationError.js.map +1 -1
  93. package/lib/guidUtils.d.ts.map +1 -1
  94. package/lib/guidUtils.js +10 -9
  95. package/lib/guidUtils.js.map +1 -1
  96. package/lib/hashCalculator.d.ts.map +1 -1
  97. package/lib/hashCalculator.js.map +1 -1
  98. package/lib/joinPaths.d.ts.map +1 -1
  99. package/lib/joinPaths.js.map +1 -1
  100. package/lib/packageVersion.d.ts +1 -1
  101. package/lib/packageVersion.js +1 -1
  102. package/lib/packageVersion.js.map +1 -1
  103. package/package.json +42 -40
  104. package/platform-dependent/README.md +1 -0
  105. package/platform-dependent/browser.js +5 -5
  106. package/platform-dependent/package.json +14 -14
  107. package/platform-dependent/server.js +5 -5
  108. package/prettier.config.cjs +1 -1
  109. package/src/chronometer.ts +174 -169
  110. package/src/consoleUtils.ts +16 -11
  111. package/src/constants.ts +1683 -1640
  112. package/src/datastructures/collection.ts +417 -416
  113. package/src/datastructures/dataArray.ts +516 -492
  114. package/src/datastructures/integer64.ts +102 -99
  115. package/src/datastructures/sortedCollection.ts +155 -145
  116. package/src/deferredPromise.ts +43 -42
  117. package/src/deterministicRandomGenerator.ts +59 -59
  118. package/src/error_objects/flaggedError.ts +29 -29
  119. package/src/error_objects/httpError.ts +45 -42
  120. package/src/error_objects/httpErrorNoStack.ts +17 -17
  121. package/src/error_objects/operationError.ts +62 -62
  122. package/src/guidUtils.ts +182 -171
  123. package/src/hashCalculator.ts +5 -2
  124. package/src/joinPaths.ts +15 -9
  125. package/src/packageVersion.ts +1 -1
  126. package/tsconfig.esnext.json +6 -6
  127. package/tsconfig.json +9 -13
@@ -1 +1 @@
1
- {"version":3,"file":"httpError.js","sourceRoot":"","sources":["../../src/error_objects/httpError.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,iDAA8C;AAE9C;;;;;;;;GAQG;AACH,MAAa,SAAU,SAAQ,KAAK;IAChC,YACW,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,GAAH,GAAG,CAAS;QACZ,UAAK,GAAL,KAAK,CAAI;QAGhB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;IACjD,CAAC;IAID,OAAO;QACH,OAAO,2BAAY,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,WAAW;QACP,OAAO,2BAAY,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAA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AW,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAEjE,OAAO,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC;IAC5E,CAAC;;AAlDL,8BAmDC;AAnCU,eAAK,GAAG,2BAAY,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 */\nexport class HTTPError extends Error {\n constructor(\n public title?: string,\n public statusCode?: number,\n public statusMessage?: string,\n public method?: string,\n public url?: string,\n public flags = 0,\n ) {\n super();\n Object.setPrototypeOf(this, HTTPError.prototype);\n this.name = \"HTTPError\";\n this.message = this._generateMessage(title, statusCode, statusMessage, method, url);\n this.stack = (new Error(this.message)).stack;\n }\n\n static FLAGS = FlaggedError.FLAGS;\n\n isQuiet(): boolean {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient(): boolean {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n private _generateMessage(title, statusCode, statusMessage, method, url) {\n const titleStr = (title === undefined) ? \"\" : String(title);\n const statusCodeStr = (statusCode === undefined) ? \"\" : String(statusCode);\n const statusMessageStr = (statusMessage === undefined) ? \"\" : String(statusMessage);\n const methodStr = (method === undefined) ? \"\" : String(method);\n const urlStr = (url === undefined) ? \"\" : String(url);\n\n return `HTTPError: ${titleStr}, statusCode:${statusCodeStr}, ` +\n `statusMessage:${statusMessageStr}, method:${methodStr}, url:${urlStr}`;\n }\n\n /**\n * Returns a string representing the HTTPError object\n * @returns a string representing the HTTPError object\n */\n toString(): string {\n const stack = (this.stack === undefined) ? \"\" : String(this.stack);\n\n const isFirefox = typeof window !== \"undefined\" &&\n typeof window.navigator !== \"undefined\" &&\n typeof window.navigator.userAgent !== \"undefined\" &&\n window.navigator.userAgent.toLowerCase().includes(\"firefox\");\n\n return isFirefox ? `${this.message}, stack:${stack}` : `stack:${stack}`;\n }\n}\n"]}
1
+ {"version":3,"file":"httpError.js","sourceRoot":"","sources":["../../src/error_objects/httpError.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,iDAA8C;AAE9C;;;;;;;;GAQG;AACH,MAAa,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,GAAH,GAAG,CAAS;QACZ,UAAK,GAAL,KAAK,CAAI;QAGhB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QACpF,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;IAC5C,CAAC;IAID,OAAO;QACN,OAAO,2BAAY,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IAED,WAAW;QACV,OAAO,2BAAY,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAE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AAO,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC;IACzE,CAAC;;AArDF,8BAsDC;AAtCO,eAAK,GAAG,2BAAY,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 */\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\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;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC3C,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;CAGrB"}
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;;GAEG;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,2CAAwC;AACxC,iDAA8C;AAE9C;;GAEG;AACH,MAAa,gBAAiB,SAAQ,qBAAS;IAG3C;;;;;;;OAOG;IACH,YAAY,OAAQ,EAAE,UAAW,EAAE,aAAc,EAAE,MAAO,EAAE,GAAI,EAAE,KAAM;QACpE,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;IACtB,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;;AAnBL,4CAoBC;AAnBU,sBAAK,GAAG,2BAAY,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 */\nexport class HTTPErrorNoStack extends HTTPError {\n static FLAGS = FlaggedError.FLAGS;\n\n /**\n * @param message - The error message\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 */\n constructor(message?, statusCode?, statusMessage?, method?, url?, flags?) {\n super(message, statusCode, statusMessage, method, url, flags);\n Object.setPrototypeOf(this, HTTPErrorNoStack.prototype);\n delete this.stack;\n }\n\n toString(): string {\n return this.message;\n }\n}\n"]}
1
+ {"version":3,"file":"httpErrorNoStack.js","sourceRoot":"","sources":["../../src/error_objects/httpErrorNoStack.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2CAAwC;AACxC,iDAA8C;AAE9C;;GAEG;AACH,MAAa,gBAAiB,SAAQ,qBAAS;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;;AAnBF,4CAoBC;AAnBO,sBAAK,GAAG,2BAAY,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 */\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"]}
@@ -13,13 +13,13 @@ export declare class OperationError extends Error {
13
13
  stack: string | undefined;
14
14
  readonly name: string;
15
15
  /**
16
- * Instantiates an OperationError, which mimics the Error class with added properties
17
- * meant for reporting the result of operations.
18
- * @param message - The error message.
19
- * @param operation - The operation name.
20
- * @param statusCode - The operation result as a numerical status code.
21
- * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.
22
- */
16
+ * Instantiates an OperationError, which mimics the Error class with added properties
17
+ * meant for reporting the result of operations.
18
+ * @param message - The error message.
19
+ * @param operation - The operation name.
20
+ * @param statusCode - The operation result as a numerical status code.
21
+ * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.
22
+ */
23
23
  constructor(message?: string, operation?: string | undefined, statusCode?: number | undefined, flags?: number);
24
24
  isQuiet(): boolean;
25
25
  isTransient(): boolean;
@@ -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;IAe1B,SAAS,CAAC;IACV,UAAU,CAAC;IACX,KAAK,EAAE,MAAM;IAhBxB,MAAM,CAAC,KAAK;;;MAAsB;IAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAE7B;;;;;;;SAOK;gBAED,OAAO,CAAC,EAAE,MAAM,EACT,SAAS,CAAC,oBAAQ,EAClB,UAAU,CAAC,oBAAQ,EACnB,KAAK,GAAE,MAAU;IAQ5B,OAAO;IAIP,WAAW;IAIX;;OAEG;IACH,OAAO,CAAC,cAAc;IAWtB,QAAQ,IAAI,MAAM;CA4BrB"}
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"}
@@ -18,13 +18,13 @@ const lodash_1 = __importDefault(require("lodash"));
18
18
  const flaggedError_1 = require("./flaggedError");
19
19
  class OperationError extends Error {
20
20
  /**
21
- * Instantiates an OperationError, which mimics the Error class with added properties
22
- * meant for reporting the result of operations.
23
- * @param message - The error message.
24
- * @param operation - The operation name.
25
- * @param statusCode - The operation result as a numerical status code.
26
- * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.
27
- */
21
+ * Instantiates an OperationError, which mimics the Error class with added properties
22
+ * meant for reporting the result of operations.
23
+ * @param message - The error message.
24
+ * @param operation - The operation name.
25
+ * @param statusCode - The operation result as a numerical status code.
26
+ * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.
27
+ */
28
28
  constructor(message, operation, statusCode, flags = 0) {
29
29
  super(message);
30
30
  this.operation = operation;
@@ -1 +1 @@
1
- {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH;;;;;GAKG;AACH,oDAAuB;AACvB,iDAA8C;AAE9C,MAAa,cAAe,SAAQ,KAAK;IAKrC;;;;;;;SAOK;IACL,YACI,OAAgB,EACT,SAAkB,EAClB,UAAmB,EACnB,QAAgB,CAAC;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,cAAS,GAAT,SAAS,CAAS;QAClB,eAAU,GAAV,UAAU,CAAS;QACnB,UAAK,GAAL,KAAK,CAAY;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CA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,IAAI,CAAC;QAEpB,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,GAAG,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;SAChD;QAED,GAAG,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;QAE3B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE;YAC1B,GAAG,IAAI,YAAY,IAAI,CAAC,KAAK,EAAE,CAAC;SACnC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;;AA1EL,wCA2EC;AA1EU,oBAAK,GAAG,2BAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * An operation error maintains additional information compared to a plain {@link #Error}:\n * - The operation name\n * - A status code\n * - Extensible flags. See {@link ExtendedError.FLAGS}.\n */\nimport _ from \"lodash\";\nimport { FlaggedError } from \"./flaggedError\";\n\nexport class OperationError extends Error {\n static FLAGS = FlaggedError.FLAGS;\n public stack: string | undefined;\n public readonly name: string;\n\n /**\n * Instantiates an OperationError, which mimics the Error class with added properties\n * meant for reporting the result of operations.\n * @param message - The error message.\n * @param operation - The operation name.\n * @param statusCode - The operation result as a numerical status code.\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n */\n constructor(\n message?: string,\n public operation?: string,\n public statusCode?: number,\n public flags: number = 0,\n ) {\n super(message);\n Object.setPrototypeOf(this, OperationError.prototype);\n this.name = \"OperationError\";\n this.stack = Error(message).stack;\n }\n\n isQuiet() {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient() {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n /**\n * @returns A string representation of the error flags.\n */\n private _flagsToString() {\n const flagArray: string[] = [];\n _.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n // eslint-disable-next-line no-bitwise\n if ((this.flags & flagValue) === flagValue) {\n flagArray.push(flagName);\n }\n });\n return `${this.flags} [${flagArray.join(\",\")}]`;\n }\n\n toString(): string {\n const extendedFieldsArray: string[] = [];\n if (this.operation !== undefined) {\n extendedFieldsArray.push(this.operation);\n }\n\n if (this.statusCode !== undefined) {\n extendedFieldsArray.push(this.statusCode.toString());\n }\n\n if (this.flags) {\n extendedFieldsArray.push(this._flagsToString.call(this));\n }\n\n let msg = this.name;\n\n if (extendedFieldsArray.length > 0) {\n msg += `[${extendedFieldsArray.join(\", \")}]`;\n }\n\n msg += `: ${this.message}`;\n\n if (this.stack !== undefined) {\n msg += `, stack: ${this.stack}`;\n }\n\n return msg;\n }\n}\n"]}
1
+ {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH;;;;;GAKG;AACH,oDAAuB;AACvB,iDAA8C;AAE9C,MAAa,cAAe,SAAQ,KAAK;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,GAAL,KAAK,CAAY;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;IACnC,CAAC;IAED,OAAO;QACN,OAAO,2BAAY,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IAED,WAAW;QACV,OAAO,2BAAY,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACK,cAAc;QACrB,MAAM,SAAS,GAA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Y,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 +1 @@
1
- {"version":3,"file":"guidUtils.d.ts","sourceRoot":"","sources":["../src/guidUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0TH,eAAO,MAAM,SAAS;mCAvKwB,WAAW,GAAG,UAAU,GAAG,MAAM,EAAE,WAAU,OAAO,KAAW,MAAM;8BA4B1E,MAAM,WAAU,WAAW,KAAwB,WAAW;8BAsBtE,MAAM;8BASN,MAAM;;wCAaQ,MAAM;sBAwB5B,MAAM;6BA2DS,MAAM,YAAY,MAAM,uBAAmB,MAAM;qCAhD1E,WAAW,aACX,WAAW,0CAEvB,WAAW;CAmEb,CAAC"}
1
+ {"version":3,"file":"guidUtils.d.ts","sourceRoot":"","sources":["../src/guidUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqUH,eAAO,MAAM,SAAS;mCAhLP,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,0CAEpB,WAAW;CAqEb,CAAC"}
package/dist/guidUtils.js CHANGED
@@ -76,8 +76,8 @@ const guidRNG = {
76
76
  this.v ^= this.v >>> 13;
77
77
  this.v ^= this.v << 17;
78
78
  this.v = ((this.v >>> 5) ^ this.v) >>> 0;
79
- this.w1 = multiply_uint32(33378, (this.w1 & 0xffff)) + (this.w1 >>> 16);
80
- this.w2 = multiply_uint32(57225, (this.w2 & 0xffff)) + (this.w2 >>> 16);
79
+ this.w1 = multiply_uint32(33378, this.w1 & 0xffff) + (this.w1 >>> 16);
80
+ this.w2 = multiply_uint32(57225, this.w2 & 0xffff) + (this.w2 >>> 16);
81
81
  let x = this.u ^ (this.u << 9);
82
82
  x ^= x >>> 17;
83
83
  x ^= x << 6;
@@ -108,7 +108,7 @@ function multiply_uint32(a, b) {
108
108
  n >>>= 0;
109
109
  m >>>= 0;
110
110
  const nlo = n & 0xffff;
111
- return (((n - nlo) * m >>> 0) + (nlo * m)) >>> 0;
111
+ return ((((n - nlo) * m) >>> 0) + nlo * m) >>> 0;
112
112
  }
113
113
  /**
114
114
  * Helper function to convert base64 encoding to url friendly format
@@ -127,7 +127,7 @@ const toUrlBase64 = (base64) => base64.replace(/\+/g, "-").replace(/\//g, "_").s
127
127
  */
128
128
  const toPaddedBase64 = function (x) {
129
129
  let base64 = x;
130
- const padLength = 4 - base64.length % 4;
130
+ const padLength = 4 - (base64.length % 4);
131
131
  base64 += "=".repeat(padLength);
132
132
  return base64;
133
133
  };
@@ -152,9 +152,8 @@ const uint32x4ToGUID = function (in_guidArray, base64 = false) {
152
152
  let str = "";
153
153
  for (let i = 0; i < 4; i++) {
154
154
  const hex = in_guidArray[i].toString(16);
155
- str += ("0".repeat(8 - hex.length) + hex);
155
+ str += "0".repeat(8 - hex.length) + hex;
156
156
  }
157
- // eslint-disable-next-line max-len
158
157
  return `${str.substr(0, 8)}-${str.substr(8, 4)}-${str.substr(12, 4)}-${str.substr(16, 4)}-${str.substr(20, 12)}`;
159
158
  }
160
159
  };
@@ -221,9 +220,9 @@ const generateGUID = function (base64 = false) {
221
220
  // The last character is checked this way because last 4 bits of 22nd character are ignored
222
221
  // by decoder, e.g. "+Q" and "+Z" result in the same decoding.
223
222
  // The only characters with last 4 bits set to 0 are A, Q, g, w.
224
- const reBase64 = (/^[\w-]{21}[AQgw]$/);
223
+ const reBase64 = /^[\w-]{21}[AQgw]$/;
225
224
  // eslint-disable-next-line unicorn/no-unsafe-regex
226
- const reBase16 = (/^[\dA-Fa-f]{8}(?:-[\dA-Fa-f]{4}){3}-[\dA-Fa-f]{12}$/);
225
+ const reBase16 = /^[\dA-Fa-f]{8}(?:-[\dA-Fa-f]{4}){3}-[\dA-Fa-f]{12}$/;
227
226
  /**
228
227
  * Routine used to check whether the given string is a valid GUID
229
228
  *
@@ -287,7 +286,9 @@ const combineGuids = function (in_guid1, in_guid2, base64 = false) {
287
286
  };
288
287
  // Make sure the RNG is initialized
289
288
  guidRNG.initialize();
290
- const initializeGUIDGenerator = (...args) => { guidRNG.initialize(...args); };
289
+ const initializeGUIDGenerator = (...args) => {
290
+ guidRNG.initialize(...args);
291
+ };
291
292
  exports.GuidUtils = {
292
293
  uint32x4ToGUID,
293
294
  guidToUint32x4,
@@ -1 +1 @@
1
- {"version":3,"file":"guidUtils.js","sourceRoot":"","sources":["../src/guidUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH,+BAA+B;AAE/B;;GAEG;AAEH,0DAAiC;AACjC,8DAAkE;AAClE,MAAM,iBAAiB,GAAG,QAAQ,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,OAAO,GAAG;IACZ,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;QACpE,6DAA6D;QAC7D,sDAAsD;QACtD,IAAI,IAAI,CAAC,aAAa,IAAI,CAAC,0BAA0B,EAAE;YACnD,OAAO,CAAC,CAAC;SACZ;aAAM;YACH,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;YAE1B,IAAI,OAAO,KAAK,SAAS,EAAE;gBACvB,MAAM,YAAY,GAA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rB,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,uBAAuB;IACvB,YAAY;IACZ,MAAM;IACN,YAAY;IACZ,mBAAmB;CACtB,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 u: 0,\n v: 0,\n w1: 0,\n w2: 0,\n isInitialized: false,\n\n /**\n * Initialize RNG.\n * This function need to be called once, before the first GUID gets created.\n *\n * @param in_seed - Optional 32-bit seed for GUID RNG.\n * If no seed is given, a combination of system's local time and `Math.random()` is used.\n * @param in_enforceReInitialization - Optionally enforce re-initialization with another seed.\n *\n * @returns The seed used to initialize the RNG;\n * If re-initialization is not enforced, a zero indicates that the RNG was not re-seeded.\n *\n * @alias property-common.initializeGUIDGenerator\n */\n initialize(in_seed?: number, in_enforceReInitialization: boolean = false): number {\n // Quit if the RNG has already been initialized and we do not\n // want to enforce a re-initialization with a new seed\n if (this.isInitialized && !in_enforceReInitialization) {\n return 0;\n } else {\n this.isInitialized = true;\n\n if (in_seed === undefined) {\n const randomValues = generateRandomUInt32Array(4);\n this.u = randomValues[0];\n this.v = randomValues[1];\n this.w1 = randomValues[2];\n this.w2 = randomValues[3];\n } else {\n this.v = 224461437;\n this.w1 = 521288629;\n this.w2 = 362436069;\n\n this.u = in_seed ^ this.v;\n this.genRandUInt32();\n this.v = this.u;\n this.genRandUInt32();\n }\n return -1;\n }\n },\n\n /**\n * @returns 32-bit random number based on the RNGs internal state\n */\n genRandUInt32(): number {\n this.u = multiply_uint32(this.u, 2891336453) + 1640531513;\n this.v ^= this.v >>> 13;\n this.v ^= this.v << 17;\n this.v = ((this.v >>> 5) ^ this.v) >>> 0;\n\n this.w1 = multiply_uint32(33378, (this.w1 & 0xffff)) + (this.w1 >>> 16);\n this.w2 = multiply_uint32(57225, (this.w2 & 0xffff)) + (this.w2 >>> 16);\n\n let x = this.u ^ (this.u << 9);\n x ^= x >>> 17;\n x ^= x << 6;\n\n let y = this.w1 ^ (this.w1 << 17);\n y ^= y >>> 15;\n y ^= y << 5;\n return (((x >>> 0) + this.v) ^ ((y >>> 0) + this.w2)) >>> 0;\n },\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 - result of unsigned integer multiplication\n */\nfunction multiply_uint32(a: number, b: number): number {\n let n = a;\n let m = b;\n\n n >>>= 0;\n m >>>= 0;\n const nlo = n & 0xffff;\n return (((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 => base64.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 let base64 = x;\n const padLength = 4 - base64.length % 4;\n base64 += \"=\".repeat(padLength);\n return 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(in_guidArray: Uint32Array | Int32Array | number[], base64: boolean = false): string {\n if (base64) {\n const intArray = new Uint32Array(in_guidArray);\n const byteArray = new Uint8Array(intArray.buffer);\n const base64guid = base64js.fromByteArray(byteArray);\n // return url-friendly base64\n return toUrlBase64(base64guid);\n } else {\n // Convert to hexadecimal string\n let str = \"\";\n for (let i = 0; i < 4; i++) {\n const hex = in_guidArray[i].toString(16);\n str += (\"0\".repeat(8 - hex.length) + hex);\n }\n // eslint-disable-next-line max-len\n return `${str.substr(0, 8)}-${str.substr(8, 4)}-${str.substr(12, 4)}-${str.substr(16, 4)}-${str.substr(20, 12)}`;\n }\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(in_guid: string, result: Uint32Array = new Uint32Array(4)): Uint32Array {\n if (isBase64(in_guid)) {\n const GUID = toPaddedBase64(in_guid);\n const bytes = base64js.toByteArray(GUID);\n const intArray = new Uint32Array(bytes.buffer);\n result.set(intArray);\n } else {\n result[0] = parseInt(`0x${in_guid.substr(0, 8)}`, 16);\n result[1] = parseInt(`0x${in_guid.substr(9, 4)}${in_guid.substr(14, 4)}`, 16);\n result[2] = parseInt(`0x${in_guid.substr(19, 4)}${in_guid.substr(24, 4)}`, 16);\n result[3] = parseInt(`0x${in_guid.substr(28, 8)}`, 16);\n }\n return 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 const rnds = new Uint32Array(4);\n\n // Random numbers for GUID (4x32 bit)\n rnds[0] = guidRNG.genRandUInt32();\n rnds[1] = guidRNG.genRandUInt32();\n rnds[2] = guidRNG.genRandUInt32();\n rnds[3] = guidRNG.genRandUInt32();\n return 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 in_array1: Uint32Array,\n in_array2: Uint32Array,\n io_result?: Uint32Array,\n): Uint32Array {\n let accumulated = io_result;\n if (accumulated === undefined) {\n accumulated = new Uint32Array(in_array2);\n } else {\n accumulated[0] = in_array2[0];\n accumulated[1] = in_array2[1];\n accumulated[2] = in_array2[2];\n accumulated[3] = in_array2[3];\n }\n\n accumulated[0] += 0x9e3779b9;\n accumulated[1] += 0x638f227;\n accumulated[2] += 0x1aff2bad;\n accumulated[3] += 0x3a8f05c5;\n\n accumulated[0] += in_array1[3] << 6;\n accumulated[1] += in_array1[0] << 6;\n accumulated[2] += in_array1[1] << 6;\n accumulated[3] += in_array1[2] << 6;\n\n accumulated[0] += in_array1[2] >> 2;\n accumulated[1] += in_array1[3] >> 2;\n accumulated[2] += in_array1[0] >> 2;\n accumulated[3] += in_array1[1] >> 2;\n\n accumulated[0] = ((accumulated[0] ^ in_array1[1]) * UINT_32HASH_PRIME) >>> 0;\n accumulated[1] = ((accumulated[1] ^ in_array1[2]) * UINT_32HASH_PRIME) >>> 0;\n accumulated[2] = ((accumulated[2] ^ in_array1[3]) * UINT_32HASH_PRIME) >>> 0;\n accumulated[3] = ((accumulated[3] ^ in_array1[0]) * UINT_32HASH_PRIME) >>> 0;\n\n return 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 const firstArray = guidToUint32x4(in_guid1);\n const secondArray = guidToUint32x4(in_guid2);\n const combined = hashCombine4xUint32(firstArray, secondArray);\n return uint32x4ToGUID(combined, base64);\n};\n\n// Make sure the RNG is initialized\nguidRNG.initialize();\n\nconst initializeGUIDGenerator = (...args) => { guidRNG.initialize(...args); };\n\nexport const GuidUtils = {\n uint32x4ToGUID,\n guidToUint32x4,\n base64Tobase16,\n base16ToBase64,\n initializeGUIDGenerator,\n generateGUID,\n isGUID,\n combineGuids,\n hashCombine4xUint32,\n};\n"]}
1
+ {"version":3,"file":"guidUtils.js","sourceRoot":"","sources":["../src/guidUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH,+BAA+B;AAE/B;;GAEG;AAEH,0DAAiC;AACjC,8DAAkE;AAClE,MAAM,iBAAiB,GAAG,QAAQ,CAAC;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AW,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,QAAQ,GAAG,mBAAmB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAC9D,OAAO,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AACzC,CAAC,CAAC;AAEF,mCAAmC;AACnC,OAAO,CAAC,UAAU,EAAE,CAAC;AAErB,MAAM,uBAAuB,GAAG,CAAC,GAAG,IAAI,EAAE,EAAE;IAC3C,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC;AAC7B,CAAC,CAAC;AAEW,QAAA,SAAS,GAAG;IACxB,cAAc;IACd,cAAc;IACd,cAAc;IACd,cAAc;IACd,uBAAuB;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 - result of 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 +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,UAG1C"}
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 +1 @@
1
- {"version":3,"file":"hashCalculator.js","sourceRoot":"","sources":["../src/hashCalculator.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH;;;GAGG;AAEH,kEAAwC;AAExC,SAAgB,aAAa,CAAC,GAAG,EAAE,IAAI,GAAG,CAAC;IACvC,MAAM,GAAG,GAAG,uBAAW,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,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AACrH,CAAC;AAHD,sCAGC","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 const str = murmurHash3.x86.hash128(key, seed);\n return `${str.substr(0, 8)}-${str.substr(8, 4)}-${str.substr(12, 4)}-${str.substr(16, 4)}-${str.substr(20, 12)}`;\n}\n"]}
1
+ {"version":3,"file":"hashCalculator.js","sourceRoot":"","sources":["../src/hashCalculator.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH;;;GAGG;AAEH,kEAAwC;AAExC,SAAgB,aAAa,CAAC,GAAG,EAAE,IAAI,GAAG,CAAC;IAC1C,MAAM,GAAG,GAAG,uBAAW,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;AAND,sCAMC","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 +1 @@
1
- {"version":3,"file":"joinPaths.d.ts","sourceRoot":"","sources":["../src/joinPaths.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,UAAU,GAAE,MAAW,EAAE,UAAU,GAAE,MAAW,EAAE,YAAY,GAAE,MAAY,GAAG,MAAM,CAU9G"}
1
+ {"version":3,"file":"joinPaths.d.ts","sourceRoot":"","sources":["../src/joinPaths.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AAEH;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CACxB,UAAU,GAAE,MAAW,EACvB,UAAU,GAAE,MAAW,EACvB,YAAY,GAAE,MAAY,GACxB,MAAM,CAYR"}
@@ -1 +1 @@
1
- {"version":3,"file":"joinPaths.js","sourceRoot":"","sources":["../src/joinPaths.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AAEH;;;;;;;;;GASG;AACH,SAAgB,SAAS,CAAC,aAAqB,EAAE,EAAE,aAAqB,EAAE,EAAE,eAAuB,GAAG;IAClG,IAAI,SAAS,GAAG,YAAY,CAAC;IAE7B,IAAI,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,EAAE;QAC5D,SAAS,GAAG,EAAE,CAAC;KAClB;IACD,OAAO,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;AAC/C,CAAC;AAVD,8BAUC","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 */\nexport function joinPaths(in_string1: string = \"\", in_string2: string = \"\", in_separator: string = \"/\"): string {\n let separator = in_separator;\n\n if (!in_string1 ||\n !in_string2 ||\n in_string1.substr(-in_separator.length) === in_separator ||\n in_string2.substr(0, in_separator.length) === in_separator) {\n separator = \"\";\n }\n return in_string1 + separator + in_string2;\n}\n"]}
1
+ {"version":3,"file":"joinPaths.js","sourceRoot":"","sources":["../src/joinPaths.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;GAEG;AAEH;;;;;;;;;GASG;AACH,SAAgB,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;AAhBD,8BAgBC","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 */\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"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluid-experimental/property-common";
8
- export declare const pkgVersion = "2.0.0-dev.2.3.0.115467";
8
+ export declare const pkgVersion = "2.0.0-dev.4.1.0.148229";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluid-experimental/property-common";
11
- exports.pkgVersion = "2.0.0-dev.2.3.0.115467";
11
+ exports.pkgVersion = "2.0.0-dev.4.1.0.148229";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qCAAqC,CAAC;AAChD,QAAA,UAAU,GAAG,wBAAwB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"2.0.0-dev.2.3.0.115467\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qCAAqC,CAAC;AAChD,QAAA,UAAU,GAAG,wBAAwB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"2.0.0-dev.4.1.0.148229\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"chronometer.d.ts","sourceRoot":"","sources":["../src/chronometer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkIH;;GAEG;AACH,qBAAa,WAAW;;IAKpB;;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,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,WAAW,CAAC;QAAC,MAAM,EAAE,CAAC,CAAC;KAAE,CAAC;CAMzG"}
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"}
@@ -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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K,WAAW;IAC7B,OAAO,MAAM,CAAC,WAAW,KAAK,WAAW;IACzC,OAAO,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,WAAW,EAC/C;IACE,IAAI,GAAG,eAAe,CAAC,WAAW,CAAC;CACtC;KAAM;IACH,IAAI,GAAG,eAAe,CAAC,IAAI,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,OAAO,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","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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AAI,GAAG,eAAe,CAAC,IAAI,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,OAAO,WAAW;IACvB;QACC,IAAI,CAAC,KAAK,EAAE,CAAC;IACd,CAAC;IAED;;OAEG;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","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;AACH,qBAAa,YAAY;IACrB;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,SAAS;CAK7E"}
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"}
@@ -5,6 +5,7 @@
5
5
  /**
6
6
  * Used to replace console.assert to make sure that it always throws an error, both in the browser and in Node
7
7
  */
8
+ // eslint-disable-next-line @typescript-eslint/no-extraneous-class
8
9
  export class ConsoleUtils {
9
10
  /**
10
11
  * Throws an error if the in_condition is false
@@ -13,7 +14,9 @@ export class ConsoleUtils {
13
14
  */
14
15
  static assert(condition, message) {
15
16
  if (!condition) {
16
- throw new Error(typeof message === "number" ? `0x${message.toString(16).padStart(3, "0")}` : message);
17
+ throw new Error(typeof message === "number"
18
+ ? `0x${message.toString(16).padStart(3, "0")}`
19
+ : message);
17
20
  }
18
21
  }
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"consoleUtils.js","sourceRoot":"","sources":["../src/consoleUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,OAAO,YAAY;IACrB;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,SAAc,EAAE,OAAwB;QAClD,IAAI,CAAE,SAAqB,EAAE;YACzB,MAAM,IAAI,KAAK,CAAC,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;SACzG;IACL,CAAC;CACJ","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 */\nexport class ConsoleUtils { // eslint-disable-line @typescript-eslint/no-extraneous-class\n /**\n * Throws an error if the in_condition is false\n * @param in_condition - The condition we are testing: a boolean expression.\n * @param in_message - The error message that will be thrown if the condition is false.\n */\n static assert(condition: any, message: string | number): asserts condition {\n if (!(condition as boolean)) {\n throw new Error(typeof message === \"number\" ? `0x${message.toString(16).padStart(3, \"0\")}` : message);\n }\n }\n}\n"]}
1
+ {"version":3,"file":"consoleUtils.js","sourceRoot":"","sources":["../src/consoleUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,kEAAkE;AAClE,MAAM,OAAO,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","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"]}
@@ -13,8 +13,8 @@ export declare const constants: {
13
13
  */
14
14
  PORT_MUST_BE_NUMBER: string;
15
15
  /**
16
- * INTERNAL ERROR - If you encounter this error, please contact the development team.
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
- * This error message will be displayed when getting the branches of a repository fails
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
- * This error message will be displayed when a request to get an lca fails
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
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA+oDH,eAAO,MAAM,SAAS;;QAvLlB;;WAEG;;QAGH;;WAEG;;QAj1CH;;UAEE;;;QA+2CF;;;;;WAKG;;QAGH;;WAEG;;QAIH;;WAEG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAKH;;WAEG;;QAIH;;WAEG;;QAIH;;WAEG;;QAIH;;WAEG;;QAIH;;WAEG;;QAIH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;UAEE;;QAGF;;YAEI;;QAGJ;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAtnDH;;;;;;;;WAQG;;QAIH;;;;;WAKG;;QAIH;;;;WAIG;;QAIH;;;;;;;;;;;;;;;WAeG;;QAIH;;;;;;WAMG;;QA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