-
Notifications
You must be signed in to change notification settings - Fork 371
Sfi #2608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Sfi #2608
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,7 +13,7 @@ export default class BlobSharedKeyAuthenticator implements IAuthenticator { | |||||||||
| public constructor( | ||||||||||
| private readonly dataStore: IAccountDataStore, | ||||||||||
| private readonly logger: ILogger | ||||||||||
| ) {} | ||||||||||
| ) { } | ||||||||||
|
|
||||||||||
| public async validate( | ||||||||||
| req: IRequest, | ||||||||||
|
|
@@ -77,8 +77,8 @@ export default class BlobSharedKeyAuthenticator implements IAuthenticator { | |||||||||
| const stringToSign: string = | ||||||||||
| [ | ||||||||||
| req.getMethod().toUpperCase(), | ||||||||||
| this.getHeaderValueToSign(req, HeaderConstants.CONTENT_ENCODING), | ||||||||||
| this.getHeaderValueToSign(req, HeaderConstants.CONTENT_LANGUAGE), | ||||||||||
| this.getHeaderValueToSign(req, HeaderConstants.CONTENT_ENCODING), | ||||||||||
|
Comment on lines
80
to
+81
|
||||||||||
| this.getHeaderValueToSign(req, HeaderConstants.CONTENT_LANGUAGE), | |
| this.getHeaderValueToSign(req, HeaderConstants.CONTENT_ENCODING), | |
| this.getHeaderValueToSign(req, HeaderConstants.CONTENT_ENCODING), | |
| this.getHeaderValueToSign(req, HeaderConstants.CONTENT_LANGUAGE), |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,8 +1,7 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| import { Writable } from "stream"; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| import { BlobBatchSubResponse } from "./BlobBatchSubResponse"; | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| export class SubResponseTextBodyStream extends Writable | ||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| export class SubResponseTextBodyStream extends Writable { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| private bodyText: string; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| public constructor( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| private readonly subResponse: BlobBatchSubResponse) { | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -15,12 +14,13 @@ export class SubResponseTextBodyStream extends Writable | |||||||||||||||||||||||||||||||||||||||||||||||||
| callback(); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| public end(cb?: (() => void) | undefined): void; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| public end(chunk: any, cb?: (() => void) | undefined): void; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| public end(chunk: any, encoding: BufferEncoding, cb?: (() => void) | undefined): void; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| public end(chunk?: unknown, encoding?: unknown, cb?: unknown): void { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| public end(cb?: (() => void) | undefined): this; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| public end(chunk: any, cb?: (() => void) | undefined): this; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| public end(chunk: any, encoding: BufferEncoding, cb?: (() => void) | undefined): this; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| public end(chunk?: unknown, encoding?: unknown, cb?: unknown): this { | ||||||||||||||||||||||||||||||||||||||||||||||||||
| if (chunk) this.bodyText += (chunk! as any).toString(); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| this.subResponse.end(); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| return this; | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
21
to
+23
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| if (chunk) this.bodyText += (chunk! as any).toString(); | |
| this.subResponse.end(); | |
| return this; | |
| let finalChunk = chunk; | |
| let finalEncoding = encoding; | |
| let finalCallback = cb as (() => void) | undefined; | |
| if (typeof finalChunk === "function") { | |
| finalCallback = finalChunk as () => void; | |
| finalChunk = undefined; | |
| finalEncoding = undefined; | |
| } else if (typeof finalEncoding === "function") { | |
| finalCallback = finalEncoding as () => void; | |
| finalEncoding = undefined; | |
| } | |
| const wrappedCallback = () => { | |
| this.subResponse.end(); | |
| if (finalCallback) { | |
| finalCallback(); | |
| } | |
| }; | |
| return super.end(finalChunk as any, finalEncoding as any, wrappedCallback as any); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
azure-storagehas been removed fromdevDependencies, but the test suite still imports it in multiple places (e.g.tests/exe.test.ts, severaltests/table/**files). This will cause install/build/test failures. Either keepazure-storageuntil the table tests are migrated off it, or update the remaining tests and utilities to remove the dependency in the same PR.