@oldendev/testplugin
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "@oldendev/testplugin", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "CRUD plugin for Metarhia impress, metasql", | ||
@@ -5,0 +5,0 @@ "main": "testPlugin.js", |
@@ -5,5 +5,5 @@ 'use strict'; | ||
const iface = {}; | ||
const { entities, model } = init; | ||
for (const entity of entities) { | ||
iface['schema' + entity] = async () => model.entities.get(entity); | ||
const { entities } = init; | ||
for (const [entity, data] of Object.entries(entities)) { | ||
iface['schema' + entity] = async () => data; | ||
} | ||
@@ -10,0 +10,0 @@ }; |
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
4925