@splunk/visualization-migrations 23.4.1 → 24.2.0

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/README.md CHANGED
@@ -12,3 +12,19 @@ toType: string
12
12
  toType optional, if not set upgrade to splunk. of same type
13
13
 
14
14
  expose types for migrate & canMigrate
15
+
16
+ If you are migrating via node you will need your entry point script to look like
17
+
18
+ ```
19
+ window = {
20
+ console: {}
21
+ }
22
+
23
+ const migrations = require('@splunk/visualization-migrations');
24
+ const column = migrations.migrate({
25
+ definition: {
26
+ type: 'viz.column',
27
+ },
28
+ });
29
+ console.log(column);
30
+ ```