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

@plumier/core

Package Overview
Dependencies
Maintainers
1
Versions
645
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plumier/core - npm Package Compare versions

Comparing version 1.0.2-canary.koxx1j.0 to 1.0.2-canary.kp2a4t.0

2

lib/authorization.js

@@ -412,2 +412,4 @@ "use strict";

const result = [];
if (!Array.isArray(raw))
throw new Error(`Action ${ctx.ctx.route.controller.name}.${ctx.ctx.route.action.name} expecting return value of type Array but got ${raw.constructor.name}`);
for (const item of raw) {

@@ -414,0 +416,0 @@ const val = await filterType(item, node.child, ctx);

4

lib/common.js

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

if (prop.type === Array && !prop.type[0])
throw new Error(types_1.errorMessage.GenericControllerMissingTypeInfo.format(`${entity.name}.${relation}`));
throw new Error(types_1.errorMessage.UnableToGetMemberDataType.format(entity.name, prop.name));
const type = Array.isArray(prop.type) ? "OneToMany" : "ManyToOne";

@@ -202,2 +202,4 @@ if (type === "OneToMany") {

const parent = prop.type;
if (!parent)
throw new Error(types_1.errorMessage.UnableToGetMemberDataType.format(entity.name, prop.name));
const parentMeta = reflect_1.default(parent);

@@ -204,0 +206,0 @@ let parentProperty;

@@ -516,2 +516,3 @@ /// <reference types="node" />

const EntityRequireID = "Entity {0} used by generic controller doesn't have an ID property";
const UnableToGetMemberDataType = "Unable to get data type of member {0}.{1}. Make sure to provide type information, or manage if its has cross reference to other class";
const UnableToInstantiateModel = "Unable to instantiate {0}. Domain model should not throw error inside constructor";

@@ -518,0 +519,0 @@ const UnableToConvertValue = "Unable to convert \"{0}\" into {1}";

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

errorMessage.EntityRequireID = "Entity {0} used by generic controller doesn't have an ID property";
errorMessage.UnableToGetMemberDataType = "Unable to get data type of member {0}.{1}. Make sure to provide type information, or manage if its has cross reference to other class";
//PLUM2XXX internal app error

@@ -266,0 +267,0 @@ errorMessage.UnableToInstantiateModel = `Unable to instantiate {0}. Domain model should not throw error inside constructor`;

{
"name": "@plumier/core",
"version": "1.0.2-canary.koxx1j.0+cddbaec",
"version": "1.0.2-canary.kp2a4t.0+05cd377",
"description": "Delightful Node.js Rest Framework",

@@ -23,4 +23,4 @@ "main": "lib/index.js",

"dependencies": {
"@plumier/reflect": "1.0.2-canary.koxx1j.0+cddbaec",
"@plumier/validator": "1.0.2-canary.koxx1j.0+cddbaec",
"@plumier/reflect": "1.0.2-canary.kp2a4t.0+05cd377",
"@plumier/validator": "1.0.2-canary.kp2a4t.0+05cd377",
"@types/debug": "^4.1.5",

@@ -50,3 +50,3 @@ "@types/glob": "^7.1.3",

},
"gitHead": "cddbaec69db9c7fbaf144256c44f76a081f8a7c6"
"gitHead": "05cd377823e789e1c18c3902cad69798f196549e"
}
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