From e3b366479268d93cefcc706cf1aed436058423b3 Mon Sep 17 00:00:00 2001 From: shivaji-dgraph Date: Fri, 4 Apr 2025 17:26:01 +0530 Subject: [PATCH 1/2] remove "type": "module" from package.json --- examples/simple/index.js | 3 +-- examples/simple/package.json | 1 - examples/tls/index.js | 3 +-- examples/tls/package.json | 1 - package-lock.json | 1 - package.json | 1 - 6 files changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/simple/index.js b/examples/simple/index.js index 320e2d1..9cadfcb 100644 --- a/examples/simple/index.js +++ b/examples/simple/index.js @@ -1,5 +1,4 @@ -import * as dgraph from "dgraph-js" - +const dgraph = require("dgraph-js") // Drop All - discard all data, schema and start from a clean slate. async function dropAll(dgraphClient) { const op = new dgraph.Operation() diff --git a/examples/simple/package.json b/examples/simple/package.json index 84162f2..473ed52 100644 --- a/examples/simple/package.json +++ b/examples/simple/package.json @@ -1,6 +1,5 @@ { "name": "simple", - "type": "module", "dependencies": { "dgraph-js": "^24.1.0", "@grpc/grpc-js": "1.8.22" diff --git a/examples/tls/index.js b/examples/tls/index.js index 28619ae..0b2e52a 100644 --- a/examples/tls/index.js +++ b/examples/tls/index.js @@ -1,7 +1,6 @@ const fs = require('fs'); const path = require('path'); - -import * as dgraph from "dgraph-js"; +const dgraph = require("dgraph-js") // Create a client stub. function newClientStub() { diff --git a/examples/tls/package.json b/examples/tls/package.json index 9b9091c..8c77085 100644 --- a/examples/tls/package.json +++ b/examples/tls/package.json @@ -1,6 +1,5 @@ { "name": "tls", - "type": "module", "dependencies": { "dgraph-js": "^24.0.0" }, diff --git a/package-lock.json b/package-lock.json index 3d9c7db..ecef68b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3,7 +3,6 @@ "version": "24.1.0", "lockfileVersion": 3, "requires": true, - "type":"module", "packages": { "": { "name": "dgraph-js", diff --git a/package.json b/package.json index 2f900e7..faa4d23 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "24.1.0", "description": "Official javascript client for Dgraph", "license": "Apache-2.0", - "type": "module", "repository": { "type": "git", "url": "https://github.com/hypermodeinc/dgraph-js.git" From 205a6be6f4bfa47b1464e07c979a58689e07ce05 Mon Sep 17 00:00:00 2001 From: Ryan Fox-Tyler <60440289+ryanfoxtyler@users.noreply.github.com> Date: Fri, 4 Apr 2025 08:12:23 -0400 Subject: [PATCH 2/2] remove eslint --- .trunk/trunk.yaml | 1 - package.json | 2 -- 2 files changed, 3 deletions(-) diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index e33fecd..bd01f6e 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -27,7 +27,6 @@ lint: - generated/** enabled: - trivy@0.59.1 - - eslint@9.19.0 - actionlint@1.7.7 - checkov@3.2.365 - git-diff-check diff --git a/package.json b/package.json index faa4d23..a10ca5a 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,6 @@ "@trunkio/launcher": "^1.3.2", "@types/google-protobuf": "^3.15.12", "@types/node": "^22.10.5", - "eslint": "^9.18.0", - "@eslint/js": "^9.18.0", "grpc-tools": "^1.12.4", "jest": "^29.7.0", "ts-jest": "^29.2.5",