Skip to content

Commit e748a31

Browse files
authored
[Cosmos] Add missing copyright text (Azure#9887)
1 parent 47c5b19 commit e748a31

File tree

19 files changed

+57
-1
lines changed

19 files changed

+57
-1
lines changed

sdk/cosmosdb/cosmos/src/client/Item/ItemDefinition.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
14
/**
25
* Items in Cosmos DB are simply JSON objects.
36
* Most of the Item operations allow for your to provide your own type

sdk/cosmosdb/cosmos/src/common/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
14
/**
25
* @ignore
36
*/

sdk/cosmosdb/cosmos/src/queryIterator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
/// <reference lib="esnext.asynciterable" />
21
// Copyright (c) Microsoft Corporation.
32
// Licensed under the MIT license.
3+
4+
/// <reference lib="esnext.asynciterable" />
5+
46
import { ClientContext } from "./ClientContext";
57
import { getPathFromLink, ResourceType, StatusCodes } from "./common";
68
import {

sdk/cosmosdb/cosmos/src/queryMetrics/timeSpan.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
14
// Ported this implementation to javascript:
25
// https://referencesource.microsoft.com/#mscorlib/system/timespan.cs,83e476c1ae112117
36
/** @hidden */

sdk/cosmosdb/cosmos/src/utils/atob.browser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
14
if ("function" !== typeof atob) {
25
throw new Error("Your browser environment is missing the global `atob` function");
36
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
14
export default function atob(str: string) {
25
return Buffer.from(str, "base64").toString("binary");
36
}

sdk/cosmosdb/cosmos/src/utils/digest.browser.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
14
import { encodeUTF8 } from "./encode";
25
import { globalCrypto } from "./globalCrypto";
36

sdk/cosmosdb/cosmos/src/utils/digest.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
14
import { createHash } from "crypto";
25

36
export async function digest(str: string) {

sdk/cosmosdb/cosmos/src/utils/encode.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
14
export function encodeUTF8(str: string): Uint8Array {
25
const bytes = new Uint8Array(str.length);
36
for (let i = 0; i < str.length; i++) {

sdk/cosmosdb/cosmos/src/utils/globalCrypto.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright (c) Microsoft Corporation.
2+
// Licensed under the MIT license.
3+
14
const globalRef: any = typeof self === "undefined" ? window : self;
25

36
if (!globalRef) {

0 commit comments

Comments
 (0)