New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@roadwork/dapr-js-sdk

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@roadwork/dapr-js-sdk - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

4

build/index.d.ts

@@ -0,1 +1,3 @@

/// <reference types="node" />
import http from 'http';
import express from 'express';

@@ -21,3 +23,3 @@ import DaprBinding from './lib/binding';

constructor(daprUrl: string, daprPort: number, daprAppPort?: number);
initialize(): Promise<void>;
initialize(): Promise<http.Server>;
}

@@ -69,5 +69,13 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var expressListener, expressListenerAddress;
var _this = this;
return __generator(this, function (_a) {
return [2 /*return*/, new Promise(function (resolve, reject) { return _this.express.listen(_this.daprAppPort, resolve); })];
switch (_a.label) {
case 0: return [4 /*yield*/, new Promise(function (resolve, reject) { return _this.express.listen(_this.daprAppPort, function () { return resolve; }); })];
case 1:
expressListener = (_a.sent());
expressListenerAddress = expressListener.address();
console.log("Listening on " + expressListenerAddress.port);
return [2 /*return*/, expressListener];
}
});

@@ -74,0 +82,0 @@ });

@@ -60,2 +60,3 @@ "use strict";

expressMethod = ((_a = options === null || options === void 0 ? void 0 : options.method) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || InvokerListenOptionsMethod_enum_1.InvokerListenOptionsMethod.GET;
console.log("Listening on " + expressMethod.toUpperCase() + " /" + methodName);
this.express[expressMethod]("/" + methodName, function (req, res) { return __awaiter(_this, void 0, void 0, function () {

@@ -62,0 +63,0 @@ return __generator(this, function (_a) {

{
"name": "@roadwork/dapr-js-sdk",
"version": "0.1.4",
"version": "0.1.5",
"description": "An unofficial Dapr (https://dapr.io) SDK for Node.js",

@@ -5,0 +5,0 @@ "main": "build/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc