New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@azure/data-tables

Package Overview
Dependencies
Maintainers
3
Versions
352
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/data-tables - npm Package Compare versions

Comparing version 1.0.0-beta.3 to 1.0.0-beta.4

8

CHANGELOG.md
# Release History
## 1.0.0-beta.4 (2021-01-12)
- Fix issue that prevented support for Azure Storage Emulator and Azurite [#13165](https://github.com/Azure/azure-sdk-for-js/pull/13165)
### Breaking Changes
- Don't deserialize DateTime into a JavaScript Date to avoid losing precision [#12650](https://github.com/Azure/azure-sdk-for-js/pull/12650)
## 1.0.0-beta.3 (2020-11-12)

@@ -4,0 +12,0 @@

2

dist-esm/src/generated/generatedClientContext.js

@@ -10,3 +10,3 @@ /*

const packageName = "@azure/data-tables";
const packageVersion = "1.0.0-beta.3";
const packageVersion = "1.0.0-beta.4";
export class GeneratedClientContext extends coreHttp.ServiceClient {

@@ -13,0 +13,0 @@ /**

@@ -8,2 +8,3 @@ /*

*/
export {};
//# sourceMappingURL=index.js.map
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
export {};
//# sourceMappingURL=generatedModels.js.map

@@ -5,5 +5,5 @@ // Copyright (c) Microsoft Corporation.

/**
* The @azure/logger configuration for this package.
* The \@azure/logger configuration for this package.
*/
export const logger = createClientLogger("data-tables");
//# sourceMappingURL=logger.js.map
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
export {};
//# sourceMappingURL=models.js.map

@@ -99,3 +99,3 @@ // Copyright (c) Microsoft Corporation.

case Edm.DateTime:
return new Date(value);
return { value, type: "DateTime" };
case Edm.Int64:

@@ -102,0 +102,0 @@ return { value, type: "Int64" };

@@ -16,5 +16,5 @@ // Copyright (c) Microsoft Corporation.

/**
* @param url Tables account url
* @param partitionKey partition key
* @param credential credential to authenticate the batch request
* @param url - Tables account url
* @param partitionKey - partition key
* @param credential - credential to authenticate the batch request
*/

@@ -44,3 +44,3 @@ constructor(url, partitionKey, interceptClient, batchGuid, batchRequest, credential) {

* Adds a createEntity operation to the batch
* @param entity Entity to create
* @param entity - Entity to create
*/

@@ -53,6 +53,6 @@ createEntity(entity) {

* Adds a createEntity operation to the batch per each entity in the entities array
* @param entitites Array of entities to create
* @param entities - Array of entities to create
*/
createEntities(entitites) {
for (const entity of entitites) {
createEntities(entities) {
for (const entity of entities) {
this.checkPartitionKey(entity.partitionKey);

@@ -64,5 +64,5 @@ this.pendingOperations.push(this.interceptClient.createEntity(entity));

* Adds a deleteEntity operation to the batch
* @param partitionKey partition key of the entity to delete
* @param rowKey row key of the entity to delete
* @param options options for the delete operation
* @param partitionKey - Partition key of the entity to delete
* @param rowKey - Row key of the entity to delete
* @param options - Options for the delete operation
*/

@@ -75,5 +75,5 @@ deleteEntity(partitionKey, rowKey, options) {

* Adds an updateEntity operation to the batch
* @param entity entity to update
* @param mode update mode (Merge or Replace)
* @param options options for the update operation
* @param entity - Entity to update
* @param mode - Update mode (Merge or Replace)
* @param options - Options for the update operation
*/

@@ -152,5 +152,5 @@ updateEntity(entity, mode, options) {

}
const status = Number.parseInt(statusMatch[1]);
if (!Number.isInteger(status)) {
throw new Error(`Expected sub-response status to be an integer ${status}`);
const subResponseStatus = Number.parseInt(statusMatch[1]);
if (!Number.isInteger(subResponseStatus)) {
throw new Error(`Expected sub-response status to be an integer ${subResponseStatus}`);
}

@@ -164,3 +164,3 @@ const bodyMatch = subResponse.match(/\{(.*)\}/);

const message = ((_a = error.message) === null || _a === void 0 ? void 0 : _a.value) || "One of the batch operations failed";
throw new RestError(message, error.code, status, batchResponse.request, batchResponse);
throw new RestError(message, error.code, subResponseStatus, batchResponse.request, batchResponse);
}

@@ -170,3 +170,3 @@ }

const rowKeyMatch = subResponse.match(/RowKey='(.*)'/);
return Object.assign(Object.assign({ status }, ((rowKeyMatch === null || rowKeyMatch === void 0 ? void 0 : rowKeyMatch.length) === 2 && { rowKey: rowKeyMatch[1] })), ((etagMatch === null || etagMatch === void 0 ? void 0 : etagMatch.length) === 2 && { etag: etagMatch[1] }));
return Object.assign(Object.assign({ status: subResponseStatus }, ((rowKeyMatch === null || rowKeyMatch === void 0 ? void 0 : rowKeyMatch.length) === 2 && { rowKey: rowKeyMatch[1] })), ((etagMatch === null || etagMatch === void 0 ? void 0 : etagMatch.length) === 2 && { etag: etagMatch[1] }));
});

@@ -181,5 +181,3 @@ return {

* Prepares the operation url to be added to the body, removing the SAS token if present
* @export
* @param {string} url Source URL string
* @returns {(string | undefined)}
* @param url - Source URL string
*/

@@ -194,3 +192,3 @@ function getSubRequestUrl(url) {

* This method creates a batch request object that provides functions to build the envelope and body for a batch request
* @param batchGuid Id of the batch
* @param batchGuid - Id of the batch
*/

@@ -197,0 +195,0 @@ export function createInnerBatchRequest(batchGuid, changesetId) {

@@ -28,2 +28,3 @@ // Copyright (c) Microsoft Corporation.

: options) || {};
clientOptions.endpoint = clientOptions.endpoint || url;
if (!clientOptions.userAgentOptions) {

@@ -46,3 +47,3 @@ clientOptions.userAgentOptions = {};

// The client is meant to be a regular service client, so we need to create the regular set of pipelines
const internalPipelineOptions = Object.assign(Object.assign({}, clientOptions), {
const internalPipelineOptions = {
loggingOptions: {

@@ -52,4 +53,4 @@ logger: logger.info,

}
});
pipeline = createPipelineFromOptions(internalPipelineOptions, credential);
};
pipeline = Object.assign(Object.assign({}, clientOptions), createPipelineFromOptions(internalPipelineOptions, credential));
}

@@ -63,3 +64,3 @@ this.tableName = tableName;

* Permanently deletes the current table with all of its entities.
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -84,3 +85,3 @@ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options

* Creates the current table it it doesn't exist
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -105,5 +106,5 @@ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options

* Returns a single entity in the table.
* @param partitionKey The partition key of the entity.
* @param rowKey The row key of the entity.
* @param options The options parameters.
* @param partitionKey - The partition key of the entity.
* @param rowKey - The row key of the entity.
* @param options - The options parameters.
*/

@@ -135,4 +136,4 @@ getEntity(partitionKey, rowKey,

* Queries entities in a table.
* @param tableName The name of the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param options - The options parameters.
*/

@@ -223,4 +224,4 @@ listEntities(

* Insert entity in the table.
* @param entity The properties for the table entity.
* @param options The options parameters.
* @param entity - The properties for the table entity.
* @param options - The options parameters.
*/

@@ -247,5 +248,5 @@ createEntity(entity,

* Deletes the specified entity in the table.
* @param partitionKey The partition key of the entity.
* @param rowKey The row key of the entity.
* @param options The options parameters.
* @param partitionKey - The partition key of the entity.
* @param rowKey - The row key of the entity.
* @param options - The options parameters.
*/

@@ -273,7 +274,7 @@ deleteEntity(partitionKey, rowKey,

* Update an entity in the table.
* @param entity The properties of the entity to be updated.
* @param mode The different modes for updating the entity:
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
* - Replace: Updates an existing entity by replacing the entire entity.
* @param options The options parameters.
* @param entity - The properties of the entity to be updated.
* @param mode - The different modes for updating the entity:
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
* - Replace: Updates an existing entity by replacing the entire entity.
* @param options - The options parameters.
*/

@@ -309,8 +310,8 @@ updateEntity(entity, mode,

* Upsert an entity in the table.
* @param tableName The name of the table.
* @param entity The properties for the table entity.
* @param mode The different modes for updating the entity:
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
* - Replace: Updates an existing entity by replacing the entire entity.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param entity - The properties for the table entity.
* @param mode - The different modes for updating the entity:
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
* - Replace: Updates an existing entity by replacing the entire entity.
* @param options - The options parameters.
*/

@@ -346,3 +347,3 @@ upsertEntity(entity, mode,

* Creates a new Batch to collect sub-operations that can be submitted together via submitBatch
* @param partitionKey partitionKey to which the batch operations will be targetted to
* @param partitionKey - partitionKey to which the batch operations will be targetted to
*/

@@ -370,10 +371,10 @@ // eslint-disable-next-line @azure/azure-sdk/ts-naming-options

*
* @param {string} connectionString Account connection string or a SAS connection string of an Azure storage account.
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
* Account connection string example -
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
* SAS connection string example -
* `BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
* @param {TableClientOptions} [options] Options to configure the HTTP pipeline.
* @returns {TableClient} A new TableClient from the given connection string.
* @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
* Account connection string example -
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
* SAS connection string example -
* `BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
* @param options - Options to configure the HTTP pipeline.
* @returns A new TableClient from the given connection string.
*/

@@ -380,0 +381,0 @@ static fromConnectionString(connectionString, tableName,

@@ -23,2 +23,3 @@ // Copyright (c) Microsoft Corporation.

: options) || {};
clientOptions.endpoint = clientOptions.endpoint || url;
if (!clientOptions.userAgentOptions) {

@@ -33,3 +34,3 @@ clientOptions.userAgentOptions = {};

}
const internalPipelineOptions = Object.assign(Object.assign({}, clientOptions), {
const internalPipelineOptions = {
loggingOptions: {

@@ -39,4 +40,4 @@ logger: logger.info,

}
});
const pipeline = createPipelineFromOptions(internalPipelineOptions, credential);
};
const pipeline = Object.assign(Object.assign({}, clientOptions), createPipelineFromOptions(internalPipelineOptions, credential));
const client = new GeneratedClient(url, pipeline);

@@ -49,3 +50,3 @@ this.table = client.table;

* secondary location endpoint when read-access geo-redundant replication is enabled for the account.
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -68,3 +69,3 @@ getStatistics(options = {}) {

* (Cross-Origin Resource Sharing) rules.
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -87,4 +88,4 @@ getProperties(options = {}) {

* (Cross-Origin Resource Sharing) rules.
* @param properties The Table Service properties.
* @param options The options parameters.
* @param properties - The Table Service properties.
* @param options - The options parameters.
*/

@@ -106,4 +107,4 @@ setProperties(properties, options = {}) {

* Creates a new table under the given account.
* @param tableName The name of the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param options - The options parameters.
*/

@@ -125,4 +126,4 @@ createTable(tableName, options = {}) {

* Operation permanently deletes the specified table.
* @param tableName The name of the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param options - The options parameters.
*/

@@ -144,3 +145,3 @@ deleteTable(tableName, options = {}) {

* Queries tables under the given account.
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -218,4 +219,4 @@ listTables(

* Shared Access Signatures.
* @param tableName The name of the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param options - The options parameters.
*/

@@ -237,5 +238,5 @@ getAccessPolicy(tableName, options = {}) {

* Sets stored access policies for the table that may be used with Shared Access Signatures.
* @param tableName The name of the table.
* @param acl The Access Control List for the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param acl - The Access Control List for the table.
* @param options - The options parameters.
*/

@@ -259,10 +260,10 @@ setAccessPolicy(tableName, options = {}) {

*
* @param {string} connectionString Account connection string or a SAS connection string of an Azure storage account.
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
* Account connection string example -
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
* SAS connection string example -
* `BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
* @param {TableServiceClientOptions} [options] Options to configure the HTTP pipeline.
* @returns {TableServiceClient} A new TableServiceClient from the given connection string.
* @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
* Account connection string example -
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
* SAS connection string example -
* `BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
* @param options - Options to configure the HTTP pipeline.
* @returns A new TableServiceClient from the given connection string.
*/

@@ -269,0 +270,0 @@ static fromConnectionString(connectionString,

@@ -6,4 +6,2 @@ // Copyright (c) Microsoft Corporation.

* Creates an instance of TablesSharedKeyCredential.
* @param {string} accountName
* @param {string} accountKey
*/

@@ -10,0 +8,0 @@ constructor(_accountName, _accountKey) {

@@ -9,5 +9,2 @@ // Copyright (c) Microsoft Corporation.

* TablesSharedKeyCredential for account key authorization of Azure Tables service.
*
* @export
* @class TablesSharedKeyCredential
*/

@@ -17,4 +14,2 @@ export class TablesSharedKeyCredential {

* Creates an instance of TablesSharedKeyCredential.
* @param {string} accountName
* @param {string} accountKey
*/

@@ -27,6 +22,2 @@ constructor(accountName, accountKey) {

* Creates a {@link TablesSharedKeyCredentialPolicy} object.
*
* @param {RequestPolicy} nextPolicy
* @param {RequestPolicyOptionsLike} options
* @returns {TablesSharedKeyCredentialPolicy}
*/

@@ -38,5 +29,2 @@ create(nextPolicy, options) {

* Generates a hash signature for an HTTP request or for a SAS.
*
* @param {string} stringToSign
* @returns {string}
*/

@@ -43,0 +31,0 @@ computeHMACSHA256(stringToSign) {

@@ -8,6 +8,2 @@ // Copyright (c) Microsoft Corporation.

* TablesSharedKeyCredentialPolicy is a policy used to sign HTTP request with a shared key.
*
* @export
* @class TablesSharedKeyCredentialPolicy
* @extends {CredentialPolicy}
*/

@@ -17,5 +13,2 @@ export class TablesSharedKeyCredentialPolicy extends BaseRequestPolicy {

* Creates an instance of TablesSharedKeyCredentialPolicy.
* @param {RequestPolicy} nextPolicy
* @param {RequestPolicyOptions} options
* @param {TablesSharedKeyCredential} factory
*/

@@ -28,5 +21,2 @@ constructor(nextPolicy, options, credential) {

* Sends out request.
*
* @param {WebResource} request
* @returns {Promise<HttpOperationResponse>}
*/

@@ -38,6 +28,2 @@ sendRequest(request) {

* Signs request.
*
* @protected
* @param {WebResource} request
* @returns {WebResource}
*/

@@ -44,0 +30,0 @@ signRequest(request) {

@@ -6,6 +6,6 @@ // Copyright (c) Microsoft Corporation.

* Only supported in Node.js not supported for Browsers
* @param _extractedCreds parsed connection string
* @param _options TablesServiceClient options
* @param _extractedCreds - parsed connection string
* @param _options - TablesServiceClient options
*/
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type, @typescript-eslint/explicit-module-boundary-types
export function fromAccountConnectionString(_connectionString, _options) {

@@ -12,0 +12,0 @@ throw new Error("Account connection string is only supported in Node.js environment");

@@ -8,4 +8,4 @@ // Copyright (c) Microsoft Corporation.

* Only supported in Node.js not supported for Browsers
* @param extractedCreds parsed connection string
* @param options TablesServiceClient options
* @param extractedCreds - parsed connection string
* @param options - TablesServiceClient options
*/

@@ -12,0 +12,0 @@ export function fromAccountConnectionString(extractedCreds, options = {}) {

@@ -5,3 +5,3 @@ // Copyright (c) Microsoft Corporation.

* Encodes a byte array in base64 format.
* @param value the Uint8Aray to encode
* @param value - The Uint8Aray to encode
*/

@@ -17,3 +17,3 @@ export function base64Encode(value) {

* Decodes a base64 string into a byte array.
* @param value the base64 string to decode
* @param value - The base64 string to decode
*/

@@ -20,0 +20,0 @@ export function base64Decode(value) {

@@ -5,3 +5,3 @@ // Copyright (c) Microsoft Corporation.

* Encodes a byte array in base64 format.
* @param value the Uint8Aray to encode
* @param value - The Uint8Aray to encode
*/

@@ -14,3 +14,3 @@ export function base64Encode(value) {

* Decodes a base64 string into a byte array.
* @param value the base64 string to decode
* @param value - The base64 string to decode
*/

@@ -17,0 +17,0 @@ export function base64Decode(value) {

@@ -5,2 +5,3 @@ // Copyright (c) Microsoft Corporation.

import { URL } from "./url";
const DevelopmentConnectionString = "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;TableEndpoint=http://127.0.0.1:10002/devstoreaccount1";
/**

@@ -13,7 +14,9 @@ * This function parses a connection string into a set of

* - SAS Connection String: Attach a SAS token to the storage account url for authentication
* @param connectionString connection string to parse
* @param options TableService client options
* @returns
* @param connectionString - Connection string to parse
* @param options - TableService client options
*/
export function getClientParamsFromConnectionString(connectionString, options) {
if (connectionString.toLowerCase().indexOf("usedevelopmentstorage=true") !== -1) {
connectionString = DevelopmentConnectionString;
}
const extractedCreds = extractConnectionStringParts(connectionString);

@@ -36,5 +39,4 @@ if (extractedCreds.kind === "AccountConnString") {

*
* @export
* @param {string} connectionString Connection string.
* @returns {ConnectionString} String key value pairs of the storage account's url and credentials.
* @param connectionString - Connection string.
* @returns String key value pairs of the storage account's url and credentials.
*/

@@ -81,4 +83,4 @@ export function extractConnectionStringParts(connectionString) {

* Extracts account name from the url
* @param {string} url url to extract the account name from
* @returns {string} with the account name
* @param url - URL to extract the account name from
* @returns The account name
*/

@@ -85,0 +87,0 @@ function getAccountNameFromUrl(url) {

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
export const SDK_VERSION = "1.0.0-beta.3";
export const SDK_VERSION = "1.0.0-beta.4";
export const LIB_INFO = `azsdk-js-data-tables/${SDK_VERSION}`;

@@ -5,0 +5,0 @@ export const HeaderConstants = {

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
export {};
//# sourceMappingURL=internalModels.js.map

@@ -7,5 +7,6 @@ // Copyright (c) Microsoft Corporation.

* Creates a span using the global tracer.
* @ignore
* @param name The name of the operation being performed.
* @param tracingOptions The options for the underlying http request.
* @internal
* @hidden
* @param name - The name of the operation being performed.
* @param tracingOptions - The options for the underlying http request.
*/

@@ -12,0 +13,0 @@ export function createSpan(operationName, operationOptions) {

{
"name": "@azure/data-tables",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "An isomorphic client library for the Azure Tables service.",

@@ -17,6 +17,6 @@ "sdk-type": "client",

"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=1.0.0-beta.2 --version=3.0.6267 --v3=true",
"build:autorest": "autorest ./swagger/README.md --typescript --package-version=1.0.0-beta.4 --version=3.0.6267 --v3=true",
"build:browser": "tsc -p . && cross-env ONLY_BROWSER=true rollup -c 2>&1",
"build:node": "tsc -p . && cross-env ONLY_NODE=true rollup -c 2>&1",
"build:samples": "cd samples && tsc -p .",
"build:samples": "dev-tool samples prep && cd dist-samples && tsc",
"build:test": "tsc -p . && rollup -c rollup.test.config.js 2>&1",

@@ -27,7 +27,7 @@ "build:types": "downlevel-dts types/latest types/3.1",

"clean": "rimraf dist dist-* types *.tgz *.log",
"execute:samples": "echo skipped",
"execute:samples": "echo Skipped.",
"extract-api": "tsc -p . && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "karma start --single-run --testMode=integration",
"integration-test:node": "mocha --reporter ../../../common/tools/mocha-multi-reporter.js dist-test/integration.index.node.js",
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js dist-esm/test/integration/*.spec.js dist-esm/test/unit/*.spec.js",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",

@@ -42,4 +42,5 @@ "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",

"unit-test:browser": "karma start --single-run --testMode=unit && npm run integration-test:browser",
"unit-test:node": "mocha --reporter ../../../common/tools/mocha-multi-reporter.js dist-test/unit.index.node.js && npm run integration-test:node",
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
"unit-test:node": "mocha --reporter ../../../common/tools/mocha-multi-reporter.js dist-test/unit.index.node.js",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --mode file --out ./dist/docs ./src"
},

@@ -79,2 +80,3 @@ "files": [

"devDependencies": {
"@azure/dev-tool": "^1.0.0",
"@microsoft/api-extractor": "7.7.11",

@@ -94,3 +96,3 @@ "@rollup/plugin-commonjs": "11.0.2",

"downlevel-dts": "~0.4.0",
"eslint": "^6.1.0",
"eslint": "^7.15.0",
"inherits": "^2.0.3",

@@ -111,2 +113,3 @@ "karma": "^5.1.0",

"prettier": "^1.16.4",
"nyc": "^14.0.0",
"rimraf": "^3.0.0",

@@ -118,3 +121,3 @@ "rollup": "^1.16.3",

"sinon": "^9.0.2",
"typescript": "~3.9.3",
"typescript": "4.1.2",
"util": "^0.12.1",

@@ -124,3 +127,4 @@ "dotenv": "^8.2.0",

"rollup-plugin-shim": "^1.0.0",
"@rollup/plugin-inject": "^4.0.0"
"@rollup/plugin-inject": "^4.0.0",
"typedoc": "0.15.0"
},

@@ -127,0 +131,0 @@ "//metadata": {

@@ -207,3 +207,3 @@ import { BaseRequestPolicy } from '@azure/core-http';

*/
value: T extends "Binary" ? Uint8Array : T extends "Boolean" ? boolean : T extends "DateTime" ? Date : T extends "Double" ? number : T extends "Int32" ? number : string;
value: T extends "Binary" ? Uint8Array : T extends "Boolean" ? boolean : T extends "Double" ? number : T extends "Int32" ? number : string;
/**

@@ -732,3 +732,3 @@ * The type of the entity property

* Adds a createEntity operation to the batch per each entity in the entities array
* @param entitites Array of entities to create
* @param entities - Array of entities to create
*/

@@ -738,3 +738,3 @@ createEntities: <T extends object>(entitites: TableEntity<T>[]) => void;

* Adds a createEntity operation to the batch
* @param entity Entity to create
* @param entity - Entity to create
*/

@@ -744,5 +744,5 @@ createEntity: <T extends object>(entity: TableEntity<T>) => void;

* Adds a deleteEntity operation to the batch
* @param partitionKey partition key of the entity to delete
* @param rowKey row key of the entity to delete
* @param options options for the delete operation
* @param partitionKey - Partition key of the entity to delete
* @param rowKey - Row key of the entity to delete
* @param options - Options for the delete operation
*/

@@ -752,5 +752,5 @@ deleteEntity: (partitionKey: string, rowKey: string, options?: DeleteTableEntityOptions) => void;

* Adds an updateEntity operation to the batch
* @param entity entity to update
* @param mode update mode (Merge or Replace)
* @param options options for the update operation
* @param entity - Entity to update
* @param mode - Update mode (Merge or Replace)
* @param options - Options for the update operation
*/

@@ -815,7 +815,7 @@ updateEntity: <T extends object>(entity: TableEntity<T>, mode: UpdateMode, options?: UpdateTableEntityOptions) => void;

*
* @param {string} url The URL of the service account that is the target of the desired operation., such as
* @param url - The URL of the service account that is the target of the desired operation., such as
* "https://myaccount.table.core.windows.net".
* @param {string} tableName the name of the table
* @param {TablesSharedKeyCredential} credential TablesSharedKeyCredential used to authenticate requests. Only Supported for Browsers
* @param {TableClientOptions} options Optional. Options to configure the HTTP pipeline.
* @param tableName - the name of the table
* @param credential - TablesSharedKeyCredential used to authenticate requests. Only Supported for Browsers
* @param options - Optional. Options to configure the HTTP pipeline.
*

@@ -840,7 +840,7 @@ * Example using an account name/key:

*
* @param {string} url A Client string pointing to Azure Storage table service, such as
* "https://myaccount.table.core.windows.net". You can append a SAS,
* such as "https://myaccount.table.core.windows.net?sasString".
* @param {string} tableName the name of the table
* @param {TableClientOptions} options Optional. Options to configure the HTTP pipeline.
* @param url - A Client string pointing to Azure Storage table service, such as
* "https://myaccount.table.core.windows.net". You can append a SAS,
* such as "https://myaccount.table.core.windows.net?sasString".
* @param tableName - the name of the table
* @param options - Options to configure the HTTP pipeline.
*

@@ -863,3 +863,3 @@ * Example appending a SAS token:

* Permanently deletes the current table with all of its entities.
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -869,3 +869,3 @@ delete(options?: DeleteTableOptions): Promise<DeleteTableResponse>;

* Creates the current table it it doesn't exist
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -875,5 +875,5 @@ create(options?: CreateTableOptions): Promise<CreateTableItemResponse>;

* Returns a single entity in the table.
* @param partitionKey The partition key of the entity.
* @param rowKey The row key of the entity.
* @param options The options parameters.
* @param partitionKey - The partition key of the entity.
* @param rowKey - The row key of the entity.
* @param options - The options parameters.
*/

@@ -883,4 +883,4 @@ getEntity<T extends object>(partitionKey: string, rowKey: string, options?: GetTableEntityOptions): Promise<GetTableEntityResponse<TableEntityResult<T>>>;

* Queries entities in a table.
* @param tableName The name of the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param options - The options parameters.
*/

@@ -893,4 +893,4 @@ listEntities<T extends object>(options?: ListTableEntitiesOptions): PagedAsyncIterableIterator<TableEntityResult<T>, ListEntitiesResponse<TableEntityResult<T>>>;

* Insert entity in the table.
* @param entity The properties for the table entity.
* @param options The options parameters.
* @param entity - The properties for the table entity.
* @param options - The options parameters.
*/

@@ -900,5 +900,5 @@ createEntity<T extends object>(entity: TableEntity<T>, options?: CreateTableEntityOptions): Promise<CreateTableEntityResponse>;

* Deletes the specified entity in the table.
* @param partitionKey The partition key of the entity.
* @param rowKey The row key of the entity.
* @param options The options parameters.
* @param partitionKey - The partition key of the entity.
* @param rowKey - The row key of the entity.
* @param options - The options parameters.
*/

@@ -908,7 +908,7 @@ deleteEntity(partitionKey: string, rowKey: string, options?: DeleteTableEntityOptions): Promise<DeleteTableEntityResponse>;

* Update an entity in the table.
* @param entity The properties of the entity to be updated.
* @param mode The different modes for updating the entity:
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
* - Replace: Updates an existing entity by replacing the entire entity.
* @param options The options parameters.
* @param entity - The properties of the entity to be updated.
* @param mode - The different modes for updating the entity:
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
* - Replace: Updates an existing entity by replacing the entire entity.
* @param options - The options parameters.
*/

@@ -918,8 +918,8 @@ updateEntity<T extends object>(entity: TableEntity<T>, mode: UpdateMode, options?: UpdateTableEntityOptions): Promise<UpdateEntityResponse>;

* Upsert an entity in the table.
* @param tableName The name of the table.
* @param entity The properties for the table entity.
* @param mode The different modes for updating the entity:
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
* - Replace: Updates an existing entity by replacing the entire entity.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param entity - The properties for the table entity.
* @param mode - The different modes for updating the entity:
* - Merge: Updates an entity by updating the entity's properties without replacing the existing entity.
* - Replace: Updates an existing entity by replacing the entire entity.
* @param options - The options parameters.
*/

@@ -929,3 +929,3 @@ upsertEntity<T extends object>(entity: TableEntity<T>, mode: UpdateMode, options?: UpsertTableEntityOptions): Promise<UpsertEntityResponse>;

* Creates a new Batch to collect sub-operations that can be submitted together via submitBatch
* @param partitionKey partitionKey to which the batch operations will be targetted to
* @param partitionKey - partitionKey to which the batch operations will be targetted to
*/

@@ -938,10 +938,10 @@ createBatch(partitionKey: string): TableBatch;

*
* @param {string} connectionString Account connection string or a SAS connection string of an Azure storage account.
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
* Account connection string example -
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
* SAS connection string example -
* `BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
* @param {TableClientOptions} [options] Options to configure the HTTP pipeline.
* @returns {TableClient} A new TableClient from the given connection string.
* @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
* Account connection string example -
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
* SAS connection string example -
* `BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
* @param options - Options to configure the HTTP pipeline.
* @returns A new TableClient from the given connection string.
*/

@@ -1413,7 +1413,7 @@ static fromConnectionString(connectionString: string, tableName: string, options?: TableServiceClientOptions): TableClient;

*
* @param {string} url The URL of the service account that is the target of the desired operation., such as
* "https://myaccount.table.core.windows.net". You can append a SAS,
* such as "https://myaccount.table.core.windows.net?sasString".
* @param {TablesSharedKeyCredential} credential TablesSharedKeyCredential used to authenticate requests. Only Supported for Browsers
* @param {TableServiceClientOptions} options Optional. Options to configure the HTTP pipeline.
* @param url - The URL of the service account that is the target of the desired operation., such as
* "https://myaccount.table.core.windows.net". You can append a SAS,
* such as "https://myaccount.table.core.windows.net?sasString".
* @param credential - TablesSharedKeyCredential used to authenticate requests. Only Supported for Browsers
* @param options - Options to configure the HTTP pipeline.
*

@@ -1436,6 +1436,6 @@ * Example using an account name/key:

*
* @param {string} url The URL of the service account that is the target of the desired operation., such as
* "https://myaccount.table.core.windows.net". You can append a SAS,
* such as "https://myaccount.table.core.windows.net?sasString".
* @param {TableServiceClientOptions} options Optional. Options to configure the HTTP pipeline.
* @param url - The URL of the service account that is the target of the desired operation., such as
* "https://myaccount.table.core.windows.net". You can append a SAS,
* such as "https://myaccount.table.core.windows.net?sasString".
* @param options - Options to configure the HTTP pipeline.
* Example appending a SAS token:

@@ -1456,3 +1456,3 @@ *

* secondary location endpoint when read-access geo-redundant replication is enabled for the account.
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -1463,3 +1463,3 @@ getStatistics(options?: GetStatisticsOptions): Promise<GetStatisticsResponse>;

* (Cross-Origin Resource Sharing) rules.
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -1470,4 +1470,4 @@ getProperties(options?: GetPropertiesOptions): Promise<GetPropertiesResponse>;

* (Cross-Origin Resource Sharing) rules.
* @param properties The Table Service properties.
* @param options The options parameters.
* @param properties - The Table Service properties.
* @param options - The options parameters.
*/

@@ -1477,4 +1477,4 @@ setProperties(properties: ServiceProperties, options?: SetPropertiesOptions): Promise<SetPropertiesResponse>;

* Creates a new table under the given account.
* @param tableName The name of the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param options - The options parameters.
*/

@@ -1484,4 +1484,4 @@ createTable(tableName: string, options?: CreateTableOptions): Promise<CreateTableItemResponse>;

* Operation permanently deletes the specified table.
* @param tableName The name of the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param options - The options parameters.
*/

@@ -1491,3 +1491,3 @@ deleteTable(tableName: string, options?: DeleteTableOptions): Promise<DeleteTableResponse>;

* Queries tables under the given account.
* @param options The options parameters.
* @param options - The options parameters.
*/

@@ -1501,4 +1501,4 @@ listTables(options?: ListTableItemsOptions): PagedAsyncIterableIterator<TableResponseProperties, ListTableItemsResponse>;

* Shared Access Signatures.
* @param tableName The name of the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param options - The options parameters.
*/

@@ -1508,5 +1508,5 @@ getAccessPolicy(tableName: string, options?: GetAccessPolicyOptions): Promise<GetAccessPolicyResponse>;

* Sets stored access policies for the table that may be used with Shared Access Signatures.
* @param tableName The name of the table.
* @param acl The Access Control List for the table.
* @param options The options parameters.
* @param tableName - The name of the table.
* @param acl - The Access Control List for the table.
* @param options - The options parameters.
*/

@@ -1518,10 +1518,10 @@ setAccessPolicy(tableName: string, options?: SetAccessPolicyOptions): Promise<SetAccessPolicyResponse>;

*
* @param {string} connectionString Account connection string or a SAS connection string of an Azure storage account.
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
* Account connection string example -
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
* SAS connection string example -
* `BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
* @param {TableServiceClientOptions} [options] Options to configure the HTTP pipeline.
* @returns {TableServiceClient} A new TableServiceClient from the given connection string.
* @param connectionString - Account connection string or a SAS connection string of an Azure storage account.
* [ Note - Account connection string can only be used in NODE.JS runtime. ]
* Account connection string example -
* `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
* SAS connection string example -
* `BlobEndpoint=https://myaccount.table.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
* @param options - Options to configure the HTTP pipeline.
* @returns A new TableServiceClient from the given connection string.
*/

@@ -1575,5 +1575,2 @@ static fromConnectionString(connectionString: string, options?: TableServiceClientOptions): TableServiceClient;

* TablesSharedKeyCredential for account key authorization of Azure Tables service.
*
* @export
* @class TablesSharedKeyCredential
*/

@@ -1587,4 +1584,2 @@ export declare class TablesSharedKeyCredential implements TablesSharedKeyCredentialLike {

* Azure account key; readonly.
*
* @type {Buffer}
*/

@@ -1594,4 +1589,2 @@ private readonly accountKey;

* Creates an instance of TablesSharedKeyCredential.
* @param {string} accountName
* @param {string} accountKey
*/

@@ -1601,6 +1594,2 @@ constructor(accountName: string, accountKey: string);

* Creates a {@link TablesSharedKeyCredentialPolicy} object.
*
* @param {RequestPolicy} nextPolicy
* @param {RequestPolicyOptionsLike} options
* @returns {TablesSharedKeyCredentialPolicy}
*/

@@ -1610,5 +1599,2 @@ create(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike): TablesSharedKeyCredentialPolicy;

* Generates a hash signature for an HTTP request or for a SAS.
*
* @param {string} stringToSign
* @returns {string}
*/

@@ -1630,5 +1616,2 @@ computeHMACSHA256(stringToSign: string): string;

* Generates a hash signature for an HTTP request or for a SAS.
*
* @param {string} stringToSign
* @returns {string}
*/

@@ -1640,6 +1623,2 @@ computeHMACSHA256: (stringToSign: string) => string;

* TablesSharedKeyCredentialPolicy is a policy used to sign HTTP request with a shared key.
*
* @export
* @class TablesSharedKeyCredentialPolicy
* @extends {CredentialPolicy}
*/

@@ -1649,4 +1628,2 @@ export declare class TablesSharedKeyCredentialPolicy extends BaseRequestPolicy {

* Reference to {@link TablesSharedKeyCredential} which generates TablesSharedKeyCredentialPolicy
*
* @type {TablesSharedKeyCredential}
*/

@@ -1656,5 +1633,2 @@ private readonly credential;

* Creates an instance of TablesSharedKeyCredentialPolicy.
* @param {RequestPolicy} nextPolicy
* @param {RequestPolicyOptions} options
* @param {TablesSharedKeyCredential} factory
*/

@@ -1664,5 +1638,2 @@ constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, credential: TablesSharedKeyCredentialLike);

* Sends out request.
*
* @param {WebResource} request
* @returns {Promise<HttpOperationResponse>}
*/

@@ -1672,6 +1643,2 @@ sendRequest(request: WebResourceLike): Promise<HttpOperationResponse>;

* Signs request.
*
* @protected
* @param {WebResource} request
* @returns {WebResource}
*/

@@ -1678,0 +1645,0 @@ signRequest(request: WebResourceLike): WebResource;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc