@typespec/ts-http-runtime 0.3.6 → 0.3.7

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 (57) hide show
  1. package/dist/browser/auth/credentials.js.map +1 -1
  2. package/dist/browser/auth/oauth2Flows.js.map +1 -1
  3. package/dist/browser/constants.js +1 -1
  4. package/dist/browser/constants.js.map +1 -1
  5. package/dist/browser/interfaces.js.map +1 -1
  6. package/dist/browser/pipelineRequest.js +1 -1
  7. package/dist/browser/policies/logPolicy.js +1 -1
  8. package/dist/browser/policies/logPolicy.js.map +1 -1
  9. package/dist/browser/policies/multipartPolicy.js +1 -1
  10. package/dist/browser/util/internal.d.ts +1 -1
  11. package/dist/browser/util/internal.js +1 -1
  12. package/dist/browser/util/sha256.common.js.map +1 -1
  13. package/dist/browser/util/{uuidUtils-browser.d.mts → uuidUtils.d.ts} +1 -1
  14. package/dist/browser/util/uuidUtils.js +11 -0
  15. package/dist/browser/util/uuidUtils.js.map +1 -0
  16. package/dist/commonjs/auth/credentials.js.map +2 -2
  17. package/dist/commonjs/auth/oauth2Flows.js.map +1 -1
  18. package/dist/commonjs/constants.js +1 -1
  19. package/dist/commonjs/constants.js.map +1 -1
  20. package/dist/commonjs/interfaces.js.map +1 -1
  21. package/dist/commonjs/policies/logPolicy.js +1 -1
  22. package/dist/commonjs/policies/logPolicy.js.map +2 -2
  23. package/dist/commonjs/tsdoc-metadata.json +1 -1
  24. package/dist/commonjs/util/concat.js.map +2 -2
  25. package/dist/commonjs/util/uuidUtils.js +1 -1
  26. package/dist/commonjs/util/uuidUtils.js.map +2 -2
  27. package/dist/esm/auth/credentials.js.map +1 -1
  28. package/dist/esm/auth/oauth2Flows.js.map +1 -1
  29. package/dist/esm/constants.js +1 -1
  30. package/dist/esm/constants.js.map +1 -1
  31. package/dist/esm/interfaces.js.map +1 -1
  32. package/dist/esm/policies/logPolicy.js +1 -1
  33. package/dist/esm/policies/logPolicy.js.map +1 -1
  34. package/dist/esm/util/concat.js.map +1 -1
  35. package/dist/esm/util/uuidUtils.js +1 -1
  36. package/dist/esm/util/uuidUtils.js.map +1 -1
  37. package/dist/react-native/auth/credentials.js.map +1 -1
  38. package/dist/react-native/auth/oauth2Flows.js.map +1 -1
  39. package/dist/react-native/constants.js +1 -1
  40. package/dist/react-native/constants.js.map +1 -1
  41. package/dist/react-native/interfaces.js.map +1 -1
  42. package/dist/react-native/policies/logPolicy.js +1 -1
  43. package/dist/react-native/policies/logPolicy.js.map +1 -1
  44. package/dist/react-native/util/concat-react-native.mjs.map +1 -1
  45. package/dist/react-native/util/sha256.common.js.map +1 -1
  46. package/dist/react-native/util/uuidUtils-react-native.d.mts +6 -1
  47. package/dist/react-native/util/uuidUtils-react-native.mjs +42 -1
  48. package/dist/react-native/util/uuidUtils-react-native.mjs.map +1 -1
  49. package/package.json +4 -5
  50. package/dist/browser/util/uuidUtils-browser.mjs +0 -16
  51. package/dist/browser/util/uuidUtils-browser.mjs.map +0 -1
  52. package/dist/browser/util/uuidUtils.common.d.ts +0 -13
  53. package/dist/browser/util/uuidUtils.common.js +0 -40
  54. package/dist/browser/util/uuidUtils.common.js.map +0 -1
  55. package/dist/react-native/util/uuidUtils.common.d.ts +0 -13
  56. package/dist/react-native/util/uuidUtils.common.js +0 -40
  57. package/dist/react-native/util/uuidUtils.common.js.map +0 -1
@@ -1,40 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- /**
4
- * Generated Universally Unique Identifier
5
- *
6
- * @returns RFC4122 v4 UUID.
7
- */
8
- export function generateUUID() {
9
- let uuid = "";
10
- for (let i = 0; i < 32; i++) {
11
- // Generate a random number between 0 and 15
12
- const randomNumber = Math.floor(Math.random() * 16);
13
- // Set the UUID version to 4 in the 13th position
14
- if (i === 12) {
15
- uuid += "4";
16
- }
17
- else if (i === 16) {
18
- // Set the UUID variant to "10" in the 17th position
19
- uuid += ((randomNumber & 0x3) | 0x8).toString(16);
20
- }
21
- else {
22
- // Add a random hexadecimal digit to the UUID string
23
- uuid += randomNumber.toString(16);
24
- }
25
- // Add hyphens to the UUID string at the appropriate positions
26
- if (i === 7 || i === 11 || i === 15 || i === 19) {
27
- uuid += "-";
28
- }
29
- }
30
- return uuid;
31
- }
32
- /**
33
- * Generated Universally Unique Identifier
34
- *
35
- * @returns RFC4122 v4 UUID.
36
- */
37
- export function randomUUID() {
38
- return generateUUID();
39
- }
40
- //# sourceMappingURL=uuidUtils.common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uuidUtils.common.js","sourceRoot":"","sources":["../../../src/util/uuidUtils.common.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;GAIG;AACH,MAAM,UAAU,YAAY;IAC1B,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC;QAC5B,4CAA4C;QAC5C,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QACpD,iDAAiD;QACjD,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YACb,IAAI,IAAI,GAAG,CAAC;QACd,CAAC;aAAM,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YACpB,oDAAoD;YACpD,IAAI,IAAI,CAAC,CAAC,YAAY,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACpD,CAAC;aAAM,CAAC;YACN,oDAAoD;YACpD,IAAI,IAAI,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QACpC,CAAC;QACD,8DAA8D;QAC9D,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC;YAChD,IAAI,IAAI,GAAG,CAAC;QACd,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,UAAU;IACxB,OAAO,YAAY,EAAE,CAAC;AACxB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * Generated Universally Unique Identifier\n *\n * @returns RFC4122 v4 UUID.\n */\nexport function generateUUID(): string {\n let uuid = \"\";\n for (let i = 0; i < 32; i++) {\n // Generate a random number between 0 and 15\n const randomNumber = Math.floor(Math.random() * 16);\n // Set the UUID version to 4 in the 13th position\n if (i === 12) {\n uuid += \"4\";\n } else if (i === 16) {\n // Set the UUID variant to \"10\" in the 17th position\n uuid += ((randomNumber & 0x3) | 0x8).toString(16);\n } else {\n // Add a random hexadecimal digit to the UUID string\n uuid += randomNumber.toString(16);\n }\n // Add hyphens to the UUID string at the appropriate positions\n if (i === 7 || i === 11 || i === 15 || i === 19) {\n uuid += \"-\";\n }\n }\n return uuid;\n}\n\n/**\n * Generated Universally Unique Identifier\n *\n * @returns RFC4122 v4 UUID.\n */\nexport function randomUUID(): string {\n return generateUUID();\n}\n"]}