s3db.js 13.1.0 → 13.2.2

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.
@@ -109,6 +109,18 @@ export const PLUGIN_DEPENDENCIES = {
109
109
  npmUrl: 'https://www.npmjs.com/package/@hono/swagger-ui'
110
110
  }
111
111
  }
112
+ },
113
+ 'ml-plugin': {
114
+ name: 'ML Plugin',
115
+ docsUrl: 'https://github.com/forattini-dev/s3db.js/blob/main/docs/plugins/ml-plugin.md',
116
+ dependencies: {
117
+ '@tensorflow/tfjs-node': {
118
+ version: '^4.0.0',
119
+ description: 'TensorFlow.js for Node.js with native bindings',
120
+ installCommand: 'pnpm add @tensorflow/tfjs-node',
121
+ npmUrl: 'https://www.npmjs.com/package/@tensorflow/tfjs-node'
122
+ }
123
+ }
112
124
  }
113
125
  };
114
126
 
@@ -109,7 +109,7 @@ export class GeoPlugin extends Plugin {
109
109
  console.log(`[GeoPlugin] Installed with ${Object.keys(this.resources).length} resources`);
110
110
  }
111
111
 
112
- this.emit('installed', {
112
+ this.emit('db:plugin:installed', {
113
113
  plugin: 'GeoPlugin',
114
114
  resources: Object.keys(this.resources)
115
115
  });
@@ -861,7 +861,7 @@ export class GeoPlugin extends Plugin {
861
861
  console.log('[GeoPlugin] Uninstalled');
862
862
  }
863
863
 
864
- this.emit('uninstalled', {
864
+ this.emit('db:plugin:uninstalled', {
865
865
  plugin: 'GeoPlugin'
866
866
  });
867
867