azure-mock 2.9.0 → 2.10.0
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.d.ts +0 -3
- package/dist/index.js +12 -9
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -893,7 +893,6 @@ interface AbortSignalLike {
|
|
|
893
893
|
*/
|
|
894
894
|
removeEventListener(type: "abort", listener: (this: AbortSignalLike, ev: any) => any, options?: any): void;
|
|
895
895
|
}
|
|
896
|
-
//# sourceMappingURL=AbortSignalLike.d.ts.map
|
|
897
896
|
//#endregion
|
|
898
897
|
//#region ../../node_modules/.pnpm/@azure+abort-controller@2.1.2/node_modules/@azure/abort-controller/dist/esm/index.d.ts
|
|
899
898
|
declare global {
|
|
@@ -1284,7 +1283,6 @@ interface PxfObject {
|
|
|
1284
1283
|
*/
|
|
1285
1284
|
passphrase?: string | undefined;
|
|
1286
1285
|
}
|
|
1287
|
-
//# sourceMappingURL=interfaces.d.ts.map
|
|
1288
1286
|
//#endregion
|
|
1289
1287
|
//#region ../../node_modules/.pnpm/@azure+core-rest-pipeline@1.22.0/node_modules/@azure/core-rest-pipeline/dist/esm/index.d.ts
|
|
1290
1288
|
declare global {
|
|
@@ -1520,7 +1518,6 @@ type TransferProgressEvent = {
|
|
|
1520
1518
|
*/
|
|
1521
1519
|
loadedBytes: number;
|
|
1522
1520
|
};
|
|
1523
|
-
//# sourceMappingURL=util.d.ts.map
|
|
1524
1521
|
//#endregion
|
|
1525
1522
|
//#region src/util/toWebResourceLike.d.ts
|
|
1526
1523
|
declare const toWebResourceLike: (request: PipelineRequest) => WebResourceLike;
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ let Operation = /* @__PURE__ */ function(Operation$1) {
|
|
|
16
16
|
Operation$1["Delete"] = "Delete";
|
|
17
17
|
Operation$1["Push"] = "Push";
|
|
18
18
|
Operation$1["Read"] = "Read";
|
|
19
|
+
Operation$1["Unshift"] = "Unshift";
|
|
19
20
|
Operation$1["Update"] = "Update";
|
|
20
21
|
return Operation$1;
|
|
21
22
|
}({});
|
|
@@ -475,11 +476,13 @@ var MockRestError = class extends Error {
|
|
|
475
476
|
};
|
|
476
477
|
|
|
477
478
|
//#endregion
|
|
478
|
-
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.
|
|
479
|
+
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.28.0/node_modules/@azure/storage-blob/dist/browser/policies/RequestPolicy.js
|
|
479
480
|
/**
|
|
480
481
|
* The base class from which all request policies derive.
|
|
481
482
|
*/
|
|
482
483
|
var BaseRequestPolicy = class {
|
|
484
|
+
_nextPolicy;
|
|
485
|
+
_options;
|
|
483
486
|
/**
|
|
484
487
|
* The main method to implement that manipulates a request/response.
|
|
485
488
|
*/
|
|
@@ -507,7 +510,7 @@ var BaseRequestPolicy = class {
|
|
|
507
510
|
};
|
|
508
511
|
|
|
509
512
|
//#endregion
|
|
510
|
-
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.
|
|
513
|
+
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.28.0/node_modules/@azure/storage-blob/dist/browser/policies/CredentialPolicy.js
|
|
511
514
|
/**
|
|
512
515
|
* Credential policy used to sign HTTP(S) requests before sending. This is an
|
|
513
516
|
* abstract class.
|
|
@@ -533,7 +536,7 @@ var CredentialPolicy = class extends BaseRequestPolicy {
|
|
|
533
536
|
};
|
|
534
537
|
|
|
535
538
|
//#endregion
|
|
536
|
-
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.
|
|
539
|
+
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.28.0/node_modules/@azure/storage-blob/dist/browser/policies/AnonymousCredentialPolicy.js
|
|
537
540
|
/**
|
|
538
541
|
* AnonymousCredentialPolicy is used with HTTP(S) requests that read public resources
|
|
539
542
|
* or for use with Shared Access Signatures (SAS).
|
|
@@ -550,7 +553,7 @@ var AnonymousCredentialPolicy = class extends CredentialPolicy {
|
|
|
550
553
|
};
|
|
551
554
|
|
|
552
555
|
//#endregion
|
|
553
|
-
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.
|
|
556
|
+
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.28.0/node_modules/@azure/storage-blob/dist/browser/credentials/Credential.js
|
|
554
557
|
/**
|
|
555
558
|
* Credential is an abstract class for Azure Storage HTTP requests signing. This
|
|
556
559
|
* class will host an credentialPolicyCreator factory which generates CredentialPolicy.
|
|
@@ -568,7 +571,7 @@ var Credential = class {
|
|
|
568
571
|
};
|
|
569
572
|
|
|
570
573
|
//#endregion
|
|
571
|
-
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.
|
|
574
|
+
//#region ../../node_modules/.pnpm/@azure+storage-blob@12.28.0/node_modules/@azure/storage-blob/dist/browser/credentials/AnonymousCredential.js
|
|
572
575
|
/**
|
|
573
576
|
* AnonymousCredential provides a credentialPolicyCreator member used to create
|
|
574
577
|
* AnonymousCredentialPolicy objects. AnonymousCredentialPolicy is used with
|
|
@@ -1170,13 +1173,13 @@ var MockTableClient = class {
|
|
|
1170
1173
|
listEntities() {
|
|
1171
1174
|
const withMetadata = this.withMetadata.bind(this);
|
|
1172
1175
|
return {
|
|
1173
|
-
byPage: () => async function* (entities) {
|
|
1176
|
+
byPage: () => (async function* (entities) {
|
|
1174
1177
|
const allEntitiesWithMetadata = [...entities.values()].map(withMetadata);
|
|
1175
1178
|
if (allEntitiesWithMetadata.length > 0) yield await Promise.resolve(allEntitiesWithMetadata);
|
|
1176
|
-
}(this.table),
|
|
1177
|
-
next: () => async function* (entities) {
|
|
1179
|
+
})(this.table),
|
|
1180
|
+
next: () => (async function* (entities) {
|
|
1178
1181
|
for (const entity of entities.values()) yield await Promise.resolve(withMetadata(entity));
|
|
1179
|
-
}(this.table).next(),
|
|
1182
|
+
})(this.table).next(),
|
|
1180
1183
|
[Symbol.asyncIterator]() {
|
|
1181
1184
|
return this;
|
|
1182
1185
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azure-mock",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "A library that contains azure mock classes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"homepage": "https://github.com/Esposter/Esposter#readme",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@azure/core-http-compat": "^2.3.0",
|
|
33
33
|
"@azure/core-rest-pipeline": "^1.22.0",
|
|
34
34
|
"@azure/data-tables": "^13.3.1",
|
|
35
|
-
"@azure/storage-blob": "^12.
|
|
35
|
+
"@azure/storage-blob": "^12.28.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "ccf4ffe4c50cf43881b91045207eb5814ecf1cd3"
|
|
38
38
|
}
|