🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@aida/core

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aida/core

Aida core library

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

Aida Core

The roles of the core are:

  • Accept settings as a parameter
  • Convert model files to the models object structure shown below
  • Pass the models object through the pipeline of injectors and handle the ordering based on the dependency specifications
  • At the end of the pipeline, pass the resulting models object to the caller (CLI, JavaScript call, etc.)

The resulting object after the core has passed it through all injectors will look something like:

{
  \_raw: {
    User: {
      core: {
        //The fields in .core.js
      },
      endpoints: {
        //The fields in .endpoints.js
      }
    },
  },
  injectedFunction1: {
    execute: (options) => {...}
  },
  injectedFunction2: {
    execute: (options) => {...}
  },
  ...
}

FAQs

Package last updated on 17 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts