diff --git a/lib/client.d.ts b/lib/client.d.ts index b35b994..c2df751 100644 --- a/lib/client.d.ts +++ b/lib/client.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as messages from "../generated/api_pb" import { DgraphClientStub } from "./clientStub" diff --git a/lib/client.js b/lib/client.js index 28e314d..afb01cd 100644 --- a/lib/client.js +++ b/lib/client.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + "use strict" var __awaiter = (this && this.__awaiter) || diff --git a/lib/clientStub.d.ts b/lib/clientStub.d.ts index e1beb03..d4bf5de 100644 --- a/lib/clientStub.d.ts +++ b/lib/clientStub.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as messages from "../generated/api_pb" export declare class DgraphClientStub { diff --git a/lib/clientStub.js b/lib/clientStub.js index d9ac5ea..bfaa87f 100644 --- a/lib/clientStub.js +++ b/lib/clientStub.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + "use strict" var __awaiter = (this && this.__awaiter) || diff --git a/lib/clientStubFromSlash.d.ts b/lib/clientStubFromSlash.d.ts index 5080c80..5564fce 100644 --- a/lib/clientStubFromSlash.d.ts +++ b/lib/clientStubFromSlash.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import { DgraphClientStub } from "./clientStub" export declare function clientStubFromSlashGraphQLEndpoint( graphqlEndpoint: string, diff --git a/lib/clientStubFromSlash.js b/lib/clientStubFromSlash.js index f396b8b..6bc7968 100644 --- a/lib/clientStubFromSlash.js +++ b/lib/clientStubFromSlash.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + "use strict" Object.defineProperty(exports, "__esModule", { value: true }) exports.clientStubFromSlashGraphQLEndpoint = clientStubFromSlashGraphQLEndpoint diff --git a/lib/dgraph.d.ts b/lib/dgraph.d.ts index 4a5f468..2fbccb0 100644 --- a/lib/dgraph.d.ts +++ b/lib/dgraph.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + export * from "./types" export { Operation, diff --git a/lib/dgraph.js b/lib/dgraph.js index 91e6d42..1e1003c 100644 --- a/lib/dgraph.js +++ b/lib/dgraph.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + "use strict" var __createBinding = (this && this.__createBinding) || diff --git a/lib/errors.d.ts b/lib/errors.d.ts index f4396f5..f4c64a0 100644 --- a/lib/errors.d.ts +++ b/lib/errors.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + export declare const ERR_NO_CLIENTS: Error export declare const ERR_FINISHED: Error export declare const ERR_ABORTED: Error diff --git a/lib/errors.js b/lib/errors.js index 9c0935c..c265f60 100644 --- a/lib/errors.js +++ b/lib/errors.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + "use strict" Object.defineProperty(exports, "__esModule", { value: true }) exports.ERR_REFRESH_JWT_EMPTY = diff --git a/lib/index.d.ts b/lib/index.d.ts index abcc0ff..f6d06bd 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "./dgraph" export * from "./dgraph" export default dgraph diff --git a/lib/index.js b/lib/index.js index 525bd5e..62c5ac1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + "use strict" var __createBinding = (this && this.__createBinding) || diff --git a/lib/txn.d.ts b/lib/txn.d.ts index ac45969..b1d7995 100644 --- a/lib/txn.d.ts +++ b/lib/txn.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as messages from "../generated/api_pb" import { DgraphClient } from "./client" diff --git a/lib/txn.js b/lib/txn.js index a2f72e8..8fa5fcd 100644 --- a/lib/txn.js +++ b/lib/txn.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + "use strict" var __assign = (this && this.__assign) || diff --git a/lib/types.d.ts b/lib/types.d.ts index 2c29294..5e26724 100644 --- a/lib/types.d.ts +++ b/lib/types.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as messages from "../generated/api_pb" export declare class Payload extends messages.Payload { getData(): string | Uint8Array diff --git a/lib/types.js b/lib/types.js index 5de7500..a5ace61 100644 --- a/lib/types.js +++ b/lib/types.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + "use strict" var __extends = (this && this.__extends) || diff --git a/lib/util.d.ts b/lib/util.d.ts index 21e7a63..e12eef2 100644 --- a/lib/util.d.ts +++ b/lib/util.d.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as jspb from "google-protobuf" export declare function errorCode(err: any): { valid: boolean diff --git a/lib/util.js b/lib/util.js index de37863..0877662 100644 --- a/lib/util.js +++ b/lib/util.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + "use strict" Object.defineProperty(exports, "__esModule", { value: true }) exports.isBase64 = void 0 diff --git a/protos/api.proto b/protos/api.proto index 04a54d5..eae63bb 100644 --- a/protos/api.proto +++ b/protos/api.proto @@ -1,17 +1,6 @@ /* - * Copyright (C) 2017 Dgraph Labs, Inc. and Contributors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 */ // Style guide for Protocol Buffer 3. diff --git a/src/client.ts b/src/client.ts index 47e49c8..e1889b1 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as messages from "../generated/api_pb" diff --git a/src/clientStub.ts b/src/clientStub.ts index 3617ee9..1f56a39 100644 --- a/src/clientStub.ts +++ b/src/clientStub.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as services from "../generated/api_grpc_pb" diff --git a/src/clientStubFromSlash.ts b/src/clientStubFromSlash.ts index 301b6ac..d33d4b7 100644 --- a/src/clientStubFromSlash.ts +++ b/src/clientStubFromSlash.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as Url from "url-parse" import { DgraphClientStub } from "./clientStub" diff --git a/src/dgraph.ts b/src/dgraph.ts index 8f25b7c..814cf8f 100644 --- a/src/dgraph.ts +++ b/src/dgraph.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + // Export all the required message types. export * from "./types" export { diff --git a/src/errors.ts b/src/errors.ts index 3619ac8..bf530f2 100644 --- a/src/errors.ts +++ b/src/errors.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + export const ERR_NO_CLIENTS = new Error("No clients provided in DgraphClient constructor") export const ERR_FINISHED = new Error("Transaction has already been committed or discarded") export const ERR_ABORTED = new Error("Transaction has been aborted. Please retry") diff --git a/src/index.ts b/src/index.ts index aba1422..1f33d7a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "./dgraph" export * from "./dgraph" diff --git a/src/txn.ts b/src/txn.ts index aa46d2f..54900bb 100644 --- a/src/txn.ts +++ b/src/txn.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as messages from "../generated/api_pb" diff --git a/src/types.ts b/src/types.ts index b99c607..8270674 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as jspb from "google-protobuf" import * as messages from "../generated/api_pb" diff --git a/src/util.ts b/src/util.ts index ed4c880..1f50cd1 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as jspb from "google-protobuf" diff --git a/tests/client.spec.ts b/tests/client.spec.ts index 054aa19..2a05b36 100644 --- a/tests/client.spec.ts +++ b/tests/client.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../src" import { createClient, createClientStub } from "./helper" diff --git a/tests/clientStub.spec.ts b/tests/clientStub.spec.ts index d65e924..1b00988 100644 --- a/tests/clientStub.spec.ts +++ b/tests/clientStub.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as dgraph from "../src" diff --git a/tests/helper.ts b/tests/helper.ts index 33e0183..68833b9 100644 --- a/tests/helper.ts +++ b/tests/helper.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" import * as dgraph from "../src" diff --git a/tests/integration/acctUpsert.spec.ts b/tests/integration/acctUpsert.spec.ts index 5969eb8..f79b239 100644 --- a/tests/integration/acctUpsert.spec.ts +++ b/tests/integration/acctUpsert.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import { setSchema, setup } from "../helper" diff --git a/tests/integration/acl.spec.ts b/tests/integration/acl.spec.ts index 2440516..fdad3b0 100644 --- a/tests/integration/acl.spec.ts +++ b/tests/integration/acl.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import { fail } from "assert" import { exec } from "child_process" import { promisify } from "util" diff --git a/tests/integration/bank.spec.ts b/tests/integration/bank.spec.ts index 4ed54f9..3107f6a 100644 --- a/tests/integration/bank.spec.ts +++ b/tests/integration/bank.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import * as crypto from "crypto" import { setSchema, setup, wait } from "../helper" diff --git a/tests/integration/bulkSetDelete.spec.ts b/tests/integration/bulkSetDelete.spec.ts index 78ee364..6cce247 100644 --- a/tests/integration/bulkSetDelete.spec.ts +++ b/tests/integration/bulkSetDelete.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import { setSchema, setup } from "../helper" diff --git a/tests/integration/conditionalUpsert.spec.ts b/tests/integration/conditionalUpsert.spec.ts index 7e65cb2..4123986 100644 --- a/tests/integration/conditionalUpsert.spec.ts +++ b/tests/integration/conditionalUpsert.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import { setSchema, setup, tryUpsert } from "../helper" diff --git a/tests/integration/conflict.spec.ts b/tests/integration/conflict.spec.ts index aeb009f..5e7f445 100644 --- a/tests/integration/conflict.spec.ts +++ b/tests/integration/conflict.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import { setup } from "../helper" diff --git a/tests/integration/delete.spec.ts b/tests/integration/delete.spec.ts index 3a7fee6..da37129 100644 --- a/tests/integration/delete.spec.ts +++ b/tests/integration/delete.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import { setSchema, setup } from "../helper" diff --git a/tests/integration/doRequest.spec.ts b/tests/integration/doRequest.spec.ts index 4699451..b14b2b4 100644 --- a/tests/integration/doRequest.spec.ts +++ b/tests/integration/doRequest.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import { setSchema, setup } from "../helper" diff --git a/tests/integration/mutate.spec.ts b/tests/integration/mutate.spec.ts index f0379c8..7d94671 100644 --- a/tests/integration/mutate.spec.ts +++ b/tests/integration/mutate.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import { setSchema, setup } from "../helper" diff --git a/tests/integration/typeSystem.spec.ts b/tests/integration/typeSystem.spec.ts index c5ec0c8..d0003cb 100644 --- a/tests/integration/typeSystem.spec.ts +++ b/tests/integration/typeSystem.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import { setSchema, setup } from "../helper" diff --git a/tests/integration/upsert.spec.ts b/tests/integration/upsert.spec.ts index 2c926d6..0e48622 100644 --- a/tests/integration/upsert.spec.ts +++ b/tests/integration/upsert.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../../src" import { setSchema, setup, tryUpsert } from "../helper" diff --git a/tests/txn.spec.ts b/tests/txn.spec.ts index e3d1cc7..09c5e38 100644 --- a/tests/txn.spec.ts +++ b/tests/txn.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../src" import { setSchema, setup } from "./helper" diff --git a/tests/types.spec.ts b/tests/types.spec.ts index 9557215..4eaef1c 100644 --- a/tests/types.spec.ts +++ b/tests/types.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as dgraph from "../src" import { b64ToStr, strToB64, strToU8, u8ToStr } from "../src/util" diff --git a/tests/util.spec.ts b/tests/util.spec.ts index a3a4956..b55f47c 100644 --- a/tests/util.spec.ts +++ b/tests/util.spec.ts @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: © Hypermode Inc. + * SPDX-License-Identifier: Apache-2.0 + */ + import * as grpc from "@grpc/grpc-js" // Non-exported functions.