adminforth 1.2.67 → 1.2.69

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/basePlugin.ts CHANGED
@@ -32,10 +32,11 @@ export default class AdminForthPlugin implements IAdminForthPlugin {
32
32
  }
33
33
 
34
34
  modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource) {
35
+ const seed = `af_pl_${this.constructor.name}_${resourceConfig.resourceId}_${this.instanceUniqueRepresentation(this.pluginOptions)}`;
35
36
  this.pluginInstanceId = crypto.createHash('sha256').update(
36
- `af_pl_${this.constructor.name}_${resourceConfig.resourceId}_${this.instanceUniqueRepresentation(this.pluginOptions)}`
37
+ seed
37
38
  ).digest('hex')
38
-
39
+ process.env.HEAVY_DEBUG && console.log(`🪲 AdminForthPlugin.modifyResourceConfig`, seed, 'id', this.pluginInstanceId);
39
40
  this.adminforth = adminforth;
40
41
  }
41
42
 
@@ -17,7 +17,9 @@ export default class AdminForthPlugin {
17
17
  return 'non-uniquely-identified';
18
18
  }
19
19
  modifyResourceConfig(adminforth, resourceConfig) {
20
- this.pluginInstanceId = crypto.createHash('sha256').update(`af_pl_${this.constructor.name}_${resourceConfig.resourceId}_${this.instanceUniqueRepresentation(this.pluginOptions)}`).digest('hex');
20
+ const seed = `af_pl_${this.constructor.name}_${resourceConfig.resourceId}_${this.instanceUniqueRepresentation(this.pluginOptions)}`;
21
+ this.pluginInstanceId = crypto.createHash('sha256').update(seed).digest('hex');
22
+ process.env.HEAVY_DEBUG && console.log(`🪲 AdminForthPlugin.modifyResourceConfig`, seed, 'id', this.pluginInstanceId);
21
23
  this.adminforth = adminforth;
22
24
  }
23
25
  componentPath(componentFile) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.2.67",
3
+ "version": "1.2.69",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",