poi-plugin-reload-game-button 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/index.js +5 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -447,8 +447,8 @@ function pluginWillUnload() {
447
447
  }
448
448
  }
449
449
 
450
- module.exports = {
451
- pluginDidLoad,
452
- pluginWillUnload,
453
- reactClass: (props) => require('./views').reactClass(props),
454
- }
450
+ // Use explicit CommonJS exports so poi's dynamic import() exposes every hook
451
+ // as a named export, including the function-valued reactClass property.
452
+ exports.pluginDidLoad = pluginDidLoad
453
+ exports.pluginWillUnload = pluginWillUnload
454
+ exports.reactClass = (props) => require('./views').reactClass(props)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poi-plugin-reload-game-button",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Adds a touch-friendly floating reload-game panel to poi.",
5
5
  "main": "index.js",
6
6
  "files": [