@modern-js/storybook-next-generator 3.7.20 → 3.7.21
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 +9 -118
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1802,9 +1802,9 @@ var require_ms = __commonJS({
|
|
|
1802
1802
|
}
|
|
1803
1803
|
});
|
|
1804
1804
|
|
|
1805
|
-
// ../../../../node_modules/.pnpm/debug@4.3.
|
|
1805
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js
|
|
1806
1806
|
var require_common = __commonJS({
|
|
1807
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
1807
|
+
"../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/common.js"(exports, module2) {
|
|
1808
1808
|
"use strict";
|
|
1809
1809
|
function setup(env) {
|
|
1810
1810
|
createDebug.debug = createDebug;
|
|
@@ -1966,9 +1966,9 @@ var require_common = __commonJS({
|
|
|
1966
1966
|
}
|
|
1967
1967
|
});
|
|
1968
1968
|
|
|
1969
|
-
// ../../../../node_modules/.pnpm/debug@4.3.
|
|
1969
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js
|
|
1970
1970
|
var require_browser = __commonJS({
|
|
1971
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
1971
|
+
"../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/browser.js"(exports, module2) {
|
|
1972
1972
|
"use strict";
|
|
1973
1973
|
exports.formatArgs = formatArgs;
|
|
1974
1974
|
exports.save = save;
|
|
@@ -2137,118 +2137,9 @@ var require_browser = __commonJS({
|
|
|
2137
2137
|
}
|
|
2138
2138
|
});
|
|
2139
2139
|
|
|
2140
|
-
// ../../../../node_modules/.pnpm/
|
|
2141
|
-
var require_has_flag2 = __commonJS({
|
|
2142
|
-
"../../../../node_modules/.pnpm/has-flag@3.0.0/node_modules/has-flag/index.js"(exports, module2) {
|
|
2143
|
-
"use strict";
|
|
2144
|
-
module2.exports = (flag, argv) => {
|
|
2145
|
-
argv = argv || process.argv;
|
|
2146
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
2147
|
-
const pos = argv.indexOf(prefix + flag);
|
|
2148
|
-
const terminatorPos = argv.indexOf("--");
|
|
2149
|
-
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
2150
|
-
};
|
|
2151
|
-
}
|
|
2152
|
-
});
|
|
2153
|
-
|
|
2154
|
-
// ../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js
|
|
2155
|
-
var require_supports_color2 = __commonJS({
|
|
2156
|
-
"../../../../node_modules/.pnpm/supports-color@5.5.0/node_modules/supports-color/index.js"(exports, module2) {
|
|
2157
|
-
"use strict";
|
|
2158
|
-
var os2 = require("os");
|
|
2159
|
-
var hasFlag = require_has_flag2();
|
|
2160
|
-
var env = process.env;
|
|
2161
|
-
var forceColor;
|
|
2162
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
2163
|
-
forceColor = false;
|
|
2164
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
2165
|
-
forceColor = true;
|
|
2166
|
-
}
|
|
2167
|
-
if ("FORCE_COLOR" in env) {
|
|
2168
|
-
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
2169
|
-
}
|
|
2170
|
-
function translateLevel(level) {
|
|
2171
|
-
if (level === 0) {
|
|
2172
|
-
return false;
|
|
2173
|
-
}
|
|
2174
|
-
return {
|
|
2175
|
-
level,
|
|
2176
|
-
hasBasic: true,
|
|
2177
|
-
has256: level >= 2,
|
|
2178
|
-
has16m: level >= 3
|
|
2179
|
-
};
|
|
2180
|
-
}
|
|
2181
|
-
function supportsColor(stream4) {
|
|
2182
|
-
if (forceColor === false) {
|
|
2183
|
-
return 0;
|
|
2184
|
-
}
|
|
2185
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
2186
|
-
return 3;
|
|
2187
|
-
}
|
|
2188
|
-
if (hasFlag("color=256")) {
|
|
2189
|
-
return 2;
|
|
2190
|
-
}
|
|
2191
|
-
if (stream4 && !stream4.isTTY && forceColor !== true) {
|
|
2192
|
-
return 0;
|
|
2193
|
-
}
|
|
2194
|
-
const min = forceColor ? 1 : 0;
|
|
2195
|
-
if (process.platform === "win32") {
|
|
2196
|
-
const osRelease = os2.release().split(".");
|
|
2197
|
-
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
2198
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2199
|
-
}
|
|
2200
|
-
return 1;
|
|
2201
|
-
}
|
|
2202
|
-
if ("CI" in env) {
|
|
2203
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
2204
|
-
return 1;
|
|
2205
|
-
}
|
|
2206
|
-
return min;
|
|
2207
|
-
}
|
|
2208
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
2209
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
2210
|
-
}
|
|
2211
|
-
if (env.COLORTERM === "truecolor") {
|
|
2212
|
-
return 3;
|
|
2213
|
-
}
|
|
2214
|
-
if ("TERM_PROGRAM" in env) {
|
|
2215
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
2216
|
-
switch (env.TERM_PROGRAM) {
|
|
2217
|
-
case "iTerm.app":
|
|
2218
|
-
return version >= 3 ? 3 : 2;
|
|
2219
|
-
case "Apple_Terminal":
|
|
2220
|
-
return 2;
|
|
2221
|
-
}
|
|
2222
|
-
}
|
|
2223
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
2224
|
-
return 2;
|
|
2225
|
-
}
|
|
2226
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
2227
|
-
return 1;
|
|
2228
|
-
}
|
|
2229
|
-
if ("COLORTERM" in env) {
|
|
2230
|
-
return 1;
|
|
2231
|
-
}
|
|
2232
|
-
if (env.TERM === "dumb") {
|
|
2233
|
-
return min;
|
|
2234
|
-
}
|
|
2235
|
-
return min;
|
|
2236
|
-
}
|
|
2237
|
-
function getSupportLevel(stream4) {
|
|
2238
|
-
const level = supportsColor(stream4);
|
|
2239
|
-
return translateLevel(level);
|
|
2240
|
-
}
|
|
2241
|
-
module2.exports = {
|
|
2242
|
-
supportsColor: getSupportLevel,
|
|
2243
|
-
stdout: getSupportLevel(process.stdout),
|
|
2244
|
-
stderr: getSupportLevel(process.stderr)
|
|
2245
|
-
};
|
|
2246
|
-
}
|
|
2247
|
-
});
|
|
2248
|
-
|
|
2249
|
-
// ../../../../node_modules/.pnpm/debug@4.3.7_supports-color@5.5.0/node_modules/debug/src/node.js
|
|
2140
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js
|
|
2250
2141
|
var require_node = __commonJS({
|
|
2251
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
2142
|
+
"../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/node.js"(exports, module2) {
|
|
2252
2143
|
"use strict";
|
|
2253
2144
|
var tty = require("tty");
|
|
2254
2145
|
var util3 = require("util");
|
|
@@ -2265,7 +2156,7 @@ var require_node = __commonJS({
|
|
|
2265
2156
|
);
|
|
2266
2157
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
2267
2158
|
try {
|
|
2268
|
-
const supportsColor =
|
|
2159
|
+
const supportsColor = require_supports_color();
|
|
2269
2160
|
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
2270
2161
|
exports.colors = [
|
|
2271
2162
|
20,
|
|
@@ -2421,9 +2312,9 @@ var require_node = __commonJS({
|
|
|
2421
2312
|
}
|
|
2422
2313
|
});
|
|
2423
2314
|
|
|
2424
|
-
// ../../../../node_modules/.pnpm/debug@4.3.
|
|
2315
|
+
// ../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js
|
|
2425
2316
|
var require_src = __commonJS({
|
|
2426
|
-
"../../../../node_modules/.pnpm/debug@4.3.
|
|
2317
|
+
"../../../../node_modules/.pnpm/debug@4.3.7/node_modules/debug/src/index.js"(exports, module2) {
|
|
2427
2318
|
"use strict";
|
|
2428
2319
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
2429
2320
|
module2.exports = require_browser();
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "3.7.
|
|
18
|
+
"version": "3.7.21",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"files": [
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"@types/node": "^14",
|
|
31
31
|
"jest": "^29",
|
|
32
32
|
"typescript": "^5",
|
|
33
|
-
"@modern-js/dependence-generator": "3.7.
|
|
34
|
-
"@modern-js/generator-common": "3.7.
|
|
35
|
-
"@modern-js/generator-utils": "3.7.
|
|
36
|
-
"@modern-js/plugin-i18n": "2.65.
|
|
37
|
-
"@scripts/
|
|
38
|
-
"@scripts/
|
|
33
|
+
"@modern-js/dependence-generator": "3.7.21",
|
|
34
|
+
"@modern-js/generator-common": "3.7.21",
|
|
35
|
+
"@modern-js/generator-utils": "3.7.21",
|
|
36
|
+
"@modern-js/plugin-i18n": "2.65.3",
|
|
37
|
+
"@scripts/jest-config": "2.65.3",
|
|
38
|
+
"@scripts/build": "2.65.3"
|
|
39
39
|
},
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"publishConfig": {
|