@oldendev/testplugin
Advanced tools
Comparing version 1.1.3 to 1.1.4
{ | ||
"name": "@oldendev/testplugin", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "CRUD plugin for Metarhia impress, metasql", | ||
@@ -5,0 +5,0 @@ "main": "testPlugin.js", |
@@ -1,14 +0,5 @@ | ||
/* eslint-disable no-undef */ | ||
/* eslint-disable no-loop-func */ | ||
'use strict'; | ||
const crud = (init) => () => { | ||
const iface = {}; | ||
const { entities } = init; | ||
for (const [entity, data] of Object.entries(entities)) { | ||
iface['schema' + entity] = async () => ({ context, data }); | ||
} | ||
return iface; | ||
}; | ||
const crud = require('./lib/crud.js'); | ||
module.exports = { plugins: { crud } }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5084
14
25