Skip to content
Merged
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
3 changes: 3 additions & 0 deletions sdk/cosmosdb/cosmos/src/utils/batch.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { JSONObject } from "../queryExecutionContext";
import { extractPartitionKey } from "../extractPartitionKey";
import { PartitionKeyDefinition } from "../documents";
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmosdb/cosmos/src/utils/hashing/encoding/number.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import JSBI from "jsbi";
import { BytePrefix } from "./prefix";

Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmosdb/cosmos/src/utils/hashing/encoding/prefix.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

export const BytePrefix = {
Undefined: "00",
Null: "01",
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmosdb/cosmos/src/utils/hashing/encoding/string.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { BytePrefix } from "./prefix";

export function writeStringForBinaryEncoding(payload: string) {
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmosdb/cosmos/src/utils/hashing/v1.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { doubleToByteArrayJSBI, writeNumberForBinaryEncodingJSBI } from "./encoding/number";
import { writeStringForBinaryEncoding } from "./encoding/string";
import { BytePrefix } from "./encoding/prefix";
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmosdb/cosmos/src/utils/hashing/v2.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { doubleToByteArrayJSBI } from "./encoding/number";
import { BytePrefix } from "./encoding/prefix";
import MurmurHash from "./murmurHash";
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmosdb/cosmos/src/utils/offers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { ContainerRequest } from "../client/Container/ContainerRequest";

export function validateOffer(body: ContainerRequest): void {
Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmosdb/cosmos/test/unit/hashing/v1.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import assert from "assert";
import { hashV1PartitionKey } from "../../../src/utils/hashing/v1";

Expand Down
3 changes: 3 additions & 0 deletions sdk/cosmosdb/cosmos/test/unit/hashing/v2.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import assert from "assert";
import { hashV2PartitionKey } from "../../../src/utils/hashing/v2";

Expand Down