Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,868 changes: 1,448 additions & 420 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"@types/xml2js": "^0.4.3",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@vscode/vsce": "^2.32.0",
"autorest": "^3.6.0",
"azure-storage": "^2.10.3",
"cross-env": "^7.0.3",
Expand All @@ -86,8 +87,7 @@
"rcedit": "^4.0.0",
"ts-mockito": "^2.6.1",
"ts-node": "^10.0.0",
"typescript": "^5.0.3",
"vsce": "^2.7.0"
"typescript": "^5.0.3"
},
"activationEvents": [
"onStartupFinished"
Expand Down Expand Up @@ -350,4 +350,4 @@
"url": "https://github.com/azure/azurite/issues"
},
"homepage": "https://github.com/azure/azurite#readme"
}
}
2 changes: 1 addition & 1 deletion src/blob/lease/LeaseAvailableState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import uuid = require("uuid");
import uuid from "uuid";

import StorageErrorFactory from "../errors/StorageErrorFactory";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/blob/lease/LeaseBrokenState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import uuid = require("uuid");
import uuid from "uuid";

import StorageErrorFactory from "../errors/StorageErrorFactory";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/blob/lease/LeaseExpiredState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import uuid = require("uuid");
import uuid from "uuid";

import StorageErrorFactory from "../errors/StorageErrorFactory";
import {
Expand Down
2 changes: 1 addition & 1 deletion src/blob/lease/LeaseLeasedState.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import uuid = require("uuid");
import uuid from "uuid";

import { minDate } from "../../common/utils/utils";
import StorageErrorFactory from "../errors/StorageErrorFactory";
Expand Down
6 changes: 3 additions & 3 deletions src/common/persistence/FSExtentStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import {
stat,
unlink
} from "fs";
import multistream = require("multistream");
import multistream from "multistream";
import { join } from "path";
import { Writable } from "stream";
import { promisify } from "util";
import uuid = require("uuid");
import uuid from "uuid";

import { ZERO_EXTENT_ID } from "../../blob/persistence/IBlobMetadataStore";
import ILogger from "../ILogger";
Expand Down Expand Up @@ -561,7 +561,7 @@ export default class FSExtentStore implements IExtentStore {
)}, after ${count} bytes piped. Reject streamPipe().`,
contextId
);

reject(err);
});

Expand Down
6 changes: 3 additions & 3 deletions src/common/persistence/MemoryExtentStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import ILogger from "../ILogger";
import ZeroBytesStream from "../ZeroBytesStream";
import IExtentMetadataStore, { IExtentModel } from "./IExtentMetadataStore";
import IExtentStore, { IExtentChunk } from "./IExtentStore";
import uuid = require("uuid");
import multistream = require("multistream");
import uuid from "uuid";
import multistream from "multistream";
import { Readable } from "stream";
import { totalmem } from "os";

Expand Down Expand Up @@ -392,4 +392,4 @@ export default class MemoryExtentStore implements IExtentStore {
getMetadataStore(): IExtentMetadataStore {
return this.metadataStore;
}
}
}
2 changes: 1 addition & 1 deletion src/common/persistence/OperationQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { EventEmitter } from "events";
import ILogger from "../ILogger";
import IOperationQueue from "./IOperationQueue";

import uuid = require("uuid");
import uuid from "uuid";
interface IOperation {
id: string;
op: () => Promise<any>;
Expand Down
2 changes: 1 addition & 1 deletion src/common/utils/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createHash, createHmac } from "crypto";
import rimraf = require("rimraf");
import rimraf from "rimraf";
import { parse } from "url";
import { promisify } from "util";
import StorageErrorFactory from "../../blob/errors/StorageErrorFactory";
Expand Down
4 changes: 2 additions & 2 deletions src/queue/QueueRequestListenerFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import PreflightMiddlewareFactory from "./middlewares/PreflightMiddlewareFactory
import { IQueueMetadataStore } from "./persistence/IQueueMetadataStore";
import { DEFAULT_QUEUE_CONTEXT_PATH } from "./utils/constants";

import morgan = require("morgan");
import morgan from "morgan";
import { OAuthLevel } from "../common/models";
import IAuthenticator from "./authentication/IAuthenticator";
import createQueueStorageContextMiddleware from "./middlewares/queueStorageContext.middleware";
Expand Down Expand Up @@ -58,7 +58,7 @@ export default class QueueRequestListenerFactory
logger,
DEFAULT_QUEUE_CONTEXT_PATH
);

// Send Telemetry data
const telemetryMiddlewareFactory = new TelemetryMiddlewareFactory(
DEFAULT_QUEUE_CONTEXT_PATH);
Expand Down
4 changes: 2 additions & 2 deletions src/table/TableRequestListenerFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import ITableMetadataStore from "./persistence/ITableMetadataStore";
import { DEFAULT_TABLE_CONTEXT_PATH } from "./utils/constants";
import PreflightMiddlewareFactory from "./middleware/PreflightMiddlewareFactory";

import morgan = require("morgan");
import morgan from "morgan";
import { OAuthLevel } from "../common/models";
import TableSharedKeyAuthenticator from "./authentication/TableSharedKeyAuthenticator";
import TableSharedKeyLiteAuthenticator from "./authentication/TableSharedKeyLiteAuthenticator";
Expand Down Expand Up @@ -88,7 +88,7 @@ export default class TableRequestListenerFactory
logger,
DEFAULT_TABLE_CONTEXT_PATH
);

// Send Telemetry data
const telemetryMiddlewareFactory = new TelemetryMiddlewareFactory(
DEFAULT_TABLE_CONTEXT_PATH);
Expand Down
14 changes: 7 additions & 7 deletions tests/blob/apis/blob.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ describe("BlobAPIs", () => {
await sourceBlobClient.upload("hello", 5);
await sourceBlobClient.setAccessTier("Archive");

// Copy from Archive blob without accesstier will fail
// Copy from Archive blob without accesstier will fail
let hasError = false;
try {
await destBlobClient.beginCopyFromURL(sourceBlobClient.url);
Expand Down Expand Up @@ -1758,7 +1758,7 @@ describe("BlobAPIs", () => {
result = await destBlobClient.getTags();
assert.deepStrictEqual(result.tags, tags);

// with x-ms-copy-source-tag-option as COPY, and copy request has tags, will report error
// with x-ms-copy-source-tag-option as COPY, and copy request has tags, will report error
let statusCode
try {
await destBlobClient.syncCopyFromURL(sourceBlobClient.url, {
Expand Down Expand Up @@ -1901,7 +1901,7 @@ describe("BlobAPIs", () => {
let blobProperties = await blockBlobClient1.getProperties();
assert.deepStrictEqual(blobProperties._response.parsedHeaders.tagCount, 2);

// download blob, can get tag count
// download blob, can get tag count
const downloadResult = await blockBlobClient1.download(0);
assert.deepStrictEqual(downloadResult._response.parsedHeaders.tagCount, 2);

Expand Down Expand Up @@ -1933,7 +1933,7 @@ describe("BlobAPIs", () => {
});
assert.deepStrictEqual(blobs!.length - 2, blobNotChecked);

// listBlobsFlat with include tags can get tag
// listBlobsFlat with include tags can get tag
listResult = (
await containerClient
.listBlobsFlat({ includeTags: true })
Expand Down Expand Up @@ -1978,7 +1978,7 @@ describe("BlobAPIs", () => {
});
assert.deepStrictEqual(blobs!.length - 2, blobNotChecked);

// listBlobsByHierarchy include tags can get tag
// listBlobsByHierarchy include tags can get tag
listResult = (
await containerClient
.listBlobsByHierarchy(delimiter, { includeTags: true })
Expand Down Expand Up @@ -2053,7 +2053,7 @@ describe("BlobAPIs", () => {
outputTags = (await appendBlobClient1.getTags()).tags;
assert.deepStrictEqual(outputTags, tags);

// download blob, can get tag count
// download blob, can get tag count
let downloadResult = await blockBlobClient1.download(0);
assert.deepStrictEqual(downloadResult._response.parsedHeaders.tagCount, 2);
downloadResult = await pageBlobClient1.download(0);
Expand All @@ -2078,7 +2078,7 @@ describe("BlobAPIs", () => {
outputTags = (await appendBlobClient2.getTags()).tags;
assert.deepStrictEqual(outputTags, tags2);

// listBlobsFlat with include tags can get tag
// listBlobsFlat with include tags can get tag
let listResult = (
await containerClient
.listBlobsFlat({ includeTags: true })
Expand Down
14 changes: 7 additions & 7 deletions tests/blob/apis/container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,7 @@ describe("ContainerAPIs", () => {
).toString();

// list with include as empty string
// create service client
// create service client
let pipeline = newPipeline(
new AnonymousCredential(),
{
Expand All @@ -1092,7 +1092,7 @@ describe("ContainerAPIs", () => {
assert.ok(result);

// list with include as deleted
// create service client
// create service client
pipeline = newPipeline(
new AnonymousCredential(),
{
Expand Down Expand Up @@ -1151,7 +1151,7 @@ describe("ContainerAPIs", () => {
).toString();

// list with empty include
// create container client for
// create container client for
let pipeline = newPipeline(
new AnonymousCredential(),
{
Expand Down Expand Up @@ -1180,7 +1180,7 @@ describe("ContainerAPIs", () => {
assert.equal(result.segment.blobItems.length, 3);

// list with include as upcase Snapshot
// create container client for
// create container client for
pipeline = newPipeline(
new AnonymousCredential(),
{
Expand Down Expand Up @@ -1209,7 +1209,7 @@ describe("ContainerAPIs", () => {
assert.equal(result.segment.blobItems.length, 4);

// list with multiple include
// create container client for
// create container client for
pipeline = newPipeline(
new AnonymousCredential(),
{
Expand Down Expand Up @@ -1631,7 +1631,7 @@ describe("ContainerAPIs", () => {
}

// list with prefix has "+" instead of "%20" for space
// create service client
// create service client
let pipeline = newPipeline(
new StorageSharedKeyCredential(
EMULATOR_ACCOUNT_NAME,
Expand Down Expand Up @@ -1663,7 +1663,7 @@ describe("ContainerAPIs", () => {
assert.ok(containerClient.url.indexOf(result.containerName));
assert.equal(result.segment.blobItems.length, 2);

// verify list out blob names
// verify list out blob names
const gotNames: Array<string> = [];
for (const item of result.segment.blobItems) {
gotNames.push(item.name);
Expand Down
Loading