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

@common-stack/client-core

Package Overview
Dependencies
Maintainers
1
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@common-stack/client-core - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

58

lib/connector/abstract-connector.d.ts

@@ -1,33 +0,19 @@

import { IFeature } from '../interfaces';
import { IFeature, FeatureParams, ClientStateParams } from '../interfaces';
export declare const featureCatalog: {};
export declare abstract class AbstractFeature implements IFeature {
protected route: any;
protected navItem: any;
protected navItemRight: any;
protected reducer: any;
protected resolver: any;
protected middleware: any;
protected afterware: any;
protected connectionParam: any;
protected createFetchOptions: any;
protected stylesInsert: any;
protected scriptsInsert: any;
protected rootComponentFactory: any;
protected routerFactory: any;
constructor({route, navItem, navItemRight, reducer, resolver, middleware, afterware, connectionParam, createFetchOptions, stylesInsert, scriptsInsert, rootComponentFactory, routerFactory, catalogInfo}: {
route: any;
navItem: any;
navItemRight: any;
reducer: any;
resolver: any;
middleware: any;
afterware: any;
connectionParam: any;
createFetchOptions: any;
stylesInsert: any;
scriptsInsert: any;
rootComponentFactory: any;
routerFactory: any;
catalogInfo: any;
}, ...features: any[]);
route: any[];
navItem: any[];
navItemRight: any[];
reducer: any[];
clientStateParams: ClientStateParams[];
middleware: any[];
afterware: any[];
connectionParam: any[];
createFetchOptions: any[];
stylesInsert: any[];
scriptsInsert: any[];
rootComponentFactory: any[];
routerFactory: any;
catalogInfo: any[];
constructor(feature?: FeatureParams, ...features: any[]);
readonly router: any;

@@ -38,10 +24,10 @@ readonly abstract routes: any;

readonly reducers: any;
readonly resolvers: any;
readonly middlewares: any;
readonly afterwares: any;
readonly connectionParams: any;
readonly getStateParams: any;
readonly middlewares: any[];
readonly afterwares: any[];
readonly connectionParams: any[];
readonly constructFetchOptions: (...args: any[]) => {};
readonly stylesInserts: any;
readonly scriptsInserts: any;
readonly stylesInserts: any[];
readonly scriptsInserts: any[];
abstract getWrappedRoot(root: any, req: any): any;
}

@@ -136,17 +136,17 @@ module.exports =

class AbstractFeature {
constructor({ route, navItem, navItemRight, reducer, resolver, middleware, afterware, connectionParam, createFetchOptions, stylesInsert, scriptsInsert, rootComponentFactory, routerFactory, catalogInfo, }, ...features) {
constructor(feature, ...features) {
combine(arguments, arg => arg.catalogInfo).forEach(info => Object.keys(info).forEach(key => (exports.featureCatalog[key] = info[key])));
this.route = combine(arguments, arg => arg.route);
this.navItem = combine(arguments, arg => arg.navItem);
this.navItemRight = combine(arguments, arg => arg.navItemRight);
this.reducer = combine(arguments, arg => arg.reducer);
this.resolver = combine(arguments, arg => arg.resolver);
this.middleware = combine(arguments, arg => arg.middleware);
this.afterware = combine(arguments, arg => arg.afterware);
this.connectionParam = combine(arguments, arg => arg.connectionParam);
this.createFetchOptions = combine(arguments, arg => arg.createFetchOptions);
this.stylesInsert = combine(arguments, arg => arg.stylesInsert);
this.scriptsInsert = combine(arguments, arg => arg.scriptsInsert);
this.rootComponentFactory = combine(arguments, arg => arg.rootComponentFactory);
this.routerFactory = combine(arguments, arg => arg.routerFactory)
this.route = combine(arguments, (arg) => arg.route);
this.navItem = combine(arguments, (arg) => arg.navItem);
this.navItemRight = combine(arguments, (arg) => arg.navItemRight);
this.reducer = combine(arguments, (arg) => arg.reducer);
this.clientStateParams = combine(arguments, (arg) => arg.clientStateParams);
this.middleware = combine(arguments, (arg) => arg.middleware);
this.afterware = combine(arguments, (arg) => arg.afterware);
this.connectionParam = combine(arguments, (arg) => arg.connectionParam);
this.createFetchOptions = combine(arguments, (arg) => arg.createFetchOptions);
this.stylesInsert = combine(arguments, (arg) => arg.stylesInsert);
this.scriptsInsert = combine(arguments, (arg) => arg.scriptsInsert);
this.rootComponentFactory = combine(arguments, (arg) => arg.rootComponentFactory);
this.routerFactory = combine(arguments, (arg) => arg.routerFactory)
.slice(-1)

@@ -161,4 +161,4 @@ .pop();

}
get resolvers() {
return lodash_1.merge(...this.resolver);
get getStateParams() {
return lodash_1.merge({}, ...this.clientStateParams);
}

@@ -165,0 +165,0 @@ get middlewares() {

@@ -0,15 +1,36 @@

export interface ClientStateParams {
resolvers: any;
defaults?: any;
typeDefs?: string | string[];
}
export interface FeatureParams {
route?: any;
navItem?: any;
navItemRight?: any;
reducer?: any;
clientStateParams?: ClientStateParams | ClientStateParams[];
middleware?: any;
afterware?: any;
connectionParam?: any;
createFetchOptions?: any;
stylesInsert?: any;
scriptsInsert?: any;
rootComponentFactory?: any;
routerFactory?: any;
catalogInfo?: any;
}
export interface IFeature {
router(): any;
routes(): any;
navItems(): any;
navItemsRight(): any;
reducers(): any;
resolvers(): any;
middlewares(): any;
afterwares(): any;
connectionParams(): any;
constructFetchOptions(): any;
stylesInserts(): any;
scriptsInserts(): any;
router: any;
routes: any;
navItems: any;
navItemsRight: any;
reducers: any;
getStateParams: any;
middlewares: any;
afterwares: any;
connectionParams: any;
constructFetchOptions: any;
stylesInserts: any;
scriptsInserts: any;
getWrappedRoot(root: any, req?: any): any;
}
{
"name": "@common-stack/client-core",
"version": "0.0.8",
"version": "0.0.9",
"description": "Sample core for higher packages to depend on",

@@ -56,3 +56,3 @@ "main": "lib/index.js",

"dependencies": {
"@common-stack/core": "^0.0.8"
"@common-stack/core": "^0.0.9"
},

@@ -59,0 +59,0 @@ "typings": "lib/index.d.ts",

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