@warp-ds/uno
Advanced tools
Comparing version 1.0.0-alpha.47 to 1.0.0-alpha.48
{ | ||
"name": "@warp-ds/uno", | ||
"repository": "git@github.com:warp-ds/drive.git", | ||
"version": "1.0.0-alpha.47", | ||
"version": "1.0.0-alpha.48", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -19,2 +19,3 @@ import { preflights } from '#preflights'; | ||
export function presetWarp (options = {}) { | ||
checkEnvironment(); | ||
const externalizeClasses = options.externalizeClasses; | ||
@@ -34,2 +35,12 @@ const externalClasses = options.externalClasses ?? []; // will possibly be our own list in the future | ||
function checkEnvironment() { | ||
if (typeof fetch === 'undefined') { | ||
if (typeof process !== 'undefined') { | ||
const NODE_MAJOR_VERSION = process.versions.node.split('.')[0]; | ||
if (NODE_MAJOR_VERSION < 18) throw new Error('Warp requires node 18 or higher'); | ||
} | ||
throw new Error("'fetch' is undefined for some reason and presetWarp requires it"); | ||
} | ||
} | ||
export default presetWarp; |
Sorry, the diff of this file is too big to display
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
189840
5042
4