@storybook/core-common 6.4.8 → 6.4.13

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.
@@ -71,10 +71,14 @@ var stringifyProcessEnvs = function (raw) {
71
71
  }, {
72
72
  // Default fallback
73
73
  'process.env.XSTORYBOOK_EXAMPLE_APP': '""'
74
- }); // support destructuring like
74
+ }); // FIXME: something like this is necessary to support destructuring like:
75
+ //
75
76
  // const { foo } = process.env;
77
+ //
78
+ // However, it also means that process.env.foo = 'bar' will fail, so removing this:
79
+ //
80
+ // envs['process.env'] = JSON.stringify(raw);
76
81
 
77
- envs['process.env'] = JSON.stringify(raw);
78
82
  return envs;
79
83
  };
80
84
 
@@ -57,9 +57,13 @@ export var stringifyProcessEnvs = function (raw) {
57
57
  }, {
58
58
  // Default fallback
59
59
  'process.env.XSTORYBOOK_EXAMPLE_APP': '""'
60
- }); // support destructuring like
60
+ }); // FIXME: something like this is necessary to support destructuring like:
61
+ //
61
62
  // const { foo } = process.env;
63
+ //
64
+ // However, it also means that process.env.foo = 'bar' will fail, so removing this:
65
+ //
66
+ // envs['process.env'] = JSON.stringify(raw);
62
67
 
63
- envs['process.env'] = JSON.stringify(raw);
64
68
  return envs;
65
69
  };
@@ -57,9 +57,13 @@ export var stringifyProcessEnvs = function (raw) {
57
57
  }, {
58
58
  // Default fallback
59
59
  'process.env.XSTORYBOOK_EXAMPLE_APP': '""'
60
- }); // support destructuring like
60
+ }); // FIXME: something like this is necessary to support destructuring like:
61
+ //
61
62
  // const { foo } = process.env;
63
+ //
64
+ // However, it also means that process.env.foo = 'bar' will fail, so removing this:
65
+ //
66
+ // envs['process.env'] = JSON.stringify(raw);
62
67
 
63
- envs['process.env'] = JSON.stringify(raw);
64
68
  return envs;
65
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/core-common",
3
- "version": "6.4.8",
3
+ "version": "6.4.13",
4
4
  "description": "Storybook framework-agnostic API",
5
5
  "keywords": [
6
6
  "storybook"
@@ -61,7 +61,7 @@
61
61
  "@babel/preset-react": "^7.12.10",
62
62
  "@babel/preset-typescript": "^7.12.7",
63
63
  "@babel/register": "^7.12.1",
64
- "@storybook/node-logger": "6.4.8",
64
+ "@storybook/node-logger": "6.4.13",
65
65
  "@storybook/semver": "^7.3.2",
66
66
  "@types/node": "^14.0.10",
67
67
  "@types/pretty-hrtime": "^1.0.0",
@@ -110,6 +110,6 @@
110
110
  "publishConfig": {
111
111
  "access": "public"
112
112
  },
113
- "gitHead": "d6b59f78a528a5c7922e71d28b583dd31ad67e7d",
113
+ "gitHead": "d0c1e8a2f33b515a945d1a1a83560ba7045f6a5e",
114
114
  "sbmodern": "dist/modern/index.js"
115
115
  }