@garfish/utils
Advanced tools
Comparing version 1.13.4-beta-20230116132249.0 to 1.13.4
@@ -444,2 +444,7 @@ // src/utils.ts | ||
} | ||
function macroTask(value) { | ||
return new Promise((resolve) => { | ||
setTimeout(() => resolve(value)); | ||
}); | ||
} | ||
@@ -1319,2 +1324,3 @@ // src/queue.ts | ||
isPromise, | ||
macroTask, | ||
makeMap, | ||
@@ -1321,0 +1327,0 @@ makeMapObject, |
@@ -51,2 +51,3 @@ import { interfaces } from '@garfish/core'; | ||
declare function getSourceURL(url: string | URL | Request): string; | ||
declare function macroTask<T extends any>(value: T): Promise<T>; | ||
@@ -172,2 +173,2 @@ declare class Queue { | ||
export { DOMApis, Lock, Node, Queue, StackFrame, StackTrace, Text, __GARFISH_FLAG__, __LOADER_FLAG__, __MockBody__, __MockHead__, __MockHtml__, __REMOVE_NODE__, _extends, appContainerId, assert, callTestCallback, changeTagNameToLowerCase, computeErrorUrl, computeStackTraceFromStackProp, coreLog, createAppContainer, createKey, createSourcemap, deepMerge, def, error, evalWithEnv, filterAndWrapEventListener, filterUndefinedVal, findTarget, getGarfishDebugInstanceName, getParameterByName, getRenderNode, getSourceURL, getType, hasOwn, haveSourcemap, hookObjectProperty, idleCallback, inBrowser, internFunc, isAbsolute, isCss, isCssType, isGarfishConfigType, isHtml, isHtmlType, isJs, isJsType, isJsonp, isObject, isPlainObject, isPrimitive, isPromise, makeMap, makeMapObject, mapObject, mimeType, nextTick, noop, objectToString, parseContentType, remove, routerLog, safari13Deal, safeWrapper, setDocCurrentScript, sourceListTags, sourceNode, supportWasm, templateParse, toBase64, toBoolean, toWsProtocol, transformUrl, unique, validURL, warn }; | ||
export { DOMApis, Lock, Node, Queue, StackFrame, StackTrace, Text, __GARFISH_FLAG__, __LOADER_FLAG__, __MockBody__, __MockHead__, __MockHtml__, __REMOVE_NODE__, _extends, appContainerId, assert, callTestCallback, changeTagNameToLowerCase, computeErrorUrl, computeStackTraceFromStackProp, coreLog, createAppContainer, createKey, createSourcemap, deepMerge, def, error, evalWithEnv, filterAndWrapEventListener, filterUndefinedVal, findTarget, getGarfishDebugInstanceName, getParameterByName, getRenderNode, getSourceURL, getType, hasOwn, haveSourcemap, hookObjectProperty, idleCallback, inBrowser, internFunc, isAbsolute, isCss, isCssType, isGarfishConfigType, isHtml, isHtmlType, isJs, isJsType, isJsonp, isObject, isPlainObject, isPrimitive, isPromise, macroTask, makeMap, makeMapObject, mapObject, mimeType, nextTick, noop, objectToString, parseContentType, remove, routerLog, safari13Deal, safeWrapper, setDocCurrentScript, sourceListTags, sourceNode, supportWasm, templateParse, toBase64, toBoolean, toWsProtocol, transformUrl, unique, validURL, warn }; |
@@ -83,2 +83,3 @@ var __create = Object.create; | ||
isPromise: () => isPromise, | ||
macroTask: () => macroTask, | ||
makeMap: () => makeMap, | ||
@@ -552,2 +553,7 @@ makeMapObject: () => makeMapObject, | ||
} | ||
function macroTask(value) { | ||
return new Promise((resolve) => { | ||
setTimeout(() => resolve(value)); | ||
}); | ||
} | ||
@@ -1429,2 +1435,3 @@ // src/queue.ts | ||
isPromise, | ||
macroTask, | ||
makeMap, | ||
@@ -1431,0 +1438,0 @@ makeMapObject, |
{ | ||
"name": "@garfish/utils", | ||
"version": "1.13.4-beta-20230116132249.0", | ||
"version": "1.13.4", | ||
"description": "utils module.", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@garfish/core": "1.13.4-beta-20230116132249.0" | ||
"@garfish/core": "1.13.4" | ||
}, | ||
@@ -33,0 +33,0 @@ "publishConfig": { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
88009
2948
0