@azure/storage-blob 12.29.1 → 12.30.0-alpha.20251111.1

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 (418) hide show
  1. package/dist/browser/BlobBatch.d.ts +1 -2
  2. package/dist/browser/BlobBatch.d.ts.map +1 -1
  3. package/dist/browser/BlobBatch.js +1 -3
  4. package/dist/browser/BlobBatch.js.map +1 -1
  5. package/dist/browser/BlobBatchClient.d.ts +1 -2
  6. package/dist/browser/BlobBatchClient.d.ts.map +1 -1
  7. package/dist/browser/BlobBatchClient.js +1 -1
  8. package/dist/browser/BlobBatchClient.js.map +1 -1
  9. package/dist/browser/BlobServiceClient.d.ts +1 -2
  10. package/dist/browser/BlobServiceClient.d.ts.map +1 -1
  11. package/dist/browser/BlobServiceClient.js +1 -2
  12. package/dist/browser/BlobServiceClient.js.map +1 -1
  13. package/dist/browser/Clients.d.ts +1 -2
  14. package/dist/browser/Clients.d.ts.map +1 -1
  15. package/dist/browser/Clients.js +1 -2
  16. package/dist/browser/Clients.js.map +1 -1
  17. package/dist/browser/ContainerClient.d.ts +1 -2
  18. package/dist/browser/ContainerClient.d.ts.map +1 -1
  19. package/dist/browser/ContainerClient.js +1 -2
  20. package/dist/browser/ContainerClient.js.map +1 -1
  21. package/dist/browser/Pipeline.d.ts +2 -3
  22. package/dist/browser/Pipeline.d.ts.map +1 -1
  23. package/dist/browser/Pipeline.js +1 -9
  24. package/dist/browser/Pipeline.js.map +1 -1
  25. package/dist/browser/StorageClient.d.ts +1 -2
  26. package/dist/browser/StorageClient.d.ts.map +1 -1
  27. package/dist/browser/StorageClient.js.map +1 -1
  28. package/dist/browser/index-browser.d.mts.map +1 -1
  29. package/dist/browser/index-browser.mjs.map +1 -1
  30. package/dist/browser/index.d.ts +1 -7
  31. package/dist/browser/index.js +2 -7
  32. package/dist/browser/sas/AccountSASSignatureValues.d.ts +1 -1
  33. package/dist/browser/sas/AccountSASSignatureValues.d.ts.map +1 -1
  34. package/dist/browser/sas/AccountSASSignatureValues.js.map +1 -1
  35. package/dist/browser/sas/BlobSASSignatureValues.d.ts +1 -1
  36. package/dist/browser/sas/BlobSASSignatureValues.d.ts.map +1 -1
  37. package/dist/browser/sas/BlobSASSignatureValues.js +1 -1
  38. package/dist/browser/sas/BlobSASSignatureValues.js.map +1 -1
  39. package/dist/browser/utils/constants.js +1 -1
  40. package/dist/browser/utils/constants.js.map +1 -1
  41. package/dist/commonjs/BlobBatch.d.ts +1 -2
  42. package/dist/commonjs/BlobBatch.d.ts.map +1 -1
  43. package/dist/commonjs/BlobBatch.js +7 -9
  44. package/dist/commonjs/BlobBatch.js.map +1 -1
  45. package/dist/commonjs/BlobBatchClient.d.ts +1 -2
  46. package/dist/commonjs/BlobBatchClient.d.ts.map +1 -1
  47. package/dist/commonjs/BlobBatchClient.js +2 -2
  48. package/dist/commonjs/BlobBatchClient.js.map +1 -1
  49. package/dist/commonjs/BlobServiceClient.d.ts +1 -2
  50. package/dist/commonjs/BlobServiceClient.d.ts.map +1 -1
  51. package/dist/commonjs/BlobServiceClient.js +8 -9
  52. package/dist/commonjs/BlobServiceClient.js.map +1 -1
  53. package/dist/commonjs/Clients.d.ts +1 -2
  54. package/dist/commonjs/Clients.d.ts.map +1 -1
  55. package/dist/commonjs/Clients.js +25 -26
  56. package/dist/commonjs/Clients.js.map +1 -1
  57. package/dist/commonjs/ContainerClient.d.ts +1 -2
  58. package/dist/commonjs/ContainerClient.d.ts.map +1 -1
  59. package/dist/commonjs/ContainerClient.js +8 -9
  60. package/dist/commonjs/ContainerClient.js.map +1 -1
  61. package/dist/commonjs/Pipeline.d.ts +2 -3
  62. package/dist/commonjs/Pipeline.d.ts.map +1 -1
  63. package/dist/commonjs/Pipeline.js +12 -20
  64. package/dist/commonjs/Pipeline.js.map +1 -1
  65. package/dist/commonjs/StorageClient.d.ts +1 -2
  66. package/dist/commonjs/StorageClient.d.ts.map +1 -1
  67. package/dist/commonjs/StorageClient.js.map +1 -1
  68. package/dist/commonjs/index.d.ts +1 -10
  69. package/dist/commonjs/index.d.ts.map +1 -1
  70. package/dist/commonjs/index.js +14 -12
  71. package/dist/commonjs/index.js.map +1 -1
  72. package/dist/commonjs/sas/AccountSASSignatureValues.d.ts +1 -1
  73. package/dist/commonjs/sas/AccountSASSignatureValues.d.ts.map +1 -1
  74. package/dist/commonjs/sas/AccountSASSignatureValues.js.map +1 -1
  75. package/dist/commonjs/sas/BlobSASSignatureValues.d.ts +1 -1
  76. package/dist/commonjs/sas/BlobSASSignatureValues.d.ts.map +1 -1
  77. package/dist/commonjs/sas/BlobSASSignatureValues.js +2 -2
  78. package/dist/commonjs/sas/BlobSASSignatureValues.js.map +1 -1
  79. package/dist/commonjs/tsdoc-metadata.json +1 -1
  80. package/dist/commonjs/utils/constants.js +1 -1
  81. package/dist/commonjs/utils/constants.js.map +1 -1
  82. package/dist/esm/BlobBatch.d.ts +1 -2
  83. package/dist/esm/BlobBatch.d.ts.map +1 -1
  84. package/dist/esm/BlobBatch.js +1 -3
  85. package/dist/esm/BlobBatch.js.map +1 -1
  86. package/dist/esm/BlobBatchClient.d.ts +1 -2
  87. package/dist/esm/BlobBatchClient.d.ts.map +1 -1
  88. package/dist/esm/BlobBatchClient.js +1 -1
  89. package/dist/esm/BlobBatchClient.js.map +1 -1
  90. package/dist/esm/BlobServiceClient.d.ts +1 -2
  91. package/dist/esm/BlobServiceClient.d.ts.map +1 -1
  92. package/dist/esm/BlobServiceClient.js +1 -2
  93. package/dist/esm/BlobServiceClient.js.map +1 -1
  94. package/dist/esm/Clients.d.ts +1 -2
  95. package/dist/esm/Clients.d.ts.map +1 -1
  96. package/dist/esm/Clients.js +1 -2
  97. package/dist/esm/Clients.js.map +1 -1
  98. package/dist/esm/ContainerClient.d.ts +1 -2
  99. package/dist/esm/ContainerClient.d.ts.map +1 -1
  100. package/dist/esm/ContainerClient.js +1 -2
  101. package/dist/esm/ContainerClient.js.map +1 -1
  102. package/dist/esm/Pipeline.d.ts +2 -3
  103. package/dist/esm/Pipeline.d.ts.map +1 -1
  104. package/dist/esm/Pipeline.js +1 -9
  105. package/dist/esm/Pipeline.js.map +1 -1
  106. package/dist/esm/StorageClient.d.ts +1 -2
  107. package/dist/esm/StorageClient.d.ts.map +1 -1
  108. package/dist/esm/StorageClient.js.map +1 -1
  109. package/dist/esm/index.d.ts +1 -10
  110. package/dist/esm/index.d.ts.map +1 -1
  111. package/dist/esm/index.js +1 -10
  112. package/dist/esm/index.js.map +1 -1
  113. package/dist/esm/sas/AccountSASSignatureValues.d.ts +1 -1
  114. package/dist/esm/sas/AccountSASSignatureValues.d.ts.map +1 -1
  115. package/dist/esm/sas/AccountSASSignatureValues.js.map +1 -1
  116. package/dist/esm/sas/BlobSASSignatureValues.d.ts +1 -1
  117. package/dist/esm/sas/BlobSASSignatureValues.d.ts.map +1 -1
  118. package/dist/esm/sas/BlobSASSignatureValues.js +1 -1
  119. package/dist/esm/sas/BlobSASSignatureValues.js.map +1 -1
  120. package/dist/esm/utils/constants.js +1 -1
  121. package/dist/esm/utils/constants.js.map +1 -1
  122. package/dist/react-native/BlobBatch.d.ts +1 -2
  123. package/dist/react-native/BlobBatch.d.ts.map +1 -1
  124. package/dist/react-native/BlobBatch.js +1 -3
  125. package/dist/react-native/BlobBatch.js.map +1 -1
  126. package/dist/react-native/BlobBatchClient.d.ts +1 -2
  127. package/dist/react-native/BlobBatchClient.d.ts.map +1 -1
  128. package/dist/react-native/BlobBatchClient.js +1 -1
  129. package/dist/react-native/BlobBatchClient.js.map +1 -1
  130. package/dist/react-native/BlobServiceClient.d.ts +1 -2
  131. package/dist/react-native/BlobServiceClient.d.ts.map +1 -1
  132. package/dist/react-native/BlobServiceClient.js +1 -2
  133. package/dist/react-native/BlobServiceClient.js.map +1 -1
  134. package/dist/react-native/Clients.d.ts +1 -2
  135. package/dist/react-native/Clients.d.ts.map +1 -1
  136. package/dist/react-native/Clients.js +1 -2
  137. package/dist/react-native/Clients.js.map +1 -1
  138. package/dist/react-native/ContainerClient.d.ts +1 -2
  139. package/dist/react-native/ContainerClient.d.ts.map +1 -1
  140. package/dist/react-native/ContainerClient.js +1 -2
  141. package/dist/react-native/ContainerClient.js.map +1 -1
  142. package/dist/react-native/Pipeline.d.ts +2 -3
  143. package/dist/react-native/Pipeline.d.ts.map +1 -1
  144. package/dist/react-native/Pipeline.js +1 -9
  145. package/dist/react-native/Pipeline.js.map +1 -1
  146. package/dist/react-native/StorageClient.d.ts +1 -2
  147. package/dist/react-native/StorageClient.d.ts.map +1 -1
  148. package/dist/react-native/StorageClient.js.map +1 -1
  149. package/dist/react-native/index.d.ts +1 -10
  150. package/dist/react-native/index.d.ts.map +1 -1
  151. package/dist/react-native/index.js +1 -10
  152. package/dist/react-native/index.js.map +1 -1
  153. package/dist/react-native/sas/AccountSASSignatureValues.d.ts +1 -1
  154. package/dist/react-native/sas/AccountSASSignatureValues.d.ts.map +1 -1
  155. package/dist/react-native/sas/AccountSASSignatureValues.js.map +1 -1
  156. package/dist/react-native/sas/BlobSASSignatureValues.d.ts +1 -1
  157. package/dist/react-native/sas/BlobSASSignatureValues.d.ts.map +1 -1
  158. package/dist/react-native/sas/BlobSASSignatureValues.js +1 -1
  159. package/dist/react-native/sas/BlobSASSignatureValues.js.map +1 -1
  160. package/dist/react-native/utils/constants.js +1 -1
  161. package/dist/react-native/utils/constants.js.map +1 -1
  162. package/package.json +18 -18
  163. package/dist/browser/StorageBrowserPolicyFactory.d.ts +0 -16
  164. package/dist/browser/StorageBrowserPolicyFactory.d.ts.map +0 -1
  165. package/dist/browser/StorageBrowserPolicyFactory.js +0 -19
  166. package/dist/browser/StorageBrowserPolicyFactory.js.map +0 -1
  167. package/dist/browser/StorageRetryPolicyFactory.d.ts +0 -66
  168. package/dist/browser/StorageRetryPolicyFactory.d.ts.map +0 -1
  169. package/dist/browser/StorageRetryPolicyFactory.js +0 -28
  170. package/dist/browser/StorageRetryPolicyFactory.js.map +0 -1
  171. package/dist/browser/credentials/AnonymousCredential.d.ts +0 -19
  172. package/dist/browser/credentials/AnonymousCredential.d.ts.map +0 -1
  173. package/dist/browser/credentials/AnonymousCredential.js +0 -22
  174. package/dist/browser/credentials/AnonymousCredential.js.map +0 -1
  175. package/dist/browser/credentials/Credential.d.ts +0 -20
  176. package/dist/browser/credentials/Credential.d.ts.map +0 -1
  177. package/dist/browser/credentials/Credential.js +0 -18
  178. package/dist/browser/credentials/Credential.js.map +0 -1
  179. package/dist/browser/credentials/StorageSharedKeyCredential-browser.d.mts.map +0 -1
  180. package/dist/browser/credentials/StorageSharedKeyCredential-browser.mjs.map +0 -1
  181. package/dist/browser/credentials/StorageSharedKeyCredential.d.ts +0 -3
  182. package/dist/browser/credentials/StorageSharedKeyCredential.js +0 -5
  183. package/dist/browser/policies/AnonymousCredentialPolicy.d.ts +0 -15
  184. package/dist/browser/policies/AnonymousCredentialPolicy.d.ts.map +0 -1
  185. package/dist/browser/policies/AnonymousCredentialPolicy.js +0 -20
  186. package/dist/browser/policies/AnonymousCredentialPolicy.js.map +0 -1
  187. package/dist/browser/policies/CredentialPolicy.d.ts +0 -22
  188. package/dist/browser/policies/CredentialPolicy.d.ts.map +0 -1
  189. package/dist/browser/policies/CredentialPolicy.js +0 -29
  190. package/dist/browser/policies/CredentialPolicy.js.map +0 -1
  191. package/dist/browser/policies/RequestPolicy.d.ts +0 -45
  192. package/dist/browser/policies/RequestPolicy.d.ts.map +0 -1
  193. package/dist/browser/policies/RequestPolicy.js +0 -42
  194. package/dist/browser/policies/RequestPolicy.js.map +0 -1
  195. package/dist/browser/policies/StorageBrowserPolicy.d.ts +0 -28
  196. package/dist/browser/policies/StorageBrowserPolicy.d.ts.map +0 -1
  197. package/dist/browser/policies/StorageBrowserPolicy.js +0 -47
  198. package/dist/browser/policies/StorageBrowserPolicy.js.map +0 -1
  199. package/dist/browser/policies/StorageBrowserPolicyV2.d.ts +0 -11
  200. package/dist/browser/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
  201. package/dist/browser/policies/StorageBrowserPolicyV2.js +0 -31
  202. package/dist/browser/policies/StorageBrowserPolicyV2.js.map +0 -1
  203. package/dist/browser/policies/StorageCorrectContentLengthPolicy-browser.d.mts.map +0 -1
  204. package/dist/browser/policies/StorageCorrectContentLengthPolicy-browser.mjs.map +0 -1
  205. package/dist/browser/policies/StorageCorrectContentLengthPolicy.d.ts +0 -10
  206. package/dist/browser/policies/StorageCorrectContentLengthPolicy.js +0 -18
  207. package/dist/browser/policies/StorageRetryPolicy.d.ts +0 -62
  208. package/dist/browser/policies/StorageRetryPolicy.d.ts.map +0 -1
  209. package/dist/browser/policies/StorageRetryPolicy.js +0 -219
  210. package/dist/browser/policies/StorageRetryPolicy.js.map +0 -1
  211. package/dist/browser/policies/StorageRetryPolicyType.d.ts +0 -14
  212. package/dist/browser/policies/StorageRetryPolicyType.d.ts.map +0 -1
  213. package/dist/browser/policies/StorageRetryPolicyType.js +0 -17
  214. package/dist/browser/policies/StorageRetryPolicyType.js.map +0 -1
  215. package/dist/browser/policies/StorageRetryPolicyV2.d.ts +0 -11
  216. package/dist/browser/policies/StorageRetryPolicyV2.d.ts.map +0 -1
  217. package/dist/browser/policies/StorageRetryPolicyV2.js +0 -164
  218. package/dist/browser/policies/StorageRetryPolicyV2.js.map +0 -1
  219. package/dist/browser/policies/StorageSharedKeyCredentialPolicy.d.ts +0 -54
  220. package/dist/browser/policies/StorageSharedKeyCredentialPolicy.d.ts.map +0 -1
  221. package/dist/browser/policies/StorageSharedKeyCredentialPolicy.js +0 -145
  222. package/dist/browser/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
  223. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-browser.d.mts.map +0 -1
  224. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2-browser.mjs.map +0 -1
  225. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2.d.ts +0 -17
  226. package/dist/browser/policies/StorageSharedKeyCredentialPolicyV2.js +0 -18
  227. package/dist/commonjs/StorageBrowserPolicyFactory.d.ts +0 -16
  228. package/dist/commonjs/StorageBrowserPolicyFactory.d.ts.map +0 -1
  229. package/dist/commonjs/StorageBrowserPolicyFactory.js +0 -23
  230. package/dist/commonjs/StorageBrowserPolicyFactory.js.map +0 -1
  231. package/dist/commonjs/StorageRetryPolicyFactory.d.ts +0 -66
  232. package/dist/commonjs/StorageRetryPolicyFactory.d.ts.map +0 -1
  233. package/dist/commonjs/StorageRetryPolicyFactory.js +0 -33
  234. package/dist/commonjs/StorageRetryPolicyFactory.js.map +0 -1
  235. package/dist/commonjs/credentials/AnonymousCredential.d.ts +0 -19
  236. package/dist/commonjs/credentials/AnonymousCredential.d.ts.map +0 -1
  237. package/dist/commonjs/credentials/AnonymousCredential.js +0 -26
  238. package/dist/commonjs/credentials/AnonymousCredential.js.map +0 -1
  239. package/dist/commonjs/credentials/Credential.d.ts +0 -20
  240. package/dist/commonjs/credentials/Credential.d.ts.map +0 -1
  241. package/dist/commonjs/credentials/Credential.js +0 -22
  242. package/dist/commonjs/credentials/Credential.js.map +0 -1
  243. package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts +0 -38
  244. package/dist/commonjs/credentials/StorageSharedKeyCredential.d.ts.map +0 -1
  245. package/dist/commonjs/credentials/StorageSharedKeyCredential.js +0 -52
  246. package/dist/commonjs/credentials/StorageSharedKeyCredential.js.map +0 -1
  247. package/dist/commonjs/policies/AnonymousCredentialPolicy.d.ts +0 -15
  248. package/dist/commonjs/policies/AnonymousCredentialPolicy.d.ts.map +0 -1
  249. package/dist/commonjs/policies/AnonymousCredentialPolicy.js +0 -24
  250. package/dist/commonjs/policies/AnonymousCredentialPolicy.js.map +0 -1
  251. package/dist/commonjs/policies/CredentialPolicy.d.ts +0 -22
  252. package/dist/commonjs/policies/CredentialPolicy.d.ts.map +0 -1
  253. package/dist/commonjs/policies/CredentialPolicy.js +0 -33
  254. package/dist/commonjs/policies/CredentialPolicy.js.map +0 -1
  255. package/dist/commonjs/policies/RequestPolicy.d.ts +0 -45
  256. package/dist/commonjs/policies/RequestPolicy.d.ts.map +0 -1
  257. package/dist/commonjs/policies/RequestPolicy.js +0 -46
  258. package/dist/commonjs/policies/RequestPolicy.js.map +0 -1
  259. package/dist/commonjs/policies/StorageBrowserPolicy.d.ts +0 -28
  260. package/dist/commonjs/policies/StorageBrowserPolicy.d.ts.map +0 -1
  261. package/dist/commonjs/policies/StorageBrowserPolicy.js +0 -51
  262. package/dist/commonjs/policies/StorageBrowserPolicy.js.map +0 -1
  263. package/dist/commonjs/policies/StorageBrowserPolicyV2.d.ts +0 -11
  264. package/dist/commonjs/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
  265. package/dist/commonjs/policies/StorageBrowserPolicyV2.js +0 -35
  266. package/dist/commonjs/policies/StorageBrowserPolicyV2.js.map +0 -1
  267. package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.d.ts +0 -10
  268. package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.d.ts.map +0 -1
  269. package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.js +0 -31
  270. package/dist/commonjs/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
  271. package/dist/commonjs/policies/StorageRetryPolicy.d.ts +0 -62
  272. package/dist/commonjs/policies/StorageRetryPolicy.d.ts.map +0 -1
  273. package/dist/commonjs/policies/StorageRetryPolicy.js +0 -224
  274. package/dist/commonjs/policies/StorageRetryPolicy.js.map +0 -1
  275. package/dist/commonjs/policies/StorageRetryPolicyType.d.ts +0 -14
  276. package/dist/commonjs/policies/StorageRetryPolicyType.d.ts.map +0 -1
  277. package/dist/commonjs/policies/StorageRetryPolicyType.js +0 -20
  278. package/dist/commonjs/policies/StorageRetryPolicyType.js.map +0 -1
  279. package/dist/commonjs/policies/StorageRetryPolicyV2.d.ts +0 -11
  280. package/dist/commonjs/policies/StorageRetryPolicyV2.d.ts.map +0 -1
  281. package/dist/commonjs/policies/StorageRetryPolicyV2.js +0 -168
  282. package/dist/commonjs/policies/StorageRetryPolicyV2.js.map +0 -1
  283. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.d.ts +0 -54
  284. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.d.ts.map +0 -1
  285. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js +0 -149
  286. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
  287. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.d.ts +0 -17
  288. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +0 -1
  289. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js +0 -136
  290. package/dist/commonjs/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
  291. package/dist/esm/StorageBrowserPolicyFactory.d.ts +0 -16
  292. package/dist/esm/StorageBrowserPolicyFactory.d.ts.map +0 -1
  293. package/dist/esm/StorageBrowserPolicyFactory.js +0 -19
  294. package/dist/esm/StorageBrowserPolicyFactory.js.map +0 -1
  295. package/dist/esm/StorageRetryPolicyFactory.d.ts +0 -66
  296. package/dist/esm/StorageRetryPolicyFactory.d.ts.map +0 -1
  297. package/dist/esm/StorageRetryPolicyFactory.js +0 -28
  298. package/dist/esm/StorageRetryPolicyFactory.js.map +0 -1
  299. package/dist/esm/credentials/AnonymousCredential.d.ts +0 -19
  300. package/dist/esm/credentials/AnonymousCredential.d.ts.map +0 -1
  301. package/dist/esm/credentials/AnonymousCredential.js +0 -22
  302. package/dist/esm/credentials/AnonymousCredential.js.map +0 -1
  303. package/dist/esm/credentials/Credential.d.ts +0 -20
  304. package/dist/esm/credentials/Credential.d.ts.map +0 -1
  305. package/dist/esm/credentials/Credential.js +0 -18
  306. package/dist/esm/credentials/Credential.js.map +0 -1
  307. package/dist/esm/credentials/StorageSharedKeyCredential.d.ts +0 -38
  308. package/dist/esm/credentials/StorageSharedKeyCredential.d.ts.map +0 -1
  309. package/dist/esm/credentials/StorageSharedKeyCredential.js +0 -48
  310. package/dist/esm/credentials/StorageSharedKeyCredential.js.map +0 -1
  311. package/dist/esm/policies/AnonymousCredentialPolicy.d.ts +0 -15
  312. package/dist/esm/policies/AnonymousCredentialPolicy.d.ts.map +0 -1
  313. package/dist/esm/policies/AnonymousCredentialPolicy.js +0 -20
  314. package/dist/esm/policies/AnonymousCredentialPolicy.js.map +0 -1
  315. package/dist/esm/policies/CredentialPolicy.d.ts +0 -22
  316. package/dist/esm/policies/CredentialPolicy.d.ts.map +0 -1
  317. package/dist/esm/policies/CredentialPolicy.js +0 -29
  318. package/dist/esm/policies/CredentialPolicy.js.map +0 -1
  319. package/dist/esm/policies/RequestPolicy.d.ts +0 -45
  320. package/dist/esm/policies/RequestPolicy.d.ts.map +0 -1
  321. package/dist/esm/policies/RequestPolicy.js +0 -42
  322. package/dist/esm/policies/RequestPolicy.js.map +0 -1
  323. package/dist/esm/policies/StorageBrowserPolicy.d.ts +0 -28
  324. package/dist/esm/policies/StorageBrowserPolicy.d.ts.map +0 -1
  325. package/dist/esm/policies/StorageBrowserPolicy.js +0 -47
  326. package/dist/esm/policies/StorageBrowserPolicy.js.map +0 -1
  327. package/dist/esm/policies/StorageBrowserPolicyV2.d.ts +0 -11
  328. package/dist/esm/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
  329. package/dist/esm/policies/StorageBrowserPolicyV2.js +0 -31
  330. package/dist/esm/policies/StorageBrowserPolicyV2.js.map +0 -1
  331. package/dist/esm/policies/StorageCorrectContentLengthPolicy.d.ts +0 -10
  332. package/dist/esm/policies/StorageCorrectContentLengthPolicy.d.ts.map +0 -1
  333. package/dist/esm/policies/StorageCorrectContentLengthPolicy.js +0 -27
  334. package/dist/esm/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
  335. package/dist/esm/policies/StorageRetryPolicy.d.ts +0 -62
  336. package/dist/esm/policies/StorageRetryPolicy.d.ts.map +0 -1
  337. package/dist/esm/policies/StorageRetryPolicy.js +0 -219
  338. package/dist/esm/policies/StorageRetryPolicy.js.map +0 -1
  339. package/dist/esm/policies/StorageRetryPolicyType.d.ts +0 -14
  340. package/dist/esm/policies/StorageRetryPolicyType.d.ts.map +0 -1
  341. package/dist/esm/policies/StorageRetryPolicyType.js +0 -17
  342. package/dist/esm/policies/StorageRetryPolicyType.js.map +0 -1
  343. package/dist/esm/policies/StorageRetryPolicyV2.d.ts +0 -11
  344. package/dist/esm/policies/StorageRetryPolicyV2.d.ts.map +0 -1
  345. package/dist/esm/policies/StorageRetryPolicyV2.js +0 -164
  346. package/dist/esm/policies/StorageRetryPolicyV2.js.map +0 -1
  347. package/dist/esm/policies/StorageSharedKeyCredentialPolicy.d.ts +0 -54
  348. package/dist/esm/policies/StorageSharedKeyCredentialPolicy.d.ts.map +0 -1
  349. package/dist/esm/policies/StorageSharedKeyCredentialPolicy.js +0 -145
  350. package/dist/esm/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
  351. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.d.ts +0 -17
  352. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +0 -1
  353. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.js +0 -132
  354. package/dist/esm/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
  355. package/dist/react-native/StorageBrowserPolicyFactory.d.ts +0 -16
  356. package/dist/react-native/StorageBrowserPolicyFactory.d.ts.map +0 -1
  357. package/dist/react-native/StorageBrowserPolicyFactory.js +0 -19
  358. package/dist/react-native/StorageBrowserPolicyFactory.js.map +0 -1
  359. package/dist/react-native/StorageRetryPolicyFactory.d.ts +0 -66
  360. package/dist/react-native/StorageRetryPolicyFactory.d.ts.map +0 -1
  361. package/dist/react-native/StorageRetryPolicyFactory.js +0 -28
  362. package/dist/react-native/StorageRetryPolicyFactory.js.map +0 -1
  363. package/dist/react-native/credentials/AnonymousCredential.d.ts +0 -19
  364. package/dist/react-native/credentials/AnonymousCredential.d.ts.map +0 -1
  365. package/dist/react-native/credentials/AnonymousCredential.js +0 -22
  366. package/dist/react-native/credentials/AnonymousCredential.js.map +0 -1
  367. package/dist/react-native/credentials/Credential.d.ts +0 -20
  368. package/dist/react-native/credentials/Credential.d.ts.map +0 -1
  369. package/dist/react-native/credentials/Credential.js +0 -18
  370. package/dist/react-native/credentials/Credential.js.map +0 -1
  371. package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts +0 -38
  372. package/dist/react-native/credentials/StorageSharedKeyCredential.d.ts.map +0 -1
  373. package/dist/react-native/credentials/StorageSharedKeyCredential.js +0 -48
  374. package/dist/react-native/credentials/StorageSharedKeyCredential.js.map +0 -1
  375. package/dist/react-native/policies/AnonymousCredentialPolicy.d.ts +0 -15
  376. package/dist/react-native/policies/AnonymousCredentialPolicy.d.ts.map +0 -1
  377. package/dist/react-native/policies/AnonymousCredentialPolicy.js +0 -20
  378. package/dist/react-native/policies/AnonymousCredentialPolicy.js.map +0 -1
  379. package/dist/react-native/policies/CredentialPolicy.d.ts +0 -22
  380. package/dist/react-native/policies/CredentialPolicy.d.ts.map +0 -1
  381. package/dist/react-native/policies/CredentialPolicy.js +0 -29
  382. package/dist/react-native/policies/CredentialPolicy.js.map +0 -1
  383. package/dist/react-native/policies/RequestPolicy.d.ts +0 -45
  384. package/dist/react-native/policies/RequestPolicy.d.ts.map +0 -1
  385. package/dist/react-native/policies/RequestPolicy.js +0 -42
  386. package/dist/react-native/policies/RequestPolicy.js.map +0 -1
  387. package/dist/react-native/policies/StorageBrowserPolicy.d.ts +0 -28
  388. package/dist/react-native/policies/StorageBrowserPolicy.d.ts.map +0 -1
  389. package/dist/react-native/policies/StorageBrowserPolicy.js +0 -47
  390. package/dist/react-native/policies/StorageBrowserPolicy.js.map +0 -1
  391. package/dist/react-native/policies/StorageBrowserPolicyV2.d.ts +0 -11
  392. package/dist/react-native/policies/StorageBrowserPolicyV2.d.ts.map +0 -1
  393. package/dist/react-native/policies/StorageBrowserPolicyV2.js +0 -31
  394. package/dist/react-native/policies/StorageBrowserPolicyV2.js.map +0 -1
  395. package/dist/react-native/policies/StorageCorrectContentLengthPolicy.d.ts +0 -10
  396. package/dist/react-native/policies/StorageCorrectContentLengthPolicy.d.ts.map +0 -1
  397. package/dist/react-native/policies/StorageCorrectContentLengthPolicy.js +0 -27
  398. package/dist/react-native/policies/StorageCorrectContentLengthPolicy.js.map +0 -1
  399. package/dist/react-native/policies/StorageRetryPolicy.d.ts +0 -62
  400. package/dist/react-native/policies/StorageRetryPolicy.d.ts.map +0 -1
  401. package/dist/react-native/policies/StorageRetryPolicy.js +0 -219
  402. package/dist/react-native/policies/StorageRetryPolicy.js.map +0 -1
  403. package/dist/react-native/policies/StorageRetryPolicyType.d.ts +0 -14
  404. package/dist/react-native/policies/StorageRetryPolicyType.d.ts.map +0 -1
  405. package/dist/react-native/policies/StorageRetryPolicyType.js +0 -17
  406. package/dist/react-native/policies/StorageRetryPolicyType.js.map +0 -1
  407. package/dist/react-native/policies/StorageRetryPolicyV2.d.ts +0 -11
  408. package/dist/react-native/policies/StorageRetryPolicyV2.d.ts.map +0 -1
  409. package/dist/react-native/policies/StorageRetryPolicyV2.js +0 -164
  410. package/dist/react-native/policies/StorageRetryPolicyV2.js.map +0 -1
  411. package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.d.ts +0 -54
  412. package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.d.ts.map +0 -1
  413. package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.js +0 -145
  414. package/dist/react-native/policies/StorageSharedKeyCredentialPolicy.js.map +0 -1
  415. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.d.ts +0 -17
  416. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.d.ts.map +0 -1
  417. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js +0 -132
  418. package/dist/react-native/policies/StorageSharedKeyCredentialPolicyV2.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageRetryPolicyFactory.d.ts","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,sBAAsB,CAAC;IAElD;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAEjC;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAEpC;;;;;;;OAOG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;GAEG;AACH,qBAAa,yBAA0B,YAAW,oBAAoB;IACpE,OAAO,CAAC,YAAY,CAAC,CAAsB;IAE3C;;;OAGG;gBACS,YAAY,CAAC,EAAE,mBAAmB;IAI9C;;;;;OAKG;IACI,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB,GAAG,kBAAkB;CAG5F"}
