[sort-imports] update ```data-tables``` with respect to ```sort-imports``` rule (#19055)

* updated with respect to ```sort-imports``` rule

* prettier
This commit is contained in:
Ben Zhang 2021-12-09 13:23:14 -08:00 коммит произвёл GitHub
Родитель d97aa29307
Коммит c3136d6b83
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
30 изменённых файлов: 140 добавлений и 143 удалений

Просмотреть файл

@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import "@azure/core-paging";
import {
CreateTableEntityResponse,
DeleteTableEntityOptions,
@ -25,8 +26,12 @@ import {
UpdateEntityResponse,
UpsertEntityResponse
} from "./generatedModels";
import { TableQueryEntitiesOptionalParams } from "./generated/models";
import { getClientParamsFromConnectionString } from "./utils/connectionString";
import {
FullOperationResponse,
InternalClientPipelineOptions,
OperationOptions
} from "@azure/core-client";
import { GeneratedClient, TableDeleteEntityOptionalParams } from "./generated";
import {
NamedKeyCredential,
SASCredential,
@ -35,10 +40,8 @@ import {
isSASCredential,
isTokenCredential
} from "@azure/core-auth";
import { tablesNamedKeyCredentialPolicy } from "./tablesNamedCredentialPolicy";
import "@azure/core-paging";
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { GeneratedClient, TableDeleteEntityOptionalParams } from "./generated";
import { STORAGE_SCOPE, TablesLoggingAllowedHeaderNames } from "./utils/constants";
import { decodeContinuationToken, encodeContinuationToken } from "./utils/continuationToken";
import {
deserialize,
deserializeObjectsArray,
@ -47,28 +50,25 @@ import {
serializeQueryOptions,
serializeSignedIdentifiers
} from "./serialization";
import { Table } from "./generated/operationsInterfaces";
import { STORAGE_SCOPE, TablesLoggingAllowedHeaderNames } from "./utils/constants";
import {
FullOperationResponse,
InternalClientPipelineOptions,
OperationOptions
} from "@azure/core-client";
import { logger } from "./logger";
import { createSpan } from "./utils/tracing";
import { SpanStatusCode } from "@azure/core-tracing";
import { parseXML, stringifyXML } from "@azure/core-xml";
import { InternalTableTransaction } from "./TableTransaction";
import { ListEntitiesResponse } from "./utils/internalModels";
import { Uuid } from "./utils/uuid";
import { parseXML, stringifyXML } from "@azure/core-xml";
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Pipeline } from "@azure/core-rest-pipeline";
import { isCredential } from "./utils/isCredential";
import { tablesSASTokenPolicy } from "./tablesSASTokenPolicy";
import { isCosmosEndpoint } from "./utils/isCosmosEndpoint";
import { SpanStatusCode } from "@azure/core-tracing";
import { Table } from "./generated/operationsInterfaces";
import { TableQueryEntitiesOptionalParams } from "./generated/models";
import { Uuid } from "./utils/uuid";
import { cosmosPatchPolicy } from "./cosmosPathPolicy";
import { decodeContinuationToken, encodeContinuationToken } from "./utils/continuationToken";
import { createSpan } from "./utils/tracing";
import { escapeQuotes } from "./odata";
import { getClientParamsFromConnectionString } from "./utils/connectionString";
import { handleTableAlreadyExists } from "./utils/errorHelpers";
import { isCosmosEndpoint } from "./utils/isCosmosEndpoint";
import { isCredential } from "./utils/isCredential";
import { logger } from "./logger";
import { tablesNamedKeyCredentialPolicy } from "./tablesNamedCredentialPolicy";
import { tablesSASTokenPolicy } from "./tablesSASTokenPolicy";
/**
* A TableClient represents a Client to the Azure Tables service allowing you

Просмотреть файл

@ -1,6 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import {
HeaderConstants,
TRANSACTION_HTTP_LINE_ENDING,
TRANSACTION_HTTP_VERSION_1_1
} from "./utils/constants";
import {
PipelinePolicy,
PipelineRequest,
@ -9,13 +14,8 @@ import {
createHttpHeaders,
createPipelineRequest
} from "@azure/core-rest-pipeline";
import {
HeaderConstants,
TRANSACTION_HTTP_LINE_ENDING,
TRANSACTION_HTTP_VERSION_1_1
} from "./utils/constants";
import { getChangeSetBoundary } from "./utils/transactionHelpers";
import { URL } from "./utils/url";
import { getChangeSetBoundary } from "./utils/transactionHelpers";
export const transactionRequestAssemblePolicyName = "transactionRequestAssemblePolicy";

Просмотреть файл

@ -1,14 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { GeneratedClient } from "./generated/generatedClient";
import { Service, Table } from "./generated";
import {
ListTableItemsOptions,
TableItem,
TableQueryOptions,
TableServiceClientOptions
} from "./models";
import "@azure/core-paging";
import {
GetPropertiesResponse,
GetStatisticsResponse,
@ -16,7 +9,13 @@ import {
SetPropertiesOptions,
SetPropertiesResponse
} from "./generatedModels";
import { getClientParamsFromConnectionString } from "./utils/connectionString";
import { InternalClientPipelineOptions, OperationOptions } from "@azure/core-client";
import {
ListTableItemsOptions,
TableItem,
TableQueryOptions,
TableServiceClientOptions
} from "./models";
import {
NamedKeyCredential,
SASCredential,
@ -25,20 +24,21 @@ import {
isSASCredential,
isTokenCredential
} from "@azure/core-auth";
import "@azure/core-paging";
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { STORAGE_SCOPE, TablesLoggingAllowedHeaderNames } from "./utils/constants";
import { logger } from "./logger";
import { InternalClientPipelineOptions, OperationOptions } from "@azure/core-client";
import { SpanStatusCode } from "@azure/core-tracing";
import { createSpan } from "./utils/tracing";
import { tablesNamedKeyCredentialPolicy } from "./tablesNamedCredentialPolicy";
import { Service, Table } from "./generated";
import { parseXML, stringifyXML } from "@azure/core-xml";
import { GeneratedClient } from "./generated/generatedClient";
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { Pipeline } from "@azure/core-rest-pipeline";
import { isCredential } from "./utils/isCredential";
import { tablesSASTokenPolicy } from "./tablesSASTokenPolicy";
import { SpanStatusCode } from "@azure/core-tracing";
import { TableItemResultPage } from "./models";
import { createSpan } from "./utils/tracing";
import { getClientParamsFromConnectionString } from "./utils/connectionString";
import { handleTableAlreadyExists } from "./utils/errorHelpers";
import { isCredential } from "./utils/isCredential";
import { logger } from "./logger";
import { tablesNamedKeyCredentialPolicy } from "./tablesNamedCredentialPolicy";
import { tablesSASTokenPolicy } from "./tablesSASTokenPolicy";
/**
* A TableServiceClient represents a Client to the Azure Tables service allowing you

Просмотреть файл

@ -1,21 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import {
Pipeline,
PipelineRequest,
PipelineResponse,
RestError,
createHttpHeaders,
createPipelineRequest
} from "@azure/core-rest-pipeline";
import {
OperationOptions,
ServiceClient,
ServiceClientOptions,
serializationPolicy,
serializationPolicyName
} from "@azure/core-client";
import {
DeleteTableEntityOptions,
TableEntity,
@ -33,26 +18,41 @@ import {
isSASCredential,
isTokenCredential
} from "@azure/core-auth";
import { getAuthorizationHeader } from "./tablesNamedCredentialPolicy";
import { TableClientLike } from "./utils/internalModels";
import { createSpan } from "./utils/tracing";
import { SpanStatusCode } from "@azure/core-tracing";
import { TableServiceErrorOdataError } from "./generated";
import { getTransactionHeaders } from "./utils/transactionHeaders";
import {
OperationOptions,
ServiceClient,
ServiceClientOptions,
serializationPolicy,
serializationPolicyName
} from "@azure/core-client";
import {
Pipeline,
PipelineRequest,
PipelineResponse,
RestError,
createHttpHeaders,
createPipelineRequest
} from "@azure/core-rest-pipeline";
import {
getInitialTransactionBody,
getTransactionHttpRequestBody
} from "./utils/transactionHelpers";
import { signURLWithSAS } from "./tablesSASTokenPolicy";
import {
transactionHeaderFilterPolicy,
transactionHeaderFilterPolicyName,
transactionRequestAssemblePolicy,
transactionRequestAssemblePolicyName
} from "./TablePolicies";
import { isCosmosEndpoint } from "./utils/isCosmosEndpoint";
import { cosmosPatchPolicy } from "./cosmosPathPolicy";
import { STORAGE_SCOPE } from "./utils/constants";
import { SpanStatusCode } from "@azure/core-tracing";
import { TableClientLike } from "./utils/internalModels";
import { TableServiceErrorOdataError } from "./generated";
import { cosmosPatchPolicy } from "./cosmosPathPolicy";
import { createSpan } from "./utils/tracing";
import { getAuthorizationHeader } from "./tablesNamedCredentialPolicy";
import { getTransactionHeaders } from "./utils/transactionHeaders";
import { isCosmosEndpoint } from "./utils/isCosmosEndpoint";
import { signURLWithSAS } from "./tablesSASTokenPolicy";
/**
* Helper to build a list of transaction actions

Просмотреть файл

@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TableGetAccessPolicyHeaders, TableInsertEntityHeaders } from "./generated/models";
import { CommonClientOptions, OperationOptions } from "@azure/core-client";
import { TableGetAccessPolicyHeaders, TableInsertEntityHeaders } from "./generated/models";
/**
* Represents the Create or Delete Entity operation to be included in a Transaction request

Просмотреть файл

@ -1,18 +1,18 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { NamedKeyCredential } from "@azure/core-auth";
import { computeHMACSHA256 } from "../utils/computeHMACSHA256";
import { SERVICE_VERSION } from "../utils/constants";
import { truncatedISO8061Date } from "../utils/truncateISO8061Date";
import { AccountSasPermissions, accountSasPermissionsToString } from "./accountSasPermissions";
import { SasIPRange, ipRangeToString } from "./sasIPRange";
import { SasProtocol, SasQueryParameters } from "./sasQueryParameters";
import {
accountSasResourceTypesFromString,
accountSasResourceTypesToString
} from "./accountSasResourceTypes";
import { accountSasServicesFromString, accountSasServicesToString } from "./accountSasServices";
import { SasIPRange, ipRangeToString } from "./sasIPRange";
import { SasProtocol, SasQueryParameters } from "./sasQueryParameters";
import { NamedKeyCredential } from "@azure/core-auth";
import { SERVICE_VERSION } from "../utils/constants";
import { computeHMACSHA256 } from "../utils/computeHMACSHA256";
import { truncatedISO8061Date } from "../utils/truncateISO8061Date";
/**
* ONLY AVAILABLE IN NODE.JS RUNTIME.

Просмотреть файл

@ -1,16 +1,16 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { NamedKeyCredential, isNamedKeyCredential } from "@azure/core-auth";
import { AccountSasPermissions, accountSasPermissionsFromString } from "./accountSasPermissions";
import {
AccountSasServices,
accountSasServicesFromString,
accountSasServicesToString
} from "./accountSasServices";
import { generateAccountSasQueryParameters } from "./accountSasSignatureValues";
import { NamedKeyCredential, isNamedKeyCredential } from "@azure/core-auth";
import { SasIPRange } from "./sasIPRange";
import { SasProtocol } from "./sasQueryParameters";
import { generateAccountSasQueryParameters } from "./accountSasSignatureValues";
/**
* Generates a Table Account Shared Access Signature (SAS) URI based on the client properties

Просмотреть файл

@ -2,11 +2,11 @@
// Licensed under the MIT license.
import { NamedKeyCredential, isNamedKeyCredential } from "@azure/core-auth";
import { tableSasPermissionsFromString } from "./tableSasPermisions";
import {
TableSasSignatureValues,
generateTableSasQueryParameters
} from "./tableSasSignatureValues";
import { tableSasPermissionsFromString } from "./tableSasPermisions";
/**
* Generates a Table Service Shared Access Signature (SAS) URI based on the client properties

Просмотреть файл

@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { truncatedISO8061Date } from "../utils/truncateISO8061Date";
import { UserDelegationKey } from "./models";
import { SasIPRange, ipRangeToString } from "./sasIPRange";
import { UserDelegationKey } from "./models";
import { truncatedISO8061Date } from "../utils/truncateISO8061Date";
/**
* Protocols for generated SAS.

Просмотреть файл

@ -7,13 +7,13 @@
* TableSASSignatureValues is used to help generating SAS tokens for tables.
*/
import { NamedKeyCredential } from "@azure/core-auth";
import { computeHMACSHA256 } from "../utils/computeHMACSHA256";
import { SERVICE_VERSION } from "../utils/constants";
import { truncatedISO8061Date } from "../utils/truncateISO8061Date";
import { SasIPRange, ipRangeToString } from "./sasIPRange";
import { SasProtocol, SasQueryParameters } from "./sasQueryParameters";
import { TableSasPermissions, tableSasPermissionsToString } from "./tableSasPermisions";
import { NamedKeyCredential } from "@azure/core-auth";
import { SERVICE_VERSION } from "../utils/constants";
import { computeHMACSHA256 } from "../utils/computeHMACSHA256";
import { truncatedISO8061Date } from "../utils/truncateISO8061Date";
/**
* ONLY AVAILABLE IN NODE.JS RUNTIME.

Просмотреть файл

@ -1,12 +1,13 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { base64Decode, base64Encode } from "./utils/bufferSerializer";
import { EdmTypes, SignedIdentifier, TableEntityQueryOptions } from "./models";
import { truncatedISO8061Date } from "./utils/truncateISO8061Date";
import {
QueryOptions as GeneratedQueryOptions,
SignedIdentifier as GeneratedSignedIdentifier
} from "./generated/models";
import { base64Decode, base64Encode } from "./utils/bufferSerializer";
import { truncatedISO8061Date } from "./utils/truncateISO8061Date";
const propertyCaseMap: Map<string, string> = new Map<string, string>([
["PartitionKey", "partitionKey"],

Просмотреть файл

@ -7,8 +7,8 @@ import {
PipelineResponse,
SendRequest
} from "@azure/core-rest-pipeline";
import { NamedKeyCredential } from "@azure/core-auth";
import { HeaderConstants } from "./utils/constants";
import { NamedKeyCredential } from "@azure/core-auth";
import { URL } from "./utils/url";
import { computeHMACSHA256 } from "./utils/computeHMACSHA256";

Просмотреть файл

@ -7,8 +7,8 @@ import {
PipelineResponse,
SendRequest
} from "@azure/core-rest-pipeline";
import { SASCredential } from "@azure/core-auth";
import { URL, URLSearchParams } from "./utils/url";
import { SASCredential } from "@azure/core-auth";
/**
* The programmatic identifier of the tablesSASTokenPolicy.

Просмотреть файл

@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TableServiceClientOptions } from "..";
import { ConnectionString } from "./internalModels";
import { TableServiceClientOptions } from "..";
/**
* Gets client parameters from an Account Connection String

Просмотреть файл

@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TableServiceClientOptions } from "..";
import { ClientParamsFromConnectionString, ConnectionString } from "./internalModels";
import { AzureNamedKeyCredential } from "@azure/core-auth";
import { TableServiceClientOptions } from "..";
/**
* Gets client parameters from an Account Connection String

Просмотреть файл

@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TableServiceClientOptions } from "../models";
import { fromAccountConnectionString, getAccountConnectionString } from "./accountConnectionString";
import { ClientParamsFromConnectionString, ConnectionString } from "./internalModels";
import { fromAccountConnectionString, getAccountConnectionString } from "./accountConnectionString";
import { TableServiceClientOptions } from "../models";
import { URL } from "./url";
const DevelopmentConnectionString =

Просмотреть файл

@ -3,8 +3,8 @@
import { OperationOptions, OperationRequest } from "@azure/core-client";
import { PipelineResponse, RestError } from "@azure/core-rest-pipeline";
import { SpanStatusCode } from "@azure/core-tracing";
import { AzureLogger } from "@azure/logger";
import { SpanStatusCode } from "@azure/core-tracing";
import { TableServiceError } from "../generated";
export type TableServiceErrorResponse = PipelineResponse & {

Просмотреть файл

@ -16,11 +16,11 @@ import {
UpdateMode,
UpdateTableEntityOptions
} from "../models";
import { DeleteTableEntityResponse, UpdateEntityResponse, UpsertEntityResponse } from "..";
import { Pipeline, PipelineRequest } from "@azure/core-rest-pipeline";
import { NamedKeyCredential } from "@azure/core-auth";
import { DeleteTableEntityResponse, UpdateEntityResponse, UpsertEntityResponse } from "..";
import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { OperationOptions } from "@azure/core-client";
import { PagedAsyncIterableIterator } from "@azure/core-paging";
export interface ConnectionString {
kind: "AccountConnString" | "SASConnString";

Просмотреть файл

@ -1,8 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { odata } from "../../src";
import { assert } from "chai";
import { odata } from "../../src";
describe("odata", () => {
it("should handle empty string", () => {

Просмотреть файл

@ -1,15 +1,14 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { assert } from "chai";
import { Edm } from "../../src";
import {
deserialize,
deserializeSignedIdentifier,
serialize,
serializeSignedIdentifiers
} from "../../src/serialization";
import { Edm } from "../../src";
import { assert } from "chai";
import { isNode8 } from "@azure/test-utils";
interface Entity {

Просмотреть файл

@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Context } from "mocha";
import {
PipelineRequest,
PipelineResponse,
@ -9,12 +8,12 @@ import {
createHttpHeaders,
createPipelineRequest
} from "@azure/core-rest-pipeline";
import { isNode } from "@azure/test-utils";
import { assert } from "chai";
import { tablesNamedKeyCredentialPolicy } from "../../src/tablesNamedCredentialPolicy";
import { AzureNamedKeyCredential } from "@azure/core-auth";
import { Context } from "mocha";
import { assert } from "chai";
import { expectedSharedKeyLiteHeader } from "./fakeTestSecrets";
import { isNode } from "@azure/test-utils";
import { tablesNamedKeyCredentialPolicy } from "../../src/tablesNamedCredentialPolicy";
describe("TablesSharedKeyCredential", () => {
let originalToUTCString: () => string;

Просмотреть файл

@ -1,13 +1,13 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { assert } from "chai";
import { parseTransactionResponse } from "../../src/TableTransaction";
import {
PipelineResponse,
createHttpHeaders,
createPipelineRequest
} from "@azure/core-rest-pipeline";
import { assert } from "chai";
import { parseTransactionResponse } from "../../src/TableTransaction";
describe("TableTransaction", () => {
describe("parseTransactionResponse", () => {

Просмотреть файл

@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { extractConnectionStringParts } from "../../src/utils/connectionString";
import { Context } from "mocha";
import { base64Decode, base64Encode } from "../../src/utils/bufferSerializer";
import { isNode } from "@azure/test-utils";
import { assert } from "chai";
import { ConnectionString } from "../../src/utils/internalModels";
import { Context } from "mocha";
import { assert } from "chai";
import { extractConnectionStringParts } from "../../src/utils/connectionString";
import { isNode } from "@azure/test-utils";
describe("Utility Helpers", () => {
describe("extractConnectionStringParts", () => {

Просмотреть файл

@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TableClient } from "../../src";
import { Context } from "mocha";
import { Recorder, isPlaybackMode, record } from "@azure-tools/test-recorder";
import { createTableClient, recordedEnvironmentSetup } from "./utils/recordedClient";
import { isNode } from "@azure/test-utils";
import { Context } from "mocha";
import { TableClient } from "../../src";
import { assert } from "chai";
import { isNode } from "@azure/test-utils";
describe(`Access Policy operations`, () => {
let client: TableClient;

Просмотреть файл

@ -2,11 +2,11 @@
// Licensed under the MIT license.
import { RestError, TableClient, TableServiceClient } from "../../src";
import { Context } from "mocha";
import { assert } from "chai";
import { createTableClient, createTableServiceClient } from "./utils/recordedClient";
import { createHttpHeaders } from "@azure/core-rest-pipeline";
import { Context } from "mocha";
import { TableServiceErrorResponse } from "../../src/utils/errorHelpers";
import { assert } from "chai";
import { createHttpHeaders } from "@azure/core-rest-pipeline";
describe("TableClient CreationHandling", () => {
let client: TableClient;

Просмотреть файл

@ -1,12 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TableClient, TableEntityResult, TransactionAction, odata } from "../../src";
import { assert } from "chai";
import { createTableClient, recordedEnvironmentSetup } from "./utils/recordedClient";
import { isNode } from "@azure/test-utils";
import { Recorder, isLiveMode, record } from "@azure-tools/test-recorder";
import { TableClient, TableEntityResult, TransactionAction, odata } from "../../src";
import { createTableClient, recordedEnvironmentSetup } from "./utils/recordedClient";
import { Context } from "mocha";
import { assert } from "chai";
import { isNode } from "@azure/test-utils";
describe("SpecialCharacters", function() {
before(function(this: Context) {

Просмотреть файл

@ -1,17 +1,17 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { Edm, TableClient, TableEntity, TableEntityResult, odata } from "../../src";
import { Context } from "mocha";
import { assert } from "chai";
import { Recorder, isLiveMode, isPlaybackMode, record } from "@azure-tools/test-recorder";
import {
CreateClientMode,
createTableClient,
recordedEnvironmentSetup
} from "./utils/recordedClient";
import { Edm, TableClient, TableEntity, TableEntityResult, odata } from "../../src";
import { Recorder, isLiveMode, isPlaybackMode, record } from "@azure-tools/test-recorder";
import { isNode, isNode8 } from "@azure/test-utils";
import { Context } from "mocha";
import { FullOperationResponse } from "@azure/core-client";
import { assert } from "chai";
// SASConnectionString and SASToken are supported in both node and browser
const authModes: CreateClientMode[] = ["TokenCredential", "SASConnectionString"];

Просмотреть файл

@ -1,17 +1,17 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TableItem, TableItemResultPage, TableServiceClient } from "../../src";
import { Context } from "mocha";
import { Recorder, isLiveMode, isPlaybackMode, record } from "@azure-tools/test-recorder";
import {
CreateClientMode,
createTableServiceClient,
recordedEnvironmentSetup
} from "./utils/recordedClient";
import { isNode } from "@azure/test-utils";
import { assert } from "chai";
import { Recorder, isLiveMode, isPlaybackMode, record } from "@azure-tools/test-recorder";
import { TableItem, TableItemResultPage, TableServiceClient } from "../../src";
import { Context } from "mocha";
import { FullOperationResponse } from "@azure/core-client";
import { assert } from "chai";
import { isNode } from "@azure/test-utils";
// SASConnectionString and SASToken are supported in both node and browser
const authModes: CreateClientMode[] = ["TokenCredential", "SASConnectionString"];

Просмотреть файл

@ -1,18 +1,18 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { TableClient, TableTransaction, TransactionAction, odata } from "../../src";
import { Context } from "mocha";
import { assert } from "chai";
import { Recorder, isLiveMode, isPlaybackMode, record } from "@azure-tools/test-recorder";
import * as sinon from "sinon";
import {
CreateClientMode,
createTableClient,
recordedEnvironmentSetup
} from "./utils/recordedClient";
import { isNode } from "@azure/test-utils";
import { Recorder, isLiveMode, isPlaybackMode, record } from "@azure-tools/test-recorder";
import { TableClient, TableTransaction, TransactionAction, odata } from "../../src";
import { Context } from "mocha";
import { Uuid } from "../../src/utils/uuid";
import * as sinon from "sinon";
import { assert } from "chai";
import { isNode } from "@azure/test-utils";
// SASConnectionString and SASToken are supported in both node and browser
const authModes: CreateClientMode[] = ["TokenCredential", "SASConnectionString"];

Просмотреть файл

@ -1,13 +1,11 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { RecorderEnvironmentSetup, env } from "@azure-tools/test-recorder";
import { ClientSecretCredential } from "@azure/identity";
import { TableClient, TableServiceClient } from "../../../src";
import { AzureNamedKeyCredential, AzureSASCredential } from "@azure/core-auth";
import "./env";
import { AzureNamedKeyCredential, AzureSASCredential } from "@azure/core-auth";
import { RecorderEnvironmentSetup, env } from "@azure-tools/test-recorder";
import { TableClient, TableServiceClient } from "../../../src";
import { ClientSecretCredential } from "@azure/identity";
const mockAccountName = "fakeaccount";
const mockAccountKey = "fakeKey";