@adminforth/upload 1.0.10 → 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 +4 -1
- package/index.ts +4 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -93,7 +93,6 @@ export default class UploadPlugin extends AdminForthPlugin {
|
|
|
93
93
|
});
|
|
94
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
95
|
var _a, _b, _c;
|
|
96
|
-
this.setupLifecycleRule();
|
|
97
96
|
_super.modifyResourceConfig.call(this, adminforth, resourceConfig);
|
|
98
97
|
// after column to store the path of the uploaded file, add new VirtualColumn,
|
|
99
98
|
// show only in edit and create views
|
|
@@ -274,6 +273,10 @@ export default class UploadPlugin extends AdminForthPlugin {
|
|
|
274
273
|
}));
|
|
275
274
|
});
|
|
276
275
|
}
|
|
276
|
+
validateConfigAfterDiscover(adminforth, resourceConfig) {
|
|
277
|
+
// called here because modifyResourceConfig can be called in build time where there is no environment and AWS secrets
|
|
278
|
+
this.setupLifecycleRule();
|
|
279
|
+
}
|
|
277
280
|
setupEndpoints(server) {
|
|
278
281
|
server.endpoint({
|
|
279
282
|
method: 'POST',
|
package/index.ts
CHANGED
|
@@ -87,7 +87,6 @@ export default class UploadPlugin extends AdminForthPlugin {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
async modifyResourceConfig(adminforth: IAdminForth, resourceConfig: any) {
|
|
90
|
-
this.setupLifecycleRule();
|
|
91
90
|
|
|
92
91
|
super.modifyResourceConfig(adminforth, resourceConfig);
|
|
93
92
|
// after column to store the path of the uploaded file, add new VirtualColumn,
|
|
@@ -307,6 +306,10 @@ export default class UploadPlugin extends AdminForthPlugin {
|
|
|
307
306
|
|
|
308
307
|
}
|
|
309
308
|
|
|
309
|
+
validateConfigAfterDiscover(adminforth: IAdminForth, resourceConfig: any) {
|
|
310
|
+
// called here because modifyResourceConfig can be called in build time where there is no environment and AWS secrets
|
|
311
|
+
this.setupLifecycleRule();
|
|
312
|
+
}
|
|
310
313
|
|
|
311
314
|
setupEndpoints(server: IHttpServer) {
|
|
312
315
|
server.endpoint({
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/upload",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"rollout": "tsc && cp -rf custom dist/ && npm version patch && npm publish --access public",
|
|
9
|
-
"
|
|
9
|
+
"prepare": "npm link adminforth",
|
|
10
10
|
"build": "tsc"
|
|
11
11
|
},
|
|
12
12
|
"type": "module",
|