@unocss/preset-web-fonts 65.4.0 → 65.4.2

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.mjs CHANGED
@@ -1,6 +1,4 @@
1
- import { mergeDeep, toArray, definePreset } from '@unocss/core';
2
-
3
- const LAYER_IMPORTS = "imports";
1
+ import { mergeDeep, toArray, LAYER_IMPORTS, definePreset } from '@unocss/core';
4
2
 
5
3
  function createBunnyFontsProvider(name, host) {
6
4
  return {
@@ -85,9 +83,9 @@ function createFontSourceProvider(name, host) {
85
83
  format: "woff2-variations"
86
84
  }],
87
85
  variable: {
88
- wght: mergeAxes.wght ?? void 0,
89
- wdth: mergeAxes.wdth ?? void 0,
90
- slnt: mergeAxes.slnt ?? void 0
86
+ wght: mergeAxes.wght ?? undefined,
87
+ wdth: mergeAxes.wdth ?? undefined,
88
+ slnt: mergeAxes.slnt ?? undefined
91
89
  },
92
90
  unicodeRange: metadata.unicodeRange[subset],
93
91
  comment: `${metadata.id}-${subset}-wght-normal`
@@ -309,7 +307,7 @@ function createWebFontPreset(fetcher) {
309
307
  css = await processor.transformCSS?.(css) || css;
310
308
  return css;
311
309
  },
312
- layer: inlineImports ? void 0 : LAYER_IMPORTS
310
+ layer: inlineImports ? undefined : LAYER_IMPORTS
313
311
  }
314
312
  ]
315
313
  };
package/dist/local.mjs CHANGED
@@ -4,6 +4,7 @@ import fs from 'node:fs';
4
4
  import fsp from 'node:fs/promises';
5
5
  import { resolve, join } from 'node:path';
6
6
  import process from 'node:process';
7
+ import '@unocss/core';
7
8
  import { fetch } from 'ofetch';
8
9
 
9
10
  function replaceAsync(string, searchValue, replacer) {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@unocss/preset-web-fonts",
3
3
  "type": "module",
4
- "version": "65.4.0",
4
+ "version": "65.4.2",
5
5
  "description": "Web Fonts support for Uno CSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/antfu",
9
- "homepage": "https://github.com/unocss/unocss/tree/main/packages/preset-web-fonts#readme",
9
+ "homepage": "https://unocss.dev",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "https://github.com/unocss/unocss",
13
- "directory": "packages/preset-web-fonts"
13
+ "directory": "packages-presets/preset-web-fonts"
14
14
  },
15
15
  "bugs": {
16
16
  "url": "https://github.com/unocss/unocss/issues"
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "ofetch": "^1.4.1",
53
- "@unocss/core": "65.4.0"
53
+ "@unocss/core": "65.4.2"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "unbuild",