@unocss/config
Advanced tools
Comparing version 0.9.2 to 0.9.3
@@ -128,6 +128,6 @@ var __create = Object.create; | ||
}; | ||
const run = async (fn, resolve, ...args) => { | ||
const run = async (fn, resolve2, ...args) => { | ||
activeCount++; | ||
const result = (async () => fn(...args))(); | ||
resolve(result); | ||
resolve2(result); | ||
try { | ||
@@ -139,4 +139,4 @@ await result; | ||
}; | ||
const enqueue = (fn, resolve, ...args) => { | ||
queue.enqueue(run.bind(null, fn, resolve, ...args)); | ||
const enqueue = (fn, resolve2, ...args) => { | ||
queue.enqueue(run.bind(null, fn, resolve2, ...args)); | ||
(async () => { | ||
@@ -149,4 +149,4 @@ await Promise.resolve(); | ||
}; | ||
const generator = (fn, ...args) => new Promise((resolve) => { | ||
enqueue(fn, resolve, ...args); | ||
const generator = (fn, ...args) => new Promise((resolve2) => { | ||
enqueue(fn, resolve2, ...args); | ||
}); | ||
@@ -378,2 +378,3 @@ Object.defineProperties(generator, { | ||
var import_fs = __toModule(require("fs")); | ||
var import_path = __toModule(require("path")); | ||
var import_find_up = __toModule(require_find_up()); | ||
@@ -395,3 +396,4 @@ var import_sucrase = __toModule(require("sucrase")); | ||
} | ||
const filepath = isDir(dirOrPath) ? import_find_up.default.sync([ | ||
dirOrPath = (0, import_path.resolve)(dirOrPath); | ||
let filepath = isDir(dirOrPath) ? import_find_up.default.sync([ | ||
"unocss.config.js", | ||
@@ -404,2 +406,4 @@ "unocss.config.cjs", | ||
], { cwd: dirOrPath }) : dirOrPath; | ||
if (filepath && dirOrPath !== filepath) | ||
filepath = (0, import_path.resolve)(dirOrPath, filepath); | ||
if (!filepath || !import_fs.default.existsSync(filepath)) | ||
@@ -406,0 +410,0 @@ return {}; |
{ | ||
"name": "@unocss/config", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "Config loader for UnoCSS", | ||
@@ -31,3 +31,3 @@ "keywords": [], | ||
"dependencies": { | ||
"@unocss/core": "0.9.2", | ||
"@unocss/core": "0.9.3", | ||
"sucrase": "^3.20.3" | ||
@@ -34,0 +34,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15954
420
+ Added@unocss/core@0.9.3(transitive)
- Removed@unocss/core@0.9.2(transitive)
Updated@unocss/core@0.9.3