Skip to content

Commit d573027

Browse files
authored
chore: normalize copyrights (#257)
**Description** Normalize copyrights across repo. **Checklist** - [X] Code compiles correctly and linting passes locally
1 parent 3a12f62 commit d573027

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+222
-13
lines changed

lib/client.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27
import * as messages from "../generated/api_pb"
38
import { DgraphClientStub } from "./clientStub"

lib/client.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
"use strict"
27
var __awaiter =
38
(this && this.__awaiter) ||

lib/clientStub.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27
import * as messages from "../generated/api_pb"
38
export declare class DgraphClientStub {

lib/clientStub.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
"use strict"
27
var __awaiter =
38
(this && this.__awaiter) ||

lib/clientStubFromSlash.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import { DgraphClientStub } from "./clientStub"
27
export declare function clientStubFromSlashGraphQLEndpoint(
38
graphqlEndpoint: string,

lib/clientStubFromSlash.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
"use strict"
27
Object.defineProperty(exports, "__esModule", { value: true })
38
exports.clientStubFromSlashGraphQLEndpoint = clientStubFromSlashGraphQLEndpoint

lib/dgraph.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
export * from "./types"
27
export {
38
Operation,

lib/dgraph.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
"use strict"
27
var __createBinding =
38
(this && this.__createBinding) ||

lib/errors.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
export declare const ERR_NO_CLIENTS: Error
27
export declare const ERR_FINISHED: Error
38
export declare const ERR_ABORTED: Error

lib/errors.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
"use strict"
27
Object.defineProperty(exports, "__esModule", { value: true })
38
exports.ERR_REFRESH_JWT_EMPTY =

lib/index.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "./dgraph"
27
export * from "./dgraph"
38
export default dgraph

lib/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
"use strict"
27
var __createBinding =
38
(this && this.__createBinding) ||

lib/txn.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27
import * as messages from "../generated/api_pb"
38
import { DgraphClient } from "./client"

lib/txn.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
"use strict"
27
var __assign =
38
(this && this.__assign) ||

lib/types.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as messages from "../generated/api_pb"
27
export declare class Payload extends messages.Payload {
38
getData(): string | Uint8Array

lib/types.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
"use strict"
27
var __extends =
38
(this && this.__extends) ||

lib/util.d.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as jspb from "google-protobuf"
27
export declare function errorCode(err: any): {
38
valid: boolean

lib/util.js

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
"use strict"
27
Object.defineProperty(exports, "__esModule", { value: true })
38
exports.isBase64 = void 0

protos/api.proto

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
/*
2-
* Copyright (C) 2017 Dgraph Labs, Inc. and Contributors
3-
*
4-
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
6-
* You may obtain a copy of the License at
7-
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
10-
* Unless required by applicable law or agreed to in writing, software
11-
* distributed under the License is distributed on an "AS IS" BASIS,
12-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
* See the License for the specific language governing permissions and
14-
* limitations under the License.
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
154
*/
165

176
// Style guide for Protocol Buffer 3.

src/client.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27

38
import * as messages from "../generated/api_pb"

src/clientStub.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27

38
import * as services from "../generated/api_grpc_pb"

src/clientStubFromSlash.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27
import * as Url from "url-parse"
38
import { DgraphClientStub } from "./clientStub"

src/dgraph.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
// Export all the required message types.
27
export * from "./types"
38
export {

src/errors.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
export const ERR_NO_CLIENTS = new Error("No clients provided in DgraphClient constructor")
27
export const ERR_FINISHED = new Error("Transaction has already been committed or discarded")
38
export const ERR_ABORTED = new Error("Transaction has been aborted. Please retry")

src/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "./dgraph"
27

38
export * from "./dgraph"

src/txn.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27

38
import * as messages from "../generated/api_pb"

src/types.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as jspb from "google-protobuf"
27

38
import * as messages from "../generated/api_pb"

src/util.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27
import * as jspb from "google-protobuf"
38

tests/client.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../src"
27

38
import { createClient, createClientStub } from "./helper"

tests/clientStub.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27

38
import * as dgraph from "../src"

tests/helper.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as grpc from "@grpc/grpc-js"
27

38
import * as dgraph from "../src"

tests/integration/acctUpsert.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27

38
import { setSchema, setup } from "../helper"

tests/integration/acl.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import { fail } from "assert"
27
import { exec } from "child_process"
38
import { promisify } from "util"

tests/integration/bank.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27
import * as crypto from "crypto"
38
import { setSchema, setup, wait } from "../helper"

tests/integration/bulkSetDelete.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27

38
import { setSchema, setup } from "../helper"

tests/integration/conditionalUpsert.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27

38
import { setSchema, setup, tryUpsert } from "../helper"

tests/integration/conflict.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27

38
import { setup } from "../helper"

tests/integration/delete.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27

38
import { setSchema, setup } from "../helper"

tests/integration/doRequest.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27

38
import { setSchema, setup } from "../helper"

tests/integration/mutate.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27

38
import { setSchema, setup } from "../helper"

tests/integration/typeSystem.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27

38
import { setSchema, setup } from "../helper"

tests/integration/upsert.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../../src"
27

38
import { setSchema, setup, tryUpsert } from "../helper"

tests/txn.spec.ts

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-FileCopyrightText: © Hypermode Inc. <[email protected]>
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
16
import * as dgraph from "../src"
27

38
import { setSchema, setup } from "./helper"

0 commit comments

Comments
 (0)