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

@mcma/client

Package Overview
Dependencies
Maintainers
3
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mcma/client - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

15

index.d.ts
import { AxiosRequestConfig, AxiosPromise } from "axios";
import { Resource, ResourceType, Service, ResourceEndpoint, ContextVariableProvider } from "@mcma/core";
import { Resource, ResourceType, Service, ResourceEndpoint, ContextVariableProvider, JobBase } from "@mcma/core";

@@ -14,2 +14,4 @@ export type HttpRequestConfig = AxiosRequestConfig;

export class AuthProvider {
constructor();
add(authType: string, authenticatorFactory: AuthenticatorFactory): void;

@@ -41,4 +43,4 @@ get(authType: string, authContext: any): Authenticator;

hasResourceEndpoint(resourceType: string): boolean;
getResourceEndpoint(resourceType: string): ResourceEndpointClient;
hasResourceEndpoint<T extends Resource>(resourceType: ResourceType<T>): boolean;
getResourceEndpoint<T extends Resource>(resourceType: ResourceType<T>): ResourceEndpointClient;
getAllResourceEndpoints(): ResourceEndpointClient[];

@@ -67,3 +69,3 @@ }

export class ResourceManager {
constructor(config: ResourceManagerConfig);
constructor(config: ResourceManagerConfig, authProvider: AuthProvider);

@@ -78,2 +80,3 @@ init(): Promise<void>;

resolve<T extends Resource>(resource: T | string): Promise<T | undefined>;
sendNotification(resource: JobBase): Promise<void>;
}

@@ -83,3 +86,3 @@

interface ContextVariableProvider {
getResourceManagerFromContext(authProvider: AuthProvider): ResourceManager;
getResourceManagerConfig(): ResourceManagerConfig;
}

@@ -91,3 +94,3 @@ }

get(config: ResourceManagerConfig): ResourceManager;
get(config?: ResourceManagerConfig): ResourceManager;
}

4

package.json
{
"name": "@mcma/client",
"version": "0.4.3",
"version": "0.4.4",
"description": "Node module with classes and functions used to access services in an MCMA environment",

@@ -27,3 +27,3 @@ "engines": {

"axios": "^0.18.0",
"@mcma/core": "0.4.3"
"@mcma/core": "0.4.4"
},

@@ -30,0 +30,0 @@ "devDependencies": {

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