Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@colearn/microservices-kit

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@colearn/microservices-kit - npm Package Compare versions

Comparing version 0.0.48 to 0.0.49

6

lib/client.d.ts

@@ -11,1 +11,7 @@ /// <reference types="node" />

}
export declare class ClientFactory<T> {
private Constructor;
private baseURL;
constructor(Constructor: new (baseURL: string, token?: string) => T, baseURL: string);
createClient(token: string): T;
}

12

lib/client.js

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.MicroserviceHttpClient = void 0;
exports.ClientFactory = exports.MicroserviceHttpClient = void 0;
const isomorphic_fetch_1 = __importDefault(require("isomorphic-fetch"));

@@ -33,2 +33,12 @@ class MicroserviceHttpClient {

exports.MicroserviceHttpClient = MicroserviceHttpClient;
class ClientFactory {
constructor(Constructor, baseURL) {
this.Constructor = Constructor;
this.baseURL = baseURL;
}
createClient(token) {
return new this.Constructor(this.baseURL, token);
}
}
exports.ClientFactory = ClientFactory;
//# sourceMappingURL=client.js.map

2

package.json
{
"name": "@colearn/microservices-kit",
"version": "0.0.48",
"version": "0.0.49",
"description": "colearn microservice kit",

@@ -5,0 +5,0 @@ "author": "Colearn",

Sorry, the diff of this file is not supported yet

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