@oldendev/testplugin
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -10,3 +10,16 @@ { | ||
"ecmaVersion": "latest" | ||
}, | ||
"globals": { | ||
"api": "readonly", | ||
"application": "readonly", | ||
"config": "readonly", | ||
"context": "readonly", | ||
"node": "readonly", | ||
"npm": "readonly", | ||
"lib": "readonly", | ||
"db": "readonly", | ||
"bus": "readonly", | ||
"domain": "readonly", | ||
"metarhia": "readonly" | ||
} | ||
} |
@@ -1,11 +0,13 @@ | ||
/* eslint-disable no-loop-func */ | ||
'use strict'; | ||
module.exports = (init) => (context) => { | ||
module.exports = (init) => { | ||
const iface = {}; | ||
const { entities } = init; | ||
for (const [entity, data] of Object.entries(entities)) { | ||
iface['schema' + entity] = async () => ({ context, data }); | ||
iface['schema' + entity] = (context) => async () => ({ | ||
context, | ||
data, | ||
}); | ||
} | ||
return iface; | ||
}; |
{ | ||
"name": "@oldendev/testplugin", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "CRUD plugin for Metarhia impress, metasql", | ||
@@ -5,0 +5,0 @@ "main": "testPlugin.js", |
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
5339
39