New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dek

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dek - npm Package Compare versions

Comparing version 1.2.1 to 1.3.1

2

index.js

@@ -11,3 +11,5 @@ import Event from './SystemEvents';

export let $ = Organized;
export let dek = Organized;
export let scope = Organized;
export let success = log.success;

@@ -14,0 +16,0 @@ export let danger = log.danger;

2

package.json
{
"name": "dek",
"version": "1.2.1",
"version": "1.3.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "entry.js",

@@ -80,2 +80,4 @@ # DEK

**Atenção! Para esse exemplo em específico é necessário instalar o express** ```$ npm install express```
### 2. Main (main.js)

@@ -286,3 +288,3 @@ Este é o script onde a lógica da sua aplicação deve começar. Todas as dependências adicionadas no BeforeLoad.js estão disponíveis agora no escopo do projeto. Você pode acessar, por exemplo, através de *```dek.variavelAdicionadaAoEscopo``` (Ex: ```dek.express```)* ou *```let { variavelAdicionadaAoEscopo } = dek```*.

add('OlaMundo', async () => {
console.log('\n\nOLÁ MUNDOOOOO!!!!! ESSE É O MEU PRIMEIRO PLUGIN PARA O DEK\n\n')
console.log(' \n\nOLÁ MUNDOOOOO!!!!! ESSE É O MEU PRIMEIRO PLUGIN PARA O DEK\n\n ')
})

@@ -289,0 +291,0 @@

@@ -17,3 +17,8 @@ import EventEmitter from 'events'

const BeforeLoad = require(`${dir}/loaders/BeforeLoad`);
await BeforeLoad.default();
if(BeforeLoad.hasOwnProperty('default')){
await BeforeLoad.default();
}else{
await BeforeLoad();
}
event.emit('loadSystem', file);

@@ -25,3 +30,9 @@ });

const Main = require(`${dir}/${file}`);
await Main.default();
if(Main.hasOwnProperty('default')){
await Main.default();
}else{
await Main();
}
event.emit('afterLoad', file);

@@ -32,3 +43,8 @@ }

const AfterLoad = require(`${dir}/loaders/AfterLoad`);
await AfterLoad.default();
if(AfterLoad.hasOwnProperty('default')){
await AfterLoad.default();
}else{
await AfterLoad();
}
}

@@ -35,0 +51,0 @@

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