azure-mock 2.20.0 → 2.22.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/LICENSE +201 -201
- package/dist/better-sqlite3-CtLaF97z-DWR9uC3b.js +129 -0
- package/dist/chunk-2X2C5D2I-dJHtPFe9-DxsO-1YF.js +4026 -0
- package/dist/d1-pK2J-_yx-BoQTXsTa.js +185 -0
- package/dist/dialect-pBb6Cg_F-xgpUtfmk.js +570 -0
- package/dist/dist-C481edUb-CHbOkeXH.js +10131 -0
- package/dist/dist-DUzzleZr-DxHmeYjp.js +2 -0
- package/dist/index.d.ts +21 -21
- package/dist/index.js +20396 -18921
- package/dist/libsql-Nq-S0r5x-d2dAzhgO.js +240 -0
- package/dist/logger-TIsK7375-CLNNa25D.js +652 -0
- package/dist/migrator-B9kYwLqO-4g9JX3_v.js +8 -0
- package/dist/migrator-BfTfJctM-DrNlb1BS.js +8 -0
- package/dist/migrator-BjoW0_3j-CD-XdZ5a.js +8 -0
- package/dist/migrator-CWWlo_Jk-C4Hw4PPN.js +8 -0
- package/dist/migrator-CpiXRkls-COYfhljd.js +24 -0
- package/dist/migrator-CtqJkLVI-D1lU6ZV0.js +8 -0
- package/dist/migrator-CxcBjmET-Dcd21VIf.js +8 -0
- package/dist/migrator-Cyhbhxo_-Bh7sF0R3.js +21 -0
- package/dist/migrator-DG1mWUoR-DVfkqn_v.js +31 -0
- package/dist/migrator-DrWmHwY2-YjAfotd7.js +8 -0
- package/dist/migrator-WAPonQxA-CRvJJhKG.js +8 -0
- package/dist/migrator-Zdh8WMMx-gsmNXspd.js +8 -0
- package/dist/migrator-xRJ6NOTS-SsAuB-Gi.js +24 -0
- package/dist/migrator-xbWwvFYF-BjyVdQS8.js +8 -0
- package/dist/mysql2-DkoPEsRu-BMwVSCmY.js +251 -0
- package/dist/neon-serverless-BEVFA7yv-DGSPAG1z.js +205 -0
- package/dist/node-postgres-DQA7bEhW-CkM_cVLD.js +216 -0
- package/dist/nodefs-Bc8b83o_-DetP9qUa.js +24 -0
- package/dist/opfs-ahp-DbstDvx--CHskKtzG.js +365 -0
- package/dist/pg-ylxXyvKj-Hm8vcZoi.js +279 -0
- package/dist/pglite-CPs4w-D9-DHOg0D8W.js +179 -0
- package/dist/pglite-DMWgTUE6-BOIRUWUT.js +2 -0
- package/dist/planetscale-serverless-DUMheN-f-Dyc_W6V_.js +172 -0
- package/dist/query-builder-CLJAKedv-DTZiP7B6.js +1715 -0
- package/dist/query-builder-CT3_liD0-hhg5kRTk.js +1347 -0
- package/dist/session-BOEirggu-DTmpyU_x.js +2485 -0
- package/dist/session-CAUQtT0A-BoVK2x7A.js +745 -0
- package/dist/session-Cjeygn2Z-BO0mi6pq.js +989 -0
- package/dist/singlestore-Cdlo23hW-BuFJ4Zqb.js +1647 -0
- package/dist/sql-CNZp2yLp-Bwugq384.js +611 -0
- package/dist/sqlite-proxy-BgUfVEbZ-CsSkc-_K.js +190 -0
- package/dist/src-LcyXhCXE-C_vKJiLK.js +1920 -0
- package/dist/vercel-postgres-BYmFKsTS-CpV2usun.js +203 -0
- package/package.json +7 -8
package/dist/index.d.ts
CHANGED
|
@@ -1764,7 +1764,7 @@ declare class MockBlobBatchClient implements BlobBatchClient {
|
|
|
1764
1764
|
getContainer(containerName: string): MapValue<typeof MockContainerDatabase>;
|
|
1765
1765
|
}
|
|
1766
1766
|
//#endregion
|
|
1767
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
1767
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-any.d.ts
|
|
1768
1768
|
/**
|
|
1769
1769
|
Returns a boolean for whether the given type is `any`.
|
|
1770
1770
|
|
|
@@ -1795,7 +1795,7 @@ const anyA = get(anyObject, 'a');
|
|
|
1795
1795
|
*/
|
|
1796
1796
|
type IsAny<T> = 0 extends 1 & NoInfer<T> ? true : false;
|
|
1797
1797
|
//#endregion
|
|
1798
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
1798
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-optional-key-of.d.ts
|
|
1799
1799
|
/**
|
|
1800
1800
|
Returns a boolean for whether the given key is an optional key of type.
|
|
1801
1801
|
|
|
@@ -1838,7 +1838,7 @@ type T5 = IsOptionalKeyOf<User | Admin, 'surname'>;
|
|
|
1838
1838
|
*/
|
|
1839
1839
|
type IsOptionalKeyOf<Type extends object, Key extends keyof Type> = IsAny<Type | Key> extends true ? never : Key extends keyof Type ? Type extends Record<Key, Type[Key]> ? false : true : false;
|
|
1840
1840
|
//#endregion
|
|
1841
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
1841
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/optional-keys-of.d.ts
|
|
1842
1842
|
/**
|
|
1843
1843
|
Extract all optional keys from the given type.
|
|
1844
1844
|
|
|
@@ -1876,7 +1876,7 @@ type OptionalKeysOf<Type extends object> = Type extends unknown // For distribut
|
|
|
1876
1876
|
? (keyof { [Key in keyof Type as IsOptionalKeyOf<Type, Key> extends false ? never : Key]: never }) & keyof Type // Intersect with `keyof Type` to ensure result of `OptionalKeysOf<Type>` is always assignable to `keyof Type`
|
|
1877
1877
|
: never;
|
|
1878
1878
|
//#endregion
|
|
1879
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
1879
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/required-keys-of.d.ts
|
|
1880
1880
|
/**
|
|
1881
1881
|
Extract all required keys from the given type.
|
|
1882
1882
|
|
|
@@ -1910,7 +1910,7 @@ const validator3 = createValidation<User>('luckyNumber', value => value > 0);
|
|
|
1910
1910
|
type RequiredKeysOf<Type extends object> = Type extends unknown // For distributing `Type`
|
|
1911
1911
|
? Exclude<keyof Type, OptionalKeysOf<Type>> : never;
|
|
1912
1912
|
//#endregion
|
|
1913
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
1913
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-never.d.ts
|
|
1914
1914
|
/**
|
|
1915
1915
|
Returns a boolean for whether the given type is `never`.
|
|
1916
1916
|
|
|
@@ -1966,7 +1966,7 @@ type B = IsTrueFixed<never>;
|
|
|
1966
1966
|
*/
|
|
1967
1967
|
type IsNever<T> = [T] extends [never] ? true : false;
|
|
1968
1968
|
//#endregion
|
|
1969
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
1969
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/if.d.ts
|
|
1970
1970
|
/**
|
|
1971
1971
|
An if-else-like type that resolves depending on whether the given `boolean` type is `true` or `false`.
|
|
1972
1972
|
|
|
@@ -2061,7 +2061,7 @@ type Works = IncludesWithoutIf<HundredZeroes, '1'>;
|
|
|
2061
2061
|
*/
|
|
2062
2062
|
type If<Type extends boolean, IfBranch, ElseBranch> = IsNever<Type> extends true ? ElseBranch : Type extends true ? IfBranch : ElseBranch;
|
|
2063
2063
|
//#endregion
|
|
2064
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2064
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/simplify.d.ts
|
|
2065
2065
|
/**
|
|
2066
2066
|
Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability.
|
|
2067
2067
|
|
|
@@ -2122,7 +2122,7 @@ fn(someInterface as Simplify<SomeInterface>); // Good: transform an `interface`
|
|
|
2122
2122
|
*/
|
|
2123
2123
|
type Simplify<T> = { [KeyType in keyof T]: T[KeyType] } & {};
|
|
2124
2124
|
//#endregion
|
|
2125
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2125
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/is-equal.d.ts
|
|
2126
2126
|
/**
|
|
2127
2127
|
Returns a boolean for whether the two given types are equal.
|
|
2128
2128
|
|
|
@@ -2153,7 +2153,7 @@ type IsEqual<A, B> = [A] extends [B] ? [B] extends [A] ? _IsEqual<A, B> : false
|
|
|
2153
2153
|
// This version fails the `equalWrappedTupleIntersectionToBeNeverAndNeverExpanded` test in `test-d/is-equal.ts`.
|
|
2154
2154
|
type _IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;
|
|
2155
2155
|
//#endregion
|
|
2156
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2156
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/omit-index-signature.d.ts
|
|
2157
2157
|
/**
|
|
2158
2158
|
Omit any index signatures from the given object type, leaving only explicitly defined properties.
|
|
2159
2159
|
|
|
@@ -2247,7 +2247,7 @@ type ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;
|
|
|
2247
2247
|
*/
|
|
2248
2248
|
type OmitIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? never : KeyType]: ObjectType[KeyType] };
|
|
2249
2249
|
//#endregion
|
|
2250
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2250
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/pick-index-signature.d.ts
|
|
2251
2251
|
/**
|
|
2252
2252
|
Pick only index signatures from the given object type, leaving out all explicitly defined properties.
|
|
2253
2253
|
|
|
@@ -2295,7 +2295,7 @@ type ExampleIndexSignature = PickIndexSignature<Example>;
|
|
|
2295
2295
|
*/
|
|
2296
2296
|
type PickIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} extends Record<KeyType, unknown> ? KeyType : never]: ObjectType[KeyType] };
|
|
2297
2297
|
//#endregion
|
|
2298
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2298
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/merge.d.ts
|
|
2299
2299
|
// Merges two objects without worrying about index signatures.
|
|
2300
2300
|
type SimpleMerge<Destination, Source> = Simplify<{ [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key] } & Source>;
|
|
2301
2301
|
/**
|
|
@@ -2367,7 +2367,7 @@ type Merge<Destination, Source> = Destination extends unknown // For distributin
|
|
|
2367
2367
|
// Should never happen
|
|
2368
2368
|
type _Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;
|
|
2369
2369
|
//#endregion
|
|
2370
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2370
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/internal/object.d.ts
|
|
2371
2371
|
/**
|
|
2372
2372
|
Merges user specified options with default options.
|
|
2373
2373
|
|
|
@@ -2422,7 +2422,7 @@ type Result = ApplyDefaultOptions<PathsOptions, DefaultPathsOptions, SpecifiedOp
|
|
|
2422
2422
|
*/
|
|
2423
2423
|
type ApplyDefaultOptions<Options extends object, Defaults extends Simplify<Omit<Required<Options>, RequiredKeysOf<Options>> & Partial<Record<RequiredKeysOf<Options>, never>>>, SpecifiedOptions extends Options> = If<IsAny<SpecifiedOptions>, Defaults, If<IsNever<SpecifiedOptions>, Defaults, Simplify<Merge<Defaults, { [Key in keyof SpecifiedOptions as Key extends OptionalKeysOf<Options> ? undefined extends SpecifiedOptions[Key] ? never : Key : Key]: SpecifiedOptions[Key] }> & Required<Options>>>>;
|
|
2424
2424
|
//#endregion
|
|
2425
|
-
//#region ../../node_modules/.pnpm/type-fest@5.
|
|
2425
|
+
//#region ../../node_modules/.pnpm/type-fest@5.6.0/node_modules/type-fest/source/except.d.ts
|
|
2426
2426
|
/**
|
|
2427
2427
|
Filter out keys from an object.
|
|
2428
2428
|
|
|
@@ -2639,7 +2639,7 @@ declare class MockEventGridPublisherClient implements Except<EventGridPublisherC
|
|
|
2639
2639
|
send(newEvents: EventGridEvent<unknown>[]): Promise<void>;
|
|
2640
2640
|
}
|
|
2641
2641
|
//#endregion
|
|
2642
|
-
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.
|
|
2642
|
+
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.4_4193bdcae5c913dcfcce33deed09fc31/node_modules/@azure/core-http-compat/dist/esm/policies/keepAliveOptions.d.ts
|
|
2643
2643
|
/**
|
|
2644
2644
|
* Keep Alive Options for how HTTP connections.
|
|
2645
2645
|
*/
|
|
@@ -2651,7 +2651,7 @@ interface KeepAliveOptions {
|
|
|
2651
2651
|
enable?: boolean;
|
|
2652
2652
|
}
|
|
2653
2653
|
//#endregion
|
|
2654
|
-
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.
|
|
2654
|
+
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.4_4193bdcae5c913dcfcce33deed09fc31/node_modules/@azure/core-http-compat/dist/esm/policies/redirectOptions.d.ts
|
|
2655
2655
|
/**
|
|
2656
2656
|
* Options for how redirect responses are handled.
|
|
2657
2657
|
*/
|
|
@@ -2667,7 +2667,7 @@ interface RedirectOptions {
|
|
|
2667
2667
|
maxRetries?: number;
|
|
2668
2668
|
}
|
|
2669
2669
|
//#endregion
|
|
2670
|
-
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.
|
|
2670
|
+
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.4_4193bdcae5c913dcfcce33deed09fc31/node_modules/@azure/core-http-compat/dist/esm/extendedClient.d.ts
|
|
2671
2671
|
/**
|
|
2672
2672
|
* Options specific to Shim Clients.
|
|
2673
2673
|
*/
|
|
@@ -2700,7 +2700,7 @@ declare class ExtendedServiceClient extends ServiceClient {
|
|
|
2700
2700
|
sendOperationRequest<T>(operationArguments: OperationArguments, operationSpec: OperationSpec): Promise<T>;
|
|
2701
2701
|
}
|
|
2702
2702
|
//#endregion
|
|
2703
|
-
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.
|
|
2703
|
+
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.4_4193bdcae5c913dcfcce33deed09fc31/node_modules/@azure/core-http-compat/dist/esm/util.d.ts
|
|
2704
2704
|
/**
|
|
2705
2705
|
* An individual header within a HttpHeaders collection.
|
|
2706
2706
|
*/
|
|
@@ -2922,7 +2922,7 @@ type TransferProgressEvent = {
|
|
|
2922
2922
|
loadedBytes: number;
|
|
2923
2923
|
};
|
|
2924
2924
|
//#endregion
|
|
2925
|
-
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.
|
|
2925
|
+
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.4_4193bdcae5c913dcfcce33deed09fc31/node_modules/@azure/core-http-compat/dist/esm/response.d.ts
|
|
2926
2926
|
/**
|
|
2927
2927
|
* Http Response that is compatible with the core-v1(core-http).
|
|
2928
2928
|
*/
|
|
@@ -2937,7 +2937,7 @@ interface CompatResponse extends Omit<FullOperationResponse, "request" | "header
|
|
|
2937
2937
|
headers: HttpHeadersLike;
|
|
2938
2938
|
}
|
|
2939
2939
|
//#endregion
|
|
2940
|
-
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.
|
|
2940
|
+
//#region ../../node_modules/.pnpm/@azure+core-http-compat@2.4_4193bdcae5c913dcfcce33deed09fc31/node_modules/@azure/core-http-compat/dist/esm/policies/requestPolicyFactoryPolicy.d.ts
|
|
2941
2941
|
/**
|
|
2942
2942
|
* A compatible interface for core-http request policies
|
|
2943
2943
|
*/
|
|
@@ -5126,7 +5126,7 @@ declare const isReadableStream: (value: unknown) => value is NodeJS.ReadableStre
|
|
|
5126
5126
|
declare const toWebResourceLike: (request: PipelineRequest) => WebResourceLike;
|
|
5127
5127
|
//#endregion
|
|
5128
5128
|
//#region src/services/table/applyTableFilter.d.ts
|
|
5129
|
-
declare const applyTableFilter: <T extends Record<string, unknown>>(entities: TableEntity<T>[], clauses: Clause[]) => TableEntity<T>[];
|
|
5129
|
+
declare const applyTableFilter: <T extends Record<string, unknown>>(entities: TableEntity<T>[], clauses: Clause<T>[]) => TableEntity<T>[];
|
|
5130
5130
|
//#endregion
|
|
5131
5131
|
//#region src/services/table/compare.d.ts
|
|
5132
5132
|
declare const compare: <T>(operator: BinaryOperator, leftHandSide: T, rightHandSide: null | T) => boolean;
|
|
@@ -5135,6 +5135,6 @@ declare const compare: <T>(operator: BinaryOperator, leftHandSide: T, rightHandS
|
|
|
5135
5135
|
declare const createTableFilterPredicate: <T extends Record<string, unknown>>(filter: string) => ((entity: TableEntity<T>) => boolean);
|
|
5136
5136
|
//#endregion
|
|
5137
5137
|
//#region src/services/table/isTableNullClause.d.ts
|
|
5138
|
-
declare const isTableNullClause: (clause: Clause) => boolean;
|
|
5138
|
+
declare const isTableNullClause: (clause: Clause<Record<string, unknown>>) => boolean;
|
|
5139
5139
|
//#endregion
|
|
5140
5140
|
export { BlobHierarchyItem, MockBlobBatchClient, MockBlobClient, MockBlockBlobClient, MockContainerClient, MockContainerDatabase, MockEventGridDatabase, MockEventGridPublisherClient, MockQueueClient, MockQueueDatabase, MockRestError, MockTableClient, MockTableDatabase, PageSettings, PagedAsyncIterableIterator, applyTableFilter, bodyToBuffer, compare, createTableFilterPredicate, getAzureErrorXml, getBlobItemXml, getBlobPrefixXml, getListBlobsXml, isReadableStream, isTableNullClause, toWebResourceLike };
|