@azure/storage-blob-changefeed 12.0.0-alpha.20240823.1 → 12.0.0-alpha.20240827.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.
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/AvroReaderFactory.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/AvroReaderFactory.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/BlobChangeFeedClient.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/BlobChangeFeedClient.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/ChangeFeed.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/ChangeFeed.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/ChangeFeedFactory.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/ChangeFeedFactory.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/Chunk.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/Chunk.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/ChunkFactory.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/ChunkFactory.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/LazyLoadingBlobStream.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/LazyLoadingBlobStream.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/LazyLoadingBlobStreamFactory.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/Segment.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/Segment.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/SegmentFactory.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/SegmentFactory.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/Shard.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/Shard.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/ShardFactory.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/ShardFactory.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/index.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/index.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/log.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/log.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/models/BlobChangeFeedEvent.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/models/BlobChangeFeedEvent.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/models/ChangeFeedCursor.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/models/ChangeFeedCursor.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/models/models.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/models/models.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/constants.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/constants.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/tracing.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/tracing.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/utils.browser.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/utils.browser.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/utils.common.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/utils.common.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/utils.node.js +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/utils.node.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroConstants.js +1 -1
- package/dist-esm/storage-internal-avro/src/AvroConstants.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroParser.js +1 -1
- package/dist-esm/storage-internal-avro/src/AvroParser.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadable.js +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadable.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadableFromBlob.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReadableFromStream.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReader.js +1 -1
- package/dist-esm/storage-internal-avro/src/AvroReader.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/index.browser.js +1 -1
- package/dist-esm/storage-internal-avro/src/index.browser.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/index.js +1 -1
- package/dist-esm/storage-internal-avro/src/index.js.map +1 -1
- package/dist-esm/storage-internal-avro/src/utils/utils.common.js +1 -1
- package/dist-esm/storage-internal-avro/src/utils/utils.common.js.map +1 -1
- package/package.json +2 -2
- package/types/latest/tsdoc-metadata.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var abortController = require('@azure/abort-controller');
|
|
|
9
9
|
var stream = require('stream');
|
|
10
10
|
|
|
11
11
|
// Copyright (c) Microsoft Corporation.
|
|
12
|
-
// Licensed under the MIT
|
|
12
|
+
// Licensed under the MIT License.
|
|
13
13
|
const SDK_VERSION = "12.0.0-preview.5";
|
|
14
14
|
const CHANGE_FEED_CONTAINER_NAME = "$blobchangefeed";
|
|
15
15
|
const CHANGE_FEED_META_SEGMENT_PATH = "meta/segments.json";
|
|
@@ -19,7 +19,7 @@ const CHANGE_FEED_MAX_PAGE_SIZE = 5000; // align with rest API list operations
|
|
|
19
19
|
const CHANGE_FEED_CHUNK_BLOCK_DOWNLOAD_SIZE = 16 * 1024 * 1024;
|
|
20
20
|
|
|
21
21
|
// Copyright (c) Microsoft Corporation.
|
|
22
|
-
// Licensed under the MIT
|
|
22
|
+
// Licensed under the MIT License.
|
|
23
23
|
/**
|
|
24
24
|
* Creates a span using the global tracer.
|
|
25
25
|
* @internal
|
|
@@ -31,7 +31,7 @@ const tracingClient = coreTracing.createTracingClient({
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
// Copyright (c) Microsoft Corporation.
|
|
34
|
-
// Licensed under the MIT
|
|
34
|
+
// Licensed under the MIT License.
|
|
35
35
|
const millisecondsInAnHour = 60 * 60 * 1000;
|
|
36
36
|
function ceilToNearestHour(date) {
|
|
37
37
|
if (date === undefined) {
|
|
@@ -225,7 +225,7 @@ function rawEventToBlobChangeFeedEvent(rawEvent) {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
// Copyright (c) Microsoft Corporation.
|
|
228
|
-
// Licensed under the MIT
|
|
228
|
+
// Licensed under the MIT License.
|
|
229
229
|
class ChangeFeed {
|
|
230
230
|
constructor(containerClient, segmentFactory, years, segments, currentSegment, lastConsumable, startTime, endTime) {
|
|
231
231
|
this.containerClient = containerClient;
|
|
@@ -316,14 +316,14 @@ class ChangeFeed {
|
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
// Copyright (c) Microsoft Corporation.
|
|
319
|
-
// Licensed under the MIT
|
|
319
|
+
// Licensed under the MIT License.
|
|
320
320
|
const AVRO_SYNC_MARKER_SIZE = 16;
|
|
321
321
|
const AVRO_INIT_BYTES = new Uint8Array([79, 98, 106, 1]);
|
|
322
322
|
const AVRO_CODEC_KEY = "avro.codec";
|
|
323
323
|
const AVRO_SCHEMA_KEY = "avro.schema";
|
|
324
324
|
|
|
325
325
|
// Copyright (c) Microsoft Corporation.
|
|
326
|
-
// Licensed under the MIT
|
|
326
|
+
// Licensed under the MIT License.
|
|
327
327
|
class AvroParser {
|
|
328
328
|
/**
|
|
329
329
|
* Reads a fixed number of bytes from the stream.
|
|
@@ -640,7 +640,7 @@ class AvroRecordType extends AvroType {
|
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
// Copyright (c) Microsoft Corporation.
|
|
643
|
-
// Licensed under the MIT
|
|
643
|
+
// Licensed under the MIT License.
|
|
644
644
|
function arraysEqual(a, b) {
|
|
645
645
|
if (a === b)
|
|
646
646
|
return true;
|
|
@@ -657,7 +657,7 @@ function arraysEqual(a, b) {
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
// Copyright (c) Microsoft Corporation.
|
|
660
|
-
// Licensed under the MIT
|
|
660
|
+
// Licensed under the MIT License.
|
|
661
661
|
class AvroReader {
|
|
662
662
|
get blockOffset() {
|
|
663
663
|
return this._blockOffset;
|
|
@@ -757,12 +757,12 @@ class AvroReader {
|
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
// Copyright (c) Microsoft Corporation.
|
|
760
|
-
// Licensed under the MIT
|
|
760
|
+
// Licensed under the MIT License.
|
|
761
761
|
class AvroReadable {
|
|
762
762
|
}
|
|
763
763
|
|
|
764
764
|
// Copyright (c) Microsoft Corporation.
|
|
765
|
-
// Licensed under the MIT
|
|
765
|
+
// Licensed under the MIT License.
|
|
766
766
|
const ABORT_ERROR = new abortController.AbortError("Reading from the avro stream was aborted.");
|
|
767
767
|
class AvroReadableFromStream extends AvroReadable {
|
|
768
768
|
toUint8Array(data) {
|
|
@@ -844,7 +844,7 @@ class AvroReadableFromStream extends AvroReadable {
|
|
|
844
844
|
}
|
|
845
845
|
|
|
846
846
|
// Copyright (c) Microsoft Corporation.
|
|
847
|
-
// Licensed under the MIT
|
|
847
|
+
// Licensed under the MIT License.
|
|
848
848
|
/**
|
|
849
849
|
* Read body from downloading operation methods to string.
|
|
850
850
|
* Works in both Node.js and browsers.
|
|
@@ -871,7 +871,7 @@ function streamToAvroReadable(readableStream) {
|
|
|
871
871
|
}
|
|
872
872
|
|
|
873
873
|
// Copyright (c) Microsoft Corporation.
|
|
874
|
-
// Licensed under the MIT
|
|
874
|
+
// Licensed under the MIT License.
|
|
875
875
|
class Segment {
|
|
876
876
|
get dateTime() {
|
|
877
877
|
return this._dateTime;
|
|
@@ -930,7 +930,7 @@ class Segment {
|
|
|
930
930
|
}
|
|
931
931
|
|
|
932
932
|
// Copyright (c) Microsoft Corporation.
|
|
933
|
-
// Licensed under the MIT
|
|
933
|
+
// Licensed under the MIT License.
|
|
934
934
|
class SegmentFactory {
|
|
935
935
|
constructor(shardFactory) {
|
|
936
936
|
this.shardFactory = shardFactory;
|
|
@@ -971,7 +971,7 @@ class SegmentFactory {
|
|
|
971
971
|
}
|
|
972
972
|
|
|
973
973
|
// Copyright (c) Microsoft Corporation.
|
|
974
|
-
// Licensed under the MIT
|
|
974
|
+
// Licensed under the MIT License.
|
|
975
975
|
class Shard {
|
|
976
976
|
constructor(containerClient, chunkFactory, chunks, currentChunk, shardPath) {
|
|
977
977
|
this.shardPath = shardPath;
|
|
@@ -1011,7 +1011,7 @@ class Shard {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
// Copyright (c) Microsoft Corporation.
|
|
1014
|
-
// Licensed under the MIT
|
|
1014
|
+
// Licensed under the MIT License.
|
|
1015
1015
|
class ShardFactory {
|
|
1016
1016
|
constructor(chunkFactory) {
|
|
1017
1017
|
this.chunkFactory = chunkFactory;
|
|
@@ -1076,7 +1076,7 @@ class ShardFactory {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
1078
|
// Copyright (c) Microsoft Corporation.
|
|
1079
|
-
// Licensed under the MIT
|
|
1079
|
+
// Licensed under the MIT License.
|
|
1080
1080
|
class Chunk {
|
|
1081
1081
|
get blockOffset() {
|
|
1082
1082
|
return this._blockOffset;
|
|
@@ -1115,7 +1115,7 @@ class Chunk {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
1117
|
// Copyright (c) Microsoft Corporation.
|
|
1118
|
-
// Licensed under the MIT
|
|
1118
|
+
// Licensed under the MIT License.
|
|
1119
1119
|
class ChunkFactory {
|
|
1120
1120
|
constructor(avroReaderFactory, lazyLoadingBlobStreamFactory, maxTransferSize) {
|
|
1121
1121
|
this.avroReaderFactory = avroReaderFactory;
|
|
@@ -1142,7 +1142,7 @@ class ChunkFactory {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
|
|
1144
1144
|
// Copyright (c) Microsoft Corporation.
|
|
1145
|
-
// Licensed under the MIT
|
|
1145
|
+
// Licensed under the MIT License.
|
|
1146
1146
|
/**
|
|
1147
1147
|
* Creates AvroReaders. Allows us to inject mock AvroReaders in the Chunk unit tests.
|
|
1148
1148
|
*/
|
|
@@ -1158,7 +1158,7 @@ class AvroReaderFactory {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
|
|
1160
1160
|
// Copyright (c) Microsoft Corporation.
|
|
1161
|
-
// Licensed under the MIT
|
|
1161
|
+
// Licensed under the MIT License.
|
|
1162
1162
|
/**
|
|
1163
1163
|
* This class generates a readable stream from a blobClient's data.
|
|
1164
1164
|
*/
|
|
@@ -1237,7 +1237,7 @@ class LazyLoadingBlobStream extends stream.Readable {
|
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
1239
|
// Copyright (c) Microsoft Corporation.
|
|
1240
|
-
// Licensed under the MIT
|
|
1240
|
+
// Licensed under the MIT License.
|
|
1241
1241
|
class LazyLoadingBlobStreamFactory {
|
|
1242
1242
|
create(blobClient, offset, blockSize, options) {
|
|
1243
1243
|
return new LazyLoadingBlobStream(blobClient, offset, blockSize, options);
|
|
@@ -1245,7 +1245,7 @@ class LazyLoadingBlobStreamFactory {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
|
|
1247
1247
|
// Copyright (c) Microsoft Corporation.
|
|
1248
|
-
// Licensed under the MIT
|
|
1248
|
+
// Licensed under the MIT License.
|
|
1249
1249
|
class ChangeFeedFactory {
|
|
1250
1250
|
constructor(segmentFactoryOrMaxTransferSize) {
|
|
1251
1251
|
let segmentFactory;
|
|
@@ -1352,7 +1352,7 @@ class ChangeFeedFactory {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
|
|
1354
1354
|
// Copyright (c) Microsoft Corporation.
|
|
1355
|
-
// Licensed under the MIT
|
|
1355
|
+
// Licensed under the MIT License.
|
|
1356
1356
|
/**
|
|
1357
1357
|
* Contains paged response data for the {@link BlobChangeFeedClient.listChanges} operation.
|
|
1358
1358
|
*/
|