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

@equinor/fusion-framework-module-service-discovery

Package Overview
Dependencies
Maintainers
3
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-framework-module-service-discovery - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

4

CHANGELOG.md

@@ -6,2 +6,6 @@ # Change Log

## 3.1.2 (2022-11-18)
**Note:** Version bump only for package @equinor/fusion-framework-module-service-discovery
## 3.1.1 (2022-11-14)

@@ -8,0 +12,0 @@

16

dist/esm/client.js

@@ -10,2 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {

@@ -17,7 +22,2 @@ if (kind === "m") throw new TypeError("Private method is not writable");

};
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};
var _ServiceDiscoveryClient_query;

@@ -28,2 +28,5 @@ import { Query } from '@equinor/fusion-observable/query';

export class ServiceDiscoveryClient {
get environment() {
return firstValueFrom(Query.extractQueryValue(__classPrivateFieldGet(this, _ServiceDiscoveryClient_query, "f").query(undefined, { cache: { suppressInvalid: true } })));
}
constructor({ http, endpoint }) {

@@ -43,5 +46,2 @@ _ServiceDiscoveryClient_query.set(this, void 0);

}
get environment() {
return firstValueFrom(Query.extractQueryValue(__classPrivateFieldGet(this, _ServiceDiscoveryClient_query, "f").query(undefined, { cache: { suppressInvalid: true } })));
}
selector(response) {

@@ -48,0 +48,0 @@ return __awaiter(this, void 0, void 0, function* () {

@@ -10,3 +10,3 @@ import { IHttpClient } from '@equinor/fusion-framework-module-http';

}
declare type ServiceDiscoveryClientCtorArgs = {
type ServiceDiscoveryClientCtorArgs = {
http: IHttpClient;

@@ -13,0 +13,0 @@ endpoint: string;

@@ -6,3 +6,3 @@ import { IServiceDiscoveryConfigurator } from './configurator';

import { moduleName } from './constants';
export declare type ServiceDiscoveryModule = Module<typeof moduleName, IServiceDiscoveryProvider, IServiceDiscoveryConfigurator, [
export type ServiceDiscoveryModule = Module<typeof moduleName, IServiceDiscoveryProvider, IServiceDiscoveryConfigurator, [
HttpModule

@@ -9,0 +9,0 @@ ]>;

@@ -1,2 +0,2 @@

export declare type EnvironmentResponse = {
export type EnvironmentResponse = {
clientId: string;

@@ -8,7 +8,7 @@ services: Array<{

};
export declare type Environment = {
export type Environment = {
type?: string;
services: Record<string, Service>;
};
export declare type Service = {
export type Service = {
name?: null | string;

@@ -15,0 +15,0 @@ clientId?: string;

{
"name": "@equinor/fusion-framework-module-service-discovery",
"version": "3.1.1",
"version": "3.1.2",
"description": "",

@@ -27,3 +27,3 @@ "main": "dist/esm/index.js",

"@equinor/fusion-framework-module": "^1.2.9",
"@equinor/fusion-framework-module-http": "^2.1.4",
"@equinor/fusion-framework-module-http": "^2.1.5",
"@equinor/fusion-observable": "^1.4.1",

@@ -35,3 +35,3 @@ "rxjs": "^7.5.7"

},
"gitHead": "98a8a5c6f02ac739adda41bb26f43e3255d450bb"
"gitHead": "08348a63143c1fc0d62fd75e81271ffc2cab9be4"
}

Sorry, the diff of this file is not supported yet

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