Skip to content

Commit

Permalink
[Cosmos] Adding missing copyright headers (#11449)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a authored Sep 24, 2020
1 parent 8c09de7 commit 7379a1a
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 0 deletions.
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

0 comments on commit 7379a1a

Please sign in to comment.