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

@deco-team/deco-server

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deco-team/deco-server - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

lib/postInstall.js

38

index.js

@@ -22,4 +22,3 @@ import express from "express";

const { PLUGIN_SECRET_ENCRYPTION_STRING, LOGIN_JWT_KEY } = config;
const DEFAULT_USER_PASSWORD = "kellykevinlindsaynickjill";
const { PLUGIN_SECRET_ENCRYPTION_STRING, LOGIN_JWT_KEY, DEFAULT_USER_PASSWORD } = config;

@@ -1060,27 +1059,10 @@ // Decryption function

// Imagine someone is looking through an plugin store and clicks "install"
// We can send a request to this endpoint
// Logic can be reused when an plugin requests an plugin be installed
// serverInstance.get("/_meta/install", async (req, res) => {
// try {
// await installPlugin("http://localhost:4321/manifest.json");
// // At this point, we have to do a teardown and rebuild of the server routes
// await buildRoutes(server);
// console.log("Routes rebuilt successfully.");
// return res.status(200).send({ success: true });
// } catch (err) {
// console.log("Plugin installation failed.");
// console.log(err);
// return res.status(500).send({ success: false });
// }
// });
(async () => {
try {
await deco();
} catch (err) {
console.error(err);
}
})();
if (process.env.NODE_ENV === "development") {
(async () => {
try {
deco();
} catch (err) {
console.error(err);
}
})();
}
{
"name": "@deco-team/deco-server",
"version": "1.0.3",
"version": "1.0.4",
"description": "A web server that enables installable plugins, structured learning and bidirectional AI interactions.",

@@ -8,3 +8,4 @@ "main": "index.js",

"dev": "nodemon index.js",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"postinstall": "node ./lib/postInstall.js"
},

@@ -16,2 +17,3 @@ "engines": {

"db",
"lib",
"index.js"

@@ -18,0 +20,0 @@ ],

@@ -57,2 +57,4 @@ # Deco Server

[Here is the repository for the core plugins.](https://github.com/MikeCarbone/deco-core)
Core plugins are the minimum plugins required to run a Deco server. These plugins bring core functionality to the server, like users, permissions, notifications, and more.

@@ -107,2 +109,5 @@

- [x] Testing infrastructure
- [ ] Multi-user database handling
- [ ] Reset password flow
- [ ] [Isolated VM](https://www.npmjs.com/package/isolated-vm) implementation for safe plugin execution
- [ ] Updating / versioning plugins (checking for and executing)

@@ -109,0 +114,0 @@ - [ ] User profiles

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