@@ -1,28 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { StorageRetryPolicy } from "./policies/StorageRetryPolicy.js";
4
- import { StorageRetryPolicyType } from "./policies/StorageRetryPolicyType.js";
5
- export { StorageRetryPolicyType, StorageRetryPolicy };
6
- /**
7
- * StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.
8
- */
9
- export class StorageRetryPolicyFactory {
10
- retryOptions;
11
- /**
12
- * Creates an instance of StorageRetryPolicyFactory.
13
- * @param retryOptions -
14
- */
15
- constructor(retryOptions) {
16
- this.retryOptions = retryOptions;
17
- }
18
- /**
19
- * Creates a StorageRetryPolicy object.
20
- *
21
- * @param nextPolicy -
22
- * @param options -
23
- */
24
- create(nextPolicy, options) {
25
- return new StorageRetryPolicy(nextPolicy, options, this.retryOptions);
26
- }
27
- }
28
- //# sourceMappingURL=StorageRetryPolicyFactory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageRetryPolicyFactory.js","sourceRoot":"","sources":["../../src/StorageRetryPolicyFactory.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,CAAC;AAmDtD;;GAEG;AACH,MAAM,OAAO,yBAAyB;IAC5B,YAAY,CAAuB;IAE3C;;;OAGG;IACH,YAAY,YAAkC;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,UAAyB,EAAE,OAA6B;QACpE,OAAO,IAAI,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;IACxE,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n RequestPolicyFactory,\n} from \"@azure/core-http-compat\";\nimport { StorageRetryPolicy } from \"./policies/StorageRetryPolicy.js\";\nimport { StorageRetryPolicyType } from \"./policies/StorageRetryPolicyType.js\";\n\nexport { StorageRetryPolicyType, StorageRetryPolicy };\n\n/**\n * Storage Blob retry options interface.\n */\nexport interface StorageRetryOptions {\n /**\n * Optional. StorageRetryPolicyType, default is exponential retry policy.\n */\n readonly retryPolicyType?: StorageRetryPolicyType;\n\n /**\n * Optional. Max try number of attempts, default is 4.\n * A value of 1 means 1 try and no retries.\n * A value smaller than 1 means default retry number of attempts.\n */\n readonly maxTries?: number;\n\n /**\n * Optional. Indicates the maximum time in ms allowed for any single try of an HTTP request.\n * A value of zero or undefined means no default timeout on SDK client, Azure\n * Storage server's default timeout policy will be used.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-blob-service-operations\n */\n readonly tryTimeoutInMs?: number;\n\n /**\n * Optional. Specifies the amount of delay to use before retrying an operation (default is 4s or 4 * 1000ms).\n * The delay increases (exponentially or linearly) with each retry up to a maximum specified by\n * maxRetryDelayInMs. If you specify 0, then you must also specify 0 for maxRetryDelayInMs.\n */\n readonly retryDelayInMs?: number;\n\n /**\n * Optional. Specifies the maximum delay allowed before retrying an operation (default is 120s or 120 * 1000ms).\n * If you specify 0, then you must also specify 0 for retryDelayInMs.\n */\n readonly maxRetryDelayInMs?: number;\n\n /**\n * If a secondaryHost is specified, retries will be tried against this host. If secondaryHost is undefined\n * (the default) then operations are not retried against another host.\n *\n * NOTE: Before setting this field, make sure you understand the issues around\n * reading stale and potentially-inconsistent data at\n * {@link https://learn.microsoft.com/azure/storage/common/storage-designing-ha-apps-with-ragrs}\n */\n readonly secondaryHost?: string;\n}\n\n/**\n * StorageRetryPolicyFactory is a factory class helping generating {@link StorageRetryPolicy} objects.\n */\nexport class StorageRetryPolicyFactory implements RequestPolicyFactory {\n private retryOptions?: StorageRetryOptions;\n\n /**\n * Creates an instance of StorageRetryPolicyFactory.\n * @param retryOptions -\n */\n constructor(retryOptions?: StorageRetryOptions) {\n this.retryOptions = retryOptions;\n }\n\n /**\n * Creates a StorageRetryPolicy object.\n *\n * @param nextPolicy -\n * @param options -\n */\n public create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): StorageRetryPolicy {\n return new StorageRetryPolicy(nextPolicy, options, this.retryOptions);\n }\n}\n"]}
@@ -1,19 +0,0 @@
1
- import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions } from "@azure/core-http-compat";
2
- import { AnonymousCredentialPolicy } from "../policies/AnonymousCredentialPolicy.js";
3
- import { Credential } from "./Credential.js";
4
- /**
5
- * AnonymousCredential provides a credentialPolicyCreator member used to create
6
- * AnonymousCredentialPolicy objects. AnonymousCredentialPolicy is used with
7
- * HTTP(S) requests that read public resources or for use with Shared Access
8
- * Signatures (SAS).
9
- */
10
- export declare class AnonymousCredential extends Credential {
11
- /**
12
- * Creates an {@link AnonymousCredentialPolicy} object.
13
- *
14
- * @param nextPolicy -
15
- * @param options -
16
- */
17
- create(nextPolicy: RequestPolicy, options: RequestPolicyOptions): AnonymousCredentialPolicy;
18
- }
19
- //# sourceMappingURL=AnonymousCredential.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnonymousCredential.d.ts","sourceRoot":"","sources":["../../../src/credentials/AnonymousCredential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EACjD,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,mBAAoB,SAAQ,UAAU;IACjD;;;;;OAKG;IACI,MAAM,CACX,UAAU,EAAE,aAAa,EACzB,OAAO,EAAE,oBAAoB,GAC5B,yBAAyB;CAG7B"}
@@ -1,22 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { AnonymousCredentialPolicy } from "../policies/AnonymousCredentialPolicy.js";
4
- import { Credential } from "./Credential.js";
5
- /**
6
- * AnonymousCredential provides a credentialPolicyCreator member used to create
7
- * AnonymousCredentialPolicy objects. AnonymousCredentialPolicy is used with
8
- * HTTP(S) requests that read public resources or for use with Shared Access
9
- * Signatures (SAS).
10
- */
11
- export class AnonymousCredential extends Credential {
12
- /**
13
- * Creates an {@link AnonymousCredentialPolicy} object.
14
- *
15
- * @param nextPolicy -
16
- * @param options -
17
- */
18
- create(nextPolicy, options) {
19
- return new AnonymousCredentialPolicy(nextPolicy, options);
20
- }
21
- }
22
- //# sourceMappingURL=AnonymousCredential.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnonymousCredential.js","sourceRoot":"","sources":["../../../src/credentials/AnonymousCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,OAAO,mBAAoB,SAAQ,UAAU;IACjD;;;;;OAKG;IACI,MAAM,CACX,UAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,yBAAyB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC5D,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n} from \"@azure/core-http-compat\";\nimport { AnonymousCredentialPolicy } from \"../policies/AnonymousCredentialPolicy.js\";\nimport { Credential } from \"./Credential.js\";\n\n/**\n * AnonymousCredential provides a credentialPolicyCreator member used to create\n * AnonymousCredentialPolicy objects. AnonymousCredentialPolicy is used with\n * HTTP(S) requests that read public resources or for use with Shared Access\n * Signatures (SAS).\n */\nexport class AnonymousCredential extends Credential {\n /**\n * Creates an {@link AnonymousCredentialPolicy} object.\n *\n * @param nextPolicy -\n * @param options -\n */\n public create(\n nextPolicy: RequestPolicy,\n options: RequestPolicyOptions,\n ): AnonymousCredentialPolicy {\n return new AnonymousCredentialPolicy(nextPolicy, options);\n }\n}\n"]}
@@ -1,20 +0,0 @@
1
- import type { RequestPolicy, RequestPolicyFactory, RequestPolicyOptionsLike as RequestPolicyOptions } from "@azure/core-http-compat";
2
- import type { CredentialPolicy } from "../policies/CredentialPolicy.js";
3
- /**
4
- * Credential is an abstract class for Azure Storage HTTP requests signing. This
5
- * class will host an credentialPolicyCreator factory which generates CredentialPolicy.
6
- */
7
- export declare abstract class Credential implements RequestPolicyFactory {
8
- /**
9
- * Creates a RequestPolicy object.
10
- *
11
- * @param _nextPolicy -
12
- * @param _options -
13
- */
14
- create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy;
15
- }
16
- /**
17
- * A factory function that creates a new CredentialPolicy that uses the provided nextPolicy.
18
- */
19
- export type CredentialPolicyCreator = (nextPolicy: RequestPolicy, options: RequestPolicyOptions) => CredentialPolicy;
20
- //# sourceMappingURL=Credential.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Credential.d.ts","sourceRoot":"","sources":["../../../src/credentials/Credential.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,wBAAwB,IAAI,oBAAoB,EACjD,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAExE;;;GAGG;AACH,8BAAsB,UAAW,YAAW,oBAAoB;IAC9D;;;;;OAKG;IACI,MAAM,CAAC,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,oBAAoB,GAAG,aAAa;CAGzF;AAED;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,CACpC,UAAU,EAAE,aAAa,EACzB,OAAO,EAAE,oBAAoB,KAC1B,gBAAgB,CAAC"}
@@ -1,18 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- /**
4
- * Credential is an abstract class for Azure Storage HTTP requests signing. This
5
- * class will host an credentialPolicyCreator factory which generates CredentialPolicy.
6
- */
7
- export class Credential {
8
- /**
9
- * Creates a RequestPolicy object.
10
- *
11
- * @param _nextPolicy -
12
- * @param _options -
13
- */
14
- create(_nextPolicy, _options) {
15
- throw new Error("Method should be implemented in children classes.");
16
- }
17
- }
18
- //# sourceMappingURL=Credential.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Credential.js","sourceRoot":"","sources":["../../../src/credentials/Credential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC;;;GAGG;AACH,MAAM,OAAgB,UAAU;IAC9B;;;;;OAKG;IACI,MAAM,CAAC,WAA0B,EAAE,QAA8B;QACtE,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyFactory,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n} from \"@azure/core-http-compat\";\nimport type { CredentialPolicy } from \"../policies/CredentialPolicy.js\";\n\n/**\n * Credential is an abstract class for Azure Storage HTTP requests signing. This\n * class will host an credentialPolicyCreator factory which generates CredentialPolicy.\n */\nexport abstract class Credential implements RequestPolicyFactory {\n /**\n * Creates a RequestPolicy object.\n *\n * @param _nextPolicy -\n * @param _options -\n */\n public create(_nextPolicy: RequestPolicy, _options: RequestPolicyOptions): RequestPolicy {\n throw new Error(\"Method should be implemented in children classes.\");\n }\n}\n\n/**\n * A factory function that creates a new CredentialPolicy that uses the provided nextPolicy.\n */\nexport type CredentialPolicyCreator = (\n nextPolicy: RequestPolicy,\n options: RequestPolicyOptions,\n) => CredentialPolicy;\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageSharedKeyCredential-browser.d.mts","sourceRoot":"","sources":["../../../src/credentials/StorageSharedKeyCredential-browser.mts"],"names":[],"mappings":"AAGA,qBAAa,0BAA0B;CAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageSharedKeyCredential-browser.mjs","sourceRoot":"","sources":["../../../src/credentials/StorageSharedKeyCredential-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,OAAO,0BAA0B;CAAG","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport class StorageSharedKeyCredential {}\n"]}
@@ -1,3 +0,0 @@
1
- export declare class StorageSharedKeyCredential {
2
- }
3
- //# sourceMappingURL=StorageSharedKeyCredential-browser.d.mts.map
@@ -1,5 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- export class StorageSharedKeyCredential {
4
- }
5
- //# sourceMappingURL=StorageSharedKeyCredential-browser.mjs.map
@@ -1,15 +0,0 @@
1
- import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions } from "@azure/core-http-compat";
2
- import { CredentialPolicy } from "./CredentialPolicy.js";
3
- /**
4
- * AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources
5
- * or for use with Shared Access Signatures (SAS).
6
- */
7
- export declare class AnonymousCredentialPolicy extends CredentialPolicy {
8
- /**
9
- * Creates an instance of AnonymousCredentialPolicy.
10
- * @param nextPolicy -
11
- * @param options -
12
- */
13
- constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions);
14
- }
15
- //# sourceMappingURL=AnonymousCredentialPolicy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnonymousCredentialPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/AnonymousCredentialPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EACjD,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,gBAAgB;IAC7D;;;;OAIG;gBAGS,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB;CAGrE"}
@@ -1,20 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { CredentialPolicy } from "./CredentialPolicy.js";
4
- /**
5
- * AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources
6
- * or for use with Shared Access Signatures (SAS).
7
- */
8
- export class AnonymousCredentialPolicy extends CredentialPolicy {
9
- /**
10
- * Creates an instance of AnonymousCredentialPolicy.
11
- * @param nextPolicy -
12
- * @param options -
13
- */
14
- // The base class has a protected constructor. Adding a public one to enable constructing of this class.
15
- /* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/
16
- constructor(nextPolicy, options) {
17
- super(nextPolicy, options);
18
- }
19
- }
20
- //# sourceMappingURL=AnonymousCredentialPolicy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnonymousCredentialPolicy.js","sourceRoot":"","sources":["../../../src/policies/AnonymousCredentialPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAMlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;;GAGG;AACH,MAAM,OAAO,yBAA0B,SAAQ,gBAAgB;IAC7D;;;;OAIG;IACH,wGAAwG;IACxG,uEAAuE;IACvE,YAAY,UAAyB,EAAE,OAA6B;QAClE,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n} from \"@azure/core-http-compat\";\nimport { CredentialPolicy } from \"./CredentialPolicy.js\";\n\n/**\n * AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources\n * or for use with Shared Access Signatures (SAS).\n */\nexport class AnonymousCredentialPolicy extends CredentialPolicy {\n /**\n * Creates an instance of AnonymousCredentialPolicy.\n * @param nextPolicy -\n * @param options -\n */\n // The base class has a protected constructor. Adding a public one to enable constructing of this class.\n /* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/\n constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions) {\n super(nextPolicy, options);\n }\n}\n"]}
@@ -1,22 +0,0 @@
1
- import { BaseRequestPolicy } from "./RequestPolicy.js";
2
- import type { WebResourceLike as WebResource, CompatResponse as HttpOperationResponse } from "@azure/core-http-compat";
3
- /**
4
- * Credential policy used to sign HTTP(S) requests before sending. This is an
5
- * abstract class.
6
- */
7
- export declare abstract class CredentialPolicy extends BaseRequestPolicy {
8
- /**
9
- * Sends out request.
10
- *
11
- * @param request -
12
- */
13
- sendRequest(request: WebResource): Promise<HttpOperationResponse>;
14
- /**
15
- * Child classes must implement this method with request signing. This method
16
- * will be executed in {@link sendRequest}.
17
- *
18
- * @param request -
19
- */
20
- protected signRequest(request: WebResource): WebResource;
21
- }
22
- //# sourceMappingURL=CredentialPolicy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CredentialPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/CredentialPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EACV,eAAe,IAAI,WAAW,EAC9B,cAAc,IAAI,qBAAqB,EACxC,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,8BAAsB,gBAAiB,SAAQ,iBAAiB;IAC9D;;;;OAIG;IACI,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIxE;;;;;OAKG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW;CAKzD"}
@@ -1,29 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { BaseRequestPolicy } from "./RequestPolicy.js";
4
- /**
5
- * Credential policy used to sign HTTP(S) requests before sending. This is an
6
- * abstract class.
7
- */
8
- export class CredentialPolicy extends BaseRequestPolicy {
9
- /**
10
- * Sends out request.
11
- *
12
- * @param request -
13
- */
14
- sendRequest(request) {
15
- return this._nextPolicy.sendRequest(this.signRequest(request));
16
- }
17
- /**
18
- * Child classes must implement this method with request signing. This method
19
- * will be executed in {@link sendRequest}.
20
- *
21
- * @param request -
22
- */
23
- signRequest(request) {
24
- // Child classes must override this method with request signing. This method
25
- // will be executed in sendRequest().
26
- return request;
27
- }
28
- }
29
- //# sourceMappingURL=CredentialPolicy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CredentialPolicy.js","sourceRoot":"","sources":["../../../src/policies/CredentialPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAMvD;;;GAGG;AACH,MAAM,OAAgB,gBAAiB,SAAQ,iBAAiB;IAC9D;;;;OAIG;IACI,WAAW,CAAC,OAAoB;QACrC,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACO,WAAW,CAAC,OAAoB;QACxC,4EAA4E;QAC5E,qCAAqC;QACrC,OAAO,OAAO,CAAC;IACjB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { BaseRequestPolicy } from \"./RequestPolicy.js\";\nimport type {\n WebResourceLike as WebResource,\n CompatResponse as HttpOperationResponse,\n} from \"@azure/core-http-compat\";\n\n/**\n * Credential policy used to sign HTTP(S) requests before sending. This is an\n * abstract class.\n */\nexport abstract class CredentialPolicy extends BaseRequestPolicy {\n /**\n * Sends out request.\n *\n * @param request -\n */\n public sendRequest(request: WebResource): Promise<HttpOperationResponse> {\n return this._nextPolicy.sendRequest(this.signRequest(request));\n }\n\n /**\n * Child classes must implement this method with request signing. This method\n * will be executed in {@link sendRequest}.\n *\n * @param request -\n */\n protected signRequest(request: WebResource): WebResource {\n // Child classes must override this method with request signing. This method\n // will be executed in sendRequest().\n return request;\n }\n}\n"]}
@@ -1,45 +0,0 @@
1
- import type { HttpPipelineLogLevel, RequestPolicy, RequestPolicyOptionsLike, WebResourceLike, CompatResponse as HttpOperationResponse } from "@azure/core-http-compat";
2
- /**
3
- * The base class from which all request policies derive.
4
- */
5
- export declare abstract class BaseRequestPolicy implements RequestPolicy {
6
- /**
7
- * The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline.
8
- */
9
- readonly _nextPolicy: RequestPolicy;
10
- /**
11
- * The options that can be passed to a given request policy.
12
- */
13
- readonly _options: RequestPolicyOptionsLike;
14
- /**
15
- * The main method to implement that manipulates a request/response.
16
- */
17
- protected constructor(
18
- /**
19
- * The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline.
20
- */
21
- _nextPolicy: RequestPolicy,
22
- /**
23
- * The options that can be passed to a given request policy.
24
- */
25
- _options: RequestPolicyOptionsLike);
26
- /**
27
- * Sends a network request based on the given web resource.
28
- * @param webResource - A {@link WebResourceLike} that describes a HTTP request to be made.
29
- */
30
- abstract sendRequest(webResource: WebResourceLike): Promise<HttpOperationResponse>;
31
- /**
32
- * Get whether or not a log with the provided log level should be logged.
33
- * @param logLevel - The log level of the log that will be logged.
34
- * @returns Whether or not a log with the provided log level should be logged.
35
- */
36
- shouldLog(logLevel: HttpPipelineLogLevel): boolean;
37
- /**
38
- * Attempt to log the provided message to the provided logger. If no logger was provided or if
39
- * the log level does not meat the logger's threshold, then nothing will be logged.
40
- * @param logLevel - The log level of this log.
41
- * @param message - The message of this log.
42
- */
43
- log(logLevel: HttpPipelineLogLevel, message: string): void;
44
- }
45
- //# sourceMappingURL=RequestPolicy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/RequestPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,oBAAoB,EACpB,aAAa,EACb,wBAAwB,EACxB,eAAe,EACf,cAAc,IAAI,qBAAqB,EACxC,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,8BAAsB,iBAAkB,YAAW,aAAa;IAK5D;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,aAAa;IACnC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,wBAAwB;IAX7C;;OAEG;IACH,SAAS;IACP;;OAEG;IACM,WAAW,EAAE,aAAa;IACnC;;OAEG;IACM,QAAQ,EAAE,wBAAwB;IAG7C;;;OAGG;aACa,WAAW,CAAC,WAAW,EAAE,eAAe,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAEzF;;;;OAIG;IACI,SAAS,CAAC,QAAQ,EAAE,oBAAoB,GAAG,OAAO;IAIzD;;;;;OAKG;IACI,GAAG,CAAC,QAAQ,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;CAGlE"}
@@ -1,42 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- /**
4
- * The base class from which all request policies derive.
5
- */
6
- export class BaseRequestPolicy {
7
- _nextPolicy;
8
- _options;
9
- /**
10
- * The main method to implement that manipulates a request/response.
11
- */
12
- constructor(
13
- /**
14
- * The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline.
15
- */
16
- _nextPolicy,
17
- /**
18
- * The options that can be passed to a given request policy.
19
- */
20
- _options) {
21
- this._nextPolicy = _nextPolicy;
22
- this._options = _options;
23
- }
24
- /**
25
- * Get whether or not a log with the provided log level should be logged.
26
- * @param logLevel - The log level of the log that will be logged.
27
- * @returns Whether or not a log with the provided log level should be logged.
28
- */
29
- shouldLog(logLevel) {
30
- return this._options.shouldLog(logLevel);
31
- }
32
- /**
33
- * Attempt to log the provided message to the provided logger. If no logger was provided or if
34
- * the log level does not meat the logger's threshold, then nothing will be logged.
35
- * @param logLevel - The log level of this log.
36
- * @param message - The message of this log.
37
- */
38
- log(logLevel, message) {
39
- this._options.log(logLevel, message);
40
- }
41
- }
42
- //# sourceMappingURL=RequestPolicy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestPolicy.js","sourceRoot":"","sources":["../../../src/policies/RequestPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAUlC;;GAEG;AACH,MAAM,OAAgB,iBAAiB;IAQ1B;IAIA;IAXX;;OAEG;IACH;IACE;;OAEG;IACM,WAA0B;IACnC;;OAEG;IACM,QAAkC;QAJlC,gBAAW,GAAX,WAAW,CAAe;QAI1B,aAAQ,GAAR,QAAQ,CAA0B;IAC1C,CAAC;IAQJ;;;;OAIG;IACI,SAAS,CAAC,QAA8B;QAC7C,OAAO,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED;;;;;OAKG;IACI,GAAG,CAAC,QAA8B,EAAE,OAAe;QACxD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n HttpPipelineLogLevel,\n RequestPolicy,\n RequestPolicyOptionsLike,\n WebResourceLike,\n CompatResponse as HttpOperationResponse,\n} from \"@azure/core-http-compat\";\n\n/**\n * The base class from which all request policies derive.\n */\nexport abstract class BaseRequestPolicy implements RequestPolicy {\n /**\n * The main method to implement that manipulates a request/response.\n */\n protected constructor(\n /**\n * The next policy in the pipeline. Each policy is responsible for executing the next one if the request is to continue through the pipeline.\n */\n readonly _nextPolicy: RequestPolicy,\n /**\n * The options that can be passed to a given request policy.\n */\n readonly _options: RequestPolicyOptionsLike,\n ) {}\n\n /**\n * Sends a network request based on the given web resource.\n * @param webResource - A {@link WebResourceLike} that describes a HTTP request to be made.\n */\n public abstract sendRequest(webResource: WebResourceLike): Promise<HttpOperationResponse>;\n\n /**\n * Get whether or not a log with the provided log level should be logged.\n * @param logLevel - The log level of the log that will be logged.\n * @returns Whether or not a log with the provided log level should be logged.\n */\n public shouldLog(logLevel: HttpPipelineLogLevel): boolean {\n return this._options.shouldLog(logLevel);\n }\n\n /**\n * Attempt to log the provided message to the provided logger. If no logger was provided or if\n * the log level does not meat the logger's threshold, then nothing will be logged.\n * @param logLevel - The log level of this log.\n * @param message - The message of this log.\n */\n public log(logLevel: HttpPipelineLogLevel, message: string): void {\n this._options.log(logLevel, message);\n }\n}\n"]}
@@ -1,28 +0,0 @@
1
- import type { RequestPolicy, RequestPolicyOptionsLike as RequestPolicyOptions, WebResourceLike as WebResource, CompatResponse as HttpOperationResponse } from "@azure/core-http-compat";
2
- import { BaseRequestPolicy } from "./RequestPolicy.js";
3
- /**
4
- * StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:
5
- *
6
- * 1. Browsers cache GET/HEAD requests by adding conditional headers such as 'IF_MODIFIED_SINCE'.
7
- * StorageBrowserPolicy is a policy used to add a timestamp query to GET/HEAD request URL
8
- * thus avoid the browser cache.
9
- *
10
- * 2. Remove cookie header for security
11
- *
12
- * 3. Remove content-length header to avoid browsers warning
13
- */
14
- export declare class StorageBrowserPolicy extends BaseRequestPolicy {
15
- /**
16
- * Creates an instance of StorageBrowserPolicy.
17
- * @param nextPolicy -
18
- * @param options -
19
- */
20
- constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions);
21
- /**
22
- * Sends out request.
23
- *
24
- * @param request -
25
- */
26
- sendRequest(request: WebResource): Promise<HttpOperationResponse>;
27
- }
28
- //# sourceMappingURL=StorageBrowserPolicy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageBrowserPolicy.d.ts","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,IAAI,oBAAoB,EAChD,eAAe,IAAI,WAAW,EAC9B,cAAc,IAAI,qBAAqB,EACxC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAKvD;;;;;;;;;;GAUG;AACH,qBAAa,oBAAqB,SAAQ,iBAAiB;IACzD;;;;OAIG;gBAGS,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB;IAIpE;;;;OAIG;IACU,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,qBAAqB,CAAC;CAoB/E"}
@@ -1,47 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { BaseRequestPolicy } from "./RequestPolicy.js";
4
- import { isNodeLike } from "@azure/core-util";
5
- import { HeaderConstants, URLConstants } from "../utils/constants.js";
6
- import { setURLParameter } from "../utils/utils.common.js";
7
- /**
8
- * StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:
9
- *
10
- * 1. Browsers cache GET/HEAD requests by adding conditional headers such as 'IF_MODIFIED_SINCE'.
11
- * StorageBrowserPolicy is a policy used to add a timestamp query to GET/HEAD request URL
12
- * thus avoid the browser cache.
13
- *
14
- * 2. Remove cookie header for security
15
- *
16
- * 3. Remove content-length header to avoid browsers warning
17
- */
18
- export class StorageBrowserPolicy extends BaseRequestPolicy {
19
- /**
20
- * Creates an instance of StorageBrowserPolicy.
21
- * @param nextPolicy -
22
- * @param options -
23
- */
24
- // The base class has a protected constructor. Adding a public one to enable constructing of this class.
25
- /* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/
26
- constructor(nextPolicy, options) {
27
- super(nextPolicy, options);
28
- }
29
- /**
30
- * Sends out request.
31
- *
32
- * @param request -
33
- */
34
- async sendRequest(request) {
35
- if (isNodeLike) {
36
- return this._nextPolicy.sendRequest(request);
37
- }
38
- if (request.method.toUpperCase() === "GET" || request.method.toUpperCase() === "HEAD") {
39
- request.url = setURLParameter(request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, new Date().getTime().toString());
40
- }
41
- request.headers.remove(HeaderConstants.COOKIE);
42
- // According to XHR standards, content-length should be fully controlled by browsers
43
- request.headers.remove(HeaderConstants.CONTENT_LENGTH);
44
- return this._nextPolicy.sendRequest(request);
45
- }
46
- }
47
- //# sourceMappingURL=StorageBrowserPolicy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageBrowserPolicy.js","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,oBAAqB,SAAQ,iBAAiB;IACzD;;;;OAIG;IACH,wGAAwG;IACxG,uEAAuE;IACvE,YAAY,UAAyB,EAAE,OAA6B;QAClE,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,WAAW,CAAC,OAAoB;QAC3C,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;QAED,IAAI,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;YACtF,OAAO,CAAC,GAAG,GAAG,eAAe,CAC3B,OAAO,CAAC,GAAG,EACX,YAAY,CAAC,UAAU,CAAC,sBAAsB,EAC9C,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAChC,CAAC;QACJ,CAAC;QAED,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QAE/C,oFAAoF;QACpF,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;QAEvD,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n RequestPolicy,\n RequestPolicyOptionsLike as RequestPolicyOptions,\n WebResourceLike as WebResource,\n CompatResponse as HttpOperationResponse,\n} from \"@azure/core-http-compat\";\nimport { BaseRequestPolicy } from \"./RequestPolicy.js\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport { HeaderConstants, URLConstants } from \"../utils/constants.js\";\nimport { setURLParameter } from \"../utils/utils.common.js\";\n\n/**\n * StorageBrowserPolicy will handle differences between Node.js and browser runtime, including:\n *\n * 1. Browsers cache GET/HEAD requests by adding conditional headers such as 'IF_MODIFIED_SINCE'.\n * StorageBrowserPolicy is a policy used to add a timestamp query to GET/HEAD request URL\n * thus avoid the browser cache.\n *\n * 2. Remove cookie header for security\n *\n * 3. Remove content-length header to avoid browsers warning\n */\nexport class StorageBrowserPolicy extends BaseRequestPolicy {\n /**\n * Creates an instance of StorageBrowserPolicy.\n * @param nextPolicy -\n * @param options -\n */\n // The base class has a protected constructor. Adding a public one to enable constructing of this class.\n /* eslint-disable-next-line @typescript-eslint/no-useless-constructor*/\n constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptions) {\n super(nextPolicy, options);\n }\n\n /**\n * Sends out request.\n *\n * @param request -\n */\n public async sendRequest(request: WebResource): Promise<HttpOperationResponse> {\n if (isNodeLike) {\n return this._nextPolicy.sendRequest(request);\n }\n\n if (request.method.toUpperCase() === \"GET\" || request.method.toUpperCase() === \"HEAD\") {\n request.url = setURLParameter(\n request.url,\n URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,\n new Date().getTime().toString(),\n );\n }\n\n request.headers.remove(HeaderConstants.COOKIE);\n\n // According to XHR standards, content-length should be fully controlled by browsers\n request.headers.remove(HeaderConstants.CONTENT_LENGTH);\n\n return this._nextPolicy.sendRequest(request);\n }\n}\n"]}
@@ -1,11 +0,0 @@
1
- import type { PipelinePolicy } from "@azure/core-rest-pipeline";
2
- /**
3
- * The programmatic identifier of the StorageBrowserPolicy.
4
- */
5
- export declare const storageBrowserPolicyName = "storageBrowserPolicy";
6
- /**
7
- * storageBrowserPolicy is a policy used to prevent browsers from caching requests
8
- * and to remove cookies and explicit content-length headers.
9
- */
10
- export declare function storageBrowserPolicy(): PipelinePolicy;
11
- //# sourceMappingURL=StorageBrowserPolicyV2.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageBrowserPolicyV2.d.ts","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicyV2.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,2BAA2B,CAAC;AAKnC;;GAEG;AACH,eAAO,MAAM,wBAAwB,yBAAyB,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,cAAc,CAuBrD"}
@@ -1,31 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- import { isNodeLike } from "@azure/core-util";
4
- import { HeaderConstants, URLConstants } from "../utils/constants.js";
5
- import { setURLParameter } from "../utils/utils.common.js";
6
- /**
7
- * The programmatic identifier of the StorageBrowserPolicy.
8
- */
9
- export const storageBrowserPolicyName = "storageBrowserPolicy";
10
- /**
11
- * storageBrowserPolicy is a policy used to prevent browsers from caching requests
12
- * and to remove cookies and explicit content-length headers.
13
- */
14
- export function storageBrowserPolicy() {
15
- return {
16
- name: storageBrowserPolicyName,
17
- async sendRequest(request, next) {
18
- if (isNodeLike) {
19
- return next(request);
20
- }
21
- if (request.method === "GET" || request.method === "HEAD") {
22
- request.url = setURLParameter(request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, new Date().getTime().toString());
23
- }
24
- request.headers.delete(HeaderConstants.COOKIE);
25
- // According to XHR standards, content-length should be fully controlled by browsers
26
- request.headers.delete(HeaderConstants.CONTENT_LENGTH);
27
- return next(request);
28
- },
29
- };
30
- }
31
- //# sourceMappingURL=StorageBrowserPolicyV2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageBrowserPolicyV2.js","sourceRoot":"","sources":["../../../src/policies/StorageBrowserPolicyV2.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAAsB,CAAC;AAE/D;;;GAGG;AACH,MAAM,UAAU,oBAAoB;IAClC,OAAO;QACL,IAAI,EAAE,wBAAwB;QAC9B,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;YAC3D,IAAI,UAAU,EAAE,CAAC;gBACf,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;YAED,IAAI,OAAO,CAAC,MAAM,KAAK,KAAK,IAAI,OAAO,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;gBAC1D,OAAO,CAAC,GAAG,GAAG,eAAe,CAC3B,OAAO,CAAC,GAAG,EACX,YAAY,CAAC,UAAU,CAAC,sBAAsB,EAC9C,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAChC,CAAC;YACJ,CAAC;YAED,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YAE/C,oFAAoF;YACpF,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC;YACvD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n PipelinePolicy,\n} from \"@azure/core-rest-pipeline\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport { HeaderConstants, URLConstants } from \"../utils/constants.js\";\nimport { setURLParameter } from \"../utils/utils.common.js\";\n\n/**\n * The programmatic identifier of the StorageBrowserPolicy.\n */\nexport const storageBrowserPolicyName = \"storageBrowserPolicy\";\n\n/**\n * storageBrowserPolicy is a policy used to prevent browsers from caching requests\n * and to remove cookies and explicit content-length headers.\n */\nexport function storageBrowserPolicy(): PipelinePolicy {\n return {\n name: storageBrowserPolicyName,\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n if (isNodeLike) {\n return next(request);\n }\n\n if (request.method === \"GET\" || request.method === \"HEAD\") {\n request.url = setURLParameter(\n request.url,\n URLConstants.Parameters.FORCE_BROWSER_NO_CACHE,\n new Date().getTime().toString(),\n );\n }\n\n request.headers.delete(HeaderConstants.COOKIE);\n\n // According to XHR standards, content-length should be fully controlled by browsers\n request.headers.delete(HeaderConstants.CONTENT_LENGTH);\n return next(request);\n },\n };\n}\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageCorrectContentLengthPolicy-browser.d.mts","sourceRoot":"","sources":["../../../src/policies/StorageCorrectContentLengthPolicy-browser.mts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAIV,cAAc,EACf,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,qCAAqC,sCAAsC,CAAC;AAEzF;;GAEG;AACH,wBAAgB,iCAAiC,IAAI,cAAc,CAOlE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StorageCorrectContentLengthPolicy-browser.mjs","sourceRoot":"","sources":["../../../src/policies/StorageCorrectContentLengthPolicy-browser.mts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AASlC;;GAEG;AACH,MAAM,CAAC,MAAM,qCAAqC,GAAG,mCAAmC,CAAC;AAEzF;;GAEG;AACH,MAAM,UAAU,iCAAiC;IAC/C,OAAO;QACL,IAAI,EAAE,qCAAqC;QAC3C,KAAK,CAAC,WAAW,CAAC,OAAwB,EAAE,IAAiB;YAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n PipelinePolicy,\n} from \"@azure/core-rest-pipeline\";\n\n/**\n * The programmatic identifier of the storageCorrectContentLengthPolicy.\n */\nexport const storageCorrectContentLengthPolicyName = \"StorageCorrectContentLengthPolicy\";\n\n/**\n * storageCorrectContentLengthPolicy to correctly set Content-Length header with request body length.\n */\nexport function storageCorrectContentLengthPolicy(): PipelinePolicy {\n return {\n name: storageCorrectContentLengthPolicyName,\n async sendRequest(request: PipelineRequest, next: SendRequest): Promise<PipelineResponse> {\n return next(request);\n },\n };\n}\n"]}
@@ -1,10 +0,0 @@
1
- import type { PipelinePolicy } from "@azure/core-rest-pipeline";
2
- /**
3
- * The programmatic identifier of the storageCorrectContentLengthPolicy.
4
- */
5
- export declare const storageCorrectContentLengthPolicyName = "StorageCorrectContentLengthPolicy";
6
- /**
7
- * storageCorrectContentLengthPolicy to correctly set Content-Length header with request body length.
8
- */
9
- export declare function storageCorrectContentLengthPolicy(): PipelinePolicy;
10
- //# sourceMappingURL=StorageCorrectContentLengthPolicy-browser.d.mts.map
@@ -1,18 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
- /**
4
- * The programmatic identifier of the storageCorrectContentLengthPolicy.
5
- */
6
- export const storageCorrectContentLengthPolicyName = "StorageCorrectContentLengthPolicy";
7
- /**
8
- * storageCorrectContentLengthPolicy to correctly set Content-Length header with request body length.
9
- */
10
- export function storageCorrectContentLengthPolicy() {
11
- return {
12
- name: storageCorrectContentLengthPolicyName,
13
- async sendRequest(request, next) {
14
- return next(request);
15
- },
16
- };
17
- }
18
- //# sourceMappingURL=StorageCorrectContentLengthPolicy-browser.mjs.map