@dapr/dapr-dev
Advanced tools
Comparing version 3.2.0-20231026074626-0fb83c1 to 3.2.0-20231106162154-66d4bd0
{ | ||
"name": "@dapr/dapr-dev", | ||
"version": "3.2.0-20231026074626-0fb83c1", | ||
"version": "3.2.0-20231106162154-66d4bd0", | ||
"description": "The official Dapr (https://dapr.io) SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "types": "./build/index.d.ts", |
@@ -236,3 +236,3 @@ "use strict"; | ||
function getClientOptions(clientOptions, defaultCommunicationProtocol, defaultLoggerOptions) { | ||
var _a, _b, _c, _d; | ||
var _a, _b, _c, _d, _e; | ||
const clientCommunicationProtocol = (_a = clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.communicationProtocol) !== null && _a !== void 0 ? _a : defaultCommunicationProtocol; | ||
@@ -265,3 +265,3 @@ // We decide the host/port/endpoint here | ||
actor: clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.actor, | ||
daprApiToken: clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.daprApiToken, | ||
daprApiToken: (_e = clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.daprApiToken) !== null && _e !== void 0 ? _e : Settings_util_1.Settings.getDefaultApiToken(), | ||
maxBodySizeMb: clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.maxBodySizeMb, | ||
@@ -268,0 +268,0 @@ }; |
import CommunicationProtocolEnum from "../enum/CommunicationProtocol.enum"; | ||
export declare class Settings { | ||
private static readonly defaultAppId; | ||
private static readonly defaultApiToken; | ||
private static readonly defaultHost; | ||
@@ -23,2 +24,3 @@ private static readonly defaultHttpAppPort; | ||
static getAppId(): string; | ||
static getDefaultApiToken(): string | undefined; | ||
static getDefaultHost(): string; | ||
@@ -25,0 +27,0 @@ static getDefaultHttpPort(): string; |
@@ -37,2 +37,5 @@ "use strict"; | ||
} | ||
static getDefaultApiToken() { | ||
return process.env.DAPR_API_TOKEN || Settings.defaultApiToken; | ||
} | ||
static getDefaultHost() { | ||
@@ -101,2 +104,3 @@ return Settings.defaultHost; | ||
Settings.defaultAppId = "my-dapr-app"; | ||
Settings.defaultApiToken = undefined; | ||
Settings.defaultHost = "127.0.0.1"; | ||
@@ -103,0 +107,0 @@ Settings.defaultHttpAppPort = "3000"; |
@@ -1,2 +0,2 @@ | ||
export declare const SDK_VERSION = "3.2.0-20231026074626-0fb83c1"; | ||
export declare const SDK_VERSION = "3.2.0-20231106162154-66d4bd0"; | ||
export declare const SDK_PACKAGE_NAME = "@dapr/dapr-dev"; |
@@ -18,3 +18,3 @@ "use strict"; | ||
// It is not checked in to the git repository. | ||
exports.SDK_VERSION = "3.2.0-20231026074626-0fb83c1"; | ||
exports.SDK_VERSION = "3.2.0-20231106162154-66d4bd0"; | ||
exports.SDK_PACKAGE_NAME = "@dapr/dapr-dev"; |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
2230309
48584
10