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

@universal-packages/dynamic-api

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@universal-packages/dynamic-api - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

Dynamic.decorator.d.ts

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

export declare function Dynamic(name: string, defaultDynamic?: boolean): (target: any) => void;
export declare function Dynamic<D = Record<string, any>>(name: keyof D, defaultDynamic?: boolean): (target: any) => void;
import { DynamicHookPosition } from './DynamicApi.types';
export declare function DynamicHook(lifeCycle: DynamicHookPosition, name: string): (target: any) => void;
export declare function DynamicHook<D = Record<string, any>>(lifeCycle: DynamicHookPosition, name: keyof D): (target: any) => void;
{
"name": "@universal-packages/dynamic-api",
"version": "1.3.0",
"version": "1.4.0",
"description": "Dynamic decoupling-adapting system",

@@ -5,0 +5,0 @@ "author": "David De Anda <david@universal-packages.com> (https://github.com/universal-packages)",

@@ -206,2 +206,12 @@ # Dynamic API

Use your template names in the hooks as well
```ts
import { Dynamic } from '@universal-packages/dynamic-api'
import { DynamicNames } from './types'
@Dynamic<DynamicNames>('calculate')
export default class CalculateDynamic {}
```
## Contributing

@@ -208,0 +218,0 @@

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