@storybook/core-server 6.4.13 → 6.4.17
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/cjs/cli/prod.js
CHANGED
|
@@ -24,7 +24,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
24
24
|
function getProdCli(packageJson) {
|
|
25
25
|
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
|
|
26
26
|
|
|
27
|
-
_commander.default.version(packageJson.version).option('-s, --static-dir <dir-names>', 'Directory where to load static files from', _utils.parseList).option('-o, --output-dir <dir-name>', 'Directory where to store built files').option('-c, --config-dir <dir-name>', 'Directory where to load Storybook configurations from').option('--quiet', 'Suppress verbose build output').option('--loglevel <level>', 'Control level of logging during build').option('--no-dll', 'Do not use dll reference (no-op)').option('--docs-dll', 'Use Docs dll reference (legacy)').option('--ui-dll', 'Use UI dll reference (legacy)').option('--debug-webpack', 'Display final webpack configurations for debugging purposes').option('--webpack-stats-json [directory]', 'Write Webpack Stats JSON to disk').option('--preview-url <string>', 'Disables the default storybook preview and lets your use your own').option('--force-build-preview', 'Build the preview iframe even if you are using --preview-url').option('--docs', 'Build a documentation-only site using addon-docs').option('--modern', 'Use modern browser modules').parse(process.argv);
|
|
27
|
+
_commander.default.version(packageJson.version).option('-s, --static-dir <dir-names>', 'Directory where to load static files from', _utils.parseList).option('-o, --output-dir <dir-name>', 'Directory where to store built files').option('-c, --config-dir <dir-name>', 'Directory where to load Storybook configurations from').option('--quiet', 'Suppress verbose build output').option('--loglevel <level>', 'Control level of logging during build').option('--no-dll', 'Do not use dll reference (no-op)').option('--docs-dll', 'Use Docs dll reference (legacy)').option('--ui-dll', 'Use UI dll reference (legacy)').option('--debug-webpack', 'Display final webpack configurations for debugging purposes').option('--webpack-stats-json [directory]', 'Write Webpack Stats JSON to disk').option('--preview-url <string>', 'Disables the default storybook preview and lets your use your own').option('--force-build-preview', 'Build the preview iframe even if you are using --preview-url').option('--docs', 'Build a documentation-only site using addon-docs').option('--modern', 'Use modern browser modules').option('--no-manager-cache', 'Do not cache the manager UI').parse(process.argv);
|
|
28
28
|
|
|
29
29
|
_nodeLogger.logger.setLevel(_commander.default.loglevel);
|
|
30
30
|
|
|
@@ -22,8 +22,10 @@ var _coreCommon = require("@storybook/core-common");
|
|
|
22
22
|
|
|
23
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
24
|
|
|
25
|
-
var _process$env
|
|
26
|
-
|
|
25
|
+
var _process$env = process.env,
|
|
26
|
+
_process$env$STORYBOO = _process$env.STORYBOOK_VERSION_BASE,
|
|
27
|
+
STORYBOOK_VERSION_BASE = _process$env$STORYBOO === void 0 ? 'https://storybook.js.org' : _process$env$STORYBOO,
|
|
28
|
+
CI = _process$env.CI;
|
|
27
29
|
|
|
28
30
|
var updateCheck = async function (version) {
|
|
29
31
|
var result;
|
|
@@ -35,7 +37,7 @@ var updateCheck = async function (version) {
|
|
|
35
37
|
time: 0
|
|
36
38
|
}); // if last check was more then 24h ago
|
|
37
39
|
|
|
38
|
-
if (time - 86400000 > fromCache.time) {
|
|
40
|
+
if (time - 86400000 > fromCache.time && !CI) {
|
|
39
41
|
var fromFetch = await Promise.race([(0, _nodeFetch.default)(`${STORYBOOK_VERSION_BASE}/versions.json?current=${version}`), // if fetch is too slow, we won't wait for it
|
|
40
42
|
new Promise(function (res, rej) {
|
|
41
43
|
return global.setTimeout(rej, 1500);
|
package/dist/esm/cli/prod.js
CHANGED
|
@@ -10,7 +10,7 @@ import { logger } from '@storybook/node-logger';
|
|
|
10
10
|
import { parseList, getEnvConfig, checkDeprecatedFlags } from './utils';
|
|
11
11
|
export function getProdCli(packageJson) {
|
|
12
12
|
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
|
|
13
|
-
program.version(packageJson.version).option('-s, --static-dir <dir-names>', 'Directory where to load static files from', parseList).option('-o, --output-dir <dir-name>', 'Directory where to store built files').option('-c, --config-dir <dir-name>', 'Directory where to load Storybook configurations from').option('--quiet', 'Suppress verbose build output').option('--loglevel <level>', 'Control level of logging during build').option('--no-dll', 'Do not use dll reference (no-op)').option('--docs-dll', 'Use Docs dll reference (legacy)').option('--ui-dll', 'Use UI dll reference (legacy)').option('--debug-webpack', 'Display final webpack configurations for debugging purposes').option('--webpack-stats-json [directory]', 'Write Webpack Stats JSON to disk').option('--preview-url <string>', 'Disables the default storybook preview and lets your use your own').option('--force-build-preview', 'Build the preview iframe even if you are using --preview-url').option('--docs', 'Build a documentation-only site using addon-docs').option('--modern', 'Use modern browser modules').parse(process.argv);
|
|
13
|
+
program.version(packageJson.version).option('-s, --static-dir <dir-names>', 'Directory where to load static files from', parseList).option('-o, --output-dir <dir-name>', 'Directory where to store built files').option('-c, --config-dir <dir-name>', 'Directory where to load Storybook configurations from').option('--quiet', 'Suppress verbose build output').option('--loglevel <level>', 'Control level of logging during build').option('--no-dll', 'Do not use dll reference (no-op)').option('--docs-dll', 'Use Docs dll reference (legacy)').option('--ui-dll', 'Use UI dll reference (legacy)').option('--debug-webpack', 'Display final webpack configurations for debugging purposes').option('--webpack-stats-json [directory]', 'Write Webpack Stats JSON to disk').option('--preview-url <string>', 'Disables the default storybook preview and lets your use your own').option('--force-build-preview', 'Build the preview iframe even if you are using --preview-url').option('--docs', 'Build a documentation-only site using addon-docs').option('--modern', 'Use modern browser modules').option('--no-manager-cache', 'Do not cache the manager UI').parse(process.argv);
|
|
14
14
|
logger.setLevel(program.loglevel);
|
|
15
15
|
logger.info(chalk.bold(`${packageJson.name} v${packageJson.version}\n`)); // The key is the field created in `program` variable for
|
|
16
16
|
// each command line argument. Value is the env variable.
|
|
@@ -5,8 +5,10 @@ import { colors } from '@storybook/node-logger';
|
|
|
5
5
|
import semver from '@storybook/semver';
|
|
6
6
|
import dedent from 'ts-dedent';
|
|
7
7
|
import { cache } from '@storybook/core-common';
|
|
8
|
-
var _process$env
|
|
9
|
-
|
|
8
|
+
var _process$env = process.env,
|
|
9
|
+
_process$env$STORYBOO = _process$env.STORYBOOK_VERSION_BASE,
|
|
10
|
+
STORYBOOK_VERSION_BASE = _process$env$STORYBOO === void 0 ? 'https://storybook.js.org' : _process$env$STORYBOO,
|
|
11
|
+
CI = _process$env.CI;
|
|
10
12
|
export var updateCheck = async function (version) {
|
|
11
13
|
var result;
|
|
12
14
|
var time = Date.now();
|
|
@@ -17,7 +19,7 @@ export var updateCheck = async function (version) {
|
|
|
17
19
|
time: 0
|
|
18
20
|
}); // if last check was more then 24h ago
|
|
19
21
|
|
|
20
|
-
if (time - 86400000 > fromCache.time) {
|
|
22
|
+
if (time - 86400000 > fromCache.time && !CI) {
|
|
21
23
|
var fromFetch = await Promise.race([fetch(`${STORYBOOK_VERSION_BASE}/versions.json?current=${version}`), // if fetch is too slow, we won't wait for it
|
|
22
24
|
new Promise(function (res, rej) {
|
|
23
25
|
return global.setTimeout(rej, 1500);
|
package/dist/modern/cli/prod.js
CHANGED
|
@@ -10,7 +10,7 @@ import { logger } from '@storybook/node-logger';
|
|
|
10
10
|
import { parseList, getEnvConfig, checkDeprecatedFlags } from './utils';
|
|
11
11
|
export function getProdCli(packageJson) {
|
|
12
12
|
process.env.NODE_ENV = process.env.NODE_ENV || 'production';
|
|
13
|
-
program.version(packageJson.version).option('-s, --static-dir <dir-names>', 'Directory where to load static files from', parseList).option('-o, --output-dir <dir-name>', 'Directory where to store built files').option('-c, --config-dir <dir-name>', 'Directory where to load Storybook configurations from').option('--quiet', 'Suppress verbose build output').option('--loglevel <level>', 'Control level of logging during build').option('--no-dll', 'Do not use dll reference (no-op)').option('--docs-dll', 'Use Docs dll reference (legacy)').option('--ui-dll', 'Use UI dll reference (legacy)').option('--debug-webpack', 'Display final webpack configurations for debugging purposes').option('--webpack-stats-json [directory]', 'Write Webpack Stats JSON to disk').option('--preview-url <string>', 'Disables the default storybook preview and lets your use your own').option('--force-build-preview', 'Build the preview iframe even if you are using --preview-url').option('--docs', 'Build a documentation-only site using addon-docs').option('--modern', 'Use modern browser modules').parse(process.argv);
|
|
13
|
+
program.version(packageJson.version).option('-s, --static-dir <dir-names>', 'Directory where to load static files from', parseList).option('-o, --output-dir <dir-name>', 'Directory where to store built files').option('-c, --config-dir <dir-name>', 'Directory where to load Storybook configurations from').option('--quiet', 'Suppress verbose build output').option('--loglevel <level>', 'Control level of logging during build').option('--no-dll', 'Do not use dll reference (no-op)').option('--docs-dll', 'Use Docs dll reference (legacy)').option('--ui-dll', 'Use UI dll reference (legacy)').option('--debug-webpack', 'Display final webpack configurations for debugging purposes').option('--webpack-stats-json [directory]', 'Write Webpack Stats JSON to disk').option('--preview-url <string>', 'Disables the default storybook preview and lets your use your own').option('--force-build-preview', 'Build the preview iframe even if you are using --preview-url').option('--docs', 'Build a documentation-only site using addon-docs').option('--modern', 'Use modern browser modules').option('--no-manager-cache', 'Do not cache the manager UI').parse(process.argv);
|
|
14
14
|
logger.setLevel(program.loglevel);
|
|
15
15
|
logger.info(chalk.bold(`${packageJson.name} v${packageJson.version}\n`)); // The key is the field created in `program` variable for
|
|
16
16
|
// each command line argument. Value is the env variable.
|
|
@@ -5,8 +5,10 @@ import { colors } from '@storybook/node-logger';
|
|
|
5
5
|
import semver from '@storybook/semver';
|
|
6
6
|
import dedent from 'ts-dedent';
|
|
7
7
|
import { cache } from '@storybook/core-common';
|
|
8
|
-
var _process$env
|
|
9
|
-
|
|
8
|
+
var _process$env = process.env,
|
|
9
|
+
_process$env$STORYBOO = _process$env.STORYBOOK_VERSION_BASE,
|
|
10
|
+
STORYBOOK_VERSION_BASE = _process$env$STORYBOO === void 0 ? 'https://storybook.js.org' : _process$env$STORYBOO,
|
|
11
|
+
CI = _process$env.CI;
|
|
10
12
|
export var updateCheck = async function (version) {
|
|
11
13
|
var result;
|
|
12
14
|
var time = Date.now();
|
|
@@ -17,7 +19,7 @@ export var updateCheck = async function (version) {
|
|
|
17
19
|
time: 0
|
|
18
20
|
}); // if last check was more then 24h ago
|
|
19
21
|
|
|
20
|
-
if (time - 86400000 > fromCache.time) {
|
|
22
|
+
if (time - 86400000 > fromCache.time && !CI) {
|
|
21
23
|
var fromFetch = await Promise.race([fetch(`${STORYBOOK_VERSION_BASE}/versions.json?current=${version}`), // if fetch is too slow, we won't wait for it
|
|
22
24
|
new Promise(function (res, rej) {
|
|
23
25
|
return global.setTimeout(rej, 1500);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storybook/core-server",
|
|
3
|
-
"version": "6.4.
|
|
3
|
+
"version": "6.4.17",
|
|
4
4
|
"description": "Storybook framework-agnostic API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"storybook"
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@discoveryjs/json-ext": "^0.5.3",
|
|
44
|
-
"@storybook/builder-webpack4": "6.4.
|
|
45
|
-
"@storybook/core-client": "6.4.
|
|
46
|
-
"@storybook/core-common": "6.4.
|
|
47
|
-
"@storybook/core-events": "6.4.
|
|
44
|
+
"@storybook/builder-webpack4": "6.4.17",
|
|
45
|
+
"@storybook/core-client": "6.4.17",
|
|
46
|
+
"@storybook/core-common": "6.4.17",
|
|
47
|
+
"@storybook/core-events": "6.4.17",
|
|
48
48
|
"@storybook/csf": "0.0.2--canary.87bc651.0",
|
|
49
|
-
"@storybook/csf-tools": "6.4.
|
|
50
|
-
"@storybook/manager-webpack4": "6.4.
|
|
51
|
-
"@storybook/node-logger": "6.4.
|
|
49
|
+
"@storybook/csf-tools": "6.4.17",
|
|
50
|
+
"@storybook/manager-webpack4": "6.4.17",
|
|
51
|
+
"@storybook/node-logger": "6.4.17",
|
|
52
52
|
"@storybook/semver": "^7.3.2",
|
|
53
|
-
"@storybook/store": "6.4.
|
|
53
|
+
"@storybook/store": "6.4.17",
|
|
54
54
|
"@types/node": "^14.0.10",
|
|
55
55
|
"@types/node-fetch": "^2.5.7",
|
|
56
56
|
"@types/pretty-hrtime": "^1.0.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"ws": "^8.2.3"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@storybook/builder-webpack5": "6.4.
|
|
87
|
+
"@storybook/builder-webpack5": "6.4.17",
|
|
88
88
|
"@types/compression": "^1.7.0",
|
|
89
89
|
"@types/ip": "^1.1.0",
|
|
90
90
|
"@types/serve-favicon": "^2.5.2",
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
"jest-specific-snapshot": "^4.0.0"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@storybook/builder-webpack5": "6.4.
|
|
96
|
-
"@storybook/manager-webpack5": "6.4.
|
|
95
|
+
"@storybook/builder-webpack5": "6.4.17",
|
|
96
|
+
"@storybook/manager-webpack5": "6.4.17",
|
|
97
97
|
"react": "^16.8.0 || ^17.0.0",
|
|
98
98
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
99
99
|
},
|
|
@@ -111,6 +111,6 @@
|
|
|
111
111
|
"publishConfig": {
|
|
112
112
|
"access": "public"
|
|
113
113
|
},
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "dc061f3e38151d25d2cbfb5d16a4531e7ec6e7d3",
|
|
115
115
|
"sbmodern": "dist/modern/index.js"
|
|
116
116
|
}
|