Socket
Socket
Sign inDemoInstall

@ui-autotools/registry

Package Overview
Dependencies
Maintainers
7
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ui-autotools/registry - npm Package Compare versions

Comparing version 4.1.0 to 5.0.0

3

cjs/registry/component-metadata.d.ts
import * as React from 'react';
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo, IStaticResource } from './types';
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo } from './types';
export declare class ComponentMetadata<Props, State> implements IComponentMetadata<Props, State> {

@@ -12,3 +12,2 @@ component: React.ComponentType<Props>;

exportInfo: IExportInfo | null;
staticResources: IStaticResource[];
customFields: {

@@ -15,0 +14,0 @@ [key: string]: any;

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

this.exportInfo = null;
this.staticResources = [];
this.customFields = {};

@@ -25,0 +24,0 @@ }

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

this.metadata.components.clear();
}
},
};

@@ -35,0 +35,0 @@ Object.freeze(Registry);

import { ComponentType, ComponentClass } from 'react';
export interface IRegistry<AssetMap = any> {
export interface IRegistry {
metadata: IMetadata;

@@ -19,3 +19,2 @@ getComponentMetadata: <Props, State = {}>(comp: ComponentType<Props> | ComponentClass<Props, State>) => IComponentMetadata<Props, State>;

exportInfo: IExportInfo | null;
staticResources: IStaticResource[];
addCustomField: (key: string, field: any) => void;

@@ -32,7 +31,2 @@ customFields: {

}
export interface IStaticResource {
path: string;
url: string;
mimeType: string;
}
export interface IMetadata {

@@ -49,4 +43,3 @@ components: Map<ComponentType<any> | ComponentClass<any, any>, IComponentMetadata<any, any>>;

state?: State;
staticResources?: IStaticResource[];
}
//# sourceMappingURL=types.d.ts.map

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

const getOverrideState = (state) => {
return Object.assign({}, state, simulation.state);
return Object.assign(Object.assign({}, state), simulation.state);
};

@@ -17,0 +17,0 @@ class Wrapped extends Comp {

import * as React from 'react';
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo, IStaticResource } from './types';
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo } from './types';
export declare class ComponentMetadata<Props, State> implements IComponentMetadata<Props, State> {

@@ -12,3 +12,2 @@ component: React.ComponentType<Props>;

exportInfo: IExportInfo | null;
staticResources: IStaticResource[];
customFields: {

@@ -15,0 +14,0 @@ [key: string]: any;

@@ -13,3 +13,2 @@ import * as React from 'react';

this.exportInfo = null;
this.staticResources = [];
this.customFields = {};

@@ -16,0 +15,0 @@ }

@@ -27,3 +27,3 @@ import { ComponentMetadata } from './component-metadata';

this.metadata.components.clear();
}
},
};

@@ -30,0 +30,0 @@ Object.freeze(Registry);

import { ComponentType, ComponentClass } from 'react';
export interface IRegistry<AssetMap = any> {
export interface IRegistry {
metadata: IMetadata;

@@ -19,3 +19,2 @@ getComponentMetadata: <Props, State = {}>(comp: ComponentType<Props> | ComponentClass<Props, State>) => IComponentMetadata<Props, State>;

exportInfo: IExportInfo | null;
staticResources: IStaticResource[];
addCustomField: (key: string, field: any) => void;

@@ -32,7 +31,2 @@ customFields: {

}
export interface IStaticResource {
path: string;
url: string;
mimeType: string;
}
export interface IMetadata {

@@ -49,4 +43,3 @@ components: Map<ComponentType<any> | ComponentClass<any, any>, IComponentMetadata<any, any>>;

state?: State;
staticResources?: IStaticResource[];
}
//# sourceMappingURL=types.d.ts.map

@@ -5,3 +5,3 @@ import * as React from 'react';

const getOverrideState = (state) => {
return Object.assign({}, state, simulation.state);
return Object.assign(Object.assign({}, state), simulation.state);
};

@@ -8,0 +8,0 @@ class Wrapped extends Comp {

{
"name": "@ui-autotools/registry",
"version": "4.1.0",
"version": "5.0.0",
"main": "cjs/index.js",

@@ -13,8 +13,5 @@ "module": "esm/index.js",

"build:esm": "tsc -p src --outDir esm --module esnext",
"build:cjs-watch": "tsc --watch -p src --outDir cjs --module commonjs",
"build:esm-watch": "tsc --watch -p src --outDir esm --module esnext",
"lint": "run-p lint:src lint:test",
"lint:src": "tslint -p src",
"lint:test": "tslint -p test",
"test": "mocha -r @ts-tools/node/r \"test/**/*.spec.ts?(x)\" --watch-extensions ts,tsx"
"build:cjs-watch": "yarn build:cjs -w",
"build:esm-watch": "yarn build:esm -w",
"test": "mocha \"test/**/*.spec.ts?(x)\""
},

@@ -26,3 +23,3 @@ "files": [

"engines": {
"node": ">=8"
"node": ">=10"
},

@@ -39,3 +36,3 @@ "peerDependencies": {

},
"gitHead": "cb7a87bde5ad9ea2e02a223397b9d75f022fef3f"
"gitHead": "e6bd4a0222c003028419d217e12486442338e6c0"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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