@storybook/codemod 6.4.0-alpha.38 → 6.4.0-alpha.39

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.
@@ -85,7 +85,9 @@ var isSimpleCSFStory = function (init, annotations) {
85
85
  function transform({
86
86
  source: source
87
87
  }, api, options) {
88
- var csf = (0, _csfTools.loadCsf)(source).parse();
88
+ var csf = (0, _csfTools.loadCsf)(source, {
89
+ defaultTitle: 'FIXME'
90
+ }).parse();
89
91
  var objectExports = {};
90
92
  Object.entries(csf._storyExports).forEach(function ([key, decl]) {
91
93
  var annotations = Object.entries(csf._storyAnnotations[key]).map(function ([annotation, val]) {
@@ -70,7 +70,9 @@ var isSimpleCSFStory = function (init, annotations) {
70
70
  function transform({
71
71
  source: source
72
72
  }, api, options) {
73
- var csf = loadCsf(source).parse();
73
+ var csf = loadCsf(source, {
74
+ defaultTitle: 'FIXME'
75
+ }).parse();
74
76
  var objectExports = {};
75
77
  Object.entries(csf._storyExports).forEach(function ([key, decl]) {
76
78
  var annotations = Object.entries(csf._storyAnnotations[key]).map(function ([annotation, val]) {
@@ -70,7 +70,9 @@ var isSimpleCSFStory = function (init, annotations) {
70
70
  function transform({
71
71
  source: source
72
72
  }, api, options) {
73
- var csf = loadCsf(source).parse();
73
+ var csf = loadCsf(source, {
74
+ defaultTitle: 'FIXME'
75
+ }).parse();
74
76
  var objectExports = {};
75
77
  Object.entries(csf._storyExports).forEach(function ([key, decl]) {
76
78
  var annotations = Object.entries(csf._storyAnnotations[key]).map(function ([annotation, val]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/codemod",
3
- "version": "6.4.0-alpha.38",
3
+ "version": "6.4.0-alpha.39",
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.68887a1.0",
47
- "@storybook/csf-tools": "6.4.0-alpha.38",
48
- "@storybook/node-logger": "6.4.0-alpha.38",
47
+ "@storybook/csf-tools": "6.4.0-alpha.39",
48
+ "@storybook/node-logger": "6.4.0-alpha.39",
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": "14b9d19e7e9e3de84729ce0c7989efa372c6987c",
65
+ "gitHead": "b1d5f20b2fb6c52f06a85cba6e644629d9bd2e15",
66
66
  "sbmodern": "dist/modern/index.js"
67
67
  }