@paciolan/remote-module-loader 3.0.2 → 3.0.3

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/README.md +20 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -96,6 +96,26 @@ myModule.then(m => {
96
96
  console.log({ value });
97
97
  });
98
98
  ```
99
+ ### Named Exports
100
+
101
+ ```javascript
102
+ /**
103
+ * src/index.js
104
+ */
105
+
106
+ import loadRemoteModule from "./lib/loadRemoteModule";
107
+
108
+ const main = async () => {
109
+ const myModule = await loadRemoteModule(
110
+ "http://fake.url/modules/my-module.js"
111
+ );
112
+ const list = myModule.getList();
113
+ console.log({ list });
114
+ };
115
+
116
+ main();
117
+ ```
118
+
99
119
 
100
120
  ## Async/Await Style
101
121
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paciolan/remote-module-loader",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "author": "Paciolan",