From 4643f5e8cca9245625f389a73a45674d7838fa26 Mon Sep 17 00:00:00 2001 From: giscafer Date: Sun, 25 Feb 2024 22:44:01 +0800 Subject: [PATCH] chore: remove never use import code --- .../node_modules/@node-red/editor-api/lib/admin/settings.js | 1 - .../node_modules/@node-red/editor-api/lib/auth/strategies.js | 1 - packages/node_modules/@node-red/editor-api/lib/editor/index.js | 2 -- .../node_modules/@node-red/editor-api/lib/editor/library.js | 2 -- .../node_modules/@node-red/editor-api/lib/editor/locales.js | 3 --- .../node_modules/@node-red/editor-api/lib/editor/sshkeys.js | 1 - packages/node_modules/@node-red/editor-api/lib/editor/theme.js | 1 - packages/node_modules/@node-red/editor-api/lib/index.js | 3 --- 8 files changed, 14 deletions(-) diff --git a/packages/node_modules/@node-red/editor-api/lib/admin/settings.js b/packages/node_modules/@node-red/editor-api/lib/admin/settings.js index d72f9e094..425d42415 100644 --- a/packages/node_modules/@node-red/editor-api/lib/admin/settings.js +++ b/packages/node_modules/@node-red/editor-api/lib/admin/settings.js @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. **/ -var apiUtils = require("../util"); var runtimeAPI; var settings; var theme = require("../editor/theme"); diff --git a/packages/node_modules/@node-red/editor-api/lib/auth/strategies.js b/packages/node_modules/@node-red/editor-api/lib/auth/strategies.js index e18925c19..b071a9caf 100644 --- a/packages/node_modules/@node-red/editor-api/lib/auth/strategies.js +++ b/packages/node_modules/@node-red/editor-api/lib/auth/strategies.js @@ -18,7 +18,6 @@ var BearerStrategy = require('passport-http-bearer').Strategy; var ClientPasswordStrategy = require('passport-oauth2-client-password').Strategy; var passport = require("passport"); -var crypto = require("crypto"); var util = require("util"); var Tokens = require("./tokens"); diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/index.js b/packages/node_modules/@node-red/editor-api/lib/editor/index.js index 648daa09b..54cf17f12 100644 --- a/packages/node_modules/@node-red/editor-api/lib/editor/index.js +++ b/packages/node_modules/@node-red/editor-api/lib/editor/index.js @@ -14,11 +14,9 @@ * limitations under the License. **/ -var express = require("express"); var path = require('path'); var comms = require("./comms"); -var library = require("./library"); var info = require("./settings"); var auth = require("../auth"); diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/library.js b/packages/node_modules/@node-red/editor-api/lib/editor/library.js index cd564b3f8..7853227ea 100644 --- a/packages/node_modules/@node-red/editor-api/lib/editor/library.js +++ b/packages/node_modules/@node-red/editor-api/lib/editor/library.js @@ -15,8 +15,6 @@ **/ var apiUtils = require("../util"); -var fs = require('fs'); -var fspath = require('path'); var runtimeAPI; diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/locales.js b/packages/node_modules/@node-red/editor-api/lib/editor/locales.js index 568f5837b..6109d8741 100644 --- a/packages/node_modules/@node-red/editor-api/lib/editor/locales.js +++ b/packages/node_modules/@node-red/editor-api/lib/editor/locales.js @@ -13,9 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. **/ -var fs = require('fs'); -var path = require('path'); -// var apiUtil = require('../util'); var i18n = require("@node-red/util").i18n; // TODO: separate module diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/sshkeys.js b/packages/node_modules/@node-red/editor-api/lib/editor/sshkeys.js index 08097571f..885967b91 100644 --- a/packages/node_modules/@node-red/editor-api/lib/editor/sshkeys.js +++ b/packages/node_modules/@node-red/editor-api/lib/editor/sshkeys.js @@ -15,7 +15,6 @@ **/ var apiUtils = require("../util"); -var express = require("express"); var runtimeAPI; var settings; diff --git a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js index e5c3904c7..c3808a751 100644 --- a/packages/node_modules/@node-red/editor-api/lib/editor/theme.js +++ b/packages/node_modules/@node-red/editor-api/lib/editor/theme.js @@ -14,7 +14,6 @@ * limitations under the License. **/ -var express = require("express"); var util = require("util"); var path = require("path"); var fs = require("fs"); diff --git a/packages/node_modules/@node-red/editor-api/lib/index.js b/packages/node_modules/@node-red/editor-api/lib/index.js index d9f34eafd..9264550b3 100644 --- a/packages/node_modules/@node-red/editor-api/lib/index.js +++ b/packages/node_modules/@node-red/editor-api/lib/index.js @@ -24,11 +24,8 @@ * @namespace @node-red/editor-api */ -var express = require("express"); var bodyParser = require("body-parser"); -var util = require('util'); var passport = require('passport'); -var cors = require('cors'); var auth = require("./auth"); var apiUtil = require("./util");