@lgtm-hq/turbo-themes 0.28.6 → 0.28.7

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.
@@ -3,8 +3,8 @@
3
3
  var tokens = {
4
4
  $schema: "https://design-tokens.org/schema.json",
5
5
  $description: "Turbo Themes - Flat tokens for 27 themes",
6
- $version: "0.28.6",
7
- $generated: "6ce4b2609963cfde94614f2ec239f08f463cbdb6a2bcf88c44c26ff3147a9546",
6
+ $version: "0.28.7",
7
+ $generated: "2876da76eee982a5b5ec8ea32d4b8556345e78c02a728eb9d0163f3f1e56f874",
8
8
  meta: {
9
9
  "themeIds": [
10
10
  "bulma-dark",
@@ -265,13 +265,14 @@ flavors.map((f) => [f.id, getShortLabel(f.id)]);
265
265
  */
266
266
  var KNOWN_THEME_IDS = new Set(themeIds);
267
267
  /**
268
- * Emit a dev-time warning for unknown IDs. Bundlers replace
269
- * `process.env.NODE_ENV` with the literal `"production"` and eliminate this
270
- * branch via dead-code removal, so production builds never log.
268
+ * Emit a dev-time warning for unknown IDs. The `typeof` guard is safe even
269
+ * when `process` is an undeclared identifier (browsers/workers without a
270
+ * shim), and keeps the contiguous `process.env.NODE_ENV` token sequence so
271
+ * bundler define-replacement and dead-code elimination still apply.
271
272
  */
272
273
  function warnInvalidIds(source, ids) {
273
274
  if (ids.length === 0) return;
274
- if (process.env.NODE_ENV === "production") return;
275
+ if (typeof process !== "undefined" && process.env.NODE_ENV === "production") return;
275
276
  console.warn(`[catalog] createThemeCatalog: ignoring unknown ${source} theme ID(s): ${ids.join(", ")}. Valid IDs come from the exported \`themeIds\`.`);
276
277
  }
277
278
  /**
@@ -448,4 +449,4 @@ function createThemeCssVariables(themeId) {
448
449
  //#endregion
449
450
  export { themeIds as a, getTheme as i, createThemeCssVariables as n, themesById as o, getAllThemeColors as r, createColorMappings as t };
450
451
 
451
- //# sourceMappingURL=colors-DkQuLirO.js.map
452
+ //# sourceMappingURL=colors-BF9oTt-B.js.map
@@ -1,2 +1,2 @@
1
- import { n as createThemeCssVariables, r as getAllThemeColors, t as createColorMappings } from "./colors-DkQuLirO.js";
1
+ import { n as createThemeCssVariables, r as getAllThemeColors, t as createColorMappings } from "./colors-BF9oTt-B.js";
2
2
  export { createColorMappings, createThemeCssVariables, getAllThemeColors };
@@ -1,4 +1,4 @@
1
- import { a as themeIds, i as getTheme, o as themesById, t as createColorMappings } from "./colors-DkQuLirO.js";
1
+ import { a as themeIds, i as getTheme, o as themesById, t as createColorMappings } from "./colors-BF9oTt-B.js";
2
2
  //#region preset.ts
3
3
  /**
4
4
  * Tailwind CSS preset for Turbo Themes
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://design-tokens.org/schema.json",
3
3
  "$description": "Turbo Themes - Design tokens for 27 themes",
4
- "$version": "0.28.6",
5
- "$generated": "7f410e284e55ba165cbd9eb0105531ffba9c2fb3fdfb84da08211aa8df598156",
4
+ "$version": "0.28.7",
5
+ "$generated": "e664143f89369e352f44bd87306352d85da279a97d6f54c920ba24e8fd0e7721",
6
6
  "meta": {
7
7
  "themeIds": [
8
8
  "bulma-dark",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$schema": "https://design-tokens.org/schema.json",
3
3
  "$description": "Turbo Themes - Flat tokens for 27 themes",
4
- "$version": "0.28.6",
5
- "$generated": "6ce4b2609963cfde94614f2ec239f08f463cbdb6a2bcf88c44c26ff3147a9546",
4
+ "$version": "0.28.7",
5
+ "$generated": "2876da76eee982a5b5ec8ea32d4b8556345e78c02a728eb9d0163f3f1e56f874",
6
6
  "meta": {
7
7
  "themeIds": [
8
8
  "bulma-dark",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lgtm-hq/turbo-themes",
3
- "version": "0.28.6",
3
+ "version": "0.28.7",
4
4
  "description": "Universal theme packs and an accessible theme selector.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -3,8 +3,8 @@
3
3
  var tokens = {
4
4
  $schema: "https://design-tokens.org/schema.json",
5
5
  $description: "Turbo Themes - Flat tokens for 27 themes",
6
- $version: "0.28.6",
7
- $generated: "6ce4b2609963cfde94614f2ec239f08f463cbdb6a2bcf88c44c26ff3147a9546",
6
+ $version: "0.28.7",
7
+ $generated: "2876da76eee982a5b5ec8ea32d4b8556345e78c02a728eb9d0163f3f1e56f874",
8
8
  meta: {
9
9
  "themeIds": [
10
10
  "bulma-dark",
@@ -265,13 +265,14 @@ flavors.map((f) => [f.id, getShortLabel(f.id)]);
265
265
  */
266
266
  var KNOWN_THEME_IDS = new Set(themeIds);
267
267
  /**
268
- * Emit a dev-time warning for unknown IDs. Bundlers replace
269
- * `process.env.NODE_ENV` with the literal `"production"` and eliminate this
270
- * branch via dead-code removal, so production builds never log.
268
+ * Emit a dev-time warning for unknown IDs. The `typeof` guard is safe even
269
+ * when `process` is an undeclared identifier (browsers/workers without a
270
+ * shim), and keeps the contiguous `process.env.NODE_ENV` token sequence so
271
+ * bundler define-replacement and dead-code elimination still apply.
271
272
  */
272
273
  function warnInvalidIds(source, ids) {
273
274
  if (ids.length === 0) return;
274
- if (process.env.NODE_ENV === "production") return;
275
+ if (typeof process !== "undefined" && process.env.NODE_ENV === "production") return;
275
276
  console.warn(`[catalog] createThemeCatalog: ignoring unknown ${source} theme ID(s): ${ids.join(", ")}. Valid IDs come from the exported \`themeIds\`.`);
276
277
  }
277
278
  /**
@@ -448,4 +449,4 @@ function createThemeCssVariables(themeId) {
448
449
  //#endregion
449
450
  export { themeIds as a, getTheme as i, createThemeCssVariables as n, themesById as o, getAllThemeColors as r, createColorMappings as t };
450
451
 
451
- //# sourceMappingURL=colors-DkQuLirO.js.map
452
+ //# sourceMappingURL=colors-BF9oTt-B.js.map