@based/server
Advanced tools
Comparing version 2.6.2 to 2.7.0
@@ -9,2 +9,8 @@ import { Query, SetOptions, GetOptions, GenericObject, Copy, Configuration, TrackOpts } from '@based/client'; | ||
constructor(params: Params, noAuth?: boolean); | ||
opts: { | ||
cluster: string; | ||
org: string; | ||
project: string; | ||
env: string; | ||
}; | ||
get state(): GenericObject; | ||
@@ -11,0 +17,0 @@ get redis(): RedisSelvaClient; |
@@ -23,2 +23,8 @@ "use strict"; | ||
constructor(params, noAuth = false) { | ||
this.opts = { | ||
cluster: process.env.SERVICE_SELECTOR_LIST, | ||
org: process.env.ORG, | ||
project: process.env.PROJECT, | ||
env: process.env.ENV, | ||
}; | ||
this._authorize = async (type, payload, name) => { | ||
@@ -25,0 +31,0 @@ if (this._noAuth) { |
{ | ||
"name": "@based/server", | ||
"version": "2.6.2", | ||
"version": "2.7.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
332475
151
5290
5