@storybook/core-common 7.1.0-alpha.25 → 7.1.0-alpha.26

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/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  "strict": false,
4
4
  "skipLibCheck": true,
5
5
  },
6
- }`})}let result=require(filePath);return typeof result=="object"&&result!==null&&typeof result.default<"u"?result.default:result}function getCandidate(paths){for(let i=0;i<paths.length;i+=1){let candidate=getInterpretedFileWithExt(paths[i]);if(candidate)return candidate}}function serverRequire(filePath){let candidatePath=serverResolve(filePath);return candidatePath?interopRequireDefault(candidatePath):null}function serverResolve(filePath){let paths=Array.isArray(filePath)?filePath:[filePath],existingCandidate=getCandidate(paths);return existingCandidate?existingCandidate.path:null}var import_ts_dedent=require("ts-dedent"),import_glob=require("glob"),import_path=__toESM(require("path"));function slash(path13){return/^\\\\\?\\/.test(path13)?path13:path13.replace(/\\/g,"/")}var import_node_logger=require("@storybook/node-logger");async function validateConfigurationFiles(configDir){let extensionsPattern=`{${Array.from(boost).join(",")}}`,mainConfigMatches=await(0,import_glob.glob)(slash(import_path.default.resolve(configDir,`main${extensionsPattern}`))),[mainConfigPath]=mainConfigMatches;if(mainConfigMatches.length>1&&import_node_logger.once.warn(import_ts_dedent.dedent`
6
+ }`})}let result=require(filePath);return typeof result=="object"&&result!==null&&typeof result.default<"u"?result.default:result}function getCandidate(paths){for(let i=0;i<paths.length;i+=1){let candidate=getInterpretedFileWithExt(paths[i]);if(candidate)return candidate}}function serverRequire(filePath){let candidatePath=serverResolve(filePath);return candidatePath?interopRequireDefault(candidatePath):null}function serverResolve(filePath){let paths=Array.isArray(filePath)?filePath:[filePath],existingCandidate=getCandidate(paths);return existingCandidate?existingCandidate.path:null}var import_ts_dedent=require("ts-dedent"),import_glob=require("glob"),import_path=__toESM(require("path"));function slash(path13){return path13.startsWith("\\\\?\\")?path13:path13.replace(/\\/g,"/")}var import_node_logger=require("@storybook/node-logger");async function validateConfigurationFiles(configDir){let extensionsPattern=`{${Array.from(boost).join(",")}}`,mainConfigMatches=await(0,import_glob.glob)(slash(import_path.default.resolve(configDir,`main${extensionsPattern}`))),[mainConfigPath]=mainConfigMatches;if(mainConfigMatches.length>1&&import_node_logger.once.warn(import_ts_dedent.dedent`
7
7
  Multiple main files found in your configDir (${import_path.default.resolve(configDir)}).
8
8
  Storybook will use the first one found and ignore the others. Please remove the extra files.
9
9
  `),!mainConfigPath)throw new Error(import_ts_dedent.dedent`
package/dist/index.mjs CHANGED
@@ -18,7 +18,7 @@ var __require=(x=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(x,{get:(
18
18
  "strict": false,
19
19
  "skipLibCheck": true,
20
20
  },
21
- }`});}let result=__require(filePath);return typeof result=="object"&&result!==null&&typeof result.default<"u"?result.default:result}function getCandidate(paths){for(let i=0;i<paths.length;i+=1){let candidate=getInterpretedFileWithExt(paths[i]);if(candidate)return candidate}}function serverRequire(filePath){let candidatePath=serverResolve(filePath);return candidatePath?interopRequireDefault(candidatePath):null}function serverResolve(filePath){let paths=Array.isArray(filePath)?filePath:[filePath],existingCandidate=getCandidate(paths);return existingCandidate?existingCandidate.path:null}function slash(path13){return /^\\\\\?\\/.test(path13)?path13:path13.replace(/\\/g,"/")}async function validateConfigurationFiles(configDir){let extensionsPattern=`{${Array.from(boost).join(",")}}`,mainConfigMatches=await glob(slash(path5.resolve(configDir,`main${extensionsPattern}`))),[mainConfigPath]=mainConfigMatches;if(mainConfigMatches.length>1&&once.warn(dedent`
21
+ }`});}let result=__require(filePath);return typeof result=="object"&&result!==null&&typeof result.default<"u"?result.default:result}function getCandidate(paths){for(let i=0;i<paths.length;i+=1){let candidate=getInterpretedFileWithExt(paths[i]);if(candidate)return candidate}}function serverRequire(filePath){let candidatePath=serverResolve(filePath);return candidatePath?interopRequireDefault(candidatePath):null}function serverResolve(filePath){let paths=Array.isArray(filePath)?filePath:[filePath],existingCandidate=getCandidate(paths);return existingCandidate?existingCandidate.path:null}function slash(path13){return path13.startsWith("\\\\?\\")?path13:path13.replace(/\\/g,"/")}async function validateConfigurationFiles(configDir){let extensionsPattern=`{${Array.from(boost).join(",")}}`,mainConfigMatches=await glob(slash(path5.resolve(configDir,`main${extensionsPattern}`))),[mainConfigPath]=mainConfigMatches;if(mainConfigMatches.length>1&&once.warn(dedent`
22
22
  Multiple main files found in your configDir (${path5.resolve(configDir)}).
23
23
  Storybook will use the first one found and ignore the others. Please remove the extra files.
24
24
  `),!mainConfigPath)throw new Error(dedent`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/core-common",
3
- "version": "7.1.0-alpha.25",
3
+ "version": "7.1.0-alpha.26",
4
4
  "description": "Storybook framework-agnostic API",
5
5
  "keywords": [
6
6
  "storybook"
@@ -43,8 +43,8 @@
43
43
  "prep": "../../../scripts/prepare/bundle.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@storybook/node-logger": "7.1.0-alpha.25",
47
- "@storybook/types": "7.1.0-alpha.25",
46
+ "@storybook/node-logger": "7.1.0-alpha.26",
47
+ "@storybook/types": "7.1.0-alpha.26",
48
48
  "@types/node": "^16.0.0",
49
49
  "@types/pretty-hrtime": "^1.0.0",
50
50
  "chalk": "^4.1.0",
@@ -79,5 +79,5 @@
79
79
  ],
80
80
  "platform": "node"
81
81
  },
82
- "gitHead": "3f93a9032c93e77e34c3b39adea4b4a0f21e8920"
82
+ "gitHead": "515abaa55abc8ad20f906e4ce46cde3d3850991e"
83
83
  }