@storybook/codemod 6.5.0-beta.4 → 6.5.0-beta.7

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.
@@ -87,8 +87,12 @@ var isSimpleCSFStory = function (init, annotations) {
87
87
  function transform({
88
88
  source: source
89
89
  }, api, options) {
90
+ var makeTitle = function (userTitle) {
91
+ return userTitle || 'FIXME';
92
+ };
93
+
90
94
  var csf = (0, _csfTools.loadCsf)(source, {
91
- defaultTitle: 'FIXME'
95
+ makeTitle: makeTitle
92
96
  });
93
97
 
94
98
  try {
@@ -71,8 +71,12 @@ var isSimpleCSFStory = function (init, annotations) {
71
71
  function transform({
72
72
  source: source
73
73
  }, api, options) {
74
+ var makeTitle = function (userTitle) {
75
+ return userTitle || 'FIXME';
76
+ };
77
+
74
78
  var csf = loadCsf(source, {
75
- defaultTitle: 'FIXME'
79
+ makeTitle: makeTitle
76
80
  });
77
81
 
78
82
  try {
@@ -71,8 +71,12 @@ var isSimpleCSFStory = function (init, annotations) {
71
71
  function transform({
72
72
  source: source
73
73
  }, api, options) {
74
+ var makeTitle = function (userTitle) {
75
+ return userTitle || 'FIXME';
76
+ };
77
+
74
78
  var csf = loadCsf(source, {
75
- defaultTitle: 'FIXME'
79
+ makeTitle: makeTitle
76
80
  });
77
81
 
78
82
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/codemod",
3
- "version": "6.5.0-beta.4",
3
+ "version": "6.5.0-beta.7",
4
4
  "description": "A collection of codemod scripts written with JSCodeshift",
5
5
  "keywords": [
6
6
  "storybook"
@@ -44,8 +44,8 @@
44
44
  "@babel/types": "^7.12.11",
45
45
  "@mdx-js/mdx": "^1.6.22",
46
46
  "@storybook/csf": "0.0.2--canary.4566f4d.1",
47
- "@storybook/csf-tools": "6.5.0-beta.4",
48
- "@storybook/node-logger": "6.5.0-beta.4",
47
+ "@storybook/csf-tools": "6.5.0-beta.7",
48
+ "@storybook/node-logger": "6.5.0-beta.7",
49
49
  "core-js": "^3.8.2",
50
50
  "cross-spawn": "^7.0.3",
51
51
  "globby": "^11.0.2",
@@ -62,6 +62,6 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "55247a8e36da7061bfced80c588a539d3fda3f04",
65
+ "gitHead": "14bb6d241c888cc3be6adba94c3e3a1ceddadf74",
66
66
  "sbmodern": "dist/modern/index.js"
67
67
  }