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

cormo-graphql

Package Overview
Dependencies
Maintainers
12
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cormo-graphql - npm Package Compare versions

Comparing version 0.9.4 to 1.0.0

6

lib/decorators.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -61,2 +65,5 @@ if (k2 === undefined) k2 = k;

for (const [column, property] of Object.entries(model_class._schema)) {
if (!property) {
continue;
}
const graphql_type = getGraphQlType(property);

@@ -134,2 +141,5 @@ if (graphql_type) {

for (const [column, property] of Object.entries(model_class._schema)) {
if (!property) {
continue;
}
if (column === 'id') {

@@ -161,2 +171,5 @@ continue;

for (const [column, property] of Object.entries(model_class._schema)) {
if (!property) {
continue;
}
if (column === options.created_at_column) {

@@ -193,5 +206,8 @@ continue;

}
function createOrderType(model_class, options) {
function createOrderType(model_class, _options) {
const values = {};
for (const [column, property] of Object.entries(model_class._schema)) {
if (!property) {
continue;
}
if (column === 'id' ||

@@ -217,2 +233,5 @@ property.type_class === cormo.types.String ||

for (const [column, property] of Object.entries(model_class._schema)) {
if (!property) {
continue;
}
if (column === 'id') {

@@ -292,3 +311,3 @@ list_query_args[column + '_list'] = {

},
async resolve(source, args, context, info) {
async resolve(source, args) {
const data = args.input;

@@ -312,3 +331,3 @@ const date = Date.now();

},
async resolve(source, args, context, info) {
async resolve(_source, args) {
const data = args.input;

@@ -330,3 +349,3 @@ const date = Date.now();

},
async resolve(source, args, context, info) {
async resolve(source, args) {
const delete_count = await model_class.find(args.input.id).delete();

@@ -367,3 +386,3 @@ if (delete_count === 0) {

description: `List query for ${camel_name}`,
resolve(source, args, context, info) {
resolve(source, args) {
return { __args: args };

@@ -370,0 +389,0 @@ },

30

package.json
{
"name": "cormo-graphql",
"version": "0.9.4",
"version": "1.0.0",
"description": "GraphQL support for CORMO",

@@ -27,22 +27,22 @@ "main": "./lib",

"dependencies": {
"@croquiscom/crary-graphql": "^0.16.0",
"cormo": "^0.19.3",
"graphql": "^16.3.0",
"@croquiscom/crary-graphql": "^1.0.0",
"cormo": "^1.0.0",
"graphql": "^16.6.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/lodash": "^4.14.178",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.16",
"@types/sinon": "^10.0.11",
"chai": "^4.3.6",
"mocha": "^9.2.0",
"@types/chai": "^4.3.4",
"@types/lodash": "^4.14.191",
"@types/mocha": "^10.0.1",
"@types/node": "^18.11.11",
"@types/sinon": "^10.0.13",
"chai": "^4.3.7",
"mocha": "^10.1.0",
"mysql": "^2.18.1",
"rimraf": "^3.0.2",
"sinon": "^13.0.1",
"ts-node": "^10.5.0",
"typescript": "^4.5.5"
"sinon": "^15.0.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
},
"gitHead": "0fc2a531808c22432a502dd536eae5cd8eaf0a40"
"gitHead": "012c58745515c8b36ffdb14b772348705b8b7ab7"
}
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