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

@adminforth/foreign-inline-list

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adminforth/foreign-inline-list - npm Package Compare versions

Comparing version 1.0.16 to 1.0.17

tsconfig.json

46

dist/index.js

@@ -16,3 +16,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
instanceUniqueRepresentation(pluginOptions) {
console.log('💥💥💥💥 ForeignInlineListPlugin.instanceUniqueRepresentation', pluginOptions);
return `${pluginOptions.foreignResourceId}`;
}
setupEndpoints(server) {
process.env.HEAVY_DEBUG && console.log(`🪲 ForeignInlineListPlugin.setupEndpoints, registering: '/plugin/${this.pluginInstanceId}/get_resource'`);
server.endpoint({

@@ -36,22 +41,27 @@ method: 'POST',

modifyResourceConfig(adminforth, resourceConfig) {
super.modifyResourceConfig(adminforth, resourceConfig);
this.adminforth = adminforth;
// get resource with foreignResourceId
this.foreignResource = adminforth.config.resources.find((resource) => resource.resourceId === this.options.foreignResourceId);
if (!this.foreignResource) {
throw new Error(`ForeignInlineListPlugin: Resource with ID "${this.options.foreignResourceId}" not found`);
}
resourceConfig.columns.push({
name: `foreignInlineList_${this.foreignResource.resourceId}`,
label: 'Foreign Inline List',
virtual: true,
showIn: [AdminForthResourcePages.show],
components: {
showRow: {
file: this.componentPath('InlineList.vue'),
meta: Object.assign(Object.assign({}, this.options), { pluginInstanceId: this.pluginInstanceId })
}
},
const _super = Object.create(null, {
modifyResourceConfig: { get: () => super.modifyResourceConfig }
});
return __awaiter(this, void 0, void 0, function* () {
_super.modifyResourceConfig.call(this, adminforth, resourceConfig);
this.adminforth = adminforth;
// get resource with foreignResourceId
this.foreignResource = adminforth.config.resources.find((resource) => resource.resourceId === this.options.foreignResourceId);
if (!this.foreignResource) {
throw new Error(`ForeignInlineListPlugin: Resource with ID "${this.options.foreignResourceId}" not found`);
}
resourceConfig.columns.push({
name: `foreignInlineList_${this.foreignResource.resourceId}`,
label: 'Foreign Inline List',
virtual: true,
showIn: [AdminForthResourcePages.show],
components: {
showRow: {
file: this.componentPath('InlineList.vue'),
meta: Object.assign(Object.assign({}, this.options), { pluginInstanceId: this.pluginInstanceId })
}
},
});
});
}
}
{
"name": "@adminforth/foreign-inline-list",
"version": "1.0.16",
"version": "1.0.17",
"description": "AdminForth plugin for adding list of children items to the parent item show page",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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