@adminforth/inline-create 1.0.11 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -63,7 +63,7 @@ export default class InlineCreatePlugin extends AdminForthPlugin {
63
63
  server.endpoint({
64
64
  method: 'POST',
65
65
  path: `/plugin/${this.pluginInstanceId}/create`,
66
- handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body, adminforth, adminUser }) {
66
+ handler: (_a) => __awaiter(this, [_a], void 0, function* ({ body, adminUser }) {
67
67
  const { record, resourceId } = body;
68
68
  const resource = this.adminforth.config.resources.find(r => r.resourceId === resourceId);
69
69
  const cleanRecord = resource.columns.reduce((acc, field) => {
package/index.ts CHANGED
@@ -66,7 +66,7 @@ export default class InlineCreatePlugin extends AdminForthPlugin {
66
66
  server.endpoint({
67
67
  method: 'POST',
68
68
  path: `/plugin/${this.pluginInstanceId}/create`,
69
- handler: async ({ body, adminforth, adminUser }) => {
69
+ handler: async ({ body, adminUser }) => {
70
70
  const { record, resourceId } = body;
71
71
 
72
72
  const resource = this.adminforth.config.resources.find(r => r.resourceId === resourceId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/inline-create",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -22,10 +22,11 @@
22
22
  "license": "MIT",
23
23
  "description": "Inline create plugin for adminforth",
24
24
  "peerDependencies": {
25
- "adminforth": "^2.30.0"
25
+ "adminforth": "^2.35.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.10.7",
29
+ "adminforth": "^2.35.0",
29
30
  "semantic-release": "^24.2.1",
30
31
  "semantic-release-slack-bot": "^4.0.2",
31
32
  "typescript": "^5.7.3